/* ==========================================================================
   Tokens
   Charcoal ground, warm off-white ink and a safety-yellow accent.
   --brand is for fills; --accent is for accent-coloured text, which needs
   a darker shade on the light theme to stay readable.
   ========================================================================== */
:root {
  --bg: #141619;
  --bg-2: #17191d;
  --surface: #1c1f23;
  --surface-2: #23272c;
  --fg: #f4f1ec;
  --muted: #adb1b7;
  --faint: #858a91;
  --line: #2a2e33;
  --line-strong: #3a3f46;
  --corner: #4a4f56;
  --hover: rgba(244, 241, 236, 0.05);
  --brand: #f5c518;
  --accent: #f5c518;
  --on-brand: #141619;
  --btn-primary-hover: #f4f1ec;
  --btn-primary-hover-fg: #141619;
  --glow: 245 197 24;
  --spot: rgba(245, 197, 24, 0.07);
  --sweep: rgba(255, 255, 255, 0.85);
  --grid-line: rgba(244, 241, 236, 0.035);
  --shadow-lift: 0 40px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(244, 241, 236, 0.03);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 72px;
  --r-lg: 10px;
  --r-md: 8px;
  --r-sm: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
  accent-color: var(--brand);
  scrollbar-color: var(--line-strong) var(--bg);
}

:root[data-theme="light"] {
  --bg: #f4f1ec;
  --bg-2: #ece8e1;
  --surface: #ffffff;
  --surface-2: #e6e1d8;
  --fg: #141619;
  --muted: #4f545b;
  --faint: #62676e;
  --line: #dcd6cc;
  --line-strong: #c4bdb1;
  --corner: #a39b8e;
  --hover: rgba(20, 22, 25, 0.05);
  --accent: #7a5d00;
  --btn-primary-hover: #141619;
  --btn-primary-hover-fg: #f4f1ec;
  --spot: rgba(245, 197, 24, 0.14);
  --crn-c: #c99a00;
  --sweep: rgba(20, 22, 25, 0.55);
  --grid-line: rgba(20, 22, 25, 0.05);
  --shadow-lift: 0 30px 60px -34px rgba(50, 40, 20, 0.35), 0 0 0 1px rgba(20, 22, 25, 0.04);
  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.noscript {
  max-width: 40ch;
  margin: 140px auto;
  padding-inline: 16px;
  color: var(--muted);
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 2px;
  background: var(--brand);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

/* ==========================================================================
   Shared components
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--accent); font-weight: 500; }
.eyebrow i {
  width: 32px;
  height: 1px;
  background: var(--line-strong);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out) 0.2s;
}
.reveal:not(.is-in) .eyebrow i { transform: scaleX(0); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}
.chip .dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.chip--live .dot { animation: pulse 2.2s ease-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--glow) / 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgb(var(--glow) / 0); }
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line-strong);
  --btn-hover: var(--hover);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.35s var(--ease-out), border-color 0.25s, translate 0.5s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--fg); }
.btn:active { scale: 0.985; }
.btn .arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow--diag { transform: translate(2px, -2px); }

.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-bd: var(--brand);
  --btn-hover: var(--btn-primary-hover);
}
.btn--primary:hover { color: var(--btn-primary-hover-fg); border-color: var(--btn-primary-hover); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 0.875rem; }

.surface {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* Cursor-follow highlight on cards (fine pointers only, set in main.js) */
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.spot:hover::after { opacity: 1; }

/* Viewfinder corner brackets, drawn in as their frame comes into view */
.crn { position: absolute; inset: 12px; z-index: 3; pointer-events: none; }
.crn i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--crn-c, var(--brand));
  transition: translate 0.6s var(--ease-out);
}
.crn i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; --ox: -10px; --oy: -10px; }
.crn i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; --ox: 10px; --oy: -10px; }
.crn i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; --ox: -10px; --oy: 10px; }
.crn i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; --ox: 10px; --oy: 10px; }
.is-in .frame .crn i, .crn--load i { animation: crnIn 1.1s var(--ease-out) both; animation-delay: var(--crn-d, 250ms); }
.reveal:not(.is-in) .frame .crn i { opacity: 0; }
@keyframes crnIn {
  from { opacity: 0; transform: translate(var(--ox), var(--oy)); }
  to { opacity: 1; transform: none; }
}
/* A small "focus" pull when the frame is hovered */
:is(.frame, .glance, .shot > button):hover .crn i { translate: calc(var(--ox) * 0.3) calc(var(--oy) * 0.3); }

/* Dot-matrix outlined display type */
.dotted {
  --dot: 0.07em;
  color: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--brand) 40%, transparent);
  background-image:
    linear-gradient(100deg, transparent 38%, var(--sweep) 50%, transparent 62%),
    radial-gradient(circle, var(--brand) 0 calc(var(--dot) * 0.3), transparent calc(var(--dot) * 0.36));
  background-size: 260% 100%, var(--dot) var(--dot);
  background-position: 130% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sweep 7s var(--ease-in-out) infinite;
}
@keyframes sweep {
  0%, 40% { background-position: 130% 0, 0 0; }
  100% { background-position: -40% 0, 0 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Words that rise out of a mask: the hero name on load, section titles on reveal */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.split .w > span { display: inline-block; }
.hero-title .w > span {
  transform: translateY(108%);
  animation: rise 1.2s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
@keyframes rise { to { transform: none; } }
.section-head .w > span {
  transform: translateY(108%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + 120ms);
}
.section-head.is-in .w > span { transform: none; }

/* ==========================================================================
   Header, section index + drawer
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out);
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
/* Tucks away while reading down the page, returns on the first scroll up */
.site-header.is-tucked:not(:focus-within) { transform: translateY(-100%); }
.menu-open .site-header { transform: none; }

.header-inner { display: flex; align-items: center; gap: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-90deg); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: none; transform-origin: 0 50%; }
.nav a[aria-current="true"] { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--hover); border-color: var(--fg); }
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

.menu-btn { display: none; }
.menu-lines { position: relative; width: 16px; height: 10px; }
.menu-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { top: calc(100% - 1.6px); }
.menu-open .menu-lines i:first-child { top: calc(50% - 0.8px); transform: rotate(45deg); }
.menu-open .menu-lines i:last-child { top: calc(50% - 0.8px); transform: rotate(-45deg); }

/* Section index: ticks down the left edge on wide screens */
.rail {
  position: fixed;
  left: 24px;
  top: 50%;
  z-index: 40;
  display: none;
  translate: -12px -50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, translate 0.7s var(--ease-out), visibility 0.5s;
}
.rail.is-on { opacity: 1; visibility: visible; translate: 0 -50%; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rail a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 26px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s;
}
.rail .tick {
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0.45);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out), background-color 0.25s;
}
.rail .lbl {
  position: absolute;
  left: 66px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg);
  white-space: nowrap;
  opacity: 0;
  translate: -6px 0;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.35s var(--ease-out);
}
.rail a:hover, .rail a[aria-current="true"] { color: var(--fg); }
.rail a:hover .tick { transform: scaleX(0.75); background: var(--fg); }
.rail a[aria-current="true"] .tick { transform: none; background: var(--brand); }
.rail a:hover .lbl, .rail a:focus-visible .lbl { opacity: 1; translate: 0 0; }
@media (min-width: 1400px) { .rail { display: block; } }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0.7s;
}
.menu-open .drawer { clip-path: inset(0); visibility: visible; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.5s, translate 0.7s var(--ease-out), color 0.2s;
}
.menu-open .drawer nav a { opacity: 1; translate: 0 0; transition-delay: calc(var(--k, 0) * 45ms + 180ms), calc(var(--k, 0) * 45ms + 180ms), 0s; }
.drawer nav a:hover { color: var(--accent); }
.drawer nav a span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent); }

@media (max-width: 1120px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  position: relative;
  padding-block: var(--section-y);
  overflow-x: clip;
}
.section--raised { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(72px, 9vw, 112px);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 25%, transparent 75%);
}
.hero::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-glow {
  position: absolute;
  z-index: -1;
  top: -35%;
  right: -28%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--glow) / 0.11), transparent 62%);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-glow { background: radial-gradient(circle, rgb(var(--glow) / 0.22), transparent 62%); }
@keyframes drift {
  to { transform: translate(-8%, 10%) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.hero-title {
  font-size: clamp(3.1rem, 1.1rem + 6.6vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.fade-up {
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.lead {
  max-width: 58ch;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}
.lead strong {
  display: block;
  max-width: 30ch;
  margin-bottom: 16px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-wrap: balance;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Play button: a yellow square inside an outlined button */
.btn--play { padding-left: 8px; }
.play-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--brand);
  color: var(--on-brand);
  transition: transform 0.5s var(--ease-out);
}
.play-dot svg { width: 14px; height: 14px; margin-left: 2px; fill: currentColor; }
.btn--play:hover .play-dot { transform: scale(1.08); }
.btn-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--faint); }

.hero-loc {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-loc > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-loc svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-loc i { width: 1px; height: 12px; background: var(--line-strong); }

.glance { box-shadow: var(--shadow-lift); }
.glance-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.glance-head .chip { padding: 4px 10px; font-size: 0.64rem; }
.glance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
  animation: fadeUp 0.9s var(--ease-out) both;
  animation-delay: calc(var(--r, 0) * 70ms + 700ms);
}
.glance-row:last-child { border-bottom: 0; }
.glance-row:hover { background: var(--hover); }
.glance-row > span { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.glance-row strong {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 1rem + 0.9vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--accent);
}
.glance-row strong.is-text { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.01em; color: var(--fg); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--line);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  animation: drop 2.2s var(--ease-in-out) infinite;
}
@keyframes drop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (max-height: 700px) { .scroll-cue { display: none; } }

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: none; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 22px 16px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--muted);
}
.ticker-item::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story: the tower ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}

.tower {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tower-readout { display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.tower-readout .eyebrow { margin-bottom: 6px; }
.tower-readout strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tower-readout span:last-child { color: var(--muted); }

.tower-roof {
  height: 30px;
  margin: 0 10px 6px;
  background: var(--line-strong);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: background-color 0.5s var(--ease-out);
}
.tower.is-topped .tower-roof { background: var(--brand); }

.tower-floors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tower-floors button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  color: var(--faint);
  cursor: pointer;
  transition: background-color 0.45s var(--ease-out), color 0.45s, border-color 0.45s;
}
.tower-floors button:hover { color: var(--fg); border-color: var(--fg); }
.tower-floors button span:last-child { opacity: 0.8; }
.tower-floors li.is-built button {
  border-style: solid;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}
.tower-floors li.is-current button {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.tower-ground {
  height: 14px;
  margin-top: 6px;
  border-top: 2px solid var(--line-strong);
  background: repeating-linear-gradient(-45deg, var(--line-strong) 0 1px, transparent 1px 7px);
}

.floors { list-style: none; margin: 0; padding: 0; }
.floor {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  padding-block: clamp(34px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.floor:first-child { padding-top: 0; border-top: 0; }
.floor:last-child { padding-bottom: 0; }
.floor-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.floor-meta b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fg);
  transition: color 0.4s;
}
.floor.is-current .floor-meta b { color: var(--accent); }
.floor h3 { margin-bottom: 14px; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem); letter-spacing: -0.035em; }
.floor p { max-width: 62ch; color: var(--muted); }
.floor p + p { margin-top: 14px; }
/* The floor being read is lit; the rest step back slightly */
@media (min-width: 961px) {
  .floor > div:last-child { transition: opacity 0.6s var(--ease-out); }
  .story.is-reading .floor:not(.is-current) > div:last-child { opacity: 0.5; }
}

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .tower { display: none; }
}
@media (max-width: 640px) {
  .floor { grid-template-columns: 1fr; gap: 12px; padding-left: 22px; border-top: 0; }
  .floor::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-strong);
  }
  .floor::after {
    content: "";
    position: absolute;
    left: -4px;
    top: clamp(34px, 4vw, 52px);
    width: 9px;
    height: 9px;
    background: var(--brand);
  }
  .floor:first-child::after { top: 0; }
  .floor-meta { flex-direction: row; gap: 10px; align-items: baseline; padding-top: 0; }
}

/* ---------- Tools ---------- */
.tool-tabs {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
/* The active tab's background, which slides between tabs (positioned in main.js) */
.tab-thumb {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: var(--tw, 0);
  height: var(--th, 0);
  border-radius: var(--r-sm);
  background: var(--fg);
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), height 0.6s var(--ease-out);
}
.tool-tabs:not(.has-thumb) .tool-tab[aria-selected="true"] { background: var(--fg); }
.tool-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.4s var(--ease-out);
}
.tool-tab .idx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); transition: color 0.4s; }
.tool-tab:hover { color: var(--fg); }
.tool-tab[aria-selected="true"] { color: var(--bg); }
/* The active tab sits on an ink-coloured thumb, so its number takes the opposite shade of yellow */
.tool-tab[aria-selected="true"] .idx { color: #8a6c00; }
[data-theme="light"] .tool-tab[aria-selected="true"] .idx { color: var(--brand); }

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(22px, 3.5vw, 48px);
}
.tool-panel[hidden] { display: none; }
.tool-panel.is-entering > * { animation: fadeUp 0.8s var(--ease-out) both; }
.tool-panel.is-entering > :nth-child(2) { animation-delay: 90ms; }
.tool-panel.is-entering > :nth-child(3) { animation-delay: 180ms; }

.tool-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.tool-name { font-size: clamp(2.6rem, 1.3rem + 4.2vw, 5rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; }
.tool-tagline {
  margin-top: -8px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--accent);
}

.ps { display: grid; gap: 18px; width: 100%; }
.ps > div { padding-left: 16px; border-left: 1px solid var(--line-strong); }
.ps > div:last-child { border-left: 2px solid var(--brand); }
.ps .k {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.ps p { color: var(--muted); }
.ps > div:last-child p { color: var(--fg); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tool-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.frame-bar .rec { flex: none; width: 6px; height: 6px; background: var(--brand); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.frame-bar span {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--faint);
}
.frame-body {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background-image: repeating-linear-gradient(-45deg, var(--line) 0 1px, transparent 1px 12px);
}
.frame-body img, .frame-body video { width: 100%; height: 100%; object-fit: cover; }
.frame-body--video { aspect-ratio: 16 / 9; background: #0d1a3a; }
.frame-body--video video { object-fit: contain; }
.frame-body .crn { inset: 14px; }
/* Keep the lower brackets clear of the video player's controls */
.frame-body--video .crn { inset: 14px 14px 58px; }
.frame-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 30ch;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  color: var(--faint);
}
.frame-ph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.stat { min-width: 0; padding: 18px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 1.05rem + 1.1vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.stat > span { display: block; margin-top: 10px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }

/* "How it works": four steps across the full width of the panel */
.tool-steps {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.tool-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tool-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  overflow: hidden;
  transition: border-color 0.3s;
}
.tool-steps li:hover { border-color: var(--line-strong); }
/* A bar along the top of each step fills in sequence, 01 to 04 */
.tool-steps li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.is-in .tool-panel.is-entering .tool-steps li::before {
  animation: fill 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--n, 0) * 220ms + 350ms);
}
@keyframes fill { to { transform: none; } }
.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.step-head b { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--accent); }
.step-who {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.tool-steps li p { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

@media (max-width: 1100px) {
  .tool-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tool-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tool-steps ol { grid-template-columns: 1fr; gap: 8px; }
  .tool-steps li { padding: 16px; }
}
@media (max-width: 640px) {
  .tool-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tool-tab { padding: 0 12px; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat > span { margin-top: 0; text-align: right; }
}

/* ---------- Founder ---------- */
.founder-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 64px);
}
.founder-intro p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.founder-intro p:last-child { align-self: end; color: var(--muted); }

.focus-lead { margin-top: clamp(48px, 6vw, 80px); margin-bottom: 20px; }
.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: clamp(24px, 2.6vw, 34px);
  transition: border-color 0.3s, translate 0.7s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); translate: 0 -4px; }
.card .num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); }
.card h3 { margin: 40px 0 12px; font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem); letter-spacing: -0.03em; line-height: 1.15; }
.card p { font-size: 0.98rem; color: var(--muted); }

.statement {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin: clamp(48px, 7vw, 96px) 0;
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--r-lg);
  background: var(--brand);
  color: var(--on-brand);
  overflow: hidden;
}
/* Hazard-tape edge: a quiet nod to the site */
.statement::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, rgba(20, 22, 25, 0.85) 0 10px, transparent 10px 20px);
  opacity: 0.18;
}
.statement .q { font-family: var(--font-display); font-size: clamp(3.5rem, 2rem + 4vw, 6rem); font-weight: 700; line-height: 0.75; }
.statement p {
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.field { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line-strong); min-width: 0; }
.field h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.field > p { color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list li { position: relative; padding-left: 22px; color: var(--muted); }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 960px) {
  .founder-intro, .focus, .fields { grid-template-columns: 1fr; }
  .card h3 { margin-top: 20px; }
}
@media (max-width: 560px) {
  .statement { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Ventures ---------- */
.ventures { display: flex; flex-direction: column; gap: 16px; }
.venture {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3.5vw, 48px);
}
.venture-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.venture-aside .num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); }
.venture h3 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); letter-spacing: -0.04em; }
.venture-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.venture-summary { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; }
.venture dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}
.venture dt, .venture dd { padding-block: 16px; border-bottom: 1px solid var(--line); }
.venture dt {
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.venture dd { margin: 0; color: var(--muted); }
.venture dl > :nth-last-child(-n + 2) { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 860px) {
  .venture { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .venture dl { grid-template-columns: 1fr; }
  .venture dt { padding-bottom: 0; border-bottom: 0; }
  .venture dd { padding-top: 6px; }
  .venture dl > dt:nth-last-child(2) { padding-bottom: 0; }
}

/* ---------- Journey ---------- */
.years { display: flex; flex-direction: column; }
.year {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.year:last-child { border-bottom: 1px solid var(--line); }
.year-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.year-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.year-num { font-size: clamp(3.5rem, 1.5rem + 6vw, 7rem); }
.year-count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.year ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.year li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  transition: color 0.25s;
}
.year li:hover { color: var(--fg); }
.year li:first-child { padding-top: 0; }
.year li:last-child { padding-bottom: 0; border-bottom: 0; }
.year li .n { padding-top: 0.3em; font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); }

@media (max-width: 760px) {
  .year { grid-template-columns: 1fr; }
  .year-head { position: static; flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* Proof links under a journey line */
.proofs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.proof {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 11px 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.proof:hover { color: var(--fg); border-color: var(--brand); background: var(--hover); }
.proof svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.proof .i-play { fill: var(--accent); stroke: none; }

/* ---------- In pictures ---------- */
.gallery { margin-top: clamp(56px, 7vw, 96px); }
.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 16vw, 220px);
  gap: 12px;
}
.shot--wide { grid-column: span 2; }
.shot--tall { grid-row: span 2; }
.shot > button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: zoom-in;
}
/* Tiles open like shutters, one after another */
.shot:not(.shot--intro) {
  clip-path: inset(0 0 100% 0 round var(--r-md));
  transition: clip-path 1.1s var(--ease-in-out);
  transition-delay: calc(var(--k, 0) * 70ms);
}
.gallery.is-in .shot { clip-path: inset(0 0 0 0 round var(--r-md)); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease-out), filter 0.6s; }
.shot > button:hover img { scale: 1.05; }
.shot-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 14px 12px;
  background: linear-gradient(to top, rgba(12, 13, 15, 0.9), rgba(12, 13, 15, 0));
  color: #f4f1ec;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
  transition: translate 0.6s var(--ease-out);
}
.shot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 4px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shot-badge svg { width: 11px; height: 11px; fill: currentColor; }
.shot > button .crn i { opacity: 0; transition: opacity 0.4s, translate 0.6s var(--ease-out); }
.shot > button:hover .crn i, .shot > button:focus-visible .crn i { opacity: 1; }
.shot--intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.shot--intro .eyebrow { margin-bottom: auto; }
.shot--intro h3 { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem); letter-spacing: -0.035em; }
.shot--intro p { font-size: 0.88rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; grid-auto-flow: dense; gap: 8px; }
  .shot--intro, .shots > :last-child { grid-column: span 2; }
  .shot-cap { padding: 32px 10px 9px; font-size: 0.74rem; }
}

/* ---------- On the record ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
}
.quote .q {
  height: 0.42em;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.75;
  color: var(--brand);
}
.quote blockquote { flex: 1; margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.quote figcaption > span { display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.quote figcaption strong { font-size: 0.98rem; font-weight: 600; color: var(--fg); }

.certs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: clamp(56px, 7vw, 88px) 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.certs-head h3 { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem); letter-spacing: -0.035em; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.certs > li { display: flex; }
.cert {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  transition: translate 0.6s var(--ease-out), border-color 0.3s;
}
.cert:hover { translate: 0 -4px; border-color: var(--line-strong); }
.cert-paper {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 4%, var(--bg-2));
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1px);
  background-size: 14px 14px;
}
/* Centred and fitted inside the frame, whatever the paper's orientation */
.cert-paper img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 36px);
  max-height: calc(100% - 36px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.7s var(--ease-out);
}
.cert:hover .cert-paper img { transform: scale(1.035) rotate(-0.6deg); }
.cert-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.cert-issuer { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cert-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.cert-meta { font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.cert-date { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .certs { grid-template-columns: 1fr; gap: 10px; }
  .cert { flex-direction: row; }
  .cert-paper { flex: none; width: 38%; aspect-ratio: 1; border-bottom: 0; border-right: 1px solid var(--line); }
  .cert-paper img { max-width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .cert-body { padding: 14px 16px; }
  .cert-title { font-size: 1rem; }
}

/* ---------- Vision ---------- */
.vision { isolation: isolate; overflow: clip; }
.vision-glow {
  position: absolute;
  z-index: -1;
  left: -22%;
  top: 50%;
  width: min(820px, 120vw);
  transform: translateY(-50%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--glow) / 0.08), transparent 62%);
  pointer-events: none;
}
.vision-statement {
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
  font-size: clamp(2.3rem, 1rem + 4.8vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.vision-statement em { font-style: normal; color: var(--accent); }
.vision-body {
  max-width: 60ch;
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
}

/* ---------- Right now ---------- */
.now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.now-card { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: clamp(24px, 3vw, 40px); }
.now-card p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
@media (max-width: 760px) {
  .now { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.wordmark {
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-size: clamp(3rem, 0.5rem + 10.5vw, 11.5rem);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-row a { text-decoration: none; transition: color 0.2s; }
.footer-row a:hover { color: var(--accent); }

/* ==========================================================================
   Viewer (photos, videos, certificates). Always dark, like a lightbox.
   ========================================================================== */
.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top, 0px)) var(--gutter) max(14px, env(safe-area-inset-bottom, 0px));
  border: 0;
  background: rgba(12, 13, 15, 0.95);
  color: #f4f1ec;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  animation: viewerIn 0.35s var(--ease-out);
}
.viewer::backdrop { background: transparent; }
html:has(.viewer[open]) { overflow: hidden; }
@keyframes viewerIn { from { opacity: 0; } }
@keyframes stageIn { from { opacity: 0; transform: scale(0.97); } }

.viewer [hidden] { display: none !important; }
.viewer-bar { display: flex; align-items: center; gap: 10px; }
.viewer-count {
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
}
.viewer .icon-btn { border-color: rgba(244, 241, 236, 0.25); color: #f4f1ec; }
.viewer .icon-btn:hover { background: rgba(244, 241, 236, 0.1); border-color: #f4f1ec; }
.viewer .btn { --btn-fg: #f4f1ec; --btn-bd: rgba(244, 241, 236, 0.25); --btn-hover: rgba(244, 241, 236, 0.12); }
.viewer .btn:hover { border-color: #f4f1ec; }
.viewer-stage { position: relative; min-height: 0; }
.viewer-stage img, .viewer-stage video {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  animation: stageIn 0.5s var(--ease-out);
}
.viewer-foot {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}
.viewer-foot [data-viewer-step="1"] { grid-column: 3; }
.viewer-caption {
  grid-column: 2;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(244, 241, 236, 0.85);
}

/* ==========================================================================
   Scroll-linked motion, where the browser supports it.
   Everything here is decoration: without it the page reads the same.
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The hero eases up and dims as it scrolls away (side-by-side layout only: stacked, it is taller than the screen) */
    @media (min-width: 961px) {
      .hero-grid {
        animation: heroOut linear both;
        animation-timeline: scroll(root);
        animation-range: 0 90vh;
      }
    }
    @keyframes heroOut { to { transform: translateY(-6vh); opacity: 0.3; } }

    /* Photos drift inside their tiles */
    .shot img {
      animation: drift-y linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    @keyframes drift-y {
      from { transform: translateY(-6%) scale(1.14); }
      to { transform: translateY(6%) scale(1.14); }
    }

    /* The vision statement lights up word by word as it is read */
    .vision-statement { view-timeline-name: --vision; }
    .vision-statement .vw {
      animation: lit linear both;
      animation-timeline: --vision;
      animation-range: cover calc(12% + var(--k) * 2.4%) cover calc(18% + var(--k) * 2.4%);
    }
    @keyframes lit { from { opacity: 0.18; } to { opacity: 1; } }
  }
}

/* Theme switch: the new theme opens as a circle from the toggle (main.js drives it) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ==========================================================================
   Motion preferences + print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .shot:not(.shot--intro) { clip-path: none; }
}

@media print {
  .site-header, .rail, .drawer, .progress, .scroll-cue, .ticker, .tool-tabs, .tower, .hero-glow, .vision-glow, .viewer, .proofs, .btn--play, .crn { display: none !important; }
  .tool-panel[hidden] { display: grid !important; }
  .tool-panel { break-inside: avoid; margin-bottom: 16px; }
  .reveal, .fade-up, .split .w > span, .glance-row { opacity: 1 !important; transform: none !important; animation: none !important; }
  .shot:not(.shot--intro) { clip-path: none !important; }
  .story { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}
