/* =====================================================================
   The Future · site.css · v3 "Engine"
   A Corolla with a Ferrari engine hiding. The surface is calm: paper, ink,
   a Swiss grid, wide engineered type. Orange is the red sole: it appears
   only on the engine layer, the part that shows what runs underneath.
   Looks: <html data-site-theme="light|dark">; no attribute = follow the device.
   v4: the engine is no longer a site-wide switch. It lives in the X-ray (home) and the flip (field guides).
   ===================================================================== */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root, :root[data-site-theme="light"] {
  --bg: #F2F1EC;           /* paper */
  --bg-2: #E8E7E1;         /* paper, one shade down */
  --card: #FBFAF7;
  --ink: #0B0B0C;
  --ink-2: #57575B;        /* AA on bg */
  --ink-3: #8A8A8E;        /* decorative only */
  --line: rgba(11,11,12,.14);
  --line-2: rgba(11,11,12,.3);
  --eng: #FF5A1F;          /* the red sole: engine layer only */
  --eng-text: #B03A08;     /* engine orange as small text on paper (AA) */
  --eng-wash: rgba(255,90,31,.07);
  --invert-bg: #0B0B0C; --invert-ink: #F2F1EC; --invert-ink-2: #A9A9AC;
  --receipt: #FFFFFF; --receipt-ink: #111112; --receipt-ink-2: #646468;
  color-scheme: light;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1280px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-site-theme="light"]) {
    --bg: #0B0B0C; --bg-2: #161617; --card: #121213;
    --ink: #F2F1EC; --ink-2: #A9A9AC; --ink-3: #6E6E72;
    --line: rgba(242,241,236,.14); --line-2: rgba(242,241,236,.32);
    --eng-text: #FF7A45; --eng-wash: rgba(255,90,31,.09);
    --invert-bg: #F2F1EC; --invert-ink: #0B0B0C; --invert-ink-2: #57575B;
    color-scheme: dark;
  }
}
:root[data-site-theme="dark"] {
  --bg: #0B0B0C; --bg-2: #161617; --card: #121213;
  --ink: #F2F1EC; --ink-2: #A9A9AC; --ink-3: #6E6E72;
  --line: rgba(242,241,236,.14); --line-2: rgba(242,241,236,.32);
  --eng-text: #FF7A45; --eng-wash: rgba(255,90,31,.09);
  --invert-bg: #F2F1EC; --invert-ink: #0B0B0C; --invert-ink-2: #57575B;
  color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; transition: background-color .3s; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; font-stretch: 118%; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
h3, h4 { line-height: 1.1; letter-spacing: -.02em; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--bg); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- spec lines (what runs underneath, always visible) */
.eng, .eng-line, .spec p:not(.label) { font: 400 12px/1.6 var(--font-mono); font-stretch: 87.5%; }
.eng { color: var(--eng-text); }
.eng-line { color: var(--ink-2); display: block; margin-top: 8px; padding-left: 14px; position: relative; }
.eng-line::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--eng); }
.spec { border-left: 2px solid var(--eng); padding: 2px 0 2px 14px; display: grid; gap: 6px; max-width: 72ch; }
.spec p:not(.label) { color: var(--ink-2); }
.hero-note { margin-top: 24px; max-width: 64ch; font: 500 12px/1.6 var(--font-mono); font-stretch: 87.5%; letter-spacing: .02em; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--eng); }

/* the X-ray button: a small instrument switch with an LED */
.xr-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--xr-line, var(--line-2)); border-radius: 999px; padding: 8px 16px 8px 12px; cursor: pointer; font: 500 11px/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--xr-fg, var(--ink)); min-height: 38px; transition: border-color .2s; }
.xr-btn:hover { border-color: var(--xr-fg, var(--ink)); }
.xr-btn .led { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; transition: background-color .25s, box-shadow .25s, border-color .25s; flex: none; }
.xr-btn[aria-pressed="true"] .led { background: var(--eng); border-color: var(--eng); box-shadow: 0 0 10px 1px rgba(255,90,31,.7); }
.xr-btn .on { display: none; } .xr-btn[aria-pressed="true"] .on { display: inline; } .xr-btn[aria-pressed="true"] .off { display: none; }
.xr-btn.light { --xr-line: var(--line-2); --xr-fg: var(--ink); }

/* ---------- buttons, links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; font: 500 15px/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: transparent; color: var(--ink); }
.link-arrow { font: 500 15px/1.4 var(--font-body); text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover { border-color: var(--ink); text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: inline-flex; color: var(--ink); flex: none; }
.brand svg { height: 16px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.nav a { font-size: 14.5px; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-header .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; min-height: 38px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.nav .in-nav { display: none !important; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header .wrap > .btn { display: none; }
  .site-header .wrap > .eng-switch { margin-left: auto; }
  .site-header .wrap > .eng-switch + .menu-btn { margin-left: 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; margin: 0; max-height: calc(100svh - 68px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav .btn.in-nav { display: inline-flex !important; margin-top: 18px; justify-content: center; }
}
@media (max-width: 480px) { .site-header .wrap > .eng-switch .lbl { display: none; } .site-header .wrap > .eng-switch { padding-right: 8px; } .site-header .wrap { gap: 10px; } }

/* ---------- sections */
section { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
main > section:first-child { border-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 clamp(16px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 64px); align-items: start; }
.sec-head .idx { padding-top: .7em; }
.sec-head h2 { max-width: 20ch; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; }
.sec-head .lede { margin-top: 18px; }
.sec-head .extra { margin-top: 22px; }
@media (max-width: 820px) { .sec-head { grid-template-columns: minmax(0, 1fr); } .sec-head .idx { padding: 0 0 14px; } }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(18px); }

/* ---------- home hero: headline + the X-ray */
.hero { padding-block: clamp(32px, 4.5vw, 72px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero .kicker { margin-bottom: clamp(20px, 2.6vw, 32px); }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 5.6rem); max-width: 9ch; }
.hero .lede { margin-top: clamp(20px, 2.6vw, 30px); max-width: 38ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: clamp(26px, 3vw, 36px); }

/* ---------- 404 receipt (kept: it is the only receipt left) */
.receipt-wrap { justify-self: center; width: 100%; max-width: 410px; }
.receipt { position: relative; background: var(--receipt); color: var(--receipt-ink); font: 400 12.5px/1.55 var(--font-mono); font-stretch: 87.5%; padding: 30px 26px 44px; transform: rotate(-1.2deg); filter: drop-shadow(0 22px 34px rgba(0,0,0,.16)) drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--receipt) 6px) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--receipt) 6px) 0 0 / 12px 10px repeat-x; }
.receipt .store { text-align: center; font-weight: 600; letter-spacing: .16em; font-size: 13px; }
.receipt .meta { text-align: center; color: var(--receipt-ink-2); font-size: 11px; margin-top: 4px; }
.receipt hr { border: 0; border-top: 1px dashed rgba(0,0,0,.3); margin: 14px 0; }
.receipt .ln { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 3px 0; }
.receipt .ln.big { font-weight: 600; font-size: 15px; margin-top: 4px; }
.receipt .ln.small { color: var(--receipt-ink-2); font-size: 11.5px; }
.receipt .ln .p { text-align: right; font-variant-numeric: tabular-nums; }
.receipt .foot { text-align: center; margin-top: 14px; color: var(--receipt-ink-2); font-size: 11px; }
.receipt .bars { height: 40px; margin: 16px auto 0; width: 80%; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px, #111 12px 13px, transparent 13px 16px); }

/* ---------- moments: a Vignelli index */
.moments { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.moment { display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 8px clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.moment .n { font: 500 12px/1 var(--font-mono); color: var(--ink-2); }
.moment h3 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 300; font-stretch: 125%; letter-spacing: -.035em; }
.moment .s { font-size: 1.06rem; }
.moment .eng-line { margin-top: 8px; display: block; }
.moment .links { display: grid; gap: 6px; font-size: 14.5px; }
.moment .links a { text-decoration: none; color: var(--ink-2); }
.moment .links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .moment, .moment[style] { grid-template-columns: 40px minmax(0, 1fr) !important; } .moment > :nth-child(n+3) { grid-column: 2; } }

/* ---------- editorial */
.editorial .big { font-family: var(--font-display); font-stretch: 112%; font-weight: 300; font-size: clamp(1.45rem, 2.7vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; max-width: 30ch; text-wrap: balance; }
.editorial .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 4vw, 44px); color: var(--ink-2); }
.editorial .cols > p { margin: 0; }
.sources { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sources a { color: var(--ink-2); }
.sources a:hover { color: var(--ink); }
@media (max-width: 820px) { .editorial .cols { grid-template-columns: minmax(0, 1fr); } }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin-top: clamp(36px, 5vw, 56px); }
.figures > div { padding: 22px 22px 0 0; border-right: 1px solid var(--line); }
.figures > div + div { padding-left: 22px; }
.figures > div:last-child { border-right: 0; }
.figures .num { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.figures p { color: var(--ink-2); font-size: 14.5px; margin-top: 12px; max-width: 32ch; }
@media (max-width: 720px) { .figures { grid-template-columns: minmax(0, 1fr); } .figures > div, .figures > div + div { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; } }

/* ---------- posters: the field guides */
.poster { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; text-decoration: none; color: var(--receipt-ink); background: var(--receipt); aspect-ratio: 4 / 5; padding: clamp(14px, 1.5vw, 20px); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 0 0 1px var(--line); }
a.poster:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 26px 44px -28px rgba(0,0,0,.45); text-decoration: none; }
.poster .top { display: flex; justify-content: space-between; font: 500 10px/1.3 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--receipt-ink-2); gap: 10px; }
.poster svg { width: 100%; height: 100%; min-height: 0; }
.poster .title { font-family: var(--font-display); font-stretch: 118%; font-weight: 500; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.12; letter-spacing: -.015em; }
.poster .eng { margin: 10px calc(-1 * clamp(14px, 1.5vw, 20px)) calc(-1 * clamp(14px, 1.5vw, 20px)); border-top: 2px solid var(--eng); padding: 9px clamp(14px, 1.5vw, 20px) 11px; color: #A93707; font-size: 10.5px; line-height: 1.45; }
.p-ink { fill: #111112; } .p-mute { fill: #D3D3CE; } .p-eng { fill: #FF5A1F; } .p-s-ink { stroke: #111112; fill: none; } .p-s-mute { stroke: #D3D3CE; fill: none; } .p-s-eng { stroke: #FF5A1F; fill: none; }
.poster .p-eng, .poster .p-s-eng { transition: fill .4s, stroke .4s; }
.poster-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1000px) { .poster-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .poster-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the swipe: you be the engine */
.swipe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .swipe { grid-template-columns: minmax(0, 1fr); } }
.table { position: relative; min-height: 340px; display: grid; place-items: center; }
.shopper { width: min(100%, 380px); background: var(--card); border: 1px solid var(--line-2); padding: 22px; display: grid; gap: 16px; touch-action: pan-y; cursor: grab; user-select: none; position: relative; transition: transform .38s var(--ease), opacity .38s; box-shadow: 0 18px 40px -26px rgba(0,0,0,.35); }
.shopper.dragging { transition: none; cursor: grabbing; }
.shopper .who { display: flex; justify-content: space-between; align-items: center; }
.shopper .avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 12px/1 var(--font-mono); }
.shopper .cart { font-family: var(--font-display); font-stretch: 125%; font-weight: 300; font-size: 2.6rem; letter-spacing: -.035em; line-height: 1; margin-top: 4px; }
.shopper dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 14.5px; }
.shopper dt { font: 500 10.5px/2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.shopper dd { margin: 0; }
.stamp { position: absolute; top: 18px; padding: 6px 10px; border: 2px solid; font: 600 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; pointer-events: none; background: var(--card); }
.stamp.give { right: 18px; transform: rotate(8deg); }
.stamp.hold { left: 18px; transform: rotate(-8deg); }
.swipe-controls { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.result { border-top: 1px solid var(--line-2); padding-top: 18px; display: grid; gap: 14px; }
.result .big { font-family: var(--font-display); font-stretch: 125%; font-weight: 300; font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.result .say { color: var(--ink-2); min-height: 3.2em; max-width: 44ch; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tally > div { padding: 14px 12px 0 0; display: grid; gap: 4px; }
.tally span { font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tally b { font: 500 1.4rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- offer */
.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .offer { grid-template-columns: minmax(0, 1fr); } }
.offer-card { border: 1px solid var(--line-2); background: var(--card); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.offer-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 400; letter-spacing: -.025em; }
.equation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.equation > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.equation > div:nth-child(odd) { border-right: 1px solid var(--line); }
.equation > div:nth-child(even) { padding-left: 16px; }
.equation p { margin-top: 6px; font-size: 15.5px; }
@media (max-width: 560px) { .equation { grid-template-columns: minmax(0, 1fr); } .equation > div:nth-child(odd) { border-right: 0; } .equation > div:nth-child(even) { padding-left: 0; } }

/* ---------- index list (insights) */
.index-list { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 180px minmax(0, 5fr) minmax(0, 4fr) 24px; gap: 6px clamp(16px, 3vw, 40px); padding: 24px 0; text-decoration: none; align-items: baseline; }
.index-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.index-list a::after { content: "→"; justify-self: end; color: var(--ink-2); transition: transform .2s var(--ease); }
.index-list a:hover::after { transform: translateX(4px); color: var(--ink); }
.index-list p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 820px) { .index-list a { grid-template-columns: minmax(0, 1fr); } .index-list a::after { display: none; } }

/* ---------- cards */
.card { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); min-width: 0; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.chip { display: inline-block; font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); }

/* ---------- invert band (CTA) */
.invert { background: var(--invert-bg); color: var(--invert-ink); border-top: 0; }
.invert .lede, .invert .label { color: var(--invert-ink-2); }
.invert .btn.primary { background: var(--invert-ink); color: var(--invert-bg); border-color: var(--invert-ink); }
.invert .btn.primary:hover { background: transparent; color: var(--invert-ink); }
.invert :focus-visible { outline-color: var(--invert-ink); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; }
.cta-band h2 { font-size: clamp(2rem, 4.8vw, 4.2rem); max-width: 14ch; }
.cta-band .lede { margin-top: 18px; }
.cta-band .act { display: grid; gap: 18px; justify-items: start; }
.signoff { font-family: var(--font-display); font-stretch: 125%; font-weight: 300; letter-spacing: -.01em; font-size: 15px; color: var(--invert-ink-2); }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page hero */
.page-hero { padding-block: clamp(36px, 5vw, 80px) clamp(40px, 5vw, 72px); border-top: 0; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero .wrap.solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); max-width: 15ch; }
.page-hero .lede { margin-top: 22px; max-width: 52ch; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero .poster { max-width: 320px; width: 100%; justify-self: end; }
@media (max-width: 900px) { .page-hero .poster { justify-self: start; max-width: 280px; } }

/* ---------- services */
.svc-index { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.svc-index a { display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 6px clamp(16px, 3vw, 40px); padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.svc-index a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.svc-index h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: -.025em; }
.svc-index p { color: var(--ink-2); }
@media (max-width: 900px) { .svc-index a { grid-template-columns: 40px minmax(0, 1fr); } .svc-index a > :nth-child(n+3) { grid-column: 2; } }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.service:first-child { border-top: 0; }
.service .side { display: grid; gap: 22px; align-content: start; position: sticky; top: 96px; }
@media (max-width: 900px) { .service { grid-template-columns: minmax(0, 1fr); } .service .side { position: static; } }
.service h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.service .body { display: grid; gap: 30px; align-content: start; }

/* ---------- steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.step { padding: 22px 22px 0 0; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); }
.step + .step { padding-left: 22px; }
.step:last-child { border-right: 0; }
.step .num { font-size: 3rem; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } .step, .step + .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; } }

/* ---------- utilities */
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.ticks li::before { content: "—"; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; }
.kv dt { font: 500 10.5px/2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.kv dd { margin: 0; }
.inshort { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; max-width: 78ch; }
.inshort p { font-size: 1.08rem; }
.faq { display: grid; max-width: 920px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 72ch; }

/* ---------- prose */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.8em; font-stretch: 112%; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ink); color: var(--ink-2); font-size: 1.1rem; }
.prose strong { font-weight: 600; }
.prose code { font: 500 .86em var(--font-mono); background: var(--bg-2); padding: 1px 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- story page */
.story-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.story-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.story-toc a { text-decoration: none; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); color: var(--ink-2); font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.story-toc a:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) { .story-grid { grid-template-columns: minmax(0, 1fr); } .story-toc { display: none; } }
.story-sec { padding: 0 0 clamp(40px, 5vw, 64px); border: 0; scroll-margin-top: 96px; }
.story-sec > h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 18px; font-stretch: 118%; }
.story-sec > p + p { margin-top: 1em; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 24px; border-top: 1px solid var(--line); }
.legend > div { padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; font-size: 15.5px; color: var(--ink-2); }
.legend b { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink); }
.legend b::before { content: ""; width: 6px; height: 6px; background: var(--eng); flex: none; }
@media (max-width: 640px) { .legend { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; padding: 0; display: grid; border-left: 1px solid var(--line-2); margin-left: 4px; }
.timeline li { position: relative; padding: 0 0 20px 22px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline .date { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* flip figure: the surface on top, the engine underneath */
.flip { position: relative; display: grid; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.flip > div { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.flip svg { width: 100%; height: auto; }
.flip .machine { opacity: 0; transform: scale(1.02); }
.flip.on .machine { opacity: 1; transform: none; }
.flip.on .surface { opacity: 0; transform: scale(.98); }
.flip-bar .cap-on { display: none; } .flip-bar .on-state .cap-on { display: inline; } .flip-bar .on-state .cap-off { display: none; }
.flip-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.engine-fig, .flip .machine { --bg: #0E0E0F; --bg-2: #18181A; --card: #18181A; --surface: #19191B; --ink: #F2F1EC; --ink-2: #9C9CA0; --line: #2E2E31; --accent: #FF5A1F; --accent-ink: #0B0B0C; --accent-text: #FF7A45; background: #0E0E0F; color: #F2F1EC; }
.vizbox { border: 1px solid var(--line); overflow-x: auto; }
.vizbox svg { display: block; width: 100%; height: auto; min-width: 520px; }
.v-fg { fill: var(--ink); } .v-fg2 { fill: var(--ink-2); } .v-acc { fill: var(--accent); } .v-bg { fill: var(--bg); } .v-bg2 { fill: var(--surface); } .v-line { fill: var(--line); }
.s-fg { stroke: var(--ink); } .s-fg2 { stroke: var(--ink-2); } .s-acc { stroke: var(--accent); } .s-line { stroke: var(--line); }
.v-txt { fill: var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.v-txt2 { fill: var(--ink-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; }
.v-big { fill: var(--ink); font-family: var(--font-display); }
.vizbox svg[data-viz="threshold"] g[data-thr] { transition: transform .15s var(--ease); }

.ctrl { display: grid; gap: 8px; margin-top: 16px; }
.ctrl label { font: 500 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
input[type="range"] { width: 100%; accent-color: var(--ink); }
.readout { display: flex; flex-wrap: wrap; gap: 18px; font: 500 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); align-items: baseline; }
.readout b { font: 300 22px var(--font-display); font-stretch: 125%; letter-spacing: -.02em; color: var(--ink); }
.ba { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); }
.ba > div { grid-area: 1 / 1; padding: 18px; font: 400 12.5px/1.65 var(--font-mono); min-height: 260px; overflow-wrap: anywhere; }
.ba .before { background: var(--bg-2); color: var(--ink-2); padding-right: calc(100% - var(--cut, 50%) + 18px); }
.ba .after { background: var(--card); clip-path: inset(0 0 0 var(--cut, 50%)); padding-left: calc(var(--cut, 50%) + 18px); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: var(--ink); pointer-events: none; }

/* ---------- forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; color: var(--ink-2); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
input[type="email"], input[type="search"], input[type="text"] { flex: 1 1 200px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.form-note { font-size: 14px; color: var(--ink-2); min-height: 1.2em; }
.search-box { display: flex; gap: 10px; flex-wrap: wrap; }
.results { list-style: none; padding: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.results a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.results small { color: var(--ink-2); font-size: 14.5px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-filter button { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 0 14px; min-height: 36px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--ink-2); }
.tag-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-filter-list] > [hidden] { display: none !important; }
.copy { display: inline-flex; gap: 10px; align-items: center; }
.copy button { border: 1px solid var(--line-2); background: none; border-radius: 99px; padding: 0 12px; min-height: 34px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.box { border: 1px solid var(--line); padding: 18px; display: grid; gap: 12px; align-content: start; }
details.box > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: "+"; font-family: var(--font-mono); }
details.box[open] > summary::after { content: "−"; }
[data-stack] { align-items: start; }
@media (max-width: 900px) { [data-stack] { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------- 404 */
.e404 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .e404 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand svg { height: 17px; }
.foot-base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.theme-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; }
.theme-switch button { border: 0; background: none; border-radius: 99px; padding: 0 12px; min-height: 30px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--ink-2); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pre { opacity: 1; transform: none; }
}
@media (max-width: 520px) { body { font-size: 16.5px; } .receipt { transform: rotate(-.5deg); font-size: 12px; padding: 26px 18px 40px; } }
@media print { .site-header, .site-footer, .xr-btn, .cta-band { display: none; } }

/* =====================================================================
   v4 · the X-ray (home hero)
   ===================================================================== */
.xr { --xr-bg: #0B0B0C; --xr-fg: #F2F1EC; --xr-dim: rgba(242,241,236,.6); --xr-line: rgba(242,241,236,.34); --xr-glass: rgba(242,241,236,.05); --xr-paper: #F2F1EC; --e: var(--eng); margin: 0; container: xr / inline-size; min-width: 0; }
.xr-frame { position: relative; background: var(--xr-bg); color: var(--xr-fg); border: 1px solid rgba(242,241,236,.14); padding: clamp(14px, 2vw, 22px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.xr-box { border: 1px solid var(--xr-line); padding: 9px 16px; font: 500 11px/1.2 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--xr-fg); background: rgba(11,11,12,.6); }
.xr-cap { justify-self: start; }
.xr-now { grid-column: 1 / -1; justify-self: center; min-width: min(100%, 280px); text-align: center; }
.xr-frame .xr-btn { --xr-line: rgba(242,241,236,.34); --xr-fg: #F2F1EC; }
.xr-stage { grid-column: 1 / -1; position: relative; aspect-ratio: 640 / 660; }
.xr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xr .xt { font-family: var(--font-mono); letter-spacing: .04em; }
.xr text.dim { fill: var(--xr-dim); } .xr text.fg { fill: var(--xr-fg); } .xr text.ink { fill: #0B0B0C; } .xr text.eng { fill: var(--e); transition: fill .5s calc(var(--i, 0) * .43s); }
.xr .s-ink { fill: #0B0B0C; } .xr .s-gray { fill: #CFCEC8; } .xr .s-mute { fill: #8C8B86; } .xr .s-paper { fill: #F2F1EC; } .xr .s-rule { stroke: #CFCEC8; stroke-width: 1; }
.xr .plate { fill: var(--xr-glass); stroke: var(--xr-line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .35s; }
.xr .plate.surf { fill: var(--xr-paper); stroke: none; }
.xr .slab { fill: rgba(242,241,236,.09); stroke: var(--xr-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xr .layer[data-i="0"] .slab { fill: #BDBCB6; stroke: none; }
.xr .cell { fill: none; stroke: var(--xr-line); stroke-width: 1; } .xr .cell.dash { stroke-dasharray: 3 2; }
.xr .eng-fill { fill: var(--e); transition: fill .5s calc(var(--i, 0) * .43s); }
.xr .eng-stroke, .xr .eng-ring { stroke: var(--e); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s calc(var(--i, 0) * .43s); }
.xr .rule { stroke: var(--xr-line); stroke-width: 1; } .xr .rule.dash { stroke-dasharray: 3 3; }
.xr .line { fill: none; stroke: var(--xr-fg); stroke-width: 1.5; stroke-linejoin: round; opacity: .85; }
.xr .bar { fill: rgba(242,241,236,.55); } .xr .bar.soft { fill: rgba(242,241,236,.28); }
.xr .dimstroke { stroke: var(--xr-dim); stroke-width: 1; }
.xr .halo { fill: var(--eng); opacity: 0; transition: opacity .4s; }
.xr .layer.on .halo { opacity: .32; }
.xr .layer.on .plate:not(.surf) { stroke: var(--eng); }
.xr .lead { stroke: var(--xr-line); stroke-width: 1; transition: stroke .3s; } .xr .guide { stroke: rgba(242,241,236,.12); stroke-width: 1; }
.xr .dot { fill: var(--xr-bg); stroke: var(--xr-line); stroke-width: 1; transition: fill .3s, stroke .3s; }
.xr .layer.on .lead { stroke: var(--eng); } .xr .layer.on .dot { fill: var(--eng); stroke: var(--eng); }
.xr .crop { fill: none; stroke: var(--xr-line); stroke-width: 1; }
.xr .beam { opacity: 0; }
.xr .layer { transition: transform 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 70ms), opacity .35s; }
.xr .lead, .xr .guide, .xr .dot { transition: opacity .6s .9s, stroke .3s, fill .3s; }
.xr.has-on .layer:not(.on) { opacity: .3; }
.xr .pkt { fill: var(--e); transform-box: fill-box; animation: xr-pkt 1.3s linear var(--d) 3 both; }
.xr .ring { transform-box: fill-box; transform-origin: center; fill: none; stroke: var(--e); stroke-width: 1.2; animation: xr-ring 1.4s ease-out 3 both; }
@keyframes xr-pkt { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(44px); opacity: 0; } }
@keyframes xr-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes xr-beam { 0% { transform: translateY(60px); opacity: 0; } 8%, 92% { opacity: 1; } 100% { transform: translateY(625px); opacity: 0; } }

/* intro state (only when scripts run): the stack starts closed and calm, then opens */
html.js .xr:not(.xr-open) .layer { transform: translateY(calc(175px - 72px * var(--i))); }
html.js .xr:not(.xr-open) .lead, html.js .xr:not(.xr-open) .guide, html.js .xr:not(.xr-open) .dot { opacity: 0; transition-delay: 0s; }
html.js .xr:not(.xr-open) .xr-lab { opacity: 0; pointer-events: none; }
html.js .xr:not(.xr-open) .pkt, html.js .xr:not(.xr-open) .ring { animation: none; opacity: 0; }
html.js .xr:not(.xr-lit) { --e: rgba(242,241,236,.62); }
.xr-scan .beam { animation: xr-beam 2.6s cubic-bezier(.45,0,.25,1) both; }

/* callouts */
.xr-labs { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; pointer-events: none; }
.xr-lab { position: absolute; top: var(--y); width: 26%; transform: translateY(-15px); pointer-events: auto; transition: opacity .5s calc(.9s + var(--y) * 0); }
.xr-lab.l { left: 0; padding-right: 8px; text-align: right; } .xr-lab.r { right: 0; padding-left: 8px; }
.xr-t { appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 30px; color: var(--xr-fg); font: 500 10.5px/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; text-align: inherit; }
.xr-lab.l .xr-t { flex-direction: row-reverse; }
.xr-t .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--xr-line); font-size: 9.5px; flex: none; transition: background-color .25s, border-color .25s, color .25s; }
.xr-lab.on .xr-t .n { background: var(--eng); border-color: var(--eng); color: #0B0B0C; }
.xr-t:focus-visible { outline: 2px solid var(--eng); outline-offset: 3px; }
.xr-d { font: 400 13px/1.45 var(--font-body); color: var(--xr-dim); overflow: hidden; max-height: 0; opacity: 0; transition: max-height .55s var(--ease), opacity .4s; }
.xr-lab.on .xr-d, html:not(.js) .xr-d { max-height: 280px; opacity: 1; }
.xr-d p { margin: 0; } .xr-d p + p { margin-top: 6px; }
.xr-d .see { color: var(--xr-fg); font-weight: 500; }
.xr-d .go { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.xr-lab.l .xr-d .go { justify-content: flex-end; }
.xr-d .go a { font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #FF8A5C; text-decoration: none; }
.xr-d .go a:hover { text-decoration: underline; }
.xr-frame :focus-visible { outline-color: var(--eng); }
@container xr (max-width: 620px) {
  .xr-stage { aspect-ratio: auto; display: grid; gap: 18px; }
  .xr-svg { position: relative; inset: auto; height: auto; aspect-ratio: 640 / 660; }
  .xr-svg .lead, .xr-svg .guide, .xr-svg .dot { display: none; }
  .xr-labs { position: static; display: grid; border-top: 1px solid var(--xr-line); }
  .xr-lab, .xr-lab.l, .xr-lab.r { position: static; width: auto; transform: none; padding: 12px 0 14px; text-align: left; border-bottom: 1px solid rgba(242,241,236,.14); }
  .xr-lab.l .xr-t { flex-direction: row; } .xr-lab.l .xr-d .go { justify-content: flex-start; }
  .xr-d, .xr-lab.on .xr-d { max-height: none; opacity: 1; }
  html.js .xr:not(.xr-open) .xr-lab { display: none; }
  .xr-now { display: none; }
  .xr-box { font-size: 10px; padding: 8px 12px; }
}

/* =====================================================================
   v4 · play: hold the coupon
   ===================================================================== */
.play .swipe { align-items: start; }
.deck { display: grid; gap: 14px; }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pips { display: inline-flex; gap: 6px; } .pips i { width: 20px; height: 3px; background: var(--line-2); transition: background-color .3s; } .pips i.done { background: var(--ink); } .pips i.now { background: var(--eng); }
.btn.ask { border-color: var(--eng); gap: 9px; }
.btn.ask .led { width: 8px; height: 8px; border-radius: 50%; background: var(--eng); box-shadow: 0 0 8px rgba(255,90,31,.7); flex: none; }
.btn.ask:hover { background: var(--eng); border-color: var(--eng); color: #0B0B0C; }
.btn.ask[disabled] { opacity: .45; pointer-events: none; }
.swipe-controls { flex-wrap: wrap; }
.hint { text-align: center; margin-top: 2px; }
.shopper .read { border-top: 1px solid var(--eng); padding-top: 12px; display: grid; gap: 4px; font: 400 12px/1.5 var(--font-mono); font-stretch: 87.5%; color: var(--ink-2); animation: readIn .45s var(--ease) both; }
.shopper .read b { color: var(--eng-text); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.shopper .teaser { border-top: 1px dashed var(--line-2); padding-top: 12px; font: 400 12px/1.5 var(--font-mono); color: var(--ink-3); }
@keyframes readIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.score { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.score .row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; gap: 12px; align-items: center; padding: 6px 0; }
.score .meter { display: block; height: 6px; background: var(--bg-2); position: relative; overflow: hidden; }
.score .meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width .7s var(--ease); }
.score .row.eng .meter i { background: var(--eng); }
.score b { font: 500 1.15rem/1 var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.result .say { min-height: 4.6em; }
.ledger { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); min-height: 0; }
.ledger:empty { display: none; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 400 12px/1.4 var(--font-mono); font-stretch: 87.5%; color: var(--ink-2); animation: readIn .4s var(--ease) both; }
.ledger li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger li.waste b { color: var(--eng-text); }
.verdict { font-family: var(--font-display); font-stretch: 112%; font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }

/* =====================================================================
   v4 · proof strip, moments track, count-up
   ===================================================================== */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin-bottom: clamp(28px, 4vw, 44px); }
.proof > div { padding: 18px 22px 18px 0; border-right: 1px solid var(--line); }
.proof > div + div { padding-left: 22px; }
.proof > div:last-child { border-right: 0; }
.proof .num { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.proof p { color: var(--ink-2); margin-top: 8px; font-size: 15px; max-width: 26ch; }
@media (max-width: 720px) { .proof { grid-template-columns: minmax(0, 1fr); } .proof > div, .proof > div + div { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; } }
.moments { position: relative; }
.moments::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.moments::after { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 2px; background: var(--eng); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .2s linear; }
.moment .n { transition: color .3s; }
.moment.lit .n { color: var(--eng-text); }
@media (max-width: 700px) { .moments::before, .moments::after { left: -10px; } }

/* =====================================================================
   v4 · the underscore blinks five times, then rests
   ===================================================================== */
.brand .us { animation: us-blink .9s steps(1, end) .8s 5 both; }
@keyframes us-blink { 0%, 49.9% { opacity: 1; } 50%, 99.9% { opacity: 0; } 100% { opacity: 1; } }

@container (min-width: 621px) {
  .xr.has-on .xr-lab:not(.on) { opacity: .12; }
  .xr-lab.on { z-index: 3; }
}

.xr-scene { grid-column: 1 / -1; margin: 6px 0 2px; max-width: 46ch; }
.xr-scene p { font: 300 clamp(1.05rem, 1.5vw, 1.3rem)/1.4 var(--font-display); font-stretch: 112%; letter-spacing: -.01em; color: var(--xr-fg); margin: 0; text-wrap: pretty; }
.xr-scene footer { margin-top: 10px; font: 500 10.5px/1.4 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: var(--xr-dim); }

/* home: X-ray and the film, side by side */
.xr-duo { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.film-pane { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-2); background: var(--bg); }
.film-pane > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.film-pane iframe { flex: 1; width: 100%; min-height: 620px; border: 0; display: block; background: var(--bg); }
@media (min-width: 1100px) { .xr-duo { grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); } }
@media (max-width: 1099px) { .film-pane { max-width: 640px; width: 100%; margin-inline: auto; } .film-pane iframe { flex: none; height: 680px; } }
/* hero: copy on top, X-ray and film side by side below */
.hero .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) {
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); column-gap: clamp(28px, 4vw, 64px); align-items: end; }
  .hero-copy .kicker { grid-column: 1 / -1; }
  .hero-copy h1 { grid-column: 1; grid-row: 2 / span 2; }
  .hero-copy .lede { grid-column: 2; grid-row: 2; margin-top: 0; }
  .hero-copy .actions { grid-column: 2; grid-row: 3; }
}
@media (min-width: 1100px) { .xr-duo { align-items: start; } .film-pane { position: sticky; top: 92px; } .film-pane iframe { flex: none; height: min(720px, calc(100svh - 190px)); min-height: 520px; } }

/* v4.1: pagers (field guides, insights, tools) and the book cover */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pager .card h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.pager .card[rel="next"] { text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .card[rel="next"] { text-align: left; } }
.story-toc .label + a, .story-toc a[rel] { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 13px; line-height: 1.35; }
.book-cover { margin: 0; max-width: 420px; justify-self: end; width: 100%; }
.book-cover img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
@media (max-width: 900px) { .book-cover { justify-self: start; max-width: 320px; } }
