/* General Sans (Fontshare, free for commercial use), self-hosted. The one typeface for the whole site. */
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/general-sans-600.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/general-sans-700.woff2") format("woff2"); }

/* ── Tokens ─────────────────────────────────────────────────────
   Carbon + warm greys. Hover grey is #F2F1EE (--fill); it was #EDECE9, softened on request.
   One motion curve (--ease, the iOS sheet curve) and one spring. */
:root {
  --bg: #FBFBF9; --surface: #FFFFFF; --fill: #F2F1EE; --fill-2: #E8E6E2; --sep: #E4E2DD;
  --ink: #1C1B19; --ink-2: #6B6964; --ink-3: #75726A;
  --carbon: #1C1B19; --on-carbon: #FBFBF9;
  --live: #5AB4F2;
  --glass-top: rgba(255,255,255,.82); --glass-bot: rgba(249,248,246,.72);
  --glass-hi: rgba(255,255,255,.95); --glass-lo: rgba(255,255,255,.5); --lens: #F2F1EE;
  --lens-top: rgba(243,242,239,.92); --lens-bot: rgba(226,224,219,.9); --lens-rim: rgba(255,255,255,.9); --lens-edge: rgba(28,27,25,.07);
  --shadow: 0 0 14px -5px rgba(28,27,25,.07), 0 1px 2px rgba(28,27,25,.03), 0 10px 28px -16px rgba(28,27,25,.12);   /* no stroke: a soft halo on the top and sides (like iOS Messages), plus the lift underneath */
  --ease: cubic-bezier(.32,.72,0,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --font: "General Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: var(--font);
  --gutter: 40px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #111110; --surface: #1B1A18; --fill: #2A2926; --fill-2: #36352F; --sep: rgba(255,255,255,.09);
  --ink: #F3F1EC; --ink-2: #B3AFA7; --ink-3: #8C887F; --carbon: #F3F1EC; --on-carbon: #111110;
  --glass-top: rgba(44,43,40,.8); --glass-bot: rgba(29,28,26,.76); --glass-hi: rgba(255,255,255,.14); --glass-lo: rgba(255,255,255,.05);
  --lens: #3A3935; --lens-top: rgba(74,72,67,.9); --lens-bot: rgba(52,51,47,.9); --lens-rim: rgba(255,255,255,.16); --lens-edge: rgba(0,0,0,.35);
  --shadow: inset 0 1px 0 rgba(255,255,255,.045);   /* dark: no drop shadow, the lighter surface and a faint top highlight carry the card */
}}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1B1A18; --fill: #2A2926; --fill-2: #36352F; --sep: rgba(255,255,255,.09);
  --ink: #F3F1EC; --ink-2: #B3AFA7; --ink-3: #8C887F; --carbon: #F3F1EC; --on-carbon: #111110;
  --glass-top: rgba(44,43,40,.8); --glass-bot: rgba(29,28,26,.76); --glass-hi: rgba(255,255,255,.14); --glass-lo: rgba(255,255,255,.05);
  --lens: #3A3935; --lens-top: rgba(74,72,67,.9); --lens-bot: rgba(52,51,47,.9); --lens-rim: rgba(255,255,255,.16); --lens-edge: rgba(0,0,0,.35);
  --shadow: inset 0 1px 0 rgba(255,255,255,.045);   /* dark: no drop shadow, the lighter surface and a faint top highlight carry the card */
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; padding-inline: var(--gutter); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.press { transition: background-color .15s var(--ease), transform .18s var(--ease), box-shadow .3s var(--ease), color .15s var(--ease); }
.press:active { transform: scale(.97); }

.nw { white-space: nowrap; }
@media (max-width: 360px) { .nw { white-space: normal; } }
@media (max-width: 1099px) { br.db { display: none; } }

/* The grey highlight pill, used in the headline and About. Sweeps in from the left. */
.hl { display: inline-block; white-space: nowrap; padding: 0 .2em .04em; margin: 0 -.03em; border-radius: .3em; line-height: 1.12;
  background: linear-gradient(var(--fill), var(--fill)) no-repeat 0 0 / 100% 100%; }
.hl.sweep { animation: sweep 1s var(--ease) both; animation-delay: var(--sweep-delay, 0s); }
@keyframes sweep { from { background-size: 0% 100%; } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } }
}

/* ── Liquid-glass nav capsule ─────────────────────────────────── */
/* The bar holds the nav capsule and the theme bubble. Each capsule's glass lives on a ::before layer,
   so the grey lens (a child of the bar) can slide between the glass and the content, and hop across the gap. */
.navbar { position: fixed; top: 18px; left: 50%; z-index: 40; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
/* no view-transition-name here: it would cut the glass off from the page it blurs. The nav is identical on every page, so a plain crossfade reads as still. */
.nav { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; transition: padding .4s var(--ease); }
.nav::before, .theme::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 1px var(--glass-hi), inset 0 -1px 1px var(--glass-lo), inset 0 0 0 .5px var(--glass-lo),
    inset 0 -10px 18px -12px var(--glass-hi), 0 0 0 .5px rgba(28,27,25,.12), 0 2px 6px -2px rgba(28,27,25,.08), 0 14px 36px -12px rgba(28,27,25,.28); }
.nav::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(120% 90% at 18% -10%, rgba(255,255,255,.55), transparent 55%), radial-gradient(80% 60% at 90% 120%, rgba(255,255,255,.25), transparent 60%); }
.nav.scrolled { padding: 4px; }
.nav .me { position: relative; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-right: 2px; }
.nav .me img { width: 34px; height: 34px; object-fit: contain; transition: transform .5s var(--spring); }
@media (hover: hover) { .nav .me:hover img { transform: rotate(-14deg); } }
.links { display: flex; }
.links a { position: relative; z-index: 2; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s var(--ease); }
.links a:hover { color: var(--ink); }
.links a.on { color: var(--ink); font-weight: 500; }
.lens { position: absolute; top: 0; left: 0; z-index: 1; border-radius: 999px; pointer-events: none; opacity: 0;
  /* a small pane of liquid glass: soft top-lit gradient, bright rim, faint specular sweep */
  background: radial-gradient(70% 55% at 30% 0%, var(--lens-rim), transparent 70%) no-repeat, linear-gradient(180deg, var(--lens-top), var(--lens-bot));
  background-size: 100% 60%, 100% 100%; background-blend-mode: soft-light, normal;
  -webkit-backdrop-filter: blur(6px) saturate(160%); backdrop-filter: blur(6px) saturate(160%);
  box-shadow: inset 0 1px .5px var(--lens-rim), inset 0 -1px 1px rgba(255,255,255,.18), inset 0 0 0 .5px var(--lens-edge), 0 1px 3px -1px rgba(28,27,25,.12);
  transition: transform .42s var(--ease), width .42s var(--ease), height .42s var(--ease), opacity .25s var(--ease); }
/* crossing the gap into the theme bubble: a light hop with just a hint of settle */
.lens.hop { transition: transform .46s cubic-bezier(.3,1.12,.5,1), width .38s var(--ease), height .38s var(--ease), opacity .25s var(--ease); }
.nav .sep { position: relative; z-index: 2; width: .5px; height: 20px; background: var(--sep); margin: 0 6px; }
.nav .mail { position: relative; z-index: 2; overflow: hidden; height: 38px; padding: 0 14px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; background: var(--carbon); color: var(--on-carbon); }
.nav .mail svg { width: 16px; height: 16px; }
@media (hover: hover) { .nav .mail:hover { background: #34322F; } }
.ok { display: none; } .copied .ok { display: block; } .copied .cp { display: none; }
/* the light/dark switch: its own glass bubble beside the nav */
.theme { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: width .4s var(--ease), height .4s var(--ease); }
.theme::before { inset: 0; }
.theme svg { position: relative; z-index: 2; width: 19px; height: 19px; transition: transform .5s var(--ease); }
@media (hover: hover) { .theme:hover svg { transform: rotate(-18deg); } }
.theme:active svg { transform: scale(.9); }
.navbar .nav.scrolled + .theme { width: 48px; height: 48px; }
.tool.brand.inky .icon { color: var(--ink); }

/* ── Page and theme transitions ─────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.32,.72,0,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.vt-in .case-hero h1, .vt-in .case-cover { animation: none !important; }
.theme-vt * { view-transition-name: none !important; }
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 72px; align-items: end; padding-top: 168px; }
.who { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.who img { width: 28px; height: 28px; object-fit: contain; }
.who b { color: var(--ink); font-weight: 500; }
.who i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
h1 { position: relative; white-space: nowrap; font-size: clamp(40px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -.022em; font-weight: 500; margin: 28px 0 0; }

/* Typed text: .live types over a transparent .ghost copy, so layout never shifts. */
html.pre-intro .hero .after { opacity: 0; }
.typed { position: relative; }
.typed .ghost { color: transparent; }
.typed .ghost .hl { background-size: 0 100%; }
.typed .live { position: absolute; inset: 0; }
.typed.done .ghost { color: inherit; }
.typed.done .ghost .hl { background-size: 100% 100%; }
.typed.done .live { display: none; }

/* Things that wait for the typing, then fade up. */
.after { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--after-delay, 0s); }
.after.wait { opacity: 0; transform: translateY(12px); filter: blur(6px); }
.sub { margin: 18px 0 0; font-size: 22px; line-height: 1.45; letter-spacing: -.01em; color: color-mix(in srgb, var(--ink) 35%, var(--ink-2)); max-width: 26em; text-wrap: pretty; }

/* previously line */
.prev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 26px 0 0; font-size: 17px; color: var(--ink-3); }
.prev a { color: var(--ink); font-weight: 500; padding: 2px 7px; margin: 0 -3px; border-radius: 8px; transition: background-color .15s var(--ease); }
@media (hover: hover) { .prev a:hover { background: var(--fill); } }
.prev .arr { color: var(--ink-3); font-size: 15px; }
.prev b { color: var(--ink); font-weight: 500; padding: 2px 4px; }
.prev .now { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; margin-left: 4px; }
/* footer live line */
.ltime { display: inline-flex; align-items: center; gap: 9px; margin: 6px 0 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ltime .ldot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); }
@media (prefers-reduced-motion: no-preference) { .pulse::after { animation: ping 2s var(--ease) infinite; } }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.btn { height: 46px; padding: 0 18px; border-radius: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; background: var(--fill); }
.btn svg { width: 17px; height: 17px; flex: none; }
@media (hover: hover) { .btn:hover { background: var(--fill-2); } }
.btn.dark { background: var(--carbon); color: var(--on-carbon); }
@media (hover: hover) { .btn.dark:hover { background: #34322F; box-shadow: 0 8px 22px -10px rgba(28,27,25,.55); } }
@media (hover: hover) {
  .out:hover, .visit:hover .out { background: #34322F; box-shadow: 0 8px 22px -10px rgba(28,27,25,.55); }
}
:root[data-theme="dark"] .btn.dark:hover, :root[data-theme="dark"] .nav .mail:hover, :root[data-theme="dark"] .out:hover { background: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.dark:hover, :root:not([data-theme="light"]) .nav .mail:hover, :root:not([data-theme="light"]) .out:hover { background: #FFFFFF; } }

/* ── Case deck: cycles on its own, opens into a list on hover ──── */
.deck { --h: 96px; --gap: 10px; --H: calc(4 * var(--h) + 3 * var(--gap)); --base: calc(var(--H) - var(--h) - 30px); position: relative; height: var(--H); }
.card { position: absolute; left: 0; right: 0; top: 0; height: var(--h); display: flex; align-items: center; padding: 10px 12px 10px 10px; border-radius: 26px;
  background: var(--surface); box-shadow: var(--shadow); transform-origin: 50% 100%;
  transform: translateY(calc(var(--base) + var(--d) * 10px)) scale(calc(1 - var(--d) * .045)); z-index: calc(10 - var(--d));
  transition: transform .6s var(--ease), opacity .35s var(--ease), background-color .15s var(--ease); transition-delay: calc(var(--d) * 25ms); }
.card:not([data-d="0"]) { pointer-events: none; }
.card[data-d="3"] { opacity: .6; }
.card .in { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; transition: opacity .3s var(--ease); }
.card:not([data-d="0"]) .in { opacity: 0; }
.deck.open .card { transform: translateY(calc(var(--d) * (var(--h) + var(--gap)))) scale(1); opacity: 1; pointer-events: auto; }
.deck.open .card .in { opacity: 1; }
@media (hover: hover) { .card:hover { background: var(--fill); } }
.card.leaving { transform: translateY(calc(var(--base) + 34px)) scale(.94) !important; opacity: 0 !important; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; clip-path: inset(0 round 18px); isolation: isolate; flex: none; display: grid; place-items: center; }
.thumb .bg, .media .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.thumb .bg { transition: transform .6s var(--ease); }
.thumb .lg { position: relative; width: 80%; }
.thumb .bg, .media .bg { filter: brightness(.9) saturate(1.05); }
.card:hover .thumb .bg { transform: scale(1.14); }
.ctxt { flex: 1; min-width: 0; }
.ctxt small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctxt small em { font-style: normal; color: var(--ink-2); font-weight: 500; }
@media (max-width: 1240px) { .ctxt small .st { display: none; } }   /* the deck gets too narrow for the outcome */
.ctxt b { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); flex: none; transition: transform .35s var(--ease), background-color .15s var(--ease); }
.go svg { width: 13px; height: 13px; }
.card:hover .go { transform: translateX(3px); background: var(--surface); }
.deck-foot { display: flex; margin-top: 18px; }
.dots { display: flex; gap: 6px; padding: 7px 9px; border-radius: 999px; background: var(--fill); }
.dots { gap: 0; padding: 0 4px; }
.dots button { position: relative; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 12px; }
.dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--ink-3); opacity: .5; transition: width .4s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease); }
.dots button.on { width: 32px; }
.dots button.on::before { width: 20px; opacity: 1; background: var(--ink); }
@media (hover: hover) { .dots button:not(.on):hover::before { opacity: .9; } }
/* white-on-dark logos drawn from black artwork */
.inv { filter: invert(1); mix-blend-mode: screen; }

/* ── Collapsible preview ─────────────────────────────────────────── */
.clip { overflow: hidden; transition: max-height .6s var(--ease); }
.clip.shut { -webkit-mask-image: linear-gradient(#000 calc(100% - 90px), transparent); mask-image: linear-gradient(#000 calc(100% - 90px), transparent); }
.more-btn { display: flex; align-items: center; gap: 8px; margin: 18px auto 0; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--fill); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.more-btn svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) { .more-btn:hover { background: var(--fill-2); } }

/* ── Sections ─────────────────────────────────────────────────── */
section.block { padding-top: 120px; }
.h2 { display: flex; align-items: center; gap: 12px; font-size: 36px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; margin: 0 0 32px; }
.badge { font: 600 14px/1 var(--round); letter-spacing: 0; padding: 6px 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* work */
.work { display: grid; gap: 12px; }
.work .case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 16px; }
.work .case .body { padding: 0 24px 0 0; }
.work .case .meta { margin-top: 0; }
.work .case h3 { font-size: clamp(24px, 2.15vw, 30px); line-height: 1.15; letter-spacing: -.028em; margin: 10px 0 10px; }
.work .case p { font-size: 17.5px; line-height: 1.55; }
.case { position: relative; display: block; padding: 14px 14px 20px; border-radius: 34px; transition: background-color .2s var(--ease); }
.case:focus-visible { background: var(--fill); }
@media (hover: hover) { .case:hover { background: var(--fill); } }
.case:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; clip-path: inset(0 round 22px); isolation: isolate; }
.media .bg { transform: scale(1.01); transition: transform .9s var(--ease); }
.media .lg { position: relative; width: 44%; max-width: 230px; transition: transform .6s var(--ease); filter: drop-shadow(0 6px 20px rgba(0,0,0,.18)); }
.media .lg.inv { filter: invert(1); width: 54%; }
@media (hover: hover) { .case:hover .media .bg { transform: scale(1.1); }
  .case:hover .media .lg { transform: translateY(-5px) scale(1.04); } }
.case .body { padding: 0 6px; }
/* nested radius: card 34 minus its 16px inset */
.case .media, .next .media { border-radius: 18px; clip-path: inset(0 round 18px); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; white-space: nowrap; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.case h3 { font-size: 23px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; margin: 6px 0; text-wrap: balance; }
.case p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.case p.result { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 12px; font-size: 16.5px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.case p.result .num { flex: none; white-space: nowrap; font: 600 22px/1 var(--round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.case p.result .oc { flex: none; align-self: center; width: 20px; height: 20px; color: var(--ink); }
.case p.result:has(.shield) { align-items: flex-start; }
.case p.result .oc.shield { width: 22px; height: 22px; align-self: flex-start; margin-top: .1em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--fill); color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.case:hover .chip { background: var(--surface); color: var(--ink); }
.read { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 500; font-size: 14.5px; }
.read svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.case:hover .read svg { transform: translateX(4px); }
.follow { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; padding: 8px 14px; border-radius: 999px; background: var(--carbon); color: var(--on-carbon);
  font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .2s var(--ease), transform .35s var(--spring); }
.follow.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .follow { display: none; } }

/* about */
.about { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 72px; align-items: start; }
.about-side { position: sticky; top: 110px; display: grid; gap: 22px; }
.about-side .h2 { margin: 0; }
.facts { padding: 8px 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.fact { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 14.5px; }
.fact span { color: var(--ink-3); }
.fact b { font-weight: 500; text-align: right; white-space: nowrap; }
.story { display: grid; gap: 22px; max-width: 840px; }
.lead { position: relative; margin: 0; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.3; font-weight: 500; letter-spacing: -.016em; text-wrap: pretty; }
.lead .ghost { color: transparent; } .lead .ghost .hl { background-size: 0 100%; }
.lead .live { position: absolute; inset: 0; }
.lead.done .ghost { color: inherit; } .lead.done .ghost .hl { background-size: 100% 100%; } .lead.done .live { display: none; }
.story .notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.story .rest { position: relative; padding-left: 26px; margin: 0; font-size: 21px; line-height: 1.55; color: var(--ink-2); letter-spacing: -.01em; text-wrap: pretty;
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.story .rest::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.story .rest.wait { opacity: 0; transform: translateY(12px); filter: blur(6px); }
.story-more { margin: 0; justify-self: start; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .15s var(--ease); }
.story-more.in { opacity: 1; transform: none; pointer-events: auto; }
.tiles-more { display: none; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); border-radius: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* what I do: control-center tiles (not interactive) */
.label { font-size: 15px; font-weight: 500; margin: 72px 0 14px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; align-content: space-between; gap: 28px; min-height: 132px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.tile { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--td, 0s); }
.tile.wait { opacity: 0; transform: translateY(16px); }
.more { margin: 22px 0 0 4px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; color: var(--ink-2); min-height: 1.5em; }
.tile .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); }
.tile .ic svg { width: 19px; height: 19px; }
.tile b { font-size: 15px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }

/* tools: one open field, filtered by a segmented control */
.tools-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.tools-head .h2 { margin: 0; }
.seg { position: relative; display: flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s var(--ease); }
.seg button[aria-selected="true"] { color: var(--ink); font-weight: 500; }
@media (hover: hover) { .seg button:hover { color: var(--ink); } }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(28,27,25,.08), 0 4px 12px -4px rgba(28,27,25,.18); transition: transform .5s var(--spring), width .5s var(--spring); }
.field { display: grid; grid-template-columns: 1fr; gap: 0; }
.field.single { grid-template-columns: 1fr; }
.tgroup { padding: 30px 0 34px; border-top: .5px solid var(--sep); }
.tgroup:first-child { border-top: 0; padding-top: 4px; }
.tgroup h3 { margin: 0 0 22px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.tgroup.gone { display: none; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 26px 8px; }
.tool { display: grid; justify-items: center; align-content: start; gap: 12px; }
.tool .icon { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow); }
.tool .icon svg { width: 32px; height: 32px; }
.tool.brand .icon { color: var(--brand); }
.tool small { font-size: 13px; line-height: 1.3; text-align: center; color: var(--ink-2); text-wrap: balance; max-width: 12em; }
.field .tgroup { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--g) * 90ms); }
.field.wait .tgroup { opacity: 0; transform: translateY(20px); }
/* compact tools row under About: smaller tiles (48px, radius 13), fades in left to right */
.toolrow { display: flex; flex-wrap: wrap; gap: 18px 10px; }
.toolrow .tool { width: 72px; gap: 8px; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.toolrow.wait .tool { opacity: 0; transform: translateY(10px); }
.toolrow .tool .icon { width: 48px; height: 48px; border-radius: 13px; }
.toolrow .tool .icon svg { width: 22px; height: 22px; }
.toolrow .tool small { font-size: 12px; }
.label.sub-label { margin-top: 30px; }
.toolrow .tool.method .icon { color: var(--ink-2); }
@media (max-width: 700px) { .toolrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 4px; } .toolrow .tool { width: auto; } .toolrow .tool .icon { width: 44px; height: 44px; border-radius: 12px; } .toolrow .tool .icon svg { width: 20px; height: 20px; } .toolrow .tool small { font-size: 10.5px; } #methodRow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; } #methodRow .tool small { font-size: 11px; } }

/* faq */
.group { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; max-width: 880px; }
.acc { position: relative; }
.acc + .acc::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: .5px solid var(--sep); }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 0 20px; transition: background-color .15s var(--ease); }
@media (hover: hover) { .row:hover { background: var(--fill); } }
.row .t { flex: 1; padding: 17px 0; font-size: 17px; font-weight: 500; }
.plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); flex: none; transition: transform .45s var(--ease), background-color .15s var(--ease); }
.plus svg { width: 12px; height: 12px; }
.row:hover .plus { background: var(--surface); }
.acc.open .plus { transform: rotate(45deg); }
.acc .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.open .body { grid-template-rows: 1fr; }
.acc .body > div { overflow: hidden; }
.acc .pad { padding: 0 20px 22px; opacity: 0; filter: blur(4px); transform: translateY(-4px); transition: opacity .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease); }
.acc.open .pad { opacity: 1; filter: none; transform: none; transition-delay: .08s; }
.acc p { margin: 0; color: var(--ink-2); max-width: 46em; text-wrap: pretty; }

/* faq stepper */
.stephead { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; color: var(--ink-3); }
.stephead .bar { flex: 1; max-width: 180px; height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.stephead .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; transition: width .6s var(--ease); }
.stephead b { font: 600 13px var(--round); color: var(--ink); font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.step .rail { display: grid; justify-items: center; grid-template-rows: 28px 1fr; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--round); background: var(--fill); color: var(--ink-3);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--spring); }
.step .dot svg { width: 14px; height: 14px; display: none; }
.step .line { width: 2px; margin: 6px 0; border-radius: 1px; background: var(--fill); position: relative; overflow: hidden; }
.step .line i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--ink); transition: height .5s var(--ease); }
.step:last-child .line { display: none; }
.step .txt { padding: 3px 0 22px; }
.step:last-child .txt { padding-bottom: 4px; }
.step small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 3px; transition: color .3s var(--ease); }
.tw2 { position: relative; margin: 0; color: var(--ink-2); }
/* each step's answer fades up as the stepper reaches it (no typing) */
.tw2 { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease), color .3s var(--ease); }
.tw2 .live { display: none; }
.tw2 .pb { display: block; height: .7em; }  /* paragraph break inside a step */
.tw2.done { opacity: 1; transform: none; filter: none; }
.step.on .dot { background: var(--carbon); color: var(--on-carbon); box-shadow: 0 0 0 5px var(--fill); transform: scale(1.06); }
.step.on small, .step.did small { color: var(--ink); }
.step.did .dot { background: var(--carbon); color: var(--on-carbon); }
.step.did .dot span { display: none; } .step.did .dot svg { display: block; }
.step.did .line i { height: 100%; }
.step.on .tw2, .step.did .tw2 { color: var(--ink); }

/* footer */
footer { padding: 160px 0 56px; display: grid; justify-items: center; gap: 22px; text-align: center; }
footer .ft { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.15; font-weight: 500; letter-spacing: -.022em; margin: 0; white-space: nowrap; }
@media (max-width: 800px) { footer .ft { white-space: normal; text-wrap: balance; } }
footer .cta { margin: 0; justify-content: center; }
.top { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: var(--fill); }
@media (hover: hover) { .top:hover { background: var(--fill-2); color: var(--ink); } .top:hover svg { transform: translateY(-2px); } }
.top svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.copy { font-size: 13px; color: var(--ink-3); }

/* ── Smaller screens (desktop is the priority for now) ──────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .hero > .after:last-child { display: none; }   /* one column: the deck would sit in an empty block; Selected work follows right below */
  .about { grid-template-columns: minmax(0, 1fr); gap: 36px; } .about-side { position: static; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-head { align-items: flex-start; } .seg { overflow-x: auto; max-width: 100%; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .work .case { grid-template-columns: 1fr; gap: 18px; } .work .case .body { padding: 0 6px; } .tgrid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); } h1 { font-size: 8.2vw; } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.cap .tile:nth-child(n+5), .tiles.cap ~ .more { display: none; } .tiles-more { display: flex; }
  .links a { padding: 9px 11px; } .nav .mail span { display: none; } .nav .mail { padding: 0 11px; }
  .lead { font-size: 25px; } .story .rest { font-size: 18px; } .sub { font-size: 19px; }
}
@media (max-width: 440px) { .links a[href$="#tools"] { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .press:active { transform: none; }
}

/* ── Dark mode refinements ─────────────────────────────────────────── */
:root[data-theme="dark"] .nav::before, :root[data-theme="dark"] .theme::before { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 .5px rgba(255,255,255,.1), 0 16px 40px -14px rgba(0,0,0,.8); }
:root[data-theme="dark"] .btn.dark:hover, :root[data-theme="dark"] .nav .mail:hover, :root[data-theme="dark"] .out:hover { background: #FFFFFF; box-shadow: 0 8px 26px -10px rgba(255,255,255,.25); }
:root[data-theme="dark"] ::selection { background: #3A3935; color: #fff; }
:root[data-theme="dark"] .tool .icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
:root[data-theme="dark"] .media img.lg { filter: drop-shadow(0 6px 20px rgba(0,0,0,.4)); }
:root[data-theme="dark"] .media img.lg.inv { filter: invert(1) drop-shadow(0 6px 20px rgba(0,0,0,.4)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav::before, :root:not([data-theme="light"]) .theme::before { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 .5px rgba(255,255,255,.1), 0 16px 40px -14px rgba(0,0,0,.8); }
  :root:not([data-theme="light"]) .btn.dark:hover, :root:not([data-theme="light"]) .nav .mail:hover, :root:not([data-theme="light"]) .out:hover { background: #FFFFFF; }
  :root:not([data-theme="light"]) .tool .icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
}

/* ── General Sans: display sizes use Medium (500); semibold reads heavy this large. ── */
h1, .h2, .case h3, footer .ft, .lead { font-weight: 500; }
h1 { letter-spacing: -.028em; }
