@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-roman.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  /* Primitives */
  --paper-50:  oklch(97.5% 0.008 80);   /* fallback #f9f6f1 */
  --paper-100: oklch(95% 0.011 78);     /* fallback #f2ede5 */
  --stone-200: oklch(91.5% 0.014 72);   /* fallback #e8e0d4 */
  --stone-300: oklch(85% 0.014 70);     /* fallback #d6cdbf */
  --ink-900:   oklch(22% 0.015 60);     /* fallback #2a2520 */
  --ink-700:   oklch(36% 0.015 60);     /* fallback #4a443d */
  --ink-500:   oklch(48% 0.014 60);     /* fallback #6b645b */
  --oxblood:   oklch(42% 0.12 25);      /* fallback #7d2b25 */
  --blue-dark: oklch(31% 0.05 245);     /* fallback #1c3c55 (original) */
  --blue-mid:  oklch(52% 0.05 240);
  --blue-light:oklch(84% 0.03 230);
  --blue-wash: oklch(94.5% 0.012 235);
  --rose-dark: oklch(37% 0.06 18);
  --rose-mid:  oklch(74% 0.055 30);     /* fallback #d4a89d (original) */
  --rose-light:oklch(90% 0.03 35);
  --cream:     oklch(97% 0.012 80);

  /* Semantic */
  --color-bg: var(--paper-50);
  --color-surface: var(--paper-100);
  --color-stone: var(--stone-200);
  --color-rule: var(--stone-300);
  --color-text: var(--ink-900);
  --color-text-2: var(--ink-700);
  --color-muted: var(--ink-500);
  --color-accent: var(--oxblood);
  --color-on-photo: var(--cream);
  --duo-blue-dark: var(--blue-dark);
  --duo-blue-light: var(--blue-light);
  --duo-rose-dark: var(--rose-dark);
  --duo-rose-light: var(--rose-light);
  --map-water: var(--blue-wash);
  --map-land: var(--paper-50);
  --map-line: oklch(78% 0.02 230);

  --font-display: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --text-tile: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem);
  --text-num: clamp(3rem, 2rem + 4vw, 5.75rem);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;

  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-serif); font-size: var(--text-base); line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
body.is-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--color-text); color: var(--color-bg); padding: var(--space-3) var(--space-4); font-family: var(--font-display); font-size: var(--text-sm); text-decoration: none; }
.skip:focus { top: var(--space-4); }

/* ---------- Duotone photos ---------- */
.duo { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: var(--duo-light); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.02); transform: scale(1.03); transition: transform 1.8s var(--ease); }
.duo::after { content: ""; position: absolute; inset: 0; background: var(--duo-dark); opacity: 0.22; mix-blend-mode: multiply; pointer-events: none; }
.duo--blue { --duo-dark: var(--duo-blue-dark); --duo-light: var(--duo-blue-light); }
.duo--rose { --duo-dark: var(--duo-rose-dark); --duo-light: var(--duo-rose-light); }
.duo--blue img { object-position: 80% 45%; }
.phead--blue .duo--blue img { object-position: 82% 20%; }
.duo--rose img { object-position: 50% 28%; }
@media (min-width: 640px) {
  .duo--rose { background: var(--duo-rose-dark); }
  .tile--rose .duo--rose img { width: 100%; object-position: 50% 32%; -webkit-mask-image: none; mask-image: none; }
  .duo--rose img { position: absolute; top: 0; right: 0; width: 58%; transform: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); }
}
.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim--blue { background: linear-gradient(to top, oklch(31% 0.05 245 / 0.82), oklch(31% 0.05 245 / 0) 62%); }
.scrim--rose { background: linear-gradient(to top, oklch(34% 0.06 18 / 0.8), oklch(34% 0.06 18 / 0) 62%); }
@media (min-width: 640px) {
  .tile--blue .scrim--blue, .tile--rose .scrim--rose, .phead--rose .scrim--rose {
    background: linear-gradient(to right, oklch(from var(--tint) l c h / 0.9) 0%, oklch(from var(--tint) l c h / 0.55) 34%, oklch(from var(--tint) l c h / 0) 62%), linear-gradient(to top, oklch(from var(--tint) l c h / 0.5), oklch(from var(--tint) l c h / 0) 50%); }
  .tile--blue { --tint: var(--duo-blue-dark); }
  .tile--rose, .phead--rose { --tint: var(--duo-rose-dark); }
  .phead--rose .duo--rose img { width: 58%; object-position: 50% 34%; -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); }
}
@media (max-width: 639px) {
  .phead.phead--rose { padding-top: 50svh; }
  .phead--rose .duo--rose img { object-position: 50% 30%; }
  .phead--rose .scrim--rose { background: linear-gradient(to top, oklch(30% 0.06 18 / 0.92) 0%, oklch(30% 0.06 18 / 0.86) 26%, oklch(30% 0.06 18 / 0.72) 40%, oklch(30% 0.06 18 / 0.5) 52%, oklch(30% 0.06 18 / 0.28) 63%, oklch(30% 0.06 18 / 0.1) 74%, oklch(30% 0.06 18 / 0) 84%); }
}

/* ---------- Home: the four-tile sentence ---------- */
.home { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(30svh, 2fr) auto auto minmax(30svh, 2fr); min-height: 100svh; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 17svh; padding: var(--gutter); text-decoration: none; overflow: hidden;
  color: var(--color-text); background: var(--color-bg);
}
.tile--photo { color: var(--color-on-photo); min-height: 30svh; }
/* Dark fallback behind photo text: correct contrast if the image fails, and what the scrim resolves to. */
.tile--blue, .phead--blue { background-color: var(--duo-blue-dark); }
.tile--rose, .phead--rose { background-color: var(--duo-rose-dark); }
.tile--stone { background: var(--color-stone); }
.tile--paper { background: var(--color-surface); }
.tile__top, .tile__bottom { position: relative; z-index: 1; }
.tile__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.tile__arrow { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.55; transition: transform 0.4s var(--ease), opacity 0.3s; }
.tile__title { font-size: var(--text-tile); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; transition: transform 0.6s var(--ease); max-width: 12ch; }
.tile__hint { margin-top: var(--space-4); font-family: var(--font-serif); font-style: italic; font-size: var(--text-lg); line-height: 1.35; opacity: 0.9; max-width: 34ch; }
.tile__veil { position: absolute; inset: 0; z-index: 2; background: oklch(22% 0.015 60 / 0.16); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
@media (hover: hover) {
  .home:hover .tile:not(:hover) .tile__veil { opacity: 1; }
  .tile:hover .duo img { transform: scale(1.09); }
  .tile:hover .tile__title { transform: translateX(10px); }
  .tile:hover .tile__arrow { transform: translate(3px, -3px) rotate(-45deg); opacity: 1; }
}
.tile:focus-visible { outline-offset: -6px; outline-width: 3px; }
.tile--photo:focus-visible { outline-color: var(--color-on-photo); }

/* load choreography */
.tile { animation: tileIn 0.9s var(--ease) both; animation-delay: calc(var(--i) * 110ms); }
.tile__title { animation: riseIn 0.9s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 180ms); }
.tile__hint { animation: fadeIn 0.9s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 380ms); }
@keyframes tileIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.9; } }

@media (min-width: 640px) {
  .home { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 100svh; min-height: 560px; }
  .tile { min-height: 0; }
}

/* ---------- Panels ---------- */
.panel {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-bg); -webkit-overflow-scrolling: touch;
}
.panel[hidden] { display: none; }
.panel--stone { background: var(--color-stone); }
.panel__inner { min-height: 100%; }
.pclose {
  position: fixed; top: var(--space-4); right: var(--space-4); z-index: 30;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--color-rule); background: var(--color-bg); color: var(--color-text); cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.pclose:hover { transform: rotate(90deg); background: var(--color-surface); }
.pclose:active { transform: rotate(90deg) scale(0.94); }

.phead { position: relative; display: flex; align-items: flex-end; padding: var(--space-24) var(--gutter) var(--space-12); }
.phead--photo { min-height: min(62svh, 560px); color: var(--color-on-photo); }
.phead__text { position: relative; z-index: 1; width: 100%; max-width: calc(1120px - 2 * var(--gutter)); margin: 0 auto; }
.phead h2 { font-size: clamp(3rem, 1.6rem + 6vw, 7rem); letter-spacing: -0.05em; line-height: 0.9; max-width: 12ch; }
.phead__lede { margin-top: var(--space-6); font-size: var(--text-lg); font-style: italic; line-height: 1.4; max-width: 40ch; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 640px; }
.prose p + p { margin-top: var(--space-4); }
.section { padding: var(--space-16) 0; }
.section + .section { border-top: 1px solid var(--color-rule); }
.section__h { font-size: var(--text-xl); margin-bottom: var(--space-8); }
.label { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.01em; color: var(--color-text-2); }

.pnext {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-16) 0 var(--space-24);
  max-width: calc(1120px - 2 * var(--gutter)); margin: 0 var(--gutter); text-decoration: none; border-top: 1px solid var(--color-rule);
}
.pnext span:first-child { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.pnext span:last-child { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: var(--text-xl); transition: transform 0.5s var(--ease); display: inline-block; }
.pnext:hover span:last-child { transform: translateX(10px); }
@media (min-width: 1184px) { .pnext { margin: 0 auto; } }

/* Big numbers */
.num { font-family: var(--font-display); font-weight: 900; font-variant-numeric: lining-nums proportional-nums; letter-spacing: -0.04em; line-height: 0.88; white-space: nowrap; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- No JavaScript: panels become stacked page sections ---------- */
.no-js .panel, .no-js .panel[hidden] { display: block; position: static; z-index: auto; overflow: visible; }
.no-js .pclose, .no-js .map, .no-js #signup, .no-js [data-copy] { display: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js .case[hidden], .no-js .work-index[hidden] { display: block; }
.no-js .case { animation: none; }
.no-js .stop { min-height: 0; color: var(--color-text); padding: var(--space-6) 0; border-top: 1px solid var(--color-rule); }
.no-js .stops { padding: 0; }

/* ---------- About: intro ---------- */
.intro { display: grid; gap: var(--space-8); }
.intro .prose p:first-child { font-size: var(--text-lg); line-height: 1.5; }
.intro__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-content: start; }
.fact .num { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); }
.fact p:last-child { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.4; }
@media (min-width: 1024px) { .intro { grid-template-columns: minmax(0, 640px) 1fr; gap: var(--space-16); } }

/* ---------- About: journey map ---------- */
.journey__intro { margin-bottom: var(--space-8); }
.journey__body { display: grid; grid-template-columns: 1fr; }
.map {
  position: sticky; top: 0; z-index: 2; margin: 0 calc(var(--gutter) * -1); height: 44svh;
  background: var(--map-water); border-bottom: 1px solid var(--color-rule);
}
.map svg { display: block; width: 100%; height: 100%; }
.map__credit { position: absolute; left: var(--space-3); bottom: var(--space-2); font-family: var(--font-display); font-size: 0.75rem; color: var(--color-muted); }
.map__note { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-8); text-align: center; font-style: italic; color: var(--color-text-2); }
.map.map--failed { height: auto; position: static; background: transparent; border: 0; margin: 0 0 var(--space-6); }
.map.map--failed svg, .map.map--failed .map__credit { display: none; }
.map__note[hidden] { display: none; }
.map.map--failed .map__note { position: static; display: block; padding: 0; text-align: left; }
.m-land { fill: var(--map-land); stroke: var(--map-line); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.m-states, .m-borders { fill: none; stroke: var(--map-line); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.m-states { stroke-dasharray: none; opacity: 0.8; }
.m-route path { fill: none; stroke: var(--color-accent); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.35s var(--ease); }
.m-route path.is-drawn { transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.45s; }
.m-route path.is-past { transition: none; }
.m-route path.is-drawn { stroke-dashoffset: 0; }
.m-pin { cursor: pointer; }
.m-pin .dot { fill: var(--map-land); stroke: var(--color-text-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0.45; transition: fill 0.4s, stroke 0.4s, opacity 0.4s; }
.m-pin .ring { fill: none; stroke: var(--color-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-pin.is-current .ring { animation: pinPulse 2.4s var(--ease) 1.2s infinite; }
@keyframes pinPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }
.m-pin:hover .dot { stroke: var(--color-accent); opacity: 1; }
.m-pin.is-visited .dot { fill: var(--color-text); stroke: var(--color-text); opacity: 1; }
.m-pin.is-current .dot { fill: var(--color-accent); stroke: var(--color-accent); opacity: 1; }
.m-pin text { font-family: var(--font-display); font-weight: 700; fill: var(--color-text); stroke: var(--map-water); paint-order: stroke; stroke-linejoin: round; opacity: 0; transition: opacity 0.4s; }
.m-pin.is-current text { opacity: 1; }
.m-pin.show-label text { opacity: 0.85; }
.m-pin.show-label.is-current text { opacity: 1; }

.stops { list-style: none; margin: 0; padding: 0 0 30svh; }
.stop { scroll-margin-top: 46svh; }
/* Inactive stops recede by colour, not opacity, so their text keeps AA contrast. */
.stop { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; padding: var(--space-12) 0; color: var(--color-muted); transition: color 0.5s var(--ease); }
.stop.is-active { color: var(--color-text); }
.stops--static .stop { min-height: 0; color: var(--color-text); padding: var(--space-6) 0; border-top: 1px solid var(--color-rule); }
.stop__when { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted); transition: color 0.5s var(--ease); }
.stop.is-active .stop__when, .stops--static .stop__when { color: var(--color-accent); }
.stop__place { margin-top: var(--space-2); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); letter-spacing: -0.045em; }
.stop p:last-child { margin-top: var(--space-4); max-width: 46ch; }
.stop.is-active p:last-child { color: var(--color-text-2); }
@media (min-width: 1024px) {
  .journey__body { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-12); }
  .map { top: 11svh; height: 78svh; margin: 0; border: 1px solid var(--color-rule); border-radius: 4px; overflow: hidden; }
  .stops { padding: 10svh 0 20svh; }
  .stop { min-height: 74svh; }
}

/* Off the map */
.offmap { display: grid; gap: var(--space-8); }
.offmap h4 { font-size: var(--text-lg); letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.offmap ul { list-style: none; margin: 0; padding: 0; }
.offmap li { padding: var(--space-3) 0; border-top: 1px solid var(--color-rule); }
.offmap li span { display: block; font-family: var(--font-display); font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--color-muted); }
.creds li { display: flex; align-items: center; gap: var(--space-4); }
.creds .cred__text { display: block; font-family: var(--font-serif); font-size: var(--text-base); color: var(--color-text); font-variant-numeric: normal; }
.creds .cred__text > span { display: block; font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.cred__logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; }
.cred__logo img { max-width: 48px; max-height: 52px; width: auto; height: auto; }
.facts-list li { line-height: 1.55; }
.facts-list a { display: inline-block; margin-top: var(--space-1, 4px); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.facts-list a:hover { color: var(--color-accent); }
@media (min-width: 640px) { .offmap { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }

/* ---------- Work: project tiles ---------- */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.ptile {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 340px;
  text-decoration: none; background: oklch(93.6% 0.012 76); border: 1px solid oklch(88.5% 0.014 72); border-radius: 4px; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ptile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px oklch(22% 0.015 60 / 0.35); }
.ptile:active { transform: translateY(-1px); }
.ptile__vis { position: relative; flex: 1 1 auto; min-height: 180px; overflow: hidden; display: grid; place-items: center; padding: var(--space-6); }
.ptile__vis > * { transition: transform 0.9s var(--ease); }
.ptile:hover .ptile__vis > * { transform: scale(1.035); }
.ptile__body { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-6); align-items: end; padding: var(--space-6); }
.ptile__name { font-size: var(--text-lg); letter-spacing: -0.02em; font-weight: 800; }
.ptile__role { grid-column: 1; font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.4; }
.ptile__impact { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.ptile__impact .num { font-size: min(var(--text-num), 19cqi); color: var(--color-text); white-space: nowrap; }
.ptile__impact .num--word { font-size: min(clamp(2rem, 1.4rem + 2.4vw, 3.25rem), 14cqi); letter-spacing: -0.04em; }
.ptile__impact p:last-child { margin-top: var(--space-2); font-family: var(--font-display); font-size: var(--text-xs); font-weight: 500; color: var(--color-text-2); max-width: 18ch; margin-left: auto; line-height: 1.3; }
.ptile--text { min-height: 220px; background: var(--color-stone); }
.ptile--text .ptile__body { flex: 1; align-items: end; }

.ptile__vis--img { padding: 0; display: block; background: var(--color-stone); }
.ptile__vis--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fit-left img { object-position: 0% 50%; }
.fit-right img { object-position: 70% 30%; }
.fit-top img { object-position: 50% 0%; }
.fit-center img { object-position: 50% 45%; }
.fit-contain { background: oklch(99% 0.003 80); }
.fit-contain img { object-fit: contain; padding: var(--space-6); }
.pg-hs .ptile, .pg-lj .ptile { min-height: 380px; }
.ptile { container-type: inline-size; }
@container (max-width: 520px) {
  .ptile__body { grid-template-columns: 1fr; }
  .ptile__impact { grid-column: 1; grid-row: auto; text-align: left; margin-top: var(--space-2); }
  .ptile__impact p:last-child { margin-left: 0; max-width: none; }
}
.vis-blue { background: var(--blue-wash); }
.vis-rose { background: var(--rose-light); }
.vis-stone { background: var(--color-stone); }

/* Mocks (stand-ins for real screenshots) */
.mock-card { width: min(100%, 360px); background: var(--color-bg); border-radius: 10px; padding: var(--space-6); box-shadow: 0 1px 0 var(--color-rule), 0 20px 40px -28px oklch(31% 0.05 245 / 0.5); font-family: var(--font-display); }
.mock-card__q { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.2; }
.mock-steps { display: flex; gap: var(--space-2); margin: var(--space-4) 0; }
.mock-steps span { flex: 1; padding: 6px 0; text-align: center; font-size: 0.75rem; font-weight: 600; border-radius: 99px; background: var(--blue-wash); color: var(--blue-dark); }
.mock-steps span.is-on { background: var(--blue-dark); color: var(--cream); }
.mock-btn { display: block; text-align: center; padding: 10px; border-radius: 6px; background: var(--color-text); color: var(--color-bg); font-size: 0.8125rem; font-weight: 600; }
.mock-bars { width: min(100%, 360px); display: grid; gap: var(--space-4); font-family: var(--font-display); }
.mock-bar { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: var(--space-3); font-size: 0.8125rem; font-weight: 600; color: var(--rose-dark); }
.mock-bar i { display: block; height: 28px; border-radius: 3px; background: var(--rose-dark); transform-origin: left; }
.mock-bar--before i { width: 44%; opacity: 0.45; }
.mock-bar--after i { width: 100%; }
.spines { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.spines i { display: block; width: 22px; border-radius: 2px 2px 0 0; background: var(--blue-mid); }
.phone { width: 128px; height: 230px; border-radius: 26px; border: 2px solid var(--rose-dark); background: var(--color-bg); display: grid; place-items: center; padding: var(--space-4); }
.phone svg { width: 84px; height: 84px; }

@media (min-width: 640px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-ro { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-6); }
  .pg-ro, .pg-ra { grid-column: span 3; }
  .pg-ro .ptile, .pg-ra .ptile { min-height: 520px; }
  .pg-dc, .pg-ss, .pg-mg { grid-column: span 2; }
  .pg-hs, .pg-lj { grid-column: span 3; }
}

/* ---------- Work: case stories ---------- */
.case[hidden], .work-index[hidden] { display: none; }
.case { padding-bottom: var(--space-16); animation: riseIn 0.7s var(--ease) both; }
.case__back { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); text-decoration: none; color: var(--color-text-2); }
.case__back:hover { color: var(--color-accent); }
.case__head { padding: var(--space-8) 0 var(--space-12); border-bottom: 1px solid var(--color-rule); }
.case__head h3 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem); letter-spacing: -0.05em; line-height: 0.92; max-width: 14ch; margin-top: var(--space-4); }
/* Headings get focus only so screen readers land in the right place; they are not controls, so no ring. */
[tabindex="-1"]:focus { outline: none; }
.case__meta { margin-top: var(--space-4); font-style: italic; color: var(--color-text-2); }
.case__stats { display: grid; grid-template-columns: 1fr; gap: var(--space-8) var(--space-12); padding: var(--space-12) 0; border-bottom: 1px solid var(--color-rule); }
.case__stats > div { container-type: inline-size; min-width: 0; }
.case__stats .num { font-size: min(var(--text-num), 24cqi); }
.case__stats p:last-child { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.4; max-width: 28ch; }
@media (min-width: 640px) { .case__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.beats { padding-top: var(--space-12); }
.beat { display: grid; grid-template-columns: 1fr; gap: var(--space-4); padding-bottom: var(--space-12); }
.beat h4 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.01em; color: var(--color-text-2); margin-bottom: var(--space-3); }
.beat h4::before { content: ""; width: 20px; height: 2px; background: var(--color-accent); }
.beat__text p { font-size: var(--text-lg); line-height: 1.5; }
.note { font-family: var(--font-display); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-2); border-left: 2px solid var(--color-rule); padding-left: var(--space-4); }
.note strong { display: block; font-size: 1.75rem; font-weight: 900; letter-spacing: -0.04em; color: var(--color-text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.note a { color: var(--color-accent); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .beat { grid-template-columns: minmax(0, 640px) 240px; gap: var(--space-16); }
  .note { border-left: 0; padding-left: 0; padding-top: var(--space-6); }
}
.case__next { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--color-rule); font-family: var(--font-display); font-weight: 700; }
.case__next a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.case__next a:hover { color: var(--color-accent); }

/* ---------- Stories ---------- */
.shelf { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.shelf__item { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8) var(--space-6); background: var(--color-bg); border-radius: 4px; text-decoration: none; min-height: 220px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
a.shelf__item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px oklch(22% 0.015 60 / 0.35); }
.shelf__item h3 { font-size: var(--text-xl); letter-spacing: -0.04em; }
.shelf__item p { color: var(--color-text-2); }
.shelf__item .label { margin-top: auto; color: var(--color-accent); }
@media (max-width: 639px) {
  .phead:not(.phead--photo) + .wrap > .section:first-child { padding-top: var(--space-4); }
  .shelf__item { min-height: 0; padding: var(--space-6); }
  .shelf__item .label { margin-top: var(--space-4); }
}
div.shelf__item .label { font-family: var(--font-serif); font-weight: 400; color: var(--color-text-2); }
.shelf__item .label cite { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1em; color: var(--color-text); }
@media (min-width: 640px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.essays { list-style: none; margin: 0; padding: 0; }
.essays a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-6); padding: var(--space-4) 0; min-height: 44px; border-top: 1px solid var(--color-rule); text-decoration: none; font-size: var(--text-lg); line-height: 1.35; transition: padding 0.4s var(--ease), color 0.2s; }
.essays li:last-child a { border-bottom: 1px solid var(--color-rule); }
.essays a span:last-child { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted); flex: none; transition: transform 0.4s var(--ease); }
.essays a:hover { padding-left: var(--space-3); color: var(--color-accent); }
.essays a:hover span:last-child { transform: translateX(4px); }
.clips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-8); max-width: 420px; }
@media (min-width: 640px) { .clips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); max-width: none; } }
.clip__play, .clip__frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--color-text); cursor: pointer; }
.clip__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.clip__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(22% 0.015 60 / 0.35), transparent 45%); }
.clip__icon { position: absolute; z-index: 1; left: var(--space-4); bottom: var(--space-4); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: oklch(98% 0.006 80 / 0.92); color: var(--color-text); transition: transform 0.4s var(--ease); }
.clip__icon svg { margin-left: 3px; }
.clip__play:hover img { transform: scale(1.04); }
.clip__play:hover .clip__icon { transform: scale(1.08); }
.clip__frame iframe { width: 100%; height: 100%; border: 0; }
.clip__cap { margin-top: var(--space-4); font-style: italic; line-height: 1.45; }
.clip__link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-2); text-underline-offset: 3px; }
.clip__link:hover { color: var(--color-accent); }
.featured { margin-top: var(--space-8); font-style: italic; color: var(--color-text-2); max-width: 60ch; }

/* ---------- Contact ---------- */
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.offers li { padding: var(--space-6) 0; border-top: 1px solid var(--color-rule); display: grid; gap: var(--space-3); align-content: start; }
.offers h3 { font-size: var(--text-xl); letter-spacing: -0.04em; }
.offers p { color: var(--color-text-2); max-width: 44ch; }
@media (min-width: 1024px) {
  .offers { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 0 var(--space-8); }
  .offers li { grid-row: span 2; grid-template-rows: subgrid; }
}
.quotes { display: grid; gap: var(--space-12); }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-size: var(--text-lg); line-height: 1.45; font-style: italic; }
.quote figcaption { margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-text-2); }
.quote figcaption b { color: var(--color-text); font-weight: 700; }
@media (min-width: 1024px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.reach { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: 99px; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--color-text); background: transparent; color: var(--color-text); transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; }
.btn--solid { background: var(--color-text); color: var(--color-bg); }
.btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--cream); }
.btn:active { transform: scale(0.97); }
.email { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(1.75rem, 1rem + 3.4vw, 3.75rem); line-height: 1; overflow-wrap: anywhere; text-decoration: none; }
.email:hover { color: var(--color-accent); }
.bribe { margin-top: var(--space-8); font-style: italic; color: var(--color-text-2); }

.toast { position: fixed; left: 50%; bottom: var(--space-8); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: var(--space-3) var(--space-6); border-radius: 99px; background: var(--color-text); color: var(--color-bg); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .m-route path, .m-route path.is-drawn { transition: none; }
  .m-pin.is-current .ring { animation: none; }
}

/* ---------- Contact: email signup ---------- */
.signup { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--color-rule); max-width: 560px; }
.signup__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-text-2); margin-bottom: var(--space-3); }
.signup__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.signup input { flex: 1 1 240px; min-height: 48px; padding: 0 var(--space-4); font: inherit; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: 999px; }
.signup input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.signup__msg { min-height: 1.5em; margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-2); }
.signup.is-error .signup__msg { color: var(--color-accent); }
