
/* Hallmark · genre: atmospheric · macrostructure: bespoke worldflight (custom, bespoke depth) · theme: custom
 * vibe: "dark cinematic forge, light condensing into owned matter" · paper oklch(14.5% 0.008 70) · accent oklch(79% 0.150 68) amber
 * display: General Sans 200/300/500 · text: Geist 380/500 · axes: dark / grotesk-sans / warm
 * nav: N9 edge-aligned minimal + pill CTA · footer: none (worldflight close is the CTA plate)
 * pre-emit critique: P5 H4 E4 S5 R4 V5 */
:root {
  --canvas:     oklch(14.5% 0.008 70);
  --surface-1:  oklch(18%   0.009 70);
  --surface-2:  oklch(22%   0.010 70);
  --ink:        oklch(94%   0.008 80);
  --ink-soft:   oklch(76%   0.010 75);
  --ink-faint:  oklch(58%   0.010 75);
  --rule:       oklch(30%   0.010 70);
  --accent:     oklch(79%   0.150 68);
  --accent-ink: oklch(19%   0.030 60);
  --focus:      oklch(85%   0.120 72);
  --font-display: "General Sans", "Geist", system-ui, sans-serif;
  --font-text:    "Geist", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --text-sm: 0.8125rem; --text-base: 1.0625rem; --text-lg: 1.3rem;
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --text-hero: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --rule-w: 1px;
  --radius-pill: 999px; --radius-md: 14px;

  --sc-canvas: var(--canvas); --sc-surface: var(--surface-1);
  --sc-ink: var(--ink); --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--accent); --sc-accent-ink: var(--accent-ink);
  --sc-font-display: var(--font-display); --sc-font-text: var(--font-text);
}
html, body { overflow-x: clip; background: var(--canvas); }
body { margin: 0; color: var(--ink); font-family: var(--font-text); font-weight: 380;
  font-size: var(--text-base); line-height: 1.62; letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; }

/* chrome */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center;
  justify-content: space-between; padding: var(--space-5) clamp(20px, 4vw, 56px); pointer-events: none; }
.bar > * { pointer-events: auto; }
.mark { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); white-space: nowrap; }
.mark .re { color: var(--ink-faint); }
.mark .i { position: relative; display: inline-block; }
.mark .i b { position: absolute; left: 50%; top: 0.2em; width: 0.17em; height: 0.19em;
  translate: -50% 0; background: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px;
  border-radius: var(--radius-pill); background: var(--surface-2); border: var(--rule-w) solid var(--rule);
  color: var(--ink); font-weight: 500; font-size: var(--text-sm); text-decoration: none; white-space: nowrap;
  transition: border-color 160ms var(--ease-out), transform 120ms var(--ease-out); }
.pill .sq { width: 7px; height: 7px; background: var(--accent); transition: transform 160ms var(--ease-out); transform-origin: 0 50%; }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { border-color: var(--accent); }
  .pill:hover .sq { transform: scaleX(2.4); }
}
.pill:active { transform: scale(0.97); }
.pill--big { height: 52px; padding: 0 24px; font-size: var(--text-base); }

/* waypoint rail */
.rail { position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; translate: 0 -50%; z-index: 30;
  display: flex; flex-direction: column; gap: 22px; padding: 8px 0; margin: 0; list-style: none; }
.rail::before { content: ""; position: absolute; right: 2px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  text-decoration: none; color: var(--ink-faint); font-size: var(--text-sm); }
.rail a span { opacity: 0; transition: opacity 160ms var(--ease-out); white-space: nowrap; }
.rail a i { width: 5px; height: 5px; background: var(--ink-faint); position: relative; z-index: 1; }
.rail a[aria-current="true"] i { background: var(--accent); }
.rail a[aria-current="true"], .rail a:focus-visible { color: var(--ink); }
.rail a:focus-visible span, .rail:hover a span { opacity: 1; }

/* copy */
.rs-copy { position: absolute; top: 50%; translate: 0 -50%; width: min(40rem, 44vw); z-index: 2; }
.rs-copy--lead { left: clamp(20px, 6vw, 96px); }
.rs-copy--trail { right: clamp(56px, 8vw, 128px); }
.rs-copy h1, .rs-copy h2 { font-family: var(--font-display); font-weight: 300; font-style: normal;
  letter-spacing: -0.025em; line-height: 1.04; margin: 0 0 var(--space-4); text-wrap: balance; color: var(--ink); }
.rs-copy h1 { font-size: var(--text-hero); font-weight: 200; letter-spacing: -0.035em; line-height: 1.0; }
.rs-copy h2 { font-size: var(--text-2xl); }
.rs-copy p { margin: 0; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.rs-copy .src { display: block; margin-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-faint); }
.rs-copy .first { margin-top: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.rs-copy .first small { color: var(--ink-soft); font-size: var(--text-sm); max-width: 30ch; line-height: 1.45; }
.rs-copy--peak h2 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4.2rem); font-weight: 200; }
.ladder { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: 0; border-top: var(--rule-w) solid var(--rule); }
.ladder li { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: var(--space-4);
  padding: 10px 0; border-bottom: var(--rule-w) solid var(--rule); font-size: var(--text-sm); color: var(--ink-soft); }
.ladder b { color: var(--ink); font-weight: 500; }

/* scrims: a column of density under the copy side only */
.rs-scrim { position: absolute; inset: 0; pointer-events: none; }
.rs-scrim--lead { background: linear-gradient(90deg,
  color-mix(in oklab, var(--canvas) 86%, transparent) 0%,
  color-mix(in oklab, var(--canvas) 62%, transparent) 30%,
  color-mix(in oklab, var(--canvas) 18%, transparent) 50%, transparent 62%); }
.rs-scrim--trail { background: linear-gradient(270deg,
  color-mix(in oklab, var(--canvas) 86%, transparent) 0%,
  color-mix(in oklab, var(--canvas) 62%, transparent) 30%,
  color-mix(in oklab, var(--canvas) 18%, transparent) 50%, transparent 62%); }

/* the one glass element: proof panel at the peak */
.glass { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--surface-2) 55%, transparent);
  backdrop-filter: blur(18px) saturate(1.08); -webkit-backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ink) 14%, transparent), 0 24px 48px -24px oklch(8% 0.01 70);
  border: var(--rule-w) solid color-mix(in oklab, var(--rule) 70%, transparent); }
.glass h3 { margin: 0 0 var(--space-3); font: 500 var(--text-sm)/1.3 var(--font-text); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.glass dl { margin: 0; display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 8px 16px; font-size: var(--text-sm); }
.glass dt { color: var(--ink); font-weight: 500; } .glass dd { margin: 0; color: var(--ink-soft); }

/* grid hairlines in the hero only */
.hgrid { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(to right, color-mix(in oklab, var(--rule) 55%, transparent) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%; opacity: calc(0.35 * (1 - var(--hero-out, 0))); }

.footnote { position: fixed; left: 50%; translate: -50% 0; top: 30px; margin: 0; z-index: 30; font-size: 0.72rem; color: var(--ink-faint); }

@media (max-width: 860px) {
  .rs-copy, .rs-copy--trail { left: 20px; right: 20px; width: auto; top: auto; bottom: 64px; translate: none; }
  .rs-copy h1 { font-size: var(--text-2xl); }
  .rs-copy--peak h2 { font-size: var(--text-2xl); }
  .rs-scrim--lead, .rs-scrim--trail { background: linear-gradient(0deg,
    color-mix(in oklab, var(--canvas) 94%, transparent) 0%, color-mix(in oklab, var(--canvas) 74%, transparent) 38%,
    transparent 70%); }
  [data-variant="a"] [data-sc-world] img, [data-variant="a"] [data-sc-world] video,
  [data-variant="c"] [data-sc-world] img, [data-variant="c"] [data-sc-world] video { object-position: 68% 50%; }
  [data-variant="b"] [data-sc-world] img, [data-variant="b"] [data-sc-world] video { object-position: 32% 50%; }
  .rail { display: none; }
  .bar .pill { height: 36px; padding: 0 14px; }
  .ladder li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .glass dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .glass dd { margin-bottom: 6px; }
  .footnote { display: none; }
}
