:root {
  --paper: #fbfbfa;
  --ink: #141414;
  --ink-2: #5d5d5a;
  --ink-3: #9a9a96;
  --line: #e2e2df;
  --line-2: #cfcfca;
  --chip: #efefec;
  --hover: #f2f2ef;
  /* Frosted folder fronts */
  --frost: rgba(255, 255, 255, .62);
  --frost-2: rgba(255, 255, 255, .14);
  /* Marker and sharpie in the intro */
  --marker: #e4f76b;
  --marker-2: #d3ea4b;
  --marker-blend: multiply;
  --marker-text: inherit;
  --sharpie: #e23a2e;
  /* Footer stays dark in both themes */
  --foot-bg: #141414;
  --foot-ink: #f1f0ec;
  --foot-ink-2: #8f8f8a;
  --foot-line: rgba(255, 255, 255, .14);
  --foot-mark: #e4f76b;
  --foot-word: #3a3a37;
  --gut: clamp(16px, 4vw, 64px);
  --gut-bar: clamp(16px, 4vw, 64px); /* the top bar keeps one gutter on every page */
  --pad: clamp(16px, 1.8vw, 28px);
  --bar: 52px;
  --display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Averia Serif Libre', Georgia, serif;
  --ease: cubic-bezier(.22, .9, .24, 1);
  /* Folder silhouettes: body and tab drawn as one path, so frost, tint and edge never seam */
  --folder-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 164' preserveAspectRatio='none'%3E%3Cpath d='M0 12C0 5 5 0 12 0H66C76 0 78 14 88 14H188C195 14 200 19 200 26V152C200 159 195 164 188 164H12C5 164 0 159 0 152Z' /%3E%3C/svg%3E");
  --folder-front: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 121' preserveAspectRatio='none'%3E%3Cpath d='M0 26C0 19 5 14 12 14H92C100 14 102 0 112 0H188C195 0 200 5 200 12V109C200 116 195 121 188 121H12C5 121 0 116 0 109Z' /%3E%3C/svg%3E");
  --folder-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 121' preserveAspectRatio='none'%3E%3Cpath d='M0 26C0 19 5 14 12 14H92C100 14 102 0 112 0H188C195 0 200 5 200 12V109C200 116 195 121 188 121H12C5 121 0 116 0 109Z' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* Dark theme: follows the system unless the toggle says otherwise */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211; --ink: #f1f0ec; --ink-2: #b4b3ad; --ink-3: #7a7a75;
    --line: #2a2a28; --line-2: #3a3a37; --chip: #1e1e1c; --hover: #1a1a18;
    --frost: rgba(255, 255, 255, .2); --frost-2: rgba(255, 255, 255, .05);
    --marker-blend: normal; --marker-text: inherit; --marker: #56620f; --marker-2: #6d7c16; --front-ink: #ffffff;
    --foot-bg: #0b0b0a; --foot-line: rgba(255, 255, 255, .1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121211; --ink: #f1f0ec; --ink-2: #b4b3ad; --ink-3: #7a7a75;
  --line: #2a2a28; --line-2: #3a3a37; --chip: #1e1e1c; --hover: #1a1a18;
  --frost: rgba(255, 255, 255, .2); --frost-2: rgba(255, 255, 255, .05);
  --marker-blend: normal; --marker-text: inherit; --marker: #56620f; --marker-2: #6d7c16; --front-ink: #ffffff;
  --foot-bg: #0b0b0a; --foot-line: rgba(255, 255, 255, .1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.loading body { overflow: hidden; }
[hidden] { display: none !important; }
img, video, picture { display: block; max-width: 100%; }
picture > img { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.meta { font-family: var(--serif); font-size: 14px; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Two guide rules run the full height of the page, bello-style. */
body::before, body::after {
  content: ''; position: fixed; top: 0; bottom: 0; width: 1px;
  background: var(--line); z-index: 0; pointer-events: none;
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.4s var(--ease) .1s;
}
body::before { left: var(--gut); }
body::after { right: var(--gut); }
body.ready::before, body.ready::after { transform: scaleY(1); }
main, footer { position: relative; z-index: 1; }

/* ---------- Preloader / transition blocks ---------- */
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: #0f0f0e; }
.loader.built { background: transparent; }
.loader.live { pointer-events: auto; }
.blocks { position: absolute; inset: 0; display: grid; }
.blocks i { background: #0f0f0e; opacity: 1; transition: opacity .01s linear var(--d); }
.loader.clear .blocks i { opacity: 0; }
.count {
  position: absolute; left: var(--gut); bottom: calc(var(--gut) * .6);
  font: 500 clamp(64px, 11vw, 168px)/.8 var(--display); letter-spacing: -.05em;
  color: #fbfbfa; font-variant-numeric: tabular-nums;
  transition: opacity .2s;
}
.loader.clear .count, .loader.wipe .count { opacity: 0; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto auto auto;
  height: var(--bar);
  padding: 0 var(--gut-bar);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease);
}
body.ready .bar::after { transform: scaleX(1); }
.brand { display: flex; align-items: center; gap: 10px; padding-left: var(--pad); font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.mark { width: 17px; height: 20px; fill: var(--ink); }
.clock { display: flex; align-items: center; gap: 8px; padding: 0 var(--pad); color: var(--ink-3); }
.clock #clock { color: var(--ink); font-variant-numeric: tabular-nums; }
.theme-btn { display: flex; align-items: center; gap: 8px; padding: 0 var(--pad); color: var(--ink-2); border-left: 1px solid var(--line); }
.theme-btn i { width: 10px; height: 10px; border: 1px solid currentColor; background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.theme-btn:hover { color: var(--ink); }
.nav { display: flex; border-left: 1px solid var(--line); }
.nav a { display: flex; align-items: center; padding: 0 clamp(12px, 1.6vw, 22px); border-right: 1px solid var(--line); transition: background .2s, color .2s; }
/* Nav hover, after eemonroy's illustrated links: each word gets its own hand-drawn mark from the
   hero's kit (lime marker, red sharpie loop, squiggle), drawn on as you arrive. The current page
   keeps its mark. */
.nav a { position: relative; overflow: clip; } /* the doodles overhang the word, never the page */
.nav-word { position: relative; display: inline-block; }
.nav-word > span { position: relative; z-index: 1; }
.doodle { position: absolute; z-index: 0; overflow: visible; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s .25s; }
/* Hidden until drawn: a round cap on a zero-length dash would otherwise leave a dot */
.nav a[aria-current="page"] .doodle { opacity: 1; }
.doodle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s cubic-bezier(.65, .05, .35, 1); }
.doodle-marker { left: -10%; top: 18%; width: 120%; height: 70%; mix-blend-mode: var(--marker-blend); }
.doodle-marker path { stroke: var(--marker); stroke-width: 15; opacity: .92; }
.doodle-loop { left: -24%; top: -55%; width: 148%; height: 210%; }
.doodle-loop path { stroke: var(--sharpie); stroke-width: 1.8; transition-duration: .6s; }
.doodle-squiggle { left: -6%; top: 82%; width: 112%; height: 50%; }
.doodle-squiggle path { stroke: var(--sharpie); stroke-width: 1.8; }
.doodle-squiggle path + path { transition-delay: .3s; transition-duration: .2s; }
.nav a[aria-current="page"] .doodle path { stroke-dashoffset: 0; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--hover); }
  .nav a:hover .doodle { opacity: 1; transition-delay: 0s; transition-duration: 0s; }
  .nav a:hover .doodle path { stroke-dashoffset: 0; }
  .nav a:hover .nav-word > span { animation: nav-wiggle .45s var(--ease); }
}
@keyframes nav-wiggle { 30% { transform: rotate(-4deg) translateY(-1px); } 65% { transform: rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) { .doodle path { transition: none; } .nav a:hover .nav-word > span { animation: none; } }

/* ---------- Intro ---------- */
.intro {
  position: relative;
  /* Fills the screen open or closed; the copy floats in whatever space the drawer leaves */
  min-height: calc(100svh - var(--bar));
  padding: 0 calc(var(--gut) + var(--pad));
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
  text-align: center;
}
.intro-copy { position: relative; z-index: 2; margin: auto 0; padding: clamp(28px, 5vh, 64px) 0; display: flex; flex-direction: column; align-items: center; transition: padding .6s var(--ease); }
.intro:has(.shelf.open) .intro-copy { padding: clamp(14px, 2.4vh, 28px) 0; }
/* The drawer edge: one hairline across the page, the folders sit right on it */
.intro::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); }
.hello {
  position: relative; z-index: 2;
  margin: 0;
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 74px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hello em { font: italic 400 1em/1 var(--serif); letter-spacing: -.035em; }
.hello .mask > span { transition: transform 1.1s var(--ease) calc(var(--i, 0) * .09s + .1s); }
.hello .mask:nth-child(2) > span { --i: 1; }
.hello .mask:nth-child(3) > span { --i: 2; }
.hello .mask:nth-child(4) > span { --i: 3; }
body.ready .hello .mask > span { transform: none; }

/* Marker swipe across "Multidisciplinary designer": a felt-tip pass, then a quicker second stroke */
.marker { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.marker em { position: relative; z-index: 1; color: var(--marker-text); transition: color .3s; }
.marker-ink {
  position: absolute; z-index: 0; left: 0; width: 102%; top: 16%; height: 84%;
  mix-blend-mode: var(--marker-blend);
  overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(-1.2deg); transform-origin: left center;
}
.marker-ink path { stroke: var(--marker); stroke-width: 46; stroke-dasharray: 720; stroke-dashoffset: 720; opacity: .92; transition: stroke-dashoffset .5s cubic-bezier(.65, .05, .35, 1); }
.marker-ink .marker-2 { stroke: var(--marker-2); stroke-width: 12; opacity: .8; transition-delay: .38s; transition-duration: .3s; }
.hello.done .marker-ink path { stroke-dashoffset: 0; }
/* Hover draws the marker (and the sharpie circle) again */
.marker, .circled { cursor: default; }
.marker.replay .marker-ink path { animation: redraw-720 .7s cubic-bezier(.65, .05, .35, 1) both; }
.marker.replay .marker-ink .marker-2 { animation-duration: .45s; animation-delay: .45s; }
.circled.replay .circle-ink path { animation: redraw-900 .8s cubic-bezier(.6, .1, .3, 1) both; }
@keyframes redraw-720 { from { stroke-dashoffset: 720; } to { stroke-dashoffset: 0; } }
@keyframes redraw-900 { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }

/* Pen circle around "work on", drawn after the marker; the line mask opens so it can overflow */
.hello.revealed .mask { overflow: visible; }
/* First visit: lines are already in place and the letters appear one by one behind a caret */
.hello.typing .mask { overflow: visible; }
.hello.typing .mask > span { transform: none !important; transition: none !important; }
.hello.typing .ch:not(.on) { opacity: 0; }
.caret { position: relative; display: inline-block; width: 0; }
.caret::after { content: ''; position: absolute; left: .03em; top: -.82em; height: .9em; width: .06em; background: var(--ink); animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circle-ink {
  position: absolute; left: -4%; top: -14%; width: 112%; height: 132%;
  overflow: visible; fill: none; pointer-events: none;
  stroke: var(--sharpie); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  opacity: .92;
  vector-effect: non-scaling-stroke;
  transform: rotate(-2.5deg);
}
.circle-ink path { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset .55s cubic-bezier(.6, .1, .3, 1) .55s; }
.hello.done .circle-ink path { stroke-dashoffset: 0; }

/* ---------- The visitor's cursor ---------- */
html.you-cursor-on, html.you-cursor-on * { cursor: none !important; }
html.you-cursor-on input, html.you-cursor-on textarea { cursor: text !important; }
.you-cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .2s; }
.you-cursor.on { opacity: 1; }
.you-cursor.typing { opacity: 0; }
.you-cursor svg { position: absolute; left: -3px; top: -2px; width: 24px; height: 24px; overflow: visible; transition: scale .15s; transform-origin: 3px 2px; }
.you-cursor path { fill: #141414; stroke: #ffffff; stroke-width: 1.7; stroke-linejoin: round; }
.you-cursor.down svg { scale: .86; }
.you-tag {
  position: absolute; left: 16px; top: 20px; white-space: nowrap;
  padding: 5px 11px 6px; border: 1.5px solid #ffffff; border-radius: 3px 11px 11px 11px;
  background: #8fd6c8; color: #1d2547; font: 500 15px/1 var(--display); letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(20, 20, 40, .18);
}

/* ---------- Stickers: knight logo, peel to pull off ---------- */
.intro-copy { position: relative; }
.sticker {
  --size: clamp(84px, 8.6vw, 132px);
  position: absolute; z-index: 4; width: var(--size); height: var(--size);
  translate: -50% -50%; rotate: var(--tilt);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  opacity: 0; scale: 1.5;
}
.sticker.stuck { opacity: 1; scale: 1; transition: scale .38s cubic-bezier(.3, 1.6, .5, 1), opacity .12s; }
.sticker.peeling { cursor: grabbing; }
.sticker:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sticker-a { left: 108%; top: 18%; }
.sticker-b { left: 5%; top: 66%; --size: clamp(104px, 10.6vw, 164px); }
/* About: a wave hello on the portrait's top corner, a smile at its foot */
.photo-pin { position: relative; }
.sticker-wave { left: 6%; top: 8%; }
.sticker-smile { left: 94%; top: 90%; --size: clamp(76px, 7.4vw, 116px); }
.stk-body, .stk-front, .stk-face, .stk-flap, .stk-back { position: absolute; inset: 0; }
.stk-front { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)) drop-shadow(0 8px 14px rgba(0, 0, 0, .12)); }
.stk-face svg { display: block; width: 100%; height: 100%; }
/* Gloss finish: a soft sheen that follows the pointer */
.stk-gloss {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  -webkit-mask: var(--sil) center / 100% 100% no-repeat; mask: var(--sil) center / 100% 100% no-repeat;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 25%), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 45%),
              linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 50%);
}
.stk-flap { transform-origin: 0 0; opacity: 0; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .28)); pointer-events: none; }
.stk-back { -webkit-mask: var(--sil) center / 100% 100% no-repeat; mask: var(--sil) center / 100% 100% no-repeat; }
.sticker.falling { z-index: 90; cursor: default; opacity: 1; scale: 1; translate: none; rotate: none; pointer-events: none; }

/* Specular glass button (supplied component) */
.specular-button {
  --sb-radius: 18px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0.04;
  --sb-blur: 0px;
  --sb-text-color: #f5f5f5;

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0;
  border: 0;
  border-radius: var(--sb-radius);
  font: inherit;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(var(--sb-blur));
  backdrop-filter: blur(var(--sb-blur));
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.specular-button:active { transform: scale(0.97); }
.specular-button:focus-visible { outline: 2px solid color-mix(in srgb, var(--sb-text-color) 55%, transparent); outline-offset: 3px; }
.specular-button:disabled { opacity: 0.5; cursor: default; }
.specular-button:disabled:active { transform: none; }
.specular-button--md { padding: 14px 28px; font-size: 1rem; }
.specular-button__light {
  position: absolute;
  inset: -24px;
  z-index: 1;
  display: block;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
}
.specular-button__label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: inherit; }
/* The light layer: a rim that catches light plus a highlight that follows the pointer (drawn in main.js) */
.specular-button__light svg { width: 100%; height: 100%; overflow: visible; }

/* "Click here" wears it as dark glass on the light hero, clear glass on the dark one */
.open-btn {
  --sb-radius: 99px;
  --sb-tint: #141414;
  --sb-tint-opacity: 0.86;
  --sb-blur: 14px;
  --sb-text-color: #f5f5f5;
  z-index: 3;
  margin-top: clamp(22px, 3vw, 40px);
  font-family: var(--display); letter-spacing: -.01em;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .open-btn { --sb-tint: #ffffff; --sb-tint-opacity: 0.08; }
  :root:not([data-theme="light"]) .open-btn[aria-expanded="true"] { --sb-tint-opacity: 0.04; }
}
:root[data-theme="dark"] .open-btn { --sb-tint: #ffffff; --sb-tint-opacity: 0.08; }
.open-btn[aria-expanded="true"] { --sb-tint-opacity: 0.6; }
:root[data-theme="dark"] .open-btn[aria-expanded="true"] { --sb-tint-opacity: 0.04; }
.intro:not(.done) .open-btn { opacity: 0; pointer-events: none; }
.intro.done .open-btn { animation: btn-in .5s var(--ease) 1.05s backwards; }
@keyframes btn-in { from { opacity: 0; transform: translateY(10px); } }
.open-arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.open-btn[aria-expanded="true"] .open-arrow { animation: none; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Shelf: one folder per discipline, tucked under a grey ledge like a filing drawer */
.shelf {
  position: relative;
  width: 100%;
  /* Closed: no height, nothing showing. Open: the drawer slides down, then the folders pop. */
  height: 0;
  margin-top: 0;
  clip-path: inset(-100vh -100vw 0 -100vw);
  transition: height .6s var(--ease) .3s, margin-top .6s var(--ease) .3s;
  display: flex; justify-content: center; align-items: flex-end;
}
.shelf.open { height: min(clamp(250px, 25vw, 380px), 38vh); margin-top: clamp(16px, 2.4vw, 36px); transition-delay: 0s; }

/* Gradient glow behind the folders, one pool of colour per discipline */
.glow { position: absolute; inset: 4% -6% -6%; z-index: 0; filter: blur(clamp(40px, 6vw, 90px)); opacity: .62; transition: opacity 1.2s ease .15s; pointer-events: none; }
.intro:has(.shelf.open) .glow { opacity: 1; }
.glow i {
  position: absolute; bottom: 0; left: var(--gx);
  width: 32%; aspect-ratio: .9; border-radius: 50%;
  background: var(--c); opacity: .42;
  animation: pool 11s ease-in-out infinite alternate;
  animation-delay: var(--gd);
}
@keyframes pool { to { translate: 0 -10%; scale: 1.12; } }

.folder {
  --w: clamp(150px, 16vw, 250px);
  position: relative; z-index: var(--z, 1);
  width: var(--w); aspect-ratio: 1.22; flex: none;
  margin: 0 calc(var(--w) * -.015);
  transform: translateY(115%) rotate(calc(var(--r) * .3));
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease) calc(var(--i) * .03s);
  color: var(--ink-f);
}
.shelf.open .folder { transform: translateY(var(--y)) rotate(var(--r)); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .07s + .3s); }
.shelf.settled .folder { transition: transform .5s var(--ease); }
.shelf.open .folder:hover, .shelf.open .folder:focus-visible { transform: translateY(calc(var(--y) - 12%)) rotate(calc(var(--r) * .4)); z-index: 9; outline: none; }
.f-back { position: absolute; inset: 0; background: var(--s); -webkit-mask: var(--folder-back) 0 0 / 100% 100% no-repeat; mask: var(--folder-back) 0 0 / 100% 100% no-repeat; }
.f-paper {
  position: absolute; left: var(--px); width: 58%; top: var(--pt); aspect-ratio: 4 / 3.3;
  padding: 4px; background: #fff; border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  transform: translateY(22%) rotate(var(--pr));
  transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .07s + var(--pk) * .06s + .25s);
}
.f-paper picture { height: 100%; }
.f-paper img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.shelf.open .f-paper { transform: rotate(var(--pr)); }
.shelf.settled .f-paper { transition: transform .5s var(--ease); }
.shelf.open .folder:hover .f-paper, .shelf.open .folder:focus-visible .f-paper { transform: translateY(var(--lift)) rotate(calc(var(--pr) * 1.6)); }
.f-front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 74%;
  /* Frosted glass: the photos inside blur through the front panel */
  -webkit-mask: var(--folder-front) 0 0 / 100% 100% no-repeat; mask: var(--folder-front) 0 0 / 100% 100% no-repeat;
  background:
    var(--folder-edge) 0 0 / 100% 100% no-repeat,
    linear-gradient(165deg, var(--frost), var(--frost-2) 55%, transparent),
    color-mix(in srgb, var(--c) 46%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  color: var(--front-ink, var(--ink-f));
  display: flex; flex-direction: column; justify-content: flex-start; gap: 6px;
  padding: 17% 9% 0;
  text-align: left;
}
.f-name { font: 500 clamp(16px, 1.65vw, 25px)/1.05 var(--display); letter-spacing: -.025em; }
.f-count { font: italic 400 clamp(13px, 1.1vw, 16px)/1.2 var(--serif); opacity: .8; }

/* ---------- Sections ---------- */
.sec { position: relative; scroll-margin-top: var(--bar); }
.sec-head {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: clamp(96px, 14vw, 200px) calc(var(--gut) + var(--pad)) clamp(18px, 2vw, 28px);
}
.sec-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease);
}
.sec-head.in::after { transform: scaleX(1); }
.big {
  margin: 0;
  font-weight: 500;
  font-size: clamp(52px, 6.7vw, 100px);
  line-height: .86;
  letter-spacing: -.055em;
}
.kicker { display: block; font-size: 17px; font-weight: 400; font-style: italic; letter-spacing: 0; color: var(--ink-3); margin-bottom: 10px; opacity: 0; transition: opacity .6s .2s; }
.sec-head.in .kicker { opacity: 1; }
/* Room below the baseline so descenders (the g in designer., the q in sidequests.) aren't clipped */
.mask { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; }
.mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.sec-head.in .mask > span { transform: none; }

/* Filter chips */
.tag { font: 500 10.5px/1.5 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }


@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Featured (also each sidequest) ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0 var(--gut); border-bottom: 1px solid var(--line); }
/* The work plays on a line-drawn iPad that turns as you scroll: outline draws in, screen comes on */
.dev-stage { width: min(92%, 620px); perspective: 1500px; transition: transform .6s var(--ease); }
.feat-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: clamp(380px, 44vw, 680px); padding: clamp(40px, 5vw, 80px) var(--pad) clamp(56px, 6vw, 96px);
  border-right: 1px solid var(--line); overflow: hidden;
}
.feat-media:hover .dev-stage { transform: translateY(-6px); }
.device {
  position: relative; aspect-ratio: 600 / 430;
  transform-style: preserve-3d;
  transform: rotateY(var(--turn, -18deg)) rotateX(var(--tilt, 4deg));
}
.device > * { position: absolute; }
.dev-screen {
  left: 5.667%; top: 7.907%; width: 88.667%; height: 84.186%; border-radius: 1.9% / 2.8%;
  overflow: hidden; background: #0f0f0e;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease) 1.1s;
  transform: translateZ(1px);
}
.dev-screen picture { position: absolute; inset: 0; opacity: 0; }
.dev-screen picture.on { opacity: 1; }
.dev-screen img { width: 100%; height: 100%; object-fit: cover; }
.dev-line { inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.dev-front { transform: translateZ(2px); }
.dev-back { transform: translateZ(-12px); opacity: .45; }
.dev-line * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.6, .1, .3, 1); }
.dev-line .thin { stroke-width: 1.2; transition-delay: .25s; }
.dev-back * { transition-delay: .45s; }
.dev-host.in .dev-line * { stroke-dashoffset: 0; }
.dev-host.in .dev-screen { clip-path: inset(0); }
/* Phone variant: the phone is the main visual, 60% of the row, on a zoomable canvas */
.featured.phone-feature { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.side-sec .sec-head { padding-top: clamp(40px, 5vw, 80px); }
.phone-feature .feat-media { min-height: 0; padding: clamp(20px, 2vw, 32px) var(--pad); }
.phone-feature .feat-body { justify-content: center; }
.phone-feature .feat-title { padding-top: clamp(20px, 2.4vw, 36px); }
.phone-stage { width: clamp(190px, min(17vw, 30vh), 260px); }
/* The canvas: at 100% the phone is taller than the cell; it opens at 60%, where it fits with room around it */
.zoom-canvas { --canvas-h: clamp(440px, 40vw, 640px); height: var(--canvas-h); padding: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.2px); background-size: 22px 22px; }
.zoom-canvas.panning { cursor: grabbing; }
.zoom-pan { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 48px; transform-origin: center; will-change: transform; }
.zoom-pan.smooth { transition: transform .45s var(--ease); }
/* Sized so the cell shows the top 60% of the phone: (cell height - top gap) / .6 tall, at 300:620 */
.zoom-canvas .phone-stage { width: calc((var(--canvas-h) - 48px) / .6 * 300 / 620); flex: none; }
/* No lift on hover here: the canvas is for zooming and panning */
.zoom-canvas:hover .dev-stage { transform: none; }
.zoom-canvas .dev-shadow { display: none; }
.zoom-canvas img { -webkit-user-drag: none; pointer-events: none; }
/* Figma-style zoom pill */
.zoom-ui { position: absolute; left: var(--pad); bottom: 14px; z-index: 2; display: flex; align-items: stretch; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: default; }
.zoom-ui button { min-width: 34px; height: 32px; padding: 0 8px; font: 500 14px/1 var(--display); color: var(--ink); transition: background .2s, color .2s; }
.zoom-ui button + button { border-left: 1px solid var(--line-2); }
.zoom-ui button:hover { background: var(--ink); color: var(--paper); }
.zoom-ui .zoom-val { min-width: 56px; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .04em; }
.device.phone { aspect-ratio: 300 / 620; }
/* Deeper phone: closer perspective, the back pushed further away, and edge slices in between */
.phone-stage { position: relative; perspective: 900px; }
/* The depth layers fade as the phone comes face-on (--k: 1 turned, 0 flat), leaving one clean outline */
.device.phone .dev-back { transform: translateZ(-26px); opacity: calc(.5 * var(--k, 1)); }
.dev-edge { transform: translateZ(var(--z)); opacity: calc(.32 * var(--k, 1)); }
.dev-edge * { stroke-width: 1.6; transition-delay: .35s; }
.dev-shadow { position: absolute; left: 12%; right: 12%; bottom: -6%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(10px); opacity: 0; transition: opacity 1s .8s; pointer-events: none; }
:root[data-theme="light"] .dev-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); }
.dev-host.in .dev-shadow { opacity: 1; }
.phone-screen { left: 5.33%; top: 2.58%; width: 89.33%; height: 94.84%; border-radius: 12.7% / 6.1%; }
.dev-line .island { fill: #0f0f0e; stroke-width: 1.2; }
/* "the" sits on the heading's baseline, small and italic */
.kicker-in { font: italic 400 clamp(18px, 1.7vw, 26px)/1 var(--serif); letter-spacing: 0; color: var(--ink-3); margin-right: .35em; }
.turn-hint { position: absolute; right: var(--pad); bottom: 14px; color: var(--ink-3); font-style: italic; }
.feat-body { display: flex; flex-direction: column; justify-content: flex-end; }
.feat-title { margin: 0; padding: clamp(24px, 3vw, 44px) var(--pad) 12px; font-weight: 500; font-size: clamp(30px, 3.2vw, 50px); line-height: .98; letter-spacing: -.04em; }
.feat-desc { margin: 0; padding: 0 var(--pad) clamp(24px, 3vw, 40px); font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); padding-right: max(var(--pad), 12%); border-bottom: 1px solid var(--line); }
.feat-tags { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; padding: 20px var(--pad); border-bottom: 1px solid var(--line); }
.feat-tags .tag:first-child { color: var(--ink); }
.feat-tags ul { display: flex; flex-direction: column; gap: 4px; }
.feat-more { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); font-size: 20px; border-bottom: 1px solid var(--line); transition: background .25s, color .25s; }
.feat-more:hover { background: var(--ink); color: var(--paper); }
.feat-more span { transition: transform .3s var(--ease); }
.feat-more:hover span { transform: translateX(6px); }
#sideList .featured + .featured { margin-top: 0; }
.head-note { margin: 0; font-size: clamp(16px, 1.4vw, 20px); font-style: italic; color: var(--ink-2); opacity: 0; transition: opacity .6s .3s; }
.sec-head.in .head-note { opacity: 1; }
.page-head .sec-head { padding-top: clamp(72px, 10vw, 150px); }

.sub-head { margin: 0 var(--gut); padding: 40px var(--pad) 12px; font-weight: 400; font-size: 16px; font-style: italic; color: var(--ink-3); border-bottom: 1px solid var(--line); }

/* ---------- The archive: a row of discipline cells over the work grid ---------- */
.tabs-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.5fr); margin: 0 var(--gut); border-bottom: 1px solid var(--line); }
.tabs { display: contents; }
.tab {
  --c: var(--ink);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 18px var(--pad); border-right: 1px solid var(--line); text-align: left;
  color: var(--ink-2); transition: background .3s, color .2s;
}
/* The open discipline gets its colour as a bar along the top of its cell */
.tab::before { content: ''; position: absolute; left: -1px; right: 0; top: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.tab:hover { color: var(--ink); background: var(--hover); }
.tab[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--c) 8%, var(--paper)); }
.tab[aria-selected="true"]::before { transform: scaleX(1); }
.tab-row { display: flex; justify-content: space-between; align-items: center; }
.tab-row i { width: 10px; height: 10px; background: var(--c); }
.tab sup { font: italic 400 13px/1 var(--serif); color: var(--ink-3); }
.tab-name { font: 500 15px/1.15 var(--display); letter-spacing: -.01em; }
.tabs-row .search { padding: 18px var(--pad); border-right: 0; align-self: stretch; }

/* ---------- The work grid: image fills its cell, caption underneath ---------- */
.work { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); margin: 0 var(--gut); }
.card {
  grid-column: span var(--span, 5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: opacity .4s, filter .4s;
}
.card.end { border-right: 0; }
.card.dim { opacity: .14; filter: grayscale(1); pointer-events: none; }
.media {
  position: relative; overflow: hidden;
  height: clamp(300px, 34vw, 540px);
  background: var(--chip);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease);
}
.card.in .media { clip-path: inset(0 0 0 0); }
.media picture { position: absolute; inset: 0; opacity: 0; }
.media picture.on { opacity: 1; }
.media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.6s var(--ease); }
.card.in .media img { transform: scale(1); }
.card.in:hover .media img { transform: scale(1.03); }
.cap { display: flex; flex-direction: column; gap: 10px; padding: 16px var(--pad) 22px; border-top: 1px solid var(--line); }
.cap-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cap-no { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-style: italic; }
.cap-no i { width: 8px; height: 8px; background: var(--c); }
.cap-title { font-weight: 500; font-size: 19px; letter-spacing: -.02em; line-height: 1.15; }
.empty { margin: 0 var(--gut); padding: 48px var(--pad); text-align: center; font-style: italic; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.works-head .sec-head { align-items: flex-end; }

.search { display: flex; align-items: center; gap: 12px; padding: var(--pad); border-right: 1px solid var(--line); color: var(--ink-3); }
.search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 500 10.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; padding: 8px 0; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; }
.search:focus-within { color: var(--ink); }



/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; margin: 0 var(--gut); border-bottom: 1px solid var(--line); }
.cell { padding: var(--pad); border-right: 1px solid var(--line); }
.cell:last-child { border-right: 0; }
.about-text { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.about-text .lead { color: var(--ink); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 22px; }
.about-text p { color: var(--ink-2); max-width: 44ch; margin: 0; font-size: 17px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
/* Clip the image, not the observed box: the observer can't see a fully clipped target. */
.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); }
.reveal.in img { clip-path: inset(0); }
.about-side { display: flex; flex-direction: column; padding: 0; }
.side-block { padding: var(--pad); border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; flex: 1; }
.label { display: block; color: var(--ink-3); margin-bottom: 12px; }
.side-block p { margin: 0; font-size: 17px; line-height: 1.35; }
.tool-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tool-list li:last-child { border-bottom: 0; }

/* ---------- Process: how a project runs, and who it has run for ---------- */
.process-grid { display: grid; grid-template-columns: 8fr 4fr; margin: 0 var(--gut); border-bottom: 1px solid var(--line); }
.process-grid .steps { margin: 0; padding: 0; list-style: none; border-right: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px minmax(0, 14ch) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 22px var(--pad); border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-no { color: var(--ink-3); font-style: italic; }
.step-title { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; max-width: 52ch; }
.clients-cell { display: flex; flex-direction: column; padding: var(--pad); }
.client-list { margin: 0 0 32px; padding: 0; list-style: none; columns: 2; column-gap: 20px; }
.client-list li { padding: 7px 0; break-inside: avoid; font-size: 16px; }
.start { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.start-btn { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--ink); color: var(--paper); font-size: 17px; letter-spacing: -.01em; transition: opacity .2s; }
.start-btn span { transition: transform .3s var(--ease); }
.start-btn:hover span { transform: translateX(6px); }
.start .meta { color: var(--ink-3); overflow-wrap: anywhere; }

/* ---------- Path ---------- */
.rows { margin: 0 var(--gut); }
.row {
  display: grid; grid-template-columns: 5fr 5fr 2fr; gap: 16px; align-items: baseline;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease) calc(var(--i) * .05s), transform .7s var(--ease) calc(var(--i) * .05s), background .2s;
}
.rows.in .row { opacity: 1; transform: none; }
.row:hover { background: var(--hover); }
.row-title { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.01em; }
.row-org { color: var(--ink-2); }
.row-period { justify-self: end; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */

/* ---------- Brands: one ruled row, label cell then the moving logos ---------- */
.brands {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  margin: -1px var(--gut) 0; border: 1px solid var(--line); border-bottom: 0;
}
.brands-label { margin: 0; padding: clamp(32px, 3.6vw, 56px) var(--pad); border-right: 1px solid var(--line); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.05; letter-spacing: -.02em; }
.brands-label .kicker { opacity: 1; margin-bottom: 6px; }
.loop { overflow: hidden; display: flex; align-items: center; min-height: clamp(160px, 14vw, 220px); padding: clamp(32px, 3.6vw, 56px) 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.loop-track { display: flex; width: max-content; will-change: transform; }
.loop-set { display: flex; align-items: center; gap: clamp(64px, 7vw, 112px); padding-right: clamp(64px, 7vw, 112px); }
.logo {
  flex: none; display: block; background: var(--ink); opacity: .78;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: background-color .3s, opacity .3s, transform .4s var(--ease);
}
.logo:hover { background: var(--c); opacity: 1; transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .loop-track { width: auto; } .loop-set { flex-wrap: wrap; justify-content: center; padding: 24px; } .loop-set + .loop-set { display: none; } }

/* ---------- Footer: bello's cells, eemon's folder ---------- */
.site-foot { position: relative; z-index: 1; margin-top: 0; background: var(--foot-bg); color: var(--foot-ink); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; margin: 0 var(--gut); border-left: 1px solid var(--foot-line); border-right: 1px solid var(--foot-line); border-bottom: 1px solid var(--foot-line); }
.foot-cell { padding: clamp(28px, 3vw, 48px) var(--pad); border-right: 1px solid var(--foot-line); display: flex; flex-direction: column; min-height: clamp(260px, 24vw, 360px); }
.foot-cell:last-child { border-right: 0; }
.foot-label { color: var(--foot-ink-2); font-style: italic; margin-bottom: auto; }
.foot-links li a { display: inline-flex; gap: 14px; align-items: center; font: 400 clamp(22px, 2vw, 30px)/1.35 var(--display); letter-spacing: -.02em; }
.foot-links li a span { transition: transform .3s var(--ease); }
.foot-links li a:hover span { transform: translateX(8px); }
.foot-links li a:hover { color: var(--foot-mark); }
.foot-copy { margin: 0; color: var(--foot-ink-2); }
.foot-copy a:hover { color: var(--foot-ink); }
/* A blue folder tucked into its cell, cut by the cell's bottom line like the hero drawer.
   The card clipped inside carries the email. */
.foot-folder-cell { justify-content: flex-end; align-items: center; padding-top: clamp(64px, 6vw, 96px); padding-bottom: 0; overflow: hidden; }
/* Sized by the viewport, and the card inside scales with the folder (container units) */
.foot-folder { container-type: inline-size; position: relative; display: block; width: clamp(220px, 23vw, 340px); aspect-ratio: 1.25; transform: translateY(20%); transition: transform .5s var(--ease); }
/* It sits a fifth below the cell edge, so it peeks out of the footer like the hero folders */
.foot-folder:hover { transform: translateY(12%); }
.ff-back { position: absolute; inset: 0; background: #8f82dc; -webkit-mask: var(--folder-back) 0 0 / 100% 100% no-repeat; mask: var(--folder-back) 0 0 / 100% 100% no-repeat; }
.ff-card {
  position: absolute; left: 9%; right: 9%; top: -14%; bottom: 34%;
  background: #fbfbfa; color: #141414; border-radius: 2.4cqw; padding: 10% 9% 0;
  display: flex; flex-direction: column; gap: 3cqw; text-align: left;
  transform: rotate(-3deg); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: transform .5s var(--ease);
}
.foot-folder:hover .ff-card { transform: rotate(0deg) translateY(-14%); }
.ff-clip { position: absolute; top: -3cqw; left: 50%; width: 8cqw; height: 8cqw; margin-left: -4cqw; border-radius: 2cqw 2cqw 1cqw 1cqw; background: #e9c27a; box-shadow: inset 0 -2cqw 0 #c9a050; }
.ff-hi { font: italic 400 10cqw/1 var(--serif); }
.ff-mail { font: 500 max(10px, 4.6cqw)/1.3 var(--display); overflow-wrap: anywhere; color: #5d5d5a; }
.ff-front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 67%;
  -webkit-mask: var(--folder-front) 0 0 / 100% 100% no-repeat; mask: var(--folder-front) 0 0 / 100% 100% no-repeat;
  background:
    var(--folder-edge) 0 0 / 100% 100% no-repeat,
    linear-gradient(165deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 55%, transparent),
    rgba(196, 184, 246, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
}
.foot-mark {
  font: 500 clamp(70px, 16vw, 270px)/.8 var(--display); letter-spacing: -.065em;
  color: var(--foot-word); white-space: nowrap; text-align: center;
  margin: clamp(12px, 2vw, 28px) 0 -0.12em; user-select: none;
}

/* ---------- Project view: a sheet of cells. Head, the turning iPad, then the story as grid rows ---------- */
.case { --c: var(--ink); position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.case-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  height: var(--bar); padding: 0 calc(var(--gut) + var(--pad));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.cb-step { display: flex; align-items: center; gap: 4px; }
.cb-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 15px; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.cb-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cb-step .meta { padding: 0 10px; }
.case-close { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--line-2); }
.case-close span { font-size: 16px; line-height: 1; }
.case-close:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.case-top, .case-story, .case-nav { margin: 0 var(--gut); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.case-top { margin-top: clamp(24px, 3vw, 44px); border-top: 1px solid var(--line); }
/* The hero, after mijobello's project pages: one colour sheet, a centred kicker, the title set
   huge, the disciplines as outlined chips, and the line-drawn tablet rising from the bottom edge. */
.case-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(56px, 7vw, 112px) var(--pad) 0;
  background: var(--hero-bg); color: var(--hero-ink);
  border-bottom: 1px solid var(--line);
}
/* A faint dot grid in the hero's ink, strongest behind the title and fading out toward the edges */
.case-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--hero-ink) 26%, transparent) 1.1px, transparent 1.4px);
  background-size: 22px 22px; background-position: center top;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
  mask: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
}
.case-hero > * { position: relative; z-index: 1; }
.ch-kicker { font: 500 10.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.case-hero h2 {
  max-width: 14ch; margin: clamp(20px, 2.4vw, 36px) 0 clamp(16px, 1.8vw, 26px);
  font: 500 clamp(48px, 8.4vw, 150px)/.9 var(--display); letter-spacing: -.05em; text-wrap: balance;
}
/* One line on what the project is, right under the title, so the story starts above the fold */
.ch-desc { max-width: 44ch; margin: 0 0 clamp(22px, 2.4vw, 34px); font: 400 clamp(17px, 1.5vw, 22px)/1.4 var(--display); letter-spacing: -.01em; opacity: .85; text-wrap: balance; }
.ch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ch-chips span { padding: 11px 16px 10px; border: 1px solid color-mix(in srgb, var(--hero-ink) 55%, transparent); font: 500 10.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.ch-chips .ch-role { background: var(--hero-ink); color: var(--hero-bg); border-color: var(--hero-ink); }
/* The tablet sits low and runs off the bottom edge, so the sheet feels like it continues */
.case-hero .cs-device { display: flex; justify-content: center; width: 100%; margin: clamp(28px, 3vw, 44px) 0 calc(-1 * clamp(60px, 9vw, 150px)); }
.case-hero .dev-stage { width: min(62%, 860px); }
.case-hero .dev-line { stroke: var(--hero-ink); }
.case-hero .dev-back { opacity: .35; }
/* Under the hero, only when the project has links (Behance, a live site) */
.ct-info { border-bottom: 1px solid var(--line); }
.case-links { display: flex; justify-content: center; gap: 8px; padding: 14px var(--pad); }
.case-links:empty { display: none; }
.case-links a { padding: 10px 14px; border: 1px solid var(--ink); font-size: 14px; }
.case-links a:hover { background: var(--ink); color: var(--paper); }
.case-story > * { border-bottom: 1px solid var(--line); }
/* The story, after eemonroy's case pages. A wide image band, the opening step centred, then the
   pinned run: a rail of steps, image left, calm serif text right, one step per screen of scroll. */
.story-band { margin: 0; }
.sb-media { aspect-ratio: 2 / 1; overflow: hidden; background: var(--chip); }
.sb-media picture, .sb-media img, .sb-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-band figcaption, .sr-cap { display: flex; gap: 12px; align-items: baseline; margin: 0; font-size: 14px; color: var(--ink-2); }
.story-band figcaption { padding: 14px var(--pad); border-top: 1px solid var(--line); }
.story-band .meta, .sr-cap .meta { font-style: italic; }
.story-lead { display: flex; flex-direction: column; align-items: center; padding: clamp(64px, 8vw, 128px) var(--pad); text-align: center; }
.story-lead .sr-body { max-width: 40ch; }
.sr-label { margin: 0 0 10px; font: 500 10.5px/1.5 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.sr-body { margin: 0; font: 300 clamp(17px, 1.3vw, 20px)/1.5 var(--serif); color: var(--ink-2); }
.sr-body + .sr-label { margin-top: 36px; }
.sr-title { margin: 0 0 clamp(28px, 3vw, 52px); font: 500 clamp(18px, 1.4vw, 23px)/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }

.story-run { --stage: calc(100vh - var(--bar)); position: relative; height: calc(var(--n) * 100vh + var(--stage)); }
.sr-pin { position: sticky; top: var(--bar); height: var(--stage); display: flex; flex-direction: column; overflow: hidden; }
.sr-rail { position: relative; flex: none; height: 48px; border-bottom: 1px solid var(--line); overflow: hidden; }
.sr-rail ol { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 64px); height: 100%; margin: 0; padding: 0 var(--pad); list-style: none; }
.sr-rail button { padding: 6px 4px; border: 0; background: none; cursor: pointer; white-space: nowrap; font: 500 10.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); opacity: .55; transition: opacity .3s, color .3s; }
.sr-rail button:hover { opacity: 1; }
.sr-rail button[data-active] { opacity: 1; color: var(--ink); }
.sr-line { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--progress, 0) * 100%); background: var(--line-2); }
.sr-stage { position: relative; flex: 1; }
.sr-item { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); opacity: 0; pointer-events: none; transition: opacity .5s; }
.sr-item[data-active] { opacity: 1; pointer-events: auto; }
.sr-media { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: var(--chip); }
.sr-media picture, .sr-media img, .sr-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr-text { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(48px, 9vh, 120px) var(--pad) 18px; }
.sr-copy { max-width: 38ch; }
/* Each line fades up as you scroll into its step */
.story-run:not(.static) .sr-body, .story-run:not(.static) .sr-label {
  --reveal: clamp(0, calc((var(--step, 0) - var(--i, 0) * .05) / .16), 1);
  opacity: var(--reveal); transform: translateY(calc((1 - var(--reveal)) * 12px));
}
/* Static: one step, reduced motion, or phones. The same steps, stacked */
.story-run.static { height: auto; }
.story-run.static .sr-pin { position: static; height: auto; display: block; }
.story-run.static .sr-rail { display: none; }
.story-run.static .sr-item { position: static; opacity: 1; pointer-events: auto; border-bottom: 1px solid var(--line); }
.story-run.static .sr-item:last-child { border-bottom: 0; }
.story-run.static .sr-media { min-height: clamp(360px, 38vw, 620px); }
.story-run.static .sr-text { padding-top: clamp(48px, 5vw, 88px); gap: 40px; }
.case-nav { display: grid; grid-template-columns: auto 1fr; margin-bottom: clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.case-prev { padding: var(--pad) clamp(20px, 3vw, 48px); border-right: 1px solid var(--line); color: var(--ink-2); }
.case-prev:hover { color: var(--ink); background: var(--hover); }
.case-next { position: relative; display: flex; flex-direction: column; gap: 8px; padding: clamp(28px, 4vw, 56px) var(--pad); transition: background .3s, color .3s; }
.case-next:hover { background: var(--ink); color: var(--paper); }
.case-next .kicker { opacity: 1; margin: 0; }
.cn-title { font-weight: 500; font-size: clamp(32px, 4.4vw, 68px); line-height: .95; letter-spacing: -.045em; padding-right: 80px; }
.cn-arrow { position: absolute; right: var(--pad); bottom: clamp(28px, 4vw, 56px); font-size: clamp(32px, 4vw, 60px); line-height: 1; transition: transform .4s var(--ease); }
.case-next:hover .cn-arrow { transform: translateX(10px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .clock-city { display: none; }
}
@media (max-width: 820px) {
  .bar { grid-template-columns: 1fr auto auto; }
  .clock { display: none; }
  .brand { padding-left: 0; }
  .featured, .featured.phone-feature { grid-template-columns: 1fr; }
  .phone-stage { width: min(56%, 240px); }
  .zoom-canvas { --canvas-h: clamp(420px, 110vw, 560px); border-right: 0; }
  .feat-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-text { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-hero .dev-stage { width: 94%; }
  .case-nav { grid-template-columns: 1fr; }
  .case-prev { border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .tabs-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab { border-bottom: 1px solid var(--line); }
  .tab:nth-child(3n) { border-right: 0; }
  .tabs-row .search { grid-column: 1 / -1; }
  .card { grid-column: span 10; border-right: 0; }
  .media { height: auto; aspect-ratio: 4 / 3.3; }
  .story-run { height: auto; }
  .sr-pin { position: static; height: auto; display: block; }
  .sr-rail { display: none; }
  .sr-item { position: static; opacity: 1; pointer-events: auto; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
  .sr-item:last-child { border-bottom: 0; }
  .sr-media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
  .story-run .sr-body, .story-run .sr-label { opacity: 1 !important; transform: none !important; }
  .sr-text { padding-top: 40px; gap: 32px; }
  .sb-media { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .row-org { grid-column: 1; grid-row: 2; }
  .row-period { grid-row: 1; grid-column: 2; }
}
@media (max-width: 560px) {
  .nav a { padding: 0 7px; }
  .brand { gap: 8px; font-size: 14px; }
  .doodle-loop { left: -14%; width: 128%; }
  .intro { min-height: calc(100svh - var(--bar)); }
  .shelf.open { height: 170px; }
  .sticker { --size: 64px; }
  /* Narrow phones: the brand stays on one line and the theme switch keeps only its icon */
  .brand span { white-space: nowrap; }
  .theme-btn span { display: none; }
  .theme-btn { padding: 0 10px; }
  .sticker-a { left: 90%; top: 10%; }
  .sticker-b { left: 12%; top: 88%; --size: 80px; }
  /* "Multidisciplinary designer" never wraps, so the line sets the size on small phones */
  .hello { font-size: clamp(22px, 6.1vw, 40px); }
  .folder { --w: 19vw; margin: 0 -.3vw; }
  .f-front { padding: 9% 7% 0; }
  .f-name { font-size: 11.5px; }
  .f-count { display: none; }
  .f-paper { padding: 2px; border-radius: 4px; }
  .about-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid .steps { border-right: 0; border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 40px 1fr; }
  .step p { grid-column: 2; }
  .about-photo { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; }
  .brands-label { border-right: 0; border-bottom: 1px solid var(--line); }
  .loop-set { gap: 56px; padding-right: 56px; }
  .loop { min-height: 120px; padding: 24px 0; }
  .foot-folder { width: clamp(200px, 60vw, 280px); }
  .foot-folder-cell { padding-top: 56px; }
  .foot-cell { border-right: 0; border-bottom: 1px solid var(--foot-line); min-height: 0; gap: 18px; }
  .foot-cell:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}
