@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;500;600;700&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #1c1726;
  --ink-2: #241d33;
  --ink-3: #2f2643;
  --violet: #6514ff;
  --magenta: #bf00ff;
  --neon: #dcff3c;
  --paper: #f7f3ff;
  --muted: #b6aad8;
  --line: rgba(247, 243, 255, .18);
  --serif: 'Libre Bodoni', Georgia, 'Songti SC', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --pad: clamp(18px, 5vw, 44px);
  --bar: 120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(118deg, rgba(101, 20, 255, .30) 0 40px, rgba(101, 20, 255, 0) 40px 104px),
    repeating-linear-gradient(64deg, rgba(191, 0, 255, .16) 0 2px, rgba(191, 0, 255, 0) 2px 132px);
  animation: drift 30s linear infinite;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-104px, -104px, 0); }
}

h1, h2, h3 { font-weight: 600; }
img { max-width: 100%; }

a { color: var(--paper); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--pad);
  border-bottom: 2px solid var(--violet);
  background: rgba(28, 23, 38, .78);
}

.brand {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .06em;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: border-color .24s ease, color .24s ease;
}
.brand:hover { color: var(--neon); border-color: var(--neon); }

.mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--violet), var(--neon) 70%);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  min-height: 70svh;
  padding: 90px 0 42px;
  margin-bottom: 56px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(101, 20, 255, .85), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(191, 0, 255, .55), transparent 70%),
    linear-gradient(160deg, var(--ink-2), var(--ink) 78%);
}

.hero.is-blank::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(220, 255, 60, .10) 0 8px, transparent 8px 26px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 23, 38, .12) 0%, rgba(28, 23, 38, .58) 46%, rgba(28, 23, 38, .97) 98%);
}

.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1060px;
  padding: 0 var(--pad);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 78px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 16px;
  text-shadow: 0 2px 26px rgba(20, 16, 28, .55);
}

.hero-lede {
  margin: 0;
  max-width: 46ch;
  padding-left: 14px;
  border-left: 3px solid var(--neon);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: #e8e1ff;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad) 64px;
}

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.78;
  min-width: 0;
}

.prose > section {
  border: 1.5px solid var(--line);
  background: rgba(36, 29, 51, .55);
  padding: 26px 20px 10px;
  margin: 0 0 30px;
  transition: border-color .24s ease, background-color .24s ease;
}

.prose > section:hover {
  border-color: var(--magenta);
  background: rgba(47, 38, 67, .62);
}

.prose p { margin: 0 0 18px; }
.prose strong { color: #fff; }

.prose a {
  color: var(--neon);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.prose a:hover { color: var(--magenta); }

.prose h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 5.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 62px 0 12px;
  padding-top: 14px;
  border-top: 2px solid var(--violet);
}

.prose h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 3.6vw, 26px);
  line-height: 1.28;
  margin: 34px 0 10px;
}

.prose small {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--neon);
  margin: 40px 0 0;
}

.prose small + h2,
.prose small + h3 {
  margin-top: 8px;
  border-top: 0;
  padding-top: 0;
}

.prose > section > :first-child { margin-top: 0; }
.prose > section > h2:first-child,
.prose > section > small:first-child + h2 { border-top: 0; padding-top: 0; }

.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 9px; }
.prose li::marker { color: var(--neon); }

.prose blockquote {
  margin: 0 0 22px;
  padding: 14px 0 14px 18px;
  border-left: 4px solid var(--magenta);
  background: rgba(191, 0, 255, .09);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 0 0 24px; }
.prose figure img { border: 1.5px solid var(--line); }
.prose figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 16px;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}
.prose th { background: rgba(101, 20, 255, .22); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  background: rgba(101, 20, 255, .2);
  padding: 1px 5px;
}

.rail {
  border: 1.5px solid var(--violet);
  background: rgba(101, 20, 255, .12);
  padding: 18px 16px 20px;
}

.rail-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--neon);
}

.rail-title {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.1;
  margin: 4px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--violet);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0 2px 4px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dashed rgba(247, 243, 255, .16);
  transition: color .22s ease, padding-left .22s ease;
}
.rail-list a:hover,
.rail-list a.on { color: var(--neon); padding-left: 12px; }

.foot {
  border-top: 2px solid var(--violet);
  padding: 46px var(--pad) 42px;
  text-align: center;
  background: linear-gradient(180deg, rgba(191, 0, 255, .14), transparent 74%);
}

.foot p { margin: 0; }

.foot-brand {
  font-family: var(--serif);
  font-size: clamp(42px, 14vw, 122px);
  line-height: .92;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  background: linear-gradient(96deg, var(--violet), var(--magenta) 56%, var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .2em;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand brand"
    "nav cta";
  gap: 0 10px;
  padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--magenta);
  background: rgba(20, 16, 28, .96);
  backdrop-filter: blur(8px);
}

.dock-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  min-height: 34px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .24em;
  color: var(--paper);
  text-decoration: none;
}

.dock-nav {
  grid-area: nav;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}
.dock-nav::-webkit-scrollbar { display: none; }

.dock-nav ul {
  display: flex;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dock-nav > ul > li { position: relative; flex: 0 0 auto; }

.dock-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: color .22s ease, border-color .22s ease, background-color .22s ease;
}

.dock-nav > ul > li > a:hover,
.dock-nav a.on {
  color: var(--ink);
  background: var(--neon);
  border-color: var(--neon);
}

.dock-nav .sub {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: none;
  flex-direction: column;
  min-width: 160px;
  padding: 5px;
  background: var(--ink-2);
  border: 1.5px solid var(--magenta);
}

.dock-nav .sub li { flex: 0 0 auto; }
.dock-nav .sub a { min-height: 44px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.dock-nav .sub li:last-child a { border-bottom: 0; }

.has-sub:hover .sub,
.has-sub:focus-within .sub { display: flex; }

.cta {
  grid-area: cta;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--neon);
  border: 2px solid var(--neon);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.cta:hover { background: var(--magenta); border-color: var(--magenta); color: var(--paper); }

@media (min-width: 900px) {
  :root { --bar: 128px; }

  body { font-size: 18px; }

  .brand { font-size: 26px; }

  .hero { padding-bottom: 60px; margin-bottom: 72px; }

  .split { flex-direction: row; align-items: flex-start; gap: 56px; }

  .prose { flex: 1 1 auto; }
  .prose > section { padding: 34px 30px 14px; margin-bottom: 44px; }

  .rail { flex: 0 0 272px; position: sticky; top: 24px; order: 2; }

  .dock {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand brand cta"
      "nav nav nav";
    padding: 8px 28px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 2px 10px;
  }

  .dock-brand { font-size: 18px; letter-spacing: .3em; }
  .dock-nav > ul { gap: 6px; }
  .cta { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .hero-fig img { transform: none; }
  * { transition-duration: .01ms !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
