:root {
  --paper: #f1ede4;
  --paper-2: #e7e1d4;
  --ink: #1b1a17;
  --pencil: #6b675f;
  --sage: #a9b09a;
  --sage-deep: #8c947d;
  --blueprint: #1e3a6e;
  --accent: #ff5a36;

  /* one typeface everywhere: Hanken Grotesk (the Toolkit title font), varied only by weight and case */
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-display: var(--f-body);
  --f-hand: var(--f-body);
  --f-mono: var(--f-body);

  --navy: #1d2440;

  --gutter: clamp(16px, 4vw, 56px);
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--pencil);
  --text: #3a3833;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* read by screen readers, not shown */

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  transition: background-color 0.9s ease, color 0.9s ease;
}
body.is-loading { overflow: hidden; }
/* final chapter: the page turns clean white with black text */
body.is-final { --bg: #ffffff; --fg: var(--ink); --muted: var(--pencil); --text: #3a3833; }

.defs { position: absolute; width: 0; height: 0; }
.mono { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.hand { font-family: var(--f-hand); }
em { font-style: italic; }
h1 em, h2 em, h3 em, h4 em { font-style: normal; }   /* headings stay upright; colour does the contrast */
a { color: inherit; }

/* ---------------- Loader ---------------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  background: var(--paper);
  clip-path: inset(0 0 0 0);
  /* fail-safe: even if a script breaks, the loader never traps the page */
  animation: loader-failsafe 0.4s ease 8s forwards;
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader-name { font-family: var(--f-hand); font-weight: 500; letter-spacing: -0.045em; font-size: clamp(48px, 9vw, 120px); line-height: 1; min-height: 1em; }
.loader-year { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.3em; color: var(--pencil); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
/* header items sit on paper pills so they read over any full-screen stage */
.brand, .chapter-indicator, .header-cta { background: rgba(241,237,228,0.9); color: var(--ink); border-radius: 999px; }
.brand { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-size: 19px; text-decoration: none; padding: 6px 14px; }
.chapter-indicator { padding: 8px 14px; }
.chapter-indicator { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; gap: 8px; }
.chapter-indicator .sep { color: #6b675f; }
.header-cta {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--ink);
}
.header-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------------- Story: full-frame stage with chapters floating over it ---------------- */
.story { position: relative; }
.stage-col { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; }

/* each stage fills the whole screen; the portrait stands on the bottom edge */
.layer { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.layer.is-on { clip-path: inset(0 0 0 0); }
/* layers centre the artwork; an oversized box overflows evenly on both sides */
.layer, .figure-layer {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: flex-start;
  overflow: hidden;
}
.figure-layer { pointer-events: none; }
.art-box {
  --ar: 0.667;              /* set from the image in main.js */
  position: relative; flex: none;
  aspect-ratio: var(--ar);
  /* tall photo: 1.3× screen height, head and torso fill the frame, lower body runs off the bottom */
  width: min(100vw, calc(130svh * var(--ar)));
  will-change: transform;
}
/* wide photo: cover the whole screen edge to edge */
.stage.is-landscape .layer, .stage.is-landscape .figure-layer { align-items: center; }
.stage.is-landscape .art-box { width: max(100vw, calc(100svh * var(--ar))); }
.stage.is-landscape .layer .art-box { mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 60%, transparent 100%); }
.stage.is-landscape .sticker { font-size: clamp(13px, 1.25vw, 22px); padding: 5px 10px 7px; border-width: 3px; }

/* near-square face close-up: whole face fits the screen height, sides fade into paper */
.stage.is-closeup .layer, .stage.is-closeup .figure-layer { align-items: center; }
.stage.is-closeup .art-box { width: min(100vw, calc(100svh * var(--ar))); }
.stage.is-closeup .layer .art-box { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.stage.is-closeup .sticker { font-size: clamp(18px, 2.2vw, 34px); padding: 7px 14px 9px; border-width: 4px; }

.layer .art-box { mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.art { width: 100%; height: 100%; object-fit: cover; display: block; }

.layer-sketch { background: transparent; }
.layer-sketch .art { filter: url(#f-sketch); mix-blend-mode: multiply; }
.layer-ink { background: var(--paper); }
.layer-ink .art { filter: url(#f-ink); }
.layer-blueprint {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.layer-blueprint .art { filter: url(#f-blueprint); }
.layer-final { background: #ffffff; }

/* the pencil/scan line that sweeps up the screen while a new stage is drawn in */
.reveal-edge {
  position: absolute; left: 0; right: 0; height: 3px; top: 100%;
  background: var(--ink); opacity: 0; pointer-events: none;
  box-shadow: 0 0 14px rgba(27,26,23,0.35);
}

.figure-box { pointer-events: none; container-type: inline-size; } /* stickers size against the photo, not the screen */
/* spotlight: wash over the artwork with a clear circle around the newest sticker */
.focus-wash {
  --fx: 50%; --fy: 40%;
  --wash: rgba(241, 237, 228, 0.72);
  --wash-clear: rgba(241, 237, 228, 0);   /* same hue, zero alpha: no murky edge */
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx) var(--fy), var(--wash-clear) 0, var(--wash-clear) 6vmax, var(--wash) 19vmax);
  transition: opacity 0.6s ease;
}
.stage.has-focus .focus-wash { opacity: 1; }
/* timeline reads light-on-dark (like the reference): dark wash on every stage */
.focus-wash { --wash: rgba(255, 255, 255, 0.62); --wash-clear: rgba(255, 255, 255, 0); }

.stage-caption {
  position: fixed; z-index: 45; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 12px; align-items: baseline; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(241,237,228,0.92); color: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.stage-caption.is-on { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.stage-caption .hand { font-size: 20px; color: #4a473f; }

/* ---------------- Stickers ---------------- */
.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  font-family: var(--f-hand); font-weight: 700; font-size: clamp(16px, 1.6vw, 24px); line-height: 1;
  padding: 6px 12px 8px;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
  color: var(--ink);
}
.sticker.dark { color: #fff; }
/* logo stickers: fixed height, width from the logo's ratio; logo fills the die-cut */
.sticker.logo {
  --h: clamp(46px, 5vw, 86px);
  padding: 0; overflow: hidden;
  height: calc(var(--h) * var(--hk, 1)); width: calc(var(--h) * var(--hk, 1) * var(--ar));
  border-radius: 10px; background: var(--sbg, #fff);
}
.sticker.logo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); }
.sticker.logo.pad img { object-fit: contain; padding: 3px 6px; }
.stage.is-landscape .sticker.logo { --h: 3.1cqw; padding: 0; border-width: 3px; }
/* tag band across the bottom of a logo sticker */
.sticker.logo[data-tag]::after {
  content: attr(data-tag); position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--f-mono); font-size: max(10px, calc(var(--h) * 0.17)); letter-spacing: 0.04em; line-height: 1.5;
  text-align: center; background: #fff; color: #1B365D;
}
.sticker.is-new { z-index: 2; box-shadow: 0 0 0 5px rgba(255, 90, 54, 0.55), 0 8px 18px rgba(0, 0, 0, 0.35); }

/* ---------------- Chapters ---------------- */
.chapters {
  position: relative; z-index: 2;
  margin-top: -100vh; margin-top: -100svh;
  padding: 0 var(--gutter);
}
/* résumé timeline: one column down the left, black text on a white band over the picture */
/* the band fades in at the top; part of the timeline itself so it is always there */
.timeline {
  margin: 0 calc(-1 * var(--gutter)); padding: 0 max(var(--gutter), 36vw) 0 var(--gutter); /* column lives on the left */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 40%, rgba(255, 255, 255, 0) 64%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 32vh);
  mask-image: linear-gradient(180deg, transparent 0, #000 32vh);
}
.chapter {
  --line: rgba(27, 26, 23, 0.22);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  width: min(40rem, 46vw);
  margin: 0 0 50vh;
  padding: 0 0 0 44px;
  color: var(--ink);
}
.timeline > .chapter:first-child { margin-top: 38vh; }
/* the thread that joins the dots runs down to the next entry */
.chapter::after {
  content: ""; position: absolute; left: 7px; top: 22px; bottom: -50vh;
  width: 1px; background: var(--line);
}
.chapter[data-final]::after { bottom: 38svh; }
/* space after the last entry stays inside the story, over the photo, before the next section */
.timeline { display: flow-root; }
.chapter[data-final] { margin-bottom: 0; padding-bottom: 38vh; padding-bottom: 38svh; }
.chapter .year { color: #57544c; display: flex; align-items: center; letter-spacing: 0.22em; }
/* dot in the entry's brand colour */
.chapter .year::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--card-accent, var(--accent));
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(27, 26, 23, 0.12); /* ring keeps every brand colour visible on white */
}
.chapter .org { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(28px, 2.8vw, 46px); line-height: 1.05; color: var(--ink); }
.org-logo {
  flex: none; width: 1.5em; height: 1.5em; border-radius: 12px; overflow: hidden;
  background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(27, 26, 23, 0.1), 0 4px 14px rgba(0, 0, 0, 0.1);
}
.org-logo img { width: 86%; height: 86%; object-fit: contain; }
.chapter .role { font-size: 18px; color: #4a473f !important; }
.points { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.points li { position: relative; padding-left: 26px; color: #2b2a26; font-size: 17px; line-height: 1.5; }
.points li::before { content: "—"; position: absolute; left: 0; color: #8a867c; }

/* hero: centred title low over the chest, intro and scroll cue beneath, quiet labels in the corners */
.chapter.hero { color: var(--ink); }
.chapter.hero::after { display: none; }
.chapter.hero {
  position: relative;
  width: auto; margin: 0; padding: 0;
  height: 100vh; height: 100svh;
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  display: block;
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 84px; margin: 0 auto; width: min(64rem, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.hero-name {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(60px, 8vw, 150px); line-height: 0.9; letter-spacing: -0.05em; color: var(--ink);
  text-shadow: 0 0 28px rgba(241, 237, 228, 0.9), 0 0 60px rgba(241, 237, 228, 0.6); /* paper halo over the sketch */
}
.hero-role { margin-top: -4px; font-weight: 600; font-size: 13px; letter-spacing: 0.3em; color: #2b2a26; text-shadow: 0 0 10px rgba(241, 237, 228, 0.95), 0 0 22px rgba(241, 237, 228, 0.85); }
.hero .lede { max-width: 42rem; text-wrap: balance; font-size: 18px; line-height: 1.5; color: #2b2a26; text-shadow: 0 0 14px rgba(241, 237, 228, 0.95), 0 0 30px rgba(241, 237, 228, 0.8); }
.hero .scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #4a473f; letter-spacing: 0.3em; }
.hero .scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(#4a473f, transparent); }
.hero-meta { position: absolute; color: #2b2a26; font-weight: 600; letter-spacing: 0.22em; font-size: 11px; text-shadow: 0 0 10px rgba(241, 237, 228, 0.95), 0 0 22px rgba(241, 237, 228, 0.85); }
.hero-meta-tr { top: 84px; right: 0; }
.hero-meta-side { right: 0; top: 38%; writing-mode: vertical-rl; }
.display { font-family: var(--f-display); font-weight: 500; font-size: clamp(56px, 8.5vw, 132px); line-height: 0.92; letter-spacing: -0.045em; }
.display em { color: var(--muted); }
.lede { font-size: 19px; max-width: 30rem; }

/* ---------------- Wave sentence ---------------- */
.wave { position: relative; z-index: 3; background: var(--bg); }
.wave-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 2vh; overflow: hidden; }
.wave-line {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(72px, 13vw, 240px); line-height: 1.1; letter-spacing: -0.045em;
  white-space: nowrap; will-change: transform;
  padding: 0 4vw;
}
.wave-line .w { display: inline-block; white-space: nowrap; }
.wave-line .c { display: inline-block; will-change: transform; }
.wave-line .c.accent { color: var(--accent); }
.wave-line { align-self: flex-start; }

/* ---------------- Toolkit: fanned card decks on charcoal ---------------- */
.toolkit { position: relative; z-index: 3; background: #1d1d1c; color: #f3ebe4; }
.tk-pin {
  height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 11vh var(--gutter) 4vh;
}
.tk-head { text-align: center; width: 100%; }
.tk-title { font-family: var(--f-body); font-weight: 500; font-size: clamp(76px, 9.5vw, 156px); line-height: 0.9; letter-spacing: -0.05em; }
.tk-labels { position: relative; height: 1.3em; margin-top: 2.4vh; font-size: clamp(22px, 2.3vw, 38px); letter-spacing: -0.01em; }
.tk-label { position: absolute; inset: 0; }
.tk-stage { --cw: clamp(150px, 15vw, 250px); position: relative; flex: 1; width: 100%; }
.tk-deck { position: absolute; inset: 0; }
.tk-deck-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* read by screen readers; the label above shows it */
.tk-cards { list-style: none; }
.tk-card {
  position: absolute; left: 50%; top: 44%;
  width: var(--cw); aspect-ratio: 3 / 4;
  margin: calc(var(--cw) * -2 / 3) 0 0 calc(var(--cw) / -2);
}
.tk-card:hover { z-index: 40; }
.tk-face {
  width: 100%; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12%;
  padding: 10%; border-radius: calc(var(--cw) * 0.08);
  background: var(--bg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tk-card:hover .tk-face { transform: translateY(-18px) scale(1.03); }
.tk-name {
  font-family: var(--f-body); font-weight: 800;
  font-size: calc(var(--cw) * 0.21 * var(--fit, 1)); line-height: 0.88; letter-spacing: -0.01em;
  color: var(--fg); text-align: center; white-space: nowrap;
  display: inline-block; transform: rotate(var(--tilt, 0deg));
}
.tk-name i { font-style: normal; }
.tk-tag {
  font-family: var(--f-body); font-weight: 700; font-size: max(11px, calc(var(--cw) * 0.058)); line-height: 1;
  padding: 0.55em 1.1em 0.45em; border-radius: 999px; white-space: nowrap;
  background: var(--fg); color: var(--bg);
  transform: rotate(var(--tilt, 0deg));
}
/* reduced motion: every deck laid out in the page, label on top */
.toolkit.is-static .tk-pin { height: auto; overflow: visible; }
.toolkit.is-static .tk-labels { display: none; }
.toolkit.is-static .tk-stage { flex: none; }
.toolkit.is-static .tk-deck { position: relative; height: calc(var(--cw) * 1.75); margin-top: 48px; }
.toolkit.is-static .tk-deck-title { position: static; width: auto; height: auto; clip: auto; text-align: center; font-family: var(--f-body); font-weight: 400; font-size: 28px; }

/* ---------------- Works ---------------- */
.works { overflow: hidden; }
.works-track {
  display: flex; gap: 28px; align-items: stretch;
  padding: 120px var(--gutter);
  width: max-content;
}
.works-intro { width: min(34rem, 80vw); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.work-card { width: min(420px, 78vw); display: flex; flex-direction: column; gap: 10px; }
.work-media {
  aspect-ratio: 4 / 5; border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 34px;
}
.work-media.ph {
  background: repeating-linear-gradient(-45deg, rgba(27,26,23,0.05) 0 12px, transparent 12px 24px), var(--paper-2);
  color: var(--muted);
}
.work-card h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: 30px; line-height: 1.1; }
.work-card .mono { color: var(--muted); text-transform: none; letter-spacing: 0.01em; font-size: 13px; } /* longer labels read better in sentence case */

/* works cards: the client's logo on its brand colour */
.work-card.has-page .work-media.logo-card { position: relative; display: grid; place-items: center; background: var(--wb); overflow: hidden; } /* beats the grey .has-page background */
.work-media.logo-card .wm-logo { width: var(--lw, 60%); height: auto; max-height: 42%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-card.has-page:hover .work-media.logo-card .wm-logo, .work-card.has-page:focus-visible .work-media.logo-card .wm-logo { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .work-media.logo-card .wm-logo { transition: none; } }
/* until a logo file arrives, a card can show the name set as a wordmark */
.wm-word { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 44px); letter-spacing: 0.32em; padding-left: 0.32em; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-card.has-page:hover .wm-word { transform: scale(1.05); }

/* cards with a case-study page */
a.work-card { text-decoration: none; color: inherit; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; border-radius: inherit; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-card.has-page .work-media { overflow: hidden; background: #f5f5f5; }
.work-card.has-page:hover .work-media img { transform: scale(1.04); }
.work-card .arrow { display: inline-block; transition: transform 0.3s ease; }
.work-card.has-page:hover .arrow { transform: translateX(6px); }

/* ---------------- Contact: the dark closing block ---------------- */
.contact {
  --c-ink: #141412; --c-line: rgba(255, 255, 255, 0.14); --c-dim: rgba(255, 255, 255, 0.58);
  position: relative; overflow: hidden; background: var(--c-ink); color: #fff;
  min-height: 100svh; padding: clamp(120px, 16vh, 180px) var(--gutter) 28px;
  display: flex; flex-direction: column; gap: clamp(56px, 8vw, 110px);
}
.ct-eyebrow { font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-dim); margin-bottom: 22px; }
.ct-title { font-weight: 500; font-size: clamp(52px, 8.4vw, 132px); line-height: 0.94; letter-spacing: -0.05em; }
.ct-title em { color: rgba(255, 255, 255, 0.5); }
.ct-mark { position: relative; display: inline-block; color: #fff; }
.ct-mark svg { position: absolute; left: -2%; bottom: -0.1em; width: 104%; height: 0.24em; overflow: visible; }
.ct-mark path { fill: none; stroke: #D92D20; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.2s cubic-bezier(0.6, 0, 0.2, 1) 0.2s; }
.contact.is-in .ct-mark path { stroke-dashoffset: 0; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: end; }
.ct-label { font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-dim); }
.ct-email {
  display: inline-flex; align-items: flex-start; gap: 0.12em; margin-top: 14px; color: #fff; text-decoration: none;
  font-weight: 500; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.05; letter-spacing: -0.04em;
  background: linear-gradient(#D92D20, #D92D20) 0 100% / 0 3px no-repeat; padding-bottom: 8px; transition: background-size 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}
.ct-email:hover, .ct-email:focus-visible { background-size: 100% 3px; }
.ct-arrow { font-size: 0.55em; color: #D92D20; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ct-email:hover .ct-arrow { transform: translate(4px, -4px); }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ct-btn {
  font: 600 15px/1 var(--f-body); cursor: pointer; text-decoration: none; color: #fff; border: 0;
  padding: 16px 24px; border-radius: 999px; background: #D92D20; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ct-btn span { display: inline-block; transition: transform 0.3s ease; }
.ct-btn:hover { background: #B8231A; }
.ct-btn:hover span { transform: translateX(4px); }
.ct-btn-line { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.ct-btn-line:hover { background: #fff; color: var(--c-ink); box-shadow: none; }
.ct-btn-line.is-done { background: #fff; color: var(--c-ink); }
.contact :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ct-facts { display: flex; flex-direction: column; }
.ct-fact { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.ct-fact:last-child { border-bottom: 1px solid var(--c-line); }
.ct-fact .ct-label { padding-top: 4px; }
.ct-fact dd { font-size: 17px; font-weight: 500; }
.ct-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ecf7a; margin-right: 10px; vertical-align: 2px; }
.ct-clock { color: var(--c-dim); font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 6px; }
.ct-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ct-links a { color: #fff; text-decoration: none; transition: color 0.2s ease; }
.ct-links a:hover { color: #ff6b5e; }

.ct-foot { margin-top: auto; }
.ct-wordmark {
  font-weight: 600; font-size: 15.5vw; line-height: 0.8; letter-spacing: -0.065em; white-space: nowrap;
  margin: 0 0 0 -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  user-select: none;
}
.ct-fine { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-top: 22px; margin-top: 18px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-dim); }
.ct-top { color: #fff; text-decoration: none; font-weight: 600; }
.ct-top:hover { color: #ff6b5e; }

@media (max-width: 820px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-fact { grid-template-columns: 7rem 1fr; }
  .ct-email { font-size: clamp(24px, 7.6vw, 40px); }
  .ct-wordmark { font-size: 17vw; }
  .ct-fine { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-mark path { transition: none; stroke-dashoffset: 0; }
  .ct-email, .ct-arrow, .ct-btn, .ct-btn span { transition: none; }
}

/* ---------------- Grain ---------------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

/* ---------------- Mobile: figure fills the width, chapter cards slide over it ---------------- */
@media (max-width: 820px) {
  .chapter-indicator { display: none; }
  .chapter { width: 100%; }
  .chapter { margin-bottom: 70svh; padding-left: 36px; }
  .chapter[data-final] { margin-bottom: 0; padding-bottom: 30svh; }
  .chapter[data-final]::after { bottom: 30svh; }
  .chapter::after { bottom: -70svh; }
  .timeline { background: rgba(255, 255, 255, 0.86); padding-right: var(--gutter); }
  .chapter .org { font-size: 26px; }
  .chapter.hero { margin: 0; }
  .hero-copy { bottom: 64px; gap: 12px; }
  .hero .lede { font-size: 15px; max-width: 22rem; }
  .hero-meta-side, .hero-meta-tr { display: none; }
  .hero-name { font-size: clamp(48px, 14vw, 76px); }
  .hero-role { font-size: 11px; letter-spacing: 0.24em; }
  .sticker { left: var(--mx); top: var(--my); }
  .stage.is-closeup .art-box { width: max(100vw, calc(55svh * var(--ar))); }
  .stage-caption { bottom: 12px; left: var(--gutter); transform: none; } /* leaves the bottom-right corner to the section navigator */
  .stage-caption { gap: 8px; padding: 5px 11px; }
  .stage-caption .hand { font-size: 16px; }
  .tk-stage { --cw: 36vw; }
  .tk-pin { padding-top: 12vh; }
  /* phones crop the sides of a wide photo: shift it so the face (centre ≈ 56% across) stays in view */
  .stage.is-landscape .art-box { transform: translateX(-6.5%); }
  .stage.is-landscape .sticker { font-size: 13px; padding: 4px 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .wave-line { white-space: normal; font-size: clamp(48px, 8vw, 120px); line-height: 1.3; }
  body { transition: none; }
}
