@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); }

.mono, .eyebrow, .section-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
}

/* 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); }

/* Responsive images: <picture> only picks the file; the <img> inside is laid out as if it stood alone. */
picture { display: contents; }

/* Mice cursor trail (mice.js runs with injectStyle: false, so its rules live here for the strict CSP). */
.mice-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mice-item { position: absolute; pointer-events: none; user-select: none; transform-origin: 50%; will-change: transform; }
.mice-item svg, .mice-item img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* 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; }

.header nav a:hover::after, .header nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.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); }

/* 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: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.title-row .eyebrow { font-size: 12px; letter-spacing: .22em; }

.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: 12px; 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 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: 12px; 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; }
  
  .has-depth .depth-item { width: 44vw; }
  .has-depth .depth-item span { font-size: 12px; }
}

/* ── 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: 12px; 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: 12px; 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 */

/* 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/responsive/portrait-480.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: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 10px #0009; }
.cover-lines b { color: var(--accent); }

@media (max-width: 680px) {
  .hero--b .hero-title { font-size: 21vw; }
  
  /* 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%; }
  /* The title box runs ~65px (the header) past the screen; keep 16px plus the home-indicator inset clear below the lines. */
  .hero--b .cover-lines { gap: 14px 18%; bottom: 68px; }
  /* Text only: tighter rows, set as low as the screen allows (the title box runs ~65px past the bottom edge). */
  .has-depth .hero--b .cover-lines { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); row-gap: 6px; }
  .has-depth .hero--b .cover-lines b { font-size: 18px; }
  /* Flat hero (no JS / reduced motion): the box is only as tall as its content, so the lines follow the title instead of overlapping it. */
  :root:not(.has-depth) .hero--b .cover-lines { position: relative; inset: auto; margin: 24px 0 0; }
  .cover-lines li { letter-spacing: .1em; }
  .cover-lines b { font-size: 20px; }
  .cover-lines li { font-size: 12px; }
}

/* C — arch portrait: the portrait in a red arch, name alongside */

/* 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-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-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; }

.intro-deck figcaption { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); }

.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; }

@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: 12px; 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::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 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: 12px; 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; } }

@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-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 > :nth-child(1) img { left: 0; transform: rotate(-6deg); } .leg-thumbs > :nth-child(2) img { left: 10px; transform: rotate(4deg); }
a.leg-project:hover .leg-thumbs > :nth-child(1) img { transform: rotate(-12deg) translateX(-3px); } a.leg-project:hover .leg-thumbs > :nth-child(2) img { 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); }

 

@media (max-width: 560px) {
  .legs { padding-left: 52px; }
  .legs::before { left: 18px; }
  .leg::before { left: -38px; }
  
  .leg-project { grid-template-columns: 50px 1fr; padding-left: 0; }
  
  
  
}

/* Section labels ("01 — About", "02 — Work") share one style: Inter, red, small. */

@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-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. */

/* Cover photo per theme: the cut-out on dark (no light box), the original photo with its own backdrop on light. */

/* 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); }

/* 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; }

.facts div dt { font-family: var(--sans); font-size: 12px; 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-foot .page-next small { font-family: var(--sans); font-size: 12px; 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. */

/* 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-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; }  }

/* 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-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: 12px; 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-foot { gap: 14px; }

/* Project page, results first: big figure tiles, then a swipeable photo reel. */

/* facts as tight pills */

/* "My involvement" card */

/* 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-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-sections .study-section { padding: 18px 0; border-top: 1px solid var(--line); }
.page-sections .study-section:first-child { border-top: 0; padding-top: 0; }

/* Signs of life: green for ongoing work and real traction. */

.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; }

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

/* ═══ 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: 12px; 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: 12px; 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: 12px; 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; }
}
/* Project navigation: on tablet/desktop the pill floats over a scrim at the end of the flow and never sits on the copy
   once a block is scrolled into view; on phones it gives way to the sticky page bar (← · Close · →). */
[data-variant="fold"] .page-content { padding-bottom: 0; }
.fold-dock { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: center; margin-top: 10px;
  padding: 44px 12px max(12px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 60%); pointer-events: none; }
.fold-dock .fold-pill { position: static; margin: 0; pointer-events: auto; }
.project-page[data-variant="fold"], [data-variant="fold"] .page-content { scroll-padding-bottom: 120px; }
@media (max-width: 680px) {
  .fold-dock { display: none; }
  .project-page[data-variant="fold"] .page-bar { display: flex; }
  .project-page[data-variant="fold"] { scroll-padding: 76px 0 0; }
  .page-bar .page-index { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-variant="fold"] .page-content { padding-bottom: 48px; }
  .page-bar .page-step, .page-bar .page-close { min-height: 44px; min-width: 44px; }
}

/* About: what a client can hire Deji for — six service cards, each pointing to proof. */
.services { padding-block: clamp(28px, 4vw, 56px); }
.offer { max-width: 1000px; margin: 0 auto; text-align: left; }
.offer-title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

 .offer .offer-title { margin-block: 0; }

.footer-cta .footer-note { flex: 1 0 100%; margin: -2px 0 8px; padding-inline: max(0px, calc(50% - 23em)); font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--muted); }

/* No-JS project list */
.noscript-work h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 64px); margin-bottom: 12px; }
.noscript-work ul { list-style: none; margin: 18px 0; padding: 0; }
.noscript-work li a { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.noscript-work small { color: var(--muted); }
.noscript-work p a { text-decoration: underline; }

/* Share: a small confirmation that floats above the project page. */
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(84px, calc(env(safe-area-inset-bottom) + 72px)); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 14px; font-weight: 500; overflow-wrap: anywhere;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.page-bar .page-share { order: 5; }
.page-bar .page-share { min-height: 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)); }
@media (max-width: 680px) { .page-bar .page-share { min-height: 44px; } }

/* 404 page */
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 24px; }
/* Work timeline: sub-headings inside a role, and entries without a page. */
.leg-sub { margin: 16px 0 2px 14px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.leg-project--plain { cursor: default; }
.leg-project--plain:hover { background: none; }
@media (max-width: 680px) { .leg-sub { margin-left: 0; } }

/* Work: the timeline line stays; dates are gone, so each role leads with its heading. */
.journey-inner { max-width: 760px; }
.leg h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
.leg::before { top: 14px; }
.leg .leg-text { margin: 6px 0 12px; font-size: 15px; line-height: 1.6; }
.leg-project { grid-template-columns: 58px 1fr; }
@media (max-width: 680px) { .leg-project { grid-template-columns: 50px 1fr; } }

/* Status badges: a soft pill with a dot that breathes out a ring. */
.leg-current { animation: none; gap: 6px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11px; letter-spacing: .12em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.leg-current::before { width: 6px; height: 6px; animation: badge-ring 2.2s cubic-bezier(.2, .7, .2, 1) infinite; }
.leg-current--building { color: #d9a21b; background: #d9a21b1f; border-color: #d9a21b59; }
:root[data-theme="light"] .leg-current--building { color: #9a6a00; }
@media (prefers-reduced-motion: reduce) { .leg-current::before { animation: none; } }
@keyframes badge-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* What I do: a row of small pop-out tiles that slides sideways (swipe, trackpad or the arrows). */
.do-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.do-nav { display: flex; gap: 6px; }
.do-step { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 15px; transition: border-color .2s, color .2s, opacity .2s; }
.do-step:hover { border-color: var(--accent); color: var(--accent); }
.do-step:disabled { opacity: .35; cursor: default; }
.do-grid { list-style: none; display: flex; gap: 14px; margin: 6px calc(var(--pad) * -1) 0; padding: 18px var(--pad) 26px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); }
.do-grid::-webkit-scrollbar { display: none; }
.do-grid:focus-visible { outline-offset: -4px; }
.do-tile { position: relative; flex: 0 0 clamp(150px, 15vw, 180px); scroll-snap-align: start; display: grid; align-content: start; gap: 5px; }
/* Cover template: every service is a mini magazine cover — number, mark, photo, title across a dark fade. */
.do-cover { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 6px; overflow: hidden; border-radius: 6px; border: 3px solid var(--ink); background: var(--paper-2);
  box-shadow: 0 1px 6px #0000004d, 0 20px 30px -20px #000; transform: rotate(-2deg); transition: transform .45s var(--ease); }
.do-tile:nth-child(even) .do-cover { transform: rotate(2deg); }
.do-tile:hover .do-cover { transform: rotate(0deg) translateY(-4px) scale(1.02); }
.do-cover::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #000d); pointer-events: none; }
.do-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.do-photo--top { object-position: 50% 9%; }
.do-num, .do-mark { position: absolute; z-index: 1; top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 6px #000a; }
.do-num { left: 9px; }
.do-mark { right: 8px; padding: 3px 6px; border-radius: 4px; background: var(--accent); font-size: 11px; letter-spacing: .06em; text-shadow: none; }
.do-name { position: absolute; z-index: 1; left: 9px; right: 9px; bottom: 9px; font-family: var(--heavy); font-weight: 700; font-size: 16px; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; color: #fff; }
.do-line { font-family: var(--display); font-style: italic; font-size: 16px; line-height: 1.2; color: var(--ink); }
.do-more { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.do-more::after { content: ""; position: absolute; inset: 0; }
.do-tile:hover .do-more { color: var(--accent); }
@media (max-width: 680px) { .do-tile { flex-basis: 38vw; } .do-name { font-size: 14px; } .do-line { font-size: 15px; } .do-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .do-cover { transition: none; } }

/* Project layouts by kind of work: same title type everywhere, the header colour and layout change. Headers stay compact. */
.fold-top { min-height: clamp(130px, 18vh, 200px); }
.fold-panel { padding-top: 16px; padding-bottom: 14px; gap: 6px; }
.fold-panel h2 { font-size: clamp(28px, 4.4vw, 60px) !important; }
@media (min-width: 900px) { .fold-panel { padding-top: 34px; } }
@media (max-width: 680px) { .fold-panel { padding: 16px var(--pad) 12px; } .fold-photo { aspect-ratio: 16 / 10; } }
/* Creative Designer — studio: ink panel, serif title, a tighter gallery. */
[data-cat="design"] .fold-panel { background: linear-gradient(135deg, #17130f, #2e2722); color: #f1ebe1; }
[data-cat="design"] .fold-kind { color: #f1ebe1aa; }
@media (min-width: 681px) { [data-cat="design"] .fold-gallery:not(.fold-gallery--screens) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
/* Appearances — cinema: one wide still, title over it, the headline as a quote. */
[data-cat="appearance"] .fold-top { position: relative; grid-template-columns: 1fr; min-height: clamp(200px, 34vh, 340px); }
[data-cat="appearance"] .fold-photo { position: absolute; inset: 0; }
[data-cat="appearance"] .fold-panel { position: relative; z-index: 1; justify-content: flex-end; background: linear-gradient(180deg, transparent 20%, #000000b3 60%, #000e); }
@media (max-width: 680px) { [data-cat="appearance"] .fold-top { min-height: 56vw; } [data-cat="appearance"] .fold-photo { aspect-ratio: auto; } }
/* Building — product: a deep green live panel and a map-pin icon. */
[data-cat="building"] .fold-panel { background: linear-gradient(135deg, #0f5132, #072a1b); }

/* Green "online" badge on project pages, like a status light. */
.fold-live { display: inline-flex; align-items: center; gap: 7px; width: max-content; margin-top: 6px; padding: 4px 11px 4px 9px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #fff; background: #0000002e; border: 1px solid #ffffff33; }
.fold-live i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px #30d158; animation: live-dot 2s ease-out infinite; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 #30d158aa, 0 0 8px #30d158; } 70%, 100% { box-shadow: 0 0 0 8px #30d15800, 0 0 8px #30d158; } }
@media (prefers-reduced-motion: reduce) { .fold-live i { animation: none; } }

/* App and website screenshots: show the whole screen instead of cropping it to a photo frame. */
.fold-gallery--screens img { aspect-ratio: 390 / 844; object-position: 50% 0; }
.fold-gallery--screens figure:first-child img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .fold-gallery--screens { grid-template-columns: repeat(3, 1fr); } }
/* ═══ 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: 12px; 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. */

/* Marquee */

/* Sections */
.section { padding: clamp(32px, 4.5vw, 64px) var(--pad); }

.section-num { color: var(--accent); }

/* Work grid */

  

.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); }

.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); }

.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #0008); opacity: 0; transition: opacity .5s var(--ease); }

.cover-word { font-size: clamp(40px, 6.4vw, 110px); font-weight: 600; line-height: .84; letter-spacing: -.065em; transition: transform .6s var(--ease); }

.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: 12px; 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); }

/* WAKA WELL demo (only inside its project page): a live Leaflet map for the Yaba, Lagos pilot */

/* Services */

/* Index list */

/* About */

/* Experiments */

/* Contact */

/* The address / handle is always shown, so every contact is readable as well as tappable. */

.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-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); }

.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-tags .tags-break { flex-basis: 100%; height: 0; padding: 0; border: 0; }
@media (max-width: 680px) { .footer-tags .tags-break { display: none; } }
.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: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-title:focus { outline: none; }

.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; 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-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%; }
  
  
}
@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; }
  
  
  
  
  
  
  
  
  
  
  
}
/* Tablets: the roles and brands sit lower, under the shoulders. */
@media (min-width: 681px) and (max-width: 1100px) { .has-depth .hero--b .cover-lines { bottom: 80px; } }
/* Flat hero (Reduce Motion on, or no JavaScript): the same look as the 3D cover, laid out in order —
   label, name over the portrait, roles and brands underneath, then the project photos with one-line captions. */
:root:not(.has-depth) .hero--b .depth-title { gap: 0; padding-bottom: 8px; }
:root:not(.has-depth) .hero--b .title-row { order: 1; }
:root:not(.has-depth) .hero--b .hero-title { order: 2; position: relative; z-index: 1; }
:root:not(.has-depth) .hero--b .hero-portrait { order: 3; position: relative; left: auto; right: auto; bottom: auto; transform: none; width: min(100%, 460px); height: auto; margin: clamp(-56px, -6vw, -24px) auto 0; }
:root:not(.has-depth) .hero--b .hero-portrait img { width: 100%; height: auto; }
:root:not(.has-depth) .hero--b .cover-lines { order: 4; position: relative; inset: auto; margin: 18px 0 0; gap: 14px 18%; }
:root:not(.has-depth) .depth-item::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #000c); pointer-events: none; }
:root:not(.has-depth) .depth-item span { z-index: 1; font-family: var(--sans); font-weight: 600; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrow phones: brand, Work with me and the bulb share one row. */
@media (max-width: 360px) { .header { gap: 10px; } .header-tools { gap: 6px; } }
/* Phone */
@media (max-width: 680px) {
  .header { padding-block: 12px; }
  .brand { font-size: 23px; }
  .header nav { gap: 0; }
  
  .brand { white-space: nowrap; }

  
  .section-num { grid-column: 1 / -1; }
  
  /* Two columns on phones, like the earlier dejisam.pages.dev grid. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  

  
  
  
  
  
  

  
  
  
  
  
  .study-section { grid-template-columns: 1fr; gap: 8px; }
  .page-bar { padding-block: 10px; }
  .page-step { padding: 0 12px; }
  
}

@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 { animation: none; }
  .hero--b .hero-title { animation: none; }
  .leg-current, .leg-current::before { animation: 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; }

.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }


/* Project pages at /work/<id>/ (static, indexable; made by tools/make-work-pages.cjs) */
.wp { max-width: 1100px; margin: 0 auto; padding: 32px var(--pad) 56px; }
.wp-crumbs { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wp-crumbs a:hover, .wp-foot a:hover, .wp-all a:hover { color: var(--accent); }
.wp-kind { margin: 28px 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.wp-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 9vw, 112px); line-height: .95; letter-spacing: -.01em; }
.wp-lede { max-width: 38ch; margin: 18px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.wp-cover { margin: 36px 0 0; }
.wp-cover img, .wp-gallery img { display: block; width: 100%; height: auto; border-radius: 6px; }
.wp-cover img { max-height: 78vh; object-fit: cover; }
.wp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 28px; margin: 32px 0 12px; padding: 20px 0; border-block: 1px solid var(--line); }
.wp-facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wp-facts dd { margin: 4px 0 0; }
.wp-facts a { text-decoration: underline; text-underline-offset: 3px; }
.wp-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.wp-section h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.wp-section p { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.6; }
.wp-note { color: var(--muted); font-style: italic; }
.wp-gallery { columns: 2 260px; column-gap: 14px; margin: 36px 0 0; }
.wp-gallery figure { margin: 0 0 14px; break-inside: avoid; }
.wp-more { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 48px 0 0; }
.wp-more a { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); }
.wp-more a:last-child { text-align: right; }
.wp-more a:hover { border-color: var(--accent); }
.wp-more small { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wp-all { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.wp-foot { padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.wp-foot p { margin: 4px 0; }
@media (max-width: 680px) {
  .wp { padding-top: 20px; }
  .wp-section { grid-template-columns: 1fr; }
  .wp-actions .btn { flex: 1 1 auto; justify-content: center; }
}
