/* Olivia Cai, portfolio
   Paper, ink, one hairline. One type family (Uncut Sans), uppercase headings at regular weight.
   Type scale:
     mega     giant two-line titles (hero, hello, footer)
     display  section titles
     xl       statement and sub headings
     caps     project names
     lead     paragraphs that matter
     body     everything else
     label    small uppercase labels and meta */

@font-face { font-family:'Uncut Sans'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/uncut-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family:'Uncut Sans'; font-style:normal; font-weight:500; font-display:swap; src:url(../fonts/uncut-sans-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg:#E9E9E6; --bg-2:#DFDFDA; --ink:#111111; --text:#2A2A27; --muted:#5C5C56;
  --line:rgba(17,17,17,.2); --line-soft:rgba(17,17,17,.12);
  --gut:clamp(20px,4vw,56px);
  --max:1320px;
  --sec:clamp(140px,24vh,280px);
  --t-mega:clamp(40px,11.5vw,210px);
  --t-display:clamp(52px,6.6vw,104px);
  --t-xl:clamp(34px,4.6vw,68px);
  --t-caps:clamp(22px,2.3vw,34px);
  --t-lead:clamp(18px,1.5vw,21px);
  --t-body:16px;
  --t-label:12px;
  --ease:cubic-bezier(.2,.7,.2,1);
  --ease-io:cubic-bezier(.7,0,.2,1);
  --sans:'Uncut Sans',-apple-system,'Helvetica Neue',Arial,sans-serif;
  --accent:#111111;
}
html.dark {
  color-scheme:dark;
  --bg:#0F0F11; --bg-2:#1A1A1D; --ink:#E9E9E6; --text:#C6C6C1; --muted:#8C8C86;
  --line:rgba(233,233,230,.18); --line-soft:rgba(233,233,230,.1);
}
/* the big titles invert over the ink; over champagne glitter they stay plain white instead */
html.dark .over, html.dark .head, html.dark .ab-hello { mix-blend-mode:normal; }
.t-dark { display:none; }
html.dark .t-ink { display:none; }
html.dark .t-dark { display:inline; }

/* theme switching: the new colours spill out from the switch (see setTheme in core.js) */
::view-transition-old(root), ::view-transition-new(root) { animation:none; mix-blend-mode:normal; }
.tgl { view-transition-name:tgl; }
.tgl-bits { view-transition-name:tgl-bits; }
::view-transition-old(tgl), ::view-transition-old(tgl-bits) { display:none; }
::view-transition-new(tgl), ::view-transition-new(tgl-bits), ::view-transition-group(tgl), ::view-transition-group(tgl-bits) { animation:none; }

/* ============ Base ============ */
* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html.still, html.lenis, html.lenis body { scroll-behavior:auto; }
html.lenis, html.lenis body { height:auto; }
.lenis.lenis-stopped { overflow:hidden; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--sans); font-size:var(--t-body); font-weight:400; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:clip; }
a { color:inherit; }
img { display:block; max-width:100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin:0; padding:0; }
ol, ul { list-style:none; }
button { font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
::selection { background:var(--ink); color:var(--bg); }
:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip { position:fixed; left:16px; top:-80px; z-index:3000; padding:12px 20px; border-radius:100px; background:var(--ink); color:var(--bg); text-decoration:none; transition:top .2s; }
.skip:focus { top:16px; }
/* animations off: everything lands at once */
.still *, .still *::before, .still *::after { animation-duration:.01ms !important; animation-delay:0s !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; transition-delay:0s !important; }

.wrap { max-width:var(--max); margin:0 auto; padding:0 var(--gut); }
.label { display:flex; align-items:center; gap:14px; font-size:var(--t-label); font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.label::before { content:""; flex:none; width:40px; height:1px; background:currentColor; }
.name-stack { display:block; text-decoration:none; text-transform:uppercase; font-size:clamp(22px,2.3vw,32px); line-height:1.12; letter-spacing:.005em; }
.name-stack > span { display:block; }

/* ============ Letters that roll over to a copy of themselves ============ */
.roll { display:inline; }
.roll .wd { display:inline-flex; overflow:hidden; line-height:1.15; vertical-align:bottom; }
.roll .ch { display:inline-block; white-space:pre; text-shadow:0 1.15em 0 currentColor; transition:transform .55s var(--ease-io); transition-delay:calc(var(--i) * 18ms); }
a:hover .roll .ch, a:focus-visible .roll .ch, button:hover .roll .ch, button:focus-visible .roll .ch, .roll-host:hover .roll .ch { transform:translateY(-1.15em); }

/* ============ Pill buttons: ink pours up from the bottom, the label rolls, the button leans to the cursor ============ */
.pill { --pf:var(--ink); --po:var(--bg); position:relative; isolation:isolate; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 24px; border:1px solid currentColor; border-radius:100px; font-size:13px; letter-spacing:.08em; text-transform:uppercase; text-decoration:none; white-space:nowrap; transition:color .45s var(--ease-io), border-color .3s, transform .5s var(--ease); }
.pill::before { content:""; position:absolute; inset:-2px; z-index:-1; background:var(--pf); border-radius:50% 50% 0 0 / 80% 80% 0 0; transform:translateY(102%); transition:transform .6s var(--ease-io), border-radius .6s var(--ease-io); }
.pill:hover::before, .pill:focus-visible::before { transform:none; border-radius:0; }
.pill:hover, .pill:focus-visible { color:var(--po); border-color:var(--pf); }
.pill:active { transform:scale(.95) !important; }
.pill i { font-style:normal; display:inline-block; }
.pl-roll { position:relative; display:inline-flex; overflow:hidden; line-height:1.35; }
.pl-roll > span { display:inline-flex; align-items:center; gap:10px; transition:transform .55s var(--ease-io); }
.pl-roll > span + span { position:absolute; left:0; top:0; transform:translateY(115%); }
.pill:hover .pl-roll > span:first-child, .pill:focus-visible .pl-roll > span:first-child { transform:translateY(-115%); }
.pill:hover .pl-roll > span + span, .pill:focus-visible .pl-roll > span + span { transform:none; }
.pill-sm { min-height:36px; padding:0 16px; font-size:12px; letter-spacing:.1em; }
.over .pill { --pf:#fff; --po:#000; }
html.dark .over .pill { --pf:var(--ink); --po:var(--bg); }

/* ============ Header: sits on top of the hero and scrolls away with it ============ */
.head { position:absolute; top:0; left:0; right:0; z-index:20; display:flex; justify-content:space-between; align-items:flex-start; padding:clamp(18px,3vw,44px) var(--gut); mix-blend-mode:difference; color:#fff; pointer-events:none; }
html.dark .head { color:var(--ink); }
.head > * { pointer-events:auto; }
.head :focus-visible { outline-color:currentColor; }
.head-nav { display:flex; gap:clamp(22px,2.8vw,44px); margin-top:4px; }
.head-nav a { display:inline-flex; align-items:center; min-height:44px; font-size:13px; letter-spacing:.12em; text-transform:uppercase; text-decoration:none; }
.nav-motion { display:inline-flex; align-items:center; gap:10px; min-height:44px; font-size:13px; letter-spacing:.12em; text-transform:uppercase; }
.nav-sw { position:relative; width:30px; height:16px; border:1px solid currentColor; border-radius:100px; }
.nav-knob { position:absolute; top:2px; left:2px; width:10px; height:10px; border-radius:50%; background:currentColor; transition:transform .3s var(--ease); }
.nav-motion[aria-pressed="true"] .nav-knob { transform:translateX(14px); }
.bars { position:relative; width:56px; height:44px; margin-top:2px; }
.bars span { position:absolute; left:4px; right:4px; height:2px; background:currentColor; transition:transform .45s var(--ease-io), top .45s var(--ease-io); }
.bars span:first-child { top:14px; }
.bars span:last-child { top:26px; }
.bars:hover span:last-child { transform:scaleX(.6); transform-origin:right; }
.bars.x span:first-child { top:20px; transform:rotate(22deg); }
.bars.x span:last-child { top:20px; transform:rotate(-22deg); }
@media (min-width:861px) { .head .bars { display:none; } }
@media (max-width:860px) { .head-nav { display:none; } }

/* ============ Folded nav: once the header has gone, the links come back in a frosted "Menu" pill ============ */
.dock { position:fixed; top:clamp(14px,2.2vw,28px); right:var(--gut); z-index:750; display:flex; align-items:center; height:52px; padding:0 10px 0 24px; border-radius:100px; color:var(--ink);
  background:linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.22));
  -webkit-backdrop-filter:blur(18px) saturate(170%); backdrop-filter:blur(18px) saturate(170%);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(0,0,0,.04), 0 12px 32px -14px rgba(0,0,0,.28);
  transform:translateY(-160%); opacity:0; pointer-events:none; transition:transform .7s var(--ease), opacity .4s; }
html.dark .dock { background:linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border-color:rgba(255,255,255,.16); box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 14px 36px -14px rgba(0,0,0,.7); }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { .dock { background:rgba(233,233,230,.94); } html.dark .dock { background:rgba(26,26,29,.94); } }
.dock.in { transform:none; opacity:1; pointer-events:auto; }
.menu:not([hidden]) ~ .dock { opacity:0; pointer-events:none; }
.dock :focus-visible { outline:1px solid currentColor; outline-offset:4px; }
.dock-links { display:grid; grid-template-columns:0fr; transition:grid-template-columns .65s var(--ease); }
.dock.open .dock-links { grid-template-columns:1fr; }
.dock-links > div { overflow:hidden; display:flex; align-items:center; gap:clamp(20px,2.2vw,32px); white-space:nowrap; }
.dock-links a { display:inline-flex; align-items:center; min-height:44px; font-size:13px; letter-spacing:.12em; text-transform:uppercase; text-decoration:none; opacity:0; transform:translateX(14px); transition:opacity .3s, transform .5s var(--ease); }
.dock-links a:last-child { margin-right:clamp(22px,2.4vw,34px); }
.dock.open .dock-links a { opacity:1; transform:none; transition-delay:calc(.15s + (3 - var(--i)) * 50ms); }
.dock-btn { display:inline-flex; align-items:center; gap:14px; min-height:44px; padding:0 12px 0 0; font-size:13px; letter-spacing:.12em; text-transform:uppercase; }
.dock-ic { position:relative; width:24px; height:12px; }
.dock-ic i { position:absolute; left:0; right:0; height:1px; background:currentColor; transition:transform .45s var(--ease), top .45s var(--ease); }
.dock-ic i:first-child { top:1px; } .dock-ic i:last-child { top:10px; }
.dock.open .dock-ic i:first-child { top:5.5px; transform:rotate(22deg); }
.dock.open .dock-ic i:last-child { top:5.5px; transform:rotate(-22deg); }
.dock-say { display:grid; overflow:hidden; }
.dock-say > span { grid-area:1 / 1; transition:transform .5s var(--ease); }
.dock-say .c { transform:translateY(110%); }
.dock.open .dock-say .m { transform:translateY(-110%); }
.dock.open .dock-say .c { transform:none; }
@media (max-width:860px) { .dock { height:48px; padding:0 8px 0 20px; } .dock-links { display:none; } }

/* ============ Full-screen menu (phones, and the dock button on phones) ============ */
.menu { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; background:var(--bg); color:var(--ink); padding:clamp(18px,3vw,44px) var(--gut) calc(24px + env(safe-area-inset-bottom)); overflow-y:auto; overscroll-behavior:contain; }
.menu[hidden] { display:none; }
.menu-top { display:flex; justify-content:space-between; align-items:flex-start; }
.menu nav { flex:1; display:flex; flex-direction:column; justify-content:center; padding:32px 0; max-width:var(--max); width:100%; margin:0 auto; }
.menu li { border-top:1px solid var(--line); overflow:hidden; }
.menu li:last-child { border-bottom:1px solid var(--line); }
.menu nav a { display:flex; align-items:baseline; gap:18px; padding:.18em 0; font-size:clamp(32px,min(6.4vw,8vh),80px); line-height:1.1; letter-spacing:.005em; text-transform:uppercase; text-decoration:none; animation:menuIn .7s var(--ease) both; animation-delay:calc(var(--i) * 55ms); }
.menu nav a small { font-size:var(--t-label); letter-spacing:.1em; color:var(--muted); min-width:2.2em; }
@keyframes menuIn { from { transform:translateY(100%); } to { transform:none; } }
.menu-foot { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; max-width:var(--max); width:100%; margin:0 auto; }
.menu-foot .links { display:flex; flex-wrap:wrap; gap:10px; }
.toggles { display:flex; flex-wrap:wrap; gap:4px 28px; }
.motion { display:inline-flex; align-items:center; gap:12px; min-height:44px; font-size:14px; color:var(--muted); }
.motion:hover { color:var(--ink); }
.sw { position:relative; width:40px; height:22px; border:1px solid var(--ink); border-radius:100px; }
.knob { position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:var(--ink); transition:transform .3s var(--ease); }
.motion[aria-pressed="true"] .knob { transform:translateX(18px); }

/* ============ Theme switch: floats bottom right ============
   Light: the knob is a wobbling drop of ink with a few sparkles on the far side.
   Dark: it rolls over into a ball of champagne glitter. */
.tgl { position:fixed; right:var(--gut); bottom:calc(clamp(20px,3vw,40px) + 40px + env(safe-area-inset-bottom)); z-index:700; display:flex; align-items:center; gap:12px; min-height:48px; -webkit-tap-highlight-color:transparent; touch-action:manipulation; transition:translate .5s var(--ease), opacity .35s; }
.tgl.tgl-away { translate:0 160%; opacity:0; pointer-events:none; }
.tgl:focus-visible { outline:none; }
.tgl:focus-visible .tgl-track { outline:2px solid var(--ink); outline-offset:3px; }
.tgl-track { position:relative; display:block; width:68px; height:36px; border-radius:100px; background:#E9E9E6; border:1px solid #111; box-shadow:0 8px 24px -12px rgba(0,0,0,.55); overflow:hidden; transition:background .6s var(--ease-io), border-color .6s, scale .3s var(--ease); }
.tgl:active .tgl-track { scale:.93; }
.tgl-track::before { content:""; position:absolute; right:9px; top:50%; width:16px; height:16px; margin-top:-8px; background:
    radial-gradient(circle at 30% 30%, #8a8c93 0 1px, transparent 1.6px),
    radial-gradient(circle at 75% 45%, #8a8c93 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 40% 80%, #8a8c93 0 .9px, transparent 1.5px);
  animation:tglTw 1.8s ease-in-out infinite; transition:opacity .4s; }
.tgl-track::after { content:""; position:absolute; left:13px; top:50%; width:9px; height:9px; margin-top:-4.5px; border-radius:50%; background:rgba(233,233,230,.28); opacity:0; transition:opacity .4s; }
html.dark .tgl-track { background:#0F0F11; border-color:rgba(232,210,165,.6); box-shadow:0 0 0 1px rgba(0,0,0,.4), 0 8px 26px -10px rgba(235,205,145,.4); }
html.dark .tgl-track::before { opacity:0; }
html.dark .tgl-track::after { opacity:1; }
.tgl-knob { position:absolute; top:3px; left:3px; width:28px; height:28px; border-radius:50%; background:radial-gradient(circle at 34% 30%, #55555d 0, #151517 45%, #000 100%); transition:translate .75s cubic-bezier(.6,-.35,.25,1.35), left .35s var(--ease); animation:tglBlob 3.6s ease-in-out infinite; }
.tgl-knob::before { content:""; position:absolute; left:7px; top:6px; width:6px; height:4px; border-radius:50%; background:rgba(255,255,255,.55); transform:rotate(-30deg); transition:opacity .4s; }
.tgl-knob::after { content:""; position:absolute; right:1px; top:0; width:11px; height:11px; background:#FFF6E3; clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); opacity:0; }
html.dark .tgl-knob {
  translate:32px 0;
  background:
    radial-gradient(circle at 26% 30%, #FFF8EA 0 1px, transparent 1.7px),
    radial-gradient(circle at 62% 20%, #fff 0 .8px, transparent 1.4px),
    radial-gradient(circle at 46% 56%, #fff 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 76% 64%, #FFE9C2 0 .8px, transparent 1.4px),
    radial-gradient(circle at 24% 74%, #fff 0 .7px, transparent 1.3px),
    radial-gradient(circle at 58% 84%, #F1D9A8 0 .7px, transparent 1.3px),
    radial-gradient(circle at 34% 30%, #FBF1DE 0, #D8BC86 42%, #806640 100%);
  animation:tglSpin 7s linear infinite;
}
html.dark .tgl-knob::before { opacity:0; }
html.dark .tgl-knob::after { animation:tglStar 2.6s ease-in-out infinite; }
@media (hover:hover) {
  .tgl:hover .tgl-knob { left:7px; }
  html.dark .tgl:hover .tgl-knob { left:-1px; }
}
@keyframes tglBlob { 0%,100% { border-radius:50%; } 33% { border-radius:56% 44% 52% 48% / 46% 54% 46% 54%; } 66% { border-radius:46% 54% 44% 56% / 54% 46% 54% 46%; } }
@keyframes tglSpin { to { rotate:360deg; } }
@keyframes tglStar { 0%,55%,100% { opacity:0; scale:.2; } 70% { opacity:1; scale:1; } }
@keyframes tglTw { 0%,100% { opacity:.35; } 50% { opacity:1; } }
.tgl-say { padding:7px 12px; border-radius:100px; background:var(--bg); border:1px solid var(--line); color:var(--ink); font-size:11px; letter-spacing:.1em; text-transform:uppercase; white-space:nowrap; opacity:0; translate:10px 0; pointer-events:none; transition:opacity .35s, translate .5s var(--ease); }
@media (hover:hover) and (pointer:fine) { .tgl:hover .tgl-say, .tgl:focus-visible .tgl-say { opacity:1; translate:0 0; } }
@media (hover:none), (pointer:coarse) { .tgl-say { display:none; } }
.tgl-bits { position:fixed; inset:0; z-index:701; pointer-events:none; overflow:hidden; }
.tgl-bit { position:absolute; display:block; border-radius:50%; background:#111; }
.tgl-bit.sv { background:#F5DFB2; box-shadow:0 0 7px rgba(245,215,160,.9); }
.tgl-bit.star { border-radius:0; box-shadow:none; clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }

/* ============ Loading screen: drops of ink grow while the page loads, then flood and lift away ============ */
.loader { display:none; position:fixed; inset:0; z-index:2000; background:var(--bg); color:var(--ink); overflow:hidden; will-change:transform; }
.loading .loader, .loader.lift { display:block; }
.loading body { overflow:hidden; }
.ld-blob { position:absolute; left:50%; top:50%; width:min(70vmin,560px); height:min(70vmin,560px); transform:translate(-50%,-50%); overflow:visible; }
.ld-blob circle { fill:var(--ink); }
html.dark #ldDrops { filter:url(#ldGlitF); }
.ld-name { position:absolute; left:var(--gut); top:clamp(18px,3vw,44px); font-size:clamp(22px,2.3vw,32px); line-height:1.12; letter-spacing:.005em; text-transform:uppercase; }
.ld-name span { display:block; }
.ld-count { position:absolute; left:var(--gut); bottom:calc(clamp(14px,2.4vw,32px) + env(safe-area-inset-bottom)); font-size:clamp(56px,11.5vw,210px); line-height:.82; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.ld-note { position:absolute; right:var(--gut); bottom:calc(clamp(20px,3vw,40px) + env(safe-area-inset-bottom)); font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; }
.ld-name, .ld-count, .ld-note { transition:opacity .4s; }
.loader.flood .ld-name, .loader.flood .ld-count, .loader.flood .ld-note { opacity:0; }
.loader.lift { transform:translateY(-100%); transition:transform .8s var(--ease-io); }

/* page transition: ink floods out from where you clicked, the next page arrives under a sheet that lifts away */
.pt { position:fixed; inset:0; z-index:2500; pointer-events:none; }
.pt-ink { position:absolute; width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:50%; background:var(--ink); transform:scale(0); }
.pt-sheet { position:absolute; inset:0; background:var(--ink); }
.pt-sheet.lift { transform:translateY(-100%); transition:transform .8s var(--ease-io); }
html.pt-in body::after { content:""; position:fixed; inset:0; z-index:2500; background:var(--ink); }

/* ============ Ink pools: the hero and the footer share one layout ============ */
.pool { position:relative; height:100vh; height:100svh; min-height:600px; overflow:hidden; background:var(--bg); touch-action:pan-y; }
.pool canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.over { position:absolute; inset:0; mix-blend-mode:difference; color:#fff; pointer-events:none; }
html.dark .over { color:var(--ink); }
.over a, .over button { pointer-events:auto; }
.over :focus-visible { outline-color:currentColor; }
.pool-top { position:absolute; left:0; right:0; top:0; display:flex; justify-content:space-between; align-items:flex-start; padding:clamp(18px,3vw,44px) var(--gut); }
.pool-foot { position:absolute; left:0; right:0; bottom:0; display:flex; justify-content:space-between; align-items:flex-end; gap:16px; padding:0 var(--gut) calc(clamp(20px,3vw,40px) + env(safe-area-inset-bottom)); font-size:var(--t-label); letter-spacing:.1em; text-transform:uppercase; }
.pool-foot a, .pool-top a { text-decoration:none; }
.hint { position:absolute; left:50%; bottom:calc(clamp(20px,3vw,40px) + env(safe-area-inset-bottom)); transform:translateX(-50%); font-size:14px; letter-spacing:.01em; text-transform:none; opacity:.8; transition:opacity 1s; white-space:nowrap; }
.hint.gone { opacity:0; }
.hint-touch, .t-touch { display:none; }
@media (hover:none), (pointer:coarse) { .hint-mouse, .t-mouse { display:none; } .hint-touch, .t-touch { display:inline; } }
.arrow-dn { display:inline-flex; align-items:center; gap:10px; }
.arrow-dn svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; animation:nudgeDn 2.2s var(--ease) infinite; }
@keyframes nudgeDn { 0%, 100% { transform:none; } 50% { transform:translateY(4px); } }

/* the hero title that keeps changing: two words, one per line, line two sits right */
.hero-role { position:absolute; left:var(--gut); right:var(--gut); top:47%; transform:translateY(-50%); }
.role { display:grid; font-size:var(--t-mega); font-weight:400; line-height:.86; letter-spacing:-.02em; text-transform:uppercase; white-space:nowrap; }
.role-layer { grid-area:1 / 1; display:flex; flex-direction:column; }
.role-layer .ln { display:flex; padding:.04em 0; }
.role-layer .ln + .ln { justify-content:flex-end; }
.role-layer.clip .ln { overflow:hidden; }
.rl { display:inline-block; white-space:pre; will-change:transform, filter, opacity; transition:translate .5s var(--ease); }
/* what I'm doing right now, plus the two things people want first */
.hero-now { display:flex; flex-direction:column; align-items:flex-start; gap:16px; max-width:min(46ch, 44vw); }
.hero-now p { font-size:14px; line-height:1.5; letter-spacing:.01em; text-transform:none; }
.hero-now .k { display:block; margin-bottom:6px; font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; }
.hero-now a { text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.hero-now .acts { display:flex; flex-wrap:wrap; gap:10px; }
.hero-now .acts a { text-decoration:none; }

/* ============ Statement: holds still and fills in word by word ============ */
.intro { position:relative; height:200vh; }
.intro-pin { position:sticky; top:0; height:100vh; height:100svh; display:grid; place-items:center; padding:60px var(--gut); }
.statement { max-width:26ch; font-size:clamp(24px,3.2vw,48px); line-height:1.22; letter-spacing:.01em; text-transform:uppercase; text-align:center; }
.statement .w { opacity:.14; transition:opacity .25s linear; }
.still .statement .w { opacity:1 !important; }
.progress { position:absolute; left:50%; bottom:calc(36px + env(safe-area-inset-bottom)); transform:translateX(-50%); width:120px; height:1px; background:var(--line); }
.progress i { position:absolute; inset:0; background:var(--ink); transform-origin:left; transform:scaleX(var(--p,0)); }

/* ============ Selected work: a sideways reel. The section pins and the projects slide past. ============ */
.work { position:relative; }
.w-pin { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; background:var(--bg); }
.w-gl { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; z-index:0; }
.w-top { position:absolute; left:var(--gut); right:var(--gut); top:clamp(24px,4vh,44px); display:flex; justify-content:flex-start; gap:32px; align-items:center; z-index:2; }
.w-count { font-size:var(--t-label); letter-spacing:.12em; font-variant-numeric:tabular-nums; }
.work { --cw:min(54vw, 52vh * 1.6); }   /* card width; the picture is 16:10 */
@media (max-height:800px) { .work { --cw:min(54vw, 44vh * 1.6); } }   /* shorter laptop screens: a little smaller, so titles and text clear the bars */
@media (max-height:700px) { .work { --cw:min(54vw, 40vh * 1.6); } }
/* the reel is one grid: every card shares three rows (the tallest title, the picture, the tallest text),
   so all the pictures line up exactly, whatever the length of each title and description */
.w-track { position:relative; z-index:1; display:grid; grid-auto-flow:column; grid-template-rows:auto auto auto; align-content:center; column-gap:clamp(72px,8vw,150px); height:100%; padding:clamp(14px,3.4vh,40px) calc((100vw - var(--cw)) / 2) 0 var(--gut); width:max-content; will-change:transform; }
.w-intro { grid-row:1 / span 3; align-self:center; width:clamp(300px,30vw,480px); }
.w-intro h2 { margin:0 0 28px; font-size:var(--t-display); font-weight:400; line-height:.9; letter-spacing:-.02em; text-transform:uppercase; }
.w-intro h2 span { display:block; }
.w-intro > p { max-width:30ch; font-size:var(--t-body); line-height:1.55; color:var(--text); }
/* filters: a text list, a dot marks the one that's on */
.w-filters { display:flex; flex-direction:column; align-items:flex-start; margin-top:36px; }
.w-filter { display:inline-flex; align-items:center; gap:12px; min-height:34px; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); transition:color .25s; }
.w-filter::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:0; transform:scale(.4); transition:opacity .3s, transform .3s var(--ease); }
.w-filter:hover, .w-filter[aria-pressed="true"] { color:var(--ink); }
.w-filter[aria-pressed="true"]::before { opacity:1; transform:none; }
.w-filter b { font-weight:400; opacity:.5; font-variant-numeric:tabular-nums; }
.w-go { display:inline-flex; align-items:center; gap:12px; margin-top:28px; font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; }
.w-go i { font-style:normal; display:inline-block; animation:nudgeX 1.8s var(--ease-io) infinite; }
@keyframes nudgeX { 50% { transform:translateX(8px); } }

/* one project */
.w-card { grid-row:1 / span 3; display:grid; grid-template-rows:subgrid; width:var(--cw); }
/* narrow cards (smaller or shorter screens): the title gets the whole line and the link sits under the text */
@media (max-width:1110px), (max-height:800px) {
  .work:not(.static) .w-head { flex-wrap:wrap; font-size:clamp(18px, calc(var(--cw) * 0.056), 34px); }
  .work:not(.static) .w-head .w-role { display:none; }
  .work:not(.static) .w-info { flex-direction:column; gap:12px; margin-top:16px; }
  .work:not(.static) .w-desc { font-size:15px; }
  .work:not(.static) .w-result, .work:not(.static) .w-note { font-size:13px; }
}
.w-card > .w-head { align-self:end; }
.w-card > .w-info { align-self:start; }
.w-card[hidden] { display:none; }
.w-head { display:flex; align-items:baseline; gap:6px 18px; margin:0 0 18px; text-decoration:none; font-size:var(--t-caps); line-height:1.1; letter-spacing:.02em; text-transform:uppercase; }
.w-head small { flex:none; font-size:var(--t-label); letter-spacing:.12em; color:var(--muted); font-variant-numeric:tabular-nums; }
.w-name { min-width:0; }
.w-status { flex:none; align-self:center; display:inline-flex; align-items:center; gap:8px; font-size:10px; letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; color:var(--muted); }
.w-status i { width:6px; height:6px; border-radius:50%; background:currentColor; animation:wPulse 1.8s ease-in-out infinite; }
@keyframes wPulse { 50% { opacity:.25; } }
.w-role { flex:none; margin-left:auto; align-self:center; font-size:var(--t-label); letter-spacing:.12em; color:var(--muted); white-space:nowrap; }
.w-media { position:relative; display:block; aspect-ratio:16 / 10; border-radius:6px; overflow:hidden; background:var(--bg-2); }
.w-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 1s var(--ease); }
.w-media:hover img { transform:scale(1.04); }
.work.gl .w-media { background:transparent; }
.work.gl .w-media img { opacity:0; }   /* WebGL draws the picture in the same spot */
.w-info { display:flex; justify-content:space-between; align-items:flex-start; gap:40px; margin-top:20px; }
.w-desc { max-width:50ch; font-size:var(--t-body); line-height:1.5; color:var(--text); }
.w-result { margin-top:8px; max-width:52ch; font-size:14px; line-height:1.5; color:var(--muted); }
.w-result b { font-weight:500; color:var(--ink); }
.w-note, .cs-note { display:flex; align-items:baseline; gap:8px; margin-top:8px; max-width:52ch; font-size:13px; line-height:1.45; color:var(--muted); }
.w-note svg, .cs-note svg { flex:none; width:11px; height:13px; transform:translateY(2px); fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; }
.w-link { flex:none; display:inline-flex; align-items:center; gap:10px; padding-bottom:5px; border-bottom:1px solid var(--line); font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; text-decoration:none; transition:border-color .25s; }
.w-link:hover { border-color:var(--ink); }
.w-link i { font-style:normal; display:inline-block; transition:transform .5s var(--ease); }
.w-link:hover i { transform:translateX(4px); }
.w-bar { position:absolute; left:var(--gut); right:var(--gut); bottom:calc(clamp(22px,3.6vh,40px) + env(safe-area-inset-bottom)); height:1px; background:var(--line); z-index:2; }
.w-bar i { position:absolute; inset:0; background:var(--ink); transform-origin:left; transform:scaleX(var(--p,0)); }

/* phones, animations off or no WebGL: the projects stack and scroll normally */
.work.static .w-pin { position:static; height:auto; overflow:visible; }
.work.static .w-gl, .work.static .w-bar, .work.static .w-count, .work.static .w-go { display:none; }
.work.static .w-top { position:static; padding:var(--sec) var(--gut) 0; }
.work.static .w-track { display:block; width:auto; height:auto; padding:40px var(--gut) 0; transform:none !important; }
.work.static .w-intro { width:auto; margin-bottom:clamp(56px,10vh,96px); }
.work.static .w-filters { flex-direction:row; flex-wrap:wrap; gap:0 24px; margin-top:28px; }
.work.static .w-card { display:block; width:auto; max-width:960px; margin:0 0 clamp(72px,12vh,120px); }
@media (max-width:700px) {
  .w-info { flex-direction:column; gap:16px; }
  .w-head { flex-wrap:wrap; }
  .w-head .w-role { display:none; }
}
@media (max-width:600px) {
  .work.static .w-filters { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:28px calc(-1 * var(--gut)) 0; padding:2px var(--gut); }
  .work.static .w-filters::-webkit-scrollbar { display:none; }
  .w-filter { flex:none; }
}

/* ============ More work: a compact list ============ */
.more { padding:var(--sec) 0 0; }
.more-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:32px 40px; margin:clamp(40px,8vh,88px) 0 clamp(40px,6vh,64px); }
.more-head h2 { max-width:16ch; font-size:var(--t-xl); font-weight:400; line-height:1; letter-spacing:-.01em; text-transform:uppercase; }
.more-list { border-bottom:1px solid var(--line); }
.mw { display:grid; grid-template-columns:3.5em minmax(0,1.1fr) minmax(0,1.4fr) 44px; align-items:start; gap:12px clamp(20px,3vw,48px); padding:clamp(22px,3vw,34px) 0; border-top:1px solid var(--line); text-decoration:none; }
.mw small { padding-top:.6em; font-size:var(--t-label); letter-spacing:.12em; color:var(--muted); font-variant-numeric:tabular-nums; }
.mw h3 { font-size:var(--t-caps); font-weight:400; line-height:1.1; letter-spacing:.02em; text-transform:uppercase; }
.mw p { padding-top:.25em; font-size:var(--t-body); line-height:1.55; color:var(--text); max-width:56ch; }
.go { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; border:1px solid var(--ink); color:var(--ink); transition:background .25s, color .25s, transform .4s var(--ease); }
.go svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.mw:hover .go, .mw:focus-visible .go { background:var(--ink); color:var(--bg); transform:rotate(-8deg); }
@media (max-width:860px) {
  .mw { grid-template-columns:minmax(0,1fr) 40px; }
  .mw small { grid-column:1 / -1; padding:0; }
  .mw h3 { grid-column:1; }
  .mw p { grid-column:1 / -1; grid-row:3; }
  .mw .go { grid-column:2; grid-row:2; }
}

/* ============ Skills band: drifts sideways, faster when you scroll ============ */
.band { overflow:hidden; margin-top:var(--sec); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:clamp(18px,2.6vw,30px) 0; }
.band-track { display:flex; width:max-content; will-change:transform; }
.band-track span { flex:none; padding-right:.6em; font-size:var(--t-display); font-weight:400; line-height:1; letter-spacing:-.01em; text-transform:uppercase; white-space:nowrap; }
.band-track i { font-style:normal; display:inline-block; margin:0 .7em; transform:translateY(-.12em); font-size:.28em; vertical-align:middle; }

/* ============ About ============ */
.about { padding:var(--sec) 0; overflow-x:clip; }
.ab-top { margin-bottom:clamp(40px,8vh,88px); }
.ab-stage { position:relative; display:flex; justify-content:center; }
/* the hello sits over the photo; the two halves slide in from the sides as you scroll */
.ab-hello { position:absolute; inset:0; z-index:2; pointer-events:none; mix-blend-mode:difference; color:#fff; font-size:var(--t-mega); font-weight:400; line-height:.86; letter-spacing:-.02em; text-transform:uppercase; white-space:nowrap; }
html.dark .ab-hello { color:var(--ink); }
.ab-hello span { position:absolute; display:block; will-change:transform; }
.ab-hello .l1 { left:0; top:12%; transform:translateX(calc(var(--s,0) * -16vw)); }
.ab-hello .l2 { right:0; top:50%; transform:translateX(calc(var(--s,0) * 16vw)); }
.portrait-col { display:flex; flex-direction:column; align-items:center; width:min(100%,clamp(300px,32vw,460px)); }
.portrait { position:relative; width:100%; aspect-ratio:4 / 5; overflow:hidden; background:var(--bg-2); touch-action:pan-y; }
.portrait img, .portrait canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.portrait img { object-fit:cover; object-position:50% 35%; filter:grayscale(1) contrast(1.05); -webkit-user-drag:none; }
.portrait.gl img { opacity:0; }
.portrait canvas { opacity:0; }
.portrait.gl canvas { opacity:1; }
/* until the photo is added: a clearly marked empty frame */
.ph-slot { position:absolute; inset:14px; display:none; flex-direction:column; align-items:center; justify-content:center; gap:12px; border:1px dashed var(--line); color:var(--muted); text-align:center; font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; }
.ph-slot svg { width:44px; height:44px; fill:none; stroke:currentColor; stroke-width:1.2; }
.portrait.empty .ph-slot { display:flex; }
.portrait.empty img, .portrait.empty canvas { display:none; }
.portrait-cap { margin-top:22px; font-size:var(--t-label); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-align:center; }
.ab-copy { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:48px var(--gut); align-items:start; margin-top:clamp(64px,12vh,140px); }
.ab-lead { grid-column:2 / span 6; font-size:var(--t-lead); line-height:1.5; max-width:36ch; }
.ab-side { grid-column:9 / span 4; }
.ab-side .k, .ab-list h3 { margin-bottom:14px; font-size:var(--t-label); font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.ab-side p { margin-bottom:28px; font-size:var(--t-body); line-height:1.65; color:var(--text); max-width:34ch; }
.ab-acts { display:flex; flex-wrap:wrap; gap:10px; }
.ab-list { grid-column:2 / span 6; }
.ab-list + .ab-list { grid-column:9 / span 4; }
.ab-list ul { border-bottom:1px solid var(--line); }
.ab-list li { display:flex; justify-content:space-between; align-items:baseline; gap:6px 24px; flex-wrap:wrap; padding:14px 0; border-top:1px solid var(--line); }
.ab-list li b { font-weight:400; font-size:17px; }
.ab-list li span { font-size:14px; color:var(--muted); }
.ab-list.edu li { flex-direction:column; gap:2px; }

/* ============ Interests: little worlds you can poke ============ */
.int { padding:0 0 var(--sec); }
.int-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:24px 40px; margin:clamp(40px,8vh,88px) 0 clamp(36px,6vh,56px); }
.int-head h2 { font-size:var(--t-display); font-weight:400; line-height:.9; letter-spacing:-.02em; text-transform:uppercase; }
.int-head h2 span { display:block; }
.int-head p { max-width:34ch; font-size:var(--t-body); line-height:1.6; color:var(--text); }
.bento { --cap:58px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:clamp(270px,25vw,360px); grid-auto-flow:dense; gap:clamp(14px,1.4vw,22px) clamp(10px,1.1vw,16px); }
.tile { display:flex; flex-direction:column; min-width:0; min-height:0; }
.tile.s-wide { grid-column:span 2; }
.tile.s-tall { grid-row:span 2; }
.tile.s-xwide { grid-column:1 / -1; }
.tile-box { position:relative; flex:1; min-height:0; border-radius:4px; overflow:hidden; background:var(--tile-bg,#eee); isolation:isolate; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.tile-box svg, .tile-box canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.tile-cap { flex:none; min-height:var(--cap); display:flex; align-items:center; gap:12px; padding:8px 2px 6px 4px; }
.tile-cap .txt { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.tile-cap .name { font-size:14px; letter-spacing:.08em; text-transform:uppercase; line-height:1.25; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.tile-cap .how { font-size:13px; line-height:1.3; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tile-cap .how span { color:var(--muted); }
.tile-cap .go { flex:none; width:36px; height:36px; }
.tile:hover .go, .tile-cap .go:focus-visible { background:var(--ink); color:var(--bg); transform:rotate(-8deg); }
/* languages: a split-flap board */
.flap { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; padding:20px; color:#F2F2EF; }
.flap-row { display:flex; gap:4px; }
.flap-c { position:relative; display:grid; place-items:center; width:clamp(26px,3.1vw,42px); height:clamp(38px,4.4vw,60px); border-radius:3px; background:#1E1E21; font-size:clamp(18px,2.2vw,30px); line-height:1; box-shadow:inset 0 -1px 0 rgba(255,255,255,.06); }
.flap-c::after { content:""; position:absolute; left:0; right:0; top:50%; height:1px; background:rgba(0,0,0,.55); }
.flap-c.flip { animation:flapIn 70ms linear; }
@keyframes flapIn { from { transform:scaleY(.15); } to { transform:none; } }
.flap-meta { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.flap-nat { font-size:clamp(22px,2.2vw,30px); line-height:1.2; }
.flap-lvl { font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; color:rgba(242,242,239,.6); }
/* food: steam rising off the bowl */
.steam { animation:steam 2.4s ease-in-out infinite; opacity:0; }
@keyframes steam { 0% { opacity:0; transform:translateY(8px); } 40% { opacity:1; } 100% { opacity:0; transform:translateY(-16px); } }
/* podcast: the on-air light */
.onair { position:absolute; left:clamp(16px,2vw,28px); top:clamp(16px,2vw,24px); display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border:1px solid rgba(245,217,163,.45); border-radius:100px; color:rgba(245,217,163,.7); font-size:11px; letter-spacing:.14em; text-transform:uppercase; transition:background .3s, color .3s, border-color .3s, box-shadow .3s; }
.onair::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.onair.on { background:#E9503B; border-color:#E9503B; color:#fff; box-shadow:0 0 24px rgba(233,80,59,.55); }
/* lifting: steel bar, chin line, gym timer */
.tile[data-tile="lift"] .tile-box { background:radial-gradient(120% 70% at 50% 0%,#26262a 0%,#18181A 60%,#121214 100%); }
/* music: a turntable on a warm grey plinth, the record's sleeve beside it */
.tile[data-tile="music"] .tile-box { container-type:size; display:flex; align-items:center; gap:clamp(14px,2.4vw,36px); padding:clamp(12px,1.6vw,22px) clamp(16px,2.6vw,40px); color:#1b1a18;
  background:radial-gradient(80% 120% at 30% 40%,rgba(255,255,255,.55) 0%,transparent 60%),linear-gradient(180deg,#E9E5DE,#DCD7CE); }
.deck { position:relative; flex:none; height:100%; aspect-ratio:1.64; }
.deck .sleeve { position:absolute; left:-3%; top:12%; height:76%; aspect-ratio:1; rotate:-3deg; border-radius:2px; overflow:hidden; background:#cfcac2; box-shadow:0 16px 30px -14px rgba(0,0,0,.5),0 0 0 1px rgba(0,0,0,.06); }
.deck .sleeve::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(255,255,255,.18),transparent 40%,transparent 70%,rgba(0,0,0,.08)); }
.deck .sleeve img { display:block; width:100%; height:100%; object-fit:cover; }
.deck .tt { position:absolute; right:0; top:0; height:100%; aspect-ratio:1; }
.deck .tt svg { position:absolute; inset:0; width:100%; height:100%; }
@container (max-width:719px) {
  .deck { aspect-ratio:1; max-width:48%; }
  .deck .sleeve { display:none; }
  .deck .tt { inset:0; width:100%; height:100%; aspect-ratio:auto; }
}
.np { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:10px; }
.np-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.np-k { font-size:var(--t-label); letter-spacing:.14em; text-transform:uppercase; color:rgba(27,26,24,.55); }
.np-play { display:inline-flex; align-items:center; gap:8px; padding:5px 12px 5px 10px; border:1px solid rgba(27,26,24,.3); border-radius:100px; background:transparent; color:#1b1a18; font:inherit; font-size:11px; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; transition:background .25s,color .25s,border-color .25s; }
.np-play:hover, .np-play:focus-visible { background:#1b1a18; color:#EDEAE4; border-color:#1b1a18; }
.np-ic { width:9px; height:10px; background:currentColor; clip-path:polygon(0 0,100% 50%,0 100%); }
.np-play[aria-pressed="true"] .np-ic { clip-path:polygon(0 0,35% 0,35% 100%,0 100%,0 0,65% 0,100% 0,100% 100%,65% 100%,65% 0); }
.np-list { list-style:none; display:flex; flex-direction:column; }
.np-list li { border-top:1px solid rgba(27,26,24,.14); }
.np-list li:last-child { border-bottom:1px solid rgba(27,26,24,.14); }
.np-row { display:grid; grid-template-columns:40px minmax(0,1fr) 18px; align-items:center; gap:12px; width:100%; padding:8px 0; border:0; background:none; font:inherit; text-align:left; cursor:pointer; color:rgba(27,26,24,.5); transition:color .3s; }
.np-list li.on .np-row, .np-row:hover, .np-row:focus-visible { color:#1b1a18; }
.np-cv { width:40px; height:40px; border-radius:2px; object-fit:cover; box-shadow:0 4px 10px -4px rgba(0,0,0,.4); opacity:.7; transition:opacity .3s; }
.np-list li.on .np-cv, .np-row:hover .np-cv { opacity:1; }
.np-t { display:flex; flex-direction:column; gap:2px; min-width:0; }
.np-t b { font-weight:400; font-size:clamp(15px,1.3vw,19px); line-height:1.15; letter-spacing:.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-t span { font-size:12px; letter-spacing:.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-eq { display:flex; align-items:flex-end; gap:2px; height:14px; opacity:0; transition:opacity .3s; }
.np-eq i { width:3px; height:100%; background:currentColor; transform-origin:bottom; transform:scaleY(.3); }
.playing .np-list li.on .np-eq { opacity:1; }
.playing .np-list li.on .np-eq i { animation:eq .9s ease-in-out infinite alternate; }
.playing .np-list li.on .np-eq i:nth-child(2) { animation-duration:.7s; animation-delay:-.3s; }
.playing .np-list li.on .np-eq i:nth-child(3) { animation-duration:1.1s; animation-delay:-.6s; }
@keyframes eq { from { transform:scaleY(.25); } to { transform:scaleY(1); } }
.still .playing .np-list li.on .np-eq i { animation:none; transform:scaleY(.7); }
.np-src { font-size:11px; letter-spacing:.04em; color:rgba(27,26,24,.55); }
.np-src a { color:inherit; text-underline-offset:2px; }
.np-src.warn::after { content:" · " attr(data-note); color:#9a3412; }
.np-short { display:none; }
@container (max-height:250px) {
  .np { gap:6px; }
  .np-row { grid-template-columns:30px minmax(0,1fr) 14px; gap:10px; padding:5px 0; }
  .np-cv { width:30px; height:30px; }
  .np-t b { font-size:14px; }
  .np-t span { font-size:11px; }
}
/* podcast: the show's cover, the waveform beside it */
.pod-cover { position:absolute; z-index:1; left:clamp(14px,6%,28px); top:50%; height:70%; aspect-ratio:1; translate:0 -50%; border-radius:3px; overflow:hidden; box-shadow:0 18px 36px -16px rgba(0,0,0,.7); transition:scale .5s var(--ease); }
.pod-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.tile[data-tile="pod"] .tile-box:hover .pod-cover { scale:1.03; }
.tile[data-tile="pod"] .onair { left:auto; right:clamp(14px,2vw,24px); top:clamp(14px,2vw,20px); }
/* travel: a real map of the trip */
.map-tag { position:absolute; z-index:2; left:14px; top:14px; padding:6px 11px; border-radius:100px; background:rgba(251,247,238,.88); color:#1b1a18; font-size:11px; letter-spacing:.14em; text-transform:uppercase; pointer-events:none; }
/* food: instant photos of meals I love */
.tile[data-tile="food"] .tile-box { container-type:size; display:flex; align-items:center; gap:clamp(12px,5cqw,26px); padding:0 clamp(14px,6cqw,28px); color:#1b1a18; }
.snaps { position:relative; flex:none; height:84%; aspect-ratio:.62; }
.snap { position:absolute; inset:0; margin:0; display:flex; flex-direction:column; padding:7% 7% 0; border-radius:3px; background:#FDFCF8; box-shadow:0 12px 24px -12px rgba(70,45,0,.5),0 0 0 1px rgba(0,0,0,.04); transform:translate(var(--x,0),var(--y,0)) rotate(var(--r,0deg)); transition:transform .55s var(--ease); }
.snap img { display:block; width:100%; aspect-ratio:3 / 4; object-fit:cover; border-radius:1px; }
.snap figcaption { flex:1; display:grid; place-items:center; font-size:clamp(8px,4.4cqh,12px); letter-spacing:.22em; color:#D8432E; }
.tile[data-tile="food"] .tile-box:hover .snap.top { transform:translate(0,-5px) rotate(0deg); }
.fd { flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
.fd-n { font-size:11px; letter-spacing:.14em; font-variant-numeric:tabular-nums; color:rgba(27,26,24,.62); }
.fd-list { list-style:none; }
.fd-list li { display:none; flex-direction:column; gap:5px; }
.fd-list li.on { display:flex; }
.fd-list b { font-weight:400; font-size:clamp(16px,8cqh,23px); line-height:1.1; }
.fd-list li > span:not(.sr-only) { font-size:12.5px; letter-spacing:.02em; }
.fd-list em { font-style:normal; font-size:12.5px; line-height:1.35; color:rgba(27,26,24,.72); }
.fd-link { align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:100px; background:rgba(255,255,255,.7); color:#111; font-size:11px; letter-spacing:.12em; text-transform:uppercase; text-decoration:none; transition:background .25s,color .25s; }
.fd-link:hover, .fd-link:focus-visible { background:#111; color:#fff; }
.fd-link i { font-style:normal; }
@container (max-height:230px) { .fd { gap:7px; } .fd-list em, .fd-list li > span:not(.sr-only) { font-size:11.5px; } }
/* a small link inside a tile */
.tile-link { position:absolute; z-index:2; left:14px; top:14px; display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:100px; background:rgba(255,255,255,.78); color:#111; font-size:11px; letter-spacing:.12em; text-transform:uppercase; text-decoration:none; transition:background .25s,color .25s; }
.tile-link:hover, .tile-link:focus-visible { background:#111; color:#fff; }
.tile-link i { font-style:normal; }
@media (max-width:1000px) {
  .bento { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:clamp(240px,34vw,300px); }
  .tile.s-wide, .tile.s-pod { grid-column:1 / -1; }
}
@media (max-width:620px) {
  .bento { grid-template-columns:minmax(0,1fr); grid-auto-rows:276px; }
  .tile.s-wide, .tile.s-xwide, .tile.s-pod { grid-column:auto; }
  .tile[data-tile="music"] .tile-box { padding:12px 14px; gap:12px; }
  .np-k, .np-long { display:none; }
  .np-short { display:inline; }
  .np-top { justify-content:flex-start; }
  .tile[data-tile="music"] .deck { max-width:38%; }
  .tile[data-tile="music"] .np-t b { font-size:13px; }
  .tile.s-tall { grid-row:span 1; }
  .tile[data-tile="travel"].s-tall { grid-row:span 2; }   /* the route runs north to south: give the map room */
}

/* ============ Footer: the same ink pool, and every way to reach me ============ */
.foot-hero { position:absolute; left:var(--gut); right:var(--gut); top:53%; transform:translateY(-50%); }
/* the contact pool stacks top bar, title and contact list, and grows past the screen when it has to, so nothing overlaps on short screens */
#contact.pool { height:auto; min-height:100vh; min-height:100svh; }
#contact .over { position:relative; inset:auto; display:flex; flex-direction:column; min-height:100vh; min-height:100svh; }
#contact .pool-top, #contact .pool-foot { position:relative; }
#contact .foot-hero { position:relative; left:auto; right:auto; top:auto; transform:none; margin:auto var(--gut); padding:clamp(8px,2vh,28px) 0 clamp(64px,10vh,110px); }
.foot-kick { max-width:30ch; margin-bottom:clamp(14px,2vh,24px); font-size:clamp(15px,1.25vw,19px); line-height:1.35; letter-spacing:.005em; }
.foot-title { font-size:clamp(56px,min(11.5vw,19vh),210px); font-weight:400; line-height:.86; letter-spacing:-.02em; text-transform:uppercase; white-space:nowrap; }
.ft-wrap { display:flex; flex-direction:column; }
.ft-ln { display:flex; padding:.04em 0; }
.ft-ln:nth-child(2) { padding-left:3em; }   /* line 2 starts just past line 1, where the reference's second word starts */
.foot-title .roll .wd { line-height:.92; vertical-align:top; }
.foot-title .roll .ch { text-shadow:0 1em 0 currentColor; transition:transform .7s var(--ease-io), translate .5s var(--ease); transition-delay:calc(var(--i) * 30ms), 0s; }
.ft-wrap:hover .roll .ch { transform:translateY(-1em); }
.reach { position:relative; text-align:left; width:min(100%,540px); margin:clamp(22px,3vw,40px) 0 0 auto; border-bottom:1px solid color-mix(in srgb,currentColor 28%,transparent); }
.reach-row { display:grid; grid-template-columns:7.2em minmax(0,1fr) auto; align-items:center; gap:8px 16px; padding:7px 0; border-top:1px solid color-mix(in srgb,currentColor 28%,transparent); }
.reach-k { font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; }
.reach-v { justify-self:start; font-size:clamp(15px,1.15vw,17px); line-height:1.3; letter-spacing:.005em; text-decoration:none; padding-bottom:2px; background:linear-gradient(currentColor,currentColor) 0 100% / 0 1px no-repeat; transition:background-size .5s var(--ease); overflow-wrap:anywhere; }
.reach-v:hover, .reach-v:focus-visible, .reach-row:hover .reach-v { background-size:100% 1px; }
.reach-act { min-width:5.6em; }
@media (min-width:601px) { .reach-v { white-space:nowrap; } }
.copy-status { position:absolute; right:0; top:calc(100% + 12px); min-height:1.4em; font-size:13px; white-space:nowrap; }
.foot-links { display:flex; gap:22px; }
.top-link { font-size:var(--t-label); letter-spacing:.1em; text-transform:uppercase; margin-top:6px; }

/* ============ Case study pages ============ */
body[data-cs] { --accent:var(--cs,#111); }
html.dark body[data-cs] { --accent:var(--cs-d,var(--ink)); }
.cs-headbar { position:relative; }
.cs-headbar .head { position:absolute; }
.cs-hero { padding-top:clamp(150px,22vh,220px); }
.cs-back { display:inline-flex; align-items:center; gap:10px; min-height:44px; font-size:var(--t-label); letter-spacing:.12em; text-transform:uppercase; text-decoration:none; color:var(--ink); }
.cs-eyebrow { margin-top:clamp(40px,7vh,72px); color:var(--accent); }
.cs-eyebrow::before { height:2px; }
.cs-title { margin:24px 0 28px; font-size:clamp(40px,4.9vw,72px); font-weight:400; line-height:1; letter-spacing:.005em; text-transform:uppercase; max-width:20ch; }
.cs-lead { max-width:52ch; font-size:var(--t-lead); line-height:1.6; color:var(--text); }
.cs-meta { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); margin:clamp(36px,5vw,56px) 0 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cs-mi { padding:22px 24px 22px 0; }
.cs-mi + .cs-mi { padding-left:24px; border-left:1px solid var(--line); }
.cs-mi .l { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.cs-mi { min-width:0; }
.cs-mi .v { margin-top:8px; font-size:15px; line-height:1.45; overflow-wrap:anywhere; }
.cs-mi .v a { text-underline-offset:3px; }
.cs-status { display:inline-flex; align-items:center; gap:10px; margin-top:20px; font-size:13px; color:var(--text); }
.cs-status i { width:7px; height:7px; border-radius:50%; background:var(--accent); animation:wPulse 1.8s ease-in-out infinite; }
.cs-fig { margin-top:clamp(36px,5vw,56px); }
.cs-media { border-radius:4px; overflow:hidden; background:var(--bg-2); aspect-ratio:16 / 10; }
.cs-cap { margin-top:12px; font-size:12px; letter-spacing:.04em; color:var(--muted); }
.cs-media img { width:100%; height:100%; object-fit:cover; }
.cs-sec { padding-top:clamp(64px,8vw,112px); scroll-margin-top:60px; }
.cs-sec::before { content:""; display:block; height:1px; background:var(--line); margin-bottom:clamp(28px,3.5vw,44px); }
.sec-head { display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:900px) { .sec-head { grid-template-columns:1fr 2fr; gap:40px; } }
.sec-lbl { display:flex; align-items:center; gap:14px; padding-top:8px; font-size:var(--t-label); font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); }
.sec-lbl::before { content:""; width:40px; height:2px; background:currentColor; }
.cs-gallery { display:flex; flex-direction:column; gap:clamp(10px,1.2vw,16px); margin-top:clamp(24px,3vw,40px); }
.cs-row { display:flex; gap:clamp(10px,1.2vw,16px); }
.cs-ph { flex:var(--a) 1 0%; min-width:0; margin:0; }   /* grow by aspect ratio, so every photo in a row is the same height */
.cs-ph img { display:block; width:100%; height:auto; aspect-ratio:var(--a); object-fit:cover; border-radius:4px; background:var(--bg-2); }
.cs-ph figcaption { margin-top:10px; font-size:13px; line-height:1.4; color:var(--muted); }
@media (max-width:600px) { .cs-row { flex-direction:column; } }
.sec-copy p { max-width:760px; font-size:clamp(20px,2.2vw,30px); line-height:1.32; letter-spacing:-.01em; color:var(--ink); }
.sec-copy p + p { margin-top:.7em; }
.sec-copy .small { font-size:var(--t-lead); line-height:1.55; color:var(--text); }
.cs-num { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:20px; margin-top:clamp(36px,4.5vw,56px); }
.cs-num div { border-top:1px solid var(--line); padding-top:16px; }
.cs-num b { display:block; font-size:clamp(34px,4vw,56px); font-weight:400; letter-spacing:-.02em; line-height:1; color:var(--accent); font-variant-numeric:tabular-nums; }
.cs-num span { display:block; margin-top:10px; font-size:14px; line-height:1.45; color:var(--text); }
.cs-live { margin-top:clamp(28px,3.5vw,44px); }
.cs-foot-nav { display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; margin-top:clamp(80px,10vw,140px); padding:44px 0 clamp(64px,8vw,100px); border-top:1px solid var(--line); }
.sec-copy .cs-num, .sec-copy .cs-live { max-width:760px; }
.cs-nxt { text-align:right; }
.cs-nxt-l { margin-bottom:10px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.cs-nxt-a { font-size:var(--t-caps); letter-spacing:.02em; text-transform:uppercase; text-decoration:none; }
@media (max-width:640px) {
  .cs-meta { grid-template-columns:1fr 1fr; border-bottom:0; }
  .cs-mi { padding:16px 0 !important; border-left:0 !important; border-bottom:1px solid var(--line); }
  .cs-mi:nth-child(even) { padding-left:16px !important; border-left:1px solid var(--line) !important; }
  .cs-nxt { text-align:left; }
}

/* ============ Tablet and phone ============ */
@media (max-width:1100px) {
  .hint { bottom:auto; top:calc(100% - 260px); }
}
@media (max-width:960px) {
  .ab-lead, .ab-side, .ab-list, .ab-list + .ab-list { grid-column:1 / -1; }
}
@media (max-width:600px) {
  :root { --sec:clamp(110px,16vh,160px); }
  .role { font-size:13.4vw; line-height:.9; }
  .hero-role { top:40%; }
  .hero-now { max-width:none; }
  .pool-foot .arrow-dn { display:none; }
  .intro { height:170vh; }
  .statement { text-align:left; max-width:none; }
  .foot-title { font-size:13.4vw; line-height:.9; }
  /* the footer on phones: everything in one column, the pool grows to fit, and the bottom stays clear for the switch */
  #contact.pool { height:auto; min-height:100svh; }
  #contact .over { position:relative; inset:auto; display:flex; flex-direction:column; min-height:100svh; }
  #contact .pool-top { position:relative; flex-direction:column; gap:10px; }
  #contact .top-link { margin-top:0; }
  #contact .foot-hero { position:relative; left:auto; right:auto; top:auto; transform:none; margin:clamp(40px,8vh,72px) var(--gut) 0; }
  #contact .pool-foot { position:relative; margin-top:auto; flex-wrap:wrap; padding-top:190px; }
  #contact .hint { position:static; transform:none; order:-1; width:100%; margin-bottom:14px; white-space:normal; }
  .reach { width:100%; }
  .reach-row { grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; }
  .reach-v { grid-column:1 / -1; grid-row:2; }
  .copy-status { left:0; right:auto; }
  .foot-links { gap:16px; }
  .menu-foot { flex-direction:column; align-items:flex-start; }
  .tgl { bottom:calc(150px + env(safe-area-inset-bottom)); }
}
