/* sdmoeller.ai: shared foundation for the front page (index.html, en/index.html).
   One dark theme for the whole page (no light sections), one accent,
   one radius system: buttons 10px, panels and images 18px. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/assets/site/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/assets/site/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/site/fonts/schibsted-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/site/fonts/schibsted-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  /* #FF3B1D is the brand ember: accents, highlighted words, focus.
     Buttons sit on a slightly deeper ember so white labels pass AA (4.65:1). */
  --ember: #ff3b1d;
  --ember-cta: #dc3218;
  --ember-glow: rgba(255, 59, 29, .32);
  --bg-stage: #070707;
  --radius-btn: 10px;
  --radius-card: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 68px;
  --section-y: clamp(88px, 13vh, 148px);
  /* z-index scale: stage < content < nav < menu < curtain */
  --z-stage: 1;
  --z-content: 2;
  --z-nav: 50;
  --z-menu: 60;
  --z-curtain: 100;
}

/* Colour themes. Dark is the brand default; light follows the system setting
   or the visitor's choice (data-theme on <html>, set before first paint).
   Media surfaces (the film stage, the 3D panel, the closing card) carry
   .theme-dark and stay dark in both themes. All pairs pass WCAG AA. */
:root, .theme-dark {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --panel-bg: #121214;
  --nav-bg: rgba(11, 11, 12, .62);
  --line: rgba(241, 239, 233, .12);
  --line-strong: rgba(241, 239, 233, .22);
  --ink: #f1efe9;
  --ink-2: #b9b6ae;
  --ink-3: #8c8981;
  --hover-bg: rgba(241, 239, 233, .06);
  --ghost-bg: rgba(241, 239, 233, .04);
  --ghost-bg-hover: rgba(241, 239, 233, .08);
  --ghost-line-hover: rgba(241, 239, 233, .42);
  --shadow: rgba(0, 0, 0, .7);
  --tile-scrim: 9, 9, 10;
  --tile-scrim-mid: .55;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #ebebe7;
  --panel-bg: #ffffff;
  --nav-bg: rgba(244, 244, 241, .8);
  --line: rgba(19, 19, 18, .12);
  --line-strong: rgba(19, 19, 18, .24);
  --ink: #131312;
  --ink-2: #45433f;
  --ink-3: #66635d;
  --hover-bg: rgba(19, 19, 18, .05);
  --ghost-bg: rgba(19, 19, 18, .03);
  --ghost-bg-hover: rgba(19, 19, 18, .07);
  --ghost-line-hover: rgba(19, 19, 18, .4);
  --shadow: rgba(19, 19, 18, .18);
  --tile-scrim: 255, 255, 255;
  --tile-scrim-mid: .8;
}
.theme-dark { color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.em { color: var(--ember); }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: calc(var(--z-curtain) + 1);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-btn);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn);
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--ember-cta); color: #fff; box-shadow: 0 10px 28px -14px var(--ember-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -14px rgba(255, 59, 29, .55); }
.btn-ghost { background: var(--ghost-bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ghost-line-hover); background: var(--ghost-bg-hover); }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.link-arrow:hover { border-color: var(--ember); }
.link-arrow .arrow { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  background: var(--nav-bg); color: var(--ink);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
  font: 800 18px/1 var(--font-display); letter-spacing: -.01em;
}
.brand-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--ember); }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: 8px; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: 500 15px/1 var(--font-body); color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-trigger:hover, .nav-link:hover, .nav-item.is-open .nav-trigger { color: var(--ink); }
.nav-trigger::after {
  content: ''; width: 6px; height: 6px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); opacity: .7; transition: transform var(--dur) var(--ease-out);
}
.nav-item.is-open .nav-trigger::after { transform: translateY(3px) rotate(-135deg); }
.nav-panel {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: var(--z-menu);
  min-width: 260px; padding: 14px; border-radius: var(--radius-card);
  background: var(--panel-bg); border: 1px solid var(--line);
  box-shadow: 0 28px 64px -24px var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: top left;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-panel.align-right { left: auto; right: 0; transform-origin: top right; }
.nav-item.is-open .nav-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
}
.nav-panel.mega { width: min(760px, 86vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 18px; }
.panel-group-label { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 6px 12px 8px; }
.panel-link {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: var(--radius-btn);
  text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out);
}
.panel-link:hover { background: var(--hover-bg); }
.panel-link strong { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.panel-link span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius-btn);
  border: 1px solid var(--line); text-decoration: none; font: 600 13px/1 var(--font-body);
  letter-spacing: .04em; color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.lang:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius-btn);
  border: 1px solid var(--line); background: none; cursor: pointer; font: 600 13px/1 var(--font-body);
  color: var(--ink-2); transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
@media (max-width: 1040px) { .theme-toggle { height: 44px; } }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-btn); border: 1px solid var(--line);
  background: none; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mnav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: var(--z-menu);
  background: var(--panel-bg); color: var(--ink); overflow-y: auto; padding: 8px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s; }
.mnav-group { padding: 18px 0 10px; border-bottom: 1px solid var(--line); }
.mnav-group:last-of-type { border-bottom: 0; }
.mnav-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.mnav a:not(.btn) { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 17px; font-weight: 500; }
.mnav .btn { margin-top: 18px; width: 100%; justify-content: center; }

@media (max-width: 1040px) {
  .nav-links, .nav-actions .lang { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .nav-actions .btn { display: none; } }

/* ---------- cinematic stage (hero + chapters) ---------- */
.stage { position: relative; z-index: var(--z-stage); background: var(--bg-stage); }
.stage { --runway: 620vh; }
.js .stage { height: var(--runway); }
@media (max-width: 899px) { .stage { --runway: 540vh; } }
.stage-pin { position: relative; }
.js .stage-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.stage-backdrop { position: absolute; inset: 0; }
.stage-backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* light theme: the film plays out into its own white light and the stage
   fades into the page; --dawn runs 0 to 1 over the last tenth (site.js) */
.stage-dawn { position: absolute; inset: 0; pointer-events: none; background: #f4f4f1; opacity: calc(min(1, var(--dawn, 0) * 1.6) * .92); }
.stage-scrim {
  position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--dawn, 0));
  background:
    linear-gradient(100deg, rgba(7, 7, 7, .84) 0%, rgba(7, 7, 7, .62) 32%, rgba(7, 7, 7, .24) 52%, rgba(7, 7, 7, 0) 68%),
    linear-gradient(to top, rgba(7, 7, 7, .7) 0%, rgba(7, 7, 7, 0) 30%);
}
.chapter { position: relative; z-index: var(--z-content); }
.js .chapter {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--gutter) 0 max(var(--gutter), 6vw);
  pointer-events: none; opacity: 0;
}
.js .chapter.is-active { pointer-events: auto; }
.chapter-inner { max-width: 680px; will-change: transform, opacity, filter; }
.chapter h1 {
  font-weight: 800; font-size: clamp(40px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -.03em;
  max-width: 23ch;
}
.chapter:first-child .chapter-inner, .chapter[data-hold-in] .chapter-inner { max-width: 880px; }
.chapter h2 {
  font-weight: 700; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -.022em;
  max-width: 16ch;
}
.chapter h1, .chapter h2 { color: var(--ch-ink, var(--ink)); }
.chapter[data-hold-out] .chapter-inner > * { opacity: var(--ch-fade, 1); }
.chapter p { margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ch-ink-2, var(--ink-2)); max-width: 44ch; }
.chapter .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.rail {
  position: absolute; right: max(var(--gutter), 3vw); top: 50%; transform: translateY(-50%);
  z-index: var(--z-content); display: none; flex-direction: column; gap: 8px; pointer-events: none;
}
.js .rail { display: flex; }
.rail i { position: relative; display: block; width: 2px; height: 30px; background: var(--line-strong); overflow: hidden; border-radius: 2px; }
.rail i::after {
  content: ''; position: absolute; inset: 0; background: var(--ember);
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
@media (max-width: 899px) {
  .rail { display: none !important; }
  .js .chapter { justify-content: flex-end; padding: var(--nav-h) var(--gutter) 13vh; }
  .stage-scrim { background: linear-gradient(to top, rgba(7, 7, 7, .95) 0%, rgba(7, 7, 7, .84) 36%, rgba(7, 7, 7, .42) 60%, rgba(7, 7, 7, 0) 80%); }
  .chapter h1 { max-width: none; }
}

/* Without JS or with reduced motion the chapters are a plain, readable stack:
   each one gets its own still frame and nothing is scrubbed. */
:is(html:not(.js), html.stage-stills) .chapter {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 12vh max(var(--gutter), 6vw);
  background: var(--bg-stage) var(--still, none) center / cover no-repeat;
}
:is(html:not(.js), html.stage-stills) .chapter::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 7, 7, .92) 0%, rgba(7, 7, 7, .5) 45%, rgba(7, 7, 7, .15) 80%);
}
:is(html:not(.js), html.stage-stills) .chapter-inner { position: relative; }
html.stage-stills .stage { height: auto; }
html.stage-stills .stage-pin { position: relative; height: auto; overflow: visible; }
:is(html:not(.js), html.stage-stills) :is(.stage-backdrop, .stage-scrim, .stage-dawn, .rail) { display: none !important; }
html.stage-stills .chapter { position: relative; inset: auto; opacity: 1; pointer-events: auto; }

/* hero words: split by JS, revealed through the departing curtain */
.word { display: inline-block; white-space: pre; }
.js:not(.is-ready) .split .word { opacity: 0; transform: translateY(.38em); filter: blur(6px); }
.split .word {
  transition: opacity 760ms var(--ease-out), transform 900ms var(--ease-out), filter 760ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 46ms + 120ms);
}
.js:not(.is-ready) .hero-after { opacity: 0; transform: translateY(12px); filter: blur(4px); }
.hero-after { transition: opacity 700ms var(--ease-out) 520ms, transform 800ms var(--ease-out) 520ms, filter 700ms var(--ease-out) 520ms; }

/* ---------- sections ---------- */
.section { position: relative; z-index: var(--z-content); padding: var(--section-y) 0; background: var(--bg); }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.026em; max-width: 18ch; }
.section-head p { margin-top: 16px; color: var(--ink-2); max-width: 56ch; }
.section-foot { margin-top: 36px; }

/* automations bento: six real automations, six cells */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  min-height: 240px; padding: 24px; border-radius: var(--radius-card); background: var(--surface);
  text-decoration: none; isolation: isolate; border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease-out);
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.001); transition: transform 900ms var(--ease-out), filter 600ms var(--ease-out);
}
.tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(var(--tile-scrim), .94) 0%, rgba(var(--tile-scrim), var(--tile-scrim-mid)) 36%, rgba(var(--tile-scrim), 0) 62%);
}
.tile:hover { border-color: var(--line-strong); }
.tile .img-light, [data-theme="light"] .tile .img-dark { display: none; }
[data-theme="light"] .tile .img-light { display: block; }
[data-theme="light"] .tile:hover img { filter: saturate(1.08); }
.tile:hover img { transform: scale(1.035); filter: brightness(1.12); }
.tile h3 { font-weight: 700; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.15; letter-spacing: -.012em; }
.tile p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 42ch; }
.tile .go { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 8px; }
.tile .go .arrow { transition: transform var(--dur) var(--ease-out); }
.tile:hover .go .arrow { transform: translateX(3px); }
.tile-a { grid-column: 1 / 5; grid-row: 1; min-height: 360px; }
.tile-b { grid-column: 5 / 7; grid-row: 1 / 3; }
.tile-c { grid-column: 1 / 3; grid-row: 2; }
.tile-d { grid-column: 3 / 5; grid-row: 2; }
.tile-e { grid-column: 1 / 4; grid-row: 3; }
.tile-f { grid-column: 4 / 7; grid-row: 3; }
.tile-a h3 { font-size: clamp(24px, 2.4vw, 34px); }
@media (max-width: 899px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-a, .tile-e, .tile-f { grid-column: 1 / -1; grid-row: auto; }
  .tile-b, .tile-c, .tile-d { grid-column: auto; grid-row: auto; }
  .tile-b { grid-column: 1 / -1; min-height: 300px; }
}
@media (max-width: 559px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-a, .tile-b { grid-column: 1 / -1; min-height: 260px; }
}

/* branches: two-column index, one hairline between rows */
.index { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); margin: 0; padding: 0; list-style: none; }
.index li + li { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .index { grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
  .index li:nth-child(5) { border-top: 0; }
}
.index a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px;
  padding: 22px 0; text-decoration: none;
}
.index strong { font: 700 clamp(20px, 1.8vw, 24px)/1.2 var(--font-display); letter-spacing: -.012em; transition: color var(--dur) var(--ease-out); }
.index span { grid-column: 1; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.index .arrow { grid-column: 2; grid-row: 1 / 3; color: var(--ink-3); transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.index a:hover strong { color: var(--ember); }
.index a:hover .arrow { color: var(--ember); transform: translateX(4px); }
@media (max-width: 899px) { .index { grid-template-columns: 1fr; } }

/* system: the 3D moment. Steps on the left, the Spiral Network in a sticky
   panel on the right that dives in as the steps pass (system.js). */
.system-grid {
  display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr;
  grid-template-areas: "head visual" "steps visual"; column-gap: clamp(32px, 5vw, 80px); align-items: start;
}
.system .section-head { grid-area: head; margin-bottom: clamp(40px, 6vh, 72px); }
.system .steps { grid-area: steps; }
.system-visual { grid-area: visual; align-self: start; }
.steps { position: relative; margin: 0; padding: 0 0 0 32px; list-style: none; }
.steps::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.steps::after {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--ember);
  border-radius: 2px; transform-origin: top;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: fill-rail linear both; animation-timeline: view(); animation-range: entry 60% cover 62%; }
  }
}
@keyframes fill-rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.steps li { padding: 0 0 clamp(36px, 5vw, 56px); transition: opacity 420ms var(--ease-out); }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.018em; transition: color 420ms var(--ease-out); }
.steps p { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.js .system .steps li:not(.is-current) { opacity: .5; }
.js .system .steps li.is-current h3 { color: var(--ink); }
.system-visual {
  position: sticky; top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 48px); height: calc(100dvh - var(--nav-h) - 48px); min-height: 460px;
  border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line);
  background: #0b0807 var(--still, none) center / cover no-repeat;
}
.system-canvas {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms var(--ease-out);
  /* the web fades into the panel instead of ending at a hard edge */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%);
}
.system-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.system-live .system-canvas { opacity: 1; }
.system-still .system-canvas { display: none; }
@media (min-width: 900px) {
  /* runway: each step gets enough scroll for the web to move behind it */
  .js .system .steps li { min-height: 42vh; }
  .js .system .steps li:last-child { min-height: 0; padding-bottom: 18vh; }
}
@media (max-width: 899px) {
  .system-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "head" "visual" "steps"; }
  .system .section-head { margin-bottom: 28px; }
  .system-visual { position: relative; top: auto; height: 62vh; min-height: 340px; margin-bottom: 40px; }
  /* all three steps fit on one screen here, so nothing is dimmed */
  .js .system .steps li:not(.is-current) { opacity: 1; }
}

/* questions: plain grid, no card chrome */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 48px) clamp(32px, 6vw, 96px); margin: 0; }
.qa dt { font: 700 clamp(19px, 1.5vw, 22px)/1.3 var(--font-display); letter-spacing: -.01em; }
.qa dd { margin: 10px 0 0; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 899px) { .qa { grid-template-columns: 1fr; } }

/* closing: the one conversion moment below the stage */
.closing { padding-bottom: var(--section-y); }
.closing-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-card);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; grid-template-columns: 7fr 5fr; min-height: 520px;
}
.closing-copy { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.closing-copy h2 { font-weight: 800; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.028em; max-width: 14ch; }
.closing-copy p { margin-top: 20px; color: var(--ink-2); max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); }
.closing-copy .actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.closing-photo { position: relative; min-height: 320px; }
.closing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.closing-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(20, 20, 22, .2) 34%, rgba(20, 20, 22, 0) 60%);
}
@media (max-width: 899px) {
  .closing-card { grid-template-columns: 1fr; }
  .closing-photo { order: -1; min-height: 300px; }
  .closing-photo::after { background: linear-gradient(to top, var(--surface) 0%, rgba(20, 20, 22, 0) 55%); }
}

/* ---------- footer ---------- */
.footer { position: relative; z-index: var(--z-content); background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px 32px; }
.footer-about p { margin-top: 14px; color: var(--ink-3); max-width: 36ch; line-height: 1.6; }
.footer h3 { font: 600 14px/1.2 var(--font-body); color: var(--ink-3); margin-bottom: 14px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ink-2); transition: color var(--dur-fast) var(--ease-out); }
.footer ul a:hover { color: var(--ink); }
.footer-base {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--ink-3); font-size: 14px;
}
.footer-base nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-base a { color: var(--ink-2); text-decoration: none; }
.footer-base a:hover { color: var(--ink); }
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; }
  .footer ul { gap: 0; } .footer ul a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- reveal on view (below the stage) ---------- */
.js [data-reveal] > * {
  transition: opacity 640ms var(--ease-out), transform 760ms var(--ease-out), filter 640ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal]:not(.is-in) > * { opacity: 0; transform: translateY(14px); filter: blur(4px); }

/* ---------- curtain: first visit only, gated on the first drawn frame ---------- */
.curtain { display: none; }
.js:not(.no-curtain) .curtain {
  position: fixed; inset: 0; z-index: var(--z-curtain); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; background: var(--bg-stage);
  transition: transform 1000ms var(--ease-in-out);
}
.curtain-mark { display: inline-flex; align-items: center; gap: 12px; font: 800 22px/1 var(--font-display); letter-spacing: -.01em; }
.curtain-bar { width: 120px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.curtain-bar::after {
  content: ''; display: block; height: 100%; background: var(--ember);
  transform: scaleX(0); transform-origin: left; animation: curtain-bar 1100ms var(--ease-out) forwards;
}
@keyframes curtain-bar { to { transform: scaleX(1); } }
.curtain.is-lifting { transform: translateY(-100%); }
.curtain.is-lifting > * { opacity: 0; transition: opacity 300ms var(--ease-out); }

/* AI-pulsen: the news board right after the film (front page) and the full
   list on /ai-pulsen. pulse.js fills [data-pulse]; until then a skeleton holds
   the space so nothing jumps. Category labels sit on ink, not ember, so they
   pass AA in the light theme too. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pulse-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pulse-kicker time { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); animation: pulse-ping 2.4s var(--ease-out) infinite; }
@keyframes pulse-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 29, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(255, 59, 29, 0); }
}

.pulse-board { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pulse-lead, .pulse-item { position: relative; }
.pulse-lead { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); transition: border-color var(--dur) var(--ease-out); }
.pulse-lead:hover { border-color: var(--line-strong); }
.pulse-lead h3 { margin-top: 18px; font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1.06; letter-spacing: -.024em; max-width: 22ch; }
.pulse-lead .pulse-why { margin-top: 18px; font-size: clamp(16px, 1.25vw, 18px); max-width: 54ch; }
.pulse-item h2, .pulse-item h3 { margin-top: 8px; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.pulse-item h3 { font-size: clamp(18px, 1.5vw, 21px); }
.pulse-item h2 { font-size: clamp(20px, 1.9vw, 26px); max-width: 34ch; }
/* the headline link covers its story, so the whole card is one target */
.pulse-lead a, .pulse-item a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease-out); }
.pulse-lead a::after, .pulse-item a::after { content: ''; position: absolute; inset: 0; }
.pulse-lead:hover a, .pulse-item:hover a, .pulse-lead a:focus-visible, .pulse-item a:focus-visible { background-size: 100% 1px; }
.pulse-item a:focus-visible::after, .pulse-lead a:focus-visible::after { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 6px; }
.pulse-item a:focus-visible, .pulse-lead a:focus-visible { outline: 0; }

.pulse-meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 13px; line-height: 1.3; color: var(--ink-3); }
.pulse-cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pulse-cat::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--ember); }
.pulse-heat { display: inline-flex; gap: 3px; margin-left: auto; }
.pulse-heat i { width: 14px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.pulse-heat i.on { background: var(--ember); }
.pulse-why { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.pulse-why strong { font-weight: 600; color: var(--ink); }
.pulse-src { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }

.pulse-list, .pulse-feed { margin: 0; padding: 0; list-style: none; }
.pulse-list li, .pulse-feed li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 0 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.pulse-list li:first-child { padding-top: 4px; border-top: 0; }
.pulse-feed li:not(:has(.pulse-rank)) { grid-template-columns: minmax(0, 1fr); }
.pulse-rank { padding-top: 2px; font: 800 clamp(22px, 2vw, 30px)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.pulse-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.pulse-note { font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 70ch; }
.pulse-error, .pulse-empty { color: var(--ink-2); }
.pulse-empty { display: block !important; }

/* skeleton */
.pulse-skel { display: block; height: 14px; margin-top: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--hover-bg) 25%, var(--ghost-bg-hover) 50%, var(--hover-bg) 75%) 0 0 / 200% 100%; animation: pulse-shimmer 1.6s linear infinite; }
.pulse-skel.h { height: clamp(28px, 3vw, 40px); margin-top: 20px; }
.pulse-skel.s { width: 38%; margin-top: 0; }
.pulse-skel.w { width: 82%; }
@keyframes pulse-shimmer { to { background-position: -200% 0; } }
/* the skeleton holds roughly the loaded height, so nothing below jumps */
.pulse-board[aria-busy="true"] .pulse-lead { min-height: 400px; }
.pulse-board[aria-busy="true"] .pulse-list li { min-height: 225px; }
.pulse-feed[aria-busy="true"] li { min-height: 210px; }
@media (max-width: 559px) {
  .pulse-board[aria-busy="true"] .pulse-lead { min-height: 360px; }
  .pulse-board[aria-busy="true"] .pulse-list li { min-height: 130px; }
}

/* full page */
.pulse-hero { padding-top: calc(var(--nav-h) + clamp(56px, 10vh, 120px)); padding-bottom: clamp(36px, 6vh, 64px); }
.pulse-hero h1 { font-weight: 800; font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.034em; }
.pulse-hero .lede { margin-top: 22px; max-width: 58ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); }
.pulse-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-bottom: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pulse-controls[hidden] { display: none; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.seg button, .chips button { appearance: none; min-height: 40px; border-radius: 999px; font: 600 14px/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.seg button { padding: 0 18px; border: 0; background: transparent; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 0 14px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-weight: 500; }
.chips button:hover { border-color: var(--line-strong); color: var(--ink); }
.chips button[aria-pressed="true"] { border-color: var(--ember); background: var(--hover-bg); color: var(--ink); }
.pulse-feed li { grid-template-columns: 2.6em minmax(0, 1fr); padding: 28px 0; }
.pulse-feed li:first-child { border-top: 0; }
.pulse-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.pulse-aside { position: sticky; top: calc(var(--nav-h) + 28px); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.pulse-aside h2 { font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.pulse-aside h3 { margin-top: 24px; font: 600 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pulse-aside p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pulse-aside p:empty { display: none; }
.pulse-legend { display: flex; align-items: center; gap: 12px; }
.pulse-legend .pulse-heat { flex: none; margin: 0; }

.pulse-main { min-width: 0; }
@media (max-width: 1099px) {
  .pulse-layout { grid-template-columns: minmax(0, 1fr); }
  .pulse-aside { position: static; }
}
@media (max-width: 899px) {
  .pulse-board { grid-template-columns: 1fr; }
  .pulse-heat { margin-left: 0; }
}
/* phones: headlines first; the why-line stays on the lead story */
@media (max-width: 559px) {
  .pulse-list .pulse-why, .pulse-list .pulse-heat, .pulse-feed .pulse-heat { display: none; }
  /* filters scroll sideways instead of stacking three rows deep */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .pulse-list li, .pulse-feed li { grid-template-columns: 1.6em minmax(0, 1fr); gap: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .js .curtain { display: none !important; }
}
html:not(.js) [data-pulse], html:not(.js) .pulse-foot [data-pulse-note] { display: none; }
