:root {
  --bone: #EDEAE2;
  --bone-2: #E4E0D6;
  --ink: #11100E;
  --ink-2: #1B1A17;
  --muted: #6E6A61;
  --line: rgba(17, 16, 14, .10);
  --line-strong: rgba(17, 16, 14, .18);
  --accent: #6B4BFF;
  --accent-hi: #7E62FF;
  --accent-soft: #A391FF;
  --gutter: clamp(16px, 1.6vw, 32px);
  --ticker-h: 56px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }
p, h1, figure { margin: 0; }
img { display: block; max-width: 100%; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--bone);
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms var(--ease);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.loader-ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-top, .loader-bottom { position: absolute; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; }
.loader-top { top: 22px; align-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 234, 226, .55); }
.loader-mark { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--bone); text-transform: none; }
.loader-mark b { color: var(--accent); margin: 0 1px; }
.loader-bottom { bottom: 26px; align-items: flex-end; }
.loader-label { font-size: 11px; line-height: 1.7; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); }
.loader-label em { font-style: normal; color: rgba(237, 234, 226, .5); }
.loader-count { font-family: var(--mono); font-weight: 700; font-size: clamp(64px, 9vw, 150px); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader-count i { font-style: normal; font-size: .42em; color: var(--accent); margin-left: .08em; vertical-align: top; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(237, 234, 226, .1); }
.loader-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); }
body.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 6px 0 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.btn-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.btn-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-arrow { transform: rotate(-45deg); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink .btn-arrow { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; height: 52px; padding-left: 24px; font-size: 15px; }
.btn-accent .btn-arrow { background: var(--ink); color: var(--bone); width: 40px; height: 40px; }
.btn-accent:hover { background: var(--accent-hi); }
.link { font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .3s; }
.link:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: background-color .35s, box-shadow .35s;
}
.nav.is-scrolled {
  background: rgba(237, 234, 226, .9);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-strong);
}
.nav-mark { font-weight: 800; font-size: 18px; letter-spacing: -.02em; font-variation-settings: "wdth" 80; }
.nav-mark span { color: var(--accent); margin: 0 1px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.socials { display: flex; gap: 4px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s; }
.socials a:hover { background: rgba(17, 16, 14, .07); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 680px;
  overflow: hidden;
  --mast-top: 108px;
}
/* drafting grid: vertical lines sit on content edges (positioned by hero.js) */
.grid-lines {
  position: absolute; inset: 101px 0 0 0; pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, #000 0, #000 60%, transparent 92%);
          mask: linear-gradient(to bottom, #000 0, #000 60%, transparent 92%);
}
.grid-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.crosses { position: absolute; left: 0; right: 0; top: 101px; height: 0; pointer-events: none; z-index: 1; }
.crosses i { position: absolute; top: -5px; width: 11px; height: 11px; margin-left: -5px; }
.crosses i::before, .crosses i::after { content: ""; position: absolute; background: var(--accent); }
.crosses i::before { left: 5px; top: 0; width: 1px; height: 11px; }
.crosses i::after { top: 5px; left: 0; height: 1px; width: 11px; }
.issue-row {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 64px;
  height: 37px; border-bottom: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* masthead */
.masthead {
  position: absolute; left: var(--gutter); right: var(--gutter); top: var(--mast-top);
  z-index: 1;
  font-weight: 800; font-stretch: 75%;
  line-height: .8; letter-spacing: -.012em;
  color: var(--ink);
}
.mast-line { display: flex; justify-content: space-between; white-space: nowrap; font-size: var(--mast-size, 200px); }
.mast-word { display: block; overflow: hidden; padding-top: .04em; margin-top: -.04em; }
.mast-in { display: block; }
/* load reveal (mast-fx.js): ASCII -> pixels -> type */
html.fx-mast .mast-in { opacity: 0; }
html.fx-mast .masthead.is-resolved .mast-in { opacity: 1; }
html.fx-mast .masthead.is-resolved.is-fx-live .mast-in { opacity: 0; transition: none; }
.mast-fx { position: absolute; z-index: 1; pointer-events: none; transition: opacity .45s var(--ease); }
.mast-fx.is-out { opacity: 0; }
.mast-gap { flex: 0 0 var(--mast-gap, .3em); }

/* portrait */
.portrait {
  position: absolute; z-index: 2;
  left: 50%; bottom: calc(var(--ticker-h) - 16px);
  width: var(--pw, 700px); height: var(--ph, 640px);
  margin-left: calc(var(--pw, 700px) / -2);
  pointer-events: none;
  will-change: transform;
}
.portrait img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  opacity: 0; transform: translateY(40px) scale(1.02); transform-origin: 50% 100%;
  transition: opacity 1.1s var(--ease) .75s, transform 1.6s var(--ease) .75s;
  filter: contrast(1.04) saturate(.92);
}
body.is-ready .portrait img { opacity: 1; transform: none; }
.portrait canvas {
  display: block; width: 100%; height: 100%;
  opacity: 0; transform: translateY(40px); transform-origin: 50% 100%;
  transition: opacity 1.1s var(--ease) .75s, transform 1.6s var(--ease) .75s;
}
body.is-ready .portrait canvas { opacity: 1; transform: none; }

/* data field behind the portrait */
.data-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ease) 1.2s; }
body.is-ready .data-field { opacity: 1; }

/* robot reveal layer (index.html) */
.portrait img.robot { display: none !important; }
.portrait canvas.reveal { position: absolute; left: 0; top: 0; }
.portrait.is-live img.photo { visibility: hidden; }
.portrait.has-robot { cursor: crosshair; }

/* pinned image-sequence hero (seq.html) */
.hero-pin { position: relative; height: 260vh; }
.hero-pin .hero { position: sticky; top: 0; }

/* cover lines */
.cover-left, .cover-right { position: absolute; z-index: 3; bottom: calc(var(--ticker-h) + clamp(28px, 4.5vh, 56px)); }
.cover-left { left: var(--gutter); width: var(--side-w, 420px); }
.cover-right { right: var(--gutter); width: min(var(--side-w, 300px), 300px); }
/* featured in: one tracked line under NASSAR */
.press {
  position: absolute; z-index: 3;
  left: var(--press-left, auto); right: var(--gutter); top: var(--press-top, 330px);
  display: flex; align-items: center; justify-content: flex-end; gap: 22px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.press-label { color: var(--muted); }
.press-list { display: flex; flex: none; gap: 18px; color: var(--ink); }
.cover-left > *, .cover-stats li, .press { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.is-ready .cover-left > *, body.is-ready .cover-stats li, body.is-ready .press { opacity: 1; transform: none; }
body.is-ready .press { transition-delay: 1.6s; }
body.is-ready .cover-left > :nth-child(1) { transition-delay: .95s; }
body.is-ready .cover-left > :nth-child(2) { transition-delay: 1.02s; }
body.is-ready .cover-left > :nth-child(3) { transition-delay: 1.09s; }
body.is-ready .cover-left > :nth-child(4) { transition-delay: 1.16s; }
body.is-ready .cover-stats li:nth-child(1) { transition-delay: 1s; }
body.is-ready .cover-stats li:nth-child(2) { transition-delay: 1.06s; }
body.is-ready .cover-stats li:nth-child(3) { transition-delay: 1.12s; }
body.is-ready .cover-stats li:nth-child(4) { transition-delay: 1.18s; }
body.is-ready .cover-stats li:nth-child(5) { transition-delay: 1.24s; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cover-head { font-size: clamp(30px, 2.55vw, 48px); line-height: 1; letter-spacing: max(-0.035em, calc(1px - .05em)); text-wrap: balance; }
.cover-head b { font-weight: 700; font-variation-settings: "wdth" 88; }
.cover-head .serif { font-size: 1.12em; line-height: .95; letter-spacing: -.015em; }
.cover-sub { margin-top: 18px; max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cover-cta { margin-top: 26px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.cover-stats li {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 7px 0 6px; border-top: 1px solid var(--line-strong);
}
.cover-stats li:last-child { border-bottom: 1px solid var(--line-strong); }
.num { font-family: var(--serif); font-size: clamp(34px, 2.7vw, 50px); line-height: 1; letter-spacing: -.02em; }
.num small { font-size: .62em; color: var(--accent); margin-left: 1px; }
.lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ticker */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: var(--ticker-h);
  display: flex; align-items: center;
  background: var(--ink); color: var(--bone);
  opacity: 0; transform: translateY(100%);
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
body.is-ready .ticker { opacity: 1; transform: none; }
.ticker-label {
  flex: none; height: 100%; display: flex; align-items: center;
  padding: 0 22px 0 var(--gutter);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 234, 226, .55);
  border-right: 1px solid rgba(237, 234, 226, .14);
}
.ticker-track { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-rail { display: flex; width: max-content; animation: run var(--run-dur, 30s) linear infinite; will-change: transform; }
.ticker-run { display: flex; align-items: center; flex: none; gap: 28px; padding-right: 28px; }
.ticker-run span { font-size: 18px; font-weight: 600; font-variation-settings: "wdth" 90; letter-spacing: -.01em; }
.ticker-run i { font-style: normal; color: var(--accent); font-size: 12px; }
@keyframes run { to { transform: translate3d(calc(-1 * var(--run-w, 50%)), 0, 0); } }

/* ---------- statement (preview of next section) ---------- */
.statement {
  position: relative; z-index: 5;
  background: var(--ink); color: var(--bone);
  padding: clamp(96px, 16vh, 180px) var(--gutter) clamp(96px, 14vh, 160px);
  min-height: 90vh;
}
.statement-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 234, 226, .5); margin-bottom: 36px; }
.statement-text { max-width: 15ch; font-size: clamp(48px, 7.4vw, 140px); line-height: .92; letter-spacing: max(-0.04em, calc(1px - .05em)); }
.statement-text b { font-weight: 700; font-variation-settings: "wdth" 80; }
.statement-text .serif { color: var(--accent-soft); font-size: 1.08em; }
.statement-note { margin-top: 64px; font-size: 13px; color: rgba(237, 234, 226, .4); }

/* ---------- laptop / tablet ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* ---------- phones ---------- */
@media (max-width: 1023px) {
  :root { --ticker-h: 48px; }
  .socials { display: none; }
  .nav { height: 56px; }
  .btn-ink { height: 38px; font-size: 13px; padding-left: 14px; }
  .btn-ink .btn-arrow { width: 28px; height: 28px; }
  .hero { height: auto; min-height: 0; overflow: visible; padding-bottom: 0; display: flex; flex-direction: column; }
  .crosses { top: 66px; }
  .grid-lines { top: 66px; }
  .issue-row { position: relative; top: auto; left: auto; right: auto; margin: 56px var(--gutter) 0; height: 10px; }
  .masthead { position: relative; left: auto; right: auto; top: auto; margin: 14px var(--gutter) 0; }
  .mast-line { display: block; }
  .mast-gap { display: none; }
  .mast-word { line-height: .8; }
  .w2 { margin-top: .02em; }
  .portrait { position: relative; left: auto; bottom: auto; margin: -2vw auto 0; width: 100%; height: auto; }
  .portrait img { width: 100%; height: auto; max-height: 62svh; object-fit: contain; }
  .portrait.is-seq { width: min(100%, 62svh); aspect-ratio: 1; margin-top: -8vw; }
  .hero-pin { height: auto; }
  .hero-pin .hero { position: relative; }
  .ticker { position: relative; }
  .cover-left, .cover-right { position: relative; bottom: auto; left: auto; right: auto; width: auto; }
  .cover-left { order: 10; padding: 36px var(--gutter) 0; }
  .cover-right { order: 11; margin: 36px var(--gutter) 56px; }
  .press { position: relative; left: auto; right: auto; top: auto; margin: 14px var(--gutter) 0; flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; font-size: 10px; }
  .press { white-space: normal; }
  .press-list { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; column-gap: 14px; row-gap: 6px; }
  .press-list li { white-space: nowrap; }
  .cover-stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .cover-stats li:last-child { border-bottom: 0; }
  .cover-stats li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .cover-stats li:last-child { grid-column: 1 / -1; }
  .cover-head { font-size: 34px; }
  .ticker-label { padding-right: 14px; }
  .ticker-run span { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .mast-in, .portrait img, .cover-left > *, .cover-stats li, .press, .ticker { transition: none !important; }
  .ticker-rail { animation: none; }
}

/* tablets: stacked layout, but keep the portrait and copy at a readable measure */
@media (min-width: 761px) and (max-width: 1023px) {
  .portrait.is-seq { width: min(78%, 64svh); }
  .portrait img { max-height: 66svh; }
  .cover-left { max-width: 620px; }
  .cover-head { font-size: 44px; }
  .cover-stats { grid-template-columns: repeat(3, 1fr); }
  .cover-stats li:last-child { grid-column: auto; }
  .cover-stats li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-strong); }
}
