/* ==========================================================
   Olabisi Adigun: site styles
   One stylesheet for every page. Sections pick a surface
   (.s-ink / .s-paper / .s-yellow / .s-blue) and everything
   inside inherits its colours from the surface tokens.
   Dark mode (html[data-theme="dark"]) re-tints the paper
   surface; the ink, yellow and blue bands stay as they are.
   ========================================================== */

:root {
  --ink: #0d0d0e;
  --ink-2: #18181a;
  --paper: #f3f1ea;
  --paper-2: #e7e4da;
  --yellow: #ffd23f;
  --blue: #2146ff;
  --blue-2: #1634d6;
  --cream: #f5f3ec;
  --card: #ffffff;
  --danger: #c7281d;

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: #55534e;
  --fg-3: #6b6963;
  --line: rgba(13, 13, 14, .14);
  --accent: var(--blue);
  --panel: var(--paper);
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; --card: #202023; --danger: #ff7a6e; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Surfaces ─────────────────────────────── */
.s-ink    { --bg: var(--ink);    --fg: var(--cream); --fg-2: #b3b1aa; --fg-3: #8f8d87; --line: rgba(245, 243, 236, .14); --accent: var(--yellow); --panel: var(--ink-2); --paper-2: #202023; }
.s-paper  { --bg: var(--paper);  --fg: var(--ink);   --fg-2: #55534e; --fg-3: #6b6963; --line: rgba(13, 13, 14, .14);   --accent: var(--blue);   --panel: var(--paper); }
.s-yellow { --bg: var(--yellow); --fg: var(--ink);   --fg-2: #3d3514; --fg-3: #564b1c; --line: rgba(13, 13, 14, .2);    --accent: var(--ink);    --panel: var(--paper); }
.s-blue   { --bg: var(--blue);   --fg: #fff;         --fg-2: rgba(255,255,255,.88); --fg-3: rgba(255,255,255,.74); --line: rgba(255,255,255,.28); --accent: var(--yellow); --panel: var(--blue-2); }
html[data-theme="dark"] .s-paper { --bg: #151517; --fg: var(--cream); --fg-2: #b3b1aa; --fg-3: #8f8d87; --line: rgba(245, 243, 236, .13); --accent: var(--yellow); --panel: #1d1d20; --paper-2: #222225; }
html[data-theme="dark"] .s-ink { --bg: #080809; }
.s-ink, .s-paper, .s-yellow, .s-blue { background: var(--bg); color: var(--fg); transition: background-color .4s, color .4s; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }

/* ── Type ─────────────────────────────────── */
.label { font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-2); }
.label-accent { color: var(--accent); }

.display { margin: 0; font-weight: 500; font-size: clamp(44px, 7.4vw, 112px); line-height: .95; letter-spacing: -0.055em; }
.display-xl { font-size: clamp(56px, 10vw, 156px); line-height: .9; letter-spacing: -0.06em; }
.display-md { font-size: clamp(36px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.05em; }
.display-sm { font-size: clamp(28px, 3vw, 42px); line-height: 1.04; letter-spacing: -0.045em; }
.display .dim { color: var(--fg-3); }
.display .hi { color: var(--accent); }
.s-yellow .display .hi { color: var(--blue); }

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.38; letter-spacing: -0.02em; margin: 0; }
.small { font-size: 14px; line-height: 1.5; color: var(--fg-2); }

.lines .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.lines .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.lines.in .ln > span { transform: none; }
.lines .ln:nth-child(2) > span { transition-delay: .07s; }
.lines .ln:nth-child(3) > span { transition-delay: .14s; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  .lines .ln > span, .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
}
html.no-js .lines .ln > span, html.no-js .reveal { transform: none; opacity: 1; }

/* ── Links & buttons (square corners) ─────── */
.ulink { display: inline-flex; align-items: center; gap: 18px; font-size: 13.5px; font-weight: 500; padding: 0 0 8px; border-bottom: 1px solid currentColor; transition: color .25s, border-color .25s; }
.ulink:hover { color: var(--accent); }
.ulink.ghost { color: var(--fg-2); border-color: var(--line); }
.ulink.ghost:hover { color: var(--fg); border-color: currentColor; }

.arrow { width: 1em; height: 1em; flex: none; display: inline-block; }
.arrow svg { width: 100%; height: 100%; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid var(--line); background: transparent;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.btn:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.s-paper .btn.solid:hover { color: #fff; }
.s-ink .btn.solid:hover, html[data-theme="dark"] .s-paper .btn.solid:hover { color: var(--ink); }
.btn.yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn.yellow:hover { background: var(--cream); border-color: var(--cream); }
.btn .arrow { width: 13px; height: 13px; }
.btn[disabled] { opacity: .55; cursor: progress; }

.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Nav ──────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; color: var(--nav-fg, var(--cream)); transition: transform .5s var(--ease), background .35s, color .35s; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nav.scrolled { background: color-mix(in srgb, var(--nav-bg, var(--ink)) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.hide { transform: translateY(-100%); }
.nav[data-tone="paper"]  { --nav-fg: var(--ink);   --nav-bg: var(--paper);  --nav-cta-bg: var(--ink);    --nav-cta-fg: var(--paper); }
.nav[data-tone="ink"]    { --nav-fg: var(--cream); --nav-bg: var(--ink);    --nav-cta-bg: var(--yellow); --nav-cta-fg: var(--ink); }
.nav[data-tone="yellow"] { --nav-fg: var(--ink);   --nav-bg: var(--yellow); --nav-cta-bg: var(--ink);    --nav-cta-fg: var(--yellow); }
.nav[data-tone="blue"]   { --nav-fg: #fff;         --nav-bg: var(--blue);   --nav-cta-bg: var(--yellow); --nav-cta-fg: var(--ink); }
html[data-theme="dark"] .nav[data-tone="paper"] { --nav-fg: var(--cream); --nav-bg: #151517; --nav-cta-bg: var(--yellow); --nav-cta-fg: var(--ink); }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 34px; height: 22px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-text b { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.brand-text span { font-size: 11.5px; opacity: .72; }

.nav-right { display: flex; align-items: center; gap: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 6px 0 0; padding: 0; }
.nav-links a, .nav-links button { position: relative; display: inline-block; padding: 8px 11px; font-size: 13.5px; font-weight: 500; }
.nav-links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r); transition: background .2s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; margin-left: 8px; border-radius: var(--r); background: var(--nav-cta-bg, var(--yellow)); color: var(--nav-cta-fg, var(--ink)); font-size: 13.5px; font-weight: 600; transition: opacity .2s, background .35s, color .35s; white-space: nowrap; }
.nav-cta:hover { opacity: .86; }

.menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; }
.menu-btn span::after, .menu-btn span::before { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 85; background: var(--ink); color: var(--cream); padding: 100px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-io); visibility: hidden; overflow-y: auto; }
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open .nav { --nav-fg: var(--cream); background: transparent; backdrop-filter: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a, .mobile-menu li button { display: block; font-size: clamp(40px, 11vw, 72px); font-weight: 500; letter-spacing: -0.055em; line-height: 1.08; padding: 4px 0; text-align: left; }
.mobile-menu li a:hover, .mobile-menu li button:hover { color: var(--yellow); }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu .foot { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: #b3b1aa; }

@media (max-width: 960px) { .nav-links, .nav-cta { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 380px) { .brand-text span { display: none; } }

/* ── Hero (home) ──────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 0; overflow: hidden; }
.hero-main { position: relative; z-index: 4; max-width: 62%; }
.hero-title { position: relative; margin: 0; font-weight: 500; letter-spacing: -0.06em; line-height: .86; font-size: clamp(56px, 8.4vw, 150px); text-transform: uppercase; }
.hero-title .row { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero-title .row > span { display: inline-block; transform: translateY(102%); transition: transform 1.1s var(--ease); }
.hero.in .hero-title .row > span { transform: none; }
.hero.in .hero-title .row:nth-child(2) > span { transition-delay: .1s; }
.hero-title .r1 { color: var(--yellow); }
.hero-title .r2 { color: var(--cream); padding-left: 8%; }
.hero-title .dot { color: var(--blue); }
.hero-meta { display: flex; align-items: center; gap: 8px; margin-top: clamp(18px, 2vw, 28px); opacity: 0; transform: translateY(10px); transition: opacity .6s .35s, transform .8s .35s var(--ease); }
.hero.in .hero-meta { opacity: 1; transform: none; }
.hero-meta .chip { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--ink); transition: background .2s, transform .3s var(--ease); }
.hero-meta .chip svg { width: 13px; height: 13px; }
.hero-meta .chip:hover { background: var(--yellow); transform: translateY(-2px); }
.hero-foot { position: relative; z-index: 4; padding-top: 28px; }
.hero-tag { font-size: clamp(16px, 1.35vw, 20px); letter-spacing: -0.02em; line-height: 1.35; margin: 0 0 24px; max-width: 540px; }
.hero-actions { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-strip { position: relative; z-index: 4; display: flex; align-items: center; gap: 40px; border-top: 1px solid var(--line); padding: 18px 0 26px; overflow: hidden; }
.hero-strip .scroll { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.hero-strip .scroll i { width: 6px; height: 6px; background: var(--yellow); }
.ticker { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: ticker 50s linear infinite; }
.ticker-track span { font-size: 13px; color: var(--fg-3); white-space: nowrap; }
.ticker-track span b { color: var(--fg-2); font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* The ID tag hangs from a verlet-rope lanyard; site.js positions both */
.tag-stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: auto; touch-action: none; cursor: grab; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); user-select: none; -webkit-user-select: none; }
.tag.on { visibility: visible; }
.tag.grab { cursor: grabbing; }
.tag img { display: block; width: 100%; height: auto; pointer-events: none; }
.tag-strap { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; }
.tag-strap.on { visibility: visible; }
.strap-band { fill: none; stroke: #232326; stroke-linejoin: round; }
.strap-edge { fill: none; stroke: rgba(245, 243, 236, .08); stroke-linejoin: round; }
.strap-text { fill: var(--yellow); font-family: "JetBrains Mono", monospace; letter-spacing: .12em; dominant-baseline: central; }

@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .hero-title .row > span { transform: none; transition: none; } .hero-meta { opacity: 1; transform: none; transition: none; } }
html.no-js .hero-title .row > span { transform: none; }
@media (max-width: 760px) {
  .hero { padding-top: var(--tag-room, 100px); }
  .hero-main { max-width: none; }
  .hero-title { font-size: clamp(40px, 13.6vw, 104px); }
  .hero-title .r2 { padding-left: 0; }
  .hero-strip { flex-wrap: wrap; gap: 14px 24px; }
  .ticker { flex-basis: 100%; }
}

/* ── Page loader ──────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--ink); color: var(--cream); clip-path: inset(0 0 0 0); transition: clip-path .8s var(--ease-io); animation: loader-failsafe .01s 8s forwards; }
.loader.done { clip-path: inset(0 0 100% 0); }
.loader.done > * { opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .5s var(--ease); }
html.no-loader .loader { display: none; }
.loader-mark { position: relative; width: clamp(84px, 9vw, 120px); aspect-ratio: 36 / 22; }
.loader-mark > span { position: absolute; inset: 0; }
.loader-mark svg { width: 100%; height: 100%; display: block; }
.lm-base { color: rgba(245, 243, 236, .16); }
.lm-shine { color: var(--yellow); -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 50%, transparent 65%); mask-image: linear-gradient(105deg, transparent 35%, #000 50%, transparent 65%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: shimmer 1.5s var(--ease-io) infinite; }
.loader-name { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: transparent; background: linear-gradient(105deg, rgba(245,243,236,.28) 35%, var(--cream) 50%, rgba(245,243,236,.28) 65%) 0 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: shimmer 1.5s var(--ease-io) infinite; }
@keyframes shimmer { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; background-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; background-position: 0 0; } }
@keyframes loader-failsafe { to { visibility: hidden; clip-path: inset(0 0 100% 0); } }
@media (prefers-reduced-motion: reduce) { .lm-shine, .loader-name { animation-duration: 3s; } .loader { transition: opacity .3s; } .loader.done { clip-path: none; opacity: 0; } }

/* ── Mockup marquee + viewer ──────────────── */
.mq-section { padding: clamp(24px, 3vw, 40px) 0 clamp(80px, 9vw, 130px); overflow: hidden; }
.mq-section .head-row { margin-bottom: clamp(20px, 2.4vw, 32px); }
.mq { display: flex; width: max-content; }
.mq-track { display: flex; gap: clamp(12px, 1.4vw, 20px); padding: 0 clamp(6px, .7vw, 10px); margin: 0; list-style: none; animation: mq 70s linear infinite; }
.mq:hover .mq-track, .mq:focus-within .mq-track, .mq.paused .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-100%); } }
.mq-item { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); }
.mq-item .sk { display: block; height: clamp(200px, 24vw, 340px); border-radius: var(--r); }
.mq-item img { display: block; height: 100%; width: auto; transition: transform .7s var(--ease), filter .4s; }
.mq-item:hover img { transform: scale(1.04); }
.mq:hover .mq-item:not(:hover) img { filter: saturate(.6) brightness(.92); }
.mq-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .mq-section .mq { overflow-x: auto; width: auto; } .mq-track { animation: none; } .mq-track[aria-hidden] { display: none; } }

.lb { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 72px clamp(16px, 7vw, 120px) 28px; }
.lb[hidden] { display: none; }
.lb-scrim { position: absolute; inset: 0; background: rgba(8, 8, 9, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.lb.open .lb-scrim { opacity: 1; }
.lb-fig { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 100%; max-height: 100%; }
.lb-frame { position: relative; border-radius: var(--r); }
.lb-img { display: block; max-width: min(86vw, 1400px); max-height: calc(100svh - 210px); width: auto; height: auto; border-radius: var(--r); box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); transform-origin: 0 0; }
.lb-img.swap { animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateX(var(--from, 24px)); } }
.lb-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 14px; color: var(--cream); opacity: 0; transform: translateY(8px); transition: opacity .35s .15s, transform .5s .15s var(--ease); text-align: center; }
.lb.open .lb-cap { opacity: 1; transform: none; }
.lb-cap .label { color: #8f8d87; }
.lb-title { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.lb-sub { color: #b3b1aa; font-size: 14px; }
.lb-link { color: var(--yellow); font-size: 14px; }
.lb-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(245,243,236,.18); background: rgba(24,24,26,.7); color: var(--cream); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease), opacity .3s; opacity: 0; }
.lb.open .lb-btn { opacity: 1; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lb-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.lb-prev { left: clamp(10px, 2.4vw, 36px); top: 50%; margin-top: -26px; }
.lb-next { right: clamp(10px, 2.4vw, 36px); top: 50%; margin-top: -26px; }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lb-close { right: clamp(10px, 2.4vw, 36px); top: 16px; width: 44px; height: 44px; }
.lb-close:hover { transform: rotate(90deg); }
html:has(.lb.open) { overflow: hidden; }
@media (max-width: 760px) {
  .lb { padding: 64px 12px 96px; }
  .lb-img { max-width: calc(100vw - 24px); max-height: calc(100svh - 250px); }
  .lb-prev, .lb-next { top: auto; bottom: 22px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ── Section heads ────────────────────────── */
.head-row { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-bottom: clamp(36px, 5vw, 64px); }
.head-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
@media (max-width: 560px) { .head-row .label + .label { display: none; } }

/* ── Image skeletons ──────────────────────── */
.sk { position: relative; background: var(--paper-2); overflow: hidden; }
.sk::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--fg) 8%, transparent) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
html.js .sk > img { opacity: 0; transition: opacity .5s, transform 1s var(--ease); position: relative; z-index: 1; }
.sk.ld::before { display: none; }
html.js .sk.ld > img { opacity: 1; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .sk::before { animation: none; } }

/* greyscale portraits, colour on hover */
.grey img { filter: grayscale(1) contrast(1.06); transition: filter .6s var(--ease), opacity .5s; }
.grey:hover img, .color .grey img { filter: none; }

/* ── Work cards ───────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { display: block; }
.card-media { aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media img { transform: scale(1.03); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 10px; }
.card-meta .arrow { width: 12px; height: 12px; }
.card h2, .card h3 { margin: 0 0 10px; font-size: clamp(18px, 1.4vw, 21px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; transition: color .2s; }
.card:hover h2, .card:hover h3 { color: var(--accent); }
.card .why { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
.card p { margin: 0; font-size: 14px; color: var(--fg-2); max-width: 40ch; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; gap: 44px; } }

/* ── Tabs ─────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(28px, 3vw, 40px) 0 16px; }
.tab { min-height: 44px; padding: 0 16px; border-radius: var(--r); font-size: 14px; font-weight: 500; border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--fg); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.panel { background: var(--panel); color: var(--fg); padding: clamp(20px, 3vw, 44px); border-radius: var(--r); }
.s-yellow .panel { --fg: var(--ink); --fg-2: #55534e; --line: rgba(13,13,14,.14); --accent: var(--blue); }
html[data-theme="dark"] .s-yellow .panel { --panel: #151517; --fg: var(--cream); --fg-2: #b3b1aa; --line: rgba(245,243,236,.13); --paper-2: #222225; --accent: var(--yellow); }
.panel[hidden] { display: none; }
.panel.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-q { font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; max-width: 32ch; margin: 0 0 clamp(20px, 2.4vw, 32px); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.panel-item .frame { aspect-ratio: 16 / 10; }
.panel-item .frame img { width: 100%; height: 100%; object-fit: cover; }
.panel-item:hover .frame img { transform: scale(1.03); }
.panel-item .src { margin: 16px 0 8px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-2); }
.panel-item p { margin: 0 0 16px; font-size: 14.5px; max-width: 52ch; }
.panel-item .more { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.panel-item .more .arrow { width: 11px; height: 11px; }
.panel-item:hover .more { border-color: currentColor; color: var(--accent); }
@media (max-width: 760px) { .panel-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Row list ─────────────────────────────── */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: 1fr 220px 32px; gap: 20px; align-items: center; padding: clamp(18px, 2vw, 24px) 0; transition: padding .35s var(--ease); }
.row-link .t { font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.035em; line-height: 1.2; transition: color .2s; }
.row-link .who { font-size: 12.5px; color: var(--fg-3); line-height: 1.4; }
.row-link .arrow { width: 13px; height: 13px; justify-self: end; }
.row-link:hover { padding-left: 12px; }
.row-link:hover .t, .row-link:hover .arrow { color: var(--accent); }
.row-peek { position: fixed; z-index: 70; width: 280px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .25s, transform .35s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); left: 0; top: 0; }
.row-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.row-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 760px) { .row-peek { display: none; } }
@media (max-width: 760px) { .row-link { grid-template-columns: 1fr 24px; } .row-link .who { grid-column: 1; grid-row: 2; margin-top: -12px; } .row-link .arrow { grid-row: 1; grid-column: 2; } }

/* ── Statement band ───────────────────────── */
.statement .display { max-width: 15ch; }
.statement-foot { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 32px; align-items: end; margin-top: clamp(40px, 5vw, 72px); }
.statement-foot .mark { width: 48px; height: 36px; color: var(--yellow); }
.statement-foot .mark svg { width: 100%; height: 100%; }
.statement-foot p { margin: 0; font-size: 15.5px; color: var(--fg-2); max-width: 46ch; }
.statement-foot .ulink { justify-self: end; }
.statement-foot .ulink:hover { color: var(--yellow); }
@media (max-width: 760px) { .statement-foot { grid-template-columns: 1fr; } .statement-foot .ulink { justify-self: start; } }

/* ── Polaroids / person ───────────────────── */
.person { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.person-copy .display { margin-bottom: clamp(28px, 3vw, 44px); }
.person-copy .intro { font-size: 17px; font-weight: 500; margin: 0 0 14px; max-width: 42ch; }
.person-copy .small { max-width: 48ch; margin: 0 0 28px; }
.polaroids { position: relative; min-height: clamp(380px, 40vw, 560px); }
.polaroid { position: absolute; margin: 0; background: #faf9f5; padding: 12px 12px 44px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.08); transition: transform .6s var(--ease); }
.polaroid .sk { aspect-ratio: 4 / 5; background: #ddd; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.polaroid figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #55534e; display: flex; justify-content: space-between; }
.polaroid.p1 { width: 50%; left: 2%; top: 0; transform: rotate(-4deg); }
.polaroid.p2 { width: 52%; right: 0; top: 14%; transform: rotate(5deg); }
.polaroids:hover .p1 { transform: rotate(-6deg) translate(-8px, -4px); }
.polaroids:hover .p2 { transform: rotate(7deg) translate(6px, 4px); }
.sticker { position: absolute; z-index: 3; width: 100px; height: 100px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.15; transform: rotate(-12deg); left: 36%; top: 60%; padding: 12px; }
@media (max-width: 900px) { .person { grid-template-columns: 1fr; } .polaroids { min-height: 118vw; max-height: 560px; } }

/* ── Recognition strip ────────────────────── */
.record { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.record-items { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.record-items a { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.record-items a:hover { color: var(--accent); }
.record-items small { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.record-items .arrow { width: 11px; height: 11px; }

/* ── FAQ ──────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 16px; gap: 16px; align-items: center; padding: 22px 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -0.03em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 12px; height: 12px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq summary:hover { color: var(--accent); }
.faq .a { padding: 0 0 22px; max-width: 60ch; font-size: 15.5px; color: var(--fg-2); line-height: 1.6; }
.faq .a p { margin: 0; }
.faq .a a { color: var(--fg); border-bottom: 1px solid var(--accent); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────── */
.foot { padding: clamp(90px, 12vw, 170px) 0 0; }
.foot-cta { display: inline-flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); }
.foot-cta .display { font-size: clamp(46px, 8.4vw, 128px); }
.foot-cta .big-arrow { width: clamp(28px, 3.4vw, 52px); height: clamp(28px, 3.4vw, 52px); margin-bottom: .6em; transition: transform .45s var(--ease), color .25s; color: var(--cream); flex: none; }
.foot-cta:hover .big-arrow { transform: translate(6px, -6px); color: var(--yellow); }
.foot-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: clamp(28px, 3vw, 44px) 0 clamp(60px, 7vw, 100px); font-size: 14.5px; color: var(--fg-2); }
.foot-mail a { color: var(--fg); font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .25s, color .25s; }
.foot-mail a:hover { color: var(--yellow); border-color: var(--yellow); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; font-weight: 500; color: var(--fg-2); transition: color .2s, border-color .2s; }
.copy-btn:hover { color: var(--fg); border-color: var(--fg); }
.copy-btn.ok { color: var(--yellow); border-color: var(--yellow); }
.copy-btn svg { width: 13px; height: 13px; }
.foot-bar { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0 30px; flex-wrap: wrap; }
.foot-bar small { font-size: 12.5px; color: var(--fg-3); }
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bar nav a { font-size: 13px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; transition: color .2s; }
.foot-bar nav a:hover { color: var(--yellow); }
.foot-bar nav .arrow { width: 9px; height: 9px; opacity: .7; }
@media (max-width: 960px) { .foot { padding-bottom: 74px; } }

/* ── Floating: back to top + mobile CTA ───── */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 46px; height: 46px; border-radius: var(--r); background: var(--ink); color: var(--cream); border: 1px solid rgba(245,243,236,.22); display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease), background .2s, color .2s; }
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { background: var(--yellow); color: var(--ink); }
body.past-hero .to-top { opacity: 1; transform: none; pointer-events: auto; }
.m-cta { display: none; }
@media (max-width: 960px) {
  .to-top { display: none; }
  .m-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: flex; gap: 8px; transform: translateY(150%); transition: transform .4s var(--ease); }
  body.past-hero .m-cta { transform: none; }
  body.menu-open .m-cta, body.ask-open .m-cta, body.search-open .m-cta { transform: translateY(150%); }
  .m-cta .btn { flex: 1; min-height: 52px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
  .m-cta .up { flex: none; width: 52px; padding: 0; background: var(--ink); color: var(--cream); border-color: rgba(245,243,236,.22); }
  .m-cta .up svg { width: 16px; height: 16px; }
}

/* ── Ask drawer ───────────────────────────── */
.ask { position: fixed; z-index: 120; right: 16px; bottom: 16px; top: 16px; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border-radius: var(--r); display: flex; flex-direction: column; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); transform: translateX(calc(100% + 32px)); transition: transform .55s var(--ease-io); visibility: hidden; --fg-2: #55534e; --fg-3: #6b6963; --line: rgba(13,13,14,.14); --bubble: #fff; }
html[data-theme="dark"] .ask { background: #1b1b1e; color: var(--cream); --fg-2: #b3b1aa; --fg-3: #8f8d87; --line: rgba(245,243,236,.13); --bubble: #26262a; }
body.ask-open .ask { transform: none; visibility: visible; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(8,8,9,.5); opacity: 0; pointer-events: none; transition: opacity .35s; }
body.ask-open .scrim, body.search-open .scrim { opacity: 1; pointer-events: auto; }
.ask-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ask-head b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.ask-close { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; border: 1px solid var(--line); }
.ask-close:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.ask-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: var(--r); animation: swap .35s var(--ease); }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--cream); }
html[data-theme="dark"] .msg.me { background: var(--yellow); color: var(--ink); }
.msg.them { align-self: flex-start; background: var(--bubble); }
.msg.them a { color: var(--blue); border-bottom: 1px solid currentColor; }
html[data-theme="dark"] .msg.them a { color: var(--yellow); }
.msg.typing { display: inline-flex; gap: 4px; }
.msg.typing i { width: 6px; height: 6px; background: var(--fg-3); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.ask-qs { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.ask-qs button { min-height: 38px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); font-size: 13.5px; background: var(--bubble); transition: background .2s, color .2s; }
.ask-qs button:hover { background: var(--ink); color: var(--cream); }
html[data-theme="dark"] .ask-qs button:hover { background: var(--yellow); color: var(--ink); }
.ask-note { padding: 0 20px 18px; margin: 0; font-size: 12.5px; color: var(--fg-3); }
.ask-note a { border-bottom: 1px solid currentColor; }

/* ── Search palette ───────────────────────── */
.search { position: fixed; z-index: 125; left: 50%; top: 12vh; width: min(640px, calc(100vw - 24px)); transform: translate(-50%, -10px); background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; --fg-2: #55534e; --fg-3: #6b6963; --line: rgba(13,13,14,.14); --hover: #fff; }
html[data-theme="dark"] .search { background: #1b1b1e; color: var(--cream); --fg-2: #b3b1aa; --fg-3: #8f8d87; --line: rgba(245,243,236,.13); --hover: #26262a; }
body.search-open .search { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .3s var(--ease); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 18px; height: 18px; color: var(--fg-3); flex: none; }
.search-field input { flex: 1; min-width: 0; height: 58px; border: 0; background: transparent; font-size: 17px; outline: none; letter-spacing: -0.02em; }
.search-field kbd { font-family: var(--mono); font-size: 11px; color: var(--fg-3); border: 1px solid var(--line); padding: 2px 6px; border-radius: var(--r); }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 460px); overflow-y: auto; }
.search-results a { display: block; padding: 12px; border-radius: var(--r); }
.search-results a b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.search-results a span { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-2); }
.search-results a small { float: right; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-left: 10px; }
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--hover); }
.search-results mark { background: var(--yellow); color: var(--ink); }
.search-empty { padding: 20px 20px 26px; font-size: 14px; color: var(--fg-2); margin: 0; }

/* ── Subpage hero ─────────────────────────── */
.phero { padding: clamp(130px, 15vw, 200px) 0 clamp(60px, 7vw, 100px); }
.phero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.phero .lede { margin-top: clamp(24px, 3vw, 36px); max-width: 34ch; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 26px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs a { transition: color .2s; } .crumbs a:hover { color: var(--fg); }

.stat { display: flex; align-items: center; gap: 18px; margin-top: clamp(36px, 4vw, 56px); }
.stat b { font-size: clamp(44px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat span { font-size: 12.5px; color: var(--fg-2); max-width: 20ch; line-height: 1.35; }

.portrait { justify-self: end; width: min(100%, 440px); }
.portrait .polaroid { position: relative; transform: rotate(2.5deg); }
.portrait .switch { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.portrait .switch button { min-height: 38px; padding: 0 14px; border-radius: var(--r); font-size: 13px; font-weight: 500; border: 1px solid var(--line); }
.portrait .switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 900px) { .portrait { justify-self: start; } }

.principles { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 130px); margin-top: clamp(60px, 8vw, 110px); }
.principle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.principle h3 { margin: 12px 0 14px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
.principle h3 .dim { color: var(--fg-3); }
.principle p { margin: 0; font-size: 15px; color: var(--fg-2); max-width: 42ch; }
.principle figure { margin: 0; }
.principle figure .sk { aspect-ratio: 16 / 9.5; }
.principle figure img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.principle figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--fg-2); }
.principle figcaption span:last-child { letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-size: 11px; }
@media (max-width: 760px) { .principle { grid-template-columns: 1fr; } }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.cols3 h4 { margin: 0 0 10px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.cols3 p { margin: 0; font-size: 14.5px; color: var(--fg-2); }
@media (max-width: 760px) { .cols3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 3fr; gap: clamp(24px, 4vw, 60px); }
.split h3 { margin: 0 0 10px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.split h3 .dim { color: var(--fg-3); }
.list-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--fg-2); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .list-cols { grid-template-columns: 1fr 1fr; } }

/* timeline */
.tl { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(50px, 6vw, 90px); }
.tl-side { position: sticky; top: 110px; align-self: start; border-top: 1px solid var(--line); padding-top: 14px; }
.tl-year { font-size: clamp(64px, 8vw, 120px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; margin: clamp(40px, 5vw, 70px) 0; font-variant-numeric: tabular-nums; }
.tl-track { position: relative; height: 1px; background: var(--line); }
.tl-track i { position: absolute; top: -3px; width: 7px; height: 7px; background: var(--yellow); transition: left .6s var(--ease); left: 0; }
.tl-ends { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--fg-2); }
.tl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-item { border-bottom: 1px solid var(--line); }
.tl-btn { width: 100%; text-align: left; display: grid; grid-template-columns: 90px 1fr 20px; gap: 16px; align-items: baseline; padding: 20px 0; }
.tl-btn .when { font-size: 12.5px; color: var(--fg-2); }
.tl-btn .what { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.035em; }
.tl-btn .what small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.tl-btn .pm { position: relative; width: 12px; height: 12px; justify-self: end; }
.tl-btn .pm::before, .tl-btn .pm::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.tl-btn .pm::after { transform: rotate(90deg); }
.tl-btn[aria-expanded="true"] .pm::after { transform: rotate(0); }
.tl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.tl-btn[aria-expanded="true"] + .tl-body { grid-template-rows: 1fr; }
.tl-body > div { overflow: hidden; }
.tl-body .inner { padding: 0 0 24px 106px; }
.tl-body p { margin: 0 0 14px; font-size: 15px; color: var(--fg-2); max-width: 54ch; }
.tl-body .chip { color: #fff; }
@media (max-width: 900px) { .tl { grid-template-columns: 1fr; } .tl-side { position: static; } .tl-btn { grid-template-columns: 70px 1fr 20px; } .tl-body .inner { padding-left: 86px; } }

.now { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.now > div { padding: 22px 22px 0 0; }
.now > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.now h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.035em; }
.now p { margin: 0 0 14px; font-size: 14.5px; color: var(--fg-2); }
.now p.label { font-size: 11px; color: var(--fg-3); }
.now .status { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-2); }
.now .status i { width: 6px; height: 6px; background: var(--accent); }
@media (max-width: 900px) { .now { grid-template-columns: 1fr 1fr; } .now > div:nth-child(3) { padding-left: 0; border-left: 0; } .now > div { padding-bottom: 22px; } }
@media (max-width: 560px) { .now { grid-template-columns: 1fr; } .now > div, .now > div + div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* ── Work index ───────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(32px, 4vw, 52px); }
.filters button { min-height: 42px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters sup { font-size: 10px; margin-left: 4px; opacity: .7; }
.wgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.wgrid .card { grid-column: span 6; }
.wgrid .card.wide { grid-column: span 7; }
.wgrid .card.narrow { grid-column: span 5; }
.wgrid .card.hide { display: none; }
.wgrid .card-media { aspect-ratio: 16 / 11; }
.wgrid .card h2, .card h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.04em; }
@media (max-width: 900px) { .wgrid .card, .wgrid .card.wide, .wgrid .card.narrow { grid-column: 1 / -1; } }

.gallery { columns: 3; column-gap: clamp(12px, 1.6vw, 22px); }
.gallery figure { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 22px); position: relative; cursor: zoom-in; }
.gallery img { width: 100%; }
.gallery .zoom { position: absolute; inset: 0; z-index: 3; width: 100%; cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .25s; }
.gallery figcaption span:last-child { letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; opacity: .9; }
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; }
@media (hover: none) { .gallery figcaption { opacity: 1; } }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(8,8,9,.95); display: grid; place-items: center; padding: 60px 16px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 84vh; max-width: min(1200px, 100%); width: auto; object-fit: contain; }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #b3b1aa; font-size: 13px; margin: 0; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.25); color: #fff; display: grid; place-items: center; font-size: 18px; }
.lightbox .nav-prev, .lightbox .nav-next { top: 50%; transform: translateY(-50%); }
.lightbox .nav-prev { left: 18px; right: auto; }
.lightbox button:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ── Case study ───────────────────────────── */
.case-hero { padding: clamp(130px, 15vw, 200px) 0 clamp(40px, 5vw, 64px); }
.case-hero .display { font-size: clamp(50px, 10vw, 160px); line-height: .9; letter-spacing: -0.06em; }
.case-hero .lede { max-width: 40ch; }
.case-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 3vw, 44px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 14.5px; font-weight: 500; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.facts dd a { border-bottom: 1px solid var(--accent); } .facts dd a:hover { color: var(--accent); }
.case-cover.sk img { width: 100%; max-height: 86vh; object-fit: cover; }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.cover-grid .sk { aspect-ratio: 4 / 5; }
.cover-grid img { width: 100%; height: 100%; object-fit: cover; }
.cover-grid.wide-first { grid-template-columns: 1fr 1fr; }
.cover-grid.wide-first .sk:first-child { grid-column: 1 / -1; aspect-ratio: 1186 / 862; }
@media (max-width: 760px) { .case-top { grid-template-columns: 1fr; } .cover-grid { grid-template-columns: 1fr 1fr; } .cover-grid .sk:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

.case-body { padding: clamp(80px, 10vw, 140px) 0; }
.chapter { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter > h2 { margin: 0; position: sticky; top: 100px; align-self: start; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.chapter > h2 small { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: 10px; }
.prose { font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.65; color: var(--fg-2); max-width: 64ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose strong, .prose em { color: var(--fg); }
.prose strong { font-weight: 600; }
.prose a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.prose a:hover { color: var(--accent); }
.prose h3 { margin: 2em 0 .6em; color: var(--fg); font-size: 1.15em; font-weight: 600; letter-spacing: -0.025em; }
.prose h4 { margin: 0 0 .5em; color: var(--fg); font-size: 1em; font-weight: 600; letter-spacing: -0.02em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.1em; }
.prose li { margin: 0 0 .55em; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: .84em; background: color-mix(in srgb, var(--fg) 8%, transparent); padding: .12em .4em; border-radius: var(--r); color: var(--fg); }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 20px; border-left: 3px solid var(--yellow); }
.prose blockquote p { font-size: clamp(21px, 2.1vw, 30px); line-height: 1.2; letter-spacing: -0.035em; color: var(--fg); font-weight: 500; margin: 0; }
.prose .callout { margin: 1.4em 0; padding: 22px 24px; background: var(--paper-2); border-left: 3px solid var(--accent); }
.prose .callout h3 { font-size: 1em; margin-top: 0; color: var(--fg); font-weight: 600; letter-spacing: -0.02em; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .chips { margin: 0 0 1.4em; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; }
.prose .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.prose .pair .sk { aspect-ratio: 4 / 3; }
.prose .pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } .chapter > h2 { position: static; } .prose .pair { grid-template-columns: 1fr; } }

.flow { list-style: none; margin: 1.8em 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 12px; counter-reset: step; }
.flow li { display: flex; align-items: center; }
.flow .node { display: flex; flex-direction: column; justify-content: center; min-width: 118px; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--fg); font-weight: 500; }
.flow .node::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 10.5px; color: var(--accent); margin-bottom: 4px; font-weight: 400; }
.flow .edge { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 8px; min-width: 96px; font-size: 11.5px; color: var(--fg-3); text-align: center; line-height: 1.25; }
.flow .edge::after { content: ""; display: block; width: 100%; height: 1px; background: currentColor; margin-top: 6px; }
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: flex-start; }
  .flow li { flex-direction: column; align-items: flex-start; }
  .flow .edge { flex-direction: row; min-width: 0; padding: 8px 0 8px 18px; border-left: 1px solid var(--line); margin-left: 16px; }
  .flow .edge::after { display: none; }
}

.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 1.6em; }
.trio div { padding: 22px 18px 22px 0; }
.trio div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.trio b { display: block; font-size: clamp(28px, 3.2vw, 46px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.trio span { display: block; margin-top: 8px; font-size: 11px; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }

.feat { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0 0 1.4em; }
.feat div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.feat div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.feat h3, .prose .callout h3 { margin: 0 0 6px; }
.feat h3, .feat h4 { margin: 0 0 6px; color: var(--fg); font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.feat p { margin: 0; font-size: 14.5px; }
.feat.one { grid-template-columns: 1fr; }
.feat.one div:nth-child(even) { padding-left: 0; border-left: 0; }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } .feat div:nth-child(even) { padding-left: 0; border-left: 0; } }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.swatch { border: 1px solid var(--line); }
.swatch i { display: block; height: 72px; }
.swatch span { display: block; padding: 8px 10px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-2); }
.swatch span b { display: block; font-family: var(--font); font-size: 12.5px; color: var(--fg); font-weight: 500; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 22px); align-items: start; }
.shots figure { margin: 0; }
.shots figure.full { grid-column: 1 / -1; }
.shots figure.tall .sk { max-height: 760px; }
.shots img { width: 100%; }
.shots figure.tall img { object-fit: cover; object-position: top; }
.shots figcaption { margin-top: 10px; font-size: 12.5px; color: var(--fg-3); display: flex; justify-content: space-between; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

.next-case { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: clamp(60px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.next-case .display { transition: color .25s; }
.next-case:hover .display { color: var(--accent); }
.next-case .big-arrow { width: clamp(28px, 3.4vw, 52px); height: clamp(28px, 3.4vw, 52px); transition: transform .45s var(--ease); }
.next-case:hover .big-arrow { transform: translate(6px, -6px); }

/* ── Writing ──────────────────────────────── */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.post-link { display: grid; grid-template-columns: 110px 1fr 220px 24px; gap: 24px; align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; transition: padding .35s var(--ease); }
.post-link .date { font-size: 12.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.post-link h2 { margin: 0; font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; transition: color .2s; }
.post-link p { margin: 10px 0 0; font-size: 14.5px; color: var(--fg-2); max-width: 60ch; }
.post-link .tags { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.post-link .arrow { width: 13px; height: 13px; }
.post-link:hover { padding-left: 12px; }
.post-link:hover h2, .post-link:hover .arrow { color: var(--accent); }
@media (max-width: 760px) { .post-link { grid-template-columns: 1fr 20px; gap: 10px; } .post-link .date { grid-column: 1; } .post-link .tags { display: none; } .post-link .arrow { grid-row: 1; grid-column: 2; } }

.article-hero { padding: clamp(140px, 15vw, 200px) 0 clamp(50px, 6vw, 80px); }
.article-hero .display { font-size: clamp(42px, 7vw, 104px); max-width: 15ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 30px; }
.article-hero .lede { margin-top: clamp(26px, 3vw, 40px); max-width: 48ch; color: var(--fg-2); }
.article { padding: clamp(60px, 7vw, 100px) 0 clamp(80px, 9vw, 130px); border-top: 1px solid var(--line); }
.article .prose { margin: 0 auto; max-width: 68ch; font-size: clamp(16px, 1.2vw, 18px); }
.article .prose h2 { margin: 2.2em 0 .7em; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; color: var(--fg); }
.read-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--yellow); z-index: 95; width: 100%; transform-origin: left; transform: scaleX(0); }

/* ── Questionnaire ────────────────────────── */
.quiz { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); }
.quiz-side { position: sticky; top: 100px; align-self: start; }
.progress { margin-top: 26px; }
.progress-bar { height: 3px; background: var(--line); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.progress p { margin: 10px 0 0; font-size: 13px; color: var(--fg-2); }
.q { border: 0; margin: 0; padding: 0 0 clamp(32px, 4vw, 48px); min-width: 0; }
.q + .q { box-shadow: inset 0 1px 0 var(--line); padding-top: clamp(28px, 3vw, 40px); }
.q legend + * { clear: both; }
.q legend { float: left; width: 100%; padding: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 6px; display: flex; gap: 14px; }
.q legend small { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0; padding-top: 6px; font-weight: 400; min-width: 20px; }
.q .hint { margin: 0 0 18px 34px; font-size: 13.5px; color: var(--fg-3); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 34px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.opt span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.opt span::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; opacity: .5; flex: none; }
.opt input[type="radio"] + span::before { border-radius: 50%; }
.opt:hover span { border-color: var(--fg); }
.opt input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.opt input:checked + span::before { background: var(--yellow); border-color: var(--yellow); opacity: 1; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-left: 34px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; }
.field label i { font-style: normal; color: var(--fg-3); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 16px; transition: border-color .2s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13.5px; margin: 10px 0 0 34px; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-left: 34px; }
.submit-row .small { max-width: 42ch; margin: 0; }
.submit-row .small a { border-bottom: 1px solid currentColor; }
.form-status { margin: 18px 0 0 34px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status.error { border-color: var(--danger); }
.form-status a { border-bottom: 1px solid currentColor; font-weight: 500; }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } .quiz-side { position: static; } }
@media (max-width: 560px) { .opts, .fields, .q .hint, .submit-row, .err, .form-status { margin-left: 0; } .fields { grid-template-columns: 1fr; } }

/* ── Print ────────────────────────────────── */
@media print {
  .nav, .mobile-menu, .hero-canvas, .ticker, .to-top, .m-cta, .ask, .search, .scrim, .row-peek, .read-bar, .filters, .foot-cta .big-arrow, .copy-btn, .skip, .hero-actions { display: none !important; }
  body, .s-ink, .s-paper, .s-yellow, .s-blue { background: #fff !important; color: #000 !important; --fg: #000; --fg-2: #333; --fg-3: #555; --line: #ccc; --accent: #000; }
  .reveal, .lines .ln > span, .hero-title .row > span, .sk > img { opacity: 1 !important; transform: none !important; }
  .sk::before { display: none; }
  .section, .phero, .case-hero, .article-hero, .foot { padding: 24px 0 !important; }
  .hero { min-height: 0; padding: 24px 0; }
  .hero-title .r1, .hero-title .r2 { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
  .chapter > h2, .quiz-side, .tl-side { position: static; }
  .tl-body { grid-template-rows: 1fr !important; }
  img { break-inside: avoid; }
}

/* inline arrows inside running text */
.ext .arrow, .prose .arrow, .chip .arrow, .flow .edge .arrow { width: .8em; height: .8em; vertical-align: -0.05em; }
.ext { white-space: nowrap; }
.chip .arrow { margin: 0 4px; }

/* ── Resume ───────────────────────────────── */
.resume-hero { padding-bottom: clamp(36px, 4vw, 56px); }
.resume-hero .display { max-width: 14ch; }
.resume-hero .lede { margin-top: clamp(24px, 3vw, 36px); max-width: 40ch; }
.resume-actions { margin: 30px 0 0; }
.resume-wrap { padding: 0 0 clamp(80px, 9vw, 140px); }

.cv { --cv-bg: #fdfcf8; --cv-side: #f1eee4; --cv-fg: var(--ink); --cv-2: #45433e; --cv-3: #6b6963; --cv-line: rgba(13,13,14,.14); --cv-link: var(--blue);
  max-width: 980px; margin: 0 auto; background: var(--cv-bg); color: var(--cv-fg); border: 1px solid var(--cv-line); box-shadow: 0 50px 90px -60px rgba(13,13,14,.45); font-size: 14px; line-height: 1.5; overflow: hidden; }
html[data-theme="dark"] .cv { --cv-bg: #1a1a1d; --cv-side: #141416; --cv-fg: var(--cream); --cv-2: #c3c1ba; --cv-3: #8f8d87; --cv-line: rgba(245,243,236,.12); --cv-link: var(--yellow); box-shadow: none; }
.cv a { color: inherit; text-decoration: none; }
.cv-links a, .cv-contact a, .cv-proj h4 a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .2s; }
.cv-links a:hover, .cv-proj h4 a:hover { color: var(--cv-link); }

/* header: ink band */
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: clamp(28px, 4.4vw, 52px) clamp(22px, 4.4vw, 52px) clamp(24px, 3.4vw, 40px); background: var(--ink); color: var(--cream); border-bottom: 6px solid var(--yellow); }
.cv-mark { display: block; width: 44px; color: var(--yellow); margin-bottom: 18px; }
.cv-mark svg { display: block; width: 100%; height: auto; }
.cv-name { margin: 0; font-size: clamp(36px, 6vw, 64px); font-weight: 600; line-height: .92; letter-spacing: -0.045em; text-transform: uppercase; }
.cv-role { margin: 12px 0 0; font: 400 11.5px/1.5 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.cv-role i { font-style: normal; color: rgba(245,243,236,.4); margin: 0 .5em; }
.cv-contact { display: grid; grid-template-columns: auto auto; gap: 6px 28px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: #d9d7d0; }
.cv-contact span { display: inline-block; min-width: 54px; margin-right: 8px; font: 400 10px/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #8f8d87; }
.cv-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 10px 8px; background: var(--cream); color: var(--ink); border-radius: var(--r); }
.cv-qr img { display: block; width: 104px; height: 104px; image-rendering: pixelated; }
.cv-qr span { font: 400 9px/1 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }

/* body */
.cv-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.cv-main { padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 44px); }
.cv-side { padding: clamp(24px, 4vw, 44px) clamp(20px, 3vw, 32px); background: var(--cv-side); border-left: 1px solid var(--cv-line); }
.cv-sec + .cv-sec { margin-top: 28px; }
.cv-sec h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cv-sec h3 b { font: 400 10px/1 "JetBrains Mono", monospace; color: var(--blue); letter-spacing: .04em; }
html[data-theme="dark"] .cv-sec h3 b { color: var(--yellow); }
.cv-sec h3::after { content: ""; flex: 1; height: 1px; background: var(--cv-line); transform: translateY(-3px); }
.cv h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.cv ul { margin: 0; padding: 0; list-style: none; }
.cv-summary { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cv-fg); }

.cv-proj { padding: 16px 0 18px; border-top: 1px solid var(--cv-line); break-inside: avoid; }
.cv-proj:first-of-type { border-top: 0; padding-top: 0; }
.cv-proj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cv-proj h4 { font-size: 17px; }
.cv-proj h4 span { margin-left: 6px; font-size: 13.5px; font-weight: 400; letter-spacing: -0.01em; color: var(--cv-3); }
.cv-year { flex: none; font: 400 11px/1 "JetBrains Mono", monospace; color: var(--cv-3); }
.cv-meta { margin: 6px 0 0; font-size: 12.5px; color: var(--cv-2); }
.cv-meta mark { display: inline-block; margin-right: 8px; padding: 2px 7px; background: var(--yellow); color: var(--ink); font: 400 10px/1.5 "JetBrains Mono", monospace; letter-spacing: .03em; text-transform: uppercase; border-radius: var(--r); }
.cv-points { margin-top: 10px !important; }
.cv-points li { position: relative; padding-left: 16px; margin: 4px 0; color: var(--cv-2); }
.cv-points li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 2px; background: var(--blue); }
html[data-theme="dark"] .cv-points li::before { background: var(--yellow); }
.cv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.cv-tags span { padding: 3px 8px; border: 1px solid var(--cv-line); font-size: 11.5px; line-height: 1.4; color: var(--cv-fg); border-radius: 99px; background: var(--cv-bg); }
.cv-side .cv-tags { margin-top: 6px; }
.cv-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; font: 400 11px/1.5 "JetBrains Mono", monospace; color: var(--cv-3); }
.cv-links a::before { content: "↗ "; }

.cv-skill + .cv-skill { margin-top: 12px; }
.cv-skill h4, .cv-side .cv-sec > h4 { font-size: 12.5px; letter-spacing: -0.005em; }
.cv-plain { margin: 6px 0 0; color: var(--cv-2); font-size: 13px; }
.cv-sec > .cv-plain:first-of-type { margin-top: 0; }
.cv-side .cv-sec > h4 + .cv-plain { margin-top: 4px; }
.cv-dim { color: var(--cv-3); }
.cv-awards li { padding: 10px 12px; background: var(--ink); color: var(--cream); font-size: 12.5px; line-height: 1.4; border-radius: var(--r); }
.cv-awards li + li { margin-top: 6px; }
.cv-awards b { display: block; color: var(--yellow); font: 400 10px/1.6 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.cv-list li { position: relative; padding-left: 14px; margin: 3px 0; font-size: 13px; color: var(--cv-2); }
.cv-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--yellow); }

.cv-quote { margin: 0; padding: 22px clamp(22px, 4vw, 44px); background: var(--yellow); color: var(--ink); text-align: center; }
.cv-quote p { margin: 0 auto; max-width: 62ch; font-size: 15px; line-height: 1.45; letter-spacing: -0.015em; font-weight: 500; }
.cv-quote footer { margin-top: 8px; font: 400 10px/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }

@media screen and (max-width: 820px) {
  .cv-head { flex-direction: column; align-items: flex-start; }
  .cv-contact { grid-template-columns: 1fr; }
  .cv-body { grid-template-columns: 1fr; }
  .cv-side { border-left: 0; border-top: 1px solid var(--cv-line); }
  .cv-proj-top { flex-direction: column; gap: 4px; }
  .cv-proj h4 span { display: block; margin: 2px 0 0; }
}

@page { size: A4; margin: 10mm 0 10mm; }
@page :first { margin-top: 0; }
@media print {
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip, .nav, .mobile-menu, .resume-hero, .foot, .to-top, .m-cta, .scrim, .ask, .search { display: none !important; }
  .resume-wrap { padding: 0; background: #fff; }
  .resume-wrap .wrap { padding: 0; max-width: none; }
  .cv, html[data-theme="dark"] .cv { --cv-bg: #fff; --cv-side: #f4f2ea; --cv-fg: #0d0d0e; --cv-2: #3a3935; --cv-3: #66645e; --cv-line: rgba(13,13,14,.14); --cv-link: #2146ff;
    max-width: none; border: 0; box-shadow: none; font-size: 10.2px; line-height: 1.42; opacity: 1 !important; transform: none !important; overflow: visible; }
  html[data-theme="dark"] .cv-sec h3 b { color: #2146ff; }
  html[data-theme="dark"] .cv-points li::before { background: #2146ff; }
  .cv-links a, .cv-contact a, .cv-proj h4 a { background: none; }
  .cv-head { padding: 13mm 13mm 8mm; border-bottom-width: 4px; }
  .cv-mark { width: 30px; margin-bottom: 10px; }
  .cv-name { font-size: 38px; }
  .cv-role { font-size: 9px; margin-top: 8px; }
  .cv-contact { font-size: 9.6px; margin-top: 12px; gap: 3px 22px; }
  .cv-contact span { font-size: 7.5px; min-width: 40px; }
  .cv-qr img { width: 78px; height: 78px; }
  .cv-qr span { font-size: 7px; }
  .cv-body { grid-template-columns: minmax(0, 1fr) 62mm; }
  .cv-main { padding: 7mm 8mm 6mm 13mm; }
  .cv-side { padding: 7mm 11mm 6mm 7mm; }
  .cv-sec + .cv-sec { margin-top: 15px; }
  .cv-sec h3 { font-size: 9px; margin-bottom: 8px; }
  .cv-sec h3 b { font-size: 7.5px; }
  .cv-summary { font-size: 10.4px; }
  .cv-proj { padding: 8px 0 9px; }
  .cv-proj h4 { font-size: 12px; }
  .cv-proj h4 span { font-size: 10px; }
  .cv-year { font-size: 8.5px; }
  .cv-meta { font-size: 9.4px; margin-top: 3px; }
  .cv-meta mark { font-size: 7.5px; padding: 1px 5px; }
  .cv-points { margin-top: 5px !important; }
  .cv-points li { margin: 2px 0; padding-left: 12px; }
  .cv-points li::before { width: 5px; }
  .cv-tags { gap: 3px; margin-top: 6px; }
  .cv-tags span { font-size: 8.4px; padding: 1px 6px; }
  .cv-links { font-size: 8.2px; margin-top: 5px; }
  .cv-skill + .cv-skill { margin-top: 8px; }
  .cv-skill h4, .cv-side .cv-sec > h4 { font-size: 9.6px; }
  .cv-plain, .cv-list li { font-size: 9.6px; }
  .cv-awards li { font-size: 9.4px; padding: 6px 8px; }
  .cv-awards b { font-size: 7.5px; }
  .cv-quote { padding: 6mm 13mm; break-inside: avoid; }
  .cv-quote p { font-size: 11px; }
  .cv-quote footer { font-size: 7.5px; }
}

/* Hero strip: stack marquee */
.ticker.tools .ticker-track { gap: 34px; animation-duration: 70s; }
.ticker.tools:hover .ticker-track { animation-play-state: paused; }
.ticker.tools .tool { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap; transition: color .2s; }
.ticker.tools .tool svg { width: 18px; height: 18px; fill: currentColor; color: var(--fg-3); flex: none; transition: color .2s; }
.ticker.tools .tool:hover, .ticker.tools .tool:hover svg { color: var(--yellow); }
.cv-work li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 2px 14px; padding: 9px 0; border-top: 1px solid var(--cv-line); }
.cv-work li:first-child { border-top: 0; padding-top: 0; }
.cv-work a { grid-row: span 2; font-weight: 600; font-size: 14px; letter-spacing: -0.015em; }
.cv-work a:hover { color: var(--cv-link); }
.cv-work span { color: var(--cv-2); }
.cv-work em { font-style: normal; font: 400 10.5px/1.5 "JetBrains Mono", monospace; color: var(--cv-3); }
@media screen and (max-width: 560px) { .cv-work li { grid-template-columns: 1fr; } .cv-work a { grid-row: auto; } }
@media print { .cv-work li { grid-template-columns: 30mm minmax(0, 1fr); padding: 6px 0; } .cv-work a { font-size: 11px; } .cv-work em { font-size: 8px; } }
@media print { .cv-side .cv-sec, .cv-work li { break-inside: avoid; } .cv-sec h3 { break-after: avoid; } }
