/* ==========================================================================
   The Desk — Sai Harsha
   Chaos: near-black desk. Clarity: whiteboard. One marker yellow.
   ========================================================================== */

@font-face { font-family: "Familjen"; src: url("../assets/fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen"; src: url("../assets/fonts/familjen-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen"; src: url("../assets/fonts/familjen-grotesk-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Doto"; src: url("../assets/fonts/doto-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Doto"; src: url("../assets/fonts/doto-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Doto"; src: url("../assets/fonts/doto-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../assets/fonts/kalam-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../assets/fonts/kalam-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --desk: #0E0F11;
  --board: #EEF0EE;
  --board-2: #E3E6E4;
  --ink: #121314;
  --graphite: #595D61;
  --hair: rgba(18, 19, 20, .14);
  --marker: #FFD23F;
  --paper-on-desk: #F2F2EF;

  --sans: "Familjen", ui-sans-serif, sans-serif;
  --dots: "Doto", "Familjen", sans-serif;
  --hand: "Kalam", "Familjen", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
  accent-color: var(--ink);
  caret-color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--graphite) var(--board); scrollbar-width: thin; }
html.js { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.55;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--marker); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--board); }
::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: 10px; border: 3px solid var(--board); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.desk :focus-visible, .bar:not(.is-solid) :focus-visible { outline-color: currentColor; }
b { font-weight: 650; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--board); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus-visible { top: 12px; }

.dot-num { font-family: var(--dots); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* -------- type -------- */
.h2 { font-size: clamp(34px, 3.4vw + 14px, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 640; margin: 0 0 .5em; text-wrap: balance; max-width: 18ch; }
.h2--big { font-size: clamp(40px, 5vw + 12px, 92px); max-width: 15ch; }
.h3 { font-size: clamp(22px, 1.2vw + 14px, 30px); line-height: 1.1; letter-spacing: -.02em; font-weight: 640; margin: 0 0 .45em; text-wrap: balance; }
.lead { font-size: clamp(20px, .9vw + 15px, 26px); line-height: 1.38; letter-spacing: -.012em; max-width: 34ch; margin: 0 0 1em; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.small { font-size: .88em; color: var(--graphite); }
.hl { background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 90%, transparent 90%) no-repeat; background-size: var(--hl, 100%) 100%; color: inherit; padding: 0 .06em; }
.note { font-family: var(--hand); font-size: 20px; line-height: 1.15; color: var(--graphite); margin: 0; }

/* ==========================================================================
   Top bar — blends against both grounds
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar { transition: transform .45s var(--ease-out), background-color .3s ease; }
.bar.is-solid { mix-blend-mode: normal; color: var(--ink); background: var(--board); box-shadow: 0 1px 0 var(--hair); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__name { font-family: var(--dots); font-weight: 900; font-size: 20px; letter-spacing: .02em; text-decoration: none; margin-right: auto; text-transform: uppercase; }
.bar__nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.bar__nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.bar__nav a:hover { text-decoration: underline; }
.sound {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--sans); color: inherit; background: none;
  border: 1.5px solid currentColor; border-radius: 99px; padding: 8px 14px 8px 10px; cursor: pointer;
}
.sound__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound__wave { stroke-dasharray: 60; stroke-dashoffset: 0; transform-origin: center; transform: scaleY(.18); transition: transform .5s var(--ease-out); }
.sound[aria-pressed="true"] .sound__wave { transform: scaleY(1); animation: wave 1.6s ease-in-out infinite alternate; }
@keyframes wave { to { transform: scaleY(.55); } }
@media (max-width: 560px) { .bar__nav { display: none; } .sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .sound { padding: 8px; } }

/* ==========================================================================
   1 · The desk
   ========================================================================== */
.desk { position: relative; height: 290vh; height: 290svh; background: var(--board); }
.desk__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--desk);
  touch-action: pan-y;
}
.desk__light { position: absolute; inset: 0; background: var(--board); clip-path: circle(0px at 50% 50%); }
.desk__dots { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: difference; }
.desk__mess { position: absolute; inset: 0; }

.desk__open {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px);
  z-index: 3; pointer-events: none;
  opacity: var(--open-o, 1); transform: translateY(calc((1 - var(--open-o, 1)) * 28px));
}
.card {
  display: inline-block; max-width: min(620px, 100%);
  background: var(--paper-on-desk); color: var(--ink);
  padding: clamp(18px, 2.2vw, 30px) clamp(20px, 2.6vw, 34px) clamp(16px, 2vw, 24px);
  border-radius: 3px; transform: rotate(-1deg);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 34px 60px -24px rgba(0, 0, 0, .7);
}
.card__lede { font-size: clamp(30px, 3.4vw + 12px, 68px); line-height: 1; letter-spacing: -.04em; font-weight: 650; max-width: 12ch; margin: 0 0 .4em; text-wrap: balance; }
.card__sub { font-family: var(--hand); font-size: clamp(17px, .5vw + 14px, 21px); color: var(--graphite); margin: 0; line-height: 1.2; }

/* coach marks: drag / tap, then scroll */
.coach {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 99px;
  background: var(--paper-on-desk); color: var(--ink);
  font: 600 15px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0) scale(.9);
  transition: opacity .35s ease, transform .35s var(--ease-out);
}
.coach.is-on { opacity: var(--open-o, 1); transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
.coach::after { content: ""; position: absolute; left: 22px; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.coach.is-scroll::after { display: none; }
.coach svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.coach__hand { animation: drag 1.8s var(--ease-out) infinite; fill: #fff !important; }
.coach__scroll { display: none; width: 18px !important; }
.coach__scroll path:first-of-type { animation: cue 1.6s var(--ease-out) infinite; }
.coach.is-scroll .coach__hand { display: none; }
.coach.is-scroll .coach__scroll { display: block; }
.coach.is-tap .coach__hand { animation: tap 1.2s ease-in-out infinite; }
@keyframes drag { 0%, 15% { transform: translate(0, 0) } 55% { transform: translate(12px, -8px) } 75%, 100% { transform: translate(0, 0) } }
@keyframes tap { 0%, 100% { transform: scale(1) } 40% { transform: scale(.82) } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(6px); opacity: 0 } 100% { opacity: 0 } }

.desk__close { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.desk__name {
  position: absolute; left: var(--gutter); top: 30%;
  font-family: var(--dots); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 14vw, 220px); line-height: .9; letter-spacing: .02em; margin: 0;
}
html.desk-ready .desk__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.desk__name-x { display: block; font-family: var(--sans); font-weight: 650; text-transform: none; letter-spacing: -.02em; font-size: .18em; line-height: 1.2; margin-top: .4em; }
.desk__line {
  position: absolute; left: var(--gutter); right: var(--gutter); top: var(--line-top, 72%);
  font-size: clamp(24px, 2.1vw + 12px, 44px); line-height: 1.18; letter-spacing: -.03em; font-weight: 600;
  max-width: 30ch; margin: 0; color: var(--ink); text-wrap: balance;
  opacity: var(--close-o, 0); transform: translateY(calc((1 - var(--close-o, 0)) * 18px));
}
.face { display: inline-block; width: 1.08em; height: 1.08em; vertical-align: -.2em; margin: 0 .04em; overflow: visible; }
.face__head { fill: var(--marker); stroke: var(--ink); stroke-width: 2.4; }
.face__mouth, .face__wink { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.face__eye { fill: var(--ink); }
.face__heart { fill: #E5493A; transform-box: fill-box; transform-origin: center; animation: beat 1.3s ease-in-out infinite; }
.face__heart--r { animation-delay: .12s; }
.face__wink { opacity: 0; }
.face--wink .face__eye--r { animation: wink-open 3.2s infinite; }
.face--wink .face__wink { animation: wink-shut 3.2s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1) } 20% { transform: scale(1.28) } 40% { transform: scale(.96) } }
@keyframes wink-open { 0%, 78%, 92%, 100% { opacity: 1 } 80%, 90% { opacity: 0 } }
@keyframes wink-shut { 0%, 78%, 92%, 100% { opacity: 0 } 80%, 90% { opacity: 1 } }

.desk__more {
  position: absolute; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 74px); z-index: 3; margin: 0;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 99px; background: var(--ink); color: var(--board);
  font: 600 15px/1 var(--sans);
  opacity: var(--more-o, 0); transform: translate(-50%, calc((1 - var(--more-o, 0)) * 14px)); pointer-events: none;
}
.desk__more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px) } }

/* fragments ---------------------------------------------------------------- */
.frag {
  --t: 0;
  position: absolute; left: 0; top: 0; will-change: transform;
  user-select: none; -webkit-user-select: none; cursor: grab;
  border-radius: calc(var(--rad, 6px) * (1 - var(--t)) + 50% * var(--t));
  background: color-mix(in oklab, var(--bg) calc((1 - var(--tc, 0)) * 100%), #F2F2EF);
  color: var(--fg, var(--ink));
  font-size: var(--fs, 16px);
  box-shadow: 0 calc(10px * (1 - var(--t))) calc(22px * (1 - var(--t))) rgba(0, 0, 0, calc(.35 * (1 - var(--t))));
  visibility: hidden;
}
.frag.is-live { visibility: visible; }
.frag.is-live.is-in { visibility: hidden; }
.frag > * { opacity: calc(1 - var(--tc, 0) * 4); }
.frag.is-held { cursor: grabbing; }
@media (hover: none) { .frag { cursor: default; } }

.f-sticky { width: 9.2em; min-height: 8.4em; padding: .9em .85em; font-family: var(--hand); font-size: calc(var(--fs, 16px) * 1.12); line-height: 1.15; --rad: 2px; }
.f-sticky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.1em; background: linear-gradient(transparent, rgba(0,0,0,.06)); opacity: calc(1 - var(--t) * 3); }
.f-ping { display: flex; gap: .6em; align-items: flex-start; width: 15.5em; padding: .75em .9em; --rad: 12px; line-height: 1.3; }
.f-ping i { flex: none; width: 2em; height: 2em; border-radius: 7px; background: var(--av, #E8A33B); }
.f-ping b { display: block; font-weight: 650; font-size: .86em; }
.f-ping span { font-size: .92em; }
.f-badge { width: 2.6em; height: 2.6em; display: grid; place-items: center; font-weight: 700; font-size: calc(var(--fs, 16px) * 1.05); --rad: 50%; }
.f-ticket { width: 13em; padding: .8em .9em; --rad: 6px; line-height: 1.25; }
.f-ticket small { display: flex; align-items: center; gap: .4em; font-size: .78em; color: #4A5560; margin-bottom: .35em; letter-spacing: .02em; }
.f-ticket small i { width: .85em; height: .85em; border-radius: 2px; background: #E5493A; display: inline-block; }
.f-cal { width: 11em; padding: .55em; --rad: 8px; display: grid; gap: .35em; font-size: calc(var(--fs, 16px) * .86); }
.f-cal span { display: block; padding: .45em .6em; border-radius: 5px; background: var(--c1, #C7DBFF); line-height: 1.2; }
.f-cal span + span { background: var(--c2, #FFD0C4); }
.f-bubble { max-width: 13em; padding: .6em .85em; --rad: 14px; line-height: 1.3; }
.f-pill { padding: .35em .8em; font-weight: 700; font-size: calc(var(--fs, 16px) * .9); --rad: 99px; letter-spacing: .02em; }
.f-mail { width: 15em; padding: .75em .9em; --rad: 6px; line-height: 1.3; }
.f-mail b { display: block; font-weight: 650; }
.f-mail span { font-size: .86em; color: #5C6166; }
.f-frame { width: 10.5em; height: 7.4em; --rad: 4px; padding: .5em .6em; border: 1.5px dashed rgba(255,255,255,.55); font-size: calc(var(--fs, 16px) * .8); }
.f-chart { width: 10em; height: 6.6em; padding: .6em; --rad: 8px; }
.f-chart svg { width: 100%; height: 100%; fill: none; stroke: #E5493A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.f-key { width: 3.2em; height: 3em; display: grid; place-items: center; font-weight: 600; --rad: 9px; box-shadow: inset 0 -.25em 0 rgba(0,0,0,.18); }

/* ==========================================================================
   Shared section frame + pinned scenes
   ========================================================================== */
section { position: relative; }
.work, .made, .edu, .likes, .dream, .next { padding: clamp(96px, 14vh, 180px) var(--gutter) 0; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.scene { height: calc(var(--len, 4) * 100vh); height: calc(var(--len, 4) * 100svh); }
.scene__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.beat { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; }
.beat.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fine-only, .touch-only { display: none; }
@media (hover: hover) and (min-width: 861px) { .fine-only { display: inline; } }
@media (hover: none), (max-width: 860px) { .touch-only { display: inline; } }

/* ==========================================================================
   2 · Who: portrait → engineer → designer → lead
   ========================================================================== */
.who { --len: 5; }
.who__stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; padding: 40px var(--gutter) calc(max(14px, env(safe-area-inset-bottom)) + 74px); }
.who__fig { position: relative; height: 100%; aspect-ratio: .6; max-width: 70vw; }
.who__dots { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.who__text { display: grid; text-align: center; max-width: min(60ch, 100%); margin-top: 10px; }
.who__text .h2 { max-width: 22ch; margin-inline: auto; font-size: clamp(28px, 2.2vw + 14px, 48px); margin-bottom: .3em; }
.who__text p { margin: 0 auto; color: var(--graphite); max-width: 44ch; }

.chips { position: absolute; top: 0; bottom: 0; left: 50%; width: min(1180px, calc(100vw - 2 * var(--gutter))); transform: translateX(-50%); list-style: none; margin: 0; padding: 0; z-index: 2; pointer-events: none; }
.chip {
  position: absolute; left: var(--x); top: var(--y);
  font: 600 clamp(12.5px, .35vw + 11px, 16px)/1.15 var(--sans); white-space: nowrap;
  padding: .55em 1em; border-radius: 99px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
  box-shadow: 0 10px 22px -14px rgba(18, 19, 20, .5);
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(var(--r, 0deg));
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.chip.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); animation: float var(--d, 5s) ease-in-out var(--dl, 0s) infinite; }
.chip { display: inline-flex; align-items: center; gap: .45em; }
.chip svg { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip--ink { background: var(--ink); color: var(--board); }
.chip--hand { font-family: var(--hand); font-weight: 400; border-style: dashed; font-size: clamp(14px, .4vw + 12px, 18px); }
.chip--dot { font-family: var(--dots); font-weight: 900; letter-spacing: .02em; }
/* engineer: blueprint tags, square corners */
.chip--eng { background: #E4ECFF; color: #1C3A9E; border: 1.5px solid #2F6FE4; border-radius: 4px; box-shadow: 0 0 0 3px #fff, 0 10px 22px -14px rgba(28, 58, 158, .55); }
/* designer: soft pink blobs in handwriting, tilted harder */
.chip--des { background: #FFD3DE; color: #7A1F3D; border: 0; border-radius: 20px 6px 20px 6px; font-family: var(--hand); font-weight: 700; font-size: clamp(14px, .4vw + 12.5px, 18px); --r2: 2; }
.chip--des.is-on { transform: translate(-50%, -50%) scale(1) rotate(calc(var(--r, 0deg) * 2)); }
/* lead: yellow sticky squares with a fold */
.chip--lead { background: #FFE58A; color: var(--ink); border: 0; border-radius: 2px; font-weight: 700; box-shadow: 0 2px 2px rgba(18,19,20,.12), 0 14px 22px -14px rgba(18, 19, 20, .5); }
.chip--lead::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; background: linear-gradient(135deg, #F2CF5A 50%, var(--board) 50%); }
@keyframes float { 50% { translate: 0 -6px; } }

/* ==========================================================================
   3 · Philosophy (framework: PMHQ)
   ========================================================================== */
.ph { --len: 8; --dk: 0; --ca: #2F6FE4; --cb: #E2507C; --cc: #23A26A; }
.ph__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding: 76px var(--gutter) 90px; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.ph__text .h2 { margin-bottom: .6em; }
.ph__beats { display: grid; }
.ph__beats p { color: var(--graphite); max-width: 42ch; }
.ph__beats .lead { color: var(--ink); }
.ph__beats .h3 { display: flex; align-items: center; gap: 12px; }
.key { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.key--a { background: var(--ca); } .key--b { background: var(--cb); } .key--c { background: var(--cc); }
.key--p { background: var(--marker); box-shadow: 0 0 0 2px var(--ink); }
.ph__src { margin: 22px 0 0; font-size: 13px; color: var(--graphite); }
.ph__art { position: relative; aspect-ratio: 1; width: 100%; max-height: 72svh; max-width: 72svh; justify-self: center; }
.venn { width: 100%; height: 100%; display: block; }
.vlab { position: absolute; left: 0; top: 0; background: var(--board); padding: 4px 10px 2px; border-radius: 10px; box-shadow: 0 6px 16px -10px rgba(18,19,20,.4); transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 50%)); display: grid; justify-items: center; text-align: center; pointer-events: none; transition: opacity .4s ease; opacity: var(--o, 0); }
.vlab b { font-weight: 700; font-size: clamp(15px, .6vw + 12px, 20px); }
.vlab i { font-style: normal; font-family: var(--hand); font-size: clamp(14px, .4vw + 12px, 18px); color: var(--graphite); }
.vlab--p { background: var(--ink); } .vlab--p b { color: var(--marker); }
.vlab--pm { background: transparent; box-shadow: none; } .vlab--pm b { font-family: var(--hand); font-weight: 700; color: #1C3A9E; font-size: clamp(16px, .6vw + 13px, 22px); }
@media (max-width: 860px) {
  .ph__stage { grid-template-columns: 1fr; align-content: start; gap: 8px; padding-top: 64px; padding-bottom: 80px; }
  .ph__text .h2 { font-size: 30px; margin-bottom: .35em; }
  .ph__beats .lead, .ph__beats p { font-size: 16px; }
  .ph__beats .h3 { font-size: 20px; margin-bottom: .3em; }
  .ph__src { display: none; }
  .ph__art { max-height: 46svh; max-width: 46svh; }
}

/* ==========================================================================
   4 · Work chapters
   ========================================================================== */
.work__head { position: relative; max-width: 900px; }
.work__head .lead { color: var(--graphite); max-width: 40ch; }
.note--work { margin-top: .4em; transform: rotate(-2deg); display: inline-block; }
.note--work a { color: var(--ink); }
.jobs { margin-top: clamp(32px, 5vh, 56px); border-top: 1.5px solid var(--ink); }
.job { border-bottom: 1px solid var(--hair); }
.job__h { margin: 0; font: inherit; }
.job__head {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: start; gap: 8px 28px;
  padding: clamp(20px, 2.6vw, 30px) 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.job__left { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 18px; }
.job__left > :not(.job__logo) { grid-column: 2; }
.job__co, .job__meta { justify-self: start; }
.job__logo { grid-row: 1 / span 2; width: clamp(48px, 3.4vw + 10px, 62px); aspect-ratio: 1; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .45s var(--ease-out), box-shadow .3s ease; }
.job__logo img { width: 60%; height: 60%; object-fit: contain; }
.job__logo--txt { font-size: clamp(17px, 1vw + 10px, 22px); letter-spacing: .02em; }
@media (hover: hover) { .job__head:hover .job__logo { transform: rotate(-6deg) scale(1.06); box-shadow: 4px 4px 0 var(--marker); } }
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(260px, 26vw, 400px); pointer-events: none; opacity: 0; scale: .82; rotate: var(--rot, 0deg); transform-origin: 20% 20%;
  border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.5px var(--ink), 8px 10px 0 var(--ink), 0 30px 60px -24px rgba(18,19,20,.45);
  transition: opacity .25s ease, scale .45s var(--ease-out); }
.peek.on { opacity: 1; scale: 1; }
.peek img { display: block; width: 100%; height: auto; }
@media (hover: none), (max-width: 860px) { .peek { display: none; } }
.job__co { font-size: clamp(24px, 1.6vw + 14px, 44px); font-weight: 420; letter-spacing: -.025em; line-height: 1.05; color: var(--ink); }
.job__meta { font-size: 15px; color: var(--graphite); }
.job__meta b { font-weight: 650; color: var(--ink); }
.job__roles { display: grid; gap: 14px; justify-items: end; text-align: right; }
.job__role { display: grid; gap: 4px; justify-items: end; }
.job__role b { font-size: clamp(20px, 1.2vw + 13px, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.job__when { font-size: 15px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.job__chev { width: 22px; height: 22px; margin-top: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.job.is-open .job__chev { transform: rotate(180deg); }
@media (hover: hover) { .job__head:hover .job__co { background: linear-gradient(transparent 60%, var(--marker) 60%, var(--marker) 92%, transparent 92%); } }
@media (max-width: 760px) {
  .job__head { grid-template-columns: minmax(0, 1fr) 22px; gap: 14px 12px; }
  .job__roles { grid-column: 1; grid-row: 2; justify-items: start; text-align: left; gap: 10px; }
  .job__role { justify-items: start; }
  .job__chev { grid-column: 2; grid-row: 1; }
}
.job__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease-out); }
.job.is-open .job__body { grid-template-rows: 1fr; }
.job__inner { overflow: hidden; min-height: 0; }
.job__intro { font-size: clamp(18px, .6vw + 14px, 22px); line-height: 1.4; max-width: 52ch; margin: 0 0 22px; opacity: 0; transform: translateY(10px); transition: opacity .5s ease .2s, transform .6s var(--ease-out) .2s; }
.job.is-open .job__intro { opacity: 1; transform: none; }
.shots { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shots--1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.shots--4, .shots--5, .shots--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots--4 .shot__cap, .shots--5 .shot__cap, .shots--6 .shot__cap { font-size: 13px; }
.shots li { min-width: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s ease .15s, transform .7s var(--ease-out) .15s; }
.job.is-open .shots li { opacity: 1; transform: none; }
.job.is-open .shots li:nth-child(2) { transition-delay: .25s; }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; text-align: left;
  box-shadow: 0 0 0 1.5px var(--ink), 5px 6px 0 var(--ink); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.shot__bar { display: flex; gap: 5px; align-items: center; height: 24px; padding: 0 10px; background: var(--board-2); border-bottom: 1.5px solid var(--ink); }
.shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .7; }
.shot__bar i:first-child { background: var(--marker); opacity: 1; box-shadow: 0 0 0 1px var(--ink); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; transition: transform .8s var(--ease-out); }
.shots--1 .shot img { aspect-ratio: auto; }
.shot__go { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .4s var(--ease-out); }
.shot__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shot:focus-visible .shot__go { opacity: 1; transform: none; }
@media (hover: hover) {
  .shot:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 0 0 0 1.5px var(--ink), 8px 10px 0 var(--ink); }
  .shot:hover img { transform: scale(1.025); }
  .shot:hover .shot__go { opacity: 1; transform: none; }
}
@media (hover: none) { .shot__go { opacity: .9; transform: none; width: 30px; height: 30px; right: 8px; bottom: 8px; } .shot__go svg { width: 13px; height: 13px; } }
.shot__cap { margin: 10px 2px 0; font-size: 14px; line-height: 1.4; color: var(--graphite); max-width: 60ch; }
@media (max-width: 860px) { .shots--4, .shots--5, .shots--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shots { grid-template-columns: minmax(0, 1fr); } .shots--4, .shots--5, .shots--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .shots--4 .shot__cap, .shots--5 .shot__cap, .shots--6 .shot__cap { display: none; } .shots--4 .shot__bar, .shots--5 .shot__bar, .shots--6 .shot__bar { height: 16px; } }

/* lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 72px 88px 40px; border: 0; background: transparent; color: #fff; display: none; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(14, 15, 17, .9); backdrop-filter: blur(6px); }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: min(1400px, 100%); }
.lb__img { display: block; max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lb[open] .lb__img { animation: lbIn .5s var(--ease-out); }
.lb.is-swap .lb__img { animation: lbSwap .4s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes lbSwap { from { opacity: 0; transform: translateX(var(--from, 24px)); } }
.lb__cap { font-size: clamp(15px, .4vw + 13px, 18px); color: #E3E6E4; text-align: center; max-width: 64ch; }
.lb__x, .lb__nav { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(14,15,17,.6); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.lb__x:hover, .lb__nav:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb__x svg, .lb__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__x { top: 16px; right: 16px; }
.lb__nav { top: 50%; margin-top: -24px; }
.lb__nav--p { left: 16px; } .lb__nav--n { right: 16px; }
.lb__nav[hidden] { display: none; }
.lb__n { position: fixed; top: 28px; left: 50%; translate: -50% 0; font-size: 13px; color: #B9BDC1; }
@media (max-width: 640px) { .lb { padding: 64px 14px 88px; } .lb__nav { top: auto; bottom: 18px; margin: 0; } .lb__img { max-height: calc(100svh - 220px); } }
html.lb-open { overflow: hidden; }

.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; padding-bottom: clamp(28px, 4vw, 44px); grid-auto-flow: dense; }
.tile { grid-column: span 4; }
.tile--wide { grid-column: span 8; }
.tile--note { background: transparent; border: 1.5px dashed rgba(18,19,20,.28); box-shadow: none; display: flex; align-items: flex-end; }
.tile--note figcaption { margin: 0; }
.job .tile { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .6s var(--ease-out); }
.job.is-open .tile { opacity: 1; transform: none; }
.job.is-open .tile:nth-child(2) { transition-delay: .08s; } .job.is-open .tile:nth-child(3) { transition-delay: .16s; } .job.is-open .tile:nth-child(4) { transition-delay: .24s; } .job.is-open .tile:nth-child(5) { transition-delay: .32s; } .job.is-open .tile:nth-child(6) { transition-delay: .4s; } .job.is-open .tile:nth-child(n+7) { transition-delay: .48s; }
@media (max-width: 860px) { .tile, .tile--wide { grid-column: span 12; } }
}
.story { margin: 0 0 56px; }
.story__h { font-size: clamp(22px, 1.2vw + 14px, 30px); font-weight: 640; letter-spacing: -.02em; margin: 0 0 24px; max-width: 30ch; }
.case__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.board {
  position: sticky; top: max(84px, 13vh); grid-column: 1; grid-row: 1;
  background: #fff; border-radius: 18px; padding: clamp(18px, 2.4vw, 32px);
  box-shadow: 0 1px 0 var(--hair), 0 24px 60px -30px rgba(18, 19, 20, .35);
}
.board__cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 20px); margin-bottom: clamp(18px, 2.4vw, 28px); }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(3px, .35vw, 5px); align-items: center; }
.wk b { grid-column: 1 / -1; font: 900 13px/1 var(--dots); letter-spacing: .04em; color: var(--graphite); margin-top: 8px; text-transform: uppercase; }
.board__cal i { aspect-ratio: 1; border-radius: 50%; background: var(--board-2); transition: background .5s var(--ease-out), transform .5s var(--ease-out); }
.board__cal i.on { background: var(--ink); }
.board__cal i.today { background: var(--marker); transform: scale(1.18); }
.board__stage { position: relative; aspect-ratio: 16 / 11; }
.vis { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }
.vis.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out) .1s, visibility 0s; }
.cut { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; }
.cut span { position: relative; border-radius: 3px; background: var(--c, #FFE58A); padding: 12% 12%; display: grid; align-content: start; gap: 9%; transform: rotate(var(--r, 0deg)); transition: transform .9s var(--ease-out), opacity .7s var(--ease-out); }
.cut span em { display: block; height: 3px; border-radius: 2px; background: rgba(18,19,20,.32); width: var(--w, 80%); }
.cut span::after { content: ""; position: absolute; left: -6%; right: -6%; top: 46%; height: 10px; border-radius: 6px; background: var(--ink); transform: scaleX(0) rotate(-6deg); transform-origin: left; transition: transform .5s var(--ease-out); }
.vis.is-on .cut span.x::after { transform: scaleX(1) rotate(-6deg); transition-delay: .5s; }
.vis.is-on .cut span.x { opacity: .25; transform: translateY(14px) rotate(calc(var(--r, 0deg) * 3)); transition-delay: 1s; }
.wire { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wire .w { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.vis.is-on .wire .w { animation: draw 1.6s var(--ease-out) forwards; }
.vis.is-on .wire .w8 { stroke: #2F6FE4; stroke-width: 2.6; }
.wire .w2 { animation-delay: .12s !important; } .wire .w3 { animation-delay: .2s !important; } .wire .w4 { animation-delay: .26s !important; }
.wire .w5 { animation-delay: .34s !important; } .wire .w6 { animation-delay: .44s !important; } .wire .w7 { animation-delay: .52s !important; }
.wire .w8 { animation-delay: .7s !important; } .wire .w9 { animation-delay: .62s !important; } .wire .w10 { animation-delay: .78s !important; } .wire .w11 { animation-delay: .86s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note--draw { position: absolute; right: 2%; top: -4%; transform: rotate(5deg); font-size: 22px; color: var(--ink); }
.loop { width: 86%; height: 100%; overflow: visible; }
.loop__ring { fill: none; stroke: var(--hair); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.loop__pulse { fill: var(--marker); stroke: var(--ink); stroke-width: 2; }
.loop__node { fill: var(--ink); }
.loop__t { font: 600 17px var(--sans); text-anchor: middle; fill: var(--ink); }
.live { margin: 0; text-align: center; }
.live__fig { display: flex; align-items: flex-start; justify-content: center; line-height: .8; }
.live__fig .dot-num { font-size: clamp(120px, 16vw, 240px); }
.live__rupee { font-size: clamp(40px, 5vw, 76px); font-weight: 600; margin-top: .25em; margin-right: .08em; }
.live__unit { display: block; margin-top: .6em; font-size: 19px; color: var(--graphite); }
.steps { list-style: none; margin: 0; padding: 0; grid-column: 2; grid-row: 1; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .28; transition: opacity .6s var(--ease-out); }
.step.is-on { opacity: 1; }
.step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 4vh; }
.step:last-child { min-height: 66vh; }
.step p { color: var(--graphite); }
.step .aside { color: var(--ink); font-weight: 500; margin-top: .4em; }
@media (max-width: 860px) {
  .case__body { grid-template-columns: 1fr; }
  .board { top: 64px; grid-row: 1; z-index: 2; padding: 14px; border-radius: 14px; }
  .board__cal { gap: 8px; margin-bottom: 10px; }
  .wk b { font-size: 10px; margin-top: 6px; }
  .board__stage { aspect-ratio: 16 / 9; }
  .steps { grid-column: 1; grid-row: 2; }
  .step, .step:first-child, .step:last-child { min-height: 56svh; justify-content: flex-start; padding-top: 32px; }
  .note--draw { font-size: 18px; }
  .loop__t { font-size: 20px; }
}

/* infographics */
.figs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); grid-auto-flow: dense; }
.fig { grid-column: span 4; margin: 0; background: #fff; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 0 var(--hair), 0 22px 50px -34px rgba(18, 19, 20, .45); }
.fig--wide { grid-column: span 8; }
.fig figcaption { font-size: 15px; line-height: 1.42; color: var(--graphite); margin-top: auto; }
.fig figcaption b { color: var(--ink); font-weight: 650; }
.fig figcaption .dot-num { font-size: 1.15em; }
.fig__art { min-height: 64px; display: grid; align-content: center; }
@media (max-width: 860px) { .fig, .fig--wide { grid-column: 1 / -1; } }

.ig-cut { display: grid; gap: 6px; margin-top: 8px; }
.ig-cut__row { display: grid; grid-template-columns: 3.6em 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--graphite); }
.ig-cut__bar { height: 12px; border-radius: 5px; background: var(--board-2); position: relative; overflow: hidden; }
.ig-cut__bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--ink); border-radius: 5px; transition: width 1.4s var(--ease-out) .25s; }
.fig.in .ig-cut__row--after i { width: var(--after); }
.ig-big { font-family: var(--dots); font-weight: 900; font-size: clamp(30px, 1.6vw + 18px, 44px); line-height: .9; letter-spacing: 0; }
.ig-times { display: flex; align-items: flex-end; gap: 22px; }
.ig-times__col { display: grid; gap: 6px; justify-items: center; font-size: 13px; color: var(--graphite); }
.ig-times__col span.blk { width: 30px; height: 16px; border-radius: 5px; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.ig-times__col--before span.blk { background: var(--board-2); }
.fig.in .ig-times__col span.blk { transform: none; }
.ig-people { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.ig-people svg { width: 20px; height: 26px; fill: var(--ink); transition: fill .6s var(--ease-out), opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.fig.in .ig-people svg.off { fill: var(--board-2); transform: translateY(6px); }
.ig-dots { display: grid; grid-template-columns: repeat(var(--cols, 30), 1fr); gap: 4px; }
.ig-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--board-2); transition: background .3s ease calc(var(--i) * var(--step, 4ms)); }
.fig.in .ig-dots i { background: var(--ink); }
.ig-grid { display: grid; grid-template-columns: repeat(var(--cols, 20), 1fr); gap: 3px; }
.ig-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--board-2); transition: background .25s ease calc(var(--i) * var(--step, 8ms)); }
.fig.in .ig-grid i { background: var(--ink); }
.tracks { display: grid; gap: 14px; }
.track { position: relative; display: grid; gap: 6px; }
.track__bar { display: block; height: 14px; width: var(--w); border-radius: 99px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.track:nth-child(2) .track__bar { transition-delay: .2s; }
.track:nth-child(3) .track__bar { transition-delay: .4s; }
.track--open .track__bar { background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 22px); }
.fig.in .track__bar { transform: none; }
.track__t { font-size: 15px; color: var(--graphite); }
.track__t b { color: var(--ink); }
.tracks__axis { display: flex; justify-content: space-between; font: 900 12px var(--dots); color: var(--graphite); border-top: 1px solid var(--hair); padding-top: 6px; text-transform: uppercase; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; counter-reset: s; }
.ladder li { position: relative; display: grid; align-content: end; padding: 10px; border-radius: 8px; background: var(--board-2); min-height: 44px; font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), background .5s; }
.ladder li:nth-child(2) { transition-delay: .25s; } .ladder li:nth-child(3) { transition-delay: .5s; background: var(--ink); color: var(--board); }
.ladder--up li:nth-child(1) { min-height: 44px; } .ladder--up li:nth-child(2) { min-height: 64px; } .ladder--up li:nth-child(3) { min-height: 84px; }
.fig.in .ladder li { opacity: 1; transform: none; }
.tally { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tally--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 860px) { .tally--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tally li { display: grid; gap: 4px; font-size: 14px; color: var(--graphite); }
.tally .dot-num { font-size: clamp(26px, 1.2vw + 18px, 36px); color: var(--ink); line-height: 1; }
@media (max-width: 560px) { .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pull { font-size: clamp(22px, 1vw + 16px, 28px); line-height: 1.25; letter-spacing: -.02em; font-weight: 600; margin: 0; }

.shot-frame { margin: 40px 0 0; max-width: 980px; }
.shot-frame img { border-radius: 14px; box-shadow: 0 1px 0 var(--hair), 0 30px 70px -40px rgba(18, 19, 20, .5); }
.shot-frame figcaption { margin-top: 12px; font-size: 15px; color: var(--graphite); }

/* ==========================================================================
   5 · Made
   ========================================================================== */
.made__sub { color: var(--graphite); margin-top: -.6em; }
.pins { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(40px, 6vh, 64px); }
.pin {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper, #fff); color: var(--ink);
  padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px) clamp(20px, 2vw, 26px);
  border-radius: 2px;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  box-shadow: 0 1px 2px rgba(18, 19, 20, .10), 0 22px 34px -22px rgba(18, 19, 20, .42);
  touch-action: none; cursor: grab; transition: box-shadow .3s ease;
}
.pin.is-held { cursor: grabbing; box-shadow: 0 2px 3px rgba(18, 19, 20, .10), 0 40px 60px -26px rgba(18, 19, 20, .5); z-index: 5; }
.pin p { color: #3E4246; font-size: .95em; flex: 1; }
.pin__glyph { flex: none; width: 36px; height: 36px; margin-top: 2px; }
.pin__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: .5em; }
.pin__name { font-size: clamp(26px, 1.6vw + 14px, 38px); line-height: 1; letter-spacing: -.03em; font-weight: 650; margin: 0; }
.pin__shot { margin: 0 0 clamp(16px, 1.6vw, 22px); border-radius: 6px; overflow: hidden; background: var(--board-2); box-shadow: 0 0 0 1.5px var(--ink), 4px 5px 0 var(--ink); }
.pin__shot img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .7s var(--ease-out); -webkit-user-drag: none; }
@media (hover: hover) { .pin:hover .pin__shot img { transform: scale(1.035); } }
.pin__go { align-self: flex-start; display: inline-flex; align-items: center; gap: .3em; font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; text-decoration-color: currentColor; }
.pin__go svg { width: .95em; height: .95em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: transform .35s var(--ease-out); }
.pin__go:hover svg { transform: translate(2px, -2px); }
.pin__go--wip { text-decoration: none; font-family: var(--hand); font-weight: 400; font-size: 1.1em; color: #6A3A48; }
/* the materials: a sticky, an index card, another sticky, a manila tag */
.pin--a { --paper: #FFE58A; grid-column: 1 / span 5; }
.pin--b { --paper: #FFFFFF; grid-column: 6 / span 7; margin-top: 72px; }
.pin--b .pin__hd { padding-bottom: .4em; border-bottom: 1.5px solid rgba(229, 73, 58, .6); }
.pin--b p { line-height: 1.6; background: repeating-linear-gradient(transparent 0 calc(1lh - 1px), rgba(47, 111, 228, .2) calc(1lh - 1px) 1lh); }
.pin--c { --paper: #FFC4D0; grid-column: 2 / span 5; margin-top: -10px; }
.pin--d { --paper: #E6D5AE; grid-column: 8 / span 5; margin-top: 30px; border-radius: 4px 4px 4px 4px; }
.pin--e { --paper: #C9F2B0; grid-column: 3 / span 6; margin-top: -4px; }
.pin--d::after { content: ""; position: absolute; left: 50%; top: 12px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--board); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.tape { position: absolute; left: 50%; top: -13px; width: 96px; height: 26px; margin-left: -48px; background: rgba(236, 231, 214, .78); transform: rotate(-4deg); box-shadow: 0 1px 1px rgba(18, 19, 20, .08); }
.tape--r { left: auto; right: 18px; margin-left: 0; transform: rotate(6deg); }
.pin--d .tape { left: 22%; }
@media (max-width: 860px) {
  .pins { grid-template-columns: 1fr; gap: 34px; }
  .pin--a, .pin--b, .pin--c, .pin--d, .pin--e { grid-column: 1; margin-top: 0; }
  .pin:nth-child(odd) { margin-right: 7%; }
  .pin:nth-child(even) { margin-left: 7%; }
  .pin { touch-action: pan-y; cursor: default; transform: rotate(calc(var(--r) * .6)); }
}

/* ==========================================================================
   6 · Education
   ========================================================================== */
.tl { list-style: none; margin: clamp(32px, 5vh, 56px) 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 8.6em; top: 8px; bottom: 8px; width: 2px; background: var(--hair); }
.tl::after { content: ""; position: absolute; left: 8.6em; top: 8px; bottom: 8px; width: 2px; background: var(--ink); transform: scaleY(var(--rail, 0)); transform-origin: top; }
.tl__item { position: relative; display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 0 clamp(24px, 3vw, 44px); padding: 0 0 clamp(40px, 6vh, 64px); }
.tl__item::before { content: ""; position: absolute; left: calc(8.6em - 7px); top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--board); border: 2px solid var(--ink); z-index: 1; transition: background .4s var(--ease-out), transform .4s var(--ease-out); }
.tl__item.lit::before { background: var(--marker); transform: scale(1.2); }
.tl__yr { font-size: clamp(18px, .8vw + 12px, 24px); padding-right: 22px; line-height: 1.2; }
.tl__body { padding-left: 8px; }
.tl__logo { height: 38px; width: auto; filter: brightness(0); margin-bottom: 14px; }
.tl__org { font-size: clamp(22px, 1.1vw + 14px, 30px); font-weight: 650; letter-spacing: -.025em; margin: 0 0 .2em; line-height: 1.1; }
.tl__what { color: var(--graphite); margin: 0 0 .8em; }
.tl__hl { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl__hl li { font-size: 15px; padding: .45em .9em; border-radius: 99px; border: 1.5px solid var(--ink); background: #fff; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.tl__item.lit .tl__hl li { opacity: 1; transform: none; }
.tl__item.lit .tl__hl li:nth-child(2) { transition-delay: .12s; } .tl__item.lit .tl__hl li:nth-child(3) { transition-delay: .24s; }
@media (max-width: 640px) {
  .tl::before, .tl::after { left: 7px; }
  .tl__item { grid-template-columns: 1fr; padding-left: 34px; }
  .tl__item::before { left: 0; }
  .tl__yr { margin-bottom: 10px; }
  .tl__body { padding-left: 0; }
}

/* ==========================================================================
   7 · The board: pictures, pins, rewatches (a canvas you travel through)
   ========================================================================== */
.cv { --len: 5; }
.cv__stage { background: var(--board); }
.cv__stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(18,19,20,.13) 1.2px, transparent 1.4px); background-size: 26px 26px; background-position: var(--gx, 0px) var(--gy, 0px); pointer-events: none; }
.cv__head { position: absolute; z-index: 5; left: var(--gutter); top: clamp(20px, 4vh, 40px); max-width: min(520px, calc(100% - 2 * var(--gutter))); background: color-mix(in srgb, var(--board) 88%, transparent); padding: 14px 18px 12px; border-radius: 14px; pointer-events: none; }
.cv__head .h2 { margin: 0 0 .25em; font-size: clamp(28px, 2.4vw + 14px, 52px); }
.cv__sub { margin: 0; color: var(--graphite); font-size: 15px; max-width: 46ch; }
.cv__ctl { position: absolute; z-index: 5; right: var(--gutter); top: clamp(24px, 4.5vh, 44px); display: flex; gap: 10px; }
.seg, .zoom { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ink); color: var(--board); box-shadow: 0 10px 24px -14px rgba(18,19,20,.6); }
.seg__b, .zoom__b { font: 600 14px/1 var(--sans); color: inherit; background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.seg__b.is-on { background: var(--board); color: var(--ink); }
.zoom__b { font-size: 18px; padding: 5px 11px; }
.zoom__v { font-size: 13px; min-width: 4.2ch; text-align: center; }
.cv__world { position: absolute; left: 0; top: 0; width: 4320px; height: 1400px; transform-origin: 0 0; transform: translate3d(var(--wx, 0px), var(--wy, 0px), 0) scale(var(--z, 1)); cursor: grab; touch-action: pan-y; }
.cv__world.is-held { cursor: grabbing; }
.cv-item { position: absolute; left: 0; top: 0; margin: 0; transform: translate3d(calc(var(--x) + var(--px, 0px)), calc(var(--y) + var(--py, 0px)), 0) rotate(var(--r, 0deg)); user-select: none; -webkit-user-select: none; }
.cv-photo { width: var(--w); background: #fff; padding: 10px 10px 12px; border-radius: 3px; box-shadow: 0 1px 2px rgba(18,19,20,.12), 0 28px 44px -26px rgba(18,19,20,.5); transition: box-shadow .3s ease; }
.cv-photo img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; pointer-events: none; }
.cv-photo { cursor: zoom-in; }
.cv__world.is-held .cv-photo { cursor: grabbing; }
@media (hover: hover) { .cv-photo:hover { box-shadow: 0 0 0 2px var(--ink), 0 30px 50px -24px rgba(18,19,20,.55); } }
.cv-photo:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 4px; }
.cv-photo figcaption { font-family: var(--hand); font-size: 17px; line-height: 1.2; padding: 8px 4px 0; }
.cv-poster { width: var(--w, 170px); aspect-ratio: 2 / 3; background: var(--bg); color: var(--fg); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 3px rgba(18,19,20,.2), 0 26px 40px -24px rgba(18,19,20,.6); }
.poster__art { flex: 1; position: relative; }
.poster__art svg { position: absolute; inset: 10% 10% 0; width: 80%; height: 90%; }
.cv-poster figcaption { padding: 0 12px 12px; display: grid; gap: 4px; }
.cv-poster b { font-size: 19px; line-height: 1; letter-spacing: -.02em; font-weight: 700; }
.cv-poster span { font: 900 10px var(--dots); text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.cv-poster .slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-poster.has-img figcaption, .cv-poster.has-img .poster__art svg { display: none; }
.cv-poster.has-img .poster__art { position: absolute; inset: 0; }
.cv-pin { width: calc(var(--w, 150px) + 20px); padding: 10px; margin: -10px; z-index: 3; }
.cv-pin svg { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; filter: drop-shadow(0 2px 1px rgba(18,19,20,.22)) drop-shadow(0 16px 14px rgba(18,19,20,.26)); animation: pinf 6s ease-in-out infinite; animation-delay: var(--dl, 0s); transition: scale .5s var(--ease-out), rotate .5s var(--ease-out); transform-origin: 50% 45%; will-change: translate; }
@media (hover: hover) { .cv-pin:hover svg { scale: 1.06; rotate: -4deg; animation-play-state: paused; } }
.pin__lbl { position: absolute; left: 50%; top: 100%; translate: -50% 8px; font: 700 13px/1 var(--sans); padding: 6px 10px; border-radius: 99px; background: var(--ink); color: #fff; white-space: nowrap; opacity: 0; transition: opacity .25s ease, translate .35s var(--ease-out); pointer-events: none; }
.cv-pin:hover .pin__lbl { opacity: 1; translate: -50% 12px; }
@keyframes pinf { 50% { translate: 0 -8px; } }
.cv-note { font-size: 22px; color: var(--ink); white-space: nowrap; }
/* grid view: the same things, tidied up */
.cv.is-grid { height: auto; }
.cv.is-grid .cv__stage { position: relative; height: auto; overflow: visible; padding: 0 var(--gutter) 40px; }
.cv.is-grid .cv__head, .cv.is-grid .cv__ctl { position: relative; left: auto; right: auto; top: auto; }
.cv.is-grid .cv__ctl { justify-content: flex-start; margin: 4px 0 24px 18px; }
.cv.is-grid .cv__world { position: relative; width: auto; height: auto; transform: none; columns: 3 260px; column-gap: 18px; cursor: auto; max-width: var(--max); }
.cv.is-grid .cv-item { position: relative; transform: none; break-inside: avoid; margin: 0 0 18px; width: 100%; animation: none; display: inline-block; }
.cv.is-grid .cv-poster { width: 100%; }
.cv.is-grid .cv-pin { width: 40%; margin: 0 4% 24px 0; }
.cv.is-grid .cv-note { display: none; }

/* ==========================================================================
   8 · People I'd love to work with: halos
   ========================================================================== */
.dream { padding: clamp(96px, 14vh, 180px) var(--gutter) 0; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.dream__sub { color: var(--graphite); margin-top: -.6em; }
.halos { list-style: none; margin: clamp(32px, 5vh, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); }
.halo { text-align: center; }
.halo__frame { position: relative; width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto 16px; }
.halo__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.halo__ring text { font: 900 11.5px var(--dots); letter-spacing: .14em; fill: var(--ink); }
.halo:nth-child(even) .halo__ring { animation-direction: reverse; }
.halo__disc { position: absolute; inset: 16%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 4px var(--marker), 0 0 0 6px var(--ink), 0 24px 40px -20px rgba(18,19,20,.55); transition: transform .5s var(--ease-out); }
.halo__disc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(18,19,20,.16) 1.4px, transparent 1.6px) 0 0 / 9px 9px; }
.halo__ini { position: relative; font-size: clamp(28px, 2vw + 16px, 44px); }
.halo__disc .slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s ease; }
.halo:hover .halo__disc .slot-img { filter: none; }
.halo:hover .halo__disc { transform: scale(1.04); }
.halo__name { font-size: clamp(19px, .6vw + 15px, 24px); font-weight: 650; letter-spacing: -.02em; margin: 0; }
.halo__known { margin: 2px 0 8px; color: var(--graphite); font-size: 14px; }
.halo__why { font-size: 15px; color: var(--graphite); margin: 0 auto; max-width: 28ch; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .halos { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; } }
.halos__nav { display: none; }
@media (max-width: 620px) {
  .halos { position: relative; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 13% 16px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .halos::-webkit-scrollbar { display: none; }
  .halo { scroll-snap-align: center; scroll-snap-stop: always; transition: opacity .4s ease, scale .5s var(--ease-out); }
  .halos .halo.in:not(.is-cur) { opacity: .45; scale: .9; }
  .halos__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
  .hn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--board); color: var(--ink); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); transition: translate .15s ease, box-shadow .15s ease, opacity .2s ease; }
  .hn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
  .hn:disabled { opacity: .3; box-shadow: none; }
  .hn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .hn__mid { display: grid; justify-items: center; gap: 8px; }
  .hn__dots { display: flex; gap: 6px; }
  .hn__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--hair); transition: width .35s var(--ease-out), background .25s ease; }
  .hn__dot[aria-current="true"] { width: 26px; background: var(--ink); }
  .hn__count { font-size: 13px; color: var(--graphite); }
}

/* ==========================================================================
   9 · Callout
   ========================================================================== */
.call { padding: clamp(110px, 18vh, 220px) var(--gutter) clamp(90px, 14vh, 160px); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; text-align: center; }
.call__pre { font-size: clamp(20px, 1.3vw + 14px, 32px); line-height: 1.25; letter-spacing: -.02em; max-width: 26ch; margin: 0 auto .3em; color: var(--graphite); text-wrap: balance; }
.call__h { font-size: clamp(64px, 11vw, 190px); line-height: .9; letter-spacing: -.05em; font-weight: 700; margin: 0 0 .25em; }
.call__h .hl { --hl: 100%; }
.call__go { display: inline-flex; align-items: center; gap: .5em; font-size: clamp(18px, .6vw + 15px, 22px); font-weight: 650; text-decoration: none; padding: .8em 1.4em; border-radius: 99px; background: var(--ink); color: var(--board); transition: transform .3s var(--ease-out); }
.call__go:hover { transform: translateY(-2px) rotate(-1deg); }
.call__go svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   10 · Contact: keys
   ========================================================================== */
.keys { position: relative; background: var(--desk); color: var(--paper-on-desk); padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(120px, 16vh, 180px); overflow: hidden; }
.keys::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.keys__h { position: relative; text-align: center; font-size: clamp(36px, 3vw + 16px, 64px); letter-spacing: -.04em; margin: 0 0 clamp(36px, 6vh, 64px); }
.keys__grid { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.key-item { display: grid; justify-items: center; gap: 18px; text-align: center; }
.kc { --cap: #E5493A; --cap-hi: #F2705F; --cap-lo: #B32F23; display: block; width: clamp(118px, 12vw, 168px); aspect-ratio: 1; padding: 12px; border-radius: 28px; background: #1D1E21; box-shadow: inset 0 2px 0 rgba(255,255,255,.06), inset 0 -6px 12px rgba(0,0,0,.55), 0 30px 50px -20px rgba(0,0,0,.8); border: 0; cursor: pointer; text-decoration: none; }
.kc__cap { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 20px; background: linear-gradient(160deg, var(--cap-hi), var(--cap) 45%, var(--cap-lo)); box-shadow: inset 0 3px 0 rgba(255,255,255,.28), inset 0 -10px 0 rgba(0,0,0,.18), 0 8px 0 var(--cap-lo), 0 14px 18px rgba(0,0,0,.45); transform: translateY(-6px); transition: transform .12s ease, box-shadow .12s ease; }
.kc:hover .kc__cap { transform: translateY(-8px); }
.kc:active .kc__cap, .kc.is-pressed .kc__cap { transform: translateY(1px); box-shadow: inset 0 3px 0 rgba(255,255,255,.22), inset 0 -4px 0 rgba(0,0,0,.18), 0 1px 0 var(--cap-lo), 0 4px 8px rgba(0,0,0,.45); }
.kc svg { width: 46%; height: 46%; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)); }
.kc--blue { --cap: #2F6FE4; --cap-hi: #5A90F0; --cap-lo: #1C46A8; }
.kc--green { --cap: #22A35A; --cap-hi: #45C47A; --cap-lo: #137040; }
.kc--yellow { --cap: #FFD23F; --cap-hi: #FFE27A; --cap-lo: #C99A12; }
.kc--yellow svg { stroke: #1C2A5E; }
.kc__in { font: 700 clamp(46px, 4vw + 20px, 70px)/1 var(--sans); color: #fff; letter-spacing: -.04em; margin-top: -.08em; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.kc:focus-visible { outline: 3px solid var(--marker); outline-offset: 6px; border-radius: 30px; }
.kc__note { margin: 0; font-family: var(--hand); font-size: clamp(17px, .5vw + 14px, 21px); line-height: 1.25; color: var(--marker); }
.kc__val { color: var(--paper-on-desk); font-size: .9em; }
@media (max-width: 760px) { .keys__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 70; margin: 0; padding: 12px 18px; border-radius: 12px; background: var(--paper-on-desk); color: var(--ink); font-weight: 600; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s ease, transform .4s var(--ease-out); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Dock: the menu lives at the bottom
   ========================================================================== */
.dock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 18px;
  background: #121314; color: #A9ADB1; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -14px rgba(0,0,0,.7);
  transform: translateX(-50%); max-width: calc(100vw - 20px);
}
.dock__me { color: var(--paper-on-desk); text-decoration: none; font-size: 15px; padding: 9px 12px 9px 10px; border-right: 1px solid rgba(255,255,255,.12); margin-right: 4px; }
.dock__a { color: inherit; text-decoration: none; font-size: 16px; padding: 9px 12px; border-radius: 11px; transition: color .2s ease, background .2s ease; }
.dock__a:hover { color: var(--paper-on-desk); }
.dock__a.is-on { color: var(--paper-on-desk); box-shadow: inset 0 0 0 1.5px #5A90F0; background: rgba(90,144,240,.12); }
.dock .sound { border: 0; padding: 8px 10px; color: var(--paper-on-desk); margin-left: 4px; border-left: 1px solid rgba(255,255,255,.12); border-radius: 0 11px 11px 0; }
.dock .sound__label { display: none; }
@media (max-width: 560px) {
  .dock { gap: 0; padding: 5px; }
  .dock__a { font-size: 14px; padding: 8px 8px; }
  .dock__me { font-size: 13px; padding: 8px 8px; }
}
.foot { padding-bottom: 96px !important; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); font-size: 15px; color: var(--graphite); }
.foot p { margin: 0; }
.foot__bio { flex: 1 1 100%; max-width: 92ch; font-size: 14px; line-height: 1.6; color: var(--graphite); }
.foot__bio b { color: var(--ink); font-weight: 650; }
.foot__back { display: inline-flex; align-items: center; gap: .4em; color: var(--ink); font-weight: 600; }
.foot__back svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* reveals — visible by default; only enhanced when JS is running */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
html.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .rv { opacity: 1; transform: none; }
  .desk { height: auto; }
  .desk__stage { position: relative; }
  .scene { height: auto; }
  .scene__stage { position: relative; height: auto; min-height: 100svh; }
  .chip { opacity: 1; transform: translate(-50%, -50%); }
  .halo__ring { animation: none; }
  .who__text .beat, .ph__beats .beat { grid-area: auto; opacity: 1; transform: none; margin-bottom: 1em; }
}
.coach.is-gone { opacity: 0 !important; }

.ig-cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; max-width: 360px; }
.ig-cal i { aspect-ratio: 1; border-radius: 50%; background: var(--board-2); transition: background .25s ease calc(var(--i) * 45ms), transform .25s ease calc(var(--i) * 45ms); }
.fig.in .ig-cal i { background: var(--ink); }
.fig.in .ig-cal i:last-child { background: var(--marker); transform: scale(1.25); box-shadow: 0 0 0 1.5px var(--ink); }
.ig-cal__k { display: flex; justify-content: space-between; max-width: 360px; margin-top: 6px; font: 900 11px var(--dots); text-transform: uppercase; color: var(--graphite); }
.ig-dots { gap: 3px; max-width: 240px; }
.ig-grid { gap: 2px; }

@media (max-width: 760px) {
  .cv__ctl { top: auto; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 72px); right: auto; left: 50%; transform: translateX(-50%); }
  .chip.is-past { opacity: .32; transform: translate(-50%, -50%) scale(.86) rotate(var(--r, 0deg)); animation: none; }
}

/* phones: tighter, calmer, made for a thumb */
@media (max-width: 760px) {
  .ph__beats .h3 { font-size: 18px; }
  .ph__beats p { font-size: 15px; }
  .ph__art { max-height: 50svh; max-width: 50svh; margin-top: 4px; }
  .vlab { padding: 3px 8px 1px; }
  .vlab b { font-size: 13px; }
  .vlab i { display: none; }
  .vlab--pm b { font-size: 14px; }
  .chip { font-size: 11.5px; padding: .5em .85em; }
  .chip--des { font-size: 13px; }
  .who__text p { font-size: 15px; }
  .work__head .lead, .made__sub, .dream__sub { font-size: 16px; }
  .job__co { font-size: 26px; }
  .job__role b { font-size: 19px; }
  .job__when, .job__meta { font-size: 14px; }
  .job__intro { font-size: 17px; }
  .tl__org { font-size: 21px; }
  .call__pre { font-size: 19px; }
  .keys__h { font-size: 34px; }
  .kc { width: min(38vw, 150px); }
  .cv__head { padding: 10px 14px 8px; }
  .cv__head .h2 { font-size: 26px; }
  .cv__sub { font-size: 13.5px; }
  .h2 { font-size: clamp(30px, 8vw, 40px); }
  .h2--big { font-size: clamp(36px, 10vw, 48px); }
}
@media (prefers-reduced-motion: reduce) { .cv-pin svg { animation: none; } .shots li { opacity: 1; transform: none; } .lb[open] .lb__img, .lb.is-swap .lb__img { animation: none; } }
.cv.is-grid .cv-pin svg { animation: none; }

/* ==========================================================================
   3b · Play: run the room
   ========================================================================== */
.play { padding: clamp(72px, 10vh, 120px) var(--gutter) clamp(40px, 6vh, 72px); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.play__note { margin: 0 0 6px; font-size: 22px; transform: rotate(-2deg); display: inline-block; }
.play__head .h2 { margin: 0 0 .35em; }
.play__sub { color: var(--graphite); max-width: 58ch; margin: 0; }
.game { margin-top: clamp(28px, 4vh, 44px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.game__panel { position: relative; min-height: 420px; background: #fff; border-radius: 18px; padding: clamp(22px, 2.6vw, 36px); box-shadow: 0 0 0 1.5px var(--ink), 6px 7px 0 var(--ink); display: grid; }
.game__start, .game__end { align-self: center; }
.game__start { display: grid; gap: 22px; justify-items: start; }
.game__rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.game__rules span { font: 900 12px var(--dots); text-transform: uppercase; letter-spacing: .04em; padding: 7px 10px; border-radius: 99px; background: var(--board); }
.game__go, .game__again, .gcard__next { font: 650 18px var(--sans); color: #fff; background: var(--ink); border: 0; border-radius: 99px; padding: 15px 26px; cursor: pointer; box-shadow: 4px 4px 0 var(--marker); transition: translate .15s ease, box-shadow .15s ease; }
.game__go:hover, .game__again:hover, .gcard__next:hover { translate: -1px -1px; box-shadow: 5px 5px 0 var(--marker); }
.game__go:active, .game__again:active, .gcard__next:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--marker); }
.game__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; color: var(--graphite); }
.game__step { font-size: 14px; color: var(--ink); }
.game__ship { display: inline-flex; align-items: center; gap: 10px; }
.game__shipbar { width: 120px; height: 10px; border-radius: 99px; background: var(--board-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.game__shipbar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--v, .2)); background: var(--marker); box-shadow: inset 0 0 0 1px rgba(18,19,20,.25); transition: transform .7s var(--ease-out); }
.game__shipval { color: var(--ink); min-width: 3.4ch; text-align: right; }
.gcard { display: grid; gap: 16px; align-content: start; }
.gcard.is-in { animation: gcardIn .55s var(--ease-out); }
@keyframes gcardIn { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } }
.gcard__from { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.gcard__from i { width: 12px; height: 12px; border-radius: 50%; background: var(--who); box-shadow: 0 0 0 4px color-mix(in srgb, var(--who) 20%, transparent); }
.gcard__from b { font-weight: 700; }
.gcard__from span { color: var(--graphite); padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--who) 12%, #fff); }
.gcard__q { margin: 0; font-size: clamp(22px, 1.4vw + 14px, 32px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; max-width: 26ch; }
.gcard__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.gcard__opt { font: 600 16px/1.3 var(--sans); text-align: left; color: var(--ink); background: var(--board); border: 1.5px solid var(--ink); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: background .2s ease, translate .15s ease, box-shadow .15s ease, opacity .3s ease; box-shadow: 3px 3px 0 var(--ink); }
.gcard__opt:hover:not(:disabled) { background: #fff; translate: -1px -1px; box-shadow: 4px 4px 0 var(--ink); }
.gcard__opt:disabled { cursor: default; opacity: .4; box-shadow: none; }
.gcard__opt.is-picked { opacity: 1; background: var(--marker); box-shadow: 3px 3px 0 var(--ink); }
.gcard__react { margin: 0; min-height: 1.4em; font: 21px/1.3 var(--hand); color: var(--ink); }
.gcard__next { justify-self: start; font-size: 16px; padding: 12px 22px; }
.game__endnote { margin: 0 0 4px; font-size: 20px; }
.game__endh { margin: 0 0 .4em; font-size: clamp(26px, 1.8vw + 14px, 40px); line-height: 1.05; letter-spacing: -.03em; font-weight: 650; }
.game__endp { margin: 0 0 1em; color: var(--graphite); max-width: 52ch; }
.game__moral { margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; background: var(--board); font-size: 16px; line-height: 1.5; }
.gmap { position: relative; background: var(--board); border-radius: 18px; padding: clamp(18px, 2vw, 28px); box-shadow: 0 0 0 1.5px var(--hair); display: grid; gap: 10px; align-content: start; }
.gmap__svg { width: 100%; max-width: 340px; justify-self: center; overflow: visible; }
.gmap__dot { transition: transform .8s var(--ease-out); }
.gmeter { display: grid; grid-template-columns: 96px minmax(0, 1fr) 3ch; align-items: center; gap: 10px; font-size: 14px; position: relative; }
.gmeter__bar { height: 10px; border-radius: 99px; background: rgba(18,19,20,.08); overflow: hidden; }
.gmeter__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--v, .5)); background: var(--c); transition: transform .7s var(--ease-out); }
.gmeter b { font-size: 13px; text-align: right; }
.gmeter.is-low span:first-child { color: #C2352B; font-weight: 700; }
.gmeter.is-low .gmeter__bar { animation: glow 1s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px rgba(229,73,58,.35); } }
.gmeter::after { content: attr(data-delta); position: absolute; right: -6px; top: -14px; font: 900 13px var(--dots); color: var(--c); opacity: 0; }
.gmeter.is-pulse::after { animation: delta 1.4s var(--ease-out); }
@keyframes delta { 0% { opacity: 0; translate: 0 6px; } 20% { opacity: 1; } 100% { opacity: 0; translate: 0 -10px; } }
.gmap__cap { margin: 6px 0 0; font: 18px/1.2 var(--hand); color: var(--graphite); }
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .gmap { order: -1; grid-template-columns: 120px minmax(0, 1fr); align-items: center; padding: 14px; }
  .gmap__svg { grid-row: 1 / span 3; max-width: 120px; }
  .gmap__cap { grid-column: 1 / -1; font-size: 16px; }
  .gmeter { grid-template-columns: 78px minmax(0, 1fr) 3ch; font-size: 13px; }
  .game__panel { min-height: 0; }
}
@media (max-width: 560px) {
  .gcard__opts { grid-template-columns: 1fr; }
  .gcard__q { font-size: 21px; }
  .game__shipbar { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { .gmap__dot, .gmeter__bar i, .game__shipbar i { transition: none; } .gcard.is-in, .gmeter.is-pulse::after, .gmeter.is-low .gmeter__bar { animation: none; } }
.game [hidden] { display: none !important; }
/* game: difficulty + the star */
.game__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.gmode { display: grid; gap: 6px; align-content: start; text-align: left; font: inherit; color: var(--ink); background: var(--board); border: 1.5px solid var(--hair); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.gmode b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.gmode span { font-size: 13px; line-height: 1.4; color: var(--graphite); }
.gmode:hover { border-color: var(--ink); }
.gmode[aria-pressed="true"] { background: #fff; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.gmode[data-mode="hard"][aria-pressed="true"] b::after { content: " · the whole room"; font-weight: 400; color: var(--graphite); font-size: 14px; }
.gmap__meters { display: grid; gap: 10px; }
.gmap__star { display: none; }
.gmap.is-hard .gmap__tri { display: none; }
.gmap.is-hard .gmap__star { display: block; }
.gmap__star text { font: 700 11px var(--sans); fill: var(--ink); }
.gmap.is-hard .gmeter { grid-template-columns: 104px minmax(0, 1fr) 3ch; font-size: 13px; }
.gmap.is-hard .gmap__meters { gap: 7px; }
.hard-only { display: none; }
.gmap.is-hard .hard-only { display: inline; }
.game__endbtns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.game__switch { font: 650 15px var(--sans); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 99px; padding: 13px 20px; cursor: pointer; }
.game__switch:hover { background: var(--board); }
.game.is-hard .game__panel { box-shadow: 0 0 0 1.5px var(--ink), 6px 7px 0 #E5493A; }
@media (max-width: 860px) {
  .gmap.is-hard { }
  .gmap.is-hard .gmap__svg { grid-row: auto; max-width: 230px; }
}
@media (max-width: 560px) { .game__modes { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .gmap.is-hard { grid-template-columns: 140px minmax(0, 1fr); align-items: center; }
  .gmap.is-hard .gmap__svg { grid-row: 1; max-width: 140px; }
  .gmap.is-hard .gmap__star text { display: none; }
  .gmap.is-hard .gmeter { grid-template-columns: 74px minmax(0, 1fr) 2.6ch; font-size: 11.5px; gap: 6px; }
  .gmap.is-hard .gmap__meters { gap: 4px; }
}

/* philosophy, act two: the room fills up and the lights go down */
.ph__stage { background: var(--board); color: var(--ink); transition: background-color .8s ease, color .45s ease; }
.ph__beats p, .ph__src { transition: color .45s ease; }
.ph.is-dark .ph__stage { background: var(--desk); color: var(--paper-on-desk); }
.ph.is-dark .ph__beats p { color: #A9ADB2; }
.ph.is-dark .ph__src { color: #8C9196; }
.ph__beats .lead { color: inherit; }
.beat--real .h3 { font-size: clamp(24px, 1.2vw + 16px, 34px); letter-spacing: -.025em; line-height: 1.1; margin-bottom: .4em; }
.ph__next { margin-top: 1.2em !important; font-size: 22px !important; color: var(--marker) !important; transform: rotate(-2deg); display: inline-block; }
.vlab--s { background: #1C1D21; color: var(--paper-on-desk); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent), 0 10px 22px -12px rgba(0,0,0,.6); padding: 5px 11px 4px 9px; }
.vlab--s b { display: flex; align-items: center; gap: 7px; font-size: clamp(13px, .45vw + 10px, 16px); white-space: nowrap; }
.vlab--s b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.vlab--s i { font-style: normal; font-family: var(--sans); color: inherit; font-size: inherit; }
.vlab--s .sh { display: none; }
.ph__tag { position: absolute; left: 0; top: -6px; z-index: 3; pointer-events: none; font-family: var(--hand); font-size: clamp(18px, .6vw + 14px, 24px); }
.ph__tag > span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .5s ease, transform .6s var(--ease-out); }
.ph__tag-e { color: var(--graphite); transform: rotate(-4deg); }
.ph__tag-r { color: #fff; background: #E5493A; padding: 2px 12px 0; border-radius: 4px; font-family: var(--dots); font-weight: 900; font-size: .72em; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: rotate(-6deg) scale(1.4); }
.ph__tag[data-state="reality"] .ph__tag-e { opacity: 0; transform: rotate(-4deg) translateY(-8px); }
.ph__tag[data-state="reality"] .ph__tag-r { opacity: 1; transform: rotate(-6deg) scale(1); }
@media (max-width: 760px) {
  .vlab--s { padding: 3px 7px 2px 6px; }
  .vlab--s b { font-size: 11px; gap: 5px; }
  .vlab--s b::before { width: 7px; height: 7px; }
  .vlab--s .l { display: none; } .vlab--s .sh { display: inline; }
  .beat--real .h3 { font-size: 20px; }
  .ph__next { font-size: 18px !important; margin-top: .6em !important; }
  .ph__tag { top: auto; bottom: 18px; font-size: 16px; }
}
