/* /start/ "The Descent", after /style.css. Base CSS is the final state; animated "before" states live
  under html.motion-on. Text sits on plates or opaque bands, never on the animated sky. No inline styles. */

/* == tokens == */
:root {
  --plate-day: rgba(19, 19, 24, 0.88); --plate-night: rgba(11, 11, 14, 0.86);
  --night-bg: #07070a; --day-bg: #0b0b0e; --lamp-ink: 212, 160, 23;
  --lamp-x: 50%; --lamp-y: 34%; /* the vanishing point; matches uCenter in start.js */
  --lamp: var(--lamp-x) var(--lamp-y);
}
html[data-theme="light"] { --plate-day: rgba(251, 248, 242, 0.92); --day-bg: #f4efe6; --lamp-ink: 127, 90, 0; }
@media (min-width: 768px) { :root { --lamp-x: 60%; --lamp-y: 42%; } }
@media (min-width: 1024px) { :root { --lamp-x: 69%; --lamp-y: 50%; } }

body { overflow-x: clip; }
html.motion-off { scroll-behavior: auto; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* night sections take style.css's dark tokens locally */
.band-day { --plate: var(--plate-day); background: var(--ink); }
.band-night {
  --ink: #0b0b0e; --ink-2: #131318; --ink-3: #1c1c24; --bone: #ece5d8; --bone-dim: #b0a897;
  --amber: #d4a017; --line: #2a2a33; --stamp-text: #e8685a; --scrim: 11, 11, 14; --plate: var(--plate-night);
  color-scheme: dark; color: var(--bone);
  background: radial-gradient(ellipse at 50% 0, rgba(212, 160, 23, 0.08), transparent 60%), var(--ink);
}
html[data-theme="dark"] .band-night { --ink: #07070a; }
html.gl-on .band-day, html.gl-on .band-night { background: transparent; } /* live shaft: plates carry the text */
html:not(.gl-on) #file-001 .gate { background: linear-gradient(var(--day-bg) 0, #3a2a10 45%, var(--ink) 70%); }
html[data-theme="light"]:not(.gl-on) #file-001 .gate { background: linear-gradient(var(--day-bg) 0, #e2c48a 18%, #8a6224 38%, #3a2a10 56%, var(--ink) 76%); }
.plate { background: var(--plate, var(--ink-2)); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px;
  background: var(--amber-fill); color: var(--on-amber); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* == top bar (the page's only <header>) == */
.sbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sbar .sbar-in { padding-top: 14px; padding-bottom: 14px; } /* beats .s-wrap's padding shorthand below */
.sbar-r { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; }
.sbar .sbar-cta { padding: 10px 18px; font-size: 0.74rem; white-space: nowrap; }
.motion-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; height: 34px; padding: 0 6px 0 10px;
  border-radius: 17px; border: 1px solid var(--line); background: transparent; color: var(--bone-dim); cursor: pointer;
  font: 500 0.72rem/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--amber); border-color: var(--amber); }
.motion-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.motion-toggle .mt-x { display: none; }
.motion-toggle[aria-pressed="false"] .mt-x { display: inline; }
.mt-s { padding: 4px 7px; border-radius: 10px; font-size: 0.62rem; letter-spacing: 0.08em; background: var(--amber-fill); color: var(--on-amber); }
.motion-toggle[aria-pressed="false"] .mt-s { background: transparent; color: var(--bone-dim); box-shadow: inset 0 0 0 1px var(--line); }
.sbar .theme-toggle { position: relative; }
.sbar .theme-toggle::after, .motion-toggle::after { content: ""; position: absolute; inset: -7px -4px; }
@media (max-width: 767px) {
  .motion-toggle { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; }
  .motion-toggle .mt-l, .motion-toggle .mt-s { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .motion-toggle svg { width: 15px; height: 15px; }
}
@media (max-width: 600px) {
  .sbar .logo { font-size: 0.85rem; letter-spacing: 0.04em; }
  .sbar-r { gap: 10px; }
  .sbar .theme-toggle { width: 30px; height: 30px; }
  .sbar .sbar-cta { padding: 9px 11px; font-size: 0.68rem; letter-spacing: 0.06em; }
}

/* == the sky: fixed backdrop == */
.sky { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.sky > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-paper { background: radial-gradient(ellipse 45% 40% at var(--lamp), rgba(212, 160, 23, 0.18), transparent 70%), var(--ink); }
html[data-theme="light"] .sky-paper { background: radial-gradient(ellipse 45% 40% at var(--lamp), rgba(212, 160, 23, 0.32), transparent 70%), var(--ink); }
/* night: a soft disc with a warm dusk core, centred on the lamp and scaled by --nf from start.js
  (transform only, so it never repaints). Scaled to 3.4 it covers any viewport. */
.sky > .sky-night {
  inset: auto; left: var(--lamp-x); top: var(--lamp-y); width: 64vmax; height: 64vmax; margin: -32vmax 0 0 -32vmax; border-radius: 50%;
  background: radial-gradient(closest-side, #2a1a06 0, #170f06 30%, var(--night-bg) 55%, var(--night-bg) 70%,
    rgba(70, 46, 8, 0.85) 80%, rgba(212, 160, 23, 0.32) 89%, rgba(212, 160, 23, 0) 100%); /* a dusk corona on the rim */
  transform: scale(var(--nf, 0)); will-change: transform;
}
.sky-c { display: block; opacity: 0; transition: opacity 0.6s ease-out; }
html.gl-ready .sky-c { opacity: var(--sky-o, 1); }
html.motion-off .sky { /* static frame behind the hero, fading at its foot */
  position: absolute; height: 100vh; height: 100svh;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
}
#main, .sfoot { position: relative; z-index: 1; }

/* no JS (or ?sky=off): hide the live parts, paint a CSS constellation on the hero */
html:not(.js) .sky, html:not(.js) .yr, html:not(.js) .dock, html:not(.js) .seg, html:not(.js) #motion, html.no-sky .sky { display: none !important; }
html:not(.js) .s-hero::before, html.no-sky .s-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
  radial-gradient(ellipse 50% 45% at var(--lamp), rgba(212, 160, 23, 0.2), transparent 70%),
  repeating-radial-gradient(circle at var(--lamp), transparent 0 26px, rgba(var(--lamp-ink), 0.12) 26px 27px),
  radial-gradient(rgba(var(--lamp-ink), 0.35) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(circle at var(--lamp), #000 0 30%, transparent 70%);
  mask-image: radial-gradient(circle at var(--lamp), #000 0 30%, transparent 70%);
}

/* == layout == */
.s-sec { position: relative; padding: 0; border-bottom: 0; }
.s-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .s-wrap { padding: 0 24px; } }
@media (min-width: 1280px) { .s-wrap { padding: 0 40px; } }
.s-sec > .s-wrap { padding-bottom: 72px; }
@media (min-width: 768px) { .s-sec > .s-wrap { padding-bottom: 104px; } }
.s-sec > .s-wrap > * + * { margin-top: 22px; }
.s-sec > .s-wrap > .chip-k { margin-top: 40px; }
.s-sec > .s-wrap > .chip-k + .trio { margin-top: 12px; }

.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.ghost { position: relative; }
.ghost::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.ghost.sm { font-size: 0.78rem; }
.btn.sm { padding: 10px 14px; font-size: 0.7rem; letter-spacing: 0.08em; }

.s-sec h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.05; margin-bottom: 14px; max-width: 820px; }
.s-sec h3 { font-family: "Archivo Black", sans-serif; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.03em; line-height: 1.25; }
.ex-wide h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; }
.exc-body h3, .tier2 h3 { font-size: 1.2rem; }
.intro { max-width: 780px; }
.intro, .buy { border-color: transparent; }
.tag { color: var(--amber); font-size: 0.92rem; letter-spacing: 0.14em; text-transform: uppercase; }
.intro .body { margin-top: 16px; max-width: 700px; font-size: 1.08rem; color: var(--bone); }
.side { margin-top: 18px; color: var(--amber); letter-spacing: 0.08em; font-size: 0.9rem; }
.kicker { margin-bottom: 8px; font-size: 0.72rem; }
.cap, figcaption { color: var(--bone-dim); font-size: 0.8rem; line-height: 1.5; letter-spacing: 0.02em; }
.small { font-size: 0.85rem; color: var(--bone-dim); }
.small a, .lead2 a, .mail a, .still a, .plain, .pkg-table th a {
  color: var(--bone); text-decoration: underline; text-decoration-color: rgba(212, 160, 23, 0.6); text-underline-offset: 3px;
}
.small a:hover, .lead2 a:hover, .mail a:hover, .still a:hover, .plain:hover, .pkg-table th a:hover { color: var(--amber); }
.chip-k {
  display: inline-block; padding: 7px 12px; background: var(--plate); border: 1px solid var(--line);
  color: var(--amber); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.buy > * + * { margin-top: 12px; }
.incl { color: var(--bone); font-weight: 500; }
.price-line { color: var(--bone); font-size: 1.02rem; }
.price-line b { font-family: "Archivo Black", sans-serif; font-weight: normal; font-size: 1.3rem; }
.buy .ctas { margin-top: 18px; }
.note { color: var(--bone-dim); font-size: 0.92rem; padding-top: 16px; padding-bottom: 16px; }

/* == hero (2026) == */
.s-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
html.js .s-hero { background: transparent; }
.s-hero > .s-wrap { width: 100%; padding-top: max(96px, 30svh); padding-bottom: 56px; }
.s-hero::after { /* scrim: copy readable, field clear around the vanishing point */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0, transparent 30%, rgba(var(--scrim), 0.8) 46%, rgba(var(--scrim), 0.92) 100%);
}
.hero-copy > :not(h1) { max-width: 620px; }
.s-hero .case-tag { margin-bottom: 22px; background: var(--plate); } /* reads over the shaft on phones */
.s-hero h1 {
  font-family: "Archivo Black", sans-serif; font-weight: normal; font-size: clamp(2.9rem, 12vw, 7.5rem);
  line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; text-shadow: var(--h1-shadow);
}
.s-hero h1 em { font-style: normal; color: var(--amber); }
.s-hero .lead { margin-top: 26px; font-size: 1.02rem; color: var(--bone); text-shadow: var(--lead-shadow); }
.s-hero .ctas { margin-top: 28px; flex-direction: column; align-items: stretch; }
.s-hero .ctas .ghost { align-self: flex-start; }
.micro { margin-top: 18px; font-size: 0.86rem; color: var(--bone-dim); }
.s-proof { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); }
.s-proof li { background: var(--plate); padding: 16px 14px; }
.s-proof b { display: block; font-family: "Archivo Black", sans-serif; font-weight: normal; font-size: 1.7rem; line-height: 1.1; color: var(--amber); }
.s-proof span { display: block; margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim); line-height: 1.4; }
.s-hero .legend { display: block; margin-top: 18px; font-size: 0.82rem; color: var(--bone-dim); }
.s-hero .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 6px; vertical-align: -1px; }
.s-hero .legend .dot-f { background: var(--amber); }
.s-hero .legend .dot-h { background: transparent; border: 1.5px solid var(--bone-dim); }
.cue {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 10px 0;
  color: var(--bone); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.cue::after { content: ""; width: 10px; height: 10px; flex: none; margin-top: -5px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); }
.cue:hover { color: var(--amber); }
@media (min-width: 768px) {
  .s-hero > .s-wrap { padding-top: 30svh; }
  .hero-copy > :not(h1) { max-width: 80%; }
  .s-hero .lead { font-size: 1.12rem; }
  .s-hero .ctas { flex-direction: row; align-items: center; }
  .s-hero .ctas .ghost { align-self: auto; }
  .s-proof { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .s-hero { min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); } /* the bar is 73px: the cue sits above the fold */
  .s-hero > .s-wrap { padding-top: 48px; padding-bottom: 28px; }
  .s-hero .case-tag { margin-bottom: 16px; }
  .s-hero .ctas { margin-top: 24px; }
  .micro { margin-top: 12px; }
  .hero-copy > :not(h1) { max-width: 620px; }
  .s-hero .lead { margin-top: 20px; }
  .s-proof { margin-top: 22px; }
  .cue { margin-top: 16px; }
  .s-hero .legend {
    position: absolute; right: max(40px, calc((100% - 1120px) / 2 + 40px)); bottom: 28px; width: max-content; max-width: 340px; margin: 0;
    padding: 8px 12px; background: var(--plate); border: 1px solid var(--line); font-size: 0.78rem; line-height: 1.5;
  }
  .s-hero::after { background: linear-gradient(90deg, rgba(var(--scrim), 0.9) 0, rgba(var(--scrim), 0.74) 38%, transparent 62%); }
}

/* == gates: the year alone; the field shows through == */
.gate { min-height: 34vh; min-height: 34svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.gate > * { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.era-mark {
  font-family: "Archivo Black", sans-serif; font-size: clamp(4.5rem, 22vw, 16rem); line-height: 0.85;
  letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1.5px var(--amber); user-select: none;
}
@supports not (-webkit-text-stroke: 1px) { .era-mark { color: var(--amber); opacity: 0.3; } }
#era-1800s .era-mark, #era-1700s .era-mark { text-align: right; }
#file-001 .era-mark { -webkit-text-stroke-width: 2px; text-shadow: 0 0 24px rgba(212, 160, 23, 0.35); }
.gate .gate-sub {
  width: auto; align-self: flex-start; margin-top: 14px; margin-left: max(16px, calc((100% - 1120px) / 2 + 16px));
  padding: 5px 11px; background: var(--plate); border: 1px solid var(--line);
  color: var(--amber); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
}
@media (min-width: 600px) { .gate > * { padding: 0 24px; } .gate .gate-sub { margin-left: max(24px, calc((100% - 1120px) / 2 + 24px)); } }
@media (min-width: 768px) { .gate { min-height: 46vh; min-height: 46svh; } }
@media (min-width: 1280px) { .gate > * { padding: 0 40px; } .gate .gate-sub { margin-left: calc((100% - 1120px) / 2 + 40px); } }

/* == 1900: the proof row == */
.trio { display: grid; gap: 16px; }
@media (min-width: 768px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.tri { margin: 0; padding: 12px; display: flex; flex-direction: column; }
.tri-media { aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); }
.tri-media img, .tri-media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-will img { object-position: 50% 62%; }
.tri figcaption { padding: 14px 6px 6px; }
.tri figcaption h3 { color: var(--bone); margin-bottom: 6px; font-size: 0.98rem; }

/* == 1800s: exhibit rows == */
.ex-wide { display: grid; gap: 22px; align-items: center; }
.exw-copy p { margin-top: 12px; color: var(--bone); max-width: 520px; font-size: 1.08rem; }
.exw-copy .ghost { display: inline-block; margin-top: 18px; }
.exw-media { margin: 0; }
.exw-media > img { border: 1px solid var(--line); }
.exw-media figcaption { margin-top: 12px; }
@media (min-width: 1024px) {
  .ex-wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; align-items: start; }
  .exw-copy { padding-top: 24px; }
  #ex-vault { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  #ex-vault .exw-media { order: -1; }
}
/* device stage, tilted by --tilt (motion on) */
.stage { perspective: 1200px; padding-right: 3%; }
.stage-in { position: relative; padding-bottom: 7%; }
.dev-desk { width: 100%; border: 1px solid #24242c; border-top: 22px solid #24242c; border-radius: 8px; box-shadow: var(--device-shadow); background: #f5efe3; }
.dev-phone { position: absolute; right: -2%; bottom: 0; width: 30%; border: 6px solid #111; border-radius: 22px; box-shadow: var(--device-shadow); background: #f5efe3; }
@media (min-width: 768px) { .dev-phone { width: 26%; } }

/* == 1829: records on paper in both themes == */
.docs { display: grid; gap: 22px; }
.paper { margin: 0; padding: 14px; background: #f5efe3; border: 1px solid #c9bfa8; }
.paper img { width: 100%; }
.paper figcaption { margin-top: 12px; color: #4f4a41; }
.sig { max-width: 560px; }
@media (min-width: 1024px) { .docs { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } .sig { max-width: none; } }
.pull {
  font-family: "Archivo Black", sans-serif; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.2; text-transform: uppercase;
  color: var(--amber); border-left: 4px solid var(--amber); padding-left: 18px; max-width: 880px;
}
.close .btn { margin-top: 22px; }

/* == 1700s == */
.callout { display: grid; gap: 22px; align-items: center; }
.ms-media { position: relative; margin: 0; }
.ms-media img { width: 100%; border: 1px solid var(--line); }
.ms-media .ill {
  position: absolute; top: 10px; left: 10px; margin: 0; padding: 4px 9px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(11, 11, 14, 0.82); color: #ece5d8; border: 1px solid rgba(236, 229, 216, 0.3);
}
.ms-copy p { margin-top: 10px; color: var(--bone); }
.ms-copy .small { color: var(--bone-dim); }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-chips span { padding: 5px 10px; border: 1px solid var(--amber); color: var(--amber); font-size: 0.78rem; letter-spacing: 0.06em; }
@media (min-width: 1024px) { .callout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }

/* exhibit cards (corridor + duo) */
.exc { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.exc-media { position: relative; aspect-ratio: 4 / 3; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.exc-media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.em-art { background: #f1ebe0; }
.em-art > img:first-child { object-fit: contain; padding: 6%; }
.exc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.exc-body p { color: var(--bone); }
.exc-body .kicker { margin: 0; color: var(--amber); }
.exc-body .cap { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--bone-dim); }
/* the 1771 close-up overlaps the chart's foot (768px+), below it on phones */
.exc-media .inset { width: 100%; border-top: 1px solid var(--line); }
#ex-ancestry .exc-media { aspect-ratio: auto; }
#ex-ancestry .exc-media > img:first-child { aspect-ratio: 4 / 3; height: auto; }
@media (min-width: 768px) {
  #ex-ancestry .exc-media { aspect-ratio: 4 / 3; }
  #ex-ancestry .exc-media > img:first-child { height: 100%; }
  .exc-media .inset { position: absolute; left: 8%; bottom: -14%; width: 84%; z-index: 1; border: 1px solid var(--line); box-shadow: var(--device-shadow); }
  #ex-ancestry .exc-body { padding-top: calc(10.5% + 18px); } /* 14% of a 4:3 media box = 10.5% of the card's width */
}
.corridor { display: grid; gap: 18px; perspective: 900px; perspective-origin: 50% 30%; }
@media (min-width: 768px) { .corridor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.corridor.live .ex { will-change: transform, opacity; }
.corridor .ex { background: var(--ink-2); }

/* == 1600s == */
.tiers2 { display: grid; gap: 22px; }
@media (min-width: 1024px) { .tiers2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier2 { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tier2 .kicker { margin: 0; }
.tier2 p { color: var(--bone); }
.tier2 .pr { font-family: "Archivo Black", sans-serif; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; }
.tier2 .small { color: var(--bone-dim); }
.tier2 .pay { font-size: 0.92rem; padding: 9px 12px; border-left: 3px solid var(--amber-fill); background: rgba(212, 160, 23, 0.1); }
.tier2 .btn { align-self: flex-start; margin-top: auto; }
.featured { border-color: #d4a017; box-shadow: inset 0 0 0 1px #d4a017; }
.featured::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0.35;
  border: 1px solid #ffd36b; box-shadow: 0 0 34px rgba(212, 160, 23, 0.4), inset 0 0 22px rgba(212, 160, 23, 0.14);
}
.duo { display: grid; gap: 18px; }
@media (min-width: 768px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.assess { display: grid; gap: 18px; border-left: 4px solid var(--amber-fill); }
.assess p { color: var(--bone); margin-top: 8px; }
.assess .kicker { margin: 0; }
.assess .btn { justify-self: start; }
@media (min-width: 1024px) { .assess { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; } }
.fine-print { display: inline-block; padding: 10px 14px; color: var(--bone-dim); font-size: 0.85rem; letter-spacing: 0.06em; }

/* == back to 2026: table and close, opaque in the page theme == */
.s-solid { background: var(--ink); }
.s-solid > .s-wrap { padding-top: 88px; }
#your-file { border-top: 1px solid var(--line); }
#your-file-h:focus { outline: none; }
#your-file-h:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.lead2 { color: var(--bone-dim); font-size: 1.05rem; max-width: 760px; }
.seg { display: flex; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.seg button {
  min-width: 64px; min-height: 44px; padding: 0 14px; border: 0; border-right: 1px solid var(--line); cursor: pointer;
  background: var(--ink-2); color: var(--bone-dim); font: 500 0.88rem/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: 0.04em;
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--amber-fill); color: var(--on-amber); font-weight: 600; }
@media (min-width: 1024px) { .seg { display: none; } }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--ink-2); }
.pkg-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pkg-table th, .pkg-table td { padding: 13px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.pkg-table thead th {
  font-family: "Special Elite", monospace; font-weight: normal; color: var(--amber); vertical-align: bottom;
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink-3);
}
.pkg-table thead th b {
  display: block; margin-top: 6px; font: 1.15rem/1.15 "Archivo Black", sans-serif; letter-spacing: 0; text-transform: none; color: var(--bone);
}
.pkg-table tbody th { font-weight: 500; color: var(--bone); min-width: 220px; }
.pkg-table td { color: var(--bone-dim); white-space: nowrap; }
.pkg-table th[scope="row"], .pkg-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--ink-2); }
.pkg-table thead th:first-child { background: var(--ink-3); }
.pkg-table td::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.pkg-table .v-in, .pkg-table .r-pay td { color: var(--bone); }
.pkg-table .v-in::before, .pkg-table .v-flag::before { background: var(--amber-fill); }
.pkg-table .v-add::before { border: 1.5px solid var(--bone-dim); }
.pkg-table .v-flag { color: var(--bone); font-weight: 600; }
.pkg-table .r-pay td::before, .pkg-table tfoot td::before { display: none; }
.pkg-table tfoot th, .pkg-table tfoot td { border-bottom: 0; background: var(--ink-3); white-space: normal; }
.pkg-table tfoot th[scope="row"] { background: var(--ink-3); color: var(--bone-dim); font: 0.74rem "Special Elite", monospace; text-transform: uppercase; letter-spacing: 0.1em; }
.pkg-table tfoot td .btn { width: 100%; }
.pkg-table tfoot .btn + .btn { margin-top: 8px; }
@media (min-width: 1024px) {
  .pkg-table thead th:not(:first-child) { width: 17%; }
  .pkg-table th[scope="row"], .pkg-table thead th:first-child { position: static; }
}
/* below 1024px with JS: one package column, picked with .seg */
@media (max-width: 1023px) {
  html.js .pkg-table .c-1900, html.js .pkg-table .c-1800s, html.js .pkg-table .c-1700s, html.js .pkg-table .c-1600s { display: none; }
  html.js .pkg-table[data-show="1900"] .c-1900, html.js .pkg-table[data-show="1800s"] .c-1800s,
  html.js .pkg-table[data-show="1700s"] .c-1700s, html.js .pkg-table[data-show="1600s"] .c-1600s { display: table-cell; }
  html.js .tbl-scroll { overflow-x: visible; }
  html.js .pkg-table th[scope="row"], html.js .pkg-table thead th:first-child { position: static; min-width: 0; }
  html.js .pkg-table th, html.js .pkg-table td { padding: 12px; }
  html.js .pkg-table td { white-space: normal; width: 38%; }
  .th-x { display: none; }
}
.tnotes { list-style: none; counter-reset: tn; color: var(--bone-dim); font-size: 0.86rem; max-width: 860px; }
.tnotes li { counter-increment: tn; position: relative; padding-left: 28px; }
.tnotes li + li { margin-top: 8px; }
.tnotes li::before { content: "(" counter(tn) ")"; position: absolute; left: 0; color: var(--amber); font-family: "Special Elite", monospace; }

#open .s-wrap { padding-bottom: 96px; }
#open ol.steps { display: grid; gap: 14px; margin-top: 26px; counter-reset: st; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--bone); }
#open ol.steps li { display: block; counter-increment: st; position: relative; padding: 18px 20px 20px 66px; background: var(--ink-2); border: 1px solid var(--line); }
#open ol.steps li::before {
  content: counter(st); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--amber-fill); color: var(--on-amber); font-family: "Archivo Black", sans-serif;
}
@media (min-width: 768px) { #open ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note2 { color: var(--bone-dim); max-width: 760px; }
#open .ctas { margin-top: 30px; }
.mail { color: var(--bone-dim); }
.sign { color: var(--amber); letter-spacing: 0.08em; font-size: 0.9rem; }
.still { margin-top: 44px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.still ul { list-style: none; display: grid; gap: 4px 28px; }
.still li a { display: inline-block; padding: 8px 0; }
@media (min-width: 768px) { .still ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* == footer: never "foot-links" (tools/sync_footer_nav.py rewrites it) == */
.sfoot { background: var(--ink); border-top: 1px solid var(--line); }
.sfoot .foot { justify-content: flex-start; gap: 16px 28px; }
.sfoot-mark { width: 28px; height: 28px; }
.sfoot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sfoot-links a { display: inline-block; padding: 8px 0; }
.sfoot .fine { flex-basis: 100%; max-width: 900px; line-height: 1.55; }
@media (max-width: 1023px) { .sfoot { padding-bottom: 144px; } }

/* == era rail (1280px and up) == */
.rail { display: none; position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 40; width: 64px; padding: 8px 0; background: var(--header-bg); border: 1px solid var(--line); border-radius: 32px; }
@media (min-width: 1280px) { .rail { display: block; } }
.rail ol { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail a { display: block; width: 54px; padding: 8px 0; border-radius: 14px; text-align: center; text-decoration: none; font-family: "Special Elite", monospace; font-size: 0.72rem; color: var(--bone-dim); }
.rail a:hover { color: var(--bone); }
.rail a[aria-current] { background: var(--amber-fill); color: var(--on-amber); }
.tick { width: 54px; height: 14px; padding: 0; font-size: 0; line-height: 0; color: transparent; opacity: 0.7; }
.tick::before { content: ""; display: block; width: 7px; height: 7px; margin: 3px auto 0; background: var(--amber); transform: rotate(45deg); }
html.motion-on .tick { opacity: 0.35; transition: opacity 0.4s; }
html.motion-on .tick.on { opacity: 1; }

/* == year counter (motion on, before the table) == */
.yr {
  display: none; position: fixed; z-index: 55; top: 14px; left: 50%; height: 44px; transform: translateX(-50%); pointer-events: none;
  align-items: center; gap: 8px; padding: 0 14px; border-radius: 22px; background: var(--header-bg); border: 1px solid var(--line);
  transition: opacity 0.3s;
}
html.motion-on .yr { display: flex; }
html.motion-on .yr.gone { display: none; }
.yr.pre { opacity: 0; }
.yr-k { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.yr-n { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; line-height: 1; color: var(--bone); min-width: 4.2ch; text-align: right; }
@media (max-width: 1023px) { html.motion-on .yr { display: none; } }
@media (min-width: 1280px) {
  .yr { top: auto; left: auto; right: 12px; bottom: 20px; height: auto; transform: none; flex-direction: column; align-items: flex-end; gap: 2px; padding: 6px 9px 7px; border-radius: 6px; }
  .yr-k { font-size: 0.62rem; }
  .yr-n { font-size: 1.6rem; }
}
@media (min-width: 1680px) { .yr { right: 28px; bottom: 24px; padding: 10px 16px 12px; } .yr-k { font-size: 0.72rem; } .yr-n { font-size: 3.4rem; } }

/* == light theme at night: the fixed chrome takes the dark tokens (html.night-ui / .night-top from start.js) == */
html[data-theme="light"].night-ui :is(.rail, .yr, .dock), html[data-theme="light"].night-top .sbar {
  --header-bg: rgba(11, 11, 14, 0.92); --ink-2: #131318; --ink-3: #1c1c24; --bone: #ece5d8; --bone-dim: #b0a897;
  --line: #2a2a33; --amber: #d4a017; color: var(--bone); color-scheme: dark;
}
.sbar, .rail { transition: background-color 0.3s, border-color 0.3s; }

/* == mobile dock == */
.dock {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px;
  background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--menu-shadow);
  transform: translateY(140%); visibility: hidden; transition: transform 0.3s ease-out, visibility 0s linear 0.3s, background-color 0.3s;
}
.dock.on { transform: none; visibility: visible; transition: transform 0.3s ease-out, background-color 0.3s; }
.dock[hidden] { display: none; }
.dock-y { display: none; flex: none; flex-direction: column; align-items: flex-start; gap: 3px; padding-right: 12px; border-right: 1px solid var(--line); }
html.motion-on .dock-y { display: flex; }
.dock-y .mono { font-size: 0.58rem; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.dock-y b { font: 1.15rem/1 "Archivo Black", sans-serif; color: var(--bone); min-width: 3.3em; }
.dock-t { flex: 1; font-size: 0.82rem; color: var(--bone); line-height: 1.3; }
.dock .btn { flex: none; padding: 10px 16px; font-size: 0.72rem; }
@media (min-width: 1024px) { .dock { display: none; } }

/* == motion: transform/opacity (+ one-shot filter, clip-path), motion-on only == */
@keyframes rise { from { opacity: 0; transform: translateY(0.4em); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(5px) rotate(45deg); } }
@keyframes edge { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes cell { from { opacity: 0; } }

html.motion-on .s-hero h1 .w { display: inline-block; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.motion-on .s-hero h1 > .w:nth-child(1) { animation-delay: 150ms; }
html.motion-on .s-hero h1 > .w:nth-child(2) { animation-delay: 190ms; }
html.motion-on .s-hero h1 em .w:nth-child(1) { animation-delay: 230ms; }
html.motion-on .s-hero h1 em .w:nth-child(2) { animation-delay: 270ms; }
html.motion-on .cue::after { animation: bob 2s ease-in-out infinite paused; }
html.motion-on .s-hero.is-in .cue::after { animation-play-state: running; }

html.motion-on .trio .tri { transform: scale(0.96); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion-on .trio.is-in .tri { transform: none; }
html.motion-on .marks > g { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.4); }
html.motion-on .trio.is-in .marks > g { opacity: 1; transform: none; }
.trio.is-in .ck:nth-of-type(2) { transition-delay: 120ms; }
.trio.is-in .ck:nth-of-type(3) { transition-delay: 240ms; }
.trio.is-in .ck:nth-of-type(4) { transition-delay: 360ms; }
.trio.is-in .ck:nth-of-type(5) { transition-delay: 480ms; }
.trio.is-in .ck:nth-of-type(6) { transition-delay: 600ms; }
.trio.is-in .fix { transition-delay: 900ms; }

html.motion-on #ex-vault .exw-media { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion-on #ex-vault .exw-media.is-in { opacity: 1; transform: none; }

html.motion-on .stage-in { transform-style: preserve-3d; transform: rotateY(calc(var(--tilt, 0) * 8deg)) rotateX(calc(var(--tilt-y, 0) * -3deg)); }
html.motion-on .dev-desk { transform: translateZ(-60px); }
html.motion-on .dev-phone { transform: translateZ(80px); }

html.motion-on .burial img { filter: contrast(0.35) brightness(1.35) sepia(0.4); transition: filter 0.9s ease-out; }
html.motion-on .burial.is-in img { filter: none; }
html.motion-on .sig img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s; }
html.motion-on .sig.is-in img { clip-path: inset(0); }

/* corridor: cards come forward as they scroll in (--p from start.js; 1 = arrived) */
html.motion-on .corridor .ex { opacity: calc(0.65 + 0.35 * var(--p, 1)); transform: translateY(calc((1 - var(--p, 1)) * 24px)); }
@media (min-width: 1024px) {
  html.motion-on .corridor .ex { transform: translateZ(calc((1 - var(--p, 1)) * -320px)) translateY(calc((1 - var(--p, 1)) * 40px)); }
}

html.motion-on .era-mark { transform: translateY(calc(var(--gp, 0) * 90px)); will-change: transform; }

html.motion-on #flagship.is-in::before { animation: edge 4s ease-in-out infinite alternate; }

html.motion-on #open .steps li { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion-on #open .steps.is-in li { opacity: 1; transform: none; }
#open .steps.is-in li:nth-child(2) { transition-delay: 80ms; }
#open .steps.is-in li:nth-child(3) { transition-delay: 160ms; }
#open .steps.is-in li:nth-child(4) { transition-delay: 240ms; }

html.motion-on .pkg-table td { animation: cell 0.2s ease-out; }

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