:root {
  --base: #2457a8;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --gold: #ffd56a;
  --contrast: #111b2c;
  --lift: #18243a;
  --deep: #0c1424;
  --line: rgba(255, 213, 106, 0.42);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --nav-h: 4.25rem;
  --pad: max(20px, env(safe-area-inset-left));
  --pad-r: max(20px, env(safe-area-inset-right));
}

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

html { overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100%;
}

img, svg, video, canvas { max-width: 100%; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; }

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

a:visited { color: var(--gold); }

a:hover,
a:focus-visible,
a:active { color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: var(--contrast); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); }

h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }

h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; }

em { font-style: italic; color: var(--gold); }

p + p { margin-top: 0.9rem; }

.measure { max-width: 65ch; }

.muted { color: var(--muted); }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0;
  transform: translateY(-140%);
  background: var(--gold);
  color: var(--contrast);
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1rem;
  z-index: 80;
  border-radius: 0 0 10px 10px;
}

.skip:focus,
.skip:focus-visible {
  transform: translateY(env(safe-area-inset-top));
  color: var(--contrast);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--nav-h);
  padding: env(safe-area-inset-top) var(--pad-r) 0 var(--pad);
  background: var(--contrast);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.15;
  max-width: calc(100% - 60px);
  overflow-wrap: anywhere;
  padding: 0.6rem 0;
}

.brand:hover,
.brand:focus-visible,
.brand:active { color: var(--gold); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 44px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

html.js .burger { display: inline-flex; }

html.js .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

html.js .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

html.js .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#site-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.25rem 0 0.8rem;
}

#site-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
  font-family: var(--serif);
  font-size: 1.7rem;
}

html.js #site-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--contrast);
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 16px) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

html.js #site-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

html.menu-open,
html.menu-open body { overflow: hidden; }

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-left: var(--pad);
  padding-right: var(--pad-r);
}

.section { padding: 3.25rem 0; }

.band { background: var(--contrast); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.rule {
  width: 7.5rem;
  height: 0.7rem;
  margin: 0.85rem 0 1rem;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary,
.btn-primary:visited {
  background: var(--gold);
  color: var(--contrast);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  background: #fff1c2;
  color: var(--contrast);
}

.btn-ghost,
.btn-ghost:visited {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-ghost:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.ticks { list-style: none; }

.ticks li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.45rem 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 72%, 50% 100%, 0 72%);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  padding: 1.25rem var(--pad-r) 2rem var(--pad);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 213, 106, 0.18), transparent 46%);
}

.flank { display: none; }

.hero-copy { position: relative; z-index: 2; }

.hero-lede { margin-top: 0.9rem; color: var(--muted); }

.orbit {
  position: relative;
  width: min(100%, 30rem);
  margin: 1.4rem auto 0;
  aspect-ratio: 1;
  pointer-events: none;
}

.orbit svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.spin { animation: turn 72s linear infinite; will-change: transform; }

.spin-back { animation: turn 96s linear infinite reverse; will-change: transform; }

@keyframes turn { to { transform: rotate(360deg); } }

.platforms-grid,
.process-grid,
.assistant-grid,
.manifesto-grid,
.cta-grid,
.compare-grid { display: grid; gap: 1.5rem; }

.device {
  width: min(100%, 20rem);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.85rem 0.75rem 1rem;
  margin-inline: auto;
}

.device-and { border-radius: 1.4rem; }

.device-top,
.device-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 1.4rem;
  padding: 0 0.4rem;
}

.device-screen {
  margin-top: 0.45rem;
  background: #1a3f86;
  border-radius: 1.35rem;
  min-height: 18.5rem;
  padding: 1rem 0.9rem 1.1rem;
}

.device-and .device-screen { border-radius: 0.9rem; }

.device-kicker {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.1;
}

.device-screen .ticks { margin-top: 0.8rem; font-size: 0.98rem; }

.pill {
  margin-top: 1.1rem;
  height: 0.35rem;
  width: 5.5rem;
  border-radius: 999px;
  background: var(--gold);
  margin-inline: auto;
}

.bar {
  margin-top: 1.1rem;
  height: 0.28rem;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 213, 106, 0.7);
}

.card {
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1rem;
}

.band .card { background: #1b2942; }

.lift { transition: transform 0.25s ease; }

.lift:hover,
.lift:focus-within,
.lift:active { transform: translateY(-4px); }

.steps { list-style: none; }

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.constellation { width: min(100%, 22rem); margin: 0 auto 1rem; display: block; }

.compare-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 213, 106, 0.08);
}

.manifesto { background: var(--deep); }

.manifesto blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.quote-mark { width: 4.5rem; height: 4.5rem; color: var(--gold); display: block; margin-bottom: 0.6rem; }

.marquee-sec { text-align: center; }

.marquee {
  margin-top: 1.25rem;
  overflow: hidden;
  max-width: 100%;
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  background: rgba(17, 27, 44, 0.35);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
  will-change: transform;
}

.marquee.is-off .marquee-track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-row {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0 1.1rem 0 0;
}

.marquee-row li {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.marquee-row li::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 2.2rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: translateY(0.06em);
}

.chat {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1rem;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 0.7rem;
}

.chat header p { font-family: var(--serif); font-size: 1.6rem; }

.bubble {
  max-width: 92%;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  line-height: 1.45;
}

.bubble.them { background: #1a3f86; }

.bubble.me {
  margin-left: auto;
  background: var(--gold);
  color: var(--contrast);
}

.bento {
  display: grid;
  gap: 12px;
  margin-top: 1.25rem;
}

.bento article {
  background: var(--contrast);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem;
  min-height: 12.5rem;
}

.icon { width: 3.25rem; height: 3.25rem; color: var(--gold); display: block; margin-bottom: 0.8rem; }

.bento h3 { margin-bottom: 0.4rem; }

.cta-panel {
  background: var(--contrast);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: 1.25rem;
}

.site-footer {
  background: var(--deep);
  padding-top: 2.4rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-grid { display: grid; gap: 1.4rem; }

.footer-grid a { display: inline-flex; min-height: 44px; align-items: center; margin-right: 1rem; }

.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.page-hero { padding: 2.2rem 0 0.5rem; }

.page-hero h1 { max-width: 14ch; }

.hero-rule { width: min(100%, 36rem); height: 3.2rem; display: block; margin-top: 0.8rem; }

.date-line { color: var(--gold); font-weight: 600; margin: 1rem 0; }

.doc {
  width: min(1120px, 100%);
  margin: 0 auto 3.5rem;
  padding-left: var(--pad);
  padding-right: var(--pad-r);
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.toc a:hover,
.toc a:focus-visible,
.toc a:active { color: var(--gold); }

.toc-side { display: none; }

.toc-fold {
  background: var(--contrast);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.3rem 0.9rem;
  margin: 1rem 0 1.2rem;
}

.toc-fold summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.prose h2 { margin: 2rem 0 0.7rem; scroll-margin-top: 6rem; }

.prose h2:first-child { margin-top: 0.4rem; }

.studio-card,
.form-card {
  background: var(--contrast);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 1.1rem;
  margin: 1rem 0;
}

label { display: block; font-weight: 600; margin-bottom: 0.35rem; }

.field { margin-bottom: 0.95rem; }

input, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
}

textarea { min-height: 9rem; resize: vertical; }

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (min-width: 640px) {
  .btn { width: auto; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .devices, .bento { grid-template-columns: 1fr 1fr; }
  .device { width: 100%; max-width: none; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}

@media (min-width: 900px) {
  html.js .burger { display: none; }

  #site-menu,
  html.js #site-menu {
    position: static;
    inset: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    z-index: auto;
  }

  #site-menu a {
    font-family: var(--sans);
    font-size: 0.95rem;
    min-height: 44px;
    padding: 0 0.7rem;
  }

  #site-menu a[aria-current="page"] { color: var(--gold); }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    padding: 0.5rem max(12px, env(safe-area-inset-right)) 0.5rem max(12px, env(safe-area-inset-left));
  }

  .hero-stage {
    width: min(62vw, calc(100dvh - 6.5rem));
    display: grid;
    place-items: center;
  }

  .orbit,
  .hero-copy { grid-area: 1 / 1; }

  .orbit { width: 100%; margin: 0; }

  .monogram { display: none; }

  .hero-copy { width: min(34rem, 54%); text-align: center; }

  .flank {
    display: block;
    position: static;
    width: min(92%, 220px);
    height: auto;
    margin: 0;
    pointer-events: none;
  }

  .flank-left { grid-column: 1; grid-row: 1; }

  .hero-stage { grid-column: 2; grid-row: 1; }

  .flank-right { grid-column: 3; grid-row: 1; }

  .hero h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); }

  .hero .btn-row { justify-content: center; }

  .platforms-grid,
  .assistant-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; }

  .assistant-grid .chat { order: -1; }

  .process-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
  }

  .process-sticky { position: sticky; top: calc(var(--nav-h) + 1.2rem); }

  .manifesto-grid,
  .cta-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 2.5rem; }

  .compare-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }

  .doc {
    display: grid;
    grid-template-columns: 220px minmax(0, 68ch);
    gap: 3rem;
    justify-content: center;
    align-items: start;
  }

  .toc-fold { display: none; }

  .toc-side {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 1.25rem);
  }

  .section { padding: 4.25rem 0; }
}

@media (min-width: 1200px) {
  .bento { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-height: 520px) and (max-width: 899px) {
  .hero { min-height: 0; padding-top: 0.8rem; }
  .hero h1 { font-size: 2.4rem; }
  .orbit { width: min(100%, 16rem); margin-top: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js .reveal { opacity: 1; transform: none; }

  .spin, .spin-back, .marquee-track { will-change: auto; }

  .marquee { overflow: visible; }

  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }

  .marquee-row[aria-hidden="true"] { display: none; }

  .marquee-row { flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
}
