/* Layout for vjvarada.com - the 2026-09-24 redesign.
   Tokens come from brand.css. No rule in this file declares a raw colour.

   DESIGN READ
   A personal authority site for programme chairs, hardware founders and
   engineering leads, in a precise industrial language. Dark, one signal
   accent, a real machine as the hero. Dials: variance 7, motion 7,
   density 4.

   WHAT CHANGED FROM THE FIRST DESIGN, AND WHY
   - One family, two widths. Archivo carries a width axis; headlines are
     set expanded (112-118%), body copy at normal width. It is the whole
     typographic voice, and it replaced a mono-caps label system.
   - The labels are gone. The first design put a small uppercase mono label
     over nearly every block: 27 on the home page against a limit of five.
     That rhythm is the most recognisable signature of a templated page.
     Hierarchy now comes from size, weight and colour.
   - Layouts no longer repeat. Running text has three layouts (feature,
     essay, statement) so a page is not the same split four times.
   - Photographs are large. The old prose block put a 230px thumbnail in the
     margin; good pictures deserve the column.
   - Numbers do the arguing. The record is stated once, in figures.

   Shape lock: 4px on every radius. Theme lock: dark on every band.
   Accent lock: signal orange, and nothing else ever competes with it. */

:root {
  --wdth-display: 112%;
  --wdth-hero: 116%;
  --wdth-body: 100%;
  --measure-text: 64ch;
  --col-gap: clamp(28px, 4.5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-stretch: var(--wdth-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
/* `height: auto` is not optional. Every <img> carries width/height so the
   browser can reserve its box, and with an author width the used height
   would otherwise stay the intrinsic pixel height, silently defeating every
   aspect-ratio rule below. */
img { max-width: 100%; height: auto; display: block; }
b { font-weight: 600; color: var(--ink); }
em.hi { font-style: normal; color: var(--accent); font-weight: 600; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); }
.band.raised { background: var(--bg-raised); border-block: 1px solid var(--line); }

/* An inline citation. Underlined at rest: in a paragraph, colour alone is
   not a reliable signal that something is a link. */
.inl {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .15s var(--ease);
}
.inl:hover, .inl:focus-visible { color: var(--accent-hi); }
.arw { width: .72em; height: .72em; margin-left: .35em; flex: 0 0 auto;
       display: inline-block; vertical-align: -.02em; color: var(--accent); }

/* ── skip link ───────────────────────────────────────────────────────── */
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 60;
  transform: translateY(-160%);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: var(--step--1);
  padding: 12px 16px; border-radius: var(--radius);
  transition: transform .18s var(--ease);
}
.skip:focus { transform: none; }
main:focus { outline: none; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 12px;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav .brand {
  display: flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-stretch: var(--wdth-hero);
  font-weight: 640; font-size: var(--step-0); letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav .btn { min-height: 44px; padding-inline: 16px; }

.burger {
  margin-left: auto; width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.burger:hover { border-color: var(--ink-faint); background: var(--surface); }
.bars { display: grid; gap: 4px; width: 18px; }
.bars i {
  display: block; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .2s var(--ease), opacity .15s var(--ease);
}
.burger[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* One list of links: the body of a drop panel on a phone, a row on a wide
   screen. Below 900px there was once no navigation at all. */
.nav nav {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  display: grid; padding: 8px var(--gutter) 24px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.nav nav[hidden] { display: none; }
.nav nav a {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: var(--wdth-display);
  font-weight: 600; font-size: var(--step-2); letter-spacing: var(--track-tight);
}
.nav nav a:last-of-type { border-bottom: 0; }
.nav nav a:hover, .nav nav a:focus-visible, .nav nav a.on { color: var(--accent); }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav { gap: 28px; }
  .nav nav, .nav nav[hidden] {
    position: static; display: flex; gap: 26px; margin-left: auto;
    padding: 0; background: none; border: 0; max-height: none; overflow: visible;
  }
  .nav nav a {
    display: inline; min-height: 0; border: 0; position: relative;
    font-family: var(--font-body); font-stretch: var(--wdth-body);
    font-weight: 450; font-size: var(--step--1); letter-spacing: 0;
    color: var(--ink-muted);
  }
  .nav nav a:hover { color: var(--ink); }
  .nav nav a.on { color: var(--ink); }
  /* A rule under the label, not colour alone: on a dark ground a
     muted-to-white shift is too quiet to read as "you are here". */
  .nav nav a.on::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
    height: 2px; background: var(--accent);
  }
}

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding-inline: 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent);
  font-family: var(--font-display); font-stretch: var(--wdth-display);
  font-weight: 620; font-size: var(--step--1); letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .14s var(--ease), background-color .16s var(--ease),
              border-color .16s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover {
  background: var(--accent-hi); border-color: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink-faint); box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-hi); outline-offset: 3px;
}
.acts { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ── home hero: the machine ──────────────────────────────────────────── */
.seq { position: relative; height: 380vh; }
.stage {
  position: sticky; top: 0; height: 100dvh; width: 100%; overflow: hidden;
  /* A lit backdrop, not the page colour. The Julia is near-black, and on
     #0a0b0d its silhouette dissolved into the page (Vijay, 2026-09-24). A
     pool of grey behind the machine gives it an edge; it still fades to the
     page colour at the rim so the copy scrim and the next band join cleanly. */
  --stage-lit: #343a44;
  --stage-mid: #1d2127;
  background:
    radial-gradient(62% 78% at 50% 36%, var(--stage-lit) 0%, var(--stage-mid) 48%, var(--bg) 100%);
}
@media (min-width: 900px) {
  .stage {
    background:
      radial-gradient(48% 82% at 70% 46%, var(--stage-lit) 0%, var(--stage-mid) 50%, var(--bg) 100%);
  }
}
/* The poster is a frame of the real scene. It holds the space until WebGL
   is ready, and stays for anyone without it. */
.stage::before {
  content: ""; position: absolute; inset: 0;
  background: url(img/hero-poster.webp) no-repeat 78% 50% / cover;
  transition: opacity .6s var(--ease);
}
.stage.is-live::before { opacity: 0; }
.stage canvas {
  position: relative; display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity .8s var(--ease);
}
.stage.is-live canvas { opacity: 1; }
/* Review captures (`?still=1`) swap instantly: headless never finishes a
   crossfade, and a half-dissolved hero is not what anyone sees. */
.stage.no-fade::before, .stage.no-fade canvas { transition: none; }
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 2%,
              color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 64%);
}
@media (min-width: 900px) {
  .stage::before { background-position: 100% 50%; }
  /* The scrim protects the copy and stops where the copy stops. Reaching
     further only greys out the machine it is there to frame. */
  .stage::after {
    background:
      linear-gradient(to right, var(--bg) 6%,
        color-mix(in srgb, var(--bg) 55%, transparent) 32%, transparent 47%),
      linear-gradient(to top, var(--bg) 0%, transparent 14%);
  }
}

/* One sticky layer, the height of the screen, laid over the stage. Every
   beat fills it, so every beat lands in the same text zone. */
.beats {
  position: sticky; top: 0; height: 100dvh; margin-top: -100dvh;
  pointer-events: none;
}
.beat {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; pointer-events: none;
  padding-bottom: calc(var(--gutter) + 12px);
}
@media (min-width: 900px) { .beat { align-items: center; padding-bottom: 0; } }
.beat > div {
  width: 100%; max-width: var(--measure); margin-inline: auto;
  padding-inline: var(--gutter);
  /* Opacity and position are driven from scroll in chrome.js. Without
     script, only the opening beat shows, so the headline never waits. */
  opacity: 0; will-change: opacity, transform;
}
.beat.beat-hero > div { opacity: 1; }
@media (max-width: 899px) {
  /* On a phone the copy sits under the machine, over a scrim of its own
     that fades with it. */
  .beat > div { position: relative; isolation: isolate; }
  .beat > div::before {
    content: ""; position: absolute; inset: -32px 0 -44px; z-index: -1;
    background: linear-gradient(to bottom, transparent 0%,
      color-mix(in srgb, var(--bg) 88%, transparent) 18%,
      color-mix(in srgb, var(--bg) 94%, transparent) 55%, var(--bg) 100%);
  }
}
.beat.live a { pointer-events: auto; }
.beat .inner { max-width: 620px; }
.beat h1 {
  font-stretch: var(--wdth-hero); font-weight: 640;
  font-size: clamp(38px, 4.1vw, 64px); line-height: 1;
  letter-spacing: -0.038em;
}
.beat .lede {
  margin-top: 22px; color: var(--ink-muted);
  font-size: var(--step-1); line-height: 1.5; max-width: 40ch;
}
.beatcard { max-width: 460px; }
.beatcard h2 { font-size: var(--step-3); }
.beatcard p { margin-top: 14px; color: var(--ink-muted); line-height: 1.6; max-width: 42ch; }
/* The story behind each beat, as a photograph you can follow. Small on
   purpose: the machine is still the subject of the hero. */
.beatstory {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 20px;
  padding: 6px 16px 6px 6px; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink); text-decoration: none; font-size: var(--step--1);
  transition: border-color var(--dur) var(--ease);
}
.beatstory img {
  width: 96px; height: 96px; border-radius: 2px; flex: none; display: block;
}
.beatstory span { display: inline-flex; align-items: center; gap: 8px; }
.beatstory:hover { border-color: var(--accent); }
@media (max-width: 899px) { .beatstory img { width: 56px; height: 56px; } }

/* ── page hero ───────────────────────────────────────────────────────── */
.pagehero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(48px, 7vw, 96px); }
.pagehero h1 {
  font-stretch: var(--wdth-hero); font-weight: 640;
  font-size: clamp(38px, 5.2vw, 76px); letter-spacing: -0.038em;
  max-width: 13ch;
}
.pagehero .lede {
  margin-top: 24px; color: var(--ink-muted);
  font-size: var(--step-1); line-height: 1.5; max-width: 44ch;
}
.pagehero.split .wrap { display: grid; gap: clamp(32px, 5vw, 64px); }
.hero-pic { margin: 0; }
.hero-pic img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  object-fit: cover;
}
.hero-pic.wide img { aspect-ratio: 4 / 3; }
.hero-pic.tall img { aspect-ratio: 4 / 5; max-height: 74vh; object-position: 50% 30%; }
.hero-pic.square img { aspect-ratio: 1 / 1; max-height: 72vh; }
@media (min-width: 900px) {
  .pagehero.split .wrap {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center;
  }
  .pagehero.split h1 { font-size: clamp(38px, 4.4vw, 68px); }
}

/* ── section heads ───────────────────────────────────────────────────── */
/* `ch` resolves against the element's OWN font size: the measure belongs
   on the element it measures, never on a wrapper. */
.shead { margin-bottom: clamp(32px, 4vw, 52px); }
.shead h2 { font-size: clamp(30px, 3.7vw, 54px); max-width: 17ch; }
.kicker {
  font-size: var(--step--1); font-weight: 500; color: var(--accent);
  margin-bottom: 14px; letter-spacing: 0;
}
.standfirst {
  margin-top: 18px; color: var(--ink-muted);
  font-size: var(--step-1); line-height: 1.55; max-width: 52ch;
}

/* ── running text: three layouts ─────────────────────────────────────── */
.lead {
  font-size: var(--step-2); line-height: 1.38; font-weight: 450;
  letter-spacing: var(--track-tight); color: var(--ink); max-width: 30ch;
}
.body { color: var(--ink-muted); line-height: 1.75; }
.body p { max-width: var(--measure-text); }
.body p + p { margin-top: 1.1em; }
.pic { margin: 0; }
.pic img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.pic figcaption, .fig figcaption {
  margin-top: 14px; color: var(--ink-faint); font-size: var(--step--1);
  line-height: 1.55; max-width: 58ch;
}

/* feature: a large picture beside the text */
.feature { display: grid; gap: clamp(28px, 4vw, 48px); }
.feature .lead { margin-bottom: 26px; }
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: var(--col-gap); align-items: start;
  }
  .feature.flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .feature.flip .pic { order: 2; }
  /* The picture holds still while the text is read beside it. */
  .feature .pic { position: sticky; top: calc(var(--nav-h) + 28px); }
}

/* essay: a vertical stack, one reading column offset for asymmetry */
.essay { display: grid; gap: 30px; }
.essay .pic { margin-block: 12px; }
.essay .pic img { max-height: 78vh; object-fit: cover; }
@media (min-width: 1000px) {
  .essay { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 34px; }
  .essay > .shead, .essay > .lead { grid-column: 1 / span 9; margin-bottom: 0; }
  .essay > .pic { grid-column: 1 / -1; }
  .essay > .body { grid-column: 4 / span 8; }
}

/* statement: one idea, set large, the detail underneath */
.statement .lead {
  font-family: var(--font-display); font-stretch: 104%; font-weight: 520;
  font-size: clamp(26px, 3.2vw, 46px); line-height: 1.18;
  letter-spacing: -0.024em; max-width: 24ch;
}
.statement .body { margin-top: clamp(32px, 4vw, 52px); }
.statement .pic { margin-top: 40px; }
@media (min-width: 900px) {
  .statement .body.cols { column-count: 2; column-gap: var(--col-gap); }
  .statement .body.cols p { break-inside: avoid; max-width: none; }
}

/* ── proof: the record in figures ────────────────────────────────────── */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
@media (min-width: 900px) { .proof.n-4 { grid-template-columns: repeat(4, 1fr); } }
.fact { display: grid; gap: 14px; align-content: start; padding-top: 22px; position: relative; }
.fact::before {
  content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px;
  background: var(--accent);
}
.fact .num {
  font-family: var(--font-display); font-stretch: var(--wdth-hero); font-weight: 640;
  font-size: clamp(40px, 5vw, 76px); line-height: .95; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums lining-nums;
}
.fact .what { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.55; max-width: 28ch; }

/* ── credits: who vouched for the work ───────────────────────────────── */
.credits { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .credits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .credits.n-4 { grid-template-columns: repeat(4, 1fr); } }
.credit {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.credit:hover { border-color: var(--line-strong); }
.credit-img { width: 100%; aspect-ratio: 4 / 3; height: auto; display: block;
  transition: transform .6s var(--ease); }
.credit:hover .credit-img { transform: scale(1.03); }
.credit .cbody { padding: 20px 22px 24px; }
.credit h3 {
  font-stretch: var(--wdth-display); font-weight: 640;
  font-size: var(--step-2); line-height: 1.08; letter-spacing: var(--track-tight);
}
.credit h3 a { transition: color .15s var(--ease); }
.credit h3 a::after { content: ""; position: absolute; inset: 0; }
.credit:hover h3 a, .credit h3 a:focus-visible { color: var(--accent-hi); }
.credit p { margin-top: 10px; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.55; }
/* A phone gets a compact row: photo left, claim right. Four stacked 4:3
   photographs would be a screen and a half of pictures before any words. */
@media (max-width: 639px) {
  .credit { flex-direction: row; align-items: stretch; }
  .credit-img { width: 38%; aspect-ratio: auto; object-fit: cover; flex: none;
    object-position: 30% 50%; }
  .credit .cbody { padding: 14px 16px 16px; }
  .credit h3 { font-size: var(--step-1); }
}

/* ── carousel: the machine range ─────────────────────────────────────── */
.chead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.chead > :first-child { flex: 1 1 auto; }
.cnav { display: flex; gap: 8px; flex: none; margin-bottom: 4px; }
.cnav button {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
.cnav button:hover:not(:disabled) { border-color: var(--accent); }
.cnav button:disabled { opacity: .35; cursor: default; }
.cnav svg { width: 18px; height: 18px; }
.carousel {
  margin-top: 32px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  /* Bleed to the right edge of the window, so the next card peeks in and
     says "there is more" without a scrollbar. */
  margin-right: calc(50% - 50vw); padding-right: var(--gutter);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
.ctrack {
  list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78vw, 320px); column-gap: 16px;
}
@media (min-width: 900px) { .ctrack { grid-auto-columns: 300px; } }
.ccard {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); transition: border-color .2s var(--ease);
}
.ccard:hover { border-color: var(--line-strong); }
/* White, because the cutouts' contact shadows are drawn for a light ground. */
/* The picture is laid over the square, not placed in it: an <img> with
   height:100% inside an aspect-ratio box resolves to its intrinsic height,
   which stretched the portrait machines' panels and left them blank. */
.cpanel { position: relative; background: #ffffff; aspect-ratio: 1 / 1; }
.cpanel img { position: absolute; inset: 22px; width: calc(100% - 44px);
  height: calc(100% - 44px); object-fit: contain; display: block;
  transition: transform .5s var(--ease); }
.ccard:hover .cpanel img { transform: scale(1.04); }
.ccard .cbody { padding: 18px 20px 22px; }
.ccard .k { display: block; font-size: var(--step--1); font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.ccard h3 { font-stretch: var(--wdth-display); font-weight: 640; font-size: var(--step-2); letter-spacing: var(--track-tight); }
.ccard h3 a::after { content: ""; position: absolute; inset: 0; }
.ccard:hover h3 a, .ccard h3 a:focus-visible { color: var(--accent-hi); }
.ccard p { margin-top: 8px; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 639px) { .cnav { display: none; } }

/* ── timeline ────────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; gap: 6px 32px; padding-block: 24px;
  border-top: 1px solid var(--line);
}
.timeline .yr {
  font-family: var(--font-display); font-stretch: var(--wdth-display); font-weight: 600;
  font-size: var(--step-2); color: var(--ink-faint); letter-spacing: -0.02em;
}
.timeline h3 { font-size: var(--step-1); letter-spacing: var(--track-tight); line-height: 1.25; }
.timeline p { margin-top: 6px; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.6; max-width: 56ch; }
@media (min-width: 760px) { .timeline li { grid-template-columns: 180px minmax(0, 1fr); } }

/* ── bento ───────────────────────────────────────────────────────────── */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); }
  .bento.n-4 > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
  /* The fourth tile runs the full width as a landscape card, picture left.
     Spanning two left an empty third cell beside it. */
  .bento.n-4 > :nth-child(4) { grid-column: 1 / -1; flex-direction: row; }
  .bento.n-4 > :nth-child(4) .tile-img { width: 58%; flex: none; max-height: 340px; }
  .bento.n-4 > :nth-child(4) .tbody { margin-top: 0; align-self: center; }
  .bento.n-2 > :nth-child(1) { grid-column: span 2; }
  .bento.n-3 > :nth-child(1) { grid-column: span 2; }
  .bento.n-3 > :nth-child(3) { grid-column: span 3; }
  .bento.n-3 > :nth-child(3) .tile-img { max-height: 300px; }
  .bento.even > :nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento.even .tile-img { max-height: 280px; padding: 12px 28px 0; }
}
.tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; position: relative;
  display: flex; flex-direction: column; min-height: 220px;
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile .tbody { padding: 24px 26px 26px; margin-top: auto; }
.tile h3 { font-size: var(--step-2); letter-spacing: var(--track-tight); }
.tile h3 a { transition: color .15s var(--ease); }
.tile:hover h3 a, .tile h3 a:focus-visible { color: var(--accent-hi); }
/* The heading link covers the whole tile. Nothing else in the tile may be
   positioned, or it paints above the overlay and punches a dead patch in
   the middle of the target. */
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { margin-top: 10px; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.6; max-width: 48ch; }
.tile .k { display: block; font-size: var(--step--1); font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.tile-img {
  width: 100%; flex: 1 1 auto; min-height: 200px; object-fit: cover;
  transition: transform .6s var(--ease);
}
.tile:hover .tile-img { transform: scale(1.025); }
.tile.hatch {
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px,
      color-mix(in srgb, var(--accent) 5%, transparent) 10px 11px),
    var(--surface);
}
.tile.glow { background: radial-gradient(100% 120% at 20% 0%, var(--surface-hi) 0%, var(--surface) 70%); }

.slot {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 12px;
}
.slot span { font-size: var(--step--1); color: var(--ink-faint); }

/* ── clips ───────────────────────────────────────────────────────────── */
.clips { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .clips.n-2 { grid-template-columns: 1fr 1fr; }
  .clips.n-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.clip { margin: 0; }
.clip video {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.clip figcaption { margin-top: 12px; color: var(--ink-faint); font-size: var(--step--1); line-height: 1.55; max-width: 52ch; }
.clips.n-1 .clip video { max-height: 620px; object-fit: contain; }

/* ── ventures: a ledger ──────────────────────────────────────────────── */
.vents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vrow {
  display: grid; gap: 6px 18px; padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas: "shot shot" "mark main";
  align-items: start;
}
.vshot {
  grid-area: shot; margin: 0 0 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.vshot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.vrow:hover .vshot img { transform: scale(1.025); }
.vmark {
  grid-area: mark; width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--surface-hi); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.vmark img { width: 32px; height: 32px; object-fit: contain; }
.vmain { grid-area: main; min-width: 0; }
.vrow h3 { font-size: var(--step-3); letter-spacing: var(--track-tight); }
.vrow .vrole { margin-top: 8px; font-size: var(--step--1); font-weight: 500; color: var(--accent); }
.vrow .vsay { margin-top: 16px; color: var(--ink-muted); line-height: 1.65; max-width: 60ch; }
/* A spec line, not a row of pills. */
.vfacts {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-faint);
}
.vfacts .sep { color: var(--line-strong); }
.vgo {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px;
  font-weight: 500; font-size: var(--step--1); color: var(--ink);
}
.vgo svg { width: 11px; height: 11px; margin-left: .45em; color: var(--accent); }
.vrow:hover .vgo, .vgo:hover, .vgo:focus-visible { color: var(--accent-hi); }
@media (min-width: 760px) {
  .vrow { grid-template-columns: 60px minmax(0, 1fr); gap: 6px 26px; }
  .vmark { width: 60px; height: 60px; }
  .vmark img { width: 40px; height: 40px; }
}
@media (min-width: 1040px) {
  .vrow {
    grid-template-columns: 60px minmax(0, 1fr) 340px;
    grid-template-areas: "mark main shot";
    padding: 36px 0 38px;
  }
  .vshot { margin: 0; }
}

/* ── press: pull quotes ──────────────────────────────────────────────── */
.press { display: grid; gap: clamp(36px, 5vw, 64px) var(--col-gap); grid-template-columns: 1fr; }
@media (min-width: 880px) { .press { grid-template-columns: 1fr 1fr; } }
.cite { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.cite blockquote { margin: 0; position: relative; padding-top: 34px; }
.cite blockquote::before {
  content: "\201C"; position: absolute; top: -10px; left: -4px;
  font-family: var(--font-display); font-stretch: 100%; font-weight: 600;
  font-size: 64px; line-height: 1; color: var(--accent);
}
.cite blockquote p {
  font-family: var(--font-display); font-stretch: 102%; font-weight: 440;
  font-size: clamp(20px, 1.9vw, 27px); line-height: 1.34; letter-spacing: -0.015em;
  color: var(--ink); max-width: 34ch;
}
.cite figcaption { margin-top: auto; display: grid; gap: 3px; font-size: var(--step--1); }
.cite .outlet { display: block; font-weight: 600; color: var(--ink); }
.cite .hl { display: block; color: var(--ink-muted); transition: color .15s var(--ease); }
.cite a:hover .hl, .cite a:focus-visible .hl { color: var(--accent-hi); }
.cite .when { color: var(--ink-faint); }
.press-more { margin-top: clamp(36px, 4vw, 52px); font-size: var(--step--1); }
.press-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-muted); }
.press-more a:hover, .press-more a:focus-visible { color: var(--ink); }

/* ── topics ──────────────────────────────────────────────────────────── */
.topic {
  display: grid; gap: 8px; padding-block: 28px;
  border-top: 1px solid var(--line);
}
.topic h3 { font-size: var(--step-2); letter-spacing: var(--track-tight); }
.topic p { color: var(--ink-muted); line-height: 1.6; max-width: 58ch; }
.topic .fmt { font-size: var(--step--1); font-weight: 500; color: var(--ink-faint); }
@media (min-width: 900px) {
  .topic { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 170px; gap: 40px; align-items: baseline; }
  .topic .fmt { text-align: right; }
}

/* ── offers ──────────────────────────────────────────────────────────── */
.offers { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .offers { grid-template-columns: 1fr 1fr; gap: 20px; } }
.offer {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); background: var(--surface);
}
.offer h3 { font-size: var(--step-3); }
.offer .who { margin-top: 12px; color: var(--ink-muted); line-height: 1.55; max-width: 40ch; }
.offer ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.offer li { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.55; padding-left: 22px; position: relative; }
.offer li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px;
  background: var(--accent);
}
.offer .terms { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-faint); }

/* ── chunks ──────────────────────────────────────────────────────────── */
.chunks {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 820px) { .chunks { grid-template-columns: repeat(3, 1fr); } }
.chunk { background: var(--surface); padding: 26px 24px 28px; }
.chunk h3 { font-size: var(--step-1); letter-spacing: var(--track-tight); }
.chunk ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.chunk li { font-size: var(--step--1); line-height: 1.5; color: var(--ink-faint); }
.chunk li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; }
.chunk li a { display: inline-flex; align-items: baseline; padding-block: 3px; }
.chunk li a b { color: var(--ink); transition: color .15s var(--ease); margin-bottom: 0; }
.chunk li a:hover b, .chunk li a:focus-visible b { color: var(--accent-hi); }
.chunk li > span { display: block; }

/* ── figures ─────────────────────────────────────────────────────────── */
.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.fig.portrait { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .fig.portrait { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
}
.fig.portrait img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.fig.portrait figcaption {
  margin-top: 0; font-family: var(--font-display); font-stretch: var(--wdth-display);
  font-weight: 600; font-size: var(--step-3); line-height: 1.18;
  letter-spacing: var(--track-tight); color: var(--ink); max-width: 18ch;
}
.fig.portrait figcaption b {
  display: block; margin-top: 18px; font-family: var(--font-body); font-stretch: 100%;
  font-size: var(--step-0); font-weight: 400; color: var(--ink-muted);
  letter-spacing: 0; line-height: 1.6; max-width: 42ch;
}
.fig.bare img {
  aspect-ratio: auto; object-fit: contain; width: auto; max-width: 100%;
  max-height: 540px; margin-inline: auto; border-radius: 0;
}
.fig.bare figcaption { text-align: center; margin-inline: auto; }
.fig.whole img {
  aspect-ratio: auto; object-fit: contain; width: auto; max-width: 100%;
  max-height: 640px; margin-inline: auto; background: var(--surface);
  border: 1px solid var(--line);
}
.fig.whole figcaption { margin-inline: auto; text-align: center; }

/* ── profiles ────────────────────────────────────────────────────────── */
.profiles {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .profiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .profiles { grid-template-columns: repeat(3, 1fr); } }
.prof {
  background: var(--surface); padding: 22px 22px 24px;
  display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; row-gap: 4px;
  align-content: start; transition: background-color .18s var(--ease);
}
.prof:hover, .prof:focus-visible { background: var(--surface-hi); }
.prof .ic { grid-row: 1 / span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--ink-faint); transition: color .15s var(--ease); }
.prof:hover .ic, .prof:focus-visible .ic { color: var(--accent); }
.prof .pn { font-family: var(--font-display); font-stretch: var(--wdth-display); font-weight: 600; letter-spacing: var(--track-tight); }
.prof .ph { font-size: var(--step--1); color: var(--ink-faint); }
.prof .pb { grid-column: 2; margin-top: 8px; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.5; }

/* ── watch: YouTube, only on request ─────────────────────────────────── */
.watch { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .watch { grid-template-columns: 1fr 1fr; } }
.vid { margin: 0; }
.vplay {
  display: block; width: 100%; padding: 0; position: relative; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: inherit;
}
.vplay .vposter { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .6s var(--ease), opacity .2s var(--ease); }
.vplay:hover .vposter, .vplay:focus-visible .vposter { transform: scale(1.02); opacity: .85; }
.playmark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.playmark svg {
  width: 64px; height: 64px; color: var(--on-accent);
  background: var(--accent); border-radius: 50%; padding: 16px 14px 16px 18px;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--bg) 80%, transparent);
  transition: transform .18s var(--ease);
}
.vplay:hover .playmark svg, .vplay:focus-visible .playmark svg { transform: scale(1.07); }
.vplay.playing { aspect-ratio: 16 / 9; cursor: default; }
.vplay iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid h3 { margin-top: 18px; font-size: var(--step-1); letter-spacing: var(--track-tight); }
.vid .vsrc { margin-top: 6px; font-size: var(--step--1); font-weight: 500; color: var(--accent); }
.vid .vnote { margin-top: 10px; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.55; max-width: 52ch; }

/* ── close ───────────────────────────────────────────────────────────── */
.close h2 {
  font-stretch: var(--wdth-hero); font-weight: 640;
  font-size: clamp(40px, 6.4vw, 96px); letter-spacing: -0.042em; max-width: 13ch;
}
.close .acts { margin-top: 36px; }

/* ── onward ──────────────────────────────────────────────────────────── */
.pager { border-top: 1px solid var(--line); background: var(--bg-raised); }
.pager a {
  max-width: var(--measure); margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter);
  display: grid; gap: 8px; transition: background-color .18s var(--ease);
}
.pager a:hover, .pager a:focus-visible { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.pager .pk { font-size: var(--step--1); font-weight: 500; color: var(--ink-faint); }
.pager .pt {
  font-family: var(--font-display); font-stretch: var(--wdth-hero); font-weight: 640;
  font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.035em; line-height: 1.05;
}
.pager a:hover .pt, .pager a:focus-visible .pt { color: var(--accent-hi); }
.pager .pt::after { content: " \2192"; color: var(--accent); font-stretch: 100%; }
.pager .pb { color: var(--ink-muted); font-size: var(--step--1); max-width: 52ch; }

/* ── footer ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: 52px 36px; }
.fcols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .fcols { grid-template-columns: repeat(4, 1fr); } }
.fcols h4 {
  font-family: var(--font-body); font-stretch: 100%; font-size: var(--step--1);
  font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 10px;
}
/* 44px tall on a phone: 30px was not a hittable target, and the footer is
   the densest cluster of links on the site. */
.fcols a { display: flex; align-items: center; min-height: 44px; color: var(--ink-muted); font-size: var(--step--1); }
.fcols a:hover, .fcols a:focus-visible { color: var(--accent-hi); }
@media (min-width: 700px) { .fcols a { min-height: 0; padding-block: 6px; display: block; } }
.legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--ink-faint); font-size: var(--step--1);
}

/* ── reveal ──────────────────────────────────────────────────────────────
   Sections settle into place as they arrive, in reading order. The class is
   added by chrome.js, so without JavaScript nothing is ever hidden. It is
   hierarchy, not decoration: the eye is led to each block as it lands. */
.pre { opacity: 0; transform: translateY(22px); }
.pre.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre { opacity: 1; transform: none; }
}
.timeline h3 a { display: inline-flex; align-items: baseline; transition: color .15s var(--ease); }
.timeline h3 a:hover, .timeline h3 a:focus-visible { color: var(--accent-hi); }

.tl-split { display: grid; gap: 36px; }
@media (min-width: 1000px) {
  .tl-split { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--col-gap); align-items: start; }
  .tl-split .pic { position: sticky; top: calc(var(--nav-h) + 28px); }
}
