/* ==========================================================================
   Movement Global — design system
   Two surfaces (ink, paper). One signal color, used only for state.
   Restraint rule: one label per section, chrome only on hero-level type.
   ========================================================================== */

@font-face { font-family: "Geist Pixel Line"; src: url("../assets/fonts/GeistPixel-Line.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0a0b0c;
  --ink-2: #121417;
  --paper: #f3f3f0;
  --on-ink: #f2f3f4;
  --on-ink-2: #a4a9b0;
  --on-ink-3: #8a8f97;
  --on-paper: #0b0c0e;
  --on-paper-2: #50555c;
  --on-paper-3: #6b6f76;
  --signal: #ff5a1f;
  --signal-soft: rgba(255, 90, 31, .14);
  --signal-text: #ff5a1f;   /* orange as text; darkened on paper to pass AA (4.66:1) */
  --chrome-ink: linear-gradient(180deg, #ffffff 0%, #e4e6e9 40%, #9aa0a8 100%);
  --chrome-paper: linear-gradient(180deg, #0b0c0e 0%, #2b2f34 55%, #6f747b 100%);

  --font: "Geist", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --t-display: clamp(3.1rem, 8.4vw, 9rem);
  --t-h1: clamp(2.75rem, 6.2vw, 6.5rem);
  --t-h2: clamp(2.2rem, 4.6vw, 4.75rem);
  --t-h3: clamp(1.4rem, 2vw, 1.9rem);
  --t-lead: clamp(1.15rem, 1.5vw, 1.45rem);
  --t-body: clamp(1rem, 1.05vw, 1.125rem);

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1320px;
  --section: clamp(96px, 12vw, 176px);

  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --d-fast: 220ms;
  --d-med: 600ms;
  --d-slow: 1100ms;
}

/* With JS the body owns the theme and sections inherit it.
   Without JS each section carries its own. */
:root, .no-js [data-theme="ink"] {
  --bg: var(--ink); --fg: var(--on-ink); --fg-2: var(--on-ink-2); --fg-3: var(--on-ink-3);
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .2);
  --chrome: var(--chrome-ink);
  --glass: rgba(20, 22, 25, .6); --glass-line: rgba(255, 255, 255, .1);
}
body[data-theme="paper"], .no-js [data-theme="paper"] {
  --signal-text: #c2410c;
  --bg: var(--paper); --fg: var(--on-paper); --fg-2: var(--on-paper-2); --fg-3: var(--on-paper-3);
  --line: rgba(10, 11, 12, .1); --line-2: rgba(10, 11, 12, .22);
  --chrome: var(--chrome-paper);
  --glass: rgba(243, 243, 240, .72); --glass-line: rgba(10, 11, 12, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--d-slow) var(--ease), color var(--d-slow) var(--ease);
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--signal); color: #fff; border-radius: 8px; font-size: 14px; }
.skip-link:focus { top: 16px; }
.no-js main [data-theme] { background: var(--bg); color: var(--fg); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.intro { display: grid; grid-template-columns: 7fr 5fr; gap: 24px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.intro .h2 { max-width: 13ch; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Type ---------- */
.display { font-size: var(--t-display); letter-spacing: -.05em; line-height: .92; font-weight: 500; }
.h1 { font-size: var(--t-h1); letter-spacing: -.045em; line-height: .95; }
.h2 { font-size: var(--t-h2); letter-spacing: -.04em; line-height: 1; }
.h3 { font-size: var(--t-h3); letter-spacing: -.025em; line-height: 1.12; }
.lead { font-size: var(--t-lead); line-height: 1.45; letter-spacing: -.012em; color: var(--fg-2); max-width: 34ch; }
.body { color: var(--fg-2); max-width: 44ch; }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.chrome .word, .chrome .word > span { background: inherit; -webkit-background-clip: text; background-clip: text; }
.num { font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--fg-3); }


/* ---------- Header ---------- */
.site-header { position: fixed; inset: 16px var(--gutter) auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; transition: transform var(--d-med) var(--ease); }
.site-header > * { pointer-events: auto; }
.site-header.is-hidden { transform: translateY(-140%); }
.pill { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.brand { gap: 10px; padding: 0 18px 0 12px; font-size: 15px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 20px; height: 20px; flex: none; }
.nav { gap: 2px; padding: 4px; }
.nav a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--line); }
.nav .nav-cta { background: var(--fg); color: var(--bg); margin-left: 4px; font-weight: 500; }
.nav .nav-cta:hover { background: var(--fg); color: var(--bg); opacity: .88; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; padding: 0; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--fg); transition: transform var(--d-fast) var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 49; background: var(--ink); color: var(--on-ink); padding: 104px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: -.04em; }
.menu .btn { justify-content: center; --btn-bg: #fff; --btn-fg: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } .menu-btn { display: block; } }

/* ---------- Buttons ---------- */
.btn { --btn-bg: var(--fg); --btn-fg: var(--bg); display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 22px 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-fg); font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transition: transform var(--d-fast) var(--ease), opacity var(--d-fast) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn .arrow { position: relative; width: 16px; height: 16px; overflow: hidden; flex: none; }
.btn .arrow::before, .btn .arrow::after { content: "→"; position: absolute; inset: 0; line-height: 16px; transition: transform var(--d-med) var(--ease); }
.btn .arrow::after { transform: translateX(-120%); }
.btn:hover .arrow::before { transform: translateX(120%); }
.btn:hover .arrow::after { transform: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--line-2); }
.btn[disabled] { opacity: .3; pointer-events: none; }
.link { display: inline-flex; gap: 8px; font-size: 15px; font-weight: 500; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size var(--d-med) var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Media ---------- */
.graded { filter: saturate(.5) contrast(1.06) brightness(.97); }

/* ---------- Reveal: rise, word lines, media wipe. One curve. ---------- */
.has-js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); transition-delay: var(--delay, 0ms); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }
.has-js [data-lines] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.has-js [data-lines] .word > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform var(--d-slow) var(--ease); transition-delay: calc(var(--i, 0) * 36ms); }
.has-js [data-lines].is-in .word > span { transform: none; }
.has-js [data-wipe] { clip-path: inset(8% 8% 8% 8% round 8px); transition: clip-path 1400ms var(--ease); }
.has-js [data-wipe] > img { transform: scale(1.1); transition: transform 1800ms var(--ease); }
.has-js [data-wipe].is-in { clip-path: inset(0 round 8px); }
.has-js [data-wipe].is-in > img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal], .has-js [data-lines] .word > span, .has-js [data-wipe], .has-js [data-wipe] > img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ---------- Home film ---------- */
.film { position: relative; height: 480vh; background: var(--ink); color: var(--on-ink); }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-video, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-video { opacity: 0; transition: opacity var(--d-med) var(--ease); }
.film-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,11,12,.35) 0%, rgba(10,11,12,0) 30%, rgba(10,11,12,.05) 50%, rgba(10,11,12,.8) 100%); }
.film-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 10vh, 112px); will-change: opacity, transform; }
.film-copy .display { max-width: 11ch; }
.film-copy--end { opacity: 0; }
.film-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--signal); }
.film-aperture { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.film-after { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); opacity: 0; pointer-events: none; }
.film-after .h1 { max-width: 15ch; margin-inline: auto; }
.film-after p { margin: 28px auto 0; max-width: 36ch; color: var(--on-ink-2); font-size: var(--t-lead); line-height: 1.45; }
.film-stills, .film-stills-after { display: none; }
.no-js .film, .film.is-static { height: auto; }
.no-js .film-stage, .film.is-static .film-stage { position: relative; }
.no-js .film-video, .film.is-static .film-video, .no-js .film-line, .film.is-static .film-line { display: none; }
.no-js .film-stills, .film.is-static .film-stills { display: grid; gap: 2px; }
.no-js .film-stills-after, .film.is-static .film-stills-after { display: block; padding: var(--section) var(--gutter); text-align: center; }
.film-stills figure { margin: 0; aspect-ratio: 16 / 9; }
.film-stills img { width: 100%; height: 100%; object-fit: cover; }
.film-stills-after .h1 { max-width: 15ch; margin: 0 auto; }
.film-stills-after p { margin: 24px auto 0; max-width: 36ch; color: var(--on-ink-2); font-size: var(--t-lead); }

/* ---------- Shift table ---------- */
.shift { position: relative; height: 280vh; }
.shift-stage { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px 48px; }
.shift-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(32px, 5vw, 64px); }
.shift-head .h2 { max-width: 12ch; }
.shift-meter { text-align: right; flex: none; }
.shift-meter .num { display: block; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.shift-meter .note { font-size: 14px; }
.shift-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(18px, 2vw, 26px) 0; border-top: 1px solid var(--line); }
.shift-row:last-child { border-bottom: 1px solid var(--line); }
.shift-task { font-size: clamp(1.1rem, 1.7vw, 1.55rem); letter-spacing: -.02em; transition: color var(--d-med) var(--ease); }
.shift-state { position: relative; min-width: 200px; height: 24px; text-align: right; font-size: 15px; }
.shift-state > span { position: absolute; right: 0; top: 0; white-space: nowrap; transition: opacity var(--d-med) var(--ease), transform var(--d-med) var(--ease); }
.shift-state .before { color: var(--fg-3); }
.shift-state .after { opacity: 0; transform: translateY(10px); }
.shift-state .after b { font-weight: 500; color: var(--signal-text); }
.shift-row.is-shifted .shift-task { color: var(--fg-3); }
.shift-row.is-shifted .before { opacity: 0; transform: translateY(-10px); }
.shift-row.is-shifted .after { opacity: 1; transform: none; }
.shift-stage > .note { margin-top: 20px; }
@media (max-width: 720px) {
  .shift { height: auto; }
  .shift-stage { position: relative; padding-block: var(--section); }
  .shift-row { grid-template-columns: 1fr; gap: 6px; }
  .shift-state { text-align: left; } .shift-state > span { left: 0; right: auto; }
  .shift-head { flex-direction: column; align-items: start; } .shift-meter { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .shift { height: auto; } .shift-stage { position: relative; } }

/* ---------- Systems: sticky stage + scrolling list ---------- */
.systems { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.systems-media { position: sticky; top: 96px; height: calc(100vh - 128px); max-height: 720px; }
.system-item { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.system-item .h3 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); letter-spacing: -.045em; line-height: 1; }
.system-item .link { align-self: flex-start; margin-top: 8px; }
.stage { position: relative; height: 100%; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.stage-screen { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); opacity: 0; transform: scale(.97); transition: opacity var(--d-med) var(--ease), transform var(--d-slow) var(--ease); }
.stage-screen.is-active { opacity: 1; transform: none; }
.stage-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ui-inline { display: none; }
.systems-caption { margin-top: 16px; }
@media (max-width: 960px) {
  .systems { grid-template-columns: 1fr; }
  .systems-media, .systems-caption { display: none; }
  .system-item { min-height: 0; padding-block: 40px; }
  .ui-inline { display: grid; place-items: center; margin-bottom: 20px; padding: 28px 16px; border-radius: 10px; }
}

/* ---------- Product windows: light, macOS-style ---------- */
.win {
  --w-bg: #ffffff; --w-side: #f5f5f4; --w-line: rgba(0,0,0,.07); --w-text: #1d1d1f; --w-2: #6e6e73; --w-3: #737378;
  position: relative; z-index: 1; width: min(100%, 580px); border-radius: 12px; overflow: hidden;
  background: var(--w-bg); color: var(--w-text);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 30px 80px -20px rgba(0,0,0,.45), 0 12px 24px -12px rgba(0,0,0,.2);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font); font-size: 13px; line-height: 1.4; letter-spacing: -.005em; text-align: left;
}
.win-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding: 0 12px; background: #f6f6f5; border-bottom: 1px solid var(--w-line); }
.win-lights { display: flex; gap: 7px; }
.win-lights i { width: 11px; height: 11px; border-radius: 50%; background: #dcdcdc; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.win-title { font-size: 12.5px; font-weight: 600; color: var(--w-2); white-space: nowrap; }
.win-act { justify-self: end; }
.win-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 6px; background: #1d1d1f; color: #fff; font-size: 12px; font-weight: 500; }
.win-body { display: flex; min-height: 300px; }
.win-side { flex: none; width: 128px; padding: 12px 8px; background: var(--w-side); border-right: 1px solid var(--w-line); display: flex; flex-direction: column; gap: 2px; }
.win-side span { display: flex; justify-content: space-between; padding: 5px 10px; border-radius: 6px; color: var(--w-2); font-size: 12.5px; }
.win-side span.is-on { background: rgba(0,0,0,.06); color: var(--w-text); font-weight: 500; }
.win-side em { font-style: normal; color: var(--signal-text); font-weight: 600; }
.win-side--pages { width: 76px; align-items: center; gap: 10px; padding-top: 16px; }
.win-side--pages i { width: 40px; height: 52px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px var(--w-line); }
.win-side--pages i.is-on { box-shadow: 0 0 0 2px #1d1d1f; }

/* Mail */
.mail-list { flex: 1; min-width: 0; }
.mail { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--w-line); position: relative; }
.mail b { font-weight: 600; font-size: 13px; }
.mail time { color: var(--w-3); font-size: 11.5px; }
.mail p { grid-column: 1 / -1; font-size: 12.5px; }
.mail small { grid-column: 1 / -1; color: var(--w-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail.is-flag { background: #fbfbfa; }
.mail.is-flag::before { content: ""; position: absolute; left: 9px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.mail.is-flag small { color: var(--signal-text); }

/* Document */
.doc { flex: 1; min-width: 0; padding: 28px 28px 24px; background: #fff; }
.doc--wide { padding: 32px 36px 28px; }
.doc-title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.doc-meta { color: var(--w-3); font-size: 12px; margin-top: 4px; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-variant-numeric: tabular-nums; }
.doc-table th { text-align: left; font-weight: 500; color: var(--w-3); font-size: 11.5px; padding: 0 0 8px; border-bottom: 1px solid var(--w-line); }
.doc-table td { padding: 9px 0; border-bottom: 1px solid var(--w-line); }
.doc-table td:last-child, .doc-table th:last-child { text-align: right; }
.doc-table .ok { color: var(--w-3); }
.doc-table .flag { color: var(--signal-text); font-weight: 600; }
.doc-table mark { background: rgba(255, 90, 31, .16); color: inherit; border-bottom: 1.5px solid var(--signal); padding: 0 2px; }
.doc-table .total td { border-bottom: 0; padding-top: 14px; font-weight: 600; }
.doc-note { margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: #f5f5f4; color: var(--w-2); font-size: 12px; border-left: 2px solid var(--signal); }

/* Table */
.jobs { flex: 1; min-width: 0; padding: 8px 0; font-variant-numeric: tabular-nums; }
.jobs-head, .job { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px 20px; }
.jobs-head { color: var(--w-3); font-size: 11.5px; border-bottom: 1px solid var(--w-line); }
.job { border-bottom: 1px solid var(--w-line); }
.job span:first-child { color: var(--w-2); }
.pill-s { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #f0f0ef; color: var(--w-2); }
.job.is-flag .pill-s { background: rgba(255, 90, 31, .12); color: var(--signal-text); font-weight: 500; }
@media (max-width: 520px) {
  .win-side { display: none; }
  .win-title { font-size: 11.5px; }
  .doc, .doc--wide { padding: 20px; }
  .jobs-head, .job { grid-template-columns: 60px 1fr auto; padding: 10px 14px; }
}

/* ---------- Field report ---------- */
.report-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.report-grid .h2 { margin-bottom: 24px; }
.report-grid .note { margin-top: 24px; }
.win--log { width: 100%; max-width: 560px; justify-self: end; }
.log { padding: 6px 0; }
.log-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--w-line); }
.log-row:last-child { border-bottom: 0; }
.log-row time { color: var(--w-3); font-size: 12px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.log-row small { display: block; color: var(--signal-text); font-size: 12px; margin-top: 2px; }
.log-row.is-flag { background: #fbfbfa; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(48px, 8vw, 96px); overflow: hidden; color: var(--on-ink); }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--hero-zoom, 0) * .08)); }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,.55) 0%, rgba(10,11,12,.35) 35%, rgba(10,11,12,.94) 100%), linear-gradient(90deg, rgba(10,11,12,.45), rgba(10,11,12,0) 70%); }
.page-hero .wrap { position: relative; }
.page-hero .h1 { max-width: 13ch; }
.page-hero .lead { margin-top: 28px; color: var(--on-ink-2); }
.page-hero .actions { margin-top: 36px; }

/* ---------- Showcase ---------- */
.showcase { position: relative; border-radius: 8px; overflow: hidden; min-height: min(68vh, 660px); display: grid; place-items: center; padding: clamp(24px, 5vw, 80px); background: var(--ink-2); }
.showcase > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.showcase + .note { margin-top: 16px; }
.showcase ~ .rows { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Two lists: AI does / people do ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.split h3 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; color: var(--fg-3); }
.split > div + div h3 { color: var(--signal-text); }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { padding: 16px 0; border-top: 1px solid var(--line); font-size: clamp(1.05rem, 1.35vw, 1.25rem); letter-spacing: -.015em; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Rows: term + text ---------- */
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 3fr 9fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row > span { font-weight: 500; letter-spacing: -.01em; }
.row > p { color: var(--fg-2); font-size: clamp(1.02rem, 1.3vw, 1.2rem); letter-spacing: -.01em; max-width: 52ch; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Columns: 3 or 4 short items ---------- */
.cols { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: clamp(24px, 3vw, 48px); }
.cols > div { border-top: 1px solid var(--line-2); padding-top: 20px; }
.cols h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -.03em; margin-bottom: 10px; }
.cols p { color: var(--fg-2); font-size: 15.5px; max-width: 32ch; }
.cols .note { margin-top: 14px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } }

/* ---------- Related systems ---------- */
.related-title { margin-bottom: 32px; color: var(--fg-2); }
.related { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; }
.related a { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.045em; color: var(--fg-3); transition: color var(--d-fast) var(--ease); }
.related a:hover { color: var(--fg); }

/* ---------- Closing ---------- */
.closing { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--on-ink); background: var(--ink); }
.closing > img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--shift, 0px), 0); }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,.1) 0%, rgba(10,11,12,.2) 45%, rgba(10,11,12,.85) 100%); }
.closing .wrap { position: relative; z-index: 1; padding-bottom: clamp(56px, 9vw, 112px); }
.closing .display { max-width: 10ch; margin-bottom: 40px; }
.closing .btn { --btn-bg: #fff; --btn-fg: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 48px 0 40px; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-row nav a { color: var(--on-ink-2); font-size: 14.5px; transition: color var(--d-fast) var(--ease); }
.footer-row nav a:hover { color: #fff; }
.footer-row small { color: var(--on-ink-3); font-size: 13px; }
.site-footer .brand { padding: 0; }

/* ---------- Thesis ---------- */
.claim { display: block; padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
.claim:first-child { border-top: 0; padding-top: 0; }
.claim .h2 { max-width: 16ch; }
.claim p { margin-top: 28px; color: var(--fg-2); font-size: var(--t-lead); line-height: 1.5; max-width: 40ch; }

/* ---------- Utilities ---------- */
.mt-l { margin-top: clamp(48px, 6vw, 80px); }
.mt-xl { margin-top: clamp(80px, 10vw, 144px); }

/* ==========================================================================
   Assessment
   ========================================================================== */
.site-header--focus .exit { padding: 0 18px; font-size: 14px; color: var(--fg-2); }
.site-header--focus .exit:hover { color: var(--fg); }
.assess-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 2px; }
.assess-progress span { display: block; height: 100%; width: 0; background: var(--signal); transition: width var(--d-slow) var(--ease); }
.assess-view { min-height: 100svh; display: flex; }
.assess-screen { width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(120px, 20vh, 200px) var(--gutter) 64px; display: flex; flex-direction: column; }
.assess-screen.is-leaving { opacity: 0; transform: translate3d(0, -12px, 0); transition: opacity 220ms var(--ease-io), transform 220ms var(--ease-io); }
.assess-screen.is-entering { animation: assess-in 900ms var(--ease) both; }
@keyframes assess-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .assess-screen.is-entering { animation: none; } .assess-screen.is-leaving { transition: none; } }
.q-count { font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.q-title { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.04em; line-height: 1.04; font-weight: 500; outline: none; }
.q-help { margin-top: 16px; color: var(--fg-2); font-size: var(--t-lead); }
.options { margin-top: clamp(32px, 5vh, 48px); display: grid; gap: 8px; }
.option { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; background: transparent; text-align: left; font-size: clamp(1.02rem, 1.4vw, 1.15rem); letter-spacing: -.015em; color: var(--fg-2); transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease); }
.option:hover { color: var(--fg); border-color: var(--line-2); }
.option::after { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; transition: background-color var(--d-fast) var(--ease); }
.option[aria-checked="true"] { color: var(--fg); border-color: var(--fg); }
.option[aria-checked="true"]::after { background: var(--signal); }
.assess-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.back-btn { background: none; border: 0; padding: 8px 0; color: var(--fg-3); font-size: 15px; }
.back-btn:hover { color: var(--fg); }
.back-btn[disabled] { visibility: hidden; }
.gate { display: grid; gap: 12px; margin-top: 40px; }
.field input { width: 100%; height: 58px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font-size: 17px; transition: border-color var(--d-fast) var(--ease); }
.field input::placeholder { color: var(--fg-3); }
.field input:focus { outline: none; border-color: var(--fg); }
.field input[aria-invalid="true"] { border-color: var(--signal); }
.gate-error { min-height: 1.4em; font-size: 14px; color: var(--signal-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Report */
.report-screen { max-width: 820px; }
.score { font-size: clamp(7rem, 20vw, 13rem); line-height: .8; letter-spacing: -.07em; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.score-level { margin-top: 24px; font-size: var(--t-h3); letter-spacing: -.03em; }
.score-dims { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; color: var(--fg-3); font-size: 14px; }
.score-dims b { color: var(--fg); font-weight: 500; }
.score-dims .low b { color: var(--signal-text); }
.report-part { margin-top: clamp(64px, 9vw, 112px); }
.report-part .why { list-style: none; padding: 0; margin: 24px 0 24px; }
.report-part .why li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--fg-2); }
.hours { font-size: clamp(3.4rem, 8vw, 6rem); line-height: .9; letter-spacing: -.06em; font-weight: 500; }
.report-part details { margin-top: 16px; font-size: 14px; color: var(--fg-3); }
.report-part summary { cursor: pointer; width: fit-content; }
.report-part details p { margin-top: 10px; max-width: 64ch; }
.next { margin-top: clamp(64px, 9vw, 112px); padding: clamp(28px, 5vw, 56px); border-radius: 12px; background: var(--ink); color: var(--on-ink); --fg: var(--on-ink); --fg-2: var(--on-ink-2); --fg-3: var(--on-ink-3); --bg: var(--ink); --line-2: rgba(255,255,255,.24); }
.next .h2 { margin-bottom: 16px; }
.next p { color: var(--on-ink-2); max-width: 44ch; }
.next .actions { margin-top: 32px; }
.report-foot { display: flex; gap: 28px; margin-top: 32px; }
@media print {
  .site-header, .assess-progress, .next .actions, .report-foot, .skip-link { display: none !important; }
  body { background: #fff !important; color: #000; }
  .assess-screen { padding: 0 !important; }
  .next { background: #f1f1ee; color: #000; --fg: #000; --fg-2: #333; }
  .score { -webkit-text-fill-color: #000; }
}

/* ==========================================================================
   Referenced sections (sources noted per block; see STRATEGY.md)
   ========================================================================== */

/* Line drawings: every stroke with pathLength="1" draws in on reveal. */
.has-js .draw svg > * { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.has-js .draw.is-in svg > * { animation-name: draw-line; animation-duration: 1600ms; animation-timing-function: cubic-bezier(.2, .7, 0, 1); animation-fill-mode: forwards; animation-delay: calc(var(--d, 0) * 120ms + 200ms); }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .has-js .draw svg > * { stroke-dashoffset: 0; animation: none; } }
.check { width: 16px; height: 16px; flex: none; color: var(--fg); }

/* Timeline (ref: Ramp, "What you can get done in 30 days") */
.timeline { position: relative; }
.tl-track { position: relative; height: 1px; background: var(--line-2); margin: 0 0 0; }
.tl-fill { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--signal); transition: width 1800ms var(--ease) 200ms; }
.timeline.is-in .tl-fill { width: 100%; }
.tl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.tl-step { position: relative; padding-top: 28px; }
.tl-step::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background-color 400ms var(--ease), border-color 400ms var(--ease); transition-delay: calc(var(--i) * 420ms + 200ms); }
.timeline.is-in .tl-step::before { background: var(--signal); border-color: var(--signal); }
.tl-when { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.tl-card { margin-top: 16px; padding: 22px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.06), 0 12px 32px -18px rgba(10,11,12,.25); color: var(--on-paper); }
.tl-card h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.tl-card p { color: var(--on-paper-2); font-size: 15px; margin-top: 6px; }
.tl-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--on-paper); }
.tl-card li .check { margin-top: 2px; color: var(--signal-text); }
@media (max-width: 900px) {
  .timeline > .tl-track { display: none; }
  .tl-steps { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--line-2); margin-left: 4px; }
  .tl-step { padding: 0 0 32px 24px; }
  .tl-step::before { left: -5px; top: 8px; }
}

/* Feature grid with line drawings (ref: Runner, "You talk, Runner runs") */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.bento > div { background: var(--bg); padding: clamp(24px, 3vw, 40px); transition: background-color var(--d-slow) var(--ease); }
.bento svg { width: 100%; height: auto; max-height: 180px; color: var(--fg); margin-bottom: 28px; overflow: visible; }
.bento svg .s { color: var(--signal-text); }
.bento h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -.03em; }
.bento p { color: var(--fg-2); margin-top: 8px; max-width: 38ch; font-size: 15.5px; }
@media (max-width: 720px) { .bento { grid-template-columns: 1fr; } }

/* Plans (ref: Framer, "Pricing") */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.plan.is-key { background: rgba(255,255,255,.07); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: 1.5rem; letter-spacing: -.03em; }
.plan-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--signal); color: #fff; font-weight: 500; }
.plan > p { color: var(--fg-2); margin-top: 10px; font-size: 15.5px; }
.plan .plan-meta { margin-top: 28px; color: var(--fg); font-size: 1.9rem; letter-spacing: -.04em; font-weight: 500; }
.plan .plan-meta small { display: block; font-size: 14px; letter-spacing: 0; color: var(--fg-3); font-weight: 400; margin-top: 4px; }
.plan ul { list-style: none; margin: 28px 0 32px; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--fg-2); }
.plan li .check { margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 20px clamp(24px, 2.6vw, 36px); border-radius: 16px; border: 1px solid var(--line); color: var(--fg-2); }
.plans-strip b { color: var(--fg); font-weight: 500; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Thesis claim (ref: Twenty, "The Problem") */
.claim-row { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
.claim-row:first-child { border-top: 0; padding-top: 0; }
.halftone { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--paper); }
.halftone canvas, .halftone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.halftone img { filter: grayscale(1) contrast(1.2); }
.halftone canvas { opacity: 0; transition: opacity 900ms var(--ease); }
.halftone.is-ready canvas { opacity: 1; }
.halftone.is-ready img { opacity: 0; }
.duo { color: var(--fg-3); }
.duo b { color: var(--fg); font-weight: inherit; }
.claim-points { margin-top: 40px; border-top: 1px solid var(--line); }
.claim-points div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.claim-points h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.claim-points p { color: var(--fg-2); font-size: 15.5px; margin-top: 4px; }
@media (max-width: 800px) { .claim-row { grid-template-columns: 1fr; } .halftone { aspect-ratio: 16 / 10; } }

/* Handoff flow (ref: UGLYCASH, "How does it work" diagram) */
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr minmax(0, 1.4fr) 1fr minmax(0, 1.4fr); align-items: center; }
.flow-in { display: grid; gap: 8px; }
.flow-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); white-space: nowrap; background: var(--bg); }
.flow-wire { height: 2px; min-width: 24px; }
.flow-wire svg { width: 100%; height: 2px; display: block; }
.flow-wire line { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 6; animation: wire 1.4s linear infinite; }
.flow-wire.is-hot line { stroke: var(--signal); }
@keyframes wire { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .flow-wire line { animation: none; } }
.flow-node { width: 76px; height: 76px; border-radius: 20px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); position: relative; }
.flow-node svg { width: 30px; height: 30px; }
.flow-node small { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.flow-card { padding: 20px; border-radius: 14px; background: #fff; color: var(--on-paper); box-shadow: 0 0 0 1px rgba(10,11,12,.06), 0 16px 40px -20px rgba(10,11,12,.3); }
.flow-card h3 { font-size: 14px; font-weight: 500; color: var(--on-paper-3); margin-bottom: 10px; letter-spacing: 0; }
.flow-card.is-people { background: var(--ink); color: var(--on-ink); }
.flow-card.is-people h3 { color: var(--signal-text); }
.flow-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow-card li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.35; }
.flow-card li .check { margin-top: 1px; color: inherit; opacity: .55; }
.flow-card.is-people li .check { color: var(--signal-text); opacity: 1; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; justify-items: start; gap: 0; }
  .flow-in { display: flex; flex-wrap: wrap; }
  .flow-wire { width: 2px; height: 36px; margin-left: 38px; min-width: 0; }
  .flow-wire svg { width: 2px; height: 36px; }
  .flow-node small { left: calc(100% + 14px); top: 50%; transform: translateY(-50%); }
  .flow-card { width: 100%; }
}

/* Related systems with live previews */
.rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel a { display: block; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform var(--d-med) var(--ease), border-color var(--d-med) var(--ease); }
.rel a:hover { transform: translateY(-4px); border-color: var(--line-2); }
.rel-shot { position: relative; height: 220px; overflow: hidden; background: var(--ink-2); display: grid; place-items: start center; padding-top: 28px; }
.rel-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.rel-shot .win { zoom: .62; pointer-events: none; }
.rel-text { padding: 18px 20px 20px; }
.rel-text h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.rel-text p { color: var(--fg-2); font-size: 14.5px; margin-top: 2px; }
@media (max-width: 900px) { .rel { grid-template-columns: 1fr; } }

/* Quiz intro previews (ref: Norma / Portrait three-step cards) */
.intro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 44px; }
.intro-cards div { padding: 18px; border-radius: 14px; border: 1px solid var(--line); }
.intro-cards b { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.intro-cards span { display: block; color: var(--fg-3); font-size: 13.5px; margin-top: 10px; }
@media (max-width: 560px) { .intro-cards { grid-template-columns: 1fr; } }

/* Footer, full (ref: common SaaS pattern: brand + link columns + legal row) */
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px 24px; padding-bottom: 56px; }
.footer-grid p { color: var(--on-ink-3); font-size: 14.5px; margin-top: 14px; max-width: 30ch; }
.footer-grid h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--on-ink-3); }
.footer-grid nav { display: grid; gap: 10px; }
.footer-grid nav a { color: var(--on-ink-2); font-size: 14.5px; width: fit-content; transition: color var(--d-fast) var(--ease); }
.footer-grid nav a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); color: var(--on-ink-3); font-size: 13px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Legal and plain pages */
.prose { max-width: 680px; }
.prose h1 { font-size: var(--t-h2); letter-spacing: -.04em; }
.prose .updated { color: var(--fg-3); font-size: 14px; margin-top: 16px; }
.prose h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-top: 48px; }
.prose p, .prose li { color: var(--fg-2); margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.page-plain { padding: 180px 0 var(--section); }

/* ==========================================================================
   Giga-derived effects (ref: giga.ai via Mobbin)
   ========================================================================== */

/* Pixel Line type: hero moments and big numbers only. */
.pixel { font-family: "Geist Pixel Line", var(--mono); font-weight: 400; letter-spacing: -.02em; }
.pixel.display, .pixel.h1 { letter-spacing: -.03em; line-height: .95; }
[data-decrypt] { font-variant-ligatures: none; }

/* Ember glow rising from the bottom of an ink section. */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 118%, rgba(255, 110, 40, .34), rgba(255, 90, 31, .08) 45%, transparent 70%),
    radial-gradient(28% 70% at 50% 120%, rgba(255, 170, 110, .22), transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, #000 45%, transparent 100%);
}
.glow::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px); background-size: calc(100% / 12) 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 80%); mask-image: linear-gradient(to top, #000, transparent 80%);
}

/* Glow panel behind product windows: ink, contour lines, warm light. */
.panel:not(.stage-screen) { position: relative; }
.panel { overflow: hidden; background: #0c0d0f; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 50% 110%, rgba(255, 110, 40, .38), rgba(255, 90, 31, .06) 55%, transparent 75%), radial-gradient(40% 40% at 80% 0%, rgba(160, 175, 190, .12), transparent 70%); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/images/contours.svg") center bottom / cover no-repeat; opacity: .35; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
.panel--teal::before { background: radial-gradient(70% 60% at 50% 110%, rgba(90, 170, 170, .32), transparent 70%), radial-gradient(40% 40% at 20% 0%, rgba(160, 175, 190, .1), transparent 70%); }
.panel--steel::before { background: radial-gradient(70% 60% at 50% 110%, rgba(170, 180, 195, .3), transparent 70%); }
.panel--olive::before { background: radial-gradient(70% 60% at 50% 110%, rgba(150, 170, 90, .3), transparent 70%); }

/* Microcopy under a primary button: removes friction, one line only. */
.cta-note { margin-top: 14px; font-size: 13.5px; color: var(--fg-3); }
.film-after .actions, .film-stills-after .actions { justify-content: center; margin-top: 36px; }
.film-after .cta-note, .film-stills-after .cta-note { text-align: center; color: var(--on-ink-3); }
.closing .cta-note { color: rgba(255,255,255,.72); }
.page-hero .cta-note { color: rgba(255,255,255,.66); }

/* Open variant: no boxes, four columns. Sits between two card sections for contrast. */
.bento--open { grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); background: none; border: 0; border-radius: 0; overflow: visible; }
.bento--open > div { padding: 0; background: none; }
.bento--open svg { max-height: 120px; margin-bottom: 24px; }
@media (max-width: 900px) { .bento--open { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 520px) { .bento--open { grid-template-columns: 1fr; } }

/* Thesis rhythm: images alternate sides. */
@media (min-width: 801px) {
  .claim-row:nth-child(even) { grid-template-columns: 6fr 5fr; }
  .claim-row:nth-child(even) > .halftone { order: 2; }
}

/* ==========================================================================
   Second Shift (publication)
   ========================================================================== */
.section--tight { padding-block: calc(var(--section) * .55); }

/* Masthead */
.masthead { padding: 168px 0 clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.masthead-title { font-size: clamp(3.4rem, 11vw, 10rem); line-height: .9; letter-spacing: -.03em; }
.masthead-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-top: 32px; }
.masthead-row .lead { max-width: 46ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.card { display: flex; flex-direction: column; gap: 18px; }
.card-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.card:hover .card-shot img { transform: scale(1.04); }
.card-shot--type { display: grid; place-items: center; color: var(--on-ink); background: #0c0d0f; }
.card-shot--type span { font-size: 5rem; }
.card-cat { font-size: 13px; color: var(--fg-3); }
.card h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -.025em; line-height: 1.15; margin-top: 6px; transition: color var(--d-fast) var(--ease); }
.card:hover h3 { color: var(--signal-text); }
.card-text > p:not(.card-cat):not(.card-meta) { color: var(--fg-2); font-size: 15px; margin-top: 8px; }
.card-meta { font-size: 13px; color: var(--fg-3); margin-top: 10px; }
.card--feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.card--feature .card-shot { aspect-ratio: 16 / 10; }
.card--feature h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1.02; }
.card--feature .card-text > p:not(.card-cat):not(.card-meta) { font-size: var(--t-lead); margin-top: 16px; max-width: 34ch; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } .card--feature { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Article */
.article-head { padding-top: 168px; max-width: 980px; }
.article-title { font-size: clamp(2.4rem, 5.4vw, 5rem); letter-spacing: -.045em; line-height: 1; }
.article-dek { margin-top: 24px; font-size: var(--t-lead); line-height: 1.45; color: var(--fg-2); max-width: 44ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-3); }
.article-meta a { color: var(--fg); font-weight: 500; }
.article-hero-img { max-width: var(--max); margin: clamp(40px, 6vw, 72px) auto 0; padding-inline: var(--gutter); }
.article-hero-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 8px; }
.article-body { padding-block: clamp(48px, 6vw, 80px) 24px; }
.prose--article { max-width: 700px; margin-inline: auto; font-size: clamp(1.06rem, 1.2vw, 1.19rem); line-height: 1.7; }
.prose--article p, .prose--article li { color: var(--fg); margin-top: 1.1em; }
.prose--article > p:first-child { font-size: 1.2em; line-height: 1.6; }
.prose--article h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; margin-top: 2.2em; line-height: 1.12; }
.prose--article h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-top: 1.8em; }
.prose--article ul, .prose--article ol { padding-left: 1.2em; }
.prose--article li::marker { color: var(--signal-text); }
.prose--article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose--article a:hover { text-decoration-color: var(--signal); }
.prose--article strong { font-weight: 600; }
.prose--article blockquote { margin: 2em 0; padding: 0; border: 0; }
.prose--article blockquote p { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; color: var(--fg); }
.prose--article blockquote p::before { content: ""; display: block; width: 28px; height: 2px; background: var(--signal); margin-bottom: 18px; }
.callout { margin: 2.2em 0; padding: 24px 26px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.06), 0 16px 40px -24px rgba(10,11,12,.25); font-size: .95em; }
.callout > :first-child { margin-top: 0; }
.callout h3 { margin-top: 0; }
.diagram { margin: 2.6em -8%; padding: clamp(20px, 3vw, 36px); border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.06); color: var(--on-paper); }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.diagram figcaption { margin-top: 16px; font-size: 14px; color: var(--fg-3); line-height: 1.5; }
.diagram--todo { min-height: 160px; display: grid; place-items: center; border: 1px dashed var(--line-2); background: transparent; }
@media (max-width: 800px) { .diagram { margin-inline: 0; } }
.terms { margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--line-2); }
.terms h2 { font-size: 1.1rem !important; margin-top: 0 !important; letter-spacing: -.01em; }
.terms dl { margin: 12px 0 0; }
.terms dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 600; font-size: .95em; }
.terms dd { margin: 0; color: var(--fg-2); font-size: .95em; line-height: 1.55; }
@media (max-width: 600px) { .terms dl > div { grid-template-columns: 1fr; gap: 4px; } }
.article-end { max-width: 700px; margin: 0 auto; padding-bottom: clamp(56px, 7vw, 96px); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-3); }
.share span { margin-right: 8px; }
.share a, .share button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--fg); font-size: 13.5px; }
.share a:hover, .share button:hover { border-color: var(--fg); }
.talk { margin-top: 48px; padding: clamp(28px, 4vw, 44px); border-radius: 14px; background: var(--ink); color: var(--on-ink); --fg: var(--on-ink); --fg-2: var(--on-ink-2); --bg: var(--ink); --line-2: rgba(255,255,255,.24); }
.talk h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.035em; }
.talk p { color: var(--on-ink-2); margin-top: 12px; max-width: 46ch; }
.talk .actions { margin-top: 28px; gap: 24px; }

/* Newsletter band */
.newsletter { position: relative; padding-block: var(--section); background: var(--ink); color: var(--on-ink); --fg: var(--on-ink); --fg-2: var(--on-ink-2); --fg-3: var(--on-ink-3); --bg: var(--ink); --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.22); --chrome: var(--chrome-ink); }
.newsletter-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.newsletter .lead { margin-top: 20px; }
.nl-form, .gate-dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.nl-form input, .gate-dl input { height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 16px; color: var(--fg); }
.nl-form input:focus, .gate-dl input:focus { outline: none; border-color: var(--fg); }
.nl-form input[aria-invalid="true"], .gate-dl input[aria-invalid="true"] { border-color: var(--signal); }
.nl-form .note, .gate-dl .note { grid-column: 1 / -1; min-height: 1.2em; }
.nl-form.is-done input, .nl-form.is-done button { display: none; }
@media (max-width: 800px) { .newsletter-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nl-form, .gate-dl { grid-template-columns: 1fr; } .nl-form .btn, .gate-dl .btn { justify-content: center; } }

/* Library: book covers */
.library { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.library h3 { font-size: 1.3rem; letter-spacing: -.025em; margin-top: 22px; }
.library p { color: var(--fg-2); font-size: 15px; margin-top: 8px; }
.library .note { margin-top: 12px; }
.library .link { margin-top: 16px; }
.book-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; background: #16181b url("../assets/images/contours.svg") center bottom / 220% no-repeat; color: #f2f3f4; box-shadow: inset 6px 0 0 rgba(255,255,255,.06), inset 7px 0 0 rgba(0,0,0,.35), 0 30px 60px -30px rgba(0,0,0,.6); overflow: hidden; transition: transform var(--d-med) var(--ease); }
.book-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 110%, rgba(255,110,40,.35), transparent 70%); }
.book-cover > * { position: relative; }
.book-cover .pixel { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.02; }
.book-cover small { font-size: 12.5px; color: rgba(255,255,255,.6); }
.book:hover .book-cover { transform: translateY(-6px) rotate(-.6deg); }
.book--light .book-cover { background-color: #e9e8e2; color: #0b0c0e; }
.book--light .book-cover::before { background: radial-gradient(80% 50% at 50% 110%, rgba(255,110,40,.18), transparent 70%); }
.book--light .book-cover small { color: rgba(0,0,0,.55); }
.book--signal .book-cover { background-color: #ff5a1f; color: #0b0c0e; }
.book--signal .book-cover::before { background: none; }
.book--signal .book-cover small { color: rgba(0,0,0,.6); }
@media (max-width: 800px) { .library { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .library { grid-template-columns: 1fr; } }
.downloads { display: grid; gap: clamp(48px, 6vw, 80px); }
.download { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.download:last-child { border-bottom: 0; }
.download p { color: var(--fg-2); margin-top: 12px; max-width: 52ch; }
.download .gate-dl { margin-top: 24px; max-width: 520px; }
@media (max-width: 700px) { .download { grid-template-columns: 1fr; } .download .book { max-width: 220px; } }

/* ==========================================================================
   FAQ (ref: Harvest pricing FAQ: heading left, hairline accordion right)
   ========================================================================== */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-title { font-size: var(--t-h2); letter-spacing: -.04em; line-height: 1; max-width: 10ch; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(1.05rem, 1.35vw, 1.2rem); letter-spacing: -.015em; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: currentColor; transition: transform var(--d-med) var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-item[open] summary { color: var(--fg); }
.faq-item summary:hover span { color: var(--signal-text); }
.faq-a { padding: 0 48px 24px 0; color: var(--fg-2); max-width: 62ch; }
.faq-a p { margin: 0; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq-title { max-width: none; } }
/* FAQ inside an article: single column, smaller heading */
.prose--article .faq { display: block; margin-top: 3em; }
.prose--article .faq-title { font-size: clamp(1.4rem, 2vw, 1.8rem) !important; margin: 0 0 18px !important; max-width: none; }
.prose--article .faq-item summary { font-size: 1.05rem; }
.prose--article .faq-a p { margin-top: 0; color: var(--fg-2); }

/* In short (answer-first summary at the top of each article) */
.in-short { margin: 0 0 2.4em; padding: 22px 24px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.06); }
.prose--article .in-short-title { font-size: 14px !important; font-weight: 600; letter-spacing: 0; margin: 0 !important; color: var(--signal-text); }
.in-short ul { margin: 10px 0 0; padding-left: 1.1em; }
.prose--article .in-short li { margin-top: .5em; font-size: .98em; line-height: 1.55; }

/* Article layout with contents rail (ref: Attio "On this page", incident.io active marker) */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 64px; max-width: 1040px; margin: 0 auto; }
.article-grid .prose--article { margin: 0; }
.article-rail { position: relative; }
.toc { position: sticky; top: 110px; }
.toc-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--fg-3); transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease); }
.toc li a:hover { color: var(--fg); }
.toc li a.is-current { color: var(--fg); border-left-color: var(--signal); }
@media (max-width: 1100px) { .article-grid { grid-template-columns: 1fr; max-width: 700px; } .article-rail { display: none; } }
.prose--article h2 { scroll-margin-top: 100px; }
.terms dl > div { scroll-margin-top: 100px; }
.terms dl > div:target { background: rgba(255, 90, 31, .08); }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--signal); transform: scaleX(var(--read, 0)); transform-origin: left; }

/* Decrypt: real text stays in the DOM for crawlers and screen readers. */
[data-decrypt] .decrypt-real { color: transparent; }
[data-decrypt] .decrypt-fx { position: absolute; left: 0; top: 0; right: 0; }

/* Topic filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font-size: 14px; transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mt-m { margin-top: 28px; }
.card[hidden] { display: none; }

/* Free First Pass request */
.request { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.request-steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: rs; }
.request-steps li { counter-increment: rs; display: grid; grid-template-columns: 36px 1fr; padding: 16px 0; border-top: 1px solid var(--line); color: var(--fg-2); }
.request-steps li::before { content: counter(rs); font-weight: 600; color: var(--signal-text); }
.request-steps b { color: var(--fg); font-weight: 500; }
.fp-form { display: grid; gap: 10px; padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.06), 0 24px 60px -30px rgba(10,11,12,.3); }
.fp-form .field input, .fp-form select { width: 100%; height: 54px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font-size: 16px; color: var(--fg); }
.fp-form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6f76' stroke-width='1.5'/%3E%3C/svg%3E") right 18px center no-repeat; }
.fp-form select:invalid { color: var(--fg-3); }
.fp-form input:focus, .fp-form select:focus { outline: none; border-color: var(--fg); }
.fp-form [aria-invalid="true"] { border-color: var(--signal); }
.fp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 6px 0 0; }
.fp-pick label { position: relative; }
.fp-pick input { position: absolute; opacity: 0; }
.fp-pick span { display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; cursor: pointer; transition: border-color var(--d-fast) var(--ease); }
.fp-pick input:checked + span { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.fp-pick input:checked + span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-left: auto; }
.fp-pick input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.fp-form .btn { justify-content: center; margin-top: 6px; }
.fp-done { padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.06); }
.fp-done p { color: var(--fg-2); margin-top: 10px; }
@media (max-width: 900px) { .request { grid-template-columns: 1fr; } }

.gate-dl { grid-template-columns: 1fr auto auto; }
.gate-size { height: 52px; padding: 0 36px 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6f76' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center no-repeat; appearance: none; font-size: 15px; color: var(--fg); }
.gate-size:invalid { color: var(--fg-3); }
.gate-size[aria-invalid="true"] { border-color: var(--signal); }
@media (max-width: 640px) { .gate-dl { grid-template-columns: 1fr; } }

/* Orange text on white surfaces (windows, cards, callouts) uses the darker shade too. */
.win, .tl-card, .flow-card:not(.is-people), .callout, .in-short, .fp-form, .fp-done { --signal-text: #c2410c; }
.win .mail.is-flag small, .win .job.is-flag .pill-s, .win .log-row small, .win .doc-table .flag, .win .ui-row.is-flag .ui-val { color: var(--signal-text); }

/* Sourced facts band */
.facts .fact-num { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.03em; color: var(--fg); margin-bottom: 18px; }
.facts p { font-size: 16px; }
.facts .note a { text-decoration: underline; text-underline-offset: 3px; }

/* Article charts and stat strips (::: chart, ::: stats) */
.chart { margin: 2.4em 0; padding: 24px 26px 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.06), 0 16px 40px -24px rgba(10,11,12,.25); --signal-text: #c2410c; }
.chart-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.chart-unit { font-weight: 400; color: var(--fg-3); }
.bars { display: grid; gap: 10px; margin-top: 18px; }
.bar { display: grid; grid-template-columns: minmax(84px, 30%) 1fr auto; align-items: center; gap: 12px; font-size: 13.5px; }
.bar-label { color: var(--fg-2); line-height: 1.3; }
.bar-track { height: 10px; border-radius: 99px; background: rgba(10,11,12,.06); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #8a8f97; transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.1,1); }
.has-js .chart:not(.is-in) .bar-fill { transform: scaleX(0); }
.bar.is-hl .bar-fill { background: linear-gradient(90deg, #c2410c, #ff5a1f); }
.bar.is-hl .bar-label, .bar.is-hl .bar-val { color: var(--fg); font-weight: 600; }
.bar-val { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.prose .chart-src { margin-top: 14px; font-size: 12.5px; color: var(--fg-3); }
.chart-src a { color: inherit; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 2.4em 0; border-radius: 12px; overflow: hidden; background: rgba(10,11,12,.08); box-shadow: 0 0 0 1px rgba(10,11,12,.06); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; background: #fff; }
.stat b { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #c2410c; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; line-height: 1.4; color: var(--fg-2); }
.stat small { margin-top: auto; font-size: 11.5px; color: var(--fg-3); }
.stat small a { color: inherit; }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr auto; } .bar-label { grid-column: 1 / -1; } .chart { padding: 20px 18px 14px; } }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } .has-js .chart:not(.is-in) .bar-fill { transform: none; } }
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92em; }
.table-wrap th { text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 1.5px solid var(--fg); }
.table-wrap td { padding: 10px 12px; border-bottom: 1px solid rgba(10,11,12,.1); vertical-align: top; color: var(--fg-2); }

/* Gradient band: one full-width bright section per page at most, white type on the brand gradient.
   Usage: <section class="gband" data-theme="ink"><div class="gband__bg" style="background-image:url(assets/images/grad-flare.webp)"></div>...</section> */
.gband { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #ff5a1f; padding-block: clamp(96px, 13vw, 176px); }
.gband__bg { position: absolute; inset: -4%; z-index: -2; background: center / cover no-repeat; transform: scale(1.06); transition: transform 2400ms var(--ease); }
.gband.is-in .gband__bg { transform: scale(1); }
.gband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(150, 40, 0, .34) 0%, rgba(150, 40, 0, .12) 45%, rgba(150, 40, 0, 0) 75%); }
.gband__inner { display: grid; gap: clamp(16px, 2vw, 24px); }
.gband__num { font-family: "Geist Pixel Line", ui-monospace, monospace; font-size: clamp(88px, 15vw, 220px); line-height: .82; letter-spacing: -.02em; }
.gband__line { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; max-width: 19ch; text-wrap: balance; }
.gband__note { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; font-weight: 500; max-width: 50ch; color: rgba(255, 255, 255, .94); }
.gband__note a { color: #fff; }
.gband .actions { margin-top: 8px; }
.gband .btn { --btn-bg: #fff; --btn-fg: #0a0b0c; }
@media (prefers-reduced-motion: reduce) { .gband__bg { transform: none; transition: none; } }
.terms--plain { margin: 1.6em 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.terms--plain > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.terms--plain > div:target { background: rgba(255, 90, 31, .08); }
.terms--plain dt { font-weight: 600; font-size: .95em; }
.terms--plain dd { margin: 0; color: var(--fg-2); font-size: .95em; line-height: 1.55; }
@media (max-width: 560px) { .terms--plain > div, .terms dl > div { grid-template-columns: 1fr; gap: 4px; } }
/* Responsive fixes (breakpoint audit 2026-09-25) */
.download > div { min-width: 0; }
@media (max-width: 1100px) { .download .gate-dl { grid-template-columns: 1fr; } .download .gate-dl .btn { justify-content: center; } }
.request-steps li { grid-template-columns: 36px minmax(0, 1fr); overflow-wrap: anywhere; }
.request > * { min-width: 0; }
@media (max-width: 400px) { .shift-state { min-width: 0; font-size: 14px; } .shift-row { gap: 12px; } }
/* "Go deeper" link card inside a pillar article (::: deeper slug | Title | line) */
.deeper { position: relative; display: grid; gap: 4px; margin: 1.8em 0; padding: 18px 56px 18px 20px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10,11,12,.08); color: var(--on-paper); text-decoration: none; transition: box-shadow var(--d-fast) var(--ease), transform var(--d-fast) var(--ease); }
.deeper:hover { box-shadow: 0 0 0 1px rgba(10,11,12,.14), 0 14px 32px -20px rgba(10,11,12,.35); transform: translateY(-1px); }
.deeper span { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #c2410c; }
.deeper b { font-size: 1.05em; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.deeper em { font-style: normal; font-size: .92em; color: var(--on-paper-2); line-height: 1.45; }
.deeper i { position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #ff5a1f; }
.deeper i::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 6px; border: solid #fff; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.prose, .prose--article { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }
.film-copy--start .lead { margin-top: clamp(18px, 2.4vw, 32px); max-width: 34ch; }
