/* ─── Reset + page chrome ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The push is scroll-driven, so a UA that smooths scrolling on top of it
   fights the rig's own easing. */
html { scroll-behavior: auto; }

/* The deck's receding panels and the 560px feature panels are deliberately
   wider than their columns. `clip`, not `hidden`: hidden would make this a
   scroll container and the sticky stage would stop sticking. */
html { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--brand); color: #06210F; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #06210F; padding: 10px 16px;
  border-radius: 10px; font-weight: 600; transition: top var(--t-ui) var(--ease-out);
}
.skip:focus { top: 12px; }

/* ─── Announcement bar + nav ──────────────────────────────────────────── */

.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  will-change: transform, opacity;
}

.ann {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 30px; padding: 6px 16px;
  background: var(--chrome-ann);
  font-size: 12.5px; color: var(--t700); text-align: center;
}
.ann__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex: none;
  box-shadow: 0 0 0 4px rgba(38,224,108,.16);
}
.ann a { color: var(--ink); font-weight: 500; }
.ann a:hover { color: var(--brand-text); }
.ann__arrow { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.ann a:hover .ann__arrow { transform: translateX(3px); }

.nav {
  display: flex; align-items: center; gap: 28px;
  height: 52px;
  padding-inline: clamp(16px, 3vw, 30px);
  background: rgb(var(--ground-rgb) / 0);
  border-bottom: 1px solid rgb(var(--lift-rgb) / 0);
  transition: background var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
/* Solid the moment the camera starts moving — no glass, as in the reference. */
.chrome[data-lifted='true'] .nav {
  background: var(--chrome-nav);
  border-bottom-color: rgb(var(--lift-rgb) / .07);
}
.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__mark { width: 22px; height: 22px; }
.nav__word {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14.5px; letter-spacing: .19em; text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 12px; margin-inline: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 8px;
  font-size: 13.5px; color: rgb(var(--lift-rgb) / .82);
  transition: color var(--t-ui) var(--ease-out), background var(--t-ui) var(--ease-out);
}
.nav__link:hover { color: var(--ink); background: rgb(var(--lift-rgb) / .05); }
.nav__caret { opacity: .5; }
.nav__right { display: flex; align-items: center; gap: 10px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-pill);
  padding: 9px 17px;
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t-ui) var(--ease-out), background var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out);
}
.btn:active { transform: scale(.975); }
.btn--brand {
  background: var(--brand); color: #06210F;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -10px rgba(38,224,108,.75);
}
.btn--brand:hover { background: #3BEA7C; }
.btn--ghost { background: rgb(var(--lift-rgb) / .07); color: var(--ink); }
.btn--ghost:hover { background: rgb(var(--lift-rgb) / .12); }
.btn--lg { padding: 15px 28px; font-size: 16px; }

.nav__burger {
  display: none; width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
  background: rgb(var(--lift-rgb) / .07); border: 0; border-radius: 11px; cursor: pointer;
}

/* ─── The menu the burger opens ───────────────────────────────────────── */
.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px var(--gut) 18px;
  /* Opaque, not 96%: at 4% transmission the hero's headline still read
     straight through the panel, which looks like a bug rather than a blur.
     Solid also drops a compositing layer on the phone that needs it most. */
  background: var(--menu-bg);
  border-bottom: 1px solid var(--divider);
  box-shadow: var(--menu-shadow);
  display: grid; gap: 2px;
  transform-origin: 50% 0;
  animation: menuIn var(--t-ui) var(--ease-out) both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
/* Everything below it dims, so "tap anywhere to close" is visible rather than
   something you have to guess. */
.menu::after {
  content: ''; position: fixed; left: 0; right: 0; top: 100%; height: 100vh;
  background: rgb(var(--stage-rgb) / .72); pointer-events: none;
}
.menu__a {
  padding: 13px 2px; font-size: 16px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.menu__a:last-child { border-bottom: 0; }
/* `.menu { display: grid }` beats the UA sheet's `[hidden] { display: none }`,
   so el.hidden set the attribute and changed nothing on screen: the menu
   reported closed and stayed open. Say it outright. */
.menu[hidden] { display: none; }
.menu__a--quiet { color: var(--muted); font-weight: 500; }
.nav__burger[aria-expanded='true'] { background: rgb(var(--lift-rgb) / .14); }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }

/* ─── Theme selection ──────────────────────────────────────────────────
   Three states, not two: a page that only toggles has no way to say "follow
   the machine", and then a reader who changes their phone to night at 7pm has
   to come back and change this as well. Light / System / Dark reads left to
   right as it behaves, so the middle is the one that moves with the OS.

   One tab stop with arrow keys inside it — a radiogroup, because that is what
   this is: three exclusive options, not three independent buttons. */
.thm {
  --i: 1;
  position: relative; display: inline-flex; align-items: center; flex: none;
  padding: 3px; border-radius: var(--radius-pill);
  background: rgb(var(--lift-rgb) / .055);
  border: 1px solid rgb(var(--lift-rgb) / .10);
}
.thm__pip {
  position: absolute; left: 3px; top: 3px; width: 28px; height: 28px;
  border-radius: 50%; background: rgb(var(--lift-rgb) / .13);
  transform: translateX(calc(var(--i) * 28px));
  transition: transform var(--t-ui) var(--ease-out);
}
.thm__b {
  position: relative; z-index: 1;
  width: 28px; height: 28px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--faint);
  transition: color var(--t-ui) var(--ease-out);
}
.thm__b:hover { color: var(--t900); }
.thm__b[aria-checked='true'] { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .thm__pip { transition: none; } }

/* The 240ms it takes for one room to become the other. Deliberately global and
   deliberately brief: the alternative is every surface on the page snapping at
   once, which reads as a reload rather than a setting. Added for the switch
   and removed straight after, so nothing carries a transition it did not ask
   for into the scroll. */
html.thm-x, html.thm-x * {
  transition: background-color .24s var(--ease-io), border-color .24s var(--ease-io),
              color .24s var(--ease-io), fill .24s var(--ease-io) !important;
}
@media (prefers-reduced-motion: reduce) { html.thm-x, html.thm-x * { transition: none !important; } }

/* In the menu it gets a name, because there it is a setting in a list rather
   than an icon in a bar. */
.menu__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px 2px 4px; margin-top: 4px;
  border-top: 1px solid var(--hairline);
}
.menu__lab { font-size: 16px; font-weight: 600; color: var(--muted); }

@media (max-width: 900px) {
  .nav__right .thm { display: none; }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__right { margin-left: auto; }
  .nav__right .btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .ann { font-size: 12.5px; }
  .ann__hide { display: none; }
}

/* ─── Generic section furniture ───────────────────────────────────────── */

.sec { position: relative; padding-block: clamp(80px, 11vw, 156px); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand-label);
  margin: 0 0 18px;
}
.kicker::before {
  content: ''; width: 18px; height: 1px; background: var(--brand); opacity: .8;
}
h2.h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.1vw, 52px); line-height: 1.08;
  letter-spacing: -.028em; margin: 0 0 18px; color: var(--ink);
  text-wrap: balance;
}
p.lede {
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6;
  color: var(--muted); margin: 0; max-width: 56ch;
}

.hr { height: 1px; background: var(--divider); border: 0; margin: 0; }

/* ─── Footer ──────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--divider); padding-block: 64px 40px; background: var(--foot-bg); }
.foot__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px 40px; flex-wrap: wrap; padding-bottom: 30px;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.foot__links a { font-size: 14.5px; color: var(--t700); }
.foot__links a:hover { color: var(--brand-text); }
.foot__bar {
  display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between;
  align-items: center; margin-top: 52px; padding-top: 22px;
  border-top: 1px solid var(--divider); color: var(--faint); font-size: 13px;
}

/* ─── The disclosure strip that sits under the hero, as in the reference ─ */
@media (max-width: 640px) {
  .disclaim {
    bottom: 10px; max-width: 94vw; padding: 6px 14px;
    font-size: 10.5px; line-height: 1.4;
  }
}
