/* ==========================================================================
   Emmanuel Chibueze — portfolio
   One stylesheet. Tokens first, then layout, then components.
   Radius lives in the --r-* tokens: change them here to change every corner.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken";
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken";
  src: url("../fonts/hanken-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken";
  src: url("../fonts/hanken-latin-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
/* AṢỌ wordmark only: the game's own typeface (Fraunces, OFL, see fraunces-OFL.txt).
   Bricolage and Hanken have no Ṣ or Ọ, so the name is set in this instead. */
@font-face {
  font-family: "Aso Wordmark";
  src: url("../fonts/fraunces-600-latin.woff2") format("woff2");
  font-weight: 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Aso Wordmark";
  src: url("../fonts/fraunces-600-latin-ext.woff2") format("woff2");
  font-weight: 600; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Aso Wordmark";
  src: url("../fonts/fraunces-600-vietnamese.woff2") format("woff2");
  font-weight: 600; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ---------- Tokens ---------- */
:root {
  /* colour: cool chalk paper, graphite ink, danfo yellow for interaction only */
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #E8EAEE;
  --ink: #15171C;
  --ink-2: #505661;
  --ink-3: #7E848E;
  --line: rgba(21, 23, 28, .13);
  --line-2: rgba(21, 23, 28, .07);
  --accent: #FFC21A;
  --on-accent: #15171C;
  --scrim: rgba(12, 13, 16, .95);
  --shadow-media: 0 1px 2px rgba(21, 23, 28, .08), 0 18px 40px -18px rgba(21, 23, 28, .35);
  --shadow-lift: 0 2px 4px rgba(21, 23, 28, .06), 0 28px 56px -22px rgba(21, 23, 28, .38);

  /* radius: varies by hierarchy */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* layout: one column edge for everything */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 72px;

  /* type */
  --font-display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: .8125rem;   /* 13 */
  --step-0: 1rem;        /* 16 */
  --step-1: 1.125rem;    /* 18 */
  --step-2: 1.375rem;    /* 22 */
  --step-3: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-4: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  --step-5: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 640ms;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #131519;
  --surface: #1C1F24;
  --surface-2: #262A31;
  --ink: #EEF0F2;
  --ink-2: #A9AFB8;
  --ink-3: #7B828C;
  --line: rgba(238, 240, 242, .14);
  --line-2: rgba(238, 240, 242, .07);
  --shadow-media: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 56px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131519;
    --surface: #1C1F24;
    --surface-2: #262A31;
    --ink: #EEF0F2;
    --ink-2: #A9AFB8;
    --ink-3: #7B828C;
    --line: rgba(238, 240, 242, .14);
    --line-2: rgba(238, 240, 242, .07);
    --shadow-media: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 56px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* project palettes: each case study carries its own gradient */
.g-mova {
  --grad: radial-gradient(85% 120% at 10% 0%, #C7F36B 0%, rgba(199, 243, 107, 0) 60%),
          radial-gradient(75% 90% at 100% 100%, rgba(255, 138, 91, .6) 0%, rgba(255, 138, 91, 0) 62%),
          linear-gradient(160deg, #F7F3EA, #EFE9DA);
  --tint: #8FBF2E;
}
.g-akinia {
  --grad: radial-gradient(75% 95% at 90% 5%, rgba(232, 163, 61, .62) 0%, rgba(232, 163, 61, 0) 60%),
          radial-gradient(60% 70% at 0% 100%, rgba(232, 163, 61, .18) 0%, rgba(232, 163, 61, 0) 70%),
          linear-gradient(160deg, #1D1E22 0%, #131316 60%, #221B12 100%);
  --tint: #E8A33D;
}
.g-verdant {
  --grad: radial-gradient(80% 100% at 88% 0%, rgba(79, 191, 90, .6) 0%, rgba(79, 191, 90, 0) 62%),
          radial-gradient(60% 70% at 0% 100%, rgba(79, 191, 90, .16) 0%, rgba(79, 191, 90, 0) 70%),
          linear-gradient(165deg, #111812 0%, #0B0F0C 55%, #132A17 100%);
  --tint: #4FBF5A;
}
.g-uba {
  --grad: radial-gradient(85% 110% at 8% 0%, #E5484D 0%, rgba(229, 72, 77, 0) 62%),
          radial-gradient(70% 80% at 100% 100%, rgba(255, 237, 227, .95) 0%, rgba(255, 237, 227, 0) 70%),
          linear-gradient(160deg, #F2705C 0%, #FFCDB6 70%, #FFE8DC 100%);
  --tint: #E5484D;
}
.g-thirtys {
  --grad: radial-gradient(85% 110% at 92% 0%, rgba(255, 244, 236, .95) 0%, rgba(255, 244, 236, 0) 58%),
          linear-gradient(155deg, #4E3629 0%, #875A43 55%, #E5C1A8 100%);
  --tint: #A06B4F;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
img, video, iframe, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* page-to-page transitions (supported browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-new(root) { z-index: 2; }

/* reading progress (case studies) */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  pointer-events: none;
}

/* ---------- Text links ---------- */
.link {
  position: relative;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1) ease;
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }
.link-ext { display: inline-flex; align-items: center; gap: 6px; }
.link-ext svg { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease-out); }
.link-ext:hover svg { transform: translate(2px, -2px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .9375rem; letter-spacing: -.005em;
  transition: transform var(--dur-1) ease, background-color var(--dur-2) ease, color var(--dur-2) ease, box-shadow var(--dur-2) ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-line { border: 1px solid var(--line); }
.btn-line:hover { background: var(--surface); }
.btn svg { width: 16px; height: 16px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  transition: background-color var(--dur-2) ease, transform var(--dur-1) ease;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }

/* theme toggle: sun and moon swap with a turn */
.theme-toggle .i-sun, .theme-toggle .i-moon {
  grid-area: 1 / 1;
  transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-2) ease;
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}
.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-2);
}
.site-nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 650; font-size: 1.25rem; letter-spacing: -.02em;
  display: inline-flex; align-items: baseline;
}
.wordmark .dot {
  width: .32em; height: .32em; border-radius: 50%;
  background: var(--accent); margin-left: .08em;
  display: inline-block; transform-origin: center;
  transition: transform var(--dur-3) var(--ease-spring);
}
.wordmark:hover .dot { transform: scale(1.6); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .9375rem; }
.nav-links a { color: var(--ink-2); transition: color var(--dur-1) ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-actions .btn-ink { display: none; }
}

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  padding: calc(var(--nav-h) + 16px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 8px;
  clip-path: circle(0 at calc(100% - 44px) 36px);
  visibility: hidden;
  transition: clip-path 520ms var(--ease-out), visibility 0s linear 520ms;
}
.sheet.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path 620ms var(--ease-out); }
.sheet a:not(.btn) {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2;
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out);
}
.sheet.is-open a:not(.btn) { opacity: 1; transform: none; }
.sheet.is-open a:nth-child(2) { transition-delay: 60ms; }
.sheet.is-open a:nth-child(3) { transition-delay: 120ms; }
.sheet.is-open a:nth-child(4) { transition-delay: 180ms; }
.sheet .sheet-close { position: absolute; top: 16px; right: var(--gutter); }
.sheet .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 7vh, 80px)); padding-bottom: clamp(40px, 8vh, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "tabs tabs" "copy deck";
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: clamp(28px, 5vh, 48px);
  align-items: center;
}
.tabs {
  grid-area: tabs;
  display: flex; gap: 6px 26px; flex-wrap: wrap;
  font-size: .9375rem;
}
.tab {
  position: relative; padding: 6px 0 10px;
  color: var(--ink-3);
  transition: color var(--dur-2) ease;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--line);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab .bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
}
.tab[aria-selected="true"] .bar { transform: scaleX(1); }
.hero.is-auto .tab[aria-selected="true"] .bar { animation: tab-fill var(--tab-dur, 7s) linear forwards; }
.hero.is-paused .tab[aria-selected="true"] .bar { animation-play-state: paused; }
@keyframes tab-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-copy { grid-area: copy; min-width: 0; }
.statements { display: grid; }
.statement {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.statement[hidden] { display: block; visibility: hidden; }
.statement .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.statement .w > span { display: inline-block; transform: translateY(0); }
.statement.is-in .w > span { animation: word-in 780ms var(--ease-out) both; animation-delay: calc(var(--i) * 34ms); }
@keyframes word-in { from { transform: translateY(105%); } to { transform: translateY(0); } }

.hero-meta {
  margin-top: clamp(24px, 4vh, 40px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  color: var(--ink-2); font-size: .9375rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

/* photo deck */
.deck {
  grid-area: deck;
  position: relative;
  width: clamp(210px, 25vw, 330px);
  aspect-ratio: 4 / 5;
  margin-right: clamp(0px, 2vw, 24px);
  perspective: 900px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.deck-card {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-media);
  transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--rot, 0deg)) scale(var(--s, 1));
  transition: transform 720ms var(--ease-spring), opacity var(--dur-2) ease, filter var(--dur-2) ease;
  will-change: transform;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card[data-depth="0"] { z-index: 6; --rot: -2.5deg; }
.deck-card[data-depth="1"] { z-index: 5; --x: 9%; --y: 3%; --rot: 5deg; --s: .95; filter: brightness(.94); }
.deck-card[data-depth="2"] { z-index: 4; --x: -10%; --y: 5%; --rot: -8deg; --s: .9; filter: brightness(.88); }
.deck-card[data-depth="3"], .deck-card[data-depth="4"], .deck-card[data-depth="5"] { z-index: 1; --s: .85; opacity: 0; }
.deck:hover .deck-card[data-depth="1"] { --x: 20%; --y: 1%; --rot: 9deg; }
.deck:hover .deck-card[data-depth="2"] { --x: -21%; --y: 4%; --rot: -12deg; }
.deck-card[data-depth="0"] { transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--rot)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(var(--s, 1)); }
.deck-hint {
  position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%);
  font-size: .8125rem; color: var(--ink-3); white-space: nowrap;
  opacity: 0; transition: opacity var(--dur-2) ease;
}
.deck:hover .deck-hint, .deck:focus-visible .deck-hint { opacity: 1; }

.scroll-cue {
  margin-top: clamp(40px, 8vh, 80px);
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-3); font-size: .875rem;
}
.scroll-cue .line { width: 1px; height: 36px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--ink); animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip { to { top: 110%; } }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "deck" "tabs" "copy"; }
  .deck { width: min(62vw, 250px); margin: 8px 0 12px 12px; }
  .deck-hint { display: none; }
  .tabs { gap: 4px 18px; }
}

/* ---------- Section headings ---------- */
.section { padding-block: clamp(56px, 10vh, 120px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vh, 56px); max-width: 60ch; }
.section-title {
  font-family: var(--font-display);
  font-size: var(--step-4); font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
}
.section-lede { color: var(--ink-2); font-size: var(--step-1); }

/* ---------- Work list ---------- */
.work { padding-top: 16px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vh, 88px) clamp(20px, 3vw, 36px);
}
.project { display: block; grid-column: span 1; }
.project.is-featured { grid-column: 1 / -1; }
.project-media {
  position: relative; overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  background: var(--grad);
  background-size: 140% 140%;
  background-position: 0% 0%;
  transition: background-position 1.4s var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
  isolation: isolate;
}
.project.is-featured .project-media { aspect-ratio: 16 / 8.4; }
.project:hover .project-media { background-position: 100% 100%; }
.shot {
  position: absolute;
  border-radius: 10px;
  box-shadow: var(--shadow-media);
  transition: transform 900ms var(--ease-out);
  background: #0f1012;
}
.shot--desk { left: 9%; top: 11%; width: 108%; }
.shot--video { left: 50%; top: 10%; width: 78%; transform: translateX(-50%); border-radius: 14px; }
.project.is-featured .shot--video { width: 70%; top: 9%; }
.shot--phone { left: 50%; top: 9%; height: 112%; width: auto; transform: translateX(-50%); background: none; box-shadow: none; filter: drop-shadow(0 22px 30px rgba(60, 10, 10, .28)); border-radius: 0; }
.project:hover .shot--desk { transform: translate(-2.4%, -3%); }
.project:hover .shot--video { transform: translate(-50%, -3%) scale(1.015); }
.project:hover .shot--phone { transform: translate(-50%, -4%); }
.project-copy { margin-top: 20px; display: grid; gap: 12px; }
.project-name {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: .9375rem; color: var(--ink-2);
}
.project-name b { color: var(--ink); font-weight: 650; }
.project-line {
  font-family: var(--font-display);
  font-size: var(--step-3); font-weight: 520; letter-spacing: -.022em; line-height: 1.2;
  max-width: 34ch; text-wrap: pretty;
}
.project.is-featured .project-line { max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tags li {
  font-size: var(--step--1); color: var(--ink-2);
  padding: 4px 11px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.project:hover .tags li { background: var(--surface); color: var(--ink); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .project.is-featured .project-media { aspect-ratio: 5 / 4; }
  .project.is-featured .shot--video { width: 88%; top: 16%; }
}

/* cursor label that follows the pointer over projects */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: .875rem; white-space: nowrap;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-50%, -50%) scale(var(--cs, 0));
  transition: transform 260ms var(--ease-out);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- UI IRL ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.shots button {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1; border-radius: var(--r-md);
  background: var(--surface-2);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.shots button:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shots button:hover img { transform: scale(1.045); }
.shots button:active { transform: translateY(-1px) scale(.99); }
.shots .zoom-badge {
  position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: #15171C;
  opacity: 0; transform: scale(.6);
  transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-spring);
}
.shots .zoom-badge svg { width: 16px; height: 16px; }
.shots button:hover .zoom-badge, .shots button:focus-visible .zoom-badge { opacity: 1; transform: none; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Play: AṢỌ ---------- */
.aso-name { font-family: "Aso Wordmark", Georgia, serif; font-weight: 600; letter-spacing: .04em; }
.g-aso {
  --grad: radial-gradient(80% 95% at 92% 0%, rgba(194, 154, 82, .55) 0%, rgba(194, 154, 82, 0) 60%),
          radial-gradient(75% 85% at 0% 100%, rgba(36, 59, 99, .5) 0%, rgba(36, 59, 99, 0) 65%),
          linear-gradient(160deg, #F7F2E8 0%, #EEE5D4 100%);
  --tint: #243B63;
}
.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.play-stage {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
  border-radius: var(--r-lg);
  background: var(--grad); background-size: 140% 140%; background-position: 0% 0%;
  transition: background-position 1.4s var(--ease-out);
}
.play-stage:hover { background-position: 100% 100%; }
.play-stage::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.play-device {
  position: relative; z-index: 1;
  height: clamp(480px, 72vh, 740px); aspect-ratio: 9 / 19.5; max-width: 100%;
  padding: 8px; border-radius: 42px;
  background: #15171C;
  box-shadow: var(--shadow-lift), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.play-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #F7F2E8; }
.play-screen > img, .play-screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.play-screen > img { object-fit: cover; object-position: center top; transition: opacity var(--dur-3) var(--ease-out), transform 900ms var(--ease-out); }
.play-screen > iframe { opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.play-stage:hover .play-screen > img { transform: scale(1.02); }
.play-start {
  position: absolute; inset: 8px; z-index: 2;
  border-radius: 34px;
  display: grid; place-items: end center; padding-bottom: 20%;
  background: linear-gradient(to top, rgba(21, 23, 28, .5), rgba(21, 23, 28, 0) 55%);
  transition: opacity var(--dur-3) var(--ease-out);
}
.play-start .pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px 0 20px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55);
  transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2) ease;
}
.play-start .pill svg { width: 16px; height: 16px; }
.play-start:hover .pill { transform: scale(1.06); }
.play-start:active .pill { transform: scale(.96); }
.play-start:focus-visible { outline: none; }
.play-start:focus-visible .pill { box-shadow: 0 0 0 3px #15171C, 0 0 0 6px var(--accent); }
.play-start[disabled] { cursor: progress; }
.play-device.is-loaded .play-screen > iframe { opacity: 1; }
.play-device.is-loaded .play-screen > img,
.play-device.is-loaded .play-start { opacity: 0; pointer-events: none; }
.play-copy { display: grid; gap: 18px; align-content: center; }
.play-copy .project-line { max-width: 30ch; }
.play-steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.play-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center;
  color: var(--ink-2);
}
.play-steps li::before {
  content: counter(step);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.play-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 760px) {
  .play-grid { grid-template-columns: 1fr; }
  .play-device { height: min(64vh, 540px); }
  .play-start { padding-bottom: 16%; }
}

/* Full-screen player for phones and tablets */
.play-dialog {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #F7F2E8; overflow: hidden;
}
.play-dialog::backdrop { background: rgba(12, 13, 16, .94); }
.play-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pd-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(6px + env(safe-area-inset-top)) 10px 6px 20px;
  background: #15171C; color: #F7F2E8;
}
.pd-top .aso-name { font-size: 1.125rem; }
.pd-top .lb-btn { width: 44px; height: 44px; }
.pd-frame { position: relative; }
.pd-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(12, 13, 16, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); gap: 16px; }
.lb-count { font-size: .875rem; opacity: .7; font-variant-numeric: tabular-nums; }
.lb-caption { font-size: .9375rem; opacity: .8; max-width: 60ch; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(56px, 8vw, 110px); }
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-sm);
  animation: lb-in 420ms var(--ease-out);
}
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background-color var(--dur-2) ease, transform var(--dur-1) ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn:active { transform: scale(.92); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.92); }
@media (max-width: 600px) { .lb-prev, .lb-next { display: none; } .lb-stage { padding: 0 12px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg);
  font-size: .9375rem; font-weight: 550;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 520ms var(--ease-spring), opacity var(--dur-2) ease;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.toast .tick svg { width: 13px; height: 13px; }
.toast a { text-decoration: underline; text-underline-offset: 3px; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(64px, 12vh, 140px) 36px; border-top: 1px solid var(--line-2); margin-top: clamp(40px, 8vh, 96px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 96px); align-items: end; }
.footer-note {
  font-family: var(--font-display);
  font-size: var(--step-3); font-weight: 450; line-height: 1.32; letter-spacing: -.018em;
  max-width: 30ch;
}
.footer-side { display: grid; gap: 28px; justify-items: start; }
.email-big {
  display: grid; gap: 4px; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -.02em;
}
.email-big .addr { background: linear-gradient(var(--accent), var(--accent)) 0 88% / 0 .32em no-repeat; transition: background-size var(--dur-3) var(--ease-out); }
.email-big:hover .addr, .email-big:focus-visible .addr { background-size: 100% .32em; }
.email-big .hint { font-family: var(--font-text); font-size: .8125rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-base {
  margin-top: clamp(56px, 10vh, 110px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: .875rem; color: var(--ink-3);
}
.footer-base time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Case studies
   ========================================================================== */
.cs-head { padding-top: calc(var(--nav-h) + clamp(24px, 6vh, 64px)); }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: .9375rem; margin-bottom: clamp(24px, 4vh, 40px);
}
.back svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.back:hover { color: var(--ink); }
.back:hover svg { transform: translateX(-3px); }
.cs-kicker { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9375rem; margin-bottom: 18px; }
.cs-kicker .swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--grad); background-size: 300% 300%; }
.cs-title {
  font-family: var(--font-display);
  font-size: var(--step-5); font-weight: 580; letter-spacing: -.035em; line-height: 1.03;
  max-width: 19ch; text-wrap: balance;
}
.cs-sub { margin-top: 22px; font-size: var(--step-2); line-height: 1.5; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.cs-meta {
  margin-top: clamp(32px, 5vh, 48px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.cs-meta dt { font-size: .8125rem; color: var(--ink-3); margin-bottom: 6px; }
.cs-meta dd { font-size: .9375rem; line-height: 1.45; }
.cs-meta a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cs-meta a:hover { text-decoration-color: currentColor; }
@media (max-width: 760px) { .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cs-hero { margin-top: clamp(36px, 6vh, 64px); }
.panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--grad);
  background-size: 140% 140%;
  padding: clamp(18px, 5vw, 72px);
  display: grid; place-items: center;
}
.panel > img, .panel > video { width: 100%; border-radius: var(--r-sm); box-shadow: var(--shadow-media); }
.panel.is-tall > img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.panel-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 40px); width: 100%; }
.panel-phones img { width: min(30%, 280px); filter: drop-shadow(0 26px 34px rgba(80, 16, 16, .28)); }
.panel-phones img:nth-child(2) { transform: translateY(-6%); }

/* triad */
.psr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 44px); margin-top: clamp(48px, 8vh, 88px); }
.psr > div { padding-top: 18px; border-top: 2px solid var(--line); transition: border-color var(--dur-3) ease; }
.psr > div:hover { border-color: var(--tint, var(--ink)); }
.psr h2 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; letter-spacing: -.01em; margin-bottom: 10px; }
.psr p { color: var(--ink-2); }
@media (max-width: 760px) { .psr { grid-template-columns: 1fr; } }

/* impact numbers */
.impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(48px, 8vh, 88px); }
.impact .num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.impact .num small { font-size: .45em; letter-spacing: -.01em; color: var(--ink-3); margin-left: .12em; font-weight: 550; }
.impact .lbl { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; max-width: 22ch; }
@media (max-width: 760px) { .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* body with sticky contents */
.cs-body {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(64px, 10vh, 120px);
}
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: .875rem; }
.toc p { color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 5px 0 5px 16px; margin-left: -1px;
  color: var(--ink-3); border-left: 2px solid transparent;
  transition: color var(--dur-2) ease, border-color var(--dur-2) ease, padding var(--dur-2) var(--ease-out);
}
.toc a:hover { color: var(--ink-2); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); padding-left: 20px; }
@media (max-width: 960px) { .cs-body { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { min-width: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose section + section { margin-top: clamp(64px, 10vh, 112px); }
.prose section > * + * { margin-top: 1.1em; }
.prose section > h2:not(:first-child) { margin-top: 1.9em; }
.prose section > h2 + * { margin-top: 20px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--step-4); font-weight: 600; letter-spacing: -.03em; line-height: 1.08;
  max-width: 22ch;
}
.prose h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: -.015em; margin-top: 2em; }
.prose p, .prose li { font-size: var(--step-1); line-height: 1.7; max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }
.prose .lede { font-size: var(--step-2); line-height: 1.55; font-weight: 450; color: var(--ink); max-width: 58ch; }
.prose em { font-style: italic; }
.prose strong { font-weight: 700; }
.prose ul.plain { padding-left: 1.1em; }
.prose ul.plain li + li { margin-top: .5em; }

.fig { margin-top: clamp(28px, 4vh, 44px); margin-bottom: clamp(28px, 4vh, 44px); }
.fig-panel {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  padding: clamp(14px, 3vw, 36px);
  display: grid; place-items: center;
}
.fig-panel.tinted { background: var(--grad); background-size: 140% 140%; box-shadow: none; }
.fig-panel img { border-radius: var(--r-sm); }
.fig-panel .sq { width: min(100%, 620px); }
.fig-panel .scr { width: min(100%, 300px); border-radius: var(--r-md); box-shadow: var(--shadow-media); }
.fig figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-3); max-width: 62ch; }
[data-zoom] { cursor: zoom-in; }

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.screens figure { text-align: center; }
.screens img { width: 100%; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-media); transition: transform var(--dur-3) var(--ease-out); }
.screens figure:hover img { transform: translateY(-5px); }
.screens figcaption { margin-top: 12px; font-weight: 600; font-size: .9375rem; color: var(--ink); }
@media (max-width: 600px) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* notes: challenges, lessons, principles */
.notes { display: grid; gap: 0; margin-top: 8px; }
.note { padding: 22px 0 22px 22px; border-top: 1px solid var(--line); position: relative; }
.note:last-child { border-bottom: 1px solid var(--line); }
.note::before {
  content: ""; position: absolute; left: 0; top: 26px; width: 4px; height: 22px; border-radius: 2px;
  background: var(--tint, var(--accent));
  transition: height var(--dur-3) var(--ease-out);
}
.note:hover::before { height: calc(100% - 52px); }
.note h3 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; margin: 0 0 6px; letter-spacing: -.01em; }
.note p { color: var(--ink-2); }
.notes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.notes.two .note:nth-last-child(2) { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .notes.two { grid-template-columns: 1fr; } .notes.two .note:nth-last-child(2) { border-bottom: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { font-size: .9375rem !important; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); max-width: none !important; }

blockquote.quote {
  margin-top: clamp(28px, 4vh, 44px);
  padding-left: 24px; border-left: 3px solid var(--tint, var(--accent));
}
blockquote.quote p { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.3; letter-spacing: -.018em; font-weight: 480; max-width: 34ch; }
blockquote.quote footer { margin-top: 16px; display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .9375rem; }
blockquote.quote .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; color: var(--ink); }

/* before / after */
.compare { margin-block: clamp(28px, 4vh, 44px); }
.compare-frame {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  --pos: 50%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-media);
  background: #0f1012;
}
.compare-frame img { width: 100%; pointer-events: none; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before img { height: 100%; object-fit: cover; }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.compare-handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #15171C;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .45);
  transition: transform var(--dur-2) var(--ease-spring);
}
.compare-handle svg { width: 22px; height: 22px; }
.compare-frame:hover .compare-handle, .compare-handle:focus-visible { transform: scale(1.1); }
.compare-frame.is-dragging .compare-handle { transform: scale(.94); }
.compare-legend { display: flex; justify-content: space-between; margin-bottom: 10px; }
.compare-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  transition: opacity var(--dur-2) ease, color var(--dur-2) ease;
}
.compare-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.compare-label.is-after::before { background: var(--accent); }
.compare figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-3); }

/* phone frames */
.phone {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: .46;
  border-radius: 13% / 6%;
  border: 7px solid #0D0E10;
  background: #0D0E10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow-media);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare.is-phone .compare-inner { width: min(100%, 320px); }
.compare.is-phone .compare-frame { border-radius: 13% / 6%; border: 7px solid #0D0E10; aspect-ratio: .46; }
.compare.is-phone .compare-frame > img, .compare.is-phone .compare-before img { height: 100%; object-fit: cover; object-position: top; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); justify-content: center; gap: clamp(16px, 4vw, 56px); width: 100%; }
.pair figure { display: grid; gap: 14px; justify-items: center; }
.pair figcaption { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.pair .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.pair figure:last-child .dot { background: var(--accent); }
.pair .phone { max-width: 300px; transition: transform var(--dur-3) var(--ease-out); }
.pair figure:hover .phone { transform: translateY(-6px); }

/* video */
.video-frame { position: relative; border-radius: var(--r-md); overflow: hidden; background: #0f1012; box-shadow: var(--shadow-media); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0f1012; }
.video-phone video { aspect-ratio: auto; }
.video-phone { max-width: 360px; margin-inline: auto; padding: 12px; border-radius: 30px; background: #17151C; }
.video-phone video { border-radius: 20px; }
.play-toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 16, 18, .66); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity var(--dur-2) ease, transform var(--dur-1) ease;
}
.play-toggle svg { width: 16px; height: 16px; }
.video-frame:hover .play-toggle, .play-toggle:focus-visible { opacity: 1; }
.play-toggle:active { transform: scale(.9); }
.play-toggle .i-play { display: none; }
.is-paused .play-toggle .i-play { display: block; }
.is-paused .play-toggle .i-pause { display: none; }
.is-paused .play-toggle { opacity: 1; }

/* live embed (Verdant) */
.embed { margin-block: clamp(28px, 4vh, 44px); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-media); background: var(--surface); }
.embed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line-2); font-size: .875rem; color: var(--ink-2); }
.embed-bar .addr { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-bar .addr i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); flex: none; }
.embed iframe { width: 100%; height: clamp(460px, 72vh, 760px); border: 0; background: #0B0F0C; }

/* contrast swatches (Thirty's 3) */
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: clamp(24px, 4vh, 40px); }
.swatch-card { border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.swatch-demo { height: 150px; display: grid; place-items: center; background: #F2F2F2; }
.swatch-demo span { padding: 14px 22px; border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.swatch-info { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); font-size: .9375rem; }
.swatch-info b { font-variant-numeric: tabular-nums; }
.verdict { font-weight: 650; }
.verdict.fail { color: #C2413A; }
.verdict.pass { color: #2F8F46; }
[data-theme="dark"] .verdict.fail { color: #FF8A80; }
[data-theme="dark"] .verdict.pass { color: #7EDC8F; }
@media (max-width: 600px) { .swatches { grid-template-columns: 1fr; } }

.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.footnote { font-size: .9375rem !important; color: var(--ink-3); font-style: italic; }

/* next project */
.next { margin-top: clamp(80px, 14vh, 160px); }
.next a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--grad); background-size: 160% 160%; background-position: 0 0;
  transition: background-position 1.4s var(--ease-out);
  color: #fff; min-height: 260px;
}
.next a.on-light { color: #15171C; }
.next a:hover { background-position: 100% 100%; }
.next .k { font-size: .9375rem; opacity: .8; }
.next .n { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.next .s { margin-top: 12px; max-width: 46ch; opacity: .85; }
.next .go {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #15171C;
  transition: transform var(--dur-3) var(--ease-spring);
}
.next .go svg { width: 22px; height: 22px; }
.next a:hover .go { transform: rotate(-45deg) scale(1.08); }

/* ---------- Story page ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-media); transition: transform var(--dur-3) var(--ease-spring); }
.story-photo:hover { transform: rotate(-1deg) scale(1.01); }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: .8125rem; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { line-height: 1.5; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.strip figure { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.strip figure:hover img { transform: scale(1.05); }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  .pulse::after, .scroll-cue .line::after { display: none; }
}
.cs-hero figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-3); }

/* hairline edge so panels hold their shape on any background */
.project-media::after, .panel::after, .next a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line-2); z-index: 2;
}
.next a { position: relative; }
