/* Self-hosted fonts (latin subset, byte-identical to Google Fonts' woff2; SIL OFL, see assets/fonts/OFL-*.txt).
   Filenames carry a version because /assets/* is immutable-cached. Keep the preload hrefs in the HTML in step. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/barlow-condensed-500-v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/barlow-condensed-600-v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/barlow-condensed-italic-500-v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/share-tech-mono-v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Source Serif 4: variable wght axis, optical size pinned at 18 by the file Google serves for opsz=18. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/source-serif-4-v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/source-serif-4-italic-v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* HARPR-14 marketing site. Plain CSS, no build step.
   Ported from the claude.ai design "HARPR-14 Marketing Site". */

:root {
  --ink: #0a060a;
  --panel: #130c13;
  --rose: #f0b6c3;
  --rose-d: #c97a8e;
  --rose-line: #6d3547;
  --ox: #7d1a2e;
  --pearl: #efe3dc;
  --mute: #bba7af;
  --ph: #4dff88;
  --ph-t: #8be4a9;
  --ph-line: #1c6935;
  --ph-bg: #030b06;
  --ph-glow: rgba(77, 255, 136, .45);
  --ph-chip: #d9ffe6;
  --ph-fill: #07140b;
  --ph-fill-hover: #0d2a17;
  --ph-line-hover: #278044;
  --ph-off: #1c6935;
  --pad-x: clamp(20px, 5vw, 72px);
  --font-disp: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'Share Tech Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

/* Phosphor themes: js/site.js sets data-ph on <html>; green is the :root default. */
:root[data-ph="amber"] {
  --ph: #ffd24d; --ph-t: #e4ce8b; --ph-line: #735f23; --ph-bg: #0b0903;
  --ph-glow: rgba(255, 210, 77, .45); --ph-chip: #fff3cf;
  --ph-fill: #141007; --ph-fill-hover: #2a210c; --ph-line-hover: #826a27; --ph-off: #8f762b;
}
:root[data-ph="blue"] {
  --ph: #4dbbff; --ph-t: #8bc2e4; --ph-line: #2a658a; --ph-bg: #03080b;
  --ph-glow: rgba(77, 187, 255, .45); --ph-chip: #d9efff;
  --ph-fill: #07121a; --ph-fill-hover: #0d2535; --ph-line-hover: #2e7099; --ph-off: #296387;
}
:root[data-ph="white"] {
  --ph: #c4d2cb; --ph-t: #b3bcb8; --ph-line: #5c615e; --ph-bg: #060707;
  --ph-glow: rgba(196, 210, 203, .4); --ph-chip: #eef2f0;
  --ph-fill: #0e1110; --ph-fill-hover: #1c211f; --ph-line-hover: #686e6b; --ph-off: #6d7571;
}
:root[data-ph="purple"] {
  --ph: #b55af2; --ph-t: #bf92dd; --ph-line: #8241ae; --ph-bg: #08040a;
  --ph-glow: rgba(181, 90, 242, .45); --ph-chip: #f1deff;
  --ph-fill: #130819; --ph-fill-hover: #26133a; --ph-line-hover: #8b45ba; --ph-off: #52296e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.mono { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.disp { font-family: var(--font-disp); font-weight: 600; }
.accent { font-style: italic; font-weight: 500; color: var(--rose); }
.mute { color: var(--mute); }
.eyebrow { font-size: 13px; color: var(--rose); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--rose); color: #1d0b12; padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- notched panels ---------- */
.hud {
  position: relative;
  background: var(--ph-line);
  padding: 1px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.hud > .in {
  background: var(--panel);
  height: 100%;
  padding: clamp(22px, 3vw, 36px);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
}
.hud.rose { background: var(--rose-line); }
.hud.lift { margin-top: 14px; }
.hud.has-chip > .in { padding-top: 48px; }
.chip {
  position: absolute; top: 0; left: 22px; z-index: 2;
  padding: 3px 12px 3px 10px;
  background: var(--ph-line); color: var(--ph-chip);
  font-size: 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.hud.rose > .chip { background: var(--rose-line); color: #ffe3ea; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.btn-p { background: var(--rose); color: #1d0b12; }
.btn-p:hover { background: #ffd3dd; }
.btn-g { background: var(--ph-line); color: var(--ph-chip); padding: 0; }
.btn-g > span {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 29px; margin: 1px; width: calc(100% - 2px);
  background: var(--ph-fill);
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}
.btn-g:hover > span { background: var(--ph-fill-hover); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn-tog { min-height: 48px; padding: 0 24px; font-size: 14px; }
.btn-tog[aria-pressed="false"] { background: var(--ph-line); color: var(--ph-chip); }
.btn-tog[aria-pressed="false"]:hover { background: var(--ph-line-hover); }
main:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rose); outline-offset: -5px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(860px, 100vh); min-height: min(860px, 100svh); display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
@media (max-width: 600px) { .hero { min-height: min(640px, 100svh); } }

.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; z-index: -4; }
/* Story-driven Spectral Sweep: the same picture, gradient-mapped, wiped in left to right by --cut (written on .hero by js/site.js). */
.hero { --cut: 0%; }
.hero-sw { position: absolute; inset: 0; z-index: -4; clip-path: inset(0 calc(100% - var(--cut)) 0 0); pointer-events: none; }
.hero-sw[hidden] { display: none; }
.hero-sw img { filter: url(#sweep-map); }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -4; clip-path: inset(0 calc(100% - var(--cut)) 0 0); pointer-events: none; }
.hero-gl[hidden] { display: none; }
.hero-edge { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; z-index: -2; background: #ffb347; box-shadow: 0 0 14px #ffb347; opacity: 0; pointer-events: none; }
.hero.sweeping .hero-edge { opacity: .9; }
.hero-tint { position: absolute; inset: 0; z-index: -3; background: var(--ox); mix-blend-mode: soft-light; opacity: .55; }
.hero-fade-x { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(10,6,10,.96) 0%, rgba(10,6,10,.78) 36%, rgba(10,6,10,.18) 78%, rgba(10,6,10,.35) 100%); }
.hero-fade-y { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, rgba(10,6,10,.55) 0%, transparent 22%, transparent 62%, var(--ink) 100%); }
.rain { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* Oversized layer (one tile up, 40px right) so the transform never exposes an edge. */
.rain::before {
  content: ""; position: absolute; top: -220px; left: 0; right: -40px; bottom: 0;
  background: repeating-linear-gradient(104deg, transparent 0 26px, rgba(190,215,255,.06) 26px 27px, transparent 27px 61px);
  background-size: 120px 220px;
  will-change: transform;
  animation: rain 1.1s linear infinite;
}
.scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.hero .scan { z-index: -1; }

.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: clamp(14px, 2.6vh, 26px) var(--pad-x); }
.brand { text-decoration: none; font-size: 15px; }
.brand b { font-weight: 400; color: var(--rose); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav-links a.lnk { text-decoration: none; font-size: 13px; padding: 12px 4px; opacity: .85; }
.nav-links a.lnk:hover { opacity: 1; color: var(--rose); }

.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--rose-line); color: var(--pearl); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
.nav-toggle:hover { color: var(--rose); border-color: var(--rose); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 760px) {
  .js .nav { flex-wrap: wrap; position: relative; z-index: 5; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,6,10,.94); border: 1px solid var(--rose-line); padding: 6px 18px 18px; }
  .js .nav-links.open { display: flex; }
  .js .nav-links a.lnk { padding: 14px 0; border-bottom: 1px solid var(--rose-line); }
  .js .nav-links .btn { margin-top: 16px; text-align: center; justify-content: center; }
}

.hero-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2.4vh, 28px);
  padding: clamp(16px, 3vh, 96px) var(--pad-x) clamp(24px, 4vh, 56px);
  max-width: 1360px; width: 100%; margin: 0 auto;
}
.term { font-family: var(--font-mono); font-size: 15px; line-height: 1.9; }
.term .cmd { color: var(--rose); letter-spacing: .06em; }
.term .rep { color: var(--ph-t); font-style: italic; padding-left: 2.4em; }
.hero h1 { font-size: clamp(84px, min(17vw, 24vh), 260px); line-height: .88; letter-spacing: 0; }
.hero h1 .accent { margin-left: .04em; }
@media (max-width: 600px) { .hero h1 { font-size: clamp(56px, 17vw, 260px); } }
.tagline { font-family: var(--font-disp); font-style: italic; font-weight: 500; font-size: clamp(24px, min(3.6vw, 5.5vh), 50px); line-height: 1.2; max-width: 760px; text-wrap: balance; }
.lede { max-width: 540px; color: var(--mute); font-size: 19px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
/* Phones: the picture gets its own band behind the nav, title, tagline and buttons (it was a narrow, heavily veiled strip down the
   full-height hero). The lede moves below the buttons so no paragraph sits on the picture. Every picture layer (plain, gradient-mapped,
   WebGL, tint, fades, scan edge) shares the band so the sweep and its edge stay aligned. Must come after the base .hero-img rules. */
@media (max-width: 600px) {
  .hero-img, .hero-sw, .hero-gl, .hero-tint, .hero-fade-x, .hero-fade-y, .hero-edge { bottom: auto; height: 460px; }
  .hero-fade-x { background: linear-gradient(90deg, rgba(10,6,10,.6) 0%, rgba(10,6,10,.28) 55%, rgba(10,6,10,.08) 100%); }
  .hero-body h1 { order: 1; } .hero-body .tagline { order: 2; } .hero-body .cta-row { order: 3; } .hero-body .scene { order: 4; } .hero-body .lede { order: 5; }
  .hero h1, .hero .tagline { text-shadow: 0 2px 18px rgba(10,6,10,.85), 0 0 3px rgba(10,6,10,.6); }
}

/* ---------- hero scene (playable 3-turn scene; script in js/scene-graph.js) ----------
   In flow below the CTA row on narrow screens; a compact side panel out of flow on wide ones, so it
   never moves the CTA. Fixed height comes from invisible copies of every view sharing the grid cell. */
.hero-body { position: relative; }
.scene { background: rgba(19,12,19,.82); border: 1px solid var(--rose-line); padding: 14px 16px 16px; max-width: 460px; width: 100%; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; backdrop-filter: blur(4px); }
.scene .act { color: var(--rose); }
.scene .rep { color: var(--ph-t); font-style: italic; }
.scene .say { color: var(--pearl); }
.scene p { margin: 0; }
.scene .sc-text + .sc-text { margin-top: 8px; }
.sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.sc-chip { color: var(--ph); text-shadow: 0 0 8px var(--ph-glow); }
.sc-step { margin-left: auto; }
.sc-stage { display: grid; }
.sc-view { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sc-ghost { visibility: hidden; pointer-events: none; }
.sc-clue { margin-bottom: 8px; }
.sc-choices { display: flex; flex-direction: column; gap: 8px; }
.sc-btn { width: 100%; min-height: 44px; padding: 8px 14px; text-align: left; font: inherit; line-height: 1.4; color: var(--ph-chip); background: var(--ph-fill); border: 1px solid var(--ph-line); cursor: pointer; }
.sc-btn:hover { background: var(--ph-fill-hover); border-color: var(--ph-line-hover); }
.sc-end { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sc-end .btn { min-height: 44px; padding: 0 14px; font-size: 12px; letter-spacing: .1em; }
.sc-end .btn-p { flex: 1 0 100%; min-height: 52px; justify-content: center; font-size: 13px; letter-spacing: .14em; }
.sc-end .btn-g { padding: 0; }
.sc-end .btn-g > span { min-height: 42px; padding: 0 13px; }
/* Case card (the ending). Paper on the dark panel; fixed-text variants per path, so the stage is as tall as the tallest. */
.sc-left { margin: 0 0 10px; padding: 6px 10px; border-left: 2px solid var(--rose); color: var(--rose); font-size: 12px; line-height: 1.5; }
.sc-card { position: relative; background: #efe3dc; color: #24151b; padding: 12px 14px 48px; font-size: 12px; line-height: 1.45;
  background-image: repeating-linear-gradient(0deg, rgba(36,21,27,.04) 0 1px, transparent 1px 4px); }
.sc-card-hd { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid #24151b; padding-bottom: 6px; margin-bottom: 8px; }
.sc-card-title { margin: 0 0 8px; font-family: var(--font-disp); font-weight: 600; font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; padding-right: 0; }
.sc-card-title:focus-visible { outline: 2px solid #a3263f; outline-offset: 3px; }
.sc-card-rows { display: grid; grid-template-columns: 62px 1fr; gap: 3px 10px; margin: 0; }
.sc-card-rows dt { color: #7a5360; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; padding-top: 2px; }
.sc-card-rows dd { margin: 0; }
.sc-card-q { margin: 9px 0 0 !important; padding-top: 8px; min-height: 46px; border-top: 1px dashed #7a5360; font-family: var(--font-body); font-style: italic; font-size: 14px; line-height: 1.35; }
.sc-stamp { position: absolute; right: 14px; bottom: 10px; transform: rotate(-9deg); border: 3px solid #a3263f; color: #a3263f; font: 600 17px var(--font-disp); letter-spacing: .12em; padding: 1px 8px; opacity: .88; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) { .sc-stamp { animation: stamp .35s ease-out both; } }
@keyframes stamp { from { transform: rotate(-9deg) scale(1.6); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: .88; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 1280px) and (min-height: 700px) {
  .scene.rise { position: absolute; right: var(--pad-x); top: 50%; transform: translateY(-50%); width: 380px; animation-name: rise-fade; }
}
@keyframes rise-fade { from { opacity: 0; } to { opacity: 1; } }
.facts { border-top: 1px solid rgba(240,182,195,.22); background: rgba(10,6,10,.62); backdrop-filter: blur(6px); }
.facts > div {
  max-width: 1360px; margin: 0 auto; padding: 18px var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px 28px;
  font-size: 13px; color: var(--ph-t);
}

.rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .15s; } .d4 { animation-delay: .2s; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 128px) var(--pad-x); }
.sec-tint-a { background: linear-gradient(180deg, var(--ink), #0f080f 30%, #0f080f 70%, var(--ink)); }
.sec-tint-b { background: linear-gradient(180deg, var(--ink), #0f080f 25%, #0f080f 80%, var(--ink)); }
.wrap { max-width: 1200px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; }
.g22 { gap: 22px; } .g18 { gap: 18px; }
.cols { display: grid; gap: 48px 64px; align-items: start; }
.cols-center { align-items: center; }
.cols-440 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.cols-420 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px 72px; }
.cols-400 { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 40px 56px; }
.cols-380 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px 56px; }
.cols-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.cols-230 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 22px; }

#premise { padding-bottom: clamp(40px, 6vw, 80px); }
#premise .wrap { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
#sweep { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
.h2-xl { font-size: clamp(44px, 6vw, 92px); line-height: .98; letter-spacing: 0; text-wrap: balance; }
.h2-l { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: 0; text-wrap: balance; }
.h2-m { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: 0; text-wrap: balance; }
.h2-s { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; letter-spacing: 0; text-wrap: balance; }
.h2-xs { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; text-wrap: balance; }
.h3 { font-size: 34px; line-height: 1.1; }
.h3-sm { font-size: 28px; line-height: 1.15; }
.maxw-480 { max-width: 480px; } .maxw-760 { max-width: 760px; } .maxw-780 { max-width: 780px; }
.brief { font-size: 17px; line-height: 1.75; color: #dfd2cf; text-wrap: pretty; }
.pull { font-family: var(--font-disp); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.55; text-wrap: balance; }
.note { font-size: 12px; line-height: 1.8; color: #d79aab; }
.cmds { display: flex; flex-direction: column; gap: 14px; font-family: var(--font-mono); font-size: 15px; line-height: 1.6; }
.cmds .cmd { color: var(--rose); }
.cmds .rep { color: var(--ph-t); font-style: italic; padding-left: 2.4em; }
.card-n { font-size: 12px; color: var(--rose); }
.card p { color: var(--mute); font-size: 17px; }
.card .in { display: flex; flex-direction: column; gap: 14px; }
.off-clock .in { background: linear-gradient(160deg, #241019 0%, var(--panel) 70%); }

/* ---------- spectral sweep: ONE image, two looks ---------- */
/* The wiped side is the hero's hyperspectral WebGL canvas (.sw-gl, added by js/site.js); the SVG gradient map (.sw-map, #sweep-map) is the no-WebGL fallback. */
.sweep-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.sweep-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Spectral sweep = the SAME picture run through an SVG gradient map (#sweep-map in index.html):
   dark to navy, mid-tones to blue, brightest pixels (lamps, signs, lit windows) to amber. */
/* --cut (a unit value, written by js/site.js) is how much of the frame is wiped. 0% = pure visible light, so no-JS and pre-JS render as before.
   The clip sits on the wrapper and the filter stays static on the img, (expected to avoid re-rasterising the filtered image on each change; not measured on Safari).
   No CSS transition: the buttons tween --cut in JS (instant under reduced motion), so dragging is never smoothed. */
.sweep-frame { --cut: 0%; }
.sw-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.sw-map { filter: url(#sweep-map); }
.sw-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sw-gl[hidden] { display: none; }
.sw-edge { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; z-index: 0; background: #ffb347; box-shadow: 0 0 14px #ffb347; opacity: 0; pointer-events: none; }
.sweep-frame.cutting .sw-edge { opacity: .9; }
.sw-ctl { display: none; padding: 10px 18px 14px; background: var(--panel); border-top: 1px solid var(--rose-line); }
.js .sw-ctl { display: block; }
.sw-ctl label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.sweep-range { display: block; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.sweep-range::-webkit-slider-runnable-track { height: 4px; background: var(--ph-line); border: 0; }
.sweep-range::-moz-range-track { height: 4px; background: var(--ph-line); border: 0; }
.sweep-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; margin-top: -13px; background: var(--ph); border: 0; border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.sweep-range::-moz-range-thumb { width: 22px; height: 30px; background: var(--ph); border: 0; border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.sweep-range:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.sw-caption { position: absolute; left: 18px; bottom: 14px; right: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--ph-t); font-style: italic; text-shadow: 0 1px 8px #000; }
.sweep-frame .scan { z-index: 2; }

/* ---------- machine / terminal ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 8px 14px; font-size: 12px; border: 1px solid var(--ph-line); color: var(--ph-t); }
.phos-label { font-size: 12px; color: var(--mute); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.sw { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(239,227,220,.25); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px #0a060a, 0 0 0 5px #f0b6c3; }
.diag { background: var(--ph-line); }
.diag > .chip { background: var(--ph-line); color: var(--ph-chip); }
.diag > .in { background: var(--ph-bg); padding-top: 50px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; transition: background .4s; }
.diag .term { font-size: 16px; }
.diag .term .cmd { color: var(--ph); text-shadow: 0 0 8px var(--ph-glow); letter-spacing: .05em; }
.diag .term .rep { color: var(--ph-t); }
.cell { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.cell .mono { font-size: 11px; color: var(--ph-t); }
.cell-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.cell-bar i { height: 10px; background: var(--ph); }
.cell-bar i.off { background: var(--ph-off); }

/* ---------- cores ---------- */
.core { transform-origin: center; animation: study 9s infinite; }
.core2 { animation-delay: 3s; } .core3 { animation-delay: 6s; }
.halo { opacity: 0; animation: studyHalo 9s infinite; }
.halo2 { animation-delay: 3s; } .halo3 { animation-delay: 6s; }
.schematic { display: flex; justify-content: center; }
.schematic svg { width: 100%; max-width: 480px; height: auto; }
.sample .in { font-family: var(--font-mono); font-size: 15px; line-height: 1.85; padding: 26px 28px; }
.sample .gap { height: 10px; }

/* ---------- cast ---------- */
.desk { font-size: 12px; color: var(--ph-t); line-height: 1.8; }
.desk b { font-weight: 400; color: var(--rose); }
.slot .in { padding: 0; background: var(--panel); display: flex; flex-direction: column; transition: opacity .4s; }
.slot .slot-meta { flex: 1; }
.face { position: relative; overflow: hidden; background: #000; }
.face img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; filter: grayscale(.9) contrast(1.06) brightness(.82); transition: filter .5s; }
@media (hover: hover) { .face:hover img { filter: none; } }
.slot.revealed .face img { filter: none; }
.face-btn { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; cursor: pointer; }
.face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(125,26,46,.28), transparent 40%, rgba(10,6,10,.92)); pointer-events: none; }
.slot-meta { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; background: var(--panel); min-height: 112px; }
.slot-meta .num { font-size: 11px; color: var(--rose); }
.slot-meta .name { font-size: 24px; line-height: 1.15; }
.slot-meta .role { font-size: 11px; color: var(--ph-t); line-height: 1.6; }

/* ---------- access / footer ---------- */
#access .wrap { max-width: 980px; display: flex; flex-direction: column; gap: 32px; }
.access-in { padding-top: clamp(52px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 26px; background: radial-gradient(120% 120% at 100% 0%, #3a1424 0%, var(--panel) 60%) !important; }
.access-in h2 { font-size: clamp(44px, 6.4vw, 96px); line-height: .96; letter-spacing: 0; }
.access-in p { max-width: 560px; color: #d9c9cc; }
.access-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.price { font-size: 13px; color: #d79aab; }
.fine { font-size: 12px; line-height: 1.9; color: var(--mute); max-width: 620px; }
.footer { border-top: 1px solid rgba(240,182,195,.18); padding: 36px var(--pad-x) 48px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer .sub { font-size: 12px; color: var(--mute); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; color: var(--mute); }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--rose); }
.todo { outline: 1px dashed var(--rose-d); outline-offset: 3px; }

/* ---------- plain legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px var(--pad-x) 96px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 18px 0 28px; }
.legal-body { font-size: 17px; line-height: 1.75; color: var(--pearl); overflow-wrap: anywhere; }
.legal-body h2 { font-family: var(--font-disp); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 2.2em 0 .5em; }
.legal-body h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-family: 'Share Tech Mono', monospace; color: var(--rose); margin: 1.8em 0 .4em; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 1em; }
.legal-body li { margin: .35em 0; }
.legal-body ul, .legal-body ol { padding-left: 1.4em; }
.legal-body strong { color: #fff; font-weight: 600; }
.legal-body a { color: var(--rose); }
.legal-body hr { border: 0; border-top: 1px solid var(--rose-line); margin: 2em 0; }
.legal-body .tbl, .legal-body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0 0 1.4em; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 8px 12px; border: 1px solid var(--rose-line); }
.legal-body th { background: var(--panel); color: var(--rose); font-weight: 400; }

@keyframes rain { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 220px, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes study { 0%, 33% { opacity: 1; } 34%, 100% { opacity: .55; } }
@keyframes studyHalo { 0% { opacity: 0; } 4%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }

/* Scroll reveals: progressive enhancement; content is fully visible when unsupported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec .disp:not(.card .disp, .slot .disp), #machine .card, .schematic {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }

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

/* ---------- contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .field > span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.contact-form input, .contact-form textarea { font: inherit; font-size: 17px; color: var(--pearl); background: var(--panel); border: 1px solid var(--rose-line); border-radius: 0; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact-form .form-status { font-size: 13px; color: var(--ph-t); min-height: 1.4em; }
.contact-form .btn:disabled { opacity: .5; cursor: progress; }
.contact-form .small { font-size: 14px; }

/* ---------- quick bar: fixed "Play the beta" bar shown once the hero has scrolled away (js/site.js) ---------- */
.qbar { display: none; }
.js .qbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 8; height: 56px; padding: 0 var(--pad-x);
  background: rgba(10, 6, 10, .94); border-bottom: 1px solid var(--rose-line);
  visibility: hidden; transform: translateY(-100%);
}
.js .qbar.show { visibility: visible; transform: none; }
.qbar .btn-sm { min-height: 40px; padding: 0 18px; }
.qbar .brand { padding: 12px 0; }
html.js { scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) {
  .js .qbar { transition: transform .25s ease, visibility 0s linear .25s; }
  .js .qbar.show { transition: transform .25s ease, visibility 0s; }
}
