/* Layout: an editorial "studio in afternoon light". Sand paper ground with slow window shadows drifting
   across the top, a high-contrast serif for big statements (italic for the turn of phrase), tiny tracked
   labels as the structure, hairlines between bands. Ink everywhere; no global color accent (ink),
   each case study takes its own brand accent. */
:root {
  --bg: #F3F1E9;        /* ivory */
  --paper: #F9F8F3;     /* lighter ivory for panels */
  --ink: #17140F;
  --muted: #6E665A;
  --line: rgba(23, 20, 15, .16);
  --line-strong: rgba(23, 20, 15, .55);
  --shade: rgba(60, 40, 18, .22);    /* window shadows */
  --light: rgba(255, 236, 205, .75); /* sun patch */
  --card: #FAF9F5;
  --accent: var(--ink); --brand: var(--ink); --on-accent: var(--bg); /* no global color accent: ink. Case studies set their own. */
  --fd: #1F5FFF; --hd: #E85C02; --sf: #66752A; --gd: #6F3FD6;
  /* Type: big grotesk titles with a serif italic accent, small tracked eyebrows, readable body. */
  --serif: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; /* titles (kept the old variable name) */
  --serif-accent: "Instrument Serif", "Iowan Old Style", Georgia, serif; /* italic accent words */
  --accent-weight: 400;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1400px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120E; --paper: #1D1914; --ink: #EEE6D8; --muted: #9A9081; --line: rgba(238, 230, 216, .14); --line-strong: rgba(238, 230, 216, .5);
    --shade: rgba(0, 0, 0, .55); --light: rgba(255, 196, 120, .13); --card: #1F1B16;
    --accent: var(--ink); --brand: var(--ink); --on-accent: var(--bg); --fd: #6E98FF; --hd: #FF7F2A; --sf: #AEBD5C; --gd: #B79CFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15120E; --paper: #1D1914; --ink: #EEE6D8; --muted: #9A9081; --line: rgba(238, 230, 216, .14); --line-strong: rgba(238, 230, 216, .5);
  --shade: rgba(0, 0, 0, .55); --light: rgba(255, 196, 120, .13); --card: #1F1B16;
  --accent: var(--ink); --brand: var(--ink); --on-accent: var(--bg); --fd: #6E98FF; --hd: #FF7F2A; --sf: #AEBD5C; --gd: #B79CFF;
  color-scheme: dark;
}
body[data-accent="fd"] { --accent: var(--fd); }
body[data-accent="hd"] { --accent: var(--hd); }
body[data-accent="sf"] { --accent: var(--sf); }
body[data-accent="gd"] { --accent: var(--gd); }
body[data-accent="ink"] { --accent: var(--ink); } /* motion project pages: no color accent */

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; transition: background .6s, color .6s; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
.gut { position: relative; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .gut { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Type */
.lab { font: 500 11.5px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.serif i, .serif em { font-family: var(--serif-accent); font-style: italic; font-weight: 400; letter-spacing: -.02em; font-size: 1.06em; }
.idx { font: 400 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-right: 8px; position: relative; top: -1px; }
.dash { display: block; width: 56px; height: 1px; background: var(--line-strong); }
.note { font: italic 400 1.35rem/1.1 var(--serif); color: var(--accent); letter-spacing: -.01em; }

/* Atmosphere: slow window shadows and a sun patch */
.atmo { position: absolute; inset: 0 0 auto; height: 1200px; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.atmo .sun { position: absolute; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; right: -12vw; top: -22vw; background: radial-gradient(closest-side, var(--light), transparent 72%); animation: sun 26s ease-in-out infinite alternate; }
.atmo .blinds { position: absolute; inset: -20% -30%; transform: rotate(-24deg); display: flex; gap: 4.5vw; padding-left: 38%; animation: drift 46s ease-in-out infinite alternate; filter: blur(22px); }
.atmo .blinds i { flex: none; width: 5.5vw; height: 100%; background: var(--shade); }
.atmo .blinds i:nth-child(2n) { width: 2.6vw; opacity: .7; }
.atmo .blinds i:nth-child(3n) { width: 9vw; opacity: .55; }
.atmo .frame { position: absolute; top: -10%; bottom: 0; left: 6%; width: 3vw; background: var(--shade); filter: blur(30px); opacity: .7; animation: drift2 38s ease-in-out infinite alternate; }
.atmo .leaf { position: absolute; right: 8%; top: 4%; width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; background:
  radial-gradient(40% 18% at 30% 30%, var(--shade), transparent 70%), radial-gradient(30% 14% at 60% 52%, var(--shade), transparent 70%), radial-gradient(26% 12% at 42% 74%, var(--shade), transparent 70%);
  filter: blur(14px); opacity: .6; animation: sway 9s ease-in-out infinite alternate; transform-origin: 70% 0; }
@keyframes sun { to { transform: translate(-6vw, 4vw) scale(1.08); } }
@keyframes drift { to { transform: rotate(-21deg) translateX(-5vw); } }
@keyframes drift2 { to { transform: translateX(3vw); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(3deg) translateY(10px); } }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .32  0 0 0 0 .22  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: .25; } }

/* Text nav */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; transition: background .4s; }
/* Soft edge instead of a hard line: a short fade below the bar, so content slides under it */
.bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; background: linear-gradient(color-mix(in srgb, var(--bg) 88%, transparent), transparent); opacity: 0; transition: opacity .4s; }
.bar.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar.solid::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) { .bar.solid { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } .bar::after { background: linear-gradient(var(--bg), transparent); } }
.bar .gut { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; padding-block: 20px; }
.bar a { text-decoration: none; }
.bar nav { display: flex; gap: clamp(18px, 3.4vw, 48px); }
.bar nav a { position: relative; padding-block: 4px; }
.bar nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; }
.bar .right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
/* Page timeline under the nav: scroll = playhead, sections = keyframes you can click */
.bar .tc { font: 400 9.5px/1 var(--sans); letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar .scrubw { display: block; padding-block: 0 6px; margin-top: -8px; }
.scrub { position: relative; height: 14px; }
.scrub .track { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.scrub .done { position: absolute; left: 0; top: 7px; height: 1px; width: 0; background: var(--accent); }
.scrub .head { position: absolute; top: 0; left: 0; width: 1px; height: 14px; background: var(--accent); }
.scrub .key { position: absolute; top: 3px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); border: 1px solid var(--line-strong); background: var(--bg); padding: 0; cursor: pointer; transition: background .3s, border-color .3s; }
.scrub .key.hit { background: var(--accent); border-color: var(--accent); }
.scrub .key span { position: absolute; left: 50%; top: 14px; transform: rotate(-45deg) translate(-30%, 0); transform-origin: 0 0; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; color: var(--muted); }
.scrub .key:hover span, .scrub .key:focus-visible span { opacity: 1; }
.theme { background: none; border: 0; color: var(--ink); padding: 4px 0; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.theme i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1px solid var(--ink); }
.roll { display: inline-flex; overflow: hidden; vertical-align: top; height: 1.55em; }
.roll > span { display: inline-block; position: relative; white-space: pre; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 22ms); }
.roll > span::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
a:hover > .roll > span, a:focus-visible > .roll > span { transform: translateY(-100%); }

/* Buttons */
.btn { display: inline-flex; gap: 12px; align-items: center; padding: 14px 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 999px; font: 400 10.5px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; transition: background .35s, color .35s; }
.btn.solid, .btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

.view[hidden] { display: none !important; }
.view.enter > * { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ============ HERO ============ */
.hero { z-index: 1; padding-block: clamp(28px, 6vh, 64px) 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.hl { display: grid; gap: 30px; align-content: center; }
.name { font-size: clamp(3.9rem, 7.6vw, 7.8rem); line-height: .88; letter-spacing: -.035em; will-change: transform; }
.name .ln { display: block; white-space: nowrap; }
.name .wd { display: inline-block; }
.name .ch { display: inline-block; }
.name .ln { animation: lnIn .62s var(--ease) both; } /* reveal by line, no blur, done in under 1s */
.name .ln:nth-child(2) { animation-delay: 70ms; } .name .ln:nth-child(3) { animation-delay: 140ms; } .name .ln:nth-child(4) { animation-delay: 210ms; }
@keyframes lnIn { from { transform: translateY(28%); opacity: 0; } to { transform: none; opacity: 1; } }
/* Small text under the headline: line length, space between line and text, line spacing */
.hl .sub { display: grid; grid-template-columns: 90px minmax(0, max-content); gap: 64px; align-items: start; }
.hl .sub .dash { width: 100%; margin-top: 10px; }
@media (max-width: 720px) { .hl .sub { grid-template-columns: 48px minmax(0, max-content); gap: 28px; } }
.hl .sub p { line-height: 2; }
.explore { display: inline-flex; gap: 16px; align-items: center; text-decoration: none; width: max-content; }
.explore .c { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; }
.explore .c::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); transition: background .3s; }
.explore:hover .c { transform: scale(1.12); background: var(--ink); }
.explore:hover .c::before { background: var(--bg); }

/* Frame stage */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 100%; perspective: 1400px; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .55; }
.orbit circle { fill: var(--ink); }
.orbit .ball { fill: var(--card); stroke: var(--line-strong); stroke-width: 1; }
.panel { position: absolute; border-radius: 6px; overflow: hidden; background: #2A241D center / cover no-repeat; box-shadow: 0 40px 80px -40px rgba(30, 18, 6, .55), 0 2px 0 rgba(255,255,255,.25) inset; will-change: transform; transition: opacity .6s; }
.panel.main { left: 12%; top: 18%; width: 70%; aspect-ratio: 16 / 10; z-index: 2; transform-style: preserve-3d; }
.panel.main .im { position: absolute; inset: -8%; background: center / cover no-repeat; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.panel.main .im.b { opacity: 0; }
.panel.main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22), transparent 38%, transparent 70%, rgba(255,255,255,.08)); pointer-events: none; }
.panel.p2 { right: 0; top: 2%; width: 30%; aspect-ratio: 4 / 5; opacity: .9; z-index: 1; }
.panel.p3 { left: 0; bottom: 6%; width: 34%; aspect-ratio: 5 / 4; z-index: 3; }
.panel.glass { right: 6%; bottom: 10%; width: 26%; aspect-ratio: 1; background: linear-gradient(140deg, rgba(255,255,255,.35), rgba(255,255,255,.06)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 30px 60px -30px rgba(30,18,6,.4); z-index: 3; }
.call { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.call::before { content: ""; flex: none; width: .48em; height: .48em; border-radius: 50%; background: var(--ink); }
.call { left: 0; top: 0; padding-block: 8px; cursor: default; will-change: transform; transition: opacity .6s, color .3s; }
.call.flip { flex-direction: row-reverse; }
.call.hot { opacity: 1 !important; z-index: 6; }
.stage .cap { position: absolute; left: 12%; top: calc(18% + 70% * .625 * 1 + 14px); z-index: 4; display: flex; gap: 14px; }

/* Hero reel box */
.rframe { position: relative; display: block; text-decoration: none; width: min(100%, 440px); justify-self: end; }
.rframe .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #2A241D; }
.rframe .im { position: absolute; inset: -6% 0; background: center / cover no-repeat; will-change: transform; transition: scale 1.2s var(--ease); }
.rframe:hover .im { scale: 1.03; }
.safe { position: absolute; inset: 7%; border: 1px dashed rgba(255,255,255,.55); border-radius: 4px; opacity: 0; transition: opacity .4s, inset .6s var(--ease); pointer-events: none; }
.safe::before, .safe::after { content: ""; position: absolute; background: rgba(255,255,255,.55); }
.safe::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.safe::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.rframe:hover .safe { opacity: 1; inset: 9%; }
.rframe .rec { position: absolute; left: 14px; top: 14px; display: inline-flex; gap: 8px; align-items: center; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.rframe .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF4A3D; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rframe .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }

/* Project rail */
.rail { display: grid; gap: 14px; align-self: center; }
.rail button { display: grid; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; }
.rail .t { width: 64px; aspect-ratio: 4 / 5; border-radius: 4px; background: center / cover no-repeat #2A241D; opacity: .55; filter: grayscale(.6); transition: opacity .4s, filter .4s, transform .5s var(--ease); outline: 1px solid transparent; outline-offset: 3px; }
.rail button:hover .t, .rail button.on .t { opacity: 1; filter: none; }
.rail button.on .t { outline-color: var(--line-strong); }

.cue { display: flex; gap: 22px; align-items: flex-end; justify-content: space-between; padding-block: 34px 26px; }
.cue .s { display: grid; gap: 10px; }
.cue .s i { display: block; width: 1px; height: 42px; background: var(--line-strong); position: relative; overflow: hidden; }
.cue .s i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Keyframe timeline (plays once) */
.tl { position: relative; padding-block: 34px 34px; border-top: 1px solid var(--line); z-index: 1; }
.tl .row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.tl .lane { position: relative; }
.tl .track { position: relative; height: 1px; background: var(--line-strong); margin-top: 6px; }
.tl .done { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--ink); }
.tl .head { position: absolute; top: -12px; left: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 0; z-index: 2; }
.tl .head code { font: 500 10px var(--sans); letter-spacing: .12em; background: var(--accent); color: var(--on-accent); padding: 4px 7px 3px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.tl .head i { width: 1px; height: 30px; background: var(--accent); }
.tl .keys { position: relative; height: 56px; margin-top: -6px; }
.tl .key { position: absolute; top: 0; transform: translateX(-5px); display: grid; gap: 12px; }
.tl .key b { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--ink); background: var(--bg); transition: background .3s, border-color .3s; }
.tl .key span { color: var(--muted); white-space: nowrap; transition: color .3s; }
.tl .key.hit b { background: var(--ink); }
.tl .key.hit span { color: var(--ink); }
.tl .key.last { transform: translateX(calc(-100% + 5px)); justify-items: end; text-align: right; }
.tl .key.last.hit b { background: var(--accent); border-color: var(--accent); }

/* Section heads, as in the editorial refs: giant word + tiny stacked copy */
.sec { position: relative; z-index: 1; padding-block: clamp(80px, 12vw, 150px) 0; }
.shead { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.shead h2 { font-size: clamp(3.6rem, 8.6vw, 8rem); }
.shead .stack { padding-bottom: 1.2em; }
.shead .aside { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: center; justify-self: end; max-width: 330px; padding-bottom: 1.2em; }
.shead .idx { position: absolute; margin-top: -2em; }
.shead .ttl { position: relative; display: grid; gap: 14px; }

/* Mirage */
.mir-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 0 18px; }
.mir-tags span:nth-child(2) { text-align: center; } .mir-tags span:last-child { text-align: right; }
.mirage-wrap { position: relative; }
#mirage { display: block; width: 100%; touch-action: pan-y; cursor: crosshair; }
.mirage-fallback { font-size: 26vw; text-align: center; }
.mirage-fallback .b { display: none; }
.mirage-fallback:hover .a { display: none; } .mirage-fallback:hover .b { display: inline; font-style: italic; }
.mirage-wrap .hint { position: absolute; right: 1%; top: -12px; display: flex; align-items: center; gap: 4px; pointer-events: none; transition: opacity .8s; }
.mirage-wrap .hint svg { width: 52px; height: 40px; }
.mirage-wrap.used .hint { opacity: 0; }
.mirage-wrap .lab.side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; pointer-events: none; color: #fff; mix-blend-mode: difference; }
.mirage-wrap .lab.l { left: 1.4%; } .mirage-wrap .lab.r { right: 1.4%; }
.thesis { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-block: 22px 0; align-items: end; }
.thesis .st { font: 400 clamp(1.9rem, 3.5vw, 3.3rem)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.thesis .st i, .ab-copy .big i { font-family: var(--serif-accent); font-weight: var(--accent-weight); }
.thesis .st, .note, .mail code, .princ h3, .nums .n, .cs-head .lede p, .ab-copy .big, .where b, .case .ph .big {  }
.thesis .side { display: grid; gap: 22px; color: var(--muted); max-width: 46ch; }

/* Work */
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }
.case { grid-column: span 4; display: grid; gap: 14px; text-decoration: none; min-width: 0; }
.case .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #2A241D; max-width: 100%; }
.case .ph .im { position: absolute; inset: -6% 0; background: center / cover no-repeat; transition: transform 1.2s var(--ease); will-change: transform; }
.case:hover .ph .im { transform: scale(1.045); }
.case .ph .n { position: absolute; left: 14px; top: 12px; color: #fff; mix-blend-mode: difference; }
.case .ph .big { position: absolute; right: 16px; bottom: 10px; font: italic 400 clamp(2.4rem, 4vw, 3.6rem)/1 var(--serif); color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .7s var(--ease); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.case:hover .ph .big { opacity: 1; transform: none; }
.case .meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.case h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); grid-column: 1 / -1; padding-block: 2px 6px; }
.case .pm { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.case .pm b { color: var(--ink); font-weight: 550; }
.case[data-a="fd"] { --accent: var(--fd); } .case[data-a="hd"] { --accent: var(--hd); } .case[data-a="sf"] { --accent: var(--sf); } .case[data-a="gd"] { --accent: var(--gd); }

/* Work: a pinned reel. Scroll wipes from one case study to the next. */
.reel { position: relative; height: calc(var(--n, 3) * 90vh + 100vh); margin-top: 18px; }
.stage-r { position: sticky; top: var(--barh, 0px); height: calc(100vh - var(--barh, 0px)); height: calc(100svh - var(--barh, 0px)); overflow: hidden; border-radius: 6px; background: #1C1814; color: #fff; clip-path: inset(var(--cy, 0%) var(--cx, 0%) round 6px); will-change: clip-path; }
.slides, .slide { position: absolute; inset: 0; }
.slide { clip-path: inset(var(--w, 0%) 0 0 0); }
.slide .im { position: absolute; inset: -8% 0; background: center / cover no-repeat; transform: scale(var(--z, 1.06)); will-change: transform; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,8,.66) 0%, rgba(14,11,8,.22) 36%, rgba(14,11,8,.32) 58%, rgba(14,11,8,.86) 100%); }
.stage-r .open { position: absolute; inset: 0; z-index: 2; }
.titles { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); top: clamp(76px, 9vh, 110px); z-index: 3; pointer-events: none; }
.titles h3 { position: absolute; left: 0; top: 0; margin: 0; font: 400 clamp(2.6rem, 6.2vw, 6rem)/.95 var(--sans); letter-spacing: -.035em; color: #fff; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .9s var(--ease); max-width: 12ch; }
.titles h3.on { opacity: 1; transform: none; }
.stage-r .count { position: absolute; right: clamp(20px, 3vw, 40px); top: clamp(80px, 9.4vh, 114px); z-index: 3; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
/* Bottom: one progress line split into segments, and only the current project's details */
.tabs { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(22px, 4vh, 40px); z-index: 3; display: grid; gap: 22px; }
.rprog { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.rprog button { all: unset; cursor: pointer; position: relative; height: 14px; }
.rprog button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(255,255,255,.3); }
.rprog button i { position: absolute; left: 0; top: 5.5px; height: 2px; width: 0; background: var(--ta); }
.rprog button:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.tabset { display: grid; }
.tab { grid-area: 1 / 1; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: end; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.tab.on { opacity: 1; transform: none; pointer-events: auto; }
.tab .thumb { width: 72px; aspect-ratio: 4 / 5; border-radius: 3px; background: center / cover no-repeat #2A241D; }
.tab .txt { display: grid; gap: 6px; min-width: 0; }
.tab .nm { font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.05 var(--sans); letter-spacing: -.02em; color: #fff; margin-bottom: 4px; }
.tab .k { color: #fff; } .tab .y { color: rgba(255,255,255,.6); }
.tab p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.8); max-width: 40ch; }
.tab a { color: #fff; text-decoration: none; position: relative; z-index: 4; white-space: nowrap; }
.tab a:hover { color: var(--ta); }
.tab .dot { background: var(--ta); }
@media (max-width: 640px) {
  .titles { right: 72px; }
  .tab { grid-template-columns: 56px minmax(0, 1fr); }
  .tab .thumb { width: 56px; }
  .tab a { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .stage-r { clip-path: none; } .titles h3, .tab .info { transition: none; } }

/* Archive filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; font: 400 10px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; background: transparent; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
button.chip:hover { border-color: var(--ink); color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.at[hidden] { display: none; }

.more { display: flex; justify-content: center; padding-top: 28px; }
.more[hidden] { display: none; }
.at.fresh { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 50ms); }

/* Archive grid */
.arch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 18px; }
.at { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #2A241D; text-decoration: none; color: #fff; }
.at.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.at .im { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.at:hover .im { transform: scale(1.05); filter: none; }
.at::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(12, 9, 5, .72)); pointer-events: none; }
.at .lb { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; justify-content: space-between; gap: 10px; font-size: 9.5px; }
.at .lb span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Next chapter + constellation */
.chapter { position: relative; z-index: 1; margin-top: clamp(80px, 12vw, 150px); border-top: 1px solid var(--line); background: var(--paper); overflow: hidden; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chapter .gut { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); padding-block: clamp(70px, 9vw, 120px); pointer-events: none; }
.chapter .gut a, .chapter .gut button { pointer-events: auto; }
.chapter h2 { font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: .95; text-wrap: balance; }
.chapter .bio { display: grid; gap: 18px; color: var(--muted); max-width: 52ch; align-content: end; }
.chapter .bio p:first-child { color: var(--ink); }
.princ { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); margin-top: 20px; }
.princ div { padding: 20px 22px 6px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.princ div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.princ h3 { font: 400 1.65rem/1.05 var(--serif); letter-spacing: -.01em; }
.princ p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.nums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nums div { padding: 22px 22px 0 0; display: grid; gap: 4px; min-width: 0; }
.nums div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.nums .n { font: 400 clamp(3rem, 5.6vw, 5rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nums p { color: var(--muted); font-size: 13.5px; }

/* Contact */
.contact { position: relative; z-index: 1; padding-block: clamp(90px, 13vw, 170px) 0; display: grid; gap: 34px; }
.contact h2 { font-size: clamp(3.4rem, 9.6vw, 9.4rem); line-height: .86; }
.contact h2 .ln2 { display: block; padding-left: 1.1em; }
.contact .row { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line-strong); padding-top: 24px; }
.mail { position: relative; display: inline-block; padding: 10px 18px; }
.mail code { font: italic 400 clamp(1.5rem, 3vw, 2.2rem) var(--serif); user-select: all; overflow-wrap: anywhere; }
.mail svg { position: absolute; inset: -10px -16px; width: calc(100% + 32px); height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.mail svg path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.6s var(--ease); }
.mail.drawn svg path { stroke-dashoffset: 0; }
footer.f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 22px 40px; border-top: 1px solid var(--line); margin-top: 60px; }
footer.f a { text-decoration: none; }
footer.f > :nth-child(2) { text-align: center; } footer.f > :last-child { text-align: right; }

/* ============ CASE STUDY ============ */
.cs { position: relative; z-index: 1; }
.cs > .atmo { top: calc(-1 * var(--barh, 96px)); }
.cs-top { padding-block: clamp(30px, 6vh, 70px) 0; }
.crumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 36px; }
.crumbs > :nth-child(2) { text-align: center; } .crumbs > :last-child { text-align: right; }
.crumbs a { text-decoration: none; }
.cs-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: 40px; }
.cs-head h1 { font-size: clamp(3.4rem, 8.4vw, 8.2rem); line-height: .86; }
.cs-head h1 i { display: block; padding-left: .6em; color: var(--accent); }
.cs-head .lede { display: grid; gap: 22px; }
.cs-head .lede p { font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; }
.cs-band { position: relative; aspect-ratio: 21 / 9; border-radius: 6px; overflow: hidden; background: #2A241D; max-width: 100%; }
.cs-band .im { position: absolute; inset: -10% 0; background: center / cover no-repeat; will-change: transform; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.facts div { padding: 18px 20px 20px 0; display: grid; gap: 6px; min-width: 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; } .facts dd { font-size: 15px; }
.steps { padding-top: 40px; }
.step { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.55fr); gap: 28px; padding-block: 44px; border-top: 1px solid var(--line); }
.step .n { color: var(--accent); padding-top: 10px; }
.step h2 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: .98; align-self: start; position: sticky; top: 90px; text-wrap: balance; }
.step .body { display: grid; gap: 16px; max-width: 66ch; min-width: 0; }
.step .body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }
.step .body li::marker { color: var(--accent); }
.step .body strong { font-weight: 600; }
.media { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--card) center / cover no-repeat; max-width: 100%; }
.media.tall { aspect-ratio: 4 / 5; }
.media span { position: absolute; left: 10px; bottom: 10px; font: 500 9.5px var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink); background: var(--bg); padding: 4px 8px; border-radius: 3px; }
.media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step.pm { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 44px 32px; margin-top: 30px; }
.step.pm h2 .note { display: block; margin-top: 12px; font-size: .5em; }
.next { display: grid; gap: 10px; padding-block: 60px 20px; text-decoration: none; border-top: 1px solid var(--line-strong); margin-top: 90px; }
.next h3 { font-size: clamp(2.8rem, 7vw, 6.6rem); transition: transform .7s var(--ease), color .4s; }
.next:hover h3 { transform: translateX(16px); color: var(--na); }

/* About */
.ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); padding-block: 10px 30px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--card) 0 14px, var(--paper) 14px 28px); position: relative; max-width: 100%; }
.portrait span { position: absolute; left: 12px; bottom: 12px; }
.ab-copy { display: grid; gap: 20px; max-width: 62ch; }
.ab-copy p { color: var(--muted); }
.ab-copy .big { font: 400 clamp(1.8rem, 2.8vw, 2.6rem)/1.05 var(--serif); color: var(--ink); letter-spacing: -.01em; }
/* Work experience (About): medium size, airy rows, years on the right */
.xp { display: grid; gap: clamp(36px, 5vw, 60px); padding-top: clamp(80px, 12vw, 150px); }
.xp-h { display: grid; gap: 14px; }
.xp-h h2 { margin: 0; font: 400 clamp(2rem, 3.6vw, 3.1rem)/1 var(--sans); letter-spacing: -.02em; text-transform: uppercase; }
.where { display: grid; gap: clamp(18px, 2.2vw, 26px); max-width: 860px; }
.where .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; cursor: default; }
.where b { display: block; font: 400 clamp(1.05rem, 1.4vw, 1.25rem)/1.25 var(--sans); letter-spacing: -.005em; transition: color .3s, transform .5s var(--ease); }
.where .at-w { display: block; margin-top: 3px; font: 400 9.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 60ch; }
.where .yr { font: 400 10px/1.9 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; white-space: nowrap; text-transform: uppercase; }
.where .row[data-thumb]:hover b { transform: translateX(6px); }
.peek { position: fixed; left: 0; top: 0; z-index: 60; width: 180px; aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.peek.on { opacity: 1; }
.peek i { position: absolute; inset: 0; border-radius: 4px; background: center / cover no-repeat #2A241D; box-shadow: 0 24px 50px -24px rgba(20, 12, 4, .55); animation: pkIn .45s var(--ease); }
@keyframes pkIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
/* Brands & Clients: a slow logo carousel, no boxes */
.logos { position: relative; overflow: hidden; padding-block: 40px 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lg-track { display: flex; width: max-content; animation: lgRun 38s linear infinite; }
.logos:hover .lg-track { animation-play-state: paused; }
.lg-dup { display: contents; }
.logos .lg { flex: none; display: flex; align-items: center; justify-content: center; height: 70px; padding-inline: clamp(28px, 4vw, 56px); }
.logos img { display: block; width: auto; height: 34px; max-width: 170px; object-fit: contain; filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; opacity: .7; transition: filter .35s, opacity .35s; }
.logos .lg:hover img { filter: none; opacity: 1; }
.lg-nfl img, .lg-homedepot img { height: 52px; }
.lg-sony img { height: 22px; }
.lg-t { font: 600 1.9rem/1 var(--serif); font-style: italic; letter-spacing: -.01em; color: var(--ink); opacity: .7; white-space: nowrap; }
@keyframes lgRun { to { transform: translateX(-50%); } }
:root[data-theme="dark"] .logos img { filter: grayscale(1) invert(1) contrast(1.2); mix-blend-mode: screen; }
:root[data-theme="dark"] .logos .lg:hover img { filter: grayscale(1) invert(1) contrast(1.2) brightness(1.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logos img { filter: grayscale(1) invert(1) contrast(1.2); mix-blend-mode: screen; } :root:not([data-theme="light"]) .logos .lg:hover img { filter: grayscale(1) invert(1) contrast(1.2) brightness(1.3); } }

/* Cursor */
.cur { position: fixed; left: 0; top: 0; z-index: 60; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--ink); pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s, background .3s; will-change: transform; }
.cur span { font: 500 9.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .25s; }
.cur.on.view { opacity: 1; }
.cur { transform-origin: center; } .cur span { opacity: 1; }
.cur.view span { opacity: 1; }
.cur.hide { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* Scroll reveal: only after JS marks it, so the page is complete at rest */
.rv { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--rd, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font: 500 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: all .4s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .princ, .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .princ div:nth-child(3), .nums div:nth-child(3) { padding-left: 0; border-left: 0; }
  .princ div:nth-child(n+3), .nums div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .bar .gut { grid-template-columns: minmax(0, 1fr) auto; }
  .bar .loc { display: none; }
  .bar nav { justify-content: flex-end; gap: 16px; }
  .bar .right { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: calc(100% + 6px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .rframe { justify-self: start; width: min(100%, 420px); }
  .bar .scrubw { margin-top: 22px; }
  .scrub .key span { display: none; }
  .shead { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shead .aside { justify-self: start; }
  .shead .stack, .shead .aside { padding-bottom: 0; }
  .thesis, .chapter .gut, .cs-head, .ab-grid { grid-template-columns: minmax(0, 1fr); }
  .case { grid-column: 1 / -1; }
  .case .ph { aspect-ratio: 4 / 3.6; }
  .arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step h2 { position: static; }
  .step.pm { padding: 30px 20px; }
  .where .row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .where .yr { order: -1; color: var(--muted); }
  .mirage-wrap .lab.side { display: none; }
  .mirage-wrap .hint { top: auto; bottom: -38px; right: 0; }
  .thesis { padding-top: 64px; }
  .tl .row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 560px) {
  .bar nav a.hide-s { display: none; }
  .bar .tc { display: none; }
  .mir-tags { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mir-tags span:nth-child(2) { display: none; }
  .princ, .nums { grid-template-columns: minmax(0, 1fr); }
  .princ div, .nums div { padding-left: 0 !important; border-left: 0 !important; }
  .princ div + div, .nums div + div { border-top: 1px solid var(--line); }
  .tl .key:not(.first):not(.last) span { display: none; }
  .media-pair { grid-template-columns: minmax(0, 1fr); }
  .crumbs, footer.f { grid-template-columns: minmax(0, 1fr); }
  .crumbs > *, footer.f > * { text-align: left !important; }
  .logos img { height: 26px; } .lg-nfl img, .lg-homedepot img { height: 40px; } .lg-sony img { height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep quick fades (hover color, theme switch, reveals); remove movement: transforms, parallax, wipes, ambient loops. */
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color, fill, stroke, box-shadow !important; transition-duration: .25s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .atmo *, .lg-track, .cue .s i::after, .rframe .rec::before { animation: none !important; }
  .rv { transform: none !important; transition-duration: .4s !important; }
  .view.enter > *, .name .ln { animation: fadeOnly .35s ease both !important; }
  .peek, .cur { display: none; }
  .lg-track { flex-wrap: wrap; width: auto; justify-content: center; } .lg-dup { display: none; }
  .snap { display: none; }
}
@keyframes fadeOnly { from { opacity: 0; } }

/* Motion project pages (#m-<key>) */
.mp-info { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: 8px 0 44px; border-top: 1px solid var(--line); padding-top: 28px; }
.mp-about { font-size: 17px; line-height: 1.6; max-width: 62ch; margin: 0; }
.mp-credits { display: grid; gap: 12px; margin: 0; align-content: start; }
.mp-credits div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.mp-credits dt, .mp-credits dd { margin: 0; } .mp-credits dd { font-size: 14px; }
@media (max-width: 720px) { .mp-info { grid-template-columns: minmax(0, 1fr); } }
.mp .cs-head h1 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); line-height: .9; }
.mp-vids { display: grid; gap: 16px; }
.mp-vids .vid { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #191919; }
.mp-vids iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp-stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.mp-stills img { display: block; width: 100%; height: auto; border-radius: 6px; background: #2A241D; }
.mp-stills img.wide, .mp-stills.one img { grid-column: 1 / -1; }
.mp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 90px; border-top: 1px solid var(--line); }
.mp-nav a { display: grid; gap: 8px; padding-top: 22px; text-decoration: none; color: inherit; }
.mp-nav a:last-child { text-align: right; }
.mp-nav b { font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.01em; text-transform: none; transition: color .3s; }
.mp-nav a:hover b { color: var(--accent); }
.mp-nav + .next { margin-top: 40px; }
@media (max-width: 720px) { .mp-stills { grid-template-columns: minmax(0, 1fr); } .mp-nav b { font-size: 1.2rem; } }

/* ============ PROJECT PAGES (one template for case studies and motion projects) ============ */
.pg { position: relative; z-index: 1; padding-block: clamp(36px, 6vw, 72px) 0; }
.crumb { display: flex; justify-content: space-between; gap: 12px; padding-bottom: clamp(28px, 5vw, 56px); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.ptop { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; }
.ptop .ttl { grid-column: span 7; display: grid; gap: 18px; }
.ptop h1 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: .96; text-wrap: balance; }
.ptop h1 i { font-family: var(--serif-accent); font-weight: var(--accent-weight); }
.ptop h1 .pdot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--accent); margin-left: .06em; vertical-align: .05em; }
.ptop .lede { grid-column: 9 / span 4; font: 400 clamp(1.15rem, 1.6vw, 1.4rem)/1.3 var(--serif); letter-spacing: -.005em; text-wrap: pretty;  margin: 0; }
.pfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(32px, 5vw, 56px) 0 0; border-top: 1px solid var(--line-strong); }
.pfacts > div { display: grid; gap: 6px; padding: 16px 20px 18px 0; min-width: 0; }
.pfacts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.pfacts dd { margin: 0; font-size: 15px; line-height: 1.4; }
.phero { position: relative; aspect-ratio: 16 / 8; border-radius: 16px; overflow: hidden; background: #2A241D; margin-top: 8px; }
.phero .im { position: absolute; inset: -6% 0; background: center / cover no-repeat; will-change: transform; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; }
.ptop .ptags { grid-column: 8 / span 5; justify-content: flex-end; align-self: end; padding: 0 0 10px; }
.phero + .pfacts { margin-top: 20px; }
.ptop + .phero { margin-top: clamp(28px, 4vw, 44px); }
.story { display: grid; padding-top: clamp(48px, 7vw, 88px); }
.pstep { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding-block: 30px 36px; border-top: 1px solid var(--line); }
.pstep .sl { grid-column: span 4; display: grid; gap: 10px; align-content: start; position: sticky; top: 110px; align-self: start; }
.pstep .sl b { font: 400 clamp(1.35rem, 2vw, 1.7rem)/1.1 var(--serif); letter-spacing: -.01em;  }
.pstep .sl .n { color: var(--accent); font-variant-numeric: tabular-nums; }
.pstep .sb { grid-column: 5 / span 8; display: grid; gap: 16px; max-width: 68ch; min-width: 0; }
.pstep .sb p { margin: 0; }
.pstep .sb ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }
.pstep .sb strong { font-weight: 500; }
.pstep.pm { background: var(--paper); border-radius: 16px; border-top: 0; padding-inline: clamp(16px, 2.4vw, 32px); margin-top: 12px; }
.pstep.pm .sl .n { color: var(--brand); }
.pmedia { position: relative; border-radius: 12px; overflow: hidden; background: var(--card); margin-top: 6px; }
.pmedia img { display: block; width: 100%; height: auto; }
.pmedia span { position: absolute; left: 12px; bottom: 10px; padding: 5px 9px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 88%, transparent); font: 400 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pmedia.tall img { aspect-ratio: 9 / 16; object-fit: cover; }
.pmedia video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pstep .books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pstep .books .pmedia img { aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 640px) { .pstep .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pstep .media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.watch { display: grid; }
.wv { border-top: 1px solid var(--line); }
.wv:last-child { border-bottom: 1px solid var(--line); }
.wrow { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; align-items: center; cursor: pointer; }
.wrow:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
.wrow .pl { display: inline-flex; gap: 12px; align-items: center; }
.wrow .pl i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-style: normal; font-size: 10px; transition: background .3s, color .3s, transform .5s var(--ease); }
.wrow:hover .pl i, .wv.open .pl i { background: var(--ink); color: var(--bg); }
.wv.open .pl i { transform: rotate(90deg); }
.wrow .pl b { font: 400 1.25rem/1.1 var(--serif); }
.wbox { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.wv.open .wbox { grid-template-rows: 1fr; }
.win { overflow: hidden; min-height: 0; }
.wv .vid { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #191919; margin-bottom: 18px; clip-path: inset(0 0 100% 0 round 10px); transition: clip-path .7s var(--ease) .05s; }
.wv.open .vid { clip-path: inset(0 0 0 0 round 10px); }
.wv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: #EEE6D8; text-align: center; padding: 20px; }
.vph .btn { border-color: #EEE6D8; color: #EEE6D8; }
.vph .btn:hover { background: #EEE6D8; color: #191919; }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stills .pmedia:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.credits { display: grid; margin: 0; }
.credits > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.credits > div:last-child { border-bottom: 1px solid var(--line); }
.credits dt { color: var(--muted); } .credits dd { margin: 0; }
.pnext { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: center; padding-block: 36px; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); text-decoration: none; }
.pnext .tx { grid-column: span 8; display: grid; gap: 12px; }
.pnext h2 { font-size: clamp(2rem, 4vw, 3.6rem); transition: color .35s; }
.pnext .ph { grid-column: span 4; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #2A241D; }
.pnext .ph div { width: 100%; height: 100%; background: center / cover no-repeat; transition: transform 1s var(--ease); }
.pnext:hover h2 { color: var(--nc, var(--accent)); }
.pnext:hover .ph div { transform: scale(1.04); }
.pg footer.f { margin-top: 28px; }
@media (max-width: 980px) {
  .ptop .ttl, .ptop .lede, .ptop .ptags { grid-column: 1 / -1; }
  .ptop .ptags { justify-content: flex-start; }
  .pfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfacts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pfacts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pstep .sl { grid-column: 1 / -1; position: static; } .pstep .sb { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .phero { aspect-ratio: 4 / 3; }
  .pstep .media-pair, .stills { grid-template-columns: 1fr; }
  .pnext .tx, .pnext .ph { grid-column: 1 / -1; }
  .credits > div { grid-template-columns: 1fr; gap: 2px; }
  .crumb { flex-direction: column; }
}

/* Page transition: closing window */
.snap { position: fixed; inset: 0; z-index: 15; overflow: hidden; background: var(--bg); pointer-events: none; will-change: clip-path; }
.snap.edge { z-index: 14; background: var(--line-strong); }
.snap .rv { opacity: 1; transform: none; }
.snap > :not(.atmo) * { animation: none !important; transition: none !important; }

/* Press feedback: an instant tiny press-down */
.btn:active, button.chip:active, .explore:active .c, .rprog button:active, .wrow:active, .bar nav a:active, .bar .right button:active, .tab a:active { transform: scale(.97); transition-duration: 90ms; }
.scrub .key:active { transform: rotate(45deg) scale(.85); }

/* Project header: title sits over the hero image (test) */
.phead { position: relative; border-radius: 16px; overflow: hidden; background: #1E1A15; min-height: min(78vh, 760px); display: grid; color: #F6F3EC; isolation: isolate; }
.phead .phero { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; z-index: -2; }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,8,6,.55) 0%, rgba(10,8,6,.05) 30%, rgba(10,8,6,.05) 50%, rgba(10,8,6,.7) 100%), linear-gradient(90deg, rgba(10,8,6,.45), transparent 60%); }
.phead .ph-in { display: grid; grid-template-rows: auto 1fr; padding: clamp(18px, 2.4vw, 32px); }
.phead .crumb { padding-bottom: 0; color: #F6F3EC; }
.phead .crumb .muted, .phead .ptop .muted { color: rgba(246,243,236,.75); }
.phead .ptop { align-self: end; }
.phead .ptop h1 { color: #FFF; }
.phead .ptop h1 .pdot { background: #FFF; }
.phead .chip { color: #F6F3EC; border-color: rgba(246,243,236,.45); background: rgba(10,8,6,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.phead + .pfacts { margin-top: 20px; }
@media (max-width: 640px) { .phead { min-height: 72vh; } }

/* Test (FanDuel only): step label on one line, at the size of the number */
.pg .pstep .sl { display: flex; gap: 12px; align-items: baseline; }
.pg .pstep .sl b { font: 500 11.5px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; }

/* FanDuel: show phone screens whole (no crop) and the app store set as one row */
.pg[data-case="fanduel-predicts"] .pmedia.tall img { aspect-ratio: auto; }
.pstep .media-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pstep .media-row .pmedia { margin: 0; border-radius: 8px; }
.pstep .media-row .pmedia span:empty { display: none; }
@media (max-width: 640px) { .pstep .media-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Case studies: full-bleed cover. The image runs edge to edge and up behind the nav. */
.pg[data-case] { padding-top: 0; }
.pg[data-case] .phead { margin-inline: calc(50% - 50vw); margin-top: calc(-1 * var(--barh, 96px)); border-radius: 0; min-height: 100vh; min-height: 100svh; }
.pg[data-case] .phead .ph-in { padding: calc(var(--barh, 96px) + 28px) max(var(--pad, 40px), calc((100vw - var(--max)) / 2 + var(--pad, 40px))) clamp(32px, 5vw, 64px); }
.pg[data-case] .phead::before { background: linear-gradient(180deg, rgba(10,8,6,.5) 0%, rgba(10,8,6,0) 28%, rgba(10,8,6,0) 52%, rgba(10,8,6,.72) 100%), linear-gradient(90deg, rgba(10,8,6,.4), transparent 60%); }
.pg[data-case] .phead .ptop { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pg[data-case] .phead .ptags { justify-content: flex-start; align-self: flex-start; padding: 0; }
/* Nav over the dark cover: light text, no solid bar until you scroll past it */
body.navdark .bar { --ink: #F6F3EC; --muted: rgba(246,243,236,.7); --line: rgba(246,243,236,.3); --line-strong: rgba(246,243,236,.7); --bg: #0E1430; color: var(--ink); }
body.navdark .bar.solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.navdark .bar::after { opacity: 0; }
@media (max-width: 899px) { .pg[data-case] .phead .ph-in { padding-inline: 20px; } }
@media (max-width: 899px) { .pg[data-case="fanduel-predicts"] .phead .phero .im { background-position: 82% center; } }
/* Apple-skill pass on the case cover: material under the light nav, soft flip, legibility fallbacks */
.bar { transition: background .35s, color .35s; }
body.navdark .bar.solid { background: rgba(8,12,34,.5); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.pg[data-case] .phead .chip { font-size: 11px; }
.pg[data-case] .phead .ptop .muted, .pg[data-case] .phead .crumb .muted { color: rgba(246,243,236,.86); }
@media (prefers-reduced-transparency: reduce) { body.navdark .bar.solid { background: #0E1430; backdrop-filter: none; -webkit-backdrop-filter: none; } .phead .chip { background: rgba(10,8,6,.62); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .phead::before { background: linear-gradient(180deg, rgba(10,8,6,.7), rgba(10,8,6,.45) 40%, rgba(10,8,6,.85)) !important; } .phead .chip { border-color: #F6F3EC; background: rgba(10,8,6,.7); } .phead .muted, body.navdark .bar { --muted: #F6F3EC; } }
/* Cover: shorter so the facts row peeks, looser title tracking, scroll cue */
.pg[data-case] .phead { min-height: 86vh; min-height: 86svh; }
.pg[data-case] .phead .ph-in { position: relative; }
.pg[data-case] .phead h1 { letter-spacing: -.028em; }
.pcue { display: none; }
.pg[data-case] .pcue { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; right: max(var(--pad, 40px), calc((100vw - var(--max)) / 2 + var(--pad, 40px))); bottom: clamp(32px, 5vw, 64px); padding: 6px; background: none; border: 0; color: rgba(246,243,236,.86); cursor: pointer; transition: color .3s; }
.pg[data-case] .pcue:hover { color: #FFF; }
.pg[data-case] .pcue:active { transform: scale(.97); }
.pcue-l { width: 1px; height: 44px; background: currentColor; transform-origin: top; animation: cueLine 2.4s var(--ease, ease) 1.2s infinite; }
@keyframes cueLine { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pcue-l { animation: none; } }
@media (max-width: 899px) { .pg[data-case] .pcue { display: none; } .pg[data-case] .phead { min-height: 82svh; } }
/* Facts row lives on the cover, in light tones */
.pg[data-case] .phead { min-height: 100vh; min-height: 100svh; }
.pg[data-case] .phead .ptop { position: relative; }
.pg[data-case] .pcue { right: 0; bottom: 0; padding: 0 6px; }
.pg[data-case] .phead .pfacts { margin-top: clamp(28px, 4vw, 44px); border-top-color: rgba(246,243,236,.4); }
.pg[data-case] .phead .pfacts > div + div, .pg[data-case] .phead .pfacts > div:nth-child(n+3) { border-color: rgba(246,243,236,.22); }
.pg[data-case] .phead .pfacts dt { color: rgba(246,243,236,.72); }
.pg[data-case] .phead .pfacts dd { color: #F6F3EC; }
.pg[data-case] .phead::before { background: linear-gradient(180deg, rgba(10,8,6,.5) 0%, rgba(10,8,6,0) 26%, rgba(10,8,6,0) 42%, rgba(10,8,6,.78) 100%), linear-gradient(90deg, rgba(10,8,6,.4), transparent 60%); }
.pg[data-case] .phead + .story { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 899px) { .pg[data-case] .phead .pfacts > div:nth-child(3) { border-left: 0; } }
/* Taste-skill check: more air between story steps */
.pg .pstep { padding-block: clamp(48px, 6vw, 72px) clamp(56px, 7vw, 88px); }
.pg[data-case] .phead + .story { margin-top: 0; }
.pg[data-case] .story > .pstep:first-child { border-top: 0; }
.crumb .muted, .crumbs .muted { font-weight: 400; }
.aside .lab, footer.f, footer.f a { font-weight: 400; }
.pg[data-case="special-forces"] .phead::before { background: linear-gradient(180deg, rgba(10,8,6,.5) 0%, rgba(10,8,6,.05) 26%, rgba(10,8,6,.25) 45%, rgba(10,8,6,.86) 78%, rgba(10,8,6,.9) 100%), linear-gradient(90deg, rgba(10,8,6,.45), transparent 60%); }
.pg[data-case="home-depot-express"] .phead::before { background: linear-gradient(180deg, rgba(10,8,6,.45) 0%, rgba(10,8,6,0) 24%, rgba(10,8,6,.15) 45%, rgba(10,8,6,.84) 76%, rgba(10,8,6,.9) 100%), linear-gradient(90deg, rgba(10,8,6,.4), transparent 60%); }
@media (max-width: 899px) { .pg[data-case="home-depot-express"] .phead .phero .im { background-position: 24% center; } }
/* Home Depot Express: the system rebuilt as live specimens */
.xd { --xo: #F96302; --xd-font: "Barlow Condensed", "Arial Narrow", sans-serif; display: grid; gap: 12px; margin-top: 6px; }
.xd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xd-stage { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.xd-stage.on-orange { background: var(--xo); color: #fff; --eb: #fff; --guide: rgba(255,255,255,.55); }
.xd-stage.on-white { background: #fff; color: var(--xo); --eb: #1a1a1a; --guide: rgba(249,99,2,.5); box-shadow: inset 0 0 0 1px var(--line); }
.xd-stage figcaption { position: absolute; left: 12px; bottom: 10px; font: 400 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: currentColor; opacity: .8; }
.xd-stage.on-white figcaption { color: var(--muted); opacity: 1; }
.xd-type { position: relative; display: grid; justify-items: start; font: italic 800 clamp(22px, 3.1vw, 40px)/.9 var(--xd-font); text-transform: uppercase; letter-spacing: -.005em; --step: 1.05em; padding-block: .4em; }
.xd-eb { font-size: .38em; font-weight: 700; letter-spacing: .02em; color: var(--eb); margin-bottom: .35em; }
.xd-l2 { margin-left: var(--step); display: inline-flex; align-items: center; gap: .08em; }
.xd-bolt { width: .5em; height: .8em; fill: currentColor; flex: none; }
.xd-g { position: absolute; top: -.3em; bottom: -.3em; width: 0; border-left: 1px dashed var(--guide); opacity: 0; transition: opacity .3s; }
.xd-g1 { left: 0; } .xd-g2 { left: var(--step); }
.xd-stage:hover .xd-g, .xd-stage:focus-within .xd-g { opacity: 1; }
@media (hover: none) { .xd-g { opacity: 1; } }
.xd-cap { margin: 2px 0 10px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.xd-cap b { color: var(--ink); font-weight: 500; }
.xd-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: clamp(20px, 3vw, 32px); border-radius: 12px; background: var(--card); }
.xd-b { display: grid; gap: 6px; justify-items: start; align-content: start; }
.xd-b b { margin-top: 10px; font: 500 11.5px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.xd-b span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.xd-btn { display: inline-flex; align-items: center; gap: .12em; padding: .42em .8em .38em; border: 2px solid var(--xo); border-radius: 4px; font: italic 800 clamp(15px, 1.5vw, 19px)/1 var(--xd-font); text-transform: uppercase; cursor: pointer; transition: transform .15s var(--ease, ease), filter .2s; }
.xd-btn.pri { background: var(--xo); color: #fff; }
.xd-btn.sec { background: #111; border-color: #111; color: #fff; } .xd-btn.sec .xd-bolt { fill: var(--xo); }
.xd-btn.out { background: #fff; color: var(--xo); }
.xd-btn:hover { filter: brightness(1.06); } .xd-btn:active { transform: scale(.97); }
@media (max-width: 640px) { .xd-pair, .xd-btns { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .xd-type { font-size: 30px; } .xd-stage { aspect-ratio: 16 / 11; } }
/* About: title sits over the copy column, photo on the left */
.ab-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.ab-head h1 { grid-column: 2; }
.portrait { overflow: hidden; background: var(--card); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 899px) { .ab-head h1 { grid-column: 1; } }
.ab-head h1 { font-size: clamp(2.4rem, 4.2vw, 4.1rem); }
.crumbs > :last-child:nth-child(2) { grid-column: 3; text-align: right; }

/* ===== Typography review v3.1 (items 1, 2, 3, 4, 7, 9, 10, 11, 12 + leading) ===== */
/* 1. No fake italics: accent italics use Instrument Serif */
body { font-synthesis: none; }
.mail code, .note, .case .ph .big, .mirage-fallback .b { font-family: var(--serif-accent); font-style: italic; font-weight: var(--accent-weight, 400); }
.lg-t { font-style: normal; }
p em, li em, .sb em { font-family: var(--serif-accent); font-style: italic; font-size: 1.08em; letter-spacing: 0; }
/* 3. Measure: about 66–70 characters */
.pstep .sb > :is(p, ul, ol), .step .body, .ab-copy, .mp-about { max-width: 56ch; }
body p { text-wrap: pretty; }
/* 4. Two label steps: eyebrow 11.5/.08 (unchanged), micro 10.5/.12 at 400 */
.bar .tc, .btn, .chip, .pg[data-case] .phead .chip, .at .lb, .where .at-w, .where .yr, .media span, .pmedia span, .cur span, .tl .head code, .toast, .xd-stage figcaption { font-size: 10.5px; letter-spacing: .12em; font-weight: 400; }
/* 7. About lede lets the title lead */
.ab-copy .big { font-size: clamp(1.5rem, 2.1vw, 2rem); }
/* 9. One secondary size */
.case .pm, .princ p, .nums p, .mp-credits dd, .xd-cap, .xd-b span { font-size: 15px; }
/* 10. Display tracking scales with size */
.serif { letter-spacing: -.03em; }
.name, .contact h2, .shead h2, .cs-head h1, .next h3, .titles h3 { letter-spacing: -.04em; }
.ab-head h1 { letter-spacing: -.03em; }
/* 11. Accent italics under ~60px */
.thesis .st i, .ab-copy .big i { letter-spacing: -.01em; }
@media (max-width: 720px) {
  .name, .contact h2, .shead h2, .cs-head h1, .next h3, .titles h3 { letter-spacing: -.03em; }
  .ab-head h1, .pg[data-case] .phead h1, .ptop h1, .pnext h2, .case h3 { letter-spacing: -.02em; }
  .serif i, .serif em { letter-spacing: -.01em; }
}
/* 12. Light text on dark surfaces */
.tab p { font-size: 15px; line-height: 1.55; letter-spacing: .01em; }
.pg[data-case] .phead .pfacts dd { letter-spacing: .01em; }
:root[data-theme="dark"] body { line-height: 1.65; letter-spacing: .005em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { line-height: 1.65; letter-spacing: .005em; } }
/* Leading: .88 hero + contact, .95 other display */
.name, .contact h2 { line-height: .88; }
.cs-head h1, .ab-head h1, .mp .cs-head h1, .ptop h1, .step h2 { line-height: .95; }
.shead h2, .contact h2, .case h3, .ab-copy .big, .xp-h h2 { text-wrap: balance; }
/* Typography review: 5 (uppercase prose max 2 lines), 6 (section h2 role), 8 (step lead-in) */
.hl .sub p { line-height: 1.7; }
.shead .aside { max-width: 500px; }
.where .at-w { max-width: none; }
@media (max-width: 720px) {
  .hl .sub { grid-template-columns: minmax(0, 1fr); gap: 14px; } .hl .sub .dash { width: 48px; margin-top: 0; }
  .hl .sub p { font-size: 10.5px; letter-spacing: .06em; }
  .shead .aside { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: none; } .shead .aside .dash { width: 48px; }
  .shead .aside p.lab, .where .at-w { font-size: 10.5px; letter-spacing: .06em; }
}
.shead h2 { font-size: clamp(3.6rem, 8.6vw, 7.4rem); }
.xp-h h2 { font-family: var(--serif); font-size: clamp(3.6rem, 8.6vw, 7.4rem); line-height: .95; letter-spacing: -.04em; text-transform: none; }
@media (max-width: 720px) { .xp-h h2 { letter-spacing: -.03em; } }
.pstep .sb .lead { font: 400 clamp(1.35rem, 1.8vw, 1.5rem)/1.2 var(--serif); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; max-width: 40ch; }
/* Round 2 (2026-11-04): side notes back beside the headings, still 2 lines max */
@media (min-width: 721px) { .shead { grid-template-columns: auto auto minmax(0, 1fr); } .shead .aside { max-width: 440px; } }
@media (min-width: 721px) and (max-width: 1340px) { .hl .sub p, .shead .aside p.lab { font-size: 10.5px; letter-spacing: .06em; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ab-brands h2 .amp { font-family: var(--serif-accent); font-style: italic; }
.ab .portrait, .portrait:has(img) { aspect-ratio: 1; border-radius: 50%; }
@media (min-width: 721px) and (max-width: 1340px) { .hl .sub { grid-template-columns: 48px minmax(0, max-content); gap: 28px; } }
@media (min-width: 721px) and (max-width: 1180px) { .ab-brands { grid-template-columns: auto minmax(0, 1fr); } .ab-brands .aside { grid-column: 1 / -1; justify-self: end; padding-bottom: 0; } }
/* Media captions: small grey line under the image instead of a box over it */
.pmedia { overflow: visible; border-radius: 0; background: none; }
.pmedia > img, .pmedia > video { border-radius: 12px; background: var(--card); }
.pstep .media-row .pmedia > img, .pstep .media-row .pmedia > video { border-radius: 8px; }
.pmedia span, .pmedia > span { position: static; display: block; margin-top: 10px; padding: 0; border-radius: 0; background: none; font: 400 13px/1.4 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--muted); }
.pmedia span:empty { display: none; }
.lg-disney img { height: 56px; }
@media (max-width: 720px) { .lg-disney img { height: 44px; } }
/* No dark hairline on rounded media: clip cleanly and drop the dark fill behind the image */
.phero:not(.phead .phero) { background: transparent; clip-path: inset(0 round 16px); isolation: isolate; }
.pmedia > img, .pmedia > video { background: transparent; }
.at { background: transparent; isolation: isolate; }
.slide { clip-path: none; }
.sedge { position: absolute; inset: 0; background: var(--line-strong); pointer-events: none; }
.pback { margin-top: clamp(56px, 8vw, 96px); }
.pback a { text-decoration: none; color: var(--ink); }
.pback a:hover { color: var(--accent); }
.pback + .pnext { margin-top: 20px; }
.slides { isolation: isolate; z-index: 0; }
/* Motion cover: click to play */
.phero.playable { cursor: pointer; }
.phero.playable:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
.phero .im { transition: scale 1.2s var(--ease); }
.phero.playable:hover .im { scale: 1.025; }
.pplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 12px; color: #fff; pointer-events: none; transition: opacity .4s, scale .6s var(--ease); }
.pplay i { width: 76px; height: 76px; border-radius: 50%; background: rgba(14, 11, 8, .35); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; }
.pplay i::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.pplay .lab { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.phero.playable:hover .pplay { scale: 1.06; }
.phero.playable:active .pplay { scale: .96; }
.phero.playing { aspect-ratio: 16 / 9; background: #111; cursor: auto; }
.phero.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) { .pplay i { width: 60px; height: 60px; } }
/* Cursor says Play over a playable cover; the centre button stays for touch screens */
@media (hover: hover) and (pointer: fine) { .phero.playable .pplay { opacity: 0; } .phero.playable { cursor: none; } }
/* Glass cursor bubble over playable covers */
.cur.glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.cur.glass span { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
/* Hover loop on motion covers */
.phero .hloop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.phero.looping .hloop { opacity: 1; }
.phero .pplay { z-index: 1; }
.ptags .chip.demo { text-decoration: none; background: #F6F3EC; color: #15120E; border-color: #F6F3EC; }
.ptags .chip.demo:hover { background: transparent; color: #F6F3EC; }
/* Gooder cover is a light photo: dark type, soft light scrim, nav stays dark-on-light */
.pg[data-case="gooder"] .phead { color: #1B1530; }
.pg[data-case="gooder"] .phead::before { background: linear-gradient(180deg, rgba(255,250,246,.55) 0%, rgba(255,250,246,0) 26%, rgba(255,250,246,0) 48%, rgba(255,250,246,.7) 100%), linear-gradient(90deg, rgba(255,250,246,.55), transparent 55%); }
.pg[data-case="gooder"] .phead .ptop h1, .pg[data-case="gooder"] .phead .crumb a, .pg[data-case="gooder"] .phead .pfacts dd, .pg[data-case="gooder"] .phead .pcue, .pg[data-case="gooder"] .phead .pcue:hover { color: #1B1530; }
.pg[data-case="gooder"] .phead .ptop h1 .pdot { background: #7B4DDB; }
.pg[data-case="gooder"] .phead .ptop .muted, .pg[data-case="gooder"] .phead .crumb .muted, .pg[data-case="gooder"] .phead .pfacts dt { color: rgba(27,21,48,.68); }
.pg[data-case="gooder"] .phead .pfacts { border-top-color: rgba(27,21,48,.35); }
.pg[data-case="gooder"] .phead .pfacts > div + div, .pg[data-case="gooder"] .phead .pfacts > div:nth-child(n+3) { border-color: rgba(27,21,48,.18); }
.pg[data-case="gooder"] .phead .chip { color: #1B1530; border-color: rgba(27,21,48,.4); background: rgba(255,255,255,.35); }
.pg[data-case="gooder"] .phead .chip.demo { background: #1B1530; color: #FFF; border-color: #1B1530; }
.pg[data-case="gooder"] .phead .chip.demo:hover { background: #7B4DDB; border-color: #7B4DDB; color: #FFF; }
.pg[data-case="gooder"] .phead .pcue-l { background: rgba(27,21,48,.5); }
@media (max-width: 899px) { .pg[data-case="gooder"] .phead .phero .im { background-position: 64% 30%; } .pg[data-case="gooder"] .phead::before { background: linear-gradient(180deg, rgba(255,250,246,.5) 0%, rgba(255,250,246,0) 22%, rgba(255,250,246,.1) 40%, rgba(255,250,246,.88) 62%, rgba(255,250,246,.95) 100%); } }


/* Gooder: full screenshots that keep their own proportions */
.gshot { display: grid; gap: 8px; margin: 6px 0; }
.gshot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--card); }
.pg[data-case="gooder"] .phead .chip.demo.alt { background: rgba(255,255,255,.55); color: #1B1530; border-color: #1B1530; }
.pg[data-case="gooder"] .phead .chip.demo.alt:hover { background: #7B4DDB; border-color: #7B4DDB; color: #FFF; }
/* Contact pop-up (Google Apps Script → Gmail) */
.contact .cnote { font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.35 var(--serif); color: var(--ink); max-width: 30ch; }
.cdlg { border: 0; padding: 0; margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); color: var(--ink); border-radius: 14px; box-shadow: 0 40px 120px -30px rgba(10,8,6,.55); }
.cdlg::backdrop { background: rgba(14,11,8,.38); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.cdlg[open] { animation: dlgIn .45s var(--ease); } .cdlg[open]::backdrop { animation: dlgFade .35s ease; }
.cdlg.closing { animation: dlgOut .22s ease forwards; } .cdlg.closing::backdrop { animation: dlgFade .22s ease reverse forwards; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes dlgOut { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes dlgFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cdlg[open], .cdlg.closing, .cdlg[open]::backdrop { animation: none; } }
.cdlg-in { padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; }
.cdlg-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cdlg-x { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; line-height: 1; transition: background .25s, color .25s; }
.cdlg-x:hover { background: var(--ink); color: var(--bg); } .cdlg-x:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.cdlg h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: .95; letter-spacing: -.03em; }
body.dlg-open { overflow: hidden; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.cform .hp { position: absolute; left: -9999px; }
.cform .fld { display: grid; gap: 8px; }
.cform .fld.wide, .cform .fsend { grid-column: 1 / -1; }
.cform input, .cform textarea { font: 400 17px/1.5 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 8px 0 10px; outline: none; transition: border-color .3s; resize: vertical; }
.cform textarea { min-height: 120px; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted); opacity: .8; }
.cform input:focus, .cform textarea:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.cform .fsend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.cform button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 720px) { .cform { grid-template-columns: 1fr; } }

/* Availability bubble: floats beside the contact heading */
.contact .avail { justify-self: start; position: relative; display: block; max-width: 34ch; margin: 0; padding: 12px 18px 12px 34px; border-radius: 22px 22px 22px 6px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -14px rgba(0,0,0,.28); animation: availFloat 7s ease-in-out infinite; }
.contact .avail .dot { position: absolute; left: 15px; top: 50%; margin: -4px 0 0; width: 8px; height: 8px; border-radius: 50%; background: #3DBE6B; box-shadow: 0 0 0 0 rgba(61,190,107,.5); animation: availPulse 2.4s ease-out infinite; }
@media (min-width: 900px) { .contact .avail { position: absolute !important; right: max(40px, env(safe-area-inset-right, 0px)); top: clamp(150px, 19vw, 260px); } }
@keyframes availFloat { 0%,100% { transform: translate(0,0) rotate(-.6deg); } 50% { transform: translate(-10px,-12px) rotate(.6deg); } }
@keyframes availPulse { 0% { box-shadow: 0 0 0 0 rgba(61,190,107,.5); } 70%,100% { box-shadow: 0 0 0 8px rgba(61,190,107,0); } }
@media (prefers-reduced-motion: reduce) { .contact .avail, .contact .avail .dot { animation: none; } }
