@font-face { font-family: "Manufacturing Consent"; src: url("./assets/fonts/manufacturing-consent.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("./assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("./assets/fonts/instrument-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("./assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-display: swap; }
/* Deji Sam — redesign. Editorial, cobalt accent with a playful colour set, light + dark. Self-contained, except WAKA WELL's live pilot map (OpenStreetMap/CARTO tiles + OSRM routing). */

:root {
  /* Dark by default: ink-black, warm bone text, one hot red. Light is opt-in from the toggle. */
  --paper: #0b0a09;
  --paper-2: #171513;
  --ink: #f1ebe1;
  --muted: #9a9186;
  --line: #2b2723;
  --accent: #e8432e;
  --on-accent: #0b0a09;
  --box: #e8432e;
  --pin: #f1ebe1;
  --pad: clamp(18px, 4vw, 64px);
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Instrument Serif", "Didot", Georgia, serif;
  --heavy: var(--sans); /* bold Inter, tight */
  --serif: var(--display);
  --mono: var(--sans); /* small labels: Inter, tracked */
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f2ede4; --paper-2: #e7e0d4; --ink: #120f0d; --muted: #6e665c; --line: #d6cec1;
  --accent: #c8281c; --on-accent: #f2ede4; --box: #c8281c; --pin: #120f0d;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.03em; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; border-radius: 0; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono, .eyebrow, .section-num, .case-index, .index-num, .map-detail-label, .nav-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
}
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 20px; background: var(--accent); color: var(--on-accent); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Buttons & links */
.button {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px;
  transition: background-color .25s, transform .25s var(--ease);
}
.button:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.text-link { display: inline-flex; gap: 12px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 15px; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover span { transform: translateX(4px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.brand { font-size: 26px; font-weight: 600; letter-spacing: -.055em; }
.brand span { color: var(--accent); }
.header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; margin-left: auto; }
.header nav a { position: relative; padding: 8px 0; }
.nav-num { color: var(--muted); margin-right: 6px; font-size: 11px; }
.header nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.header nav a:hover::after, .header nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 8px 16px !important; border: 1px solid var(--ink); border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.theme-toggle:hover { background: var(--paper-2); }
.theme-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); transition: transform .4s var(--ease); }
[data-theme="dark"] .theme-dot { transform: rotate(180deg); }
.menu-toggle { display: none; }

/* Hero: a 3D fly-through. Without .has-depth (no JS, reduced motion) it lays out flat. */
.eyebrow { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22b35e; box-shadow: 0 0 0 0 #22b35e80; animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px #22b35e00; } 100% { box-shadow: 0 0 0 0 #22b35e00; } }
.hero-title { font-family: var(--heavy); font-weight: 700; font-size: clamp(64px, 15vw, 260px); line-height: .82; letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; }
.hero-title em { font-family: var(--display); text-transform: none; font-size: 1.04em; letter-spacing: -.02em; margin-left: .1em; }
.title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.title-row .eyebrow { font-size: 11px; letter-spacing: .22em; }
.title-roles { margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.title-roles li:nth-child(even) { color: var(--ink); }
.depth { position: relative; }
.depth-stage { position: relative; padding: 24px var(--pad) 40px; }
.depth-title { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 6vw, 64px); padding: clamp(24px, 5vw, 64px) 0; text-align: center; }
.depth-world { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 10px; }
.depth-world > .depth-title, .depth-world > .depth-end { grid-column: 1 / -1; }
.depth-item { position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.depth-item img { aspect-ratio: 4 / 5; object-fit: cover; }
.depth-item span { position: absolute; left: 10px; bottom: 10px; right: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px #000a; }
.depth-end { display: grid; gap: .1em; text-align: center; padding: clamp(32px, 5vw, 64px) 0 0; line-height: .9; }
.depth-end em { font-family: var(--display); font-size: clamp(40px, 7vw, 120px); color: var(--ink); letter-spacing: -.02em; }
.depth-end .depth-end-tail { color: var(--accent); }
.depth-end strong { font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(48px, 10vw, 170px); text-transform: uppercase; color: var(--accent); }
.depth-hint, .depth-bar { display: none; }

.has-depth .depth { height: 400vh; }
.has-depth .depth-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden;
  perspective: 900px; perspective-origin: 50% 50%;
  background: radial-gradient(120% 80% at 50% 45%, color-mix(in srgb, var(--accent) 16%, var(--paper)) 0%, var(--paper) 62%);
}
.has-depth .depth-world { display: block; position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.has-depth .depth-world > * { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; backface-visibility: hidden; }
.has-depth .depth-title { width: 100vw; height: 100vh; height: 100svh; padding: 56px var(--pad) 84px; }
.has-depth .depth-item { width: clamp(150px, 21vw, 340px); box-shadow: 0 30px 80px -20px #000c; }
.has-depth .depth-item:hover img { transform: scale(1.04); }
.has-depth .depth-item img { transition: transform .6s var(--ease); }
.has-depth .depth-end { width: 94vw; padding: 0; }
.has-depth .depth-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; }
.depth-hint i { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.depth.is-moving .depth-hint { opacity: 0; }
.has-depth .depth-bar { display: block; position: absolute; left: var(--pad); right: var(--pad); bottom: 10px; height: 1px; background: var(--line); }
.depth-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@media (max-width: 680px) {
  .has-depth .depth { height: 340vh; }
  .has-depth .depth-title { padding: 44px var(--pad) 80px; }
  .depth .title-row { gap: 6px 16px; }
  .hero-title { font-size: 19.5vw; }
  .title-row { justify-content: center; letter-spacing: .16em; }
  .title-roles { justify-content: center; gap: 8px 16px; }
  .has-depth .depth-item { width: 44vw; }
  .has-depth .depth-item span { font-size: 9px; }
}

/* ── Opening screen variants (on .depth): a = type poster, b = magazine cover, c = arch portrait ── */
.hero-portrait, .cover-lines { display: none; }
.depth-title { position: relative; }
.eyebrow.eyebrow { display: inline-flex; }
/* The status pill floats: a glassy chip with a top highlight, layered shadow and a slow tilt-and-bob. */
.depth .title-row { perspective: 600px; }
.depth .title-row--center { justify-content: center; }
.depth .title-row .eyebrow {
  gap: 8px; padding: 6px 13px 6px 11px; font-size: 10.5px; letter-spacing: .18em; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 12%, var(--paper)), color-mix(in srgb, var(--paper) 85%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent), 0 1px 2px #0003, 0 10px 24px -8px #0008, 0 22px 40px -22px color-mix(in srgb, var(--accent) 55%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d; animation: pill-float 5s ease-in-out infinite;
}
.depth .title-row .eyebrow .status-dot { width: 7px; height: 7px; }
.depth .title-row .mono { font-size: 9px; letter-spacing: .18em; }
@keyframes pill-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(10deg) rotateY(-6deg); }
  50% { transform: translate3d(0, -5px, 18px) rotateX(-4deg) rotateY(6deg); }
}

/* A — type poster: the name stacked big, roles as a grid */
.hero--a .hero-title { display: grid; justify-items: start; font-size: clamp(84px, 18vw, 300px); line-height: .76; margin: 0 auto; }
.hero--a .hero-title span { letter-spacing: -.01em; }
.hero--a .hero-title em { justify-self: end; margin: -.1em -.02em 0 0; font-size: .82em; transform: rotate(-5deg); }
.hero--a .title-roles { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
@media (max-width: 680px) {
  .hero--a .hero-title { font-size: 34vw; }
  .hero--a .title-roles { grid-template-columns: 1fr 1fr; gap: 10px 16px; text-align: left; }
  .hero--a .title-roles li:nth-child(even) { text-align: right; }
}

/* B — magazine cover: portrait under a masthead, cover lines either side */
.hero--b .depth-title { justify-content: flex-start; overflow: hidden; }
.hero--b .hero-portrait { display: block; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 78%; margin: 0; z-index: 0; }
.hero--b .hero-portrait::before { content: ""; position: absolute; inset: 6% -30% 0; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 50%, transparent), transparent); filter: blur(20px); }
/* Blur-extend: a soft, enlarged copy of the portrait fills the space around the cut-out,
   so the shoulders never end on a hard edge. */
.hero--b .hero-portrait::after { content: ""; position: absolute; inset: 8% -55% 0; z-index: -1; pointer-events: none;
  background: url("./assets/portrait.webp") 50% 100% / auto 118% no-repeat; filter: blur(34px) saturate(1.15); opacity: .7;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 80%, transparent); }
.hero--b .hero-portrait img { height: 100%; width: auto;
  -webkit-mask-image: linear-gradient(#000 82%, transparent), linear-gradient(90deg, transparent 2%, #000 24%, #000 76%, transparent 98%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 82%, transparent), linear-gradient(90deg, transparent 2%, #000 24%, #000 76%, transparent 98%); mask-composite: intersect; }
.hero--b .hero-title { position: relative; z-index: 1; font-size: clamp(72px, 15vw, 260px); line-height: .8; margin-top: clamp(4px, 1vw, 16px); }
.hero--b .hero-title em { mix-blend-mode: normal; }
.hero--b .cover-lines { display: grid; position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 104px; grid-template-columns: 1fr 1fr; gap: 18px 40%; text-align: left; list-style: none; margin: 0; padding: 0; }
.hero--b .cover-lines li:nth-child(even) { text-align: right; }
.cover-lines b { display: block; font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(22px, 2.4vw, 38px); line-height: 1; text-transform: uppercase; }
.cover-lines li { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 10px #0009; }
.cover-lines b { color: var(--accent); }
.hero--b .title-roles { position: absolute; left: var(--pad); right: var(--pad); bottom: 84px; z-index: 2; }
@media (max-width: 680px) {
  .hero--b .hero-title { font-size: 21vw; }
  .hero--b .title-roles { display: none; }
  /* On phones the portrait runs edge to edge instead of sitting in a narrow column. */
  .hero--b .hero-portrait { left: calc(var(--pad) * -1); right: calc(var(--pad) * -1); width: auto; transform: none; height: 66%; }
  .hero--b .hero-portrait { height: 76%; }
  .hero--b .hero-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
  .hero--b .hero-portrait::after { inset: 8% -10% 0; background-size: auto 112%; }
  .hero--b .cover-lines { gap: 14px 18%; bottom: 68px; }
  .cover-lines li { letter-spacing: .1em; }
  .cover-lines b { font-size: 20px; }
  .cover-lines li { font-size: 9px; }
}

/* C — arch portrait: the portrait in a red arch, name alongside */
.hero--c .depth-title { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr auto; gap: 0 clamp(24px, 4vw, 64px); align-items: center; text-align: left; }
.hero--c .title-row { grid-column: 1 / -1; }
.hero--c .hero-portrait { display: block; grid-row: 2; margin: 0; align-self: end; height: min(64svh, 640px); aspect-ratio: 3 / 4; justify-self: center; border-radius: 999px 999px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--paper))); }
.hero--c .hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero--c .hero-title { grid-row: 2; display: grid; font-size: clamp(64px, 11vw, 190px); line-height: .8; align-self: center; }
.hero--c .hero-title em { margin-left: .04em; }
.hero--c .title-roles { grid-column: 1 / -1; }
@media (max-width: 680px) {
  .hero--c .depth-title { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; gap: 18px; text-align: center; }
  .hero--c .hero-portrait { grid-row: 2; height: 46svh; }
  .hero--c .hero-title { grid-row: 3; font-size: 17vw; justify-items: center; display: block; white-space: nowrap; }
  .hero--c .title-roles { flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
}

/* Roll call: four lines that slide against each other as the page scrolls (offset set in app.js),
   kept compact: inside the page margins, low in height, with faded edges. */
.rollcall { padding: 0 var(--pad) 4px; margin-top: clamp(16px, 3vw, 32px); }
.rollcall--top { margin-top: -10px; }
.rollcall { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rollcall img { pointer-events: none; }
.rollcall:not(.rollcall--top) .rc-panel { border-top-color: var(--accent); }
.rc-panel { max-width: 1100px; margin: 0 auto; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--accent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rc-line { padding: 1px 0; line-height: 1; }
.rc-line + .rc-line { border-top: 1px solid var(--line); }
.rc-track { display: flex; align-items: center; gap: clamp(5px, .6vw, 9px); width: max-content; will-change: transform; animation: rc-run 38s linear infinite; }
.rc-line:nth-child(2) .rc-track { animation-duration: 46s; } .rc-line:nth-child(3) .rc-track { animation-duration: 34s; } .rc-line:nth-child(4) .rc-track { animation-duration: 52s; }
.rollcall:hover .rc-track { animation-play-state: paused; }
@keyframes rc-run { to { transform: translate3d(-50%, 0, 0); } }
.rc-word { font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(9px, .75vw, 11.5px); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.rc-outline { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.rc-line:nth-child(2) .rc-word:not(.rc-outline), .rc-line:nth-child(3) .rc-outline { color: var(--accent); -webkit-text-stroke: 0; }
.rc-pill { flex: none; transition: opacity .35s ease, transform .5s var(--ease), border-radius .5s var(--ease); width: clamp(14px, 1.05vw, 18px); height: clamp(7px, .55vw, 10px); object-fit: cover; border-radius: 999px; transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.rc-line:hover .rc-pill { transform: rotate(-4deg) scale(1.08); border-radius: 12px; }
.rc-craft { flex: none; font-family: var(--display); font-style: italic; font-size: clamp(8px, .55vw, 9.5px); line-height: 1; color: var(--muted); white-space: nowrap; }
.rc-star { color: var(--accent); font-size: clamp(7px, .5vw, 9px); }

/* About */
.intro { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.intro-deck + .intro-roots { margin-top: calc(clamp(28px, 4vw, 56px) * -.55); }
/* A swipeable deck of photos of Deji: drag/swipe the top card away (or tap the arrows / use ← →). */
.intro-head { grid-column: 1 / -1; max-width: 920px; }
.intro-roots { max-width: 920px; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.intro-roots em { color: var(--accent); }
.intro-head .section-num { margin-bottom: 12px; }
.intro-head .bio-lead { margin: 0; }
.intro-deck { position: relative; margin: 0; width: 100%; }
.deck { position: relative; width: min(100%, 380px); aspect-ratio: 4 / 5; margin: 0 auto; touch-action: pan-y; cursor: grab; outline-offset: 8px; }
.deck:active { cursor: grabbing; }
.deck-card { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 4px solid var(--ink); box-shadow: 0 24px 50px -24px #000c; user-select: none; -webkit-user-drag: none;
  transition: transform .5s var(--ease), opacity .5s var(--ease); will-change: transform; }
.deck-card.is-dragging { transition: none; }
.deck-tags { margin: 22px 0 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.intro-deck figcaption { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.deck-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; transition: border-color .2s, color .2s; }
.deck-btn:hover { border-color: var(--accent); color: var(--accent); }
.intro-portrait { position: relative; isolation: isolate; }
.intro-portrait::before { content: ""; position: absolute; inset: 18% 6% 0; z-index: -1; border-radius: 50% 50% 0 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); filter: blur(30px); }
.intro-portrait img { max-width: 460px; margin-inline: auto; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.bio { display: grid; gap: 16px; max-width: 64ch; color: var(--muted); font-size: 17px; line-height: 1.6; padding-bottom: clamp(8px, 3vw, 48px); }
.bio .section-num { margin-bottom: 6px; }
.bio-lead { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 8px; }
.bio-points { margin: 4px 0 6px; }
.bio-points div { display: grid; grid-template-columns: 120px 1fr; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.bio-points div:last-child { border-bottom: 1px solid var(--line); }
.bio-points dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 5px; }
.bio-points dd { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.55; }
.bio-points a { border-bottom: 1px solid var(--accent); }
.bio-points a:hover { color: var(--accent); }
@media (max-width: 560px) { .bio-points div { grid-template-columns: 1fr; } .bio-points dt { padding: 0; } .bio-points dd { font-size: 16px; } }
.bio-now { color: var(--ink); font-size: 18px; line-height: 1.55; padding-left: 16px; border-left: 2px solid var(--accent); }
.bio-now a { border-bottom: 1px solid var(--accent); }
.bio-now a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .intro-deck { position: relative; top: 0; }
  .deck { width: min(78%, 320px); }
}

/* Journey: the mikes.cv "flight plan" timeline — narrow centred column, mono labels, a thin route line —
   in the site's own colours (follows the theme; red for the route and "current"). Grouped by role.
   Set in Inter + IBM Plex Mono, the closest free match to mikes.cv's MB Sans / MB Mono. */
.journey { --sans: var(--sans); font-family: var(--sans); padding: clamp(36px, 6vw, 88px) var(--pad); border-top: 1px solid var(--line); }
.journey .leg-text, .journey .leg-proj-text b { font-weight: 500; }
.journey-inner { max-width: 660px; margin: 0 auto; position: relative; }
.journey-head { text-align: center; margin-bottom: 44px; position: relative; }
/* Same face and size as the About heading, and wider than the timeline column below it. */
.journey-head { width: min(920px, calc(100vw - 2 * var(--pad))); position: relative; left: 50%; transform: translateX(-50%); }
.journey-head h2 { font-family: var(--display); font-size: clamp(24px, 2.8vw, 42px); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.journey-head h2 em { color: var(--accent); }
.journey-head p:not(.flight-plan) { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 46ch; margin: 4px auto 0; }
.flight-plan { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 6px; width: 64px; font-family: var(--mono); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.flight-plan svg { width: 15px; height: 15px; fill: var(--accent); }
.legs { position: relative; padding-left: 96px; }
.legs::before { content: ""; position: absolute; left: 32px; top: -18px; bottom: 40px; width: 1px; background: var(--accent); }
.leg { position: relative; padding-bottom: 56px; }
.leg:last-child { padding-bottom: 0; }
.leg-when { position: absolute; left: -170px; top: 1px; width: 100px; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); line-height: 1.3; }
.leg-when span { display: block; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.leg::before { content: ""; position: absolute; left: -70px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.leg.is-current::before { background: var(--accent); }
.leg h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.5; }
.leg-current { margin-left: 8px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); vertical-align: 1px; }
/* "Current" pings like a live recording light; "Building" spins like work in progress. */
.leg-current { display: inline-flex; align-items: center; gap: 6px; }
.leg-current::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: live-ping 1.6s cubic-bezier(.2, .7, .2, 1) infinite; }
.leg-current { animation: live-blink 1.6s steps(1) infinite; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 70%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.leg-current--building { color: #f2b33d; animation: none; }
.leg-current--building::before { width: 8px; height: 8px; background: none; border: 1.5px solid currentColor; border-top-color: transparent; box-shadow: none; animation: build-spin .9s linear infinite; }
@keyframes build-spin { to { transform: rotate(360deg); } }
.leg-text { color: var(--muted); font-size: 16px; line-height: 1.8; letter-spacing: -.01em; margin: 2px 0 14px; }
.leg-project { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; padding: 9px 12px 9px 14px; border-radius: 8px; transition: background-color .25s; }
a.leg-project:hover { background: var(--paper-2); }
.leg-proj-text b { display: block; font-size: 14px; font-weight: 500; }
.leg-proj-text small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.leg-date { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.leg-thumbs { position: relative; height: 44px; }
.leg-thumbs img, .leg-tile { position: absolute; top: 0; width: 32px; height: 42px; object-fit: cover; border-radius: 2.5px; border: 2px solid var(--ink); box-shadow: 0 .85px 5px #0000004d; transition: transform .35s var(--ease); }
.leg-thumbs img:nth-child(1) { left: 0; transform: rotate(-6deg); } .leg-thumbs img:nth-child(2) { left: 10px; transform: rotate(4deg); }
a.leg-project:hover .leg-thumbs img:nth-child(1) { transform: rotate(-12deg) translateX(-3px); } a.leg-project:hover .leg-thumbs img:nth-child(2) { transform: rotate(10deg) translateX(3px); }
.leg-tile { left: 2px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-style: normal; font-size: 20px; transform: rotate(-4deg); }
.landing { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-left: 96px; }
.landing::before { content: ""; position: absolute; left: 28px; top: -8px; border: 4.5px solid transparent; border-top-color: var(--accent); }
.landing b { display: block; font-size: 14px; font-weight: 600; }
.landing small { display: block; font-size: 12.5px; color: var(--muted); }
.landing-photos { display: flex; flex: none; }
.landing-photos img { width: 30px; height: 40px; object-fit: cover; border-radius: 2.5px; border: 2px solid var(--ink); margin-left: -8px; box-shadow: 0 .85px 5px #0000004d; transition: transform .35s var(--ease), margin .35s var(--ease); }
.landing-photos img:nth-child(odd) { transform: rotate(-5deg); } .landing-photos img:nth-child(even) { transform: rotate(6deg) translateY(-3px); }
.landing:hover .landing-photos img { transform: none; margin-left: 2px; }
@media (max-width: 900px) { .leg-when { left: -96px; width: 56px; font-size: 9px; top: 18px; } .leg-when span { display: none; } }
@media (max-width: 560px) {
  .legs, .landing { padding-left: 52px; }
  .legs::before { left: 18px; }
  .leg::before { left: -38px; }
  .leg-when { position: static; width: auto; text-align: left; font-size: 10px; margin-bottom: 2px; }
  .leg-project { grid-template-columns: 50px 1fr; padding-left: 0; }
  .leg-date { grid-column: 2; }
  .landing { flex-direction: column; align-items: flex-start; }
  .landing::before { left: 14px; }
}

/* Section labels ("01 — About", "02 — Work") share one style: Inter, red, small. */
.toggle-label { display: flex; align-items: center; gap: 16px; text-align: left; }
.toggle-num { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.toggle-text b { display: block; font-family: var(--sans); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.toggle-text b em { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--accent); }
.toggle-text small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
@keyframes label-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.journey-head { text-align: left; }
.journey-head p:not(.flight-plan):not(.section-num) { margin: 4px 0 0; }

/* Tap-to-open sections: the label is the button; the body stays closed until it's tapped. */
.section-toggle { border: 0; padding: 0; cursor: pointer; text-align: left; align-items: center; gap: 14px; }
.toggle-sign { position: relative; display: inline-block; flex: none; width: 40px; height: 40px; margin-left: 12px; border-radius: 50%; background: var(--accent); transition: transform .4s var(--ease); }
.toggle-sign::before { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.section-toggle[aria-expanded="true"] .toggle-sign { transform: rotate(180deg); }
.section-body[hidden] { display: none !important; }
.intro > .section-body { display: grid; gap: clamp(28px, 4vw, 56px); }
.intro .bio-lead { max-width: none; margin: 0 0 clamp(14px, 2.4vw, 26px); text-align: justify; text-align-last: left; hyphens: manual; }
.intro .intro-roots { max-width: none; text-align: justify; text-align-last: left; }
.journey-head + .section-body { margin-top: 12px; }
.journey-head--text { margin-bottom: 44px; }
.journey-head:not(.journey-head--text) { margin-bottom: 0; }

/* Closed, About and Work read as two slim accordion rows: label left, sign right, one hairline between. */
.section-toggle { display: flex !important; width: 100%; justify-content: space-between; align-items: center; margin: 0 !important; padding: 18px 20px 18px 18px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--paper-2) 92%, var(--accent)), var(--paper-2)); color: var(--accent); font: inherit;
  border: 1px solid var(--line) !important; border-radius: 20px; box-shadow: 0 14px 30px -22px #000a; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.section-toggle:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)) !important; box-shadow: 0 20px 36px -22px #000c; }
.section-toggle[aria-expanded="true"] { border-color: var(--accent) !important; }
.toggle-label { margin: 0; }
.section-toggle .toggle-sign { margin-left: auto; }
.intro:has(> .section-toggle[aria-expanded="false"]) { padding-block: 14px 6px; }
.journey:has(.section-toggle[aria-expanded="false"]) { padding-block: 6px 14px; border-top: 0; }
.journey:has(.section-toggle[aria-expanded="false"]) .journey-head { margin: 0; }
.intro:has(> .section-toggle[aria-expanded="true"]) { padding-top: 14px; }
.journey:has(.section-toggle[aria-expanded="true"]) { padding-top: 6px; border-top: 0; }
.journey:has(.section-toggle[aria-expanded="true"]) .journey-head:not(.journey-head--text) { margin-bottom: 0; }

/* Cover photo per theme: the cut-out on dark (no light box), the original photo with its own backdrop on light. */
.hero-portrait .for-light { display: none; }
:root[data-theme="light"] .hero-portrait .for-light { display: block; }
:root[data-theme="light"] .hero-portrait .for-dark { display: none; }
@media (max-width: 680px) { .hero--b .hero-portrait img.for-dark { object-position: 50% 100%; } }

/* Client funnel: a floating "Start a project" button once the visitor is past the cover. */
.cta-float { position: fixed; z-index: 60; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
  background: var(--accent); color: #fff; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 70%, #000); transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s, background-color .2s; }
.cta-float.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cta-float:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.cta-float .cta-dot { width: 7px; height: 7px; border-radius: 50%; background: #22b35e; box-shadow: 0 0 0 0 #22b35e80; animation: pulse 2.4s infinite; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: 0 0 clamp(22px, 3vw, 34px); text-align: center; }
.footer-cta p { width: 100%; font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1.1; color: var(--ink); }
.footer-cta p em { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cta-float { transition: opacity .2s; } }

/* Theme switch as a light bulb (ideas): lit in light mode, off in dark. No menu: on phones the header is just the name and the bulb. */
.theme-toggle .bulb { width: 22px; height: 22px; overflow: visible; }
.bulb-glass { fill: none; stroke: var(--ink); stroke-width: 1.6; transition: fill .35s, stroke .35s; }
.bulb-base { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.bulb-rays path { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; fill: none; opacity: 0; transition: opacity .35s; }
:root[data-theme="light"] .bulb-glass { fill: #8a3322; stroke: var(--ink); }
:root[data-theme="light"] .theme-toggle .bulb { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 55%, transparent)); }
:root[data-theme="light"] .bulb-rays path { opacity: 1; }
.theme-toggle:hover .bulb-glass { stroke: var(--accent); }
@media (max-width: 680px) { .header nav { display: none !important; } }

/* 3D chip: the bulb (theme) shares the floating "Portfolio" pill's look. */
.header-tools { perspective: 500px; gap: 10px; }
.chip3d { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 12%, var(--paper)), color-mix(in srgb, var(--paper) 85%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent), 0 1px 2px #0003, 0 10px 22px -10px #0008;
  transition: box-shadow .3s, transform .3s var(--ease); }
.chip3d:active { transform: translateY(1px) scale(.97); }
.chip3d:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent), 0 1px 2px #0003, 0 14px 28px -10px color-mix(in srgb, var(--accent) 55%, #000); }
.theme-toggle.chip3d { width: 40px; padding: 0; }

/* The cover name keeps a slow 3D float; the cover lines stay still. */
.hero--b .hero-title { animation: title-float 7s ease-in-out infinite; }
@keyframes title-float { 0%, 100% { transform: translateY(0) rotateX(4deg); } 50% { transform: translateY(-6px) rotateX(-3deg); } }

/* Project pages: the home page's type and outline — serif title, red labels, rounded media, one red button. */
.page-index { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; }
.page-cover .cover { border-radius: 16px; }
.page-head h2 { font-family: var(--display) !important; font-weight: 400 !important; font-size: clamp(36px, 5.4vw, 72px) !important; line-height: 1.02 !important; letter-spacing: -.01em !important; text-transform: none !important; }
.page-head .page-kind { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.page-content .page-summary { font-family: var(--sans); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; letter-spacing: -.005em; color: var(--ink); max-width: 42ch; }
.facts div dt { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.facts dd { font-family: var(--sans); font-size: 16px; margin: 4px 0 0; }
.study-section h3 { font-family: var(--sans); font-weight: 600; }
.study-section p { font-family: var(--sans); line-height: 1.6; }
.page-gallery--photos img { border-radius: 12px; }
.page-gallery--photos figcaption { font-family: var(--sans); }
.page-foot .page-next small { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.page-foot .page-next strong { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.01em; }

/* Project facts: a compact grid of small cells instead of a tall list. */
.page-body .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 0 18px; align-content: start; }
.page-body .facts div { padding: 10px 0; }
.page-body .facts dd { font-size: 14.5px; line-height: 1.35; }
@media (max-width: 680px) { .page-body .facts { grid-template-columns: 1fr 1fr; } }

/* Project sheet: slides up, solid and readable, swipe the bar down to close. */
.project-page { background: var(--paper); color: var(--ink); overscroll-behavior: contain; scroll-behavior: smooth; }
.project-page::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.page-bar { touch-action: none; cursor: grab; }
.page-content { max-width: 980px; margin: 0 auto; padding: 22px var(--pad) 0; }
.page-content > * { animation: page-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.page-content > :nth-child(2) { animation-delay: .05s; } .page-content > :nth-child(3) { animation-delay: .1s; } .page-content > :nth-child(n+4) { animation-delay: .15s; }
@keyframes page-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-gallery--photos img { opacity: 0; transition: opacity .5s ease; }
.page-gallery--photos img.is-loaded { opacity: 1; }
.page-foot .btn { flex: none; }
@media (max-width: 680px) {
  .project-page { top: 10px; height: calc(100% - 10px); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -20px #000c; }
  .page-bar { border-radius: 22px 22px 0 0; padding-top: 18px; }
  .page-bar::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 30%, transparent); transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .page-content > * { animation: none; } .page-gallery--photos img { opacity: 1; transition: none; } }

/* About and Work sit open, one after the other. */
.flight .intro, .flight .journey { padding-top: clamp(28px, 4vw, 56px) !important; border-top: 0 !important; }

/* Project page, simplified: slim bar (close · count · arrows), one reading column, the site's own type sizes. */
.page-bar { gap: 10px; padding: 10px var(--pad); }
.page-bar .page-index { order: 2; flex: 1; text-align: center; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.page-bar .page-nav { display: contents; }
.page-bar .page-close { order: 1; }
.page-bar .page-step:first-child { order: 3; } .page-bar .page-step + .page-step { order: 4; }
.page-step, .page-close { min-height: 38px; font-family: var(--sans); font-size: 14px; }
.page-content { max-width: 720px; }
.page-cover .cover { aspect-ratio: 4 / 3; }
.page-head { margin: 22px 0 10px; }
.page-head h2 { font-size: clamp(24px, 2.8vw, 42px) !important; line-height: 1.12 !important; }
.page-content .page-summary { font-size: 16px; line-height: 1.65; max-width: 60ch; margin-bottom: 18px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.page-meta li { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans); font-size: 14px; color: var(--ink); }
.page-meta small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.page-links .btn { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.page-sections { margin-top: 10px; }
.page-sections .study-section { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
.page-sections .study-section h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.page-sections .study-section p { font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink); }
.page-gallery--photos { columns: 2; column-gap: 10px; }
.page-foot { gap: 14px; }

/* Project page, results first: big figure tiles, then a swipeable photo reel. */
.page-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 22px; }
.stat { padding: 14px 12px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 85%, var(--accent)); }
.stat b { display: block; font-family: var(--sans); font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.stat span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; color: var(--muted); line-height: 1.3; }
.page-reel { margin: 0 calc(var(--pad) * -1) 22px; }
.reel-head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad) 10px; }
.reel-label, .reel-count { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.reel-count { color: var(--muted); letter-spacing: .06em; }
.reel-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 6px; scroll-padding: 0 var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel-strip::-webkit-scrollbar { display: none; }
.reel-item { flex: 0 0 min(82%, 520px); margin: 0; scroll-snap-align: start; }
.reel-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--paper-2); opacity: 0; transition: opacity .5s ease; }
.reel-item img.is-loaded { opacity: 1; }
.reel-item figcaption { margin-top: 6px; font-family: var(--sans); font-size: 11px; color: var(--muted); }
/* facts as tight pills */
.page-meta { gap: 6px; }
.page-meta li { padding: 5px 10px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .reel-item img { opacity: 1; transition: none; } }

/* "My involvement" card */
.page-role { margin: 0 0 22px; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--paper-2); }
.page-role small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.page-role b { display: block; margin-top: 6px; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); }
.page-role p { margin-top: 6px; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); }

/* Project bar buttons share the site's glossy chip look. */
.page-bar .page-step, .page-bar .page-close { min-height: 36px; min-width: 36px; padding: 0 13px; border-radius: 999px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 12%, var(--paper)), color-mix(in srgb, var(--paper) 85%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent), 0 1px 2px #0003, 0 8px 18px -10px #0008; transition: transform .2s, color .2s; }
.page-bar .page-step:hover, .page-bar .page-close:hover { color: var(--accent); }
.page-bar .page-step:active, .page-bar .page-close:active { transform: scale(.96); }
.page-bar { background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ═══ Project page v3 — cover poster, readable lede, glossy chips, 3D coverflow, next-project card ═══ */
.page-content { max-width: 760px; padding-top: 14px; }
.page-hero { margin: 0 0 26px; perspective: 1000px; }
.hero-tilt { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 72svh; width: 100%;
  box-shadow: 0 30px 60px -28px #000d; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.hero-tilt > img, .hero-tilt > .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  transform: translateY(calc(var(--sy, 0) * .18px)) scale(1.06); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #000000b8 100%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; transform: translateZ(40px); }
.hero-chip { display: inline-flex; max-width: 100%; padding: 6px 12px; border-radius: 999px; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: #ffffff1f; border: 1px solid #ffffff38; box-shadow: inset 0 1px 0 #ffffff40; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-copy h2 { margin-top: 12px; font-family: var(--display) !important; font-weight: 400 !important; font-size: clamp(34px, 6vw, 64px) !important; line-height: 1 !important;
  letter-spacing: -.015em !important; text-transform: none !important; color: #fff; text-shadow: 0 4px 30px #0008; }
.hero-copy h2 em { color: #ff8a73; }
.page-lede { max-width: 34ch; margin: 0 0 20px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.22; color: var(--ink); }
.page-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.page-chips li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; font-family: var(--sans); font-size: 13px; color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 10%, var(--paper)), color-mix(in srgb, var(--paper) 88%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent), 0 8px 18px -12px #0008; }
.page-chips b { font-weight: 700; color: var(--ink); }
.page-reel { margin: 0 calc(var(--pad) * -1) 26px; }
.reel-strip { perspective: 1100px; padding: 6px var(--pad) 14px; gap: 12px; }
.reel-item { flex: 0 0 min(74%, 420px); scroll-snap-align: center; transition: transform .25s ease-out, opacity .25s; transform-style: preserve-3d; }
.reel-item img { border-radius: 18px; box-shadow: 0 22px 40px -24px #000c; }
.reel-head { padding-bottom: 8px; }
.page-sections .study-section { padding: 18px 0; border-top: 1px solid var(--line); }
.page-sections .study-section:first-child { border-top: 0; padding-top: 0; }
.page-meta { margin: 6px 0 14px; }
.page-next-card { position: relative; display: block; width: 100%; height: 180px; margin: 30px 0 16px; padding: 0; border-radius: 22px; overflow: hidden; text-align: left;
  box-shadow: 0 26px 50px -26px #000d; transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.page-next-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.6); transition: transform .8s var(--ease), filter .4s; }
.page-next-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(.7); }
.next-copy { position: absolute; left: 20px; right: 20px; bottom: 18px; transform: translateZ(30px); }
.next-copy small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #ffb7a8; }
.next-copy strong { display: block; margin-top: 4px; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; color: #fff; text-shadow: 0 2px 18px #000a; }
.page-cta { display: flex; justify-content: center; padding: 6px 0 40px; }
@media (prefers-reduced-motion: reduce) { .hero-tilt > img { transform: none; } .reel-item { transition: none; } }

/* Signs of life: green for ongoing work and real traction. */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #b9f5cd; background: #22b35e33; border: 1px solid #22b35e80; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #22e070; box-shadow: 0 0 0 0 #22e07099; animation: live-ping 1.8s cubic-bezier(.2,.7,.2,1) infinite; }
:root[data-theme="light"] .live-pill { color: #12753a; background: #22b35e26; border-color: #22b35e70; }
.page-chips li.is-up { color: #6fe39a; border-color: #22b35e66; background: linear-gradient(180deg, #22b35e2e, #22b35e12); }
.page-chips li.is-up b { color: #22c968; }
:root[data-theme="light"] .page-chips li.is-up { color: #1a8a49; }
:root[data-theme="light"] .page-chips li.is-up b { color: #178a45; }
.page-chips .up { font-style: normal; font-weight: 700; color: #22c968; }
.reel-count::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #22c968; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .live-pill i { animation: none; } }

/* ── Project pages: Cinema — full-bleed photo that fades into the page, then a calm reading column ── */

[data-variant="c"] .page-content { padding-top: 0; }
[data-variant="c"] .page-hero { margin: 0 calc(var(--pad) * -1) 24px; }
[data-variant="c"] .hero-tilt { border-radius: 0 0 28px 28px; aspect-ratio: 9 / 13; max-height: 78svh; box-shadow: none; transform: none !important; }
[data-variant="c"] .hero-shade { background: linear-gradient(180deg, #0000 30%, var(--paper) 100%); }
[data-variant="c"] .hero-copy { text-align: center; padding: 0 22px 28px; }
[data-variant="c"] .hero-chips { justify-content: center; }
[data-variant="c"] .hero-copy h2 { color: var(--ink); text-shadow: 0 2px 30px color-mix(in srgb, var(--paper) 70%, transparent); font-family: var(--display) !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: -.015em !important; font-size: clamp(40px, 10vw, 84px) !important; line-height: .98 !important; }
[data-variant="c"] .hero-copy h2 em { font-family: var(--display); font-style: italic; color: var(--accent); }
[data-variant="c"] .page-lede { font-family: var(--display); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; text-align: center; max-width: 30ch; margin: 4px auto 22px; color: var(--ink); }
[data-variant="c"] .page-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--line); padding: 18px 0; }
[data-variant="c"] .page-chips li { display: grid; justify-items: center; text-align: center; background: none; box-shadow: none; border: 0; border-radius: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 0 4px; }
[data-variant="c"] .page-chips li + li { border-left: 1px solid var(--line); }
[data-variant="c"] .page-chips b { font-size: 24px; letter-spacing: -.03em; text-transform: none; color: var(--ink); }
[data-variant="c"] .reel-item { flex-basis: min(76%, 440px); }
[data-variant="c"] .reel-item img { border-radius: 16px; }

[data-variant="c"] .hero-chip { color: var(--ink); background: color-mix(in srgb, var(--paper) 55%, transparent); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }

/* ═══ Project pages: shown as if open on a foldable phone ═══ */
.project-page[data-variant="fold"] .page-bar { display: none; }
[data-variant="fold"] .page-content { max-width: none; padding: 0 0 110px; }
.fold-status { display: none; }
.fold-top { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(160px, 24vh, 260px); }
.fold-panel { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 20px var(--pad) 18px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); color: #fff; }
.fold-panel h2 { font-family: var(--sans) !important; font-weight: 800 !important; font-size: clamp(30px, 5.4vw, 76px) !important; line-height: .92 !important; letter-spacing: -.045em !important; text-transform: uppercase; color: #fff; }
.fold-kind { font-family: var(--sans); font-size: 12px; color: #ffffffb3; }
.fold-photo { position: relative; overflow: hidden; background: var(--paper-2); }
.fold-photo > img, .fold-photo > .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fold-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px var(--pad) 0; padding-top: 18px; border-top: 1px solid var(--line); }
.fold-meta dt { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fold-meta dd { margin: 5px 0 0; font-family: var(--sans); font-size: clamp(16px, 1.8vw, 24px); line-height: 1.2; color: var(--ink); }
.fold-statement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 4vw, 56px); margin: 30px var(--pad) 24px; }
.fold-lede { font-family: var(--sans); font-weight: 800; font-size: clamp(20px, 2.8vw, 36px); line-height: 1.04; letter-spacing: -.03em; text-transform: uppercase; color: var(--ink); }
.fold-body p { font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink); }
.fold-body p + p { margin-top: 10px; }
[data-variant="fold"] .page-chips { margin: 0 var(--pad) 26px; }
.fold-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 var(--pad) 28px; }
.fold-gallery figure { margin: 0; }
.fold-gallery figure:first-child { grid-column: 1 / -1; }
.fold-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--paper-2); opacity: 0; transition: opacity .5s; }
.fold-gallery figure:first-child img { aspect-ratio: 16 / 9; }
.fold-gallery img.is-loaded { opacity: 1; }
.fold-gallery figcaption { margin-top: 6px; font-family: var(--sans); font-size: 11px; color: var(--muted); }
[data-variant="fold"] .page-sections, [data-variant="fold"] .page-links, [data-variant="fold"] .page-foot { margin-inline: var(--pad); }
.fold-pill { position: sticky; bottom: 18px; z-index: 5; display: flex; width: max-content; max-width: calc(100% - 24px); margin: 10px auto 0; padding: 5px; gap: 2px; border-radius: 999px;
  background: color-mix(in srgb, #1b1715 82%, transparent); border: 1px solid #ffffff22; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 #ffffff24, 0 14px 30px -12px #000c; }
.fold-pill > * { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; }
.fold-pill .is-on { background: #fff; color: #111; }
.fold-pill a { background: var(--accent); color: #fff; }
@media (max-width: 680px) {
  .fold-top { grid-template-columns: 1fr; min-height: 0; }
  .fold-panel { padding: 24px var(--pad) 16px; }
  .fold-photo { aspect-ratio: 4 / 3; }
  .fold-meta dt { font-size: 9.5px; letter-spacing: .12em; }
  .fold-meta dd { font-size: 14px; }
  .fold-statement { grid-template-columns: 1fr; margin-top: 24px; }
  .fold-pill > * { padding: 0 11px; font-size: 13px; }
}
@media (min-width: 900px) {
  .project-page[data-variant="fold"] { display: grid !important; place-items: center; padding: 26px; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--accent) 18%, var(--paper-2)), var(--paper-2)); }
  [data-variant="fold"] .page-content { position: relative; width: min(1180px, 100%); height: calc(100svh - 52px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 46px; border: 14px solid #111; outline: 2px solid #3a3633; box-shadow: 0 40px 90px -30px #000c; background: var(--paper); scrollbar-width: none; }
  [data-variant="fold"] .page-content::-webkit-scrollbar { display: none; }
  .fold-status { position: absolute; z-index: 4; top: 14px; left: 26px; right: 26px; display: flex; justify-content: space-between; font-family: var(--sans); font-size: 13px; font-weight: 600; color: #fff; pointer-events: none; }
  .fold-panel { padding-top: 40px; }
}
/* ═══ end project pages ═══ */

/* 3D fly-through photos: original look, simplified — soft corners, one clean caption on the photo. */
.has-depth .depth-item { border-radius: 10px; }
.has-depth .depth-item::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0009); pointer-events: none; }
.has-depth .depth-item span { z-index: 1; left: 12px; right: 12px; bottom: 12px; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px #000c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The contact block is an inverted slab in both themes. */
.contact { --accent: var(--box); }

/* Marquee */

/* Sections */
.section { padding: clamp(32px, 4.5vw, 64px) var(--pad); }
.section-heading { display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: 20px; margin-bottom: clamp(16px, 2.2vw, 28px); }
.section-num { color: var(--accent); }
.section-heading h2 { font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(52px, 8vw, 140px); line-height: .88; text-transform: uppercase; }
.section-aside { color: var(--muted); font-size: 15px; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.2vw, 28px) clamp(14px, 1.6vw, 22px); margin-bottom: clamp(28px, 3.5vw, 48px); }
.span-12 { grid-column: span 12; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; }
.work-card { display: block; }
.cover { position: relative; overflow: hidden; isolation: isolate; border-radius: 2px; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: clamp(16px, 2vw, 28px); }
.span-12 .cover { aspect-ratio: 16 / 6; }
.span-4 .cover { aspect-ratio: 1; }
.span-6 .cover { aspect-ratio: 3 / 2; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .9s var(--ease); }
.cover::before { content: ""; position: absolute; inset: -10%; z-index: -1; transition: transform 1.2s var(--ease); }
.work-card:hover .cover::before { transform: scale(1.08) rotate(2deg); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #0008); opacity: 0; transition: opacity .5s var(--ease); }
.work-card:hover .cover img { transform: scale(1.05); }
.work-card:hover .cover::after { opacity: 1; }
.cover-word { font-size: clamp(40px, 6.4vw, 110px); font-weight: 600; line-height: .84; letter-spacing: -.065em; transition: transform .6s var(--ease); }
.span-4 .cover-word { font-size: clamp(36px, 4.4vw, 76px); }
.work-card:hover .cover-word { transform: translateY(-6px); }
.cover-chip {
  position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink);
  font-family: var(--mono); font-size: 11px; backdrop-filter: blur(8px);
}
.cover--green { background: #1d6b47; color: #f3f2ec; }
.cover--green::before { background: repeating-linear-gradient(90deg, transparent 0 38px, #ffffff17 38px 40px), repeating-linear-gradient(0deg, transparent 0 38px, #ffffff17 38px 40px); }
.cover--accent { background: var(--accent); color: #fff; }
.cover--accent::before { background: repeating-radial-gradient(circle at 80% 20%, transparent 0 22px, #ffffff24 22px 24px); }
.cover--orange { background: #ff5b1f; color: #161614; }
.cover--orange::before { background: radial-gradient(circle at 22% 28%, #161614 0 7%, transparent 7.4%), radial-gradient(circle at 72% 20%, #f3f2ec 0 12%, transparent 12.4%), radial-gradient(circle at 84% 62%, var(--accent) 0 6%, transparent 6.4%), radial-gradient(circle at 44% 52%, #ffd23f 0 4%, transparent 4.4%), radial-gradient(circle at 60% 36%, #161614 0 2%, transparent 2.4%), radial-gradient(circle at 12% 70%, #f3f2ec 0 3%, transparent 3.4%); }
.cover--ink { background: #161614; color: #f3f2ec; box-shadow: inset 0 0 0 1px var(--line); }
.cover--ink::before { background: repeating-linear-gradient(135deg, transparent 0 16px, #ffffff12 16px 17px), linear-gradient(90deg, transparent 70%, var(--accent) 70%); }
.cover--yellow { background: #f2c230; color: #161614; }
.cover--yellow::before { background: repeating-conic-gradient(from 0deg at 75% 30%, #16161414 0 10deg, transparent 10deg 20deg); }
.cover--accentprint { background: var(--paper-2); color: var(--accent); }
.cover--accentprint::before { background: repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--accent) 18%, transparent) 23px 24px), repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--accent) 18%, transparent) 23px 24px); }
.work-meta { display: grid; grid-template-columns: 50px 1fr auto; align-items: baseline; gap: 4px 12px; padding-top: 16px; }
.work-num { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.work-meta h3 { font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(24px, 2.4vw, 38px); line-height: 1; text-transform: uppercase; transition: color .2s; }
.work-kind { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.work-open { grid-column: 3; grid-row: 1; font-size: 14px; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); }
.work-card:hover h3 { color: var(--accent); }
.work-card:hover .work-open, .work-card:focus-visible .work-open { opacity: 1; transform: none; }
.badge { display: inline-block; vertical-align: middle; margin-left: 12px; padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0; line-height: 1; color: var(--accent); }
.index-row:hover .badge { color: inherit; }

/* WAKA WELL demo (only inside its project page): a live Leaflet map for the Yaba, Lagos pilot */
.waka-demo { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; margin: 8px 0 20px; }
.waka-stage { position: relative; overflow: hidden; border-radius: 4px; min-height: 420px; background: var(--paper-2); }
.waka-leaflet { position: absolute; inset: 0; width: 100%; height: 100%; }
.waka-leaflet .leaflet-control-attribution { font-family: var(--mono); font-size: 10px; }
.waka-pin { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--pin); border: 2px solid var(--paper); box-shadow: 0 1px 4px #0004; }
.map-panel { width: 100%; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.waka-search { display: block; width: 100%; min-height: 42px; padding: 0 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; }
.waka-search:focus-visible { border-color: var(--accent); }
.waka-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.waka-cats button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; transition: border-color .2s, color .2s, background-color .2s; }
.waka-cats button:hover { border-color: var(--accent); color: var(--accent); }
.waka-cats button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.map-detail { padding-top: 18px; min-height: 124px; }
.map-detail-label { color: var(--muted); }
.map-detail-title { font-size: 21px; line-height: 1.2; letter-spacing: -.03em; margin: 6px 0; }
.map-detail-copy { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.waka-directions[hidden] { display: none; }

/* Services */

/* Index list */
.index-label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.index-row {
  display: grid; grid-template-columns: 80px 1fr auto 40px; align-items: center; gap: 20px; width: 100%;
  padding: 26px 0; border-top: 1px solid var(--line); text-align: left; position: relative; isolation: isolate;
}
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--accent); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.index-row:hover, .index-row:focus-visible { color: var(--on-accent); }
.index-row:hover::before, .index-row:focus-visible::before { transform: scaleY(1); }
.index-row:hover .index-num, .index-row:hover .index-tags { color: inherit; }
.index-num { color: var(--accent); }
.index-title { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.045em; line-height: 1.1; }
.index-tags { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.index-arrow { font-size: 26px; text-align: right; transition: transform .3s var(--ease); }
.index-row:hover .index-arrow { transform: translateX(-6px); }

/* About */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 20px clamp(24px, 4vw, 64px); }
.about-lead { grid-column: 2 / 4; font-size: clamp(21px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.035em; max-width: 30ch; }
.about-foot { grid-column: 2 / 4; margin-top: clamp(16px, 2vw, 24px); padding-top: 16px; border-top: 1px solid var(--line); }
.about-foot p { font-size: 17px; color: var(--muted); max-width: 60ch; }

/* Experiments */

/* Contact */
.contact { background: var(--ink); color: var(--paper); --on-accent: var(--paper); padding: clamp(48px, 7vw, 110px) var(--pad); }
.contact .section-num { color: color-mix(in srgb, var(--on-accent) 70%, transparent); margin-bottom: 20px; }
.contact h2 { font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(56px, 10vw, 180px); line-height: .88; text-transform: uppercase; }
.contact h2 em { font-family: var(--display); text-transform: none; font-size: 1.05em; letter-spacing: -.02em; }
.contact h2 em { color: var(--accent); }
.contact-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(20px, 3vw, 40px); }
.contact-head .section-num { margin: 0; }
.contact-status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.contact-lede { max-width: 52ch; margin: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 56px); font-size: 17px; line-height: 1.55; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.channels { border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.channel {
  position: relative; isolation: isolate; display: flex; align-items: baseline; gap: 18px;
  padding: clamp(16px, 2vw, 26px) 0; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  transition: color .35s var(--ease), padding .45s var(--ease);
}
.channel::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--accent); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.channel:hover, .channel:focus-visible { color: #fff; padding-left: 14px; }
.channel:hover::before, .channel:focus-visible::before { clip-path: inset(0 0 0 0); }
.channel-num { font-family: var(--mono); font-size: 12px; color: var(--accent); transition: color .35s; min-width: 32px; }
.channel:hover .channel-num { color: #fff; }
.channel-name { font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(40px, 6.4vw, 104px); line-height: .9; text-transform: uppercase; }
.channel-arrow { font-size: clamp(22px, 2.4vw, 40px); line-height: 1; transition: transform .45s var(--ease); }
.channel:hover .channel-arrow { transform: translate(4px, -4px); }
/* The address / handle is always shown, so every contact is readable as well as tappable. */
.channel-handle { margin-left: auto; font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 30px); white-space: nowrap; }

.footer { padding: clamp(28px, 4vw, 56px) var(--pad) 0; font-size: 13px; color: var(--muted); overflow: hidden; }
.footer-mark { display: block; position: relative; font-family: "Manufacturing Consent", "Old English Text MT", serif; font-weight: 400; font-size: 22vw; line-height: .9; color: var(--ink); white-space: nowrap; text-align: center; margin: clamp(20px, 3vw, 40px) 0 0; user-select: none; letter-spacing: -.01em; transition: color .4s; }
.footer-mark em { font-family: inherit; font-style: normal; color: var(--accent); -webkit-text-stroke: 0; }
.footer-mark:hover { color: var(--accent); }
.footer-mark-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff; -webkit-text-stroke: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; opacity: 0; transition: opacity .35s, transform .35s var(--ease); }
.footer-mark:hover .footer-mark-cta, .footer-mark:focus-visible .footer-mark-cta { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .footer-mark-cta { opacity: 1; transform: translate(-50%, -50%); font-size: 11px; padding: 9px 14px; } }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent); }
.disciplines { display: flex; flex-wrap: wrap; gap: 8px; }
.disciplines li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }
.bio-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; }
.bio-links .text-link { color: var(--ink); }
.footer-tags { justify-content: center; margin: 0 auto clamp(18px, 2.4vw, 28px); max-width: 760px; }
.footer-tags li { font-size: 12px; padding: 6px 12px; color: var(--muted); }
.footer-mark + .footer-row { margin-top: clamp(14px, 2vw, 24px); padding-bottom: 22px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent); }

/* Dialog base */
dialog { width: min(820px, calc(100% - 24px)); max-height: 90svh; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); padding: 0; overscroll-behavior: contain; }
dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } }
dialog::backdrop { background: #0009; backdrop-filter: blur(4px); }
.button--small { min-height: 36px; padding: 0 14px; font-size: 13px; margin-top: 12px; }
.button:disabled, .button[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* Project pages: a full-screen dialog that expands out of its card */
.project-page { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; inset: 0; border-radius: 0; overflow-y: auto; }
.project-page[open] { animation: none; }
.project-page::backdrop { background: transparent; backdrop-filter: none; }
.page-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--pad); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.page-index { color: var(--muted); }
.page-nav { display: flex; gap: 8px; }
.page-step, .page-close { min-height: 40px; min-width: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; transition: border-color .2s, color .2s; }
.page-step:hover, .page-close:hover { border-color: var(--accent); color: var(--accent); }
.page-content { padding: 20px var(--pad) 0; }
.page-cover .cover { aspect-ratio: 16 / 6; }
.page-cover .cover-word { font-size: clamp(56px, 11vw, 190px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: clamp(18px, 2.5vw, 32px) 0 clamp(14px, 2vw, 24px); }
.page-head h2 { font-family: var(--heavy); font-weight: 700; letter-spacing: -.035em; font-size: clamp(52px, 9vw, 150px); line-height: .88; text-transform: uppercase; }
#page-title:focus { outline: none; }
.page-kind { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.page-summary { font-size: clamp(20px, 2vw, 30px); line-height: 1.25; letter-spacing: -.03em; max-width: 36ch; margin-bottom: clamp(20px, 3vw, 36px); }
.page-body { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 64px); }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.facts dd { font-size: 16px; }
.facts a { border-bottom: 1px solid currentColor; }
.facts a:hover { color: var(--accent); }
.study-section { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 170px 1fr; gap: 22px; }
.study-section h3 { font-size: 15px; }
.study-section p { color: var(--muted); }
.project-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; padding: 14px 16px; background: var(--paper-2); border-radius: 6px; }
.page-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(20px, 3vw, 36px); }
.page-gallery .slot { aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; padding: 12px; }
.page-gallery--photos { display: block; columns: 3; column-gap: 12px; }
.page-gallery--photos img { margin-bottom: 12px; border-radius: 4px; break-inside: avoid; background: var(--paper-2); }
.page-gallery--photos figure { margin: 0 0 12px; break-inside: avoid; }
.page-gallery--photos figure img { margin-bottom: 6px; }
.page-gallery--photos figcaption { font-family: var(--mono); font-size: 11px; line-height: 1.45; color: var(--muted); }
.page-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(24px, 3.5vw, 44px); padding: 20px 0 28px; border-top: 1px solid var(--line); }
.page-next { display: flex; flex-direction: column; text-align: left; }
.page-next small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.page-next strong { font-size: clamp(28px, 4.2vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.06em; transition: color .2s; }
.page-next:hover strong { color: var(--accent); }


/* Film grain over everything (decorative, never blocks input). */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Work cards tip up out of the floor as they scroll in (where the browser supports scroll-driven animation). */
@supports (animation-timeline: view()) {
  .js .reveal { opacity: 1; transform: none; transition: none; animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .js .work-grid { perspective: 1400px; }
  .js .work-card.reveal { opacity: 1; transform: none; transition: none; animation: card-in linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; transform-origin: 50% 100%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: rotateX(28deg) translateY(90px) scale(.9); } to { opacity: 1; transform: none; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1000px) {
  .header nav { gap: 20px; }
  .nav-num { display: none; }
  .span-4 { grid-column: span 6; }
  .work-grid > .wide-md { grid-column: span 12; }
  .work-grid > .wide-md .cover { aspect-ratio: 16 / 8; }
  .waka-demo, .page-body { grid-template-columns: 1fr; }
  .waka-stage { min-height: 380px; }
  .section-heading, .index-row { grid-template-columns: 60px 1fr auto; }
  .index-row { grid-template-columns: 60px 1fr 40px; }
  .index-tags { display: none; }
  .about-grid { grid-template-columns: 60px 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
/* Phone */
@media (max-width: 680px) {
  .header { padding-block: 12px; }
  .brand { font-size: 23px; }
  .header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 24px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 30px; letter-spacing: -.045em;
  }
  .header nav.is-open { display: flex; animation: dialog-in .3s var(--ease); }
  .header nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .header nav a::after { display: none; }
  .nav-num { display: inline; font-size: 12px; vertical-align: .6em; margin-right: 10px; }
  .nav-cta { border: 0 !important; border-radius: 0; padding: 10px 0 !important; color: var(--accent); }
  .nav-cta:hover { background: none; color: var(--accent); }
  .menu-toggle { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 14px; }
  .menu-icon { display: grid; gap: 6px; width: 22px; }
  .menu-icon i { display: block; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .no-js .header { flex-wrap: wrap; }
  .no-js .header nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px; padding: 0; border: 0; background: none; font-size: 14px; }
  .no-js .header nav a { border: 0; }
  .no-js .menu-toggle { display: none; }


  .section-heading { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .section-num { grid-column: 1 / -1; }
  .section-aside { font-size: 13px; grid-column: 1 / -1; }
  /* Two columns on phones, like the earlier dejisam.pages.dev grid. */
  .work-grid { gap: 18px 10px; }
  .span-6, .span-4 { grid-column: span 6; }
  .span-12, .work-grid > .wide-md { grid-column: span 12; }
  .span-6 .cover, .span-4 .cover { aspect-ratio: 4 / 5; padding: 10px; }
  .span-12 .cover, .work-grid > .wide-md .cover { aspect-ratio: 3 / 2; }
  .span-6 .cover-chip, .span-4 .cover-chip { display: none; }
  .work-meta { grid-template-columns: 1fr; padding-top: 8px; gap: 2px; }
  .work-num, .work-open { display: none; }
  .work-kind { grid-column: 1; font-size: 11px; }
  .work-meta h3 { font-size: 17px; letter-spacing: -.03em; }
  .badge { margin-left: 0; margin-top: 6px; display: table; }
  .waka-stage { min-height: 300px; }
  .map-panel { padding: 12px; }
  .index-row { grid-template-columns: 36px 1fr 28px; gap: 12px; padding: 20px 0; }
  .index-title { font-size: 23px; }
  .index-row { grid-template-columns: 36px 1fr 28px; gap: 12px; padding: 20px 0; }
  .index-title { font-size: 23px; }

  .about-grid { display: block; }
  .about-lead { font-size: 25px; }


  .contact h2 { font-size: clamp(52px, 17vw, 90px); }
  .channel { gap: 12px; }
  .channel-num { display: none; }
  .channel { flex-wrap: wrap; }
  .channel-arrow { margin-left: auto; }
  .channel-handle { order: 3; flex-basis: 100%; margin: 4px 0 0; font-size: 19px; white-space: normal; overflow-wrap: anywhere; }

  .page-cover .cover { aspect-ratio: 4 / 3.3; }
  .page-gallery { grid-template-columns: 1fr 1fr; }
  .page-gallery:not(.page-gallery--photos) > :last-child { display: none; }
  .page-gallery--photos { columns: 2; column-gap: 8px; }
  .page-gallery--photos img, .page-gallery--photos figure { margin-bottom: 8px; }
  .study-section { grid-template-columns: 1fr; gap: 8px; }
  .page-bar { padding-block: 10px; }
  .page-step { padding: 0 12px; }
  .footer-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal, .js .work-card.reveal { animation: none; }
  .hero--b .hero-title { animation: none; }
  .leg-current, .leg-current::before { animation: none; }
  .toggle-label { animation: none; }
  .toggle-sign::before, .toggle-sign::after { transition: none; }
  .depth .title-row .eyebrow { animation: none; }
  .rc-track { animation: none; }

}
.project-page { overflow-x: hidden; }
.page-content { min-width: 0; overflow-wrap: anywhere; }
.page-chips li, .page-chips b { min-width: 0; }
[data-variant="c"] .page-chips b { font-size: clamp(18px, 5vw, 26px); }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .reel-item img, .still .page-gallery--photos img { opacity: 1 !important; }
