/* v7 · "A head full of colour"
   Cream paper, black ink, newsprint halftone. Saturated colour only ever comes from my art and photos
   (and the hand-drawn marks that spill out of them). One red dot is the idea that starts it all. */

:root {
  --paper: #edeae4;
  --paper-hi: #f7f6f2;
  --paper-lo: #e2ddd4;
  --ink: #161412;
  --ink-2: #3c3732;
  --ink-3: #7a7268;
  --rule: rgba(22, 20, 18, .14);
  --sun: #e2432a;
  /* pulled from the paintings: koi blue, buddha orange, saree magenta, mustard, leaf green, violet */
  --a1: #2f63d6; --a2: #f08a1c; --a3: #e0367f; --a4: #f2c318; --a5: #38a35a; --a6: #7c3fd6;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1280px;
  /* one edge for everything: the header, the hero and every section share the same left and right line */
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2));
  /* spacing scale */
  --section: clamp(88px, 10vw, 150px);  /* between sections */
  --head-gap: clamp(36px, 4.4vw, 64px); /* section header → its content */
  --block: clamp(48px, 6vw, 88px);      /* between big blocks inside a section */
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .55s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: auto; margin-inline: var(--edge); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hand { font-family: var(--hand); font-weight: 500; line-height: 1; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- shared pieces ---------- */
.stamp {
  display: inline-block; padding: 6px 10px 5px; border: 1.5px solid currentColor; border-radius: 3px;
  font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; rotate: -1.5deg;
}
.h2 { margin-top: 22px; font: 400 clamp(44px, 6.6vw, 108px)/.94 var(--serif); letter-spacing: -.025em; max-width: 15ch; }
.h2 em { padding-right: .04em; }
.sec-head { position: relative; margin-bottom: var(--head-gap); }
/* header with a heading on the left and a short paragraph on the right, both sitting on the same baseline */
.sec-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; }
.sec-split > p { max-width: 42ch; margin: 0 0 .5em; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); }
@media (max-width: 899px) { .sec-split { grid-template-columns: minmax(0, 1fr); } }
.sec-note { position: absolute; right: 0; bottom: 6px; font-size: 26px; color: var(--ink-2); rotate: -4deg; }
/* a curated link (/product/, ?for=…) says what it is showing, and how to see everything */
.lens-note { margin-top: 18px; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.lens-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lens-note a:hover { text-decoration-color: var(--sun); }
.catalogue[hidden] { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
/* the way into v8, the film version: a red sun with a play mark in it */
.end-alt { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.end-alt a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.end-alt a:hover { text-decoration-color: var(--sun); }
.btn-reel { padding-left: 8px; gap: 10px; }
.btn-reel i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); transition: scale .4s var(--ease); }
.btn-reel svg { width: 12px; height: 12px; margin-left: 2px; fill: #fff; }
.btn-reel:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-reel:hover i { scale: 1.12; }
.nav-reel { display: inline-flex; align-items: center; gap: 7px; }
.nav-reel i { width: 0; height: 0; border-left: 7px solid var(--sun); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.tape {
  position: absolute; top: -13px; left: 50%; width: 118px; height: 28px; translate: -50% 0; rotate: -3deg;
  background: rgba(228, 214, 182, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0), repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px);
  mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0), repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px);
  -webkit-mask-composite: source-over; mask-composite: add;
}

/* film grain over everything, like newsprint */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

/* ---------- intro ---------- */
.intro { display: none; }
.js .intro.is-on { position: fixed; inset: 0; z-index: 150; display: block; background: var(--paper); }
.guide { position: absolute; background: var(--ink); opacity: .55; }
.guide-h { left: 0; right: 0; top: 50%; height: 1px; transform-origin: 0 50%; }
.guide-v { top: 0; bottom: 0; left: 50%; width: 1px; transform-origin: 50% 0; }
.intro-h { position: absolute; left: 50%; top: 50%; translate: 6px -100%; font: 400 clamp(90px, 14vw, 200px)/.8 var(--serif); padding-top: 6px; }
.intro-tag { position: absolute; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.intro-tag-1 { left: calc(50% + 10px); top: calc(50% + 10px); }
.intro-tag-2 { right: calc(50% + 12px); top: calc(50% - 22px); }
.intro-dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--sun); scale: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--edge); transition: background .4s, box-shadow .4s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.wordmark { font: 400 23px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; view-transition-name: wordmark; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a, .status { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; scale: 0 1; transform-origin: 100% 50%; transition: scale .4s var(--ease); }
.nav a:hover::after { scale: 1 1; transform-origin: 0 50%; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s; }
.status:hover { background: var(--ink); color: var(--paper); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(226, 67, 42, .5); animation: live 2.2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(226, 67, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 67, 42, 0); } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 0 var(--edge);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .42fr); align-items: end; column-gap: clamp(16px, 2.5vw, 40px);
}
.hero-meta { position: absolute; top: 88px; left: var(--edge); right: var(--edge); display: flex; justify-content: space-between; color: var(--ink-2); font-size: 11px; }
.hero-copy { align-self: center; padding: 140px 0 60px; position: relative; z-index: 3; container-type: inline-size; }
.hero-title { font: 400 clamp(52px, 7.4vw, 124px)/.92 var(--serif); letter-spacing: -.03em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
/* the longest role ("Quality Advocate") has to fit the copy column, so the line shrinks with it instead of being cut off */
.line-roles { position: relative; font-size: min(.7em, 15.5cqw); padding-top: .12em; }
.roles { position: relative; display: inline-grid !important; font-style: italic; }
.role { grid-area: 1 / 1; white-space: nowrap; opacity: 0; translate: 0 100%; transition: opacity .6s var(--ease), translate .7s var(--ease); }
.role.is-on { opacity: 1; translate: 0 0; }
.role.is-out { opacity: 0; translate: 0 -100%; }
.no-js .role:not(:first-child), html:not(.js) .role:not(:first-child) { display: none; }
.role-scribble { position: absolute; left: 0; bottom: 0; width: min(100%, 9.4em); height: .26em; overflow: visible; }
.role-scribble path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.hero-value { margin-top: 28px; max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-scroll { position: absolute; left: var(--edge); bottom: 22px; font-size: 11px; color: var(--ink-3); }
.hero-scroll span { display: inline-block; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* the portrait: B&W newsprint photo, the hair filled with a painting */
.head { position: relative; height: min(88svh, 1000px); aspect-ratio: 1146 / 1500; margin: 0; z-index: 2; perspective: 1600px; perspective-origin: 50% 35%; }
.head-scroll, .head-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.head-3d { --explode: 1; }
.layer { position: absolute; inset: 0; transform: translateZ(calc(var(--z) * var(--explode, 1) * var(--assemble, 1) * 1px)); transform-style: preserve-3d; pointer-events: none; }
.torn { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 1px rgba(40, 30, 10, .12)) drop-shadow(0 40px 46px rgba(40, 30, 10, .28)); }
.torn path { fill: #fbfaf7; }
.head-frame { position: absolute; inset: 0; filter: drop-shadow(0 0 1.5px var(--paper-hi)) drop-shadow(0 0 1.5px var(--paper-hi)) drop-shadow(0 30px 26px rgba(40, 30, 10, .26)); }
.head-hit, .head-cap { pointer-events: auto; }
.head-photo { width: 100%; height: 100%; filter: grayscale(1) contrast(1.1) brightness(1.03); user-select: none; -webkit-user-drag: none; }
.head-dots, .mind { position: absolute; inset: 0; pointer-events: none; }
.head-dots {
  background-image: radial-gradient(rgba(22, 20, 18, .55) .8px, transparent 1.25px); background-size: 4px 4px;
  -webkit-mask: url(../../assets/me/hero-cut.webp) 0 0 / 100% 100% no-repeat; mask: url(../../assets/me/hero-cut.webp) 0 0 / 100% 100% no-repeat;
  mix-blend-mode: multiply; opacity: .22;
}
.mind { -webkit-mask: url(../../assets/me/hair-mask.webp) 0 0 / 100% 100% no-repeat; mask: url(../../assets/me/hair-mask.webp) 0 0 / 100% 100% no-repeat; }
.mind-base { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(1.4); }
.mind-arts { position: absolute; inset: 0; mix-blend-mode: screen; }
.mind-arts img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(0% at 50% 3%); filter: saturate(1.15) contrast(1.05); }
.mind-arts img.is-on { clip-path: circle(150% at 50% 3%); }
.head-hit { position: absolute; left: 22%; right: 22%; top: 0; height: 42%; border: 0; padding: 0; background: none; border-radius: 45% 45% 30% 30%; cursor: pointer; }
.head-hit:focus-visible { outline-offset: -4px; }
.sun { position: absolute; left: 76%; top: 5%; width: 7.5%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); box-shadow: 0 18px 30px -12px rgba(160, 40, 20, .45); }
.burst { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.burst path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.burst .rays path { stroke: var(--a4); stroke-width: 11; }
.burst .rays path:nth-child(2n) { stroke: var(--a2); }
.burst .l1 { stroke: var(--a1); }
.burst .l2 { stroke: var(--a3); }
.burst .zig { stroke: var(--a5); }
.burst .star { stroke: var(--a6); fill: none; stroke-width: 7; }
.burst .f1 { stroke: var(--a3); } .burst .f2 { stroke: var(--a1); }
.head-cap { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: grid; justify-items: center; gap: 4px; padding: 10px 16px; background: var(--paper-hi); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .4); rotate: -1deg; text-align: center; white-space: nowrap; }
.head-cap .mono { font-size: 10px; color: var(--ink-3); }
.head-title { font: 400 22px/1.05 var(--serif); }
.head-meta { font-size: 10px !important; color: var(--ink-2); }
.head-hint { position: absolute; right: 86%; top: 12%; display: flex; align-items: flex-end; gap: 4px; font-size: 26px; color: var(--ink-2); rotate: -6deg; white-space: nowrap; }
.head-hint svg { width: 46px; height: 32px; overflow: visible; }
.head-hint path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 1200px) {
  .head-cap { left: calc(100% + 18px); bottom: auto; top: 36%; translate: 0 0; justify-items: start; text-align: left; rotate: 1.5deg; }
}
@media (max-width: 1199px) { .hero { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero-meta { top: 72px; }
  .hero-copy { padding: 112px 0 8px; align-self: auto; }
  .hero-title { font-size: clamp(46px, 13vw, 84px); }
  .hero-value { margin-top: 18px; font-size: 16px; }
  .hero-actions { margin-top: 20px; }
  .head { height: auto; width: min(100%, 470px); align-self: center; margin-top: 8px; }
  .head-hint { right: auto; left: 2%; top: 4%; font-size: 22px; }
  .head-hint svg { rotate: 200deg; scale: -1 1; }
  .hero-scroll { display: none; }
}

/* ---------- in short: a pinned line, with a staggered grid of my work scrolling over it ---------- */
.kinetic { position: relative; padding-bottom: var(--section); }
.k-pin { position: relative; padding: var(--section) var(--edge) var(--head-gap); text-align: center; }
.k-label { color: var(--ink-3); }
.k-lines { display: block; margin-top: 18px; font: 400 clamp(42px, 8.6vw, 156px)/.98 var(--serif); letter-spacing: -.03em; }
.k-line { display: block; }
.k-line em { padding-right: .05em; }
.k-foot { margin: 30px auto 0; max-width: 52ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); }
.k-progress { display: none; }
.k-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 3vw, 56px); padding: 0 var(--edge); pointer-events: none; }
.k-col { display: flex; flex-direction: column; gap: clamp(80px, 24vh, 300px); }
.k-col:nth-child(2) { padding-top: 34vh; } .k-col:nth-child(3) { padding-top: 10vh; } .k-col:nth-child(4) { padding-top: 48vh; } .k-col:nth-child(5) { padding-top: 22vh; }
.k-tile { position: relative; margin: 0; padding: 6px 6px 8px; background: #fff; box-shadow: 0 2px 3px rgba(30, 20, 5, .12), 0 22px 36px -22px rgba(30, 20, 5, .5); rotate: var(--r); pointer-events: auto; transition: rotate .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.k-tile { width: 78%; }
.k-tile:nth-child(even) { width: 64%; margin-left: auto; }
.k-tile.k-note { width: 74%; }
.k-tile img, .k-tile video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.k-tile figcaption { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 4px; white-space: nowrap; font-size: 21px; color: var(--ink); opacity: 0; transition: opacity .3s, translate .4s var(--ease); pointer-events: none; }
.k-tile:hover { z-index: 3; rotate: 0deg; transform: translateY(-10px) scale(1.06); box-shadow: 0 40px 50px -26px rgba(30, 20, 5, .55); }
.k-tile:hover figcaption { opacity: 1; translate: -50% 0; }
.k-note { display: grid; gap: 8px; padding: 26px 16px 18px; background: var(--paper-hi); text-align: left; }
.k-note b { font: 400 clamp(26px, 2.8vw, 50px)/.95 var(--serif); letter-spacing: -.02em; font-weight: 400; white-space: nowrap; }
.k-note .mono { font-size: 10px; color: var(--ink-3); }
.k-note .tape { top: -12px; width: 76px; height: 22px; }

.kinetic.is-live .k-pin { position: sticky; top: 0; z-index: 0; height: 100svh; padding: 0; overflow: hidden; display: grid; place-items: center; }
.kinetic.is-live .k-label { position: absolute; top: 96px; left: 50%; translate: -50% 0; }
.kinetic.is-live .k-lines { position: absolute; inset: 0; margin: 0; }
.kinetic.is-live .k-line { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--edge); }
.kinetic.is-live .k-line > span { display: block; overflow: hidden; padding: .04em .1em .12em; }
.kinetic.is-live .k-line > span > span { display: block; }
.kinetic.is-live .k-foot { position: absolute; bottom: clamp(56px, 10vh, 100px); left: 50%; translate: -50% 0; width: min(100% - 2 * var(--gut), 52ch); margin: 0; }
.kinetic.is-live .k-progress { display: block; position: absolute; left: 50%; bottom: 28px; width: 120px; height: 2px; translate: -50% 0; background: var(--rule); }
.k-progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; scale: 0 1; }
.kinetic.is-live .k-grid { margin-top: -100svh; padding-top: 92svh; padding-bottom: 70svh; }
/* trendy bits: images tucked into the words, a spinning badge, type tags, crossing marquee tapes */
.k-pill { display: inline-block; width: 1.5em; height: .72em; margin: 0 .03em; border-radius: 999px; overflow: hidden; vertical-align: .04em; background: var(--ink); rotate: -4deg; box-shadow: 0 .05em .14em rgba(30, 20, 5, .28); }
.k-pill img { width: 100%; height: 100%; object-fit: cover; }
.k-line:nth-child(even) .k-pill { rotate: 5deg; }
.k-chip { display: inline-grid; place-items: center; width: 1.1em; }
.k-chip i { display: block; font-style: normal; font-size: .46em; line-height: 1; color: var(--paper); animation: spin 7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.k-badge { position: absolute; left: var(--edge); bottom: clamp(40px, 8vh, 80px); width: clamp(92px, 9vw, 140px); animation: spin 22s linear infinite; }
.k-badge text { font: 500 13.5px var(--mono); letter-spacing: 2.6px; fill: var(--ink); }
.kb-disc { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.kb-sun { fill: var(--sun); }
.kinetic:not(.is-live) .k-badge { display: none; }
.kinetic.is-live { padding-bottom: 0; }
.k-tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 8px 2px; border-radius: 999px; background: rgba(255, 255, 255, .88); border: 1px solid var(--rule); font-size: 9px !important; letter-spacing: .1em; color: var(--ink) !important; }
.k-note .k-tag { left: auto; right: 10px; top: 10px; background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.tapes { position: relative; height: clamp(150px, 15vw, 220px); overflow: hidden; }
.tape-band { position: absolute; left: -6%; right: -6%; top: 50%; padding: clamp(10px, 1.2vw, 16px) 0; white-space: nowrap; overflow: hidden; }
.tape-band p { display: inline-block; font: 400 clamp(26px, 3vw, 46px)/1 var(--serif); letter-spacing: -.01em; will-change: transform; }
.tb-1 { z-index: 2; background: var(--ink); color: var(--paper); rotate: -4deg; translate: 0 -62%; }
.tb-2 { background: var(--paper-hi); color: var(--ink); border-block: 1.5px solid var(--ink); rotate: 3deg; translate: 0 -38%; }

/* ---------- cursor: an ink dot that stretches with speed, leaving a trail of paint ---------- */
.paint { position: fixed; inset: 0; z-index: 89; width: 100vw; height: 100vh; pointer-events: none; mix-blend-mode: multiply; }
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 121; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease); }
.has-paint .cursor-dot.is-live { opacity: 1; }
.has-paint .cursor-dot.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.has-paint .cursor-dot.is-hidden { opacity: 0; }
html.has-paint, html.has-paint * { cursor: none !important; }

@media (max-width: 699px) {
  .k-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .k-col:nth-child(n+4) { display: none; }
  .k-col { gap: 80px; }
  .k-col:nth-child(2) { padding-top: 26vh; } .k-col:nth-child(3) { padding-top: 10vh; }
  .k-tile, .k-tile:nth-child(even), .k-tile.k-note { width: 100%; padding: 4px 4px 5px; }
  .k-note { padding: 18px 10px 12px; }
  .k-note b { font-size: 19px; }
  .k-tile figcaption { font-size: 17px; }
  .k-tag { top: 7px; left: 7px; padding: 2px 6px 1px; font-size: 8px !important; }
  .k-note .k-tag { display: none; }
  .k-pill { width: 1.3em; }
  .k-badge { left: auto; right: var(--edge); top: 84px; bottom: auto; width: 72px; }
}

/* ---------- index of mind: red threads from my head to the things I keep coming back to ---------- */
.threads { padding: var(--section) 0 0; }
.th-board { position: relative; margin-top: var(--head-gap); }
.th-lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.th-lines path { fill: none; stroke: var(--sun); stroke-width: 1.4; stroke-linecap: round; transition: stroke-width .3s, opacity .35s; }
.th-board.is-hot .th-lines path:not(.is-hot) { opacity: .22; }
.th-lines path.is-hot { stroke-width: 2.6; }
.th-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.th-card { position: relative; rotate: var(--r, 0deg); transition: rotate .5s var(--ease); }
.th-card a {
  display: grid; gap: 8px; padding: 16px 16px 14px; background: var(--paper-hi); color: inherit; text-decoration: none;
  box-shadow: 0 2px 3px rgba(30, 20, 5, .12), 0 22px 36px -22px rgba(30, 20, 5, .5);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.th-pin { position: absolute; left: 50%; top: -7px; z-index: 3; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--sun); box-shadow: 0 2px 4px rgba(0, 0, 0, .35), inset -2px -2px 3px rgba(0, 0, 0, .25); }
.th-kind { font-size: 9px !important; color: var(--ink-3); }
.th-card b { font-weight: 400; }
.th-note b { font: 500 clamp(21px, 1.8vw, 28px)/1.05 var(--hand); }
.th-num b { font: 400 clamp(34px, 3.2vw, 52px)/.9 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.th-quote b { font: 400 clamp(19px, 1.5vw, 24px)/1.2 var(--serif); font-style: italic; }
.th-sub { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.th-art a, .th-photo a { padding: 6px 6px 8px; background: #fff; gap: 0; }
.th-art img, .th-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.th-card figcaption { padding: 8px 4px 2px; font: 500 17px/1.05 var(--hand); color: var(--ink-2); }
.th-card figcaption em { font-size: 1.05em; color: var(--ink); }
.th-card:hover, .th-card:focus-within { rotate: 0deg; z-index: 4; }
.th-card:hover a, .th-card a:focus-visible { transform: translateY(-8px) scale(1.04); box-shadow: 0 40px 50px -26px rgba(30, 20, 5, .55); }
.th-me { display: none; }
@media (min-width: 1000px) {
  .th-board { height: clamp(640px, 58vw, 860px); }
  .th-lines { display: block; }
  .th-cards { display: block; position: absolute; inset: 0; }
  .th-card { position: absolute; left: var(--x); top: var(--y); width: var(--w, 17%); }
  .th-me { display: block; position: absolute; right: 1%; bottom: 0; z-index: 0; height: 64%; aspect-ratio: 1146 / 1500; margin: 0; filter: drop-shadow(0 0 1.5px var(--paper-hi)) drop-shadow(0 24px 24px rgba(40, 30, 10, .22)); }
  .th-me img { width: 100%; height: 100%; filter: grayscale(1) contrast(1.1) brightness(1.03); }
  .th-me figcaption { position: absolute; right: 98%; bottom: 12%; display: flex; align-items: flex-end; gap: 4px; font-size: 24px; color: var(--ink-2); rotate: -6deg; white-space: nowrap; }
  .th-me figcaption svg { width: 44px; height: 30px; overflow: visible; rotate: -50deg; }
  .th-me figcaption path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .th-note b { font-size: 19px; }
  .th-sub { font-size: 11.5px; }
}
@media (max-width: 999px) {
  .th-card:nth-child(odd) { --r: -1.5deg; } .th-card:nth-child(even) { --r: 1.5deg; }
  .th-art, .th-photo { max-width: 260px; }
}

/* ---------- numbers ---------- */
.numbers { padding: clamp(40px, 5vw, 72px) 0 var(--section); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stats > div { padding: 22px 20px 26px 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.stats dt { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin-top: 12px; font: 400 clamp(44px, 5vw, 76px)/1 var(--serif); letter-spacing: -.02em; }
.stats dd span { color: var(--ink-3); }
@media (max-width: 799px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- work ---------- */
.work { padding-bottom: var(--section); }
.case, .catalogue {
  position: relative; margin-top: var(--block); padding: clamp(28px, 4.4vw, 64px);
  background: var(--paper-hi); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -40px rgba(40, 30, 10, .45);
}
.case { transform-style: preserve-3d; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.case:nth-of-type(odd) { rotate: -.35deg; }
.case:nth-of-type(even) { rotate: .35deg; }
.case:nth-of-type(even) .case-copy { order: 2; }
.case-top { display: flex; align-items: flex-end; gap: 16px; }
.case-no { font: 400 clamp(56px, 6vw, 92px)/.78 var(--serif); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--ink-3); opacity: .7; transform: translateZ(30px); }
.case-top .stamp { margin-bottom: 4px; }
.case-org { font-size: 10.5px; }
.case h3, .cat-head h3 { margin-top: 18px; font: 400 clamp(30px, 3.3vw, 50px)/1 var(--serif); letter-spacing: -.02em; max-width: 18ch; }
.case-kpi { margin-top: 16px; color: var(--ink-2); }
.case-kpi b { font-weight: 600; color: var(--ink); }
.star { margin-top: 22px; display: grid; gap: 14px; }
.star > div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.star dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.star dd { font-size: 16px; color: var(--ink-2); }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.case-tags li { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.case-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding-bottom: 3px; border-bottom: 1.5px solid var(--ink); font: 500 15px/1.2 var(--sans); text-decoration: none; }
.case-more span { transition: transform .35s var(--ease); }
.case-more:hover span { transform: translateX(6px); }
.case-more:hover { border-color: var(--sun); }
.case-viz { position: relative; padding: clamp(14px, 2vw, 24px); background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 30px 40px -30px rgba(40, 30, 10, .45); transform: translateZ(50px); }
.case::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 55%); mix-blend-mode: soft-light; }
.case.is-tilting::after { opacity: 1; }
@media (max-width: 899px) {
  .case { grid-template-columns: minmax(0, 1fr); rotate: 0deg !important; }
  .case:nth-of-type(even) .case-copy { order: 0; }
  .star > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- case graphics ---------- */
/* 01 · search results */
.rank { display: grid; gap: 16px; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-tags li { padding: 6px 11px 5px; background: var(--paper-hi); border: 1px solid var(--rule); font: 500 11px var(--mono); letter-spacing: .04em; rotate: var(--r); box-shadow: 0 6px 10px -8px rgba(0, 0, 0, .4); }
.rank-tags li::after { content: ' ↘'; color: var(--ink-3); }
.rank-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px; align-items: center; }
.rank-stage { perspective: 900px; padding: 6px 30px 6px 52px; }
.rank-paper { position: relative; padding: 14px 12px; background: var(--paper-hi); box-shadow: 0 30px 40px -28px rgba(40, 30, 10, .55); transform: rotateX(16deg) rotateY(-18deg) rotateZ(1.5deg); transform-style: preserve-3d; }
.rank-list li { display: flex; align-items: center; gap: 7px; height: 12px; margin-bottom: 4px; transform: translateX(calc(var(--push, 0) * 18px)); transition: transform .35s var(--ease); }
.rank-list li:last-child { margin-bottom: 0; }
.rank-list span { flex: 0 0 15px; font: 500 8.5px var(--mono); color: var(--ink-3); text-align: right; }
.rank-list i { display: block; height: 4px; width: calc(var(--w) * .5); border-radius: 2px; background: #cfc5b5; }
.rank-list i + i { background: #e2d9ca; }
.rank-page { position: absolute; left: -6px; right: -6px; height: 0; border-top: 1.5px dashed var(--ink); font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.rank-page span { position: absolute; right: calc(100% + 6px); white-space: nowrap; }
.rank-page span:first-child { bottom: 2px; } .rank-page span:last-child { top: 3px; }
.rank-me { position: absolute; left: 6px; right: -26px; top: 0; height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--ink); color: var(--paper); font: 500 12px var(--sans); transform: translate3d(0, var(--y, 0), 46px); box-shadow: 0 18px 22px -12px rgba(0, 0, 0, .55); }
.rank-me i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.rank-me b { margin-left: auto; font: 400 19px var(--serif); }
.rank-big { font: 400 clamp(64px, 7vw, 104px)/.86 var(--serif); letter-spacing: -.03em; }
.rank-readout .mono { margin-top: 8px; font-size: 10px; color: var(--ink-3); }
.rank-note { margin-top: 12px; font-size: 23px; white-space: nowrap; color: var(--sun); rotate: -4deg; }
.rank-toggle { display: inline-flex; margin-top: 16px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px; }
.rank-toggle button { padding: 7px 12px; border: 0; border-radius: 999px; background: none; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.rank-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 599px) { .rank-note { font-size: 19px; } .rank-stage { padding: 6px 34px 6px 50px; } .rank-body { grid-template-columns: minmax(0, 1fr); } .rank-readout { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 14px; } .rank-readout .rank-big { grid-row: span 2; } }

/* 02 · isometric city */
.stacks { position: relative; }
.viz-stacks { width: 100%; height: auto; }
.stacks-tip { position: absolute; left: 0; top: 0; padding: 6px 9px; background: var(--ink); color: var(--paper); font-size: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.stacks-tip.is-on { opacity: 1; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 10px; color: var(--ink-2); }
.viz-legend i { display: inline-block; margin-right: 7px; vertical-align: -1px; background: #8c8377; }
.lg-slab { width: 14px; height: 4px; } .lg-stack { width: 9px; height: 14px; background: #3c3732 !important; vertical-align: -3px !important; } .lg-now { width: 9px; height: 9px; border-radius: 50%; background: var(--sun) !important; }

/* 03 · review belt */
.review { position: relative; }
.review-count { display: flex; gap: clamp(16px, 3vw, 30px); }
.review-count dt { font-size: 10px; color: var(--ink-3); }
.review-count dd { margin-top: 2px; font: 400 32px/1 var(--serif); letter-spacing: -.01em; text-transform: none; }
.review-count div:nth-child(2) dd { color: var(--sun); }
.review-floor { position: relative; height: clamp(250px, 30vw, 310px); margin-top: 28px; }
.belt { position: absolute; left: -8px; right: -8px; top: 36%; height: 12px; border-radius: 6px; background: #2a2622; overflow: hidden; }
.belt i { position: absolute; inset: 3px 0; background: repeating-linear-gradient(90deg, #6f675d 0 10px, transparent 10px 22px); }
.lens { position: absolute; left: 50%; top: 36%; z-index: 3; width: clamp(104px, 13vw, 132px); aspect-ratio: 1; translate: -50% -86%; border: 3px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .55), 0 10px 20px -12px rgba(0, 0, 0, .5); pointer-events: none; transition: border-color .25s; }
.lens::after { content: ''; position: absolute; right: -26px; bottom: -14px; width: 34px; height: 10px; border-radius: 5px; background: var(--ink); rotate: 40deg; }
.lens span { position: absolute; left: 50%; top: -22px; translate: -50% 0; font-size: 10px; }
.lens.is-looking { border-color: var(--sun); }
.review-why { position: absolute; left: calc(50% + clamp(60px, 8vw, 80px)); top: 4%; z-index: 4; font-size: 25px; color: var(--sun); rotate: -5deg; opacity: 0; white-space: nowrap; }
.tray { position: absolute; left: 50%; bottom: 4px; width: clamp(120px, 16vw, 160px); height: 42px; translate: -50% 0; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; }
.shipped { position: absolute; right: 3%; bottom: 4px; width: clamp(80px, 11vw, 104px); height: 2px; background: var(--ink); }
.tray span, .shipped span { position: absolute; left: 50%; top: calc(100% + 4px); translate: -50% 0; font-size: 9.5px; color: var(--ink-3); }
.review-cards { position: absolute; inset: 0; }
.r-card { position: absolute; left: 0; top: 0; z-index: 2; width: clamp(60px, 9vw, 82px); padding: 3px; background: #fff; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .45); }
.r-card svg { width: 100%; height: auto; }
.r-stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 2px 6px 1px; border: 2px solid currentColor; border-radius: 3px; background: rgba(255, 255, 255, .78); font: 600 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.r-stamp.bad { color: var(--sun); } .r-stamp.ok { color: var(--ink); }
.review-hint { position: absolute; left: 0; bottom: 0; font-size: 19px; color: var(--ink-3); }
.r-card.is-still.at-lens { left: 50%; top: 36%; translate: -50% -100%; scale: 1.3; }
.r-card.is-still.at-tray { left: 50%; top: auto; bottom: 12px; translate: -50% 0; rotate: 14deg; scale: .8; }
.r-card.is-still.at-ship { left: auto; top: auto; right: 4%; bottom: calc(8px + var(--i) * 4px); scale: .8; }
@media (max-width: 599px) { .review-hint { display: none; } }

/* 04 · dollhouse room */
.room { position: relative; }
.room-stage { position: relative; height: clamp(280px, 30vw, 380px); perspective: 1500px; perspective-origin: 50% 30%; touch-action: pan-y; user-select: none; cursor: grab; }
.room-iso { position: absolute; left: 50%; top: 58%; width: 320px; height: 260px; margin: -130px 0 0 -160px; transform: scale(var(--s, 1)) rotateX(var(--rx, 58deg)) rotateZ(var(--rz, 36deg)); transform-style: preserve-3d; }
.r-floor, .r-wall, .r-obj, .r-box { position: absolute; transform-style: preserve-3d; }
.r-floor { inset: 0; background: var(--paper-hi) repeating-linear-gradient(90deg, rgba(60, 50, 40, .07) 0 1px, transparent 1px 32px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.r-empty { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 13px; letter-spacing: .2em; color: var(--ink-3); white-space: nowrap; }
.r-wall { background: #f2f0eb; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.r-wall-n { left: 0; top: -170px; width: 320px; height: 170px; transform-origin: 50% 100%; transform: rotateX(-90deg); }
.r-wall-w { left: -170px; top: 0; width: 170px; height: 260px; transform-origin: 100% 50%; transform: rotateY(90deg); background: #e6e2da; }
.r-window { position: absolute; left: 34px; top: 74px; width: 76px; height: 112px; background: #fff; box-shadow: inset 0 0 0 3px #3c3732, inset 0 0 0 30px rgba(207, 226, 255, .25); }
.r-window::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: #3c3732; }
.r-art { position: absolute; left: 50%; top: 22px; width: 64px; margin-left: -32px; padding: 4px; background: #fff; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5); }
.r-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.r-obj { inset: 0; }
.r-box i { position: absolute; left: 0; top: 0; display: block; }
.r-box .f-n, .r-box .f-s { transform-origin: 0 0; transform: rotateX(90deg); }
.r-box .f-w, .r-box .f-e { transform-origin: 0 0; transform: rotateY(-90deg); }
.r-shadow { position: absolute; background: radial-gradient(closest-side, rgba(40, 30, 10, .42), rgba(40, 30, 10, .18) 70%, transparent); border-radius: 12px; }
.room-control { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.room-control .mono { font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.room-range { flex: 1; height: 22px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.room-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), #d9cfbf var(--p, 0%)); }
.room-range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), #d9cfbf var(--p, 0%)); }
.room-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper-hi); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.room-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper-hi); }
.room-hint { position: absolute; right: 6px; top: 4px; font-size: 21px; color: var(--ink-2); rotate: -4deg; transition: opacity .5s; pointer-events: none; }
.room.is-turned .room-hint { opacity: 0; }

/* catalogue */
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.cat-why { margin-top: 14px; max-width: 60ch; color: var(--ink-2); font-size: 16px; }
.cat-controls { display: grid; gap: 10px; margin-top: 30px; }
.cat-styles, .cat-rooms { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-styles::-webkit-scrollbar, .cat-rooms::-webkit-scrollbar { display: none; }
.cat-pill { flex: 0 0 auto; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cat-pill:hover { border-color: var(--ink); color: var(--ink); }
.cat-pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-rooms .cat-pill { padding: 7px 12px; font-size: 11px; }
.cat-rooms .cat-pill[aria-pressed="true"] { background: var(--paper-lo); color: var(--ink); border-color: var(--ink); }
.cat-pill sup { margin-left: 4px; font-size: 9px; opacity: .6; }
.cat-stage { position: relative; margin-top: 20px; background: #fff; overflow: hidden; touch-action: pan-y; }
.cat-img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; }
.cat-main figcaption { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 8px; align-items: center; }
.cat-code, .cat-count { padding: 5px 10px; background: var(--paper); font: 500 11px var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.cat-code { color: var(--ink); }
.cat-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); background: rgba(255, 255, 255, .9); font-size: 18px; cursor: pointer; transition: background .25s, color .25s; }
.cat-nav:hover { background: var(--ink); color: var(--paper); }
.cat-prev { left: 12px; } .cat-next { right: 12px; }
.cat-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 6px; }
.cat-thumb { display: block; width: clamp(96px, 11vw, 150px); aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; background: #fff; overflow: hidden; cursor: pointer; scroll-snap-align: center; opacity: .65; transition: opacity .25s, border-color .25s; }
.cat-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-thumb:hover { opacity: 1; }
.cat-thumb.is-on { opacity: 1; border-color: var(--ink); }
@media (max-width: 699px) { .cat-nav { width: 38px; height: 38px; font-size: 15px; } .cat-img { aspect-ratio: 4 / 3; } }

/* ---------- recognition (the one ink page) ---------- */
.proof { background: var(--ink); color: var(--paper); padding: var(--section) 0; }
.proof-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.proof-title { margin-top: 24px; font: 400 clamp(42px, 5vw, 80px)/.98 var(--serif); letter-spacing: -.02em; }
.proof-title em { color: var(--sun); }
.proof-note { margin-top: 20px; color: #a99f92; }
.proof-quote blockquote { display: grid; gap: 26px; }
.proof-quote p { font: 400 clamp(24px, 2.4vw, 36px)/1.22 var(--serif); }
.proof-quote figcaption { margin-top: 30px; color: #a99f92; }
.proof-quote figcaption a { color: var(--paper); }
@media (max-width: 899px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---------- fit: my work, in folders ---------- */
/* a stack of manila folders. Each role is a folder; the open one comes to the front with a clipped photo inside */
.fit { padding: var(--section) 0 0; }
.folders { position: relative; isolation: isolate; margin-top: var(--head-gap); }
.fit-tabs { position: relative; z-index: 2; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 0; }
.fit-tabs::-webkit-scrollbar { display: none; }
.fit-tab {
  flex: 0 0 auto; padding: 14px 28px 12px; border: 0; background: var(--folder); color: var(--ink-2);
  font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(0 100%, 11px 0, calc(100% - 11px) 0, 100% 100%);
  filter: brightness(.93); transition: transform .3s var(--ease), color .3s, filter .3s;
}
.fit-tab:hover { transform: translateY(-4px); filter: brightness(.97); }
.fit-tab[aria-selected="true"] { color: var(--ink); filter: none; transform: translateY(0); padding-bottom: 14px; margin-bottom: -2px; }
.fit-tab:focus-visible { outline-offset: -5px; }
.fit-panels {
  position: relative; padding: clamp(26px, 4vw, 56px); background: var(--folder); border-radius: 0 8px 8px 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 34px 60px -40px rgba(40, 30, 10, .55); transition: background .5s var(--ease);
}
/* the rest of the stack peeks out underneath */
.fit-panels::before, .fit-panels::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -9px; z-index: -1; height: 24px; border-radius: 0 0 8px 8px; background: color-mix(in srgb, var(--folder) 72%, var(--paper-lo)); box-shadow: 0 10px 20px -16px rgba(40, 30, 10, .5); }
.fit-panels::after { left: 26px; right: 26px; bottom: -17px; background: color-mix(in srgb, var(--folder) 48%, var(--paper-lo)); }
/* a binder clip on the top edge */
.clip-binder { position: absolute; right: clamp(32px, 6%, 72px); top: -12px; z-index: 3; width: 58px; height: 24px; border-radius: 3px 3px 6px 6px; background: linear-gradient(#2a2622, #161412); box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .6); }
.clip-binder::before, .clip-binder::after { content: ''; position: absolute; top: -24px; width: 30px; height: 30px; border: 2.5px solid #4a443e; border-bottom: 0; border-radius: 7px 7px 0 0; }
.clip-binder::before { left: 7px; rotate: -12deg; } .clip-binder::after { right: 7px; rotate: 12deg; }
.fit-panel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 19vw, 230px); gap: 28px clamp(28px, 5vw, 72px); align-items: start; }
.fit-panel[hidden] { display: none; }
.fit-line { font: 400 clamp(28px, 3vw, 46px)/1.05 var(--serif); letter-spacing: -.015em; max-width: 26ch; }
.fit-list { margin-top: 24px; display: grid; gap: 10px; max-width: 70ch; }
.fit-list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.fit-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 1.5px; background: var(--ink); }
.fit-proof { display: inline-block; margin-top: 26px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
/* the photo clipped inside the folder */
.fit-photo { position: relative; margin: 6px 0 0; padding: 8px 8px 36px; background: #fff; rotate: var(--r, 0deg); box-shadow: 0 2px 3px rgba(30, 20, 5, .12), 0 24px 40px -24px rgba(30, 20, 5, .5); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.fit-photo:hover { rotate: 0deg; translate: 0 -6px; }
.fit-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.fit-photo figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 21px; color: var(--ink-2); }
.clip-paper { position: absolute; left: 16px; top: -18px; z-index: 2; width: 16px; height: 44px; border: 2.5px solid #8d867a; border-radius: 8px; rotate: 10deg; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #a8a194; }
.clip-paper::after { content: ''; position: absolute; left: -2.5px; right: -2.5px; top: 18px; height: 20px; background: linear-gradient(90deg, transparent 0 2.5px, #fff 2.5px calc(100% - 2.5px), transparent 0); }
@media (max-width: 759px) {
  .fit-panel { grid-template-columns: minmax(0, 1fr); }
  .fit-photo { width: min(58%, 220px); margin-top: 18px; }
  .fit-tab { padding: 12px 18px 11px; font-size: 11px; }
  .clip-binder { display: none; }
}

/* ---------- desk: endless table ---------- */
.desk { padding-top: var(--section); }
.desk-view {
  position: relative; height: min(84svh, 860px); margin-top: var(--head-gap); overflow: hidden;
  border-block: 1px solid var(--rule); cursor: grab; touch-action: pan-y; user-select: none;
}
.desk-view.is-dragging { cursor: grabbing; }
.desk-view:focus-visible { outline-offset: -4px; }
.desk-view { --tilt: 36deg; --spin: 0deg; perspective: 1100px; perspective-origin: 50% 0%; background: var(--paper-lo); }
.desk-plane {
  position: absolute; left: -35%; right: -35%; top: -70%; bottom: -12%; transform-origin: 50% 72%;
  transform: rotateX(var(--tilt)) rotateZ(var(--spin)); transform-style: preserve-3d;
  background: radial-gradient(rgba(22, 20, 18, .2) 1.2px, transparent 1.6px) var(--bx, 0) var(--by, 0) / 34px 34px;
}
.desk-view::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(var(--paper) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 16%, transparent 42%); }
.d-item {
  position: absolute; left: 0; top: 0; width: var(--w); padding: 0; border: 0; background: none; cursor: pointer;
  will-change: transform; -webkit-tap-highlight-color: transparent; transform-style: preserve-3d;
}
.d-item::before { content: ''; position: absolute; inset: 6% -8% -10%; background: radial-gradient(closest-side, rgba(40, 30, 10, .38), transparent); opacity: .55; transition: opacity .5s, transform .6s var(--ease); }
.d-card { display: block; position: relative; rotate: var(--r); transform-origin: 50% 100%; transition: rotate .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 2px 3px rgba(30, 20, 5, .18), 0 10px 18px -12px rgba(30, 20, 5, .45); background: #fff; }
.d-item.is-photo .d-card { padding: 6px 6px 22px; }
.d-card img, .d-card video { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.d-item:hover, .d-item:focus-visible { z-index: 5; }
.d-item:hover .d-card, .d-item:focus-visible .d-card { rotate: 0deg; transform: translateZ(60px) rotateX(calc(var(--tilt) * -.85)) scale(1.12); box-shadow: 0 30px 50px -24px rgba(30, 20, 5, .55); }
.d-item:hover::before, .d-item:focus-visible::before { opacity: .9; transform: scale(1.2) translateY(14%); }
.d-item:focus-visible { outline: none; }
.d-item:focus-visible .d-card { outline: 2px solid var(--ink); outline-offset: 4px; }
.d-cap { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 6px; white-space: nowrap; font: 500 22px/1 var(--hand); color: var(--ink); opacity: 0; transition: opacity .35s, translate .45s var(--ease); pointer-events: none; }
.d-item:hover .d-cap, .d-item:focus-visible .d-cap { opacity: 1; translate: -50% 0; }
.d-play { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(22, 20, 18, .7); color: #fff; display: grid; place-items: center; font-size: 10px; }
.desk-hint { position: absolute; right: var(--edge); top: 18px; z-index: 6; padding: 4px 12px 6px; background: var(--paper-hi); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .4); font-size: 24px; color: var(--ink-2); rotate: -3deg; pointer-events: none; transition: opacity .6s; }
.desk-view.was-dragged .desk-hint { opacity: 0; }
.desk-hint { z-index: 6; }
.desk-ig { padding: 18px 0 0; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.lightbox { width: min(92vw, 1100px); max-height: 92svh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(22, 20, 18, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { display: grid; justify-items: center; gap: 14px; }
.lightbox[open] figure { animation: lb-in .55s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] figure { animation: none; } }
.lb-media img, .lb-media video { max-width: 100%; max-height: 80svh; width: auto; height: auto; background: #fff; padding: 8px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.lightbox figcaption { display: flex; gap: 14px; align-items: baseline; color: var(--paper); }
.lb-title { font-size: 28px; }
.lb-meta { color: #b9b0a4; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: var(--paper); color: var(--ink); }

/* ---------- story: clippings on a route ---------- */
.story { padding: var(--section) 0; }
.story-head { margin-inline: var(--edge); }
.route { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.route-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.route-line path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; margin-inline: var(--edge); }
.clip { position: relative; padding: 18px 18px 22px; background: var(--paper-hi); box-shadow: 0 24px 40px -30px rgba(40, 30, 10, .5); }
.clip:nth-child(odd) { rotate: -1.2deg; }
.clip:nth-child(even) { rotate: 1deg; translate: 0 18px; }
.clip-year { position: absolute; top: -.5em; right: 12px; z-index: 2; font: 400 clamp(60px, 6vw, 92px)/1 var(--serif); letter-spacing: -.03em; }
.clip-now .clip-year { color: var(--sun); font-style: italic; }
.clip-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-lo); }
.clip-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.clip-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(22, 20, 18, .5) .8px, transparent 1.2px) 0 0 / 4px 4px; mix-blend-mode: multiply; opacity: .35; }
.clip .when { margin-top: 16px; font-size: 10.5px; color: var(--ink-3); }
.clip h3 { margin-top: 8px; font: 400 27px/1.02 var(--serif); letter-spacing: -.01em; }
.clip .org { margin-top: 6px; font-size: 14px; font-weight: 600; }
.clip p:last-child:not(.org) { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.story.is-horizontal .story-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.story.is-horizontal .route { margin-top: clamp(10px, 2vh, 30px); }
.story.is-horizontal .h2 { font-size: clamp(40px, min(5.4vw, 8.4vh), 92px); }
.story.is-horizontal .clip-img { aspect-ratio: 3 / 2; }
.story.is-horizontal .clip p:last-child:not(.org) { font-size: 14px; }
.story.is-horizontal .clips { display: flex; gap: clamp(36px, 4vw, 60px); width: max-content; margin: 0; padding: 40px var(--edge); }
.story.is-horizontal .clip { width: clamp(280px, 25vw, 350px); flex: 0 0 auto; }
.story.is-horizontal .route-line { display: block; }
.story.is-horizontal .route { perspective: 1500px; }
.story.is-horizontal .clips { transform-style: preserve-3d; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: var(--block); padding-top: 26px; border-top: 1.5px solid var(--ink); }
.skills h3 { color: var(--ink-3); }
.skills p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 799px) { .skills { grid-template-columns: 1fr; } }

/* ---------- life ---------- */
.life { padding: 0 0 var(--section); }
.life-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.life-line { margin-top: 22px; font: 400 clamp(46px, 5.6vw, 92px)/.95 var(--serif); letter-spacing: -.025em; }
.polaroids { display: flex; justify-content: center; perspective: 900px; }
.polaroids li { position: relative; width: 34%; padding: 10px 10px 46px; background: #fff; box-shadow: 0 26px 40px -24px rgba(30, 20, 5, .5); rotate: var(--r); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.polaroids li + li { margin-left: -4%; }
.polaroids li:nth-child(2) { translate: 0 -22px; z-index: 1; }
.polaroids li:hover { rotate: 0deg; translate: 0 -30px; z-index: 2; }
.polaroids img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroids .hand { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 22px; color: var(--ink-2); }
@media (max-width: 899px) { .life-grid { grid-template-columns: 1fr; } .polaroids li { width: 38%; } .polaroids .hand { font-size: 17px; } }

/* ---------- end ---------- */
.end { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 24px; padding: 0 var(--edge); min-height: 100svh; overflow: hidden; border-top: 1px solid var(--rule); }
.end-copy { align-self: center; padding: 120px 0 80px; position: relative; z-index: 2; }
.end-title { font: 400 clamp(48px, 6.4vw, 120px)/.92 var(--serif); letter-spacing: -.03em; }
.end-title span { display: block; }
.end-sub { margin-top: 26px; max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); }
.end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.end-fig { position: relative; justify-self: center; height: min(92svh, 1000px); aspect-ratio: 844 / 1500; perspective: 1400px; }
.end-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.end-sun { position: absolute; left: 70%; top: 2%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.end-portrait { width: 100%; height: 100%; filter: grayscale(1) contrast(1.08); }
.end-portrait { filter: grayscale(1) contrast(1.08) drop-shadow(0 30px 30px rgba(40, 30, 10, .25)); }
.end-ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.end-ink path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.end-ink .e1 { stroke: var(--a1); } .end-ink .e2 { stroke: var(--a3); stroke-width: 6; } .end-ink .e3 { stroke: var(--a4); stroke-width: 7; }
@media (max-width: 899px) {
  .end { grid-template-columns: 1fr; min-height: 0; }
  .end-copy { padding: 90px 0 0; }
  .end-fig { height: auto; width: min(80%, 360px); }
}

/* ---------- footer ---------- */
.site-footer { padding: var(--block) var(--edge) 26px; background: var(--ink); color: var(--paper); }
.foot-mark { font: 400 clamp(36px, 12.4vw, 236px)/.86 var(--serif); letter-spacing: -.035em; white-space: nowrap; }
.foot-dot { display: inline-block; width: .16em; height: .16em; margin-left: .06em; border-radius: 50%; background: var(--sun); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(237, 234, 228, .2); color: #a99f92; font-size: 11px; }
.foot-row a { color: var(--paper); text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }

/* ---------- contextual cursor: shows what you can do (drag, open, tap) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); pointer-events: none; scale: 0; transition: scale .4s var(--ease); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cursor.is-on { scale: 1; }
.cursor.is-down { scale: .82; }
html:not(.has-cursor) .cursor { display: none; }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none !important; }

@media (max-width: 759px) {
  .nav { display: none; }
  .status { padding: 7px 11px; font-size: 10.5px; }
  .wordmark { font-size: 20px; }
  .sec-note { position: static; display: block; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .live, .hero-scroll span { animation: none; }
  .mind-arts img.is-on { transition: none; }
}
