/* Emerald Helm — marketing site
   Mirrors the Emerald Beacon system (Fraunces + DM Sans, emerald on near-black),
   moved out to sea: an abyss-green base, brass for bearings, a helm that steers. */

:root {
  --abyss: #04090a;
  --hull: #081012;
  --plate: #0d1719;
  --plate-2: #122022;
  --line: rgba(226, 240, 234, 0.08);
  --line-2: rgba(226, 240, 234, 0.14);

  --foam: #eef1ec;
  --mist: #9aaba7;
  --dim: #63746f;

  --emerald: #34d399;
  --emerald-deep: #059669;
  --emerald-glow: rgba(52, 211, 153, 0.14);
  --brass: #c8a96a;

  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Chart paper: a faint lat/long grid across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(226, 240, 234, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 240, 234, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--emerald); color: var(--abyss); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--emerald); color: #03140e; box-shadow: 0 0 0 0 var(--emerald-glow); }
.btn--primary:hover { background: #5ee0b0; box-shadow: 0 0 40px 4px var(--emerald-glow); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--foam); }
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 12px; }

/* ---------- Top bar + nav (Beacon's two-tier header) ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar a { color: var(--mist); text-decoration: none; }
.topbar a:hover { color: var(--emerald); }
.topbar__signin { border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 999px; padding: 5px 16px; color: var(--emerald) !important; font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 9, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--mist); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--foam); }
.nav__links a.is-active { color: var(--emerald); }
.nav__mobile-cta { display: none; }
.nav__right { display: flex; align-items: center; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; color: var(--emerald); transition: transform 1.2s var(--ease); }
.logo:hover .logo__mark { transform: rotate(90deg); }
.logo__word { display: flex; align-items: baseline; gap: 0.3em; line-height: 1; white-space: nowrap; }
.logo__emerald { font-family: "Lobster", cursive; font-size: 34px; color: var(--foam); }
.logo__helm { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--emerald); }

.compass { display: flex; align-items: center; gap: 8px; color: var(--brass); }
.compass__rose { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.compass__deg { font-family: var(--mono); font-size: 13px; width: 4ch; }

.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.nav__toggle i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--foam); transition: transform .3s var(--ease); }
.nav__toggle i:first-of-type { top: 17px; }
.nav__toggle i:last-of-type { top: 25px; }
.nav__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero: the helm on the horizon ---------- */
.hero {
  position: relative;
  min-height: max(940px, 122svh);
  display: flex; align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 34% at 50% 72%, rgba(52, 211, 153, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(200, 169, 106, 0.06), transparent 70%),
    linear-gradient(180deg, #030708 0%, #06100f 58%, var(--abyss) 100%);
}
.hero__sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__dial {
  position: absolute; left: 50%; top: 72%;
  width: min(1500px, 150vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.dial { width: 100%; height: 100%; will-change: transform; }
.dial__helm { color: rgba(52, 211, 153, 0.055); }
.dial text { font-family: var(--mono); font-size: 15px; fill: rgba(200, 169, 106, 0.55); }
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(4, 9, 10, 0.55) 45%, var(--abyss) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; text-align: center; padding-top: clamp(64px, 9vh, 112px); }

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 24px; border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 999px;
  background: rgba(4, 9, 10, 0.5);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald); font-weight: 600;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); }

.hero__title {
  margin: 30px auto 0; max-width: 16ch;
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(44px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title em { display: block; font-style: italic; font-weight: 300; color: var(--emerald); margin-top: 0.08em; }
.hero__lede { max-width: 60ch; margin: 34px auto 0; color: var(--mist); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero__coords {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: rgba(200, 169, 106, 0.7); letter-spacing: 0.06em;
  max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto;
}

/* Page-load: the one orchestrated moment */
.hero .pill, .hero__title, .hero__lede, .hero__cta { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
.hero__title { animation-delay: .12s; }
.hero__lede { animation-delay: .26s; }
.hero__cta { animation-delay: .38s; }
.hero__dial { animation: surface 2.4s var(--ease) both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes surface { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- Manifest ---------- */
.manifest { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--hull); padding: 56px 0; }
.manifest__title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.01em; text-align: center; max-width: 34ch; margin: 0 auto 40px; color: var(--foam); text-wrap: balance; }
.manifest__list { display: grid; grid-template-columns: repeat(5, 1fr); border-left: 1px solid var(--line); }
.manifest__list li { padding: 4px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.manifest__tool { font-size: 14px; color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, 0.55); }
.manifest__now { font-size: 15px; color: var(--foam); line-height: 1.45; }

/* ---------- Section heads ---------- */
section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.028em;
  text-wrap: balance;
}
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 900px; }

.bearing {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 14px; color: var(--brass); letter-spacing: 0.04em;
}
.bearing__deg {
  font-family: var(--mono); font-size: 12px;
  padding: 4px 10px; border: 1px solid rgba(200, 169, 106, 0.35); border-radius: 999px;
}

/* ---------- Leaks ---------- */
.leaks { padding: clamp(88px, 10vw, 132px) 0; }
.leaks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.leak { background: var(--abyss); padding: 44px 40px 48px; }
.leak__icon { width: 26px; height: 26px; fill: none; stroke: var(--emerald); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.leak h3 { font-family: var(--serif); font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 14px; }
.leak p { color: var(--mist); font-size: 16px; }

/* ---------- Decks (feature sections) ---------- */
.deck { position: relative; overflow-x: clip; padding: clamp(88px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.deck::before {
  /* a bow wave of light behind each instrument */
  content: ""; position: absolute; z-index: -1; top: 10%; right: -10%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.07), transparent);
  pointer-events: none;
}
.deck--flip::before { right: auto; left: -10%; }
.deck__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.deck--flip .deck__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.deck--flip .deck__copy { order: 2; }
.deck__lede { color: var(--mist); font-size: 18px; margin-top: 24px; max-width: 54ch; }
.ticks { margin-top: 32px; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 30px; color: var(--mist); font-size: 16px; line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px;
  border: 1.5px solid var(--emerald); border-radius: 50%;
  background: radial-gradient(circle, var(--emerald) 2.5px, transparent 3px);
}
.ticks strong { color: var(--foam); font-weight: 600; }

/* ---------- Product windows (the "instruments") ---------- */
.window {
  position: relative;
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--plate) 0%, var(--hull) 100%);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(52, 211, 153, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 13px; line-height: 1.45;
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.window__bar span { margin-left: 12px; color: var(--mist); font-size: 12px; }
.window h4 { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--foam); }

.logo-tile {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c);
  font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
}
.health { width: 9px; height: 9px; border-radius: 50%; }
.health--good { background: var(--good); box-shadow: 0 0 10px var(--good); }
.health--warn { background: var(--warn); box-shadow: 0 0 10px rgba(251, 191, 36, .6); }
.health--bad { background: var(--bad); box-shadow: 0 0 10px rgba(248, 113, 113, .6); }

/* Client wall */
.wall { padding: 18px; }
.wall__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wall__chips > * { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--mist); font-size: 12px; font-weight: 400; }
.wall__chips b { background: var(--foam); color: var(--abyss); border-color: var(--foam); font-weight: 600; }
.wall__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ccard { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, 0.015); }
.ccard__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ccard h4 { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard__stage { color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.chips { display: flex; gap: 4px; margin: 10px 0; flex-wrap: wrap; }
.chips span { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: var(--mist); }
.ccard__stats { display: flex; gap: 12px; font-size: 11.5px; color: var(--dim); }
.ccard__stats b { color: var(--foam); font-weight: 600; }
.ccard__stats .warn b { color: var(--warn); }
.ccard__stats .bad b { color: var(--bad); }
.strip { display: flex; align-items: center; gap: 3px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.strip i { width: 12px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.strip i.on { background: var(--good); }
.strip i.off { background: var(--bad); }
.strip em { font-style: normal; font-size: 11px; color: var(--dim); margin-left: auto; }

/* Weekly meeting + scorecard */
.agenda { display: grid; grid-template-columns: 150px 1fr; }
.agenda__steps { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 2px; align-content: start; counter-reset: s; }
.agenda__steps li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--dim); font-size: 12.5px; }
.agenda__steps em { font-style: normal; font-family: var(--mono); font-size: 11.5px; }
.agenda__steps .done { color: var(--mist); text-decoration: line-through; text-decoration-color: var(--dim); }
.agenda__steps .now { background: var(--emerald-glow); color: var(--foam); }
.agenda__steps .now em { color: var(--emerald); }
.score { padding: 16px; overflow-x: auto; }
.score__head, .score__row { display: grid; grid-template-columns: minmax(120px, 1.7fr) 58px repeat(6, minmax(40px, 1fr)); gap: 4px; align-items: center; }
.score__head { color: var(--dim); font-size: 11px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.score__head span:nth-child(n+3) { text-align: center; }
.score__head .cur { color: var(--emerald); }
.score__row { padding: 5px 0; font-size: 12px; color: var(--mist); }
.score__row .mono { font-size: 11px; color: var(--dim); }
.score__row b { text-align: center; padding: 5px 0; border-radius: 6px; font-weight: 500; font-size: 11.5px; font-family: var(--mono); }
.score__row b.g { background: rgba(52, 211, 153, 0.12); color: #7ee8bf; }
.score__row b.r { background: rgba(248, 113, 113, 0.13); color: #fca5a5; }
.score__row b.cur { box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.45); }
.score__row b.empty { color: var(--dim); background: rgba(255, 255, 255, 0.03); }
.rocks { grid-column: 2; padding: 4px 16px 18px; display: grid; gap: 6px; }
.rock { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--mist); font-size: 12.5px; }
.tag { flex: none; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag--on { background: rgba(52, 211, 153, 0.14); color: var(--emerald); }
.tag--off { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.tag--done { background: rgba(200, 169, 106, 0.16); color: var(--brass); }

/* Meeting log */
.logbook { display: grid; grid-template-columns: 1.15fr 1fr; }
.transcript { padding: 18px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.line { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.who { color: var(--c); font-weight: 600; font-size: 12px; }
.line time { color: var(--dim); font-size: 11px; justify-self: end; }
.line p { grid-column: 1 / -1; color: var(--mist); font-size: 12.5px; }
.wave {
  height: 34px; margin-top: 4px; border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(52, 211, 153, 0.55) 0 2px, transparent 2px 5px);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 34' preserveAspectRatio='none'%3E%3Cpath d='M0 17 Q10 4 20 17 T40 17 T60 10 T80 17 T100 3 T120 17 T140 12 T160 17 T180 6 T200 17 Q190 30 180 17 T160 22 T140 17 T120 28 T100 17 T80 24 T60 17 T40 30 T20 17 T0 17Z'/%3E%3C/svg%3E") center / 100% 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 34' preserveAspectRatio='none'%3E%3Cpath d='M0 17 Q10 4 20 17 T40 17 T60 10 T80 17 T100 3 T120 17 T140 12 T160 17 T180 6 T200 17 Q190 30 180 17 T160 22 T140 17 T120 28 T100 17 T80 24 T60 17 T40 30 T20 17 T0 17Z'/%3E%3C/svg%3E") center / 100% 100%;
}
.outcomes { padding: 18px; display: grid; gap: 8px; align-content: start; }
.outcomes h4 { margin-bottom: 4px; }
.outcome { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; }
.outcome p { color: var(--mist); font-size: 12px; min-width: 0; }
.outcome button { font: inherit; font-size: 11px; color: var(--dim); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: default; }
.kind { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.kind--todo { background: rgba(52, 211, 153, 0.14); color: var(--emerald); }
.kind--score { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }
.kind--issue { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.kind--head { background: rgba(200, 169, 106, 0.16); color: var(--brass); }

/* Video player */
.player { display: grid; grid-template-columns: 1.6fr 1fr; }
.player__screen { position: relative; aspect-ratio: 16 / 10.5; background: #0a1416; border-right: 1px solid var(--line); overflow: hidden; }
.player__slide { position: absolute; inset: 18px 18px 48px; border-radius: 10px; background: linear-gradient(160deg, #10201f, #0b1517); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; }
.player__kicker { font-family: var(--serif); font-size: 20px; color: var(--foam); }
.player__bars { flex: 1; display: flex; align-items: flex-end; gap: 8%; padding: 12px 6% 0; }
.player__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--emerald), rgba(52, 211, 153, 0.15)); }
.player__cam {
  position: absolute; left: 26px; bottom: 58px; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--foam);
  background: radial-gradient(circle at 50% 38%, #d8b99a 0 17%, transparent 18%), radial-gradient(ellipse at 50% 100%, #2a4a44 0 45%, transparent 46%), #1b2f2c;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.player__track { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 12px; }
.player__track::before { content: ""; position: absolute; left: 0; right: 90px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.player__track i { position: relative; height: 3px; border-radius: 3px; background: var(--emerald); max-width: calc(100% - 90px); }
.player__track span { margin-left: auto; font-size: 11px; color: var(--mist); }
.player__side { padding: 16px; display: grid; gap: 8px; align-content: start; }
.player__side p { color: var(--mist); font-size: 12px; margin-bottom: 8px; }
.chapters { display: grid; gap: 2px; }
.chapters li { display: flex; gap: 10px; padding: 6px 8px; border-radius: 7px; color: var(--mist); font-size: 12px; }
.chapters time { color: var(--dim); font-size: 11px; }
.chapters .on { background: var(--emerald-glow); color: var(--foam); }
.chapters .on time { color: var(--emerald); }

/* Portal (what the client sees: lighter, calmer) */
.window--light { background: linear-gradient(180deg, #f4f6f2, #e9eee9); color: #10201d; border-color: rgba(255, 255, 255, 0.2); }
.window--light .window__bar { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.07); }
.window--light .window__bar i { background: rgba(0, 0, 0, 0.12); }
.window--light .window__bar span { color: #5a6b67; }
.portal { padding: 22px; display: grid; gap: 16px; }
.portal__head { display: flex; align-items: center; gap: 12px; }
.portal__head h4 { color: #10201d; font-size: 16px; font-family: var(--serif); font-weight: 500; }
.portal__head p { color: #6b7b77; font-size: 11.5px; }
.portal__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.portal__stat { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.portal__stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--emerald-deep); line-height: 1.1; }
.portal__stat span { color: #5a6b67; font-size: 11.5px; }
.portal__list { background: #fff; border-radius: 12px; padding: 6px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.portal__list div { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 12.5px; color: #2b3b38; }
.portal__list div + div { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.window--light .tag--on { background: rgba(5, 150, 105, 0.12); color: var(--emerald-deep); }
.window--light .tag--done { background: rgba(160, 126, 60, 0.14); color: #8a6a2c; }
.portal__videos { display: flex; gap: 10px; }
.portal__videos span { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #10201d; color: #e9eee9; font-size: 12px; }
.play { width: 24px; height: 24px; border-radius: 50%; background: var(--emerald); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 9px; top: 7px; border-left: 8px solid #03140e; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- Rigging ---------- */
.rigging { padding: clamp(88px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.rig { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.rig__item { padding: 28px 28px 0 0; }
.rig__item + .rig__item { padding-left: 28px; border-left: 1px solid var(--line); }
.rig h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.rig p { color: var(--mist); font-size: 15.5px; }

/* ---------- Origin ---------- */
.origin { padding: 88px 0; background: var(--hull); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.origin__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1040px; }
.origin__mark { width: clamp(84px, 11vw, 140px); height: auto; aspect-ratio: 1; color: var(--brass); opacity: .85; }
.origin h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.origin p { color: var(--mist); font-size: 18px; max-width: 64ch; }
.origin a { color: var(--emerald); text-decoration-color: rgba(52, 211, 153, 0.4); text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 128px) 0 clamp(120px, 12vw, 180px); text-align: center; isolation: isolate; }
.final__rings {
  position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; transform: translate(-50%, -50%); z-index: -1;
  background:
    radial-gradient(closest-side, rgba(52, 211, 153, 0.14), transparent 55%),
    repeating-radial-gradient(circle, transparent 0 89px, rgba(226, 240, 234, 0.05) 89px 90px);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.final__mark { width: 72px; height: 72px; margin: 0 auto 32px; color: var(--emerald); animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.final h2 { font-size: clamp(52px, 8vw, 112px); letter-spacing: -0.04em; font-style: italic; font-weight: 300; }
.final__inner > p { max-width: 54ch; margin: 24px auto 0; color: var(--mist); font-size: 18px; }

/* ---------- Beta sign-up ---------- */
.beta, .beta__done {
  max-width: 780px; margin: 56px auto 0; text-align: left;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 23, 25, 0.92), rgba(8, 16, 18, 0.92));
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8);
}
.beta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label, .field__label { font-size: 14px; font-weight: 600; color: var(--foam); }
.field__opt { font-weight: 400; color: var(--dim); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--foam);
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aaba7' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.field select:invalid { color: var(--dim); }
.field option { background: var(--hull); color: var(--foam); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-glow); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; cursor: pointer; font-weight: 400; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; color: var(--mist); transition: all .2s;
}
.checks input:checked + span { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-glow); }
.checks input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 2px; }
.beta__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta__error { margin-top: 20px; color: #fca5a5; font-size: 15px; }
.beta__submit { width: 100%; margin-top: 28px; }
.beta__submit[disabled] { opacity: .6; cursor: progress; }
.beta__alt { margin-top: 16px; text-align: center; font-size: 15px; color: var(--dim); }
.beta__alt a { color: var(--mist); text-underline-offset: 3px; }
.beta__alt a:hover { color: var(--emerald); }
.beta__done { text-align: center; }
.beta__done h3 { font-family: var(--serif); font-size: 32px; margin-bottom: 10px; }
.beta__done p { color: var(--mist); font-size: 18px; }
.beta__done strong { color: var(--emerald); font-weight: 600; }
.beta__done:focus { outline: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer .logo__mark { width: 32px; height: 32px; }
.footer .logo__emerald { font-size: 27px; }
.footer .logo__helm { font-size: 24px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.footer__links a { color: var(--mist); text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: var(--emerald); }
.footer__legal { grid-column: 1 / -1; color: var(--dim); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__legal a { color: var(--mist); }

/* ---------- Scroll reveal for the instruments only ---------- */
.js .window { opacity: 0; transform: translateY(40px) scale(.985); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .window.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .compass { display: none; }
  .deck__grid, .deck--flip .deck__grid { grid-template-columns: 1fr; }
  .deck--flip .deck__copy { order: 0; }
  .manifest__list { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .rig { grid-template-columns: repeat(2, 1fr); }
  .rig__item:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .topbar__inner > span { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .nav__inner { min-height: 72px; gap: 16px; }
  .nav__toggle { display: block; }
  .nav__right .btn { display: none; }
  .nav__right { margin-left: auto; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--abyss); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.6);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav__mobile-cta { display: block; color: var(--emerald) !important; border-bottom: 0 !important; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__emerald { font-size: 28px; }
  .logo__helm { font-size: 25px; }

  .leaks__grid { grid-template-columns: 1fr; }
  .leak { padding: 32px 26px; }
  .wall__grid { grid-template-columns: repeat(2, 1fr); }
  .agenda { grid-template-columns: 1fr; }
  .agenda__steps { grid-template-columns: repeat(7, auto); border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .agenda__steps li { flex-direction: column; gap: 2px; white-space: nowrap; }
  .rocks { grid-column: 1; }
  .logbook, .player { grid-template-columns: 1fr; }
  .transcript, .player__screen { border-right: 0; border-bottom: 1px solid var(--line); }
  .origin__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 0; padding-bottom: 300px; }
  .hero__dial { width: 250vw; }
  .pill { font-size: 11px; letter-spacing: 0.12em; padding: 9px 16px; }
  .hero__coords span:last-child { display: none; }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; }
  .manifest__list { grid-template-columns: 1fr; border-left: 0; }
  .manifest__list li { border-right: 0; border-left: 2px solid var(--line-2); }
  .wall__grid { grid-template-columns: 1fr; }
  .wall__grid .ccard:nth-child(n+4) { display: none; }
  .score__head, .score__row { grid-template-columns: minmax(104px, 1.6fr) 50px repeat(6, 38px); }
  .portal__row { grid-template-columns: 1fr; }
  .beta__grid { grid-template-columns: 1fr; }
  .portal__videos { flex-direction: column; }
  .rig { grid-template-columns: 1fr; }
  .rig__item, .rig__item + .rig__item { padding: 24px 0 0; border-left: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero .pill, .hero__title, .hero__lede, .hero__cta { opacity: 1; transform: none; }
  .js .window { opacity: 1; transform: none; }
}
