/* the designer kush — portfolio
   Direction C2: paper ground, navy ink, coral detail, with navy sections.
   Instrument Serif (Google Fonts, loaded in the page head) is the display serif; Geist carries body and UI text. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F2EDE4;      /* page ground */
  --ink: #0A3252;        /* navy text, 11:1 on paper */
  --muted: #4A5868;      /* secondary text, 6:1 on paper */
  --stone: rgba(10, 50, 82, .18); /* hairlines */
  --navy: #0A3252;       /* behind images */
  --coral: #C2473B;      /* accent; 4.9:1 on paper */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, sans-serif;
  --gutter: clamp(16px, 3.5vw, 56px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Navy sections re-point the same tokens, so every component works on either ground */
.on-navy {
  --paper: #0A3252;
  --ink: #F2958A;        /* soft coral, 5.5:1 on navy */
  --muted: #D0877D;      /* 4.7:1 on navy */
  --stone: rgba(225, 101, 89, .32);
  --coral: #E16559;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: #F2EDE4; }
:focus-visible { outline: 1px solid var(--coral); outline-offset: 4px; }

.meta { font-family: var(--sans); font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--gutter); }
.brandmark { font-family: var(--serif); letter-spacing: -.05em; }
.brandmark em { font-style: italic; color: var(--coral); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: var(--paper); color: var(--ink); font-size: 15px;
  border-bottom: 1px solid var(--stone);
  transition: transform .6s var(--ease), background-color .4s ease, border-color .4s ease;
}
.site-header.away { transform: translateY(-110%); }
.site-header .brand { justify-self: start; font-size: 22px; line-height: 1; transition: opacity .3s ease; }
.site-header nav { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.site-header .talk { justify-self: end; }
.site-header nav a, .site-header .talk { position: relative; }
.site-header nav a::after, .site-header .talk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.site-header nav a:hover::after, .site-header .talk:hover::after { transform: scaleX(1); transform-origin: left; }
/* On the home page the hero carries its own nav, so the header waits above until the hero is covered */
.site-header.over-hero { transform: translateY(-110%); }

/* Hero (Figma "HEADER KUSH V1"): full-bleed showreel under a gentle 20% shade and the grid,
   Instrument Serif title, coral nav and call to action. Positions follow the Figma frame. */
.hero-track { position: relative; }
/* A shorter header (about three-quarters of the screen) so the About band shows on the first screen */
.hero-pin { position: relative; height: clamp(572px, 42vw, 1056px); overflow: hidden; background: var(--navy); color: #F2EDE4; }
.hero-bg { position: absolute; inset: 0; transform-origin: 50% 45%; will-change: transform; }
.hero-bg video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(3, 20, 34, .2); }
/* Glass (Figma Rectangle 34627297): 60% #1D1D1D tint with the Glass effect —
   frost softened to a 5px backdrop blur; Light −45° at 80% → sheen and edge highlight from the top-left.
   Refraction, dispersion and splay have no cheap CSS equivalent. */
.hero-glass {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 28%, rgba(255, 255, 255, 0) 55%),
    rgba(29, 29, 29, .6);
  -webkit-backdrop-filter: blur(5px) saturate(1.1);
  backdrop-filter: blur(5px) saturate(1.1);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .8);
}
/* Soft shadow keeps text legible on bright frames without raising the 20% overlay */
.hero-pin [data-hero-fade], .hero-word { text-shadow: 0 1px 2px rgba(3, 20, 34, .35), 0 2px 24px rgba(3, 20, 34, .45); }
.hero-grid { position: absolute; left: -5%; top: -1%; width: 110%; height: 94%; max-width: none; mix-blend-mode: overlay; pointer-events: none; }

/* Positions follow the Figma frame "HEADER KUSH V1" */
.hero-split { position: absolute; left: 7.5%; top: 7%; font-size: clamp(12px, 1.1vw, 20px); line-height: 1.3; color: #F2EDE4; }
.hero-split p { margin: 0; }
.hero-nav {
  position: absolute; right: 4.8%; top: 6%; display: flex; gap: clamp(18px, 2.6vw, 56px);
  font-family: var(--serif); font-size: clamp(17px, 1.55vw, 30px); line-height: 1; letter-spacing: -.02em;
}
.hero-nav a, .hero-pick { color: #E26354; }
.hero-nav a:hover { color: #FFFFFF; }

.hero-word {
  position: absolute; left: 7.5%; top: 41%; margin: 0; white-space: nowrap;
  font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.8vw, 172px); line-height: .9; letter-spacing: -.075em;
  color: #FFFFFF; will-change: transform;
}

/* beep boop picker: a one-line window; the list slides so the chosen link sits on the line,
   the links after it wait underneath, the ones before it slip out above */
.hero-pick {
  --row: 1.25em;
  position: absolute; left: 53.8%; top: 56%; display: flex; align-items: flex-start; gap: .28em;
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 40px); line-height: var(--row); letter-spacing: -.02em;
}
.hero-pick-lead { white-space: nowrap; }
.hero-pick-window { position: relative; display: block; height: calc(var(--row) * 3); overflow: hidden; margin-top: 0; }
.hero-pick-list {
  list-style: none; margin: 0; padding: 0;
  transform: translateY(calc(var(--at, 0) * var(--row) * -1)); transition: transform .7s var(--ease);
}
.hero-pick-list li { height: var(--row); }
.hero-pick-list a {
  display: inline-block; color: inherit; opacity: .9;
  font-size: 1.08em; line-height: var(--row);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .12em) / 0 1px no-repeat;
  transition: opacity .5s ease, background-size .5s var(--ease), color .3s ease;
}
.hero-pick-list li.is-before a { opacity: 0; }
.hero-pick-list li.is-active a { opacity: 1; background-size: 100% 1px; }
.hero-pick-list a:hover, .hero-pick-list a:focus-visible { color: #FFFFFF; }

/* Load-in: title letters rise, the rest fades in. A backwards-filled animation (not a transition)
   so scroll can set opacity freely afterwards. */
.has-motion .hero-word .ch { display: inline-block; opacity: 0; transform: translateY(.3em); }
.has-motion.ready .hero-word .ch { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i) * 30ms + 200ms); }
.has-motion:not(.ready) [data-hero-fade] { visibility: hidden; }
.has-motion.ready [data-hero-fade] { animation: hero-fade 1s ease .5s backwards; }
@keyframes hero-fade { from { opacity: 0; } }

/* About band (navy) — follows straight after the hero */
.about-band { position: relative; z-index: 2; padding: clamp(64px, 7vw, 108px) var(--gutter) clamp(80px, 8vw, 120px); }
.band-head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--stone);
}
.band-head h2 { margin: 0; font-weight: 400; }
.statement {
  margin: 0; max-width: 1180px; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -.045em;
  text-indent: 22%;
}
.statement em { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; color: var(--coral); }
.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.capabilities > div { border-top: 1px solid var(--stone); padding-top: 16px; }
.capabilities h3 { margin: 10px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.capabilities p { margin: 0; color: var(--muted); font-size: 15px; }

/* Section heads */
.section { padding: clamp(96px, 11vw, 160px) var(--gutter) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }

/* Works: pinned stage (Huy Phan) with Fuel focus-window cards */
.works { padding-top: clamp(96px, 10vw, 160px); }
.works-head { margin-inline: var(--gutter); }
.fuel { position: relative; overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; }
.fuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fuel .blur { filter: blur(22px) saturate(1.1); transform: scale(1.18); }
.fuel .sharp { clip-path: inset(12% 9% 12% 9%); transition: clip-path 1s var(--ease); }
.fuel:hover .sharp, a:focus-visible .fuel .sharp { clip-path: inset(0 0 0 0); }

.works-cards { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.works-cards li:nth-child(3n + 2) { margin-top: 64px; }
.works-cards li:nth-child(3n + 3) { margin-top: 128px; }
.works-cards a { display: block; }
.works-cards .fuel { aspect-ratio: 4 / 5; }
.works-cards .cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; align-items: baseline; }
.works-cards .t { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; }
.works-cards a:hover .t { font-style: italic; }

.works-stage { display: none; }
@media (min-width: 900px) {
  .has-motion .works-cards { display: none; }
  .has-motion .works-stage {
    position: relative; display: grid; height: 100vh;
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  }
}
.stage-info { grid-column: 1 / span 3; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: 28px; }
.stage-info dl { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; }
.stage-info dt { font-size: 13px; color: var(--muted); }
.stage-info dd { margin: 0; font-size: 17px; line-height: 1.3; }
.stage-link { display: inline-flex; gap: 10px; align-self: flex-start; padding-bottom: 5px; border-bottom: 1px solid var(--coral); }
.stage-link span { transition: transform .4s var(--ease); }
.stage-link:hover span { transform: translateX(6px); }
.stage-media { grid-column: 4 / span 5; grid-row: 1; align-self: center; position: relative; aspect-ratio: 4 / 3; }
.stage-media > a { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.stage-media > a.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.stage-media .fuel { height: 100%; aspect-ratio: auto; }
.stage-media a .sharp { clip-path: inset(50% 50% 50% 50%); }
.stage-media a.on .sharp { clip-path: inset(12% 9% 12% 9%); transition-delay: .1s; }
.stage-media a.on:hover .sharp { clip-path: inset(0 0 0 0); transition-delay: 0s; }
.stage-list {
  grid-column: 9 / span 4; grid-row: 1; list-style: none; margin: 0; padding: 0; align-self: stretch;
  position: relative; overflow: hidden;
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.stage-list-inner { position: absolute; left: 0; right: 0; top: 50%; transition: transform .8s var(--ease); }
.stage-list li { padding: 14px 0; text-align: center; opacity: .3; transition: opacity .5s var(--ease); }
.stage-list li.on { opacity: 1; }
.stage-list button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.stage-list .lt { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.stage-list li.on .lt { font-style: italic; }
.stage-list .ld { display: none; max-width: 300px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.stage-list li.on .ld { display: block; }
.stage-list button:focus-visible { outline: 1px solid var(--coral); outline-offset: 4px; }
.stage-count { position: absolute; left: var(--gutter); bottom: 32px; display: flex; flex-direction: column; gap: 6px; }
.count-row { display: flex; align-items: flex-start; gap: 10px; }
.count-num { display: block; height: 10vw; overflow: hidden; font-family: var(--serif); font-weight: 200; color: var(--coral); font-size: 8.2vw; letter-spacing: -.03em; }
.count-reel { display: flex; flex-direction: column; transition: transform .8s var(--ease); }
.count-reel span { display: block; height: 10vw; line-height: 10vw; }
.count-total { margin-top: 10px; color: var(--muted); }

/* Experience & press */
.experience { list-style: none; margin: 0; padding: 0; }
.experience li {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 140px; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--stone);
}
.experience .role { font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.experience .when { text-align: right; }
.press { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.press a { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-top: 1px solid var(--stone); }
.press .name { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.press a:hover .name { font-style: italic; }
.press .arrow { display: inline-block; transition: transform .4s var(--ease); }
.press a:hover .arrow { transform: translate(4px, -4px); }

/* Footer / contact (navy) */
.contact { margin-top: clamp(120px, 14vw, 200px); padding: clamp(96px, 10vw, 140px) var(--gutter) 28px; }
.contact h2 {
  margin: 0 0 40px; font-family: var(--serif); font-weight: 200; color: var(--coral);
  font-size: clamp(48px, 7.4vw, 120px); line-height: .92; letter-spacing: -.035em;
}
.contact h2 em { font-weight: 400; font-style: italic; }
.contact .mail {
  display: inline-flex; align-items: center; gap: 14px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em;
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 1px; text-underline-offset: 8px;
}
.contact .mail svg { transition: transform .4s var(--ease); }
.contact .mail:hover svg { transform: translateX(6px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; font-size: 15px; }
.contact-links a:hover { color: var(--coral); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(80px, 10vw, 140px); padding-top: 16px; border-top: 1px solid var(--stone); }

/* Project template: giant title, cover, marquee, split overview, chapters, grid, more work.
   Sections carry data-theme; with motion the page ground shifts colour as each one arrives. */
.frame { position: relative; overflow: hidden; background: var(--navy); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

[data-theme="blush"] { --paper: #EFD3C9; --ink: #0A3252; --muted: #4A5868; --stone: rgba(10, 50, 82, .2); --coral: #B23F34; }
[data-theme="navy"] { --paper: #0A3252; --ink: #F2958A; --muted: #D0877D; --stone: rgba(225, 101, 89, .32); --coral: #E16559; }
[data-theme] { background: var(--paper); color: var(--ink); }
/* With motion, sections go see-through and the body carries the colour, so it can glide between them */
.has-motion .cs [data-theme] {
  --paper: inherit; --ink: inherit; --muted: inherit; --stone: inherit; --coral: inherit;
  background: transparent; color: inherit;
}
.has-motion body.cs-page { transition: background-color .8s ease, color .8s ease; }
.has-motion body.cs-page .site-header { transition: transform .6s var(--ease), background-color .8s ease, color .8s ease, border-color .8s ease; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.cs-hero { padding: calc(var(--header-h) + clamp(20px, 3vw, 40px)) var(--gutter) 0; }
.cs-title {
  margin: 0; font-weight: 500; line-height: .84; letter-spacing: -.065em; white-space: nowrap;
  font-size: clamp(64px, 15vw, 280px); /* JS fits it to the full width */
}
.cs-title span { display: inline-block; padding-right: .04em; }
.cs-sub { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 16px; }

.cs-cover { position: relative; margin: 0 var(--gutter); height: min(80vh, 58vw); overflow: hidden; background: var(--navy); }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-cover::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(4, 18, 30, .7)); pointer-events: none; }
.cs-cover-cap {
  position: absolute; z-index: 1; left: 50%; bottom: clamp(24px, 5vw, 56px); transform: translateX(-50%);
  width: min(560px, 86%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #F2EDE4;
}
.cs-cover-cap .pill { align-self: center; }
.cs-cover-cap p { margin: 0; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.4; }

.cs-marquee { overflow: hidden; background: #0A3252; color: #F2958A; border-block: 1px solid rgba(225, 101, 89, .25); }
.cs-marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.cs-marquee-track span { display: inline-flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); padding: 16px clamp(10px, 1.2vw, 18px); white-space: nowrap; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: -.03em; }
.cs-marquee-track b { color: #E16559; font-weight: 400; font-size: 1.3em; line-height: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.cs-section { padding: clamp(80px, 9vw, 140px) var(--gutter); }
.cs-overview { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ov-left { grid-column: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.ov-left .lead { display: flex; flex-direction: column; gap: 22px; }
.ov-left h2 { margin: 0; font-size: clamp(28px, 2.7vw, 42px); font-weight: 500; line-height: 1.04; letter-spacing: -.05em; }
.ov-left .foot { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 340px; }
.ov-media { grid-column: 5 / span 4; aspect-ratio: 3 / 4; }
.ov-list { grid-column: 10 / span 3; align-self: end; }
.ov-list h3 { margin: 0 0 14px; font-size: 22px; font-weight: 500; letter-spacing: -.04em; }
.ov-list dl { margin: 0; }
.ov-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.ov-list dt { font-size: 15px; }
.ov-list dd { margin: 0; font-size: 13px; color: var(--muted); text-align: right; }

.cs-chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--stone); }
.cs-chapter:first-of-type { border-top: 0; }
.cs-chapter .num { grid-column: 1 / span 2; font-size: 13px; color: var(--muted); }
.cs-chapter .pill { grid-column: 3 / span 3; }
.cs-chapter .text { grid-column: 6 / span 7; }
.cs-chapter .text p { margin: 0 0 1em; font-size: 17px; line-height: 1.65; letter-spacing: -.005em; }
.cs-chapter .text p:first-child { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.2; letter-spacing: -.04em; }
.cs-chapter .text p:last-child { margin-bottom: 0; }

.cs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); row-gap: clamp(40px, 6vw, 96px); align-items: start; }
.cs-grid figure { margin: 0; }
.cs-grid figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.cs-grid .g0 { grid-column: 1 / span 7; }
.cs-grid .g0 .frame { aspect-ratio: 4 / 3; }
.cs-grid .g1 { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.cs-grid .g1 .frame { aspect-ratio: 3 / 4; }
.cs-grid .g2 { grid-column: 3 / span 5; }
.cs-grid .g2 .frame { aspect-ratio: 1 / 1; }
.cs-grid .g3 { grid-column: 8 / span 5; margin-top: clamp(40px, 8vw, 140px); }
.cs-grid .g3 .frame { aspect-ratio: 4 / 5; }
.cs-grid .solo { grid-column: 2 / span 10; }
.cs-grid .solo .frame { aspect-ratio: 16 / 9; }

.cs-more { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(40px, 5vw, 64px); }
.cs-more .side { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.cs-more .side p { margin: 0; font-size: 15px; color: var(--muted); }
.cs-more blockquote { grid-column: 5 / span 8; margin: 0; font-size: clamp(30px, 3.4vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -.05em; }
.cs-more blockquote em { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; color: var(--coral); }
.cs-more .arrows { grid-column: 5 / span 8; display: flex; gap: 10px; }
.arrow-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--stone); border-radius: 50%; transition: background-color .3s ease, color .3s ease;
}
.arrow-btn:hover { background: var(--ink); color: var(--paper); }
.arrow-btn:focus-visible { outline: 1px solid var(--coral); outline-offset: 3px; }
.cs-rail {
  grid-column: 1 / -1; display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter); /* snapped cards line up with the page margin */
}
.cs-rail::-webkit-scrollbar { display: none; }
.cs-rail a { flex: 0 0 clamp(220px, 23vw, 340px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.cs-rail .frame { aspect-ratio: 4 / 5; }
.cs-rail .frame img { transition: transform 1.2s var(--ease); }
.cs-rail a:hover .frame img { transform: scale(1.04); }
.cs-rail .t { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.cs-rail a:hover .t { font-style: italic; }

.next { display: block; padding: clamp(80px, 9vw, 140px) var(--gutter); }
.next .label { margin-bottom: 14px; }
.next .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--ink); padding-top: 18px; }
.next .title { font-weight: 500; font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.06em; }
.next:hover .title { color: var(--coral); }
.next .arrow { flex: none; transition: transform .5s var(--ease); }
.next:hover .arrow { transform: translateX(10px); }

/* Cursor label for image links (fine pointers only) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--ink); color: #F2EDE4; font-size: 12px; text-align: center;
  opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.cursor.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Page fade */
body { animation: page-in .9s var(--ease) both; }
body.leaving { animation: page-out .32s ease forwards; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-out { to { opacity: 0; } }

/* Reveal (only when JS + GSAP are running) */
.has-motion [data-reveal] { opacity: 0; transform: translateY(28px); }

/* Responsive */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .talk { display: none; }
  .hero-split { left: var(--gutter); top: 64px; }
  .hero-nav { right: var(--gutter); top: 22px; gap: 16px; }
  .hero-word { left: var(--gutter); top: 34%; font-size: 15.5vw; }
  .hero-pick { left: var(--gutter); top: 54%; flex-direction: column; gap: .1em; font-size: 26px; }
  .hero-grid { opacity: .45; } /* the grid stretches on tall screens; keep it a whisper */
  .statement { text-indent: 12%; }
  .capabilities, .press { grid-template-columns: 1fr; }
  .works-cards { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .works-cards li:nth-child(n) { margin-top: 0; }
  .works-cards .fuel { aspect-ratio: 4 / 3; }
  .experience li { grid-template-columns: 1fr auto; }
  .experience .org { grid-column: 1 / -1; grid-row: 2; }
  .cs-cover { height: 62vh; }
  .ov-left, .ov-media, .ov-list { grid-column: 1 / -1; }
  .ov-media { aspect-ratio: 4 / 5; }
  .cs-chapter .num, .cs-chapter .pill, .cs-chapter .text { grid-column: 1 / -1; }
  .cs-grid figure, .cs-grid .solo { grid-column: 1 / -1; margin-top: 0; }
  .cs-grid .g1, .cs-grid .g3 { grid-column: 3 / -1; }
  .cs-more .side, .cs-more blockquote, .cs-more .arrows { grid-column: 1 / -1; }
  .cs-rail a { flex-basis: 68vw; }
  .cursor { display: none; }
}
@media (max-width: 560px) {
  .site-header nav { gap: 14px; font-size: 14px; }
  .site-header .brand { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Research / Diary placeholders */
.soon { min-height: 80svh; padding: calc(var(--header-h) + clamp(60px, 10vw, 160px)) var(--gutter) clamp(60px, 8vw, 120px); }
.soon h1 { margin: .2em 0 .25em; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 14vw, 240px); line-height: .9; letter-spacing: -.05em; }
.soon-line { max-width: 34ch; font-size: clamp(18px, 1.6vw, 24px); color: var(--muted); }
.soon-back { display: inline-block; margin-top: 2.5em; color: var(--coral); }

/* ===== HEADER V2 — clean, minimal (index-v2.html). Header v1 is the showreel hero in index.html ===== */
.v2 { --v2-gap: 4px; }
.v2-bar {
  grid-template-columns: repeat(4, 1fr); column-gap: var(--v2-gap);
  font-size: 13px; letter-spacing: -.005em; border-bottom-color: transparent;
}
.v2-bar.scrolled { border-bottom-color: var(--stone); }
.v2-brand span { margin-left: .15em; color: var(--coral); }
.v2-bar nav { gap: 14px; }
.v2-bar nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.v2-bar nav a::after { display: none; }
.v2-mail { justify-self: end; }
.v2-bar a:hover { color: var(--coral); }

.v2-hero {
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--v2-gap); align-items: start;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 110px)) var(--gutter) clamp(48px, 6vw, 96px);
}
.v2-title {
  grid-column: 1 / 3; margin: 0; white-space: nowrap;
  font-family: var(--sans); font-weight: 500; font-size: clamp(44px, 5.6vw, 116px); line-height: .9; letter-spacing: -.055em;
}
.v2-deg { display: inline-block; margin-left: .06em; font-size: .62em; vertical-align: .55em; color: var(--coral); }
.v2-blurb { grid-column: 3; margin: .5em 0 0; max-width: 30ch; font-size: 13px; line-height: 1.45; color: var(--muted); }
.v2-social { grid-column: 4; justify-self: end; display: flex; gap: 18px; margin: .5em 0 0; padding: 0; list-style: none; font-size: 13px; }
.v2-social a:hover { color: var(--coral); }

.v2-works { padding: 0 var(--gutter) clamp(80px, 9vw, 140px); }
.v2-works-head {
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--v2-gap); align-items: baseline;
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
.v2-works-head h2 { grid-column: 1 / 3; margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 2.1vw, 34px); letter-spacing: -.035em; }
.v2-works-head sup { margin-left: .1em; font-size: .4em; font-weight: 400; letter-spacing: 0; vertical-align: 1.4em; }
.v2-views { grid-column: 3 / 5; display: grid; grid-template-columns: 1fr 1fr 1fr auto; }
.v2-views button {
  justify-self: start; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 clamp(22px, 2.1vw, 34px)/1 var(--sans); letter-spacing: -.035em; color: var(--ink); opacity: .3;
  transition: opacity .3s ease;
}
.v2-views button:nth-child(3) { justify-self: start; }
.v2-views button:last-child { justify-self: end; }
.v2-views button:hover { opacity: .65; }
.v2-views button[aria-pressed="true"] { opacity: 1; }

/* The list of work, four layouts */
.v2-list { display: grid; gap: var(--v2-gap); margin: 0; padding: 0; list-style: none; }
.v2-list a { position: relative; display: block; color: inherit; }
.v2-list figure { position: relative; margin: 0; overflow: hidden; background: var(--stone); }
.v2-list img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s ease; }
.v2-list a:hover img { transform: scale(1.035); }
.v2-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 13px; }
.v2-cap .t { color: var(--ink); }
.v2-cap .m { color: var(--muted); text-align: right; }
.v2-cap .s { display: none; }

/* Grid: four squares, caption on hover */
.v2-list[data-layout="grid"] { grid-template-columns: repeat(4, 1fr); }
.v2-list[data-layout="grid"] figure { aspect-ratio: 1; }
.v2-list[data-layout="grid"] .v2-cap {
  position: absolute; inset: auto 0 0 0; padding: 12px 14px; color: #fff;
  background: linear-gradient(to top, rgba(3, 20, 34, .55), transparent); opacity: 0; transition: opacity .4s ease;
}
.v2-list[data-layout="grid"] .v2-cap .t, .v2-list[data-layout="grid"] .v2-cap .m { color: #fff; }
.v2-list[data-layout="grid"] a:hover .v2-cap, .v2-list[data-layout="grid"] a:focus-visible .v2-cap { opacity: 1; }

/* List: rows with a small thumbnail */
.v2-list[data-layout="list"] { gap: 0; border-top: 1px solid var(--stone); }
.v2-list[data-layout="list"] li { border-bottom: 1px solid var(--stone); }
.v2-list[data-layout="list"] a { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-items: center; padding: 12px 0; }
.v2-list[data-layout="list"] figure { aspect-ratio: 1; }
.v2-list[data-layout="list"] .v2-cap { padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: clamp(16px, 1.4vw, 22px); letter-spacing: -.02em; }
.v2-list[data-layout="list"] .v2-cap .m { text-align: left; }
.v2-list[data-layout="list"] .v2-cap .y { text-align: right; }
.v2-list[data-layout="list"] a:hover .t { color: var(--coral); }

/* Feed: two columns, caption and summary below */
.v2-list[data-layout="feed"] { grid-template-columns: repeat(2, 1fr); column-gap: clamp(16px, 2vw, 28px); row-gap: clamp(40px, 5vw, 72px); }
.v2-list[data-layout="feed"] figure { aspect-ratio: 4 / 3; }
.v2-list[data-layout="feed"] .v2-cap { flex-wrap: wrap; font-size: 15px; }
.v2-list[data-layout="feed"] .v2-cap .s { display: block; flex-basis: 100%; max-width: 52ch; margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Full: one wide frame at a time */
.v2-list[data-layout="full"] { row-gap: clamp(48px, 6vw, 96px); }
.v2-list[data-layout="full"] figure { aspect-ratio: 16 / 9; }
.v2-list[data-layout="full"] .v2-cap { font-size: clamp(16px, 1.4vw, 22px); letter-spacing: -.02em; }

.v2-list .y { display: none; }
.v2-list[data-layout="list"] .y { display: block; }

@media (max-width: 900px) {
  .v2-bar { grid-template-columns: 1fr auto; }
  .v2-role, .v2-mail { display: none; }
  .v2-hero { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .v2-title { grid-column: 1 / -1; font-size: 11.6vw; }
  .v2-blurb { grid-column: 1; }
  .v2-social { grid-column: 2; flex-direction: column; gap: 6px; text-align: right; }
  .v2-works-head { grid-template-columns: 1fr; row-gap: 14px; }
  .v2-works-head h2, .v2-views { grid-column: 1; }
  .v2-views button { font-size: 20px; }
  .v2-list[data-layout="grid"] { grid-template-columns: repeat(2, 1fr); }
  .v2-list[data-layout="grid"] .v2-cap { opacity: 1; font-size: 12px; padding: 10px; }
  .v2-list[data-layout="grid"] .v2-cap .m { display: none; }
  .v2-list[data-layout="feed"] { grid-template-columns: 1fr; }
  .v2-list[data-layout="list"] a { grid-template-columns: 56px 1fr; column-gap: 14px; }
  .v2-list[data-layout="list"] .v2-cap { grid-template-columns: 1fr auto; }
  .v2-list[data-layout="list"] .v2-cap .m { display: none; }
}

/* ===== HEADER V3 — halftone showreel (index.html). v1 lives in index-v1.html, v2 in index-v2.html ===== */
.hero-halftone { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .7; }
.v3 .hero-bg video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
/* The bottom of the halftone spills into the next section, thinning out as it goes */
.hero-leak {
  position: absolute; left: 0; top: 100%; z-index: 3; display: block;
  width: 100%; height: clamp(56px, 6vw, 96px); opacity: .7; pointer-events: none;
  background: linear-gradient(rgba(21, 41, 68, .29), rgba(21, 41, 68, 0)); /* carries the 20% tint down so there is no seam (.29 × .7 ≈ .2) */
}
/* #152944 at 20%, one layer above the halftone */
.hero-tint { position: absolute; inset: 0; background: rgba(21, 41, 68, .2); pointer-events: none; }

/* Glass nav bar */
.hero-bar {
  --bar: clamp(56px, 3.8vw, 80px);
  position: absolute; inset: 0 0 auto 0; z-index: 2; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 2.1vw, 44px);
  font-family: var(--serif); font-size: clamp(18px, 1.9vw, 38px); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), rgba(21, 41, 68, .45);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(242, 237, 228, .14);
}
.v3 .hero-pin .hero-bar { text-shadow: none; }
.v3 .hero-bar a { color: #F2EDE4; transition: color .3s ease; }
.v3 .hero-bar a:hover, .v3 .hero-bar a:focus-visible { color: #E26354; }
.v3 .hero-nav { position: static; gap: clamp(16px, 3.1vw, 64px); font-size: inherit; }

/* Centred title with the mono subheader pinned to its two edges */
.hero-center { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 6%; pointer-events: none; }
.hero-lockup { display: inline-flex; flex-direction: column; pointer-events: auto; }
.v3 .hero-word {
  position: static; font-size: clamp(56px, 6.6vw, 150px); line-height: .9; letter-spacing: -.1em;
  padding-right: .1em; /* the last letter's negative tracking would clip */
}
.hero-sub {
  display: flex; justify-content: space-between; gap: 1.5em; margin: .35em 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600;
  font-size: clamp(11px, .95vw, 20px); line-height: 1.2; letter-spacing: -.09em; color: #F2EDE4;
}
.v3 .hero-pin [data-hero-fade]:not(.hero-bar), .v3 .hero-word { text-shadow: 0 0 2px rgba(10, 50, 82, .7), 0 1px 18px rgba(10, 50, 82, .6); }
@media (max-width: 700px) {
  .hero-bar { font-size: 17px; }
  .v3 .hero-nav { gap: 14px; }
  .v3 .hero-word { font-size: 17vw; }
  .hero-sub { font-size: 11px; flex-direction: column; gap: .2em; }
  .hero-sub span:last-child { align-self: flex-end; }
}
