/* Moonwalker site. Shared tokens and page styles.
   Every module reads the variables below; keep names and values stable. */

:root {
  color-scheme: dark;
  --bg: #07090D;
  --bg-2: #0B0E13;
  --panel: #10141B;
  --panel-2: #151A22;
  --line: rgba(194, 160, 107, .22);
  --line-2: rgba(232, 230, 225, .10);
  --fg: #E8E6E1;
  --muted: #9AA3AE;
  --gold: #C2A06B;
  --gold-2: #D9BC8C;
  --ok: #6FCF97;
  --danger: #FF6B6B;
  --radius: 14px;
  --sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --serif: 'Newsreader', Georgia, serif;

  /* page-level helpers (not part of the shared contract) */
  --deny: #D08A7A;              /* refused-record rose for the static record cards */
  --gold-soft: rgba(194, 160, 107, .12);
  --maxw: 1200px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg, #07090D);
  color: var(--fg, #E8E6E1);
  font-family: var(--sans);
  font-size: clamp(16px, .95rem + .15vw, 17.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-weight: 650; letter-spacing: -.025em; line-height: 1.08; color: var(--fg); }
em.g, .g { font-style: normal; color: var(--gold); }
h1 .g, h2 .g, h1 em.g, h2 em.g, .letter h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
strong, b { font-weight: 600; color: var(--fg); }
::selection { background: rgba(194, 160, 107, .35); color: var(--fg); }

:focus-visible { outline: 2px solid var(--gold-2, #D9BC8C); outline-offset: 3px; border-radius: 4px; }

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow .ix { color: var(--muted); letter-spacing: .08em; }
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--gold); opacity: .8;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 20px; border-radius: 8px;
  font-family: var(--sans); font-size: .96rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-gold { background: var(--gold); color: #07090D; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: rgba(7, 9, 13, .45); color: var(--fg); border-color: rgba(232, 230, 225, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn .arrow { font-family: var(--mono); transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }

.textlink {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.textlink:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.open { background: var(--bg, #07090D); border-bottom-color: var(--line-2); }
.site-header.scrolled, .site-header.solid {
  background: rgba(7, 9, 13, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-2);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); }
.brand .name { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; letter-spacing: .26em; text-transform: uppercase; }
.brand .inc {
  font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .08em;
  border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 4px;
}
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a { white-space: nowrap; }
.navlinks a:not(.btn) {
  font-size: .9rem; color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 6px;
  transition: color .15s ease;
}
.navlinks a:not(.btn):hover, .navlinks a[aria-current="page"], .navlinks a[aria-current="location"] { color: var(--fg); }
@media (min-width: 1101px) {
  .navlinks a[aria-current]:not(.btn) { text-decoration: underline 1px var(--gold); text-underline-offset: 8px; }
}
.site-header .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.site-header .progress i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.navlinks .btn { margin-left: 10px; }
/* narrow desktops: the links close up so "Start a conversation" stays inside the page */
@media (min-width: 1101px) and (max-width: 1260px) {
  .navlinks a:not(.btn) { padding: 8px 6px; font-size: .84rem; }
  .navlinks .btn { margin-left: 6px; }
}
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line-2);
  background: transparent; color: var(--fg); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .navlinks {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 22px;
    background: var(--bg, #07090D); border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .site-header.open .navlinks { display: flex; }
  .navlinks a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; color: var(--fg); border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .navlinks .btn { margin: 18px 0 0; }
  html.js .navlinks { display: none; }
  html.js .site-header.open .navlinks { display: flex; }
}
@media (max-width: 1100px) {
  html:not(.js) .navlinks { position: static; display: flex; flex-direction: row; flex-wrap: wrap; background: none; border: 0; padding: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(660px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) 0 150px;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(194, 160, 107, .07), transparent 70%),
    var(--bg);
}
#globe {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero.globe-ready #globe { opacity: 1; }
/* still art until the globe renders, and for good when it cannot */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/bg.jpg") 72% center / cover no-repeat;
  opacity: .78; transition: opacity 1.2s ease;
}
/* with scripts on, the still art downloads only if the globe falls back */
html.js .hero:not(.globe-fallback)::before { background-image: none; }
/* the globe replaces the still art once it renders */
.hero.globe-ready::before { opacity: 0; }
/* scrim that keeps the words readable over the globe */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .96) 0%, rgba(7, 9, 13, .86) 30%, rgba(7, 9, 13, .38) 55%, rgba(7, 9, 13, 0) 72%),
    linear-gradient(180deg, rgba(7, 9, 13, .7) 0%, rgba(7, 9, 13, 0) 18%, rgba(7, 9, 13, 0) 78%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-inner a, .hero-inner button, .hero-inner .chips li,
.hero-inner h1, .hero-inner .sub, .hero-inner .lede, .hero-inner .eyebrow { pointer-events: auto; }
.hero-copy { max-width: 900px; }
.hero h1, .hero .sub, .hero .lede { max-width: 820px; }
.hero h1 {
  margin: 22px 0 0; max-width: 13.2em;
  font-size: clamp(2.5rem, 1rem + 3.3vw, 4rem);
  font-weight: 700; letter-spacing: -.038em; line-height: .98;
}
.hero h1 .line.g { font-size: 1.06em; line-height: 1.08; margin-top: .1em; padding-bottom: .04em; }
/* short hero: two lines, set larger */
.hero h1.short { max-width: none; font-size: clamp(3rem, 1.1rem + 4.9vw, 5.9rem); letter-spacing: -.045em; }
.hero h1.short .line.g { font-size: 1.1em; }
.hero h1.short + .sub { max-width: 46ch; }
/* keep the hero words crisp where they cross the globe's limb */
.hero h1, .hero .sub, .hero .lede, .hero .eyebrow {
  text-shadow: 0 1px 2px rgba(7, 9, 13, .7), 0 0 22px rgba(7, 9, 13, .85);
}
.hero h1 .line { display: block; }
.hero .sub {
  margin: 28px 0 0; max-width: 36ch;
  font-size: clamp(1.12rem, .95rem + .45vw, 1.3rem); font-weight: 500; line-height: 1.35; letter-spacing: -.01em;
  color: var(--fg);
}
.hero .lede { margin: 10px 0 0; max-width: 56ch; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg); padding: 7px 11px; border-radius: 6px;
  background: rgba(16, 20, 27, .72); border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); flex: none; }
.chips li.k { border-color: var(--line); color: var(--gold-2); }
/* hero eyebrow: the dash stays on the first line if the words wrap */
.hero .hero-eyebrow { align-items: flex-start; line-height: 1.5; }
.hero .hero-eyebrow::before { margin-top: .72em; }
/* the capability statement, a small link under the chips */
.hero-dl { margin: 18px 0 0; }
.hero-dl .textlink { font-size: .72rem; }

.hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  pointer-events: none;
}
.hud .wrap {
  display: grid; gap: 8px;
  padding-bottom: 24px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.hud-time { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.hud-sub { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; margin-left: auto; max-width: 640px; }
.globe-stats { color: var(--fg); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.globe-stats[hidden] { display: none; }
.clock abbr { text-decoration: none; border: 0; }
.timewarp { display: inline-flex; align-items: center; gap: 2px; pointer-events: auto; border: 1px solid var(--line-2); border-radius: 7px; padding: 2px; background: rgba(7, 9, 13, .6); }
.timewarp[hidden] { display: none; }
.timewarp .tw-lbl { color: var(--gold); padding: 0 6px 0 5px; }
.timewarp button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 .72rem/1 var(--mono); letter-spacing: .04em; min-height: 26px; min-width: 40px; padding: 0 8px; border-radius: 5px;
}
.timewarp button:hover { color: var(--fg); }
.timewarp button[aria-pressed="true"] { background: var(--gold); color: #07090D; }
.globe-caption .cap-touch, .globe-caption .cap-touch-hint { display: none; }
@media (hover: none) { .globe-caption .cap-fine { display: none; } .globe-caption .cap-touch, .globe-caption .cap-touch-hint { display: inline; } }
.hero.globe-fallback .globe-caption, .hero.globe-fallback .globe-stats { display: none; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(194, 160, 107, .6); flex: none; }
/* a few pulses on arrival, then still */
@media (prefers-reduced-motion: no-preference) { .dot { animation: pulse 3.2s ease-out 3; } }

/* one page-wide pause for everything that moves on its own (globe, pulses, the sample ladder) */
.motion-toggle {
  appearance: none; cursor: pointer; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: rgba(7, 9, 13, .6);
  border: 1px solid var(--line-2); border-radius: 7px; min-height: 32px; padding: 0 10px;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--fg); border-color: var(--line); }
.motion-toggle::before { content: ""; width: 8px; height: 9px; flex: none; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.motion-toggle[data-state="paused"] { color: var(--gold-2); border-color: var(--line); }
.motion-toggle[data-state="paused"]::before { border: 0; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
html.motion-paused .dot, html.motion-paused .map .pin .halo { animation-play-state: paused; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194, 160, 107, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(194, 160, 107, 0); } }
.clock { color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.clock .lbl { color: var(--gold); margin-right: 8px; }
.globe-caption {
  text-transform: none; letter-spacing: .01em; line-height: 1.5; font-size: .76rem;
  opacity: 0; transform: translateY(4px); transition: opacity .8s ease .3s, transform .8s ease .3s;
}
.hero.globe-ready .globe-caption { opacity: 1; transform: none; }

/* tooltip created by globe.js; cosmetic only, globe.js owns its position */
.globe-tip {
  position: absolute; z-index: 4; pointer-events: none;
  font-family: var(--mono); font-size: .72rem; line-height: 1.45; letter-spacing: .02em;
  color: var(--fg); background: rgba(16, 20, 27, .94); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; max-width: 260px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

@media (min-width: 761px) {
  /* nothing draws behind the fixed header */
  #globe { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px); mask-image: linear-gradient(180deg, transparent 0, #000 110px); }
  /* the caption line keeps a local backing so it never sits on raw satellite speckle */
  .hud-sub { background: linear-gradient(90deg, transparent, rgba(7, 9, 13, .78) 18%); padding: 6px 0 6px 40px; border-radius: 8px; }
}
/* laptop heights (1366x768, 1280x800, 1536x864): the whole hero, HUD included, fits the
   first screen. The lede is left out here only; its words open the platform section. */
@media (min-width: 761px) and (max-height: 880px) {
  .hero { padding: calc(var(--header-h) + 14px) 0 108px; }
  .hero h1 { margin-top: 14px; font-size: min(clamp(2.5rem, 1rem + 3.3vw, 4rem), 7.4svh); }
  .hero h1.short { font-size: min(clamp(3rem, 1.1rem + 4.9vw, 5.9rem), 10.5svh); }
  .hero .sub { margin-top: 18px; }
  .hero .cta { margin-top: 22px; }
  .hero .chips { margin-top: 20px; }
  .hero-dl { margin-top: 14px; }
  .hud .wrap { padding-bottom: 16px; gap: 6px; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .hero .lede { display: none; }
}
/* short or narrow desktop windows: the HUD can wrap taller than the space kept for it, so it
   joins the flow under the hero content (as on phones) and never rides over the buttons */
@media (min-width: 761px) and (max-height: 700px), (min-width: 761px) and (max-width: 1100px) {
  .hero { padding-bottom: 28px; }
  .hud { position: relative; margin-top: 22px; }
  .hud .wrap { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding: 0 0 28px; justify-content: flex-start; }
  /* phones: the Earth rises as a horizon across the top of the first screen, above the
     words, so satellites move on the first view; nothing sits over the text. The lede is
     left out here only; its words open the platform section. */
  #globe {
    position: relative; order: -1; inset: auto; width: 100%; height: 60vw; max-height: 320px; margin: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0, #000 var(--header-h), #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0, #000 var(--header-h), #000 72%, transparent 100%);
  }
  .hero-inner { order: 0; margin-top: 4px; }
  .hero .lede { display: none; }
  .hud { position: relative; order: 2; margin-top: 4px; }
  .hud .wrap { padding-bottom: 0; }
  .hud-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hud-sub { align-items: flex-start; text-align: left; margin-left: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, .35) 40%, rgba(7, 9, 13, 0) 60%, rgba(7, 9, 13, 0) 90%, var(--bg) 100%); }
  .hero.globe-ready::after { background: linear-gradient(180deg, rgba(7, 9, 13, 0) 90%, var(--bg) 100%); }
  .hero::before { background-position: 40% center; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .chips li { font-size: .66rem; padding: 7px 9px; }
  /* phones: the eyebrow keeps its short form on one line */
  .hero-eyebrow .ew-long { display: none; }
  .hero .hero-eyebrow { letter-spacing: .1em; }
  .hero-dl { margin-top: 14px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.band { padding: clamp(56px, 7vw, 100px) 0; }
.band.glow { background: radial-gradient(60% 50% at 50% 0%, rgba(194, 160, 107, .10), transparent), var(--bg-2); }
.band.alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.band.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(232, 230, 225, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 225, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.band > .wrap { position: relative; z-index: 1; }
.head { max-width: 820px; margin-bottom: clamp(34px, 4vw, 56px); }
.head h2, .h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1rem + 1.9vw, 2.6rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.08;
  text-wrap: balance;
}
.head .intro, .intro { margin-top: 18px; color: var(--muted); font-size: 1.06rem; max-width: 68ch; }
.head .intro strong { color: var(--fg); }
.subhead { margin: clamp(64px, 7vw, 96px) 0 28px; max-width: 820px; }
.subhead h3 { margin-top: 14px; font-size: clamp(1.35rem, 1rem + 1.1vw, 1.85rem); letter-spacing: -.025em; }
.subhead p { margin-top: 14px; color: var(--muted); max-width: 68ch; }

/* card grids */
.cards { display: grid; gap: 16px; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .cards.c3, .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: linear-gradient(180deg, var(--panel), rgba(16, 20, 27, .72));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
  transition: border-color .2s ease, background-color .2s ease, transform .25s ease;
}
.card:hover { border-color: var(--line); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card .idx {
  display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.card h3, .card h4 { font-size: 1.24rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: .8em; }
.card::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px;
  background: var(--gold); opacity: .5; transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s ease;
}
.card:hover::after { transform: scaleX(1); }

/* ---------- three doors ---------- */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1100px; }
@media (max-width: 1020px) { .doors { grid-template-columns: 1fr; } }
.door {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  min-height: 460px; padding: clamp(26px, 2.8vw, 36px);
  border-radius: 18px; border: 1px solid var(--line-2);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(194, 160, 107, .16), transparent 60%),
    linear-gradient(170deg, var(--panel-2), var(--panel) 55%, var(--bg-2));
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .25s ease;
  will-change: transform;
}
.door.tilting { transition: transform .08s linear, border-color .25s ease; }
.door:hover { border-color: var(--line); }
.door::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--gold); opacity: 0; transition: opacity .3s ease;
  -webkit-mask: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%);
  mask: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%);
}
.door:hover::before { opacity: .55; }
.door .num { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.door h3 { margin: 26px 0 12px; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; }
.door .job { color: var(--fg); font-size: 1.04rem; line-height: 1.5; margin: 0 0 22px; }
.door ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.door li { position: relative; padding-left: 20px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.door li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 1px; background: var(--gold); }
.door .go { margin-top: auto; }
.door .glyph { position: absolute; right: 26px; top: 26px; width: 54px; height: 54px; opacity: .85; }
@media (max-width: 1020px) { .door { min-height: 0; } }

/* ---------- custody ---------- */
.custody-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .custody-grid { grid-template-columns: 1fr; } }
.custody-demo { margin-top: clamp(36px, 4vw, 56px); }
.custody-copy h2, .custody-h { font-size: clamp(1.9rem, 1.05rem + 2.3vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin-top: 16px; }
.custody-copy h2 .g, .custody-h .g { display: block; }
.custody-copy p { color: var(--muted); margin-top: 0; margin-bottom: 18px; max-width: 60ch; }
.custody-copy .two {
  margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.custody-copy .two div {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; background: rgba(16, 20, 27, .6);
}
.custody-copy .two b { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 6px; }
.custody-copy .two span { font-size: .95rem; color: var(--fg); }
#record-demo { min-height: 320px; }

/* ---------- console strip (zero trust roles) ---------- */
.roles {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  margin-top: 36px;
}
.roles div { padding: 18px 18px 20px; border-right: 1px solid var(--line-2); }
.roles div:last-child { border-right: 0; }
.roles b { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.roles span { font-size: .92rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 1020px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .roles div { border-bottom: 1px solid var(--line-2); } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } .roles div { border-right: 0; } }

.plane-lede { font-size: clamp(1.08rem, .98rem + .35vw, 1.24rem); color: var(--fg); max-width: 64ch; line-height: 1.55; }
.plane-lede + p { color: var(--muted); max-width: 70ch; }

/* ---------- record cards (static samples) ---------- */
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .records { grid-template-columns: 1fr; } }
.record {
  border-radius: var(--radius); padding: 22px 24px; font-family: var(--mono); font-size: .82rem;
  background: var(--panel); border: 1px solid var(--line-2);
}
.record.allow { border-color: rgba(194, 160, 107, .42); background: linear-gradient(180deg, rgba(194, 160, 107, .07), var(--panel) 60%); }
.record.deny { border-color: rgba(208, 138, 122, .42); background: linear-gradient(180deg, rgba(208, 138, 122, .06), var(--panel) 60%); }
.record .verdict { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.record.allow .verdict { color: var(--gold); }
.record.deny .verdict { color: var(--deny); }
.record dl { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 7px 14px; margin: 0; }
.record dt { color: var(--muted); }
.record dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.record.allow dd.k { color: var(--gold); }
.record.deny dd.k { color: var(--deny); }
.record .foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); font-family: var(--sans); font-size: .9rem; color: var(--muted); line-height: 1.5; }
.records-caption { margin-top: 18px; color: var(--muted); font-size: .95rem; max-width: 80ch; }
@media (max-width: 420px) { .record dl { grid-template-columns: 1fr; gap: 2px; } .record dd { margin-bottom: 8px; } }

/* works-with */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; }
.works .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.works li { font-family: var(--mono); font-size: .76rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); background: rgba(16, 20, 27, .6); }
.works li.any { color: var(--gold); background: var(--gold-soft); border-color: var(--line); }

/* product row */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1020px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } }
.product { background: var(--bg-2); padding: 24px 24px 26px; transition: background-color .2s ease; }
.product:hover { background: var(--panel); }
.product .pn { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product h4 { margin: 8px 0 10px; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.product h4 .mw { color: var(--gold); }
.product p { color: var(--muted); font-size: .94rem; margin: 0; line-height: 1.55; }

/* missions */
.missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1020px) { .missions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .missions { grid-template-columns: 1fr; } }
.mission {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--panel); padding: 26px 24px 24px; min-height: 250px; display: flex; flex-direction: column;
}
.mission .code { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.mission h3 { margin: 50px 0 10px; font-size: 1.32rem; font-weight: 650; }
.mission p { color: var(--muted); font-size: .96rem; margin: 0 0 18px; }
.mission .on { margin-top: auto; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
.mission .on::before { content: ""; width: 14px; height: 1px; background: var(--gold); flex: none; transform: translateY(-.3em); }
.mission svg.mark { position: absolute; right: 18px; top: 16px; width: 52px; height: 52px; opacity: .55; transition: opacity .3s ease; overflow: visible; }
.mission svg.mark * { transform-box: fill-box; transform-origin: center; }
.mission:hover { border-color: var(--line); }
.mission:hover svg.mark { opacity: .95; }
.mission::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s ease;
}
.mission:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .mission svg.mark ellipse { transition: transform .6s ease; }
  .mission:hover svg.mark ellipse { transform: rotate(20deg); }
  .mission:hover svg.mark path { stroke-dasharray: 320; animation: draw .6s ease both; }
  @keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
}

/* split sections (private AI, services) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(26px, 3vw, 40px); }
.panel h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.35rem); font-weight: 650; letter-spacing: -.03em; margin: 16px 0 14px; }
.panel .intro { margin: 0 0 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ticks li { padding: 13px 0 13px 28px; border-top: 1px solid var(--line-2); position: relative; color: var(--fg); font-size: .98rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.2em; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.panel .note { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* development: what we build, private AI, where we build */
.builds { margin-top: 4px; }
.build h3 { font-size: 1.24rem; margin-bottom: 18px; }
@media (min-width: 1021px) { .build h3 { min-height: 2.5em; } }
.build .ticks li { font-size: .95rem; padding: 11px 0 11px 26px; }
.build .ticks li::before { top: 1.1em; }
.build .ticks a { color: var(--gold); text-underline-offset: 3px; }
.build .ticks a:hover { color: var(--gold-2); }
.build-note { margin: 20px 0 0; color: var(--muted); font-size: .95rem; max-width: 80ch; }
.panel.wide {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(22px, 4vw, 56px); align-items: start;
}
.panel.wide h2 { margin-top: 16px; }
/* Private AI sits inside Development, so its title is an h3 at the size of the sibling subhead h3 */
.panel .panel-title { margin: 16px 0 14px; font-size: clamp(1.35rem, 1rem + 1.1vw, 1.85rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.08; }
.panel.wide .note { margin-top: 0; }
@media (max-width: 900px) { .panel.wide { grid-template-columns: 1fr; } }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1020px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .platforms { grid-template-columns: 1fr; } }
.platform { background: var(--bg-2); padding: 24px 24px 26px; display: flex; flex-direction: column; transition: background-color .2s ease; }
.platform:hover { background: var(--panel); }
.platform .pn { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.platform h4 { margin: 8px 0 10px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.platform p { color: var(--muted); font-size: .94rem; margin: 0; line-height: 1.55; }
.platform p.to { margin-top: auto; padding-top: 14px; color: var(--fg); display: flex; gap: 10px; }
.platform p.to::before { content: ""; width: 14px; height: 1px; background: var(--gold); flex: none; margin-top: .8em; }
.platform p + p.to { margin-top: 14px; }
.tm-line { margin: 14px 0 0; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; }

/* the regulations section closes on the governance conversation */
.rules-close {
  margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 4vw, 56px); align-items: start;
}
.rules-close h3 { font-size: clamp(1.45rem, 1rem + 1.3vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.rules-close .subline { color: var(--muted); font-size: 1.08rem; margin: 0 0 22px; max-width: 60ch; }
@media (max-width: 900px) { .rules-close { grid-template-columns: 1fr; } }

/* proof */
.demos { counter-reset: d; }
.demo .idx { color: var(--gold); }
.demo p { color: var(--fg); font-size: 1.02rem; line-height: 1.55; }
.demo .tag { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* four questions */
.q { font-size: clamp(1.18rem, 1rem + .6vw, 1.42rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--fg); margin: 0 0 14px !important; }
.q-card p.a-text { color: var(--muted); }
.q-card .a { color: var(--fg); font-weight: 600; }

/* security */
.lead-big { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); color: var(--fg); line-height: 1.45; max-width: 60ch; margin-top: 20px; font-weight: 500; letter-spacing: -.01em; }
.crypto { margin-top: 30px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(194, 160, 107, .06), var(--panel) 45%); padding: clamp(24px, 3vw, 38px); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .crypto { grid-template-columns: 1fr; } }
.crypto .idx { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.crypto .algos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.crypto .algos span { font-family: var(--mono); font-size: .7rem; padding: 5px 8px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--fg); }
.crypto p { margin: 0; color: var(--fg); line-height: 1.65; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts li { border-top: 1px solid var(--line-2); padding: 18px 0; }
.facts b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: .96rem; }

.who-quote {
  margin: 34px 0 0; padding: 6px 0 6px clamp(18px, 3vw, 32px); border-left: 2px solid var(--gold);
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--fg); max-width: 40ch;
}

/* insurability teaser */
.teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } }
.gauge { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 26px; font-family: var(--mono); font-size: .8rem; }
.gauge .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.gauge .row:last-of-type { border-bottom: 0; }
.gauge .row span:first-child { color: var(--muted); }
.gauge .row span:last-child { color: var(--fg); text-align: right; }
.gauge .row .gd { color: var(--gold); }
.bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0 8px; }
.bands i { height: 6px; border-radius: 2px; background: var(--line-2); }
.bands i:first-child { background: var(--gold); }
.bands-l { display: flex; justify-content: space-between; color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }

/* data plate */
.plate {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2);
  font-family: var(--mono); position: relative;
}
.plate .bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(194, 160, 107, .07); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.plate dl { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.plate dt, .plate dd { margin: 0; padding: 13px 20px; border-bottom: 1px solid var(--line-2); font-size: .84rem; }
.plate dt { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; padding-top: 15px; }
.plate dd { color: var(--fg); overflow-wrap: anywhere; }
.plate dd .sub { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.plate dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) { .plate dl { grid-template-columns: 1fr; } .plate dt { border-bottom: 0; padding-bottom: 0; } }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .buy-grid { grid-template-columns: 1fr; } }
.engage { display: grid; gap: 12px; }
.engage .card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.engage .card p { font-size: .95rem; }
.fineprint { margin-top: 16px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; background: rgba(16, 20, 27, .6); }
.steps li::before { content: "STEP 0" counter(s); display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--gold); margin-bottom: 6px; }
.steps b { display: block; font-size: 1rem; }
.steps span { color: var(--muted); font-size: .92rem; }

/* downloads */
.dl { display: flex; gap: 20px; align-items: flex-start; text-decoration: none; }
.dl .doc {
  flex: none; width: 64px; height: 82px; border-radius: 6px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--bg-2)); position: relative;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  font-family: var(--mono); font-size: .62rem; color: var(--gold); letter-spacing: .1em;
}
.dl .doc::before { content: ""; position: absolute; left: 10px; right: 10px; top: 14px; height: 30px; background: repeating-linear-gradient(180deg, rgba(232, 230, 225, .18) 0 1px, transparent 1px 6px); }
.dl h3 { font-size: 1.16rem; margin-bottom: 6px; }
.dl p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.dl .meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.card.dlcard:hover .meta { color: var(--gold-2); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(1.75rem, 1rem + 1.9vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; margin-top: 16px; }
.contact .subline { color: var(--muted); font-size: 1.08rem; margin-top: 20px; max-width: 60ch; }
form.contact-form { display: grid; gap: 14px; margin-top: 30px; }
.field { display: grid; gap: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--panel); border: 1px solid rgba(232, 230, 225, .2); border-radius: 10px;
  padding: 13px 14px; transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(232, 230, 225, .32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--panel-2); box-shadow: 0 0 0 3px rgba(194, 160, 107, .22); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
/* what do you need: native radios drawn as chips; the fieldset and legend name the group */
fieldset.needs { border: 0; margin: 0; padding: 0; min-width: 0; gap: 10px; }
fieldset.needs legend { padding: 0; margin-bottom: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.need-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.need { position: relative; display: flex; cursor: pointer; }
.field label.need { font-family: var(--sans); font-size: inherit; letter-spacing: normal; text-transform: none; color: var(--fg); }
.need input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.need span {
  display: flex; width: 100%; align-items: center; gap: 9px; min-height: 44px; padding: 9px 14px;
  font-size: .92rem; line-height: 1.3; color: var(--fg);
  background: var(--panel); border: 1px solid rgba(232, 230, 225, .2); border-radius: 10px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.need span::before { content: ""; width: 14px; height: 14px; flex: none; box-sizing: border-box; border: 1.5px solid var(--muted); border-radius: 50%; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.need:hover span { border-color: rgba(232, 230, 225, .32); }
.need input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-2); }
.need input:checked + span::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--panel); }
.need input:focus-visible + span { outline: 2px solid var(--gold-2, #D9BC8C); outline-offset: 3px; }
fieldset.needs[aria-invalid="true"] .need span { border-color: var(--danger); }
@media (forced-colors: active) {
  .need span::before { forced-color-adjust: none; border-color: CanvasText; background: Canvas; box-shadow: none; }
  .need input:checked + span { border: 3px double Highlight; }
  .need input:checked + span::before { border-color: Highlight; background: Highlight; box-shadow: inset 0 0 0 3px Canvas; }
}
.field-err { margin: 0; color: #FF8A8A; font-size: .88rem; line-height: 1.4; }
.field-err::before { content: "! "; font-family: var(--mono); font-weight: 600; }
.field-err[hidden] { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 4px; }
.form-status { font-size: .95rem; min-height: 1.5em; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #FF8A8A; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.aside { border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); padding: clamp(24px, 3vw, 34px); }
.aside .item { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.aside .item:first-child { padding-top: 0; }
.aside .item:last-of-type { border-bottom: 0; }
.aside .k { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.aside a.v, .aside .v { font-family: var(--mono); font-size: 1rem; color: var(--gold); text-decoration: none; white-space: nowrap; }
.aside a.v:hover { color: var(--gold-2); }
.aside .aside-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.signed { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); text-decoration: none; line-height: 1.6; }
.signed:hover { color: var(--gold-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); background: var(--bg); padding: 56px 0 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); font-size: .92rem; margin-top: 16px; max-width: 44ch; }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
@media (max-width: 520px) { .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-links .foot-h { font-family: var(--mono); font-size: .7rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 10px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: var(--fg); }
.foot-legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.foot-legal b { color: var(--fg); font-weight: 500; }
.foot-legal .mark { display: inline-flex; align-items: center; gap: 8px; }
.foot-legal .credit { text-transform: none; letter-spacing: .02em; }

/* ---------- inner pages ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); position: relative; }
.page-hero h1 { margin-top: 18px; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.2rem); font-weight: 700; letter-spacing: -.038em; line-height: 1.02; max-width: 18ch; }
.page-hero .intro { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); margin-top: 24px; }

.letter { max-width: 760px; }
.letter h1 em { color: var(--gold); }
.paths { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.paths span { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); }
.paths span.now { color: var(--gold); border-color: var(--line); background: var(--gold-soft); }
.letter .body p { color: var(--muted); font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.25em; }
.letter .body strong { color: var(--fg); font-weight: 500; }
.letter blockquote {
  margin: 34px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--fg);
}
.sign { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.sign .who { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin: 0; color: var(--fg); }
.sign .role { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 14px; line-height: 1.6; }
.sign .mail { font-family: var(--mono); color: var(--gold); text-decoration: none; white-space: nowrap; }
.sign .mail:hover { color: var(--gold-2); }
.sign .cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.record-list { list-style: none; margin: 0; padding: 0; }
.record-list li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line-2); color: var(--muted); }
.record-list li::before { content: ""; position: absolute; left: 3px; top: 1.25em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }

.diffs li { color: var(--fg); }

/* ---------- platform: four views behind tabs (accordions on phones); all text stays in the page ---------- */
.ptab-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(48px, 5vw, 72px) 0 0;
  padding: 6px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2);
}
.ptab-list[hidden] { display: none; }
.ptab-list button {
  appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
  font: 500 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  min-height: 42px; padding: 0 16px; border-radius: 8px; flex: 1 1 auto;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.ptab-list button:hover { color: var(--fg); }
.ptab-list button[aria-selected="true"] { color: #07090D; background: var(--gold); }
.ptab-list button .n { opacity: .6; margin-right: 8px; }
.ptabs.is-tabs .ptab-panel > .subhead:first-child { margin-top: 36px; }
.ptab-panel[hidden] { display: none; }
.ptab-acc {
  appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 18px 2px; border: 0; border-top: 1px solid var(--line-2); background: transparent; color: var(--fg);
  font: 600 1.06rem/1.3 var(--sans); letter-spacing: -.01em; text-align: left; cursor: pointer;
}
.ptab-acc .n { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; color: var(--gold); margin-right: 10px; }
.ptab-acc::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--gold); }
.ptab-acc[aria-expanded="true"]::after { content: "\2212"; }
.ptabs.is-acc { margin-top: 36px; border-bottom: 1px solid var(--line-2); }
.ptabs.is-acc .ptab-panel { padding-bottom: 26px; }
.ptabs.is-acc .ptab-panel > .subhead:first-child { margin-top: 4px; }

/* ---------- custody: a hash chain that draws as the section scrolls ---------- */
.chain { width: min(440px, 100%); height: auto; margin-top: 28px; overflow: visible; --p: 1; }
.chain-line { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); opacity: .8; }
.chain-nodes rect, .chain-nodes circle { fill: var(--bg-2); stroke: var(--gold); stroke-width: 1.5; }
.chain-nodes path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chain-nodes text { font: 500 9px var(--mono); letter-spacing: .12em; fill: var(--muted); text-anchor: middle; }
.chain-nodes g { opacity: clamp(.18, calc((var(--p) - var(--k)) * 12 + .18), 1); }
.chain-nodes .seal circle { fill: rgba(194, 160, 107, .12); }

/* ---------- four questions: an inverted paper band as a rhythm break ---------- */
.band.paper { background: #E8E6E1; color: #07090D; }
.band.paper .eyebrow { color: #7A5E2E; }
.band.paper .eyebrow::before { background: #7A5E2E; }
.band.paper h2 { color: #07090D; }
.band.paper .intro { color: #3A3F47; }
.band.paper .card { background: #F3F1EC; border-color: rgba(7, 9, 13, .12); box-shadow: 0 1px 0 rgba(7, 9, 13, .04); }
.band.paper .card:hover { border-color: rgba(122, 94, 46, .55); }
.band.paper .card::after { background: #7A5E2E; }
.band.paper .card .idx { color: #7A5E2E; }
.band.paper .q { color: #07090D; }
.band.paper .q-card p.a-text { color: #3A3F47; }
.band.paper .q-card .a { color: #07090D; }
.band.paper ::selection { background: rgba(122, 94, 46, .3); color: #07090D; }

/* ---------- rules: a dotted world with the three regimes pinned ---------- */
.map { position: relative; margin: 0 0 22px; aspect-ratio: 1280 / 480; max-height: 320px; }
.map img, .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin .core { fill: var(--gold); }
.map .pin .halo { fill: rgba(194, 160, 107, .16); stroke: var(--gold); stroke-width: 1.2; opacity: .35; transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .4s ease; }
.map .pin text { font: 500 17px var(--mono); letter-spacing: .14em; fill: var(--gold-2); opacity: .7; transition: opacity .3s ease; }
.rules-wrap:has(.regions [data-region="eu"]:hover) .pin-eu .halo,
.rules-wrap:has(.regions [data-region="us"]:hover) .pin-us .halo,
.rules-wrap:has(.regions [data-region="ap"]:hover) .pin-ap .halo,
.map .pin.on .halo { opacity: 1; transform: scale(1.35); animation: none; }
.rules-wrap:has(.regions [data-region="eu"]:hover) .pin-eu text,
.rules-wrap:has(.regions [data-region="us"]:hover) .pin-us text,
.rules-wrap:has(.regions [data-region="ap"]:hover) .pin-ap text,
.map .pin.on text { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* a few pulses once the map is on screen, then still */
  .map.in .pin .halo { animation: pinpulse 3.6s ease-in-out 3; }
  .map.in .pin-eu .halo { animation-delay: 1.2s; }
  .map.in .pin-ap .halo { animation-delay: 2.4s; }
  @keyframes pinpulse { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }
}
@media (max-width: 620px) { .map { margin-bottom: 14px; } .map .pin text { font-size: 30px; } }

/* ---------- inner pages: orbital linework in the page hero ---------- */
.page-hero { overflow: hidden; }
.page-hero .orbits {
  position: absolute; right: max(-60px, calc((100vw - var(--maxw)) / 2 - 120px)); top: calc(var(--header-h) + 24px);
  width: 520px; height: 320px; pointer-events: none; opacity: .9;
}
.page-hero .orbits ellipse { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .25; }
.page-hero .orbits circle.body { fill: none; stroke: rgba(232, 230, 225, .18); stroke-width: 1; }
.page-hero .orbits circle.sat { fill: var(--gold-2); opacity: .8; }
.page-hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) { .page-hero .orbits { width: 360px; height: 220px; right: -120px; opacity: .55; } }

/* ---------- insurability: a sample action walks the friction ladder ---------- */
.ladder-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 0 0 16px; }
.ladder-demo {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0;
  font-family: var(--mono); font-size: .8rem; color: var(--muted); min-height: 1.6em;
}
.ladder-demo .k { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ladder-demo .act { color: var(--fg); }
.ladder-demo .to { color: var(--gold-2); }
.ladder-demo .to::before { content: "\2192"; color: var(--muted); margin-right: 10px; }
.ladder li { transition: border-color .3s ease, background-color .3s ease; }
.ladder li.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(194, 160, 107, .10), var(--panel) 70%); }
.ladder li.on:last-child { border-color: var(--deny); background: linear-gradient(180deg, rgba(208, 138, 122, .10), var(--panel) 70%); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .door.reveal.in { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .7s ease, transform .5s cubic-bezier(.2, .7, .2, 1), border-color .25s ease; }
  html.js .door.reveal.in.tilting { transition: transform .08s linear, border-color .25s ease; }
  html.js .hero .rise { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .door { transform: none !important; }
}

@media print {
  .site-header, #globe, .hud, .menu-btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- inner page helpers ---------- */
.page-hero.band { padding-bottom: clamp(40px, 5vw, 64px); }
.band.tight-top { padding-top: 0; }
.card .card-h { font-size: 1.24rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 12px; }
.ticks.spaced { margin: 24px 0 22px; }
.btnrow { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.letter .body { margin-top: 40px; }
.letter .intro + .record-list { margin-top: 26px; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: l; }
@media (max-width: 1020px) { .ladder { grid-template-columns: 1fr; } }
.ladder li {
  counter-increment: l; position: relative; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--panel); padding: 18px 18px 20px; overflow: hidden;
}
.ladder li::before {
  content: "0" counter(l); display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px;
}
.ladder li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); opacity: .25; }
.ladder li:nth-child(2)::after { opacity: .42; }
.ladder li:nth-child(3)::after { opacity: .6; }
.ladder li:nth-child(4)::after { opacity: .8; }
.ladder li:nth-child(5)::after { opacity: 1; background: var(--deny); }
.ladder b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.ladder span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
