/* GENERATED by scripts/build-tokens.ps1 from tokens/tokens.json. Do not edit by hand. */
/* Dark is the default theme; light follows prefers-color-scheme or [data-theme="light"]. */

:root {
  --ink-950: #0E1013;
  --ink-900: #15181C;
  --ink-800: #1E2228;
  --ink-700: #2A2F37;
  --ink-600: #3A404A;
  --ink-500: #6B7380;
  --ink-400: #8B93A0;
  --ink-300: #A3AAB5;
  --ink-200: #C8CDD4;
  --ink-100: #E4E7EB;
  --plum-900: #2A1522;
  --plum-800: #381C2E;
  --plum-700: #49273B;
  --plum-600: #5F3750;
  --plum-500: #7A4563;
  --plum-300: #C9A9BB;
  --plum-100: #EEDCE6;
  --coral-700: #A82B21;
  --coral-600: #C2372B;
  --coral-500: #E84E40;
  --coral-400: #FF6B5C;
  --coral-200: #F8B8B0;
  --cream-700: #D9B96E;
  --cream-500: #F4D99F;
  --cream-300: #F9E8C4;
  --cream-100: #FCF4E1;
  --paper-50: #FFFFFF;
  --paper-100: #FAFAFA;
  --paper-200: #F3EFE8;
  --stone-700: #5B5560;
  --stone-600: #6B6470;
  --stone-400: #8A8390;
  --stone-200: #E6E0D6;
  --font-family-sans: "BW Nista Grotesk", "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-family-mono: "BW Nista Grotesk", "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-size-display: clamp(3rem, 1.5rem + 6vw, 7rem);
  --font-size-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --font-size-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
  --font-size-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --font-size-h4: 1.25rem;
  --font-size-body-lg: 1.25rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-caption: 0.75rem;
  --leading-display: 0.95;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-body: 1.6;
  --leading-relaxed: 1.7;
  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;
  --tracking-body: 0;
  --tracking-overline: 0.14em;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --border-hairline: 1px;
  --border-strong: 2px;
  --shadow-sm: 0 1px 2px rgba(14, 16, 19, 0.24);
  --shadow-md: 0 12px 32px -12px rgba(14, 16, 19, 0.45);
  --layout-container: 80rem;
  --layout-container-wide: 90rem;
  --layout-measure: 68ch;
  --layout-nav-height: 4.5rem;
  --layout-gutter-mobile: 1rem;
  --layout-gutter-tablet: 1.5rem;
  --layout-gutter-desktop: 1.5rem;
  --layout-margin-mobile: 1rem;
  --layout-margin-tablet: 2rem;
  --layout-margin-desktop: 3rem;
  --breakpoint-sm: 40rem;
  --breakpoint-md: 48rem;
  --breakpoint-lg: 64rem;
  --breakpoint-xl: 80rem;
  --breakpoint-2xl: 96rem;
  --duration-instant: 80ms;
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --duration-slow: 400ms;
  --duration-cinematic: 700ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --z-base: 0;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
  --stagger: 50ms;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #15181C;
  --color-bg-raised: #1E2228;
  --color-bg-sunken: #0E1013;
  --color-bg-brand: #49273B;
  --color-text: #FAFAFA;
  --color-text-muted: #A3AAB5;
  --color-text-subtle: #8B93A0;
  --color-text-on-brand: #FAFAFA;
  --color-text-on-brand-muted: #C9A9BB;
  --color-border: #2A2F37;
  --color-border-strong: #6B7380;
  --color-accent: #E84E40;
  --color-accent-hover: #FF6B5C;
  --color-accent-text: #FF6B5C;
  --color-on-accent: #15181C;
  --color-accent-on-brand: #F4D99F;
  --color-secondary: #F4D99F;
  --color-on-secondary: #15181C;
  --color-link: #F4D99F;
  --color-link-hover: #FF6B5C;
  --color-focus: #F4D99F;
  --color-selection: #E84E40;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --color-bg: #FAFAFA;
    --color-bg-raised: #FFFFFF;
    --color-bg-sunken: #F3EFE8;
    --color-bg-brand: #49273B;
    --color-text: #15181C;
    --color-text-muted: #5B5560;
    --color-text-subtle: #6B6470;
    --color-text-on-brand: #FAFAFA;
    --color-text-on-brand-muted: #C9A9BB;
    --color-border: #E6E0D6;
    --color-border-strong: #8A8390;
    --color-accent: #C2372B;
    --color-accent-hover: #A82B21;
    --color-accent-text: #C2372B;
    --color-on-accent: #FAFAFA;
    --color-accent-on-brand: #F4D99F;
    --color-secondary: #49273B;
    --color-on-secondary: #F4D99F;
    --color-link: #49273B;
    --color-link-hover: #C2372B;
    --color-focus: #49273B;
    --color-selection: #F4D99F;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --color-bg: #FAFAFA;
  --color-bg-raised: #FFFFFF;
  --color-bg-sunken: #F3EFE8;
  --color-bg-brand: #49273B;
  --color-text: #15181C;
  --color-text-muted: #5B5560;
  --color-text-subtle: #6B6470;
  --color-text-on-brand: #FAFAFA;
  --color-text-on-brand-muted: #C9A9BB;
  --color-border: #E6E0D6;
  --color-border-strong: #8A8390;
  --color-accent: #C2372B;
  --color-accent-hover: #A82B21;
  --color-accent-text: #C2372B;
  --color-on-accent: #FAFAFA;
  --color-accent-on-brand: #F4D99F;
  --color-secondary: #49273B;
  --color-on-secondary: #F4D99F;
  --color-link: #49273B;
  --color-link-hover: #C2372B;
  --color-focus: #49273B;
  --color-selection: #F4D99F;
}


/*
  BW Nista Grotesk, from the Envato Elements "elements-bw-nista-grotesk-font-family" download.
  LICENSE CHECK REQUIRED before publishing: confirm the Envato Elements license you hold allows
  web embedding (@font-face) on johnnypeppler.com. If it does not, buy a web license from the foundry
  or drop these rules: tokens.css already falls back to "Hanken Grotesk" (SIL OFL, self-host it) and system fonts.
  The files below are OTF; convert to WOFF2 (subset to Latin) once the license is confirmed.
*/
@font-face { font-family: "BW Nista Grotesk"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/BwNistaGrot-Lt.otf") format("opentype"); }
@font-face { font-family: "BW Nista Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/BwNistaGrot-Rg.otf") format("opentype"); }
@font-face { font-family: "BW Nista Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/BwNistaGrot-Md.otf") format("opentype"); }
@font-face { font-family: "BW Nista Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/BwNistaGrot-Bd.otf") format("opentype"); }
@font-face { font-family: "BW Nista Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/BwNistaGrot-xBd.otf") format("opentype"); }

/* Base layer: reset, typography, layout primitives. Requires tokens/tokens.css and css/fonts.css. */
*, *::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-family-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--color-selection); color: var(--color-bg); }

/* Type roles */
.t-display { font-size: var(--font-size-display); font-weight: var(--font-weight-bold); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
h1, .t-h1 { font-size: var(--font-size-h1); font-weight: var(--font-weight-bold); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
h2, .t-h2 { font-size: var(--font-size-h2); font-weight: var(--font-weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-heading); }
h3, .t-h3 { font-size: var(--font-size-h3); font-weight: var(--font-weight-medium); line-height: var(--leading-snug); letter-spacing: var(--tracking-heading); }
h4, .t-h4 { font-size: var(--font-size-h4); font-weight: var(--font-weight-medium); line-height: var(--leading-snug); }
.t-lead { font-size: var(--font-size-body-lg); font-weight: var(--font-weight-light); line-height: 1.5; color: var(--color-text-muted); }
.t-small { font-size: var(--font-size-small); }
.t-caption { font-size: var(--font-size-caption); color: var(--color-text-subtle); }
.t-overline {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.t-mono { font-family: var(--font-family-mono); font-size: var(--font-size-small); }
.t-muted { color: var(--color-text-muted); }
.prose { max-width: var(--layout-measure); }
.prose > * + * { margin-top: var(--space-4); }

a { color: var(--color-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: color var(--duration-fast) var(--ease-standard); }
a:hover { color: var(--color-link-hover); }

/* Focus: always visible, 2px ring + 2px offset */
:focus-visible { outline: var(--border-strong) solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.skip-link { position: absolute; left: var(--space-4); top: -4rem; z-index: var(--z-toast); background: var(--color-secondary); color: var(--color-on-secondary); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: var(--font-weight-medium); }
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout: 4 cols mobile, 8 tablet, 12 desktop. Margins and gutters follow tokens. */
.container {
  width: 100%;
  max-width: calc(var(--layout-container) + 2 * var(--layout-margin-desktop));
  margin-inline: auto;
  padding-inline: var(--layout-margin-mobile);
}
.container--wide { max-width: calc(var(--layout-container-wide) + 2 * var(--layout-margin-desktop)); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--layout-gutter-mobile); row-gap: var(--space-5); }
.section { padding-block: var(--space-8); }
.section--brand { background: var(--color-bg-brand); color: var(--color-text-on-brand); }
.section--sunken { background: var(--color-bg-sunken); }
.stack > * + * { margin-top: var(--stack-gap, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-3)); }

@media (min-width: 48rem) {
  .container { padding-inline: var(--layout-margin-tablet); }
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--layout-gutter-tablet); }
  .section { padding-block: var(--space-9); }
}
@media (min-width: 64rem) {
  .container { padding-inline: var(--layout-margin-desktop); }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--layout-gutter-desktop); }
  .section { padding-block: var(--space-10); }
}

/* Column helpers (mobile spans the full width unless a -m / -t / -d variant is set) */
.col-full { grid-column: 1 / -1; }
@media (min-width: 48rem) { .col-t-4 { grid-column: span 4; } .col-t-8 { grid-column: span 8; } .col-t-6 { grid-column: span 6; } }
@media (min-width: 64rem) { .col-d-3 { grid-column: span 3; } .col-d-4 { grid-column: span 4; } .col-d-5 { grid-column: span 5; } .col-d-6 { grid-column: span 6; } .col-d-7 { grid-column: span 7; } .col-d-8 { grid-column: span 8; } .col-d-12 { grid-column: span 12; } .col-d-start-4 { grid-column-start: 4; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Components. Requires tokens.css, fonts.css and base.css. Motion: transform and opacity only. */

.section--brand .t-overline, .footer .t-overline { color: var(--color-accent-on-brand); }
.section--brand .t-muted, .section--brand .t-lead { color: var(--color-text-on-brand-muted); }
.section--brand a { color: var(--color-accent-on-brand); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--color-text); text-decoration: none; font-weight: var(--font-weight-bold); font-size: 1.25rem; letter-spacing: var(--tracking-heading); line-height: 1; white-space: nowrap; }
.wordmark:hover { color: var(--color-text); }
.wordmark img, .wordmark svg { width: 2.5rem; height: 2.5rem; flex: none; }
.wordmark--lg { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); gap: var(--space-4); }
.wordmark--lg img, .wordmark--lg svg { width: 1.6em; height: 1.6em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--color-text); --btn-border: var(--color-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3rem; padding: 0 var(--space-5);
  background: var(--btn-bg); color: var(--btn-fg);
  border: var(--border-hairline) solid var(--btn-border); border-radius: var(--radius-pill);
  font-weight: var(--font-weight-medium); font-size: var(--font-size-body); line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-out);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--color-accent); --btn-fg: var(--color-on-accent); --btn-border: var(--color-accent); }
.btn--primary:hover { --btn-bg: var(--color-accent-hover); --btn-border: var(--color-accent-hover); }
.btn--secondary { --btn-bg: var(--color-secondary); --btn-fg: var(--color-on-secondary); --btn-border: var(--color-secondary); }
.btn--secondary:hover { filter: brightness(1.06); }
.btn--ghost:hover { --btn-border: var(--color-text); }
.btn--sm { min-height: 2.5rem; padding: 0 var(--space-4); font-size: var(--font-size-small); }
.btn__arrow { transition: transform var(--duration-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
/* Touch target: 44px minimum even for .btn--sm via min-height 2.5rem + 0.25rem hit-area padding */
.btn--sm { position: relative; }
.btn--sm::after { content: ""; position: absolute; inset: -0.25rem 0; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in srgb, var(--color-bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: var(--border-hairline) solid var(--color-border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--layout-nav-height); }
.nav__list { display: flex; align-items: center; gap: var(--space-2); }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-3); color: var(--color-text-muted); text-decoration: none; font-weight: var(--font-weight-medium); font-size: var(--font-size-small); }
.nav__link::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 0.45rem; height: 2px; background: var(--color-accent-text); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-out); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.theme-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: transparent; border: var(--border-hairline) solid var(--color-border-strong); border-radius: var(--radius-pill); color: var(--color-text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--color-text); }
@media (max-width: 39.99rem) { .nav .wordmark span { display: none; } .nav__cta { display: none; } }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 0.4em; min-height: 1.75rem; padding: 0 var(--space-3); border: var(--border-hairline) solid var(--color-border-strong); border-radius: var(--radius-pill); font-family: var(--font-family-mono); font-size: var(--font-size-caption); letter-spacing: 0.04em; color: var(--color-text-muted); white-space: nowrap; }
.tag--accent { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-on-secondary); font-weight: var(--font-weight-medium); }
.tag--outline-accent { border-color: var(--color-accent-text); color: var(--color-accent-text); }

/* ---------- Project card ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: var(--space-4); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-bg-raised); border-radius: var(--radius-md); }
.card__media > :first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.card__badge { position: absolute; left: var(--space-3); top: var(--space-3); z-index: 1; }
.card__body { display: flex; flex-direction: column; gap: var(--space-2); }
.card__title { font-size: var(--font-size-h4); font-weight: var(--font-weight-medium); line-height: var(--leading-snug); letter-spacing: var(--tracking-heading); }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); } /* whole card is the hit area */
.card__link:hover { color: inherit; }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-family: var(--font-family-mono); font-size: var(--font-size-caption); color: var(--color-text-subtle); }
.card__arrow { position: absolute; right: var(--space-3); bottom: var(--space-3); z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); opacity: 0; transform: translateY(6px); transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
.card:hover .card__media > *:first-child, .card:focus-within .card__media > *:first-child { transform: scale(1.03); }
.card:hover .card__arrow, .card:focus-within .card__arrow { opacity: 1; transform: none; }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.card:focus-within { outline: var(--border-strong) solid var(--color-focus); outline-offset: 6px; border-radius: var(--radius-md); }
.card:focus-within :focus-visible { outline: none; }

/* ---------- Case study ---------- */
.case-head { display: grid; gap: var(--space-5); }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); padding-block: var(--space-5); border-block: var(--border-hairline) solid var(--color-border); }
.case-meta dt { font-family: var(--font-family-mono); font-size: var(--font-size-caption); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--color-text-subtle); }
.case-meta dd { margin-top: var(--space-1); font-weight: var(--font-weight-medium); }
.case-block { display: grid; gap: var(--space-3); padding-block: var(--space-6); border-top: var(--border-hairline) solid var(--color-border); }
.case-block__label { font-family: var(--font-family-mono); font-size: var(--font-size-small); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--color-accent-text); }
.case-block__label span { color: var(--color-text-subtle); margin-right: var(--space-2); }
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat__value { font-size: var(--font-size-h1); font-weight: var(--font-weight-extrabold); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-text); }
.stat__value em { font-style: normal; color: var(--color-accent-text); }
.stat__label { font-size: var(--font-size-small); color: var(--color-text-muted); }
.tools { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (min-width: 48rem) { .case-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .case-block { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--layout-gutter-desktop); }
  .case-block__label { grid-column: span 3; padding-top: 0.35rem; }
  .case-block__body { grid-column: span 7; }
}

/* ---------- Form field ---------- */
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: var(--font-weight-medium); font-size: var(--font-size-small); }
.field input, .field textarea { width: 100%; min-height: 3rem; padding: var(--space-3) var(--space-4); background: var(--color-bg-raised); border: var(--border-hairline) solid var(--color-border-strong); border-radius: var(--radius-md); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-text-muted); }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-subtle); }
.field__hint { font-size: var(--font-size-caption); color: var(--color-text-subtle); }

/* ---------- Footer ---------- */
.footer { background: var(--color-bg-brand); color: var(--color-text-on-brand); padding-block: var(--space-8) var(--space-6); }
.footer__cta { font-size: var(--font-size-h1); font-weight: var(--font-weight-bold); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
.footer__cta a { color: var(--color-text-on-brand); text-decoration-color: var(--color-accent-on-brand); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.footer__cta a:hover { color: var(--color-accent-on-brand); }
.footer__grid { display: grid; gap: var(--space-6); margin-top: var(--space-8); padding-top: var(--space-5); border-top: var(--border-hairline) solid color-mix(in srgb, var(--color-text-on-brand) 24%, transparent); font-size: var(--font-size-small); color: var(--color-text-on-brand-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer__links a { color: var(--color-text-on-brand); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--color-accent-on-brand); text-decoration: underline; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  .card:hover .card__media > *:first-child, .card:focus-within .card__media > *:first-child { transform: none; }
  .card__arrow { transform: none; }
  .btn:hover .btn__arrow { transform: none; }
}

/* Site layer: page-level layout built on the design system. Motion: transform and opacity only. */

html { scroll-padding-top: 6rem; }
body { min-height: 100vh; }
main { display: block; }

/* Sections that alternate against the page theme. Markup defaults to light (dark page);
   site.js flips the data-theme to the opposite of the page theme. */
[data-alt] { background: var(--color-bg); color: var(--color-text); }

/* Logo swap by theme */
.logo { height: 2.25rem; width: auto; }
.logo--on-light { display: none; }
[data-theme="light"] .logo--on-dark { display: none; }
[data-theme="light"] .logo--on-light { display: block; }
.icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

/* ---------- Floating nav ---------- */
.site-nav { position: fixed; top: var(--space-4); left: 0; right: 0; z-index: var(--z-sticky); display: flex; justify-content: center; padding-inline: var(--layout-margin-mobile); pointer-events: none; }
.site-nav__bar {
  pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; max-width: 52rem; min-height: 3.75rem; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  background: color-mix(in srgb, var(--color-bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: var(--border-hairline) solid var(--color-border); border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
}
.site-nav__logo { display: inline-flex; align-items: center; flex: none; }
.site-nav__logo:focus-visible { border-radius: var(--radius-sm); }
.site-nav__menu { margin-inline: auto; }
.site-nav__list { display: flex; align-items: center; gap: var(--space-1); }
.site-nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.menu-toggle { display: none; }

@media (max-width: 47.99rem) {
  .site-nav__cta { display: none; }
  .site-nav__bar { padding-left: var(--space-4); }
  /* Without JS the links stay in a wrapped row; with JS they fold behind the button. */
  .site-nav__menu { order: 3; width: 100%; margin: 0; }
  .site-nav__bar { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .site-nav__list { flex-wrap: wrap; justify-content: center; padding-bottom: var(--space-2); }
  .js .menu-toggle { display: inline-grid; place-items: center; align-content: center; gap: 6px; width: 2.75rem; height: 2.75rem; background: transparent; border: var(--border-hairline) solid var(--color-border-strong); border-radius: var(--radius-pill); cursor: pointer; color: var(--color-text); }
  .menu-toggle__bar { display: block; width: 18px; height: 2px; background: currentColor; transition: transform var(--duration-base) var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-4px) rotate(-45deg); }
  .js .site-nav__menu { display: none; }
  .js .site-nav__menu.is-open { display: block; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: var(--space-3); }
  .js .site-nav__list .nav__link { min-height: 3rem; font-size: var(--font-size-body); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; padding-block: 8rem var(--space-7); overflow: hidden; isolation: isolate; background: var(--color-bg); }
/* Three rows of project frames scroll slowly behind the title and fade out toward the bottom. Only transform animates. */
.hero__rows { position: absolute; inset: 5.5rem 0 auto 0; z-index: -3; display: grid; gap: var(--space-3); opacity: 0.6; -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.85) 38%, transparent 94%); mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.85) 38%, transparent 94%); pointer-events: none; }
.hero__row { --row-h: clamp(6.5rem, 15vw, 14rem); overflow: hidden; }
.hero__track { display: flex; width: max-content; animation: hero-row var(--dur, 160s) linear infinite; animation-direction: var(--dir, normal); will-change: transform; }
.hero__group { display: flex; flex: none; gap: var(--space-3); padding-right: var(--space-3); }
.hero__tile { flex: none; height: var(--row-h); aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; background: var(--color-bg-raised); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hero-row { to { transform: translateX(-50%); } }
.hero__fade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(to bottom, transparent 42%, var(--color-bg) 90%); pointer-events: none; }
[data-theme="light"] .hero__rows { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { .hero__track { animation: none; } }

/* The 3D head stands on top of the rows (src/js/head.js). The flat symbol shows until the model is ready and when 3D is off. */
.hero__head { position: absolute; z-index: -1; right: clamp(0rem, 6vw, 8rem); top: 6.5rem; width: min(38vw, 32rem); aspect-ratio: 1 / 1.1; pointer-events: none; }
.hero__head canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero__symbol { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 900ms var(--ease-out); }
.hero__head.is-3d canvas { opacity: 1; }
.hero__head.is-3d .hero__symbol { opacity: 0; }
/* While 3D is on the way the symbol stays hidden, so the head can enter from off-screen. head.js removes this guard on failure. */
.js:not(.head-off) .hero__head:not(.is-3d) .hero__symbol { opacity: 0; transition: none; }
.js:not(.head-off) .hero__head canvas { transition: none; }
.hero__head { will-change: transform; }
.hero__inner { display: grid; gap: var(--space-6); }
.hero__title { font-size: var(--font-size-display); max-width: 14ch; }
.hero__sub { max-width: 40rem; font-size: var(--font-size-body-lg); font-weight: var(--font-weight-light); line-height: 1.45; color: var(--color-text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 47.99rem) {
  .hero__head { width: 62vw; right: -4vw; top: 5.5rem; }
  .hero__row { --row-h: 26vw; }
}

/* ---------- Words marquee ---------- */
.marquee { overflow: hidden; border-block: var(--border-hairline) solid var(--color-border); padding-block: var(--space-5); background: var(--color-bg-sunken); }
.marquee__track { display: flex; width: max-content; gap: var(--space-7); animation: marquee 38s linear infinite; will-change: transform; }
.marquee__group { display: flex; gap: var(--space-7); flex: none; }
.marquee__word { font-size: var(--font-size-h2); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-heading); white-space: nowrap; color: var(--color-text); }
.marquee__word::after { content: "/"; margin-left: var(--space-7); color: var(--color-accent-text); }
@keyframes marquee { to { transform: translateX(calc(-50% - (var(--space-7) / 2))); } }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee__group[aria-hidden="true"] { display: none; } .marquee { overflow-x: auto; } }

/* ---------- Section head ---------- */
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-7); }
.section-head h2 { max-width: 20ch; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; gap: var(--space-7) var(--layout-gutter-desktop); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .work-grid .card--feature { grid-column: 1 / -1; } }
.card__media--placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--plum-700), var(--ink-800)); color: var(--color-text-on-brand-muted); font-family: var(--font-family-mono); font-size: var(--font-size-caption); letter-spacing: var(--tracking-overline); text-transform: uppercase; }
.card__media--placeholder > * { display: grid; place-items: center; }
.card--feature .card__title { font-size: var(--font-size-h3); }
.card__client { font-size: var(--font-size-small); color: var(--color-text-subtle); }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

/* Work section head: a short descriptive kicker and a punchy title, centered */
.work-head { display: grid; justify-items: center; gap: var(--space-4); margin-bottom: var(--space-8); text-align: center; }
.work-head__kicker { font-size: var(--font-size-body-lg); font-weight: var(--font-weight-medium); color: var(--color-text-muted); }
.work-head__title { font-size: var(--font-size-display); font-weight: var(--font-weight-extrabold); line-height: var(--leading-display); letter-spacing: var(--tracking-display); max-width: 12ch; }
.work-more { margin-top: var(--space-8); text-align: center; }
.work-more__link { font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-heading); color: var(--color-text); text-decoration: none; }
.work-more__link:hover { color: var(--color-accent-text); }
.case-back { font-size: var(--font-size-small); font-weight: var(--font-weight-medium); }

/* ---------- Case page ---------- */
.case-top { padding-bottom: var(--space-6); }
.case-head { display: grid; gap: var(--space-4); }
.case-title { font-size: var(--font-size-h1); max-width: 22ch; }
.case-back { color: inherit; text-decoration: none; }
.case-back:hover { text-decoration: underline; }
.case-head .t-lead { max-width: 44rem; margin-top: 0; }
.case-video { padding-bottom: var(--space-6); }
main { overflow-x: clip; }   /* the glow below is as wide as the screen; this keeps it from adding a horizontal scrollbar */
.video { display: grid; gap: var(--space-3); }
/* Ambient light: a tiny canvas of the video, stretched and blurred behind the player (site.js). Light only, no motion of its own.
   Full screen width, fading out toward both sides; only a small margin above and below the player. */
.video__stage { position: relative; isolation: isolate; }
/* Work cards come from the design system with rounded media; this site uses square corners on every thumbnail and player. */
.card__media, .card__link::after, .card:focus-within { border-radius: 0; }
/* On phones the main video runs edge to edge, out of the page margins. */
@media (max-width: 47.99rem) { .case-video > .video .video__stage { margin-inline: calc(-1 * var(--layout-margin-mobile)); } }
/* More videos on a case: two columns, a vertical (9:16) one stays narrow and centred. */
.videos-more { display: grid; gap: var(--space-6) var(--layout-gutter-desktop); margin-top: var(--space-6); }
@media (min-width: 48rem) { .videos-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.videos-more .video { align-content: start; }
.video--portrait { max-width: 20rem; width: 100%; margin-inline: auto; }
.videos-more .video--portrait { grid-column: 1 / -1; }
.video--portrait .video__frame { aspect-ratio: 9 / 16; }
.case-video > .video--portrait { max-width: 24rem; }
/* Work list: a quiet sub-heading before the earlier projects, three columns where there is room. */
.work-subhead { margin-top: var(--space-9); margin-bottom: var(--space-6); font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-heading); }
@media (min-width: 64rem) { .work-grid--even { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card__kind { font-size: var(--font-size-caption); color: var(--color-text-subtle); }
.case-video { position: relative; z-index: 1; }   /* above the neighbouring sections, so their backgrounds do not cut the light */
.video__glow { position: absolute; z-index: -1; left: 50%; top: -8%; width: 100vw; height: 116%; transform: translateX(-50%); pointer-events: none; opacity: 0;
  filter: blur(clamp(0.75rem, 1.6vw, 1.5rem)) saturate(1.7);
  /* Fade on all four sides inside the box: the mask cuts at the box edge, so the fade must finish before it, not after. */
  /* Vertical fade is eased (smoothstep stops), not linear: a linear ramp shows a visible line where it ends, most obvious under a saturated bottom edge. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0, rgba(0,0,0,.04) 2%, rgba(0,0,0,.16) 4%, rgba(0,0,0,.32) 6%, rgba(0,0,0,.5) 8%, rgba(0,0,0,.68) 10%, rgba(0,0,0,.84) 12%, rgba(0,0,0,.96) 14%, #000 16%, #000 84%, rgba(0,0,0,.96) 86%, rgba(0,0,0,.84) 88%, rgba(0,0,0,.68) 90%, rgba(0,0,0,.5) 92%, rgba(0,0,0,.32) 94%, rgba(0,0,0,.16) 96%, rgba(0,0,0,.04) 98%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0, rgba(0,0,0,.04) 2%, rgba(0,0,0,.16) 4%, rgba(0,0,0,.32) 6%, rgba(0,0,0,.5) 8%, rgba(0,0,0,.68) 10%, rgba(0,0,0,.84) 12%, rgba(0,0,0,.96) 14%, #000 16%, #000 84%, rgba(0,0,0,.96) 86%, rgba(0,0,0,.84) 88%, rgba(0,0,0,.68) 90%, rgba(0,0,0,.5) 92%, rgba(0,0,0,.32) 94%, rgba(0,0,0,.16) 96%, rgba(0,0,0,.04) 98%, transparent 100%);
  mask-composite: intersect;
  transition: opacity 1400ms var(--ease-out); }
.video__stage.is-glowing .video__glow { opacity: 0.55; }
:root[data-theme="light"] .video__stage.is-glowing .video__glow { opacity: 0.38; }
.video__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: linear-gradient(135deg, var(--plum-700), var(--ink-800)); }
.video__frame video, .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video__poster { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; cursor: pointer; background: transparent center / cover no-repeat; color: #FAFAFA; }
.video__play { display: grid; place-items: center; width: 5rem; height: 5rem; padding-left: 0.2rem; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-size: 1.5rem; transition: transform var(--duration-base) var(--ease-out); }
.video__poster:hover .video__play { transform: scale(1.06); }
.video__pending { position: absolute; inset: 0; display: grid; place-items: center; color: var(--color-text-on-brand-muted); font-family: var(--font-family-mono); font-size: var(--font-size-caption); letter-spacing: var(--tracking-overline); text-transform: uppercase; text-align: center; padding: var(--space-4); }
.video__more { color: var(--color-text-muted); }
.clips { display: grid; gap: var(--space-5); margin-top: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clips .clip:only-child { grid-column: 1 / -1; } }
.clip { display: grid; gap: var(--space-2); }
.clip__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-900); }
.clip__frame video { width: 100%; height: 100%; object-fit: cover; }
.clip__toggle { position: absolute; right: var(--space-3); bottom: var(--space-3); min-height: 2.5rem; padding: 0 var(--space-4); border: var(--border-hairline) solid #8B93A0; border-radius: var(--radius-pill); background: rgb(14 16 19 / 0.72); color: #FAFAFA; font-size: var(--font-size-small); cursor: pointer; }
.clip__toggle:hover { border-color: #FAFAFA; }
.approach { display: grid; gap: var(--space-5); margin-top: var(--space-2); }
.approach > div { display: grid; gap: var(--space-1); padding-top: var(--space-4); border-top: var(--border-hairline) solid var(--color-border); }
.approach > div:first-child { padding-top: 0; border-top: 0; }   /* the block above already draws the full-width line */
.approach dt { font-weight: var(--font-weight-medium); font-size: var(--font-size-h4); letter-spacing: var(--tracking-heading); }
.approach dd { margin: 0; color: var(--color-text-muted); }
.frames { display: grid; gap: var(--space-4); margin-top: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.frame { display: grid; gap: var(--space-2); }
.frame img { width: 100%; height: auto; background: var(--color-bg-raised); }
@media (min-width: 48rem) { .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); } .frame:nth-child(3n + 1) { grid-column: 1 / -1; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: var(--space-6); }
.pillar { display: grid; gap: var(--space-3); padding-top: var(--space-5); border-top: var(--border-hairline) solid var(--color-border-strong); }
.pillar__n { font-family: var(--font-family-mono); font-size: var(--font-size-small); color: var(--color-accent-text); }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--layout-gutter-desktop); } }

/* ---------- Metrics ---------- */
.metrics { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metrics .stat__value { font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); line-height: 1.05; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: 9rem var(--space-7); }
.page-head h1 { max-width: 16ch; }
.page-head .t-lead { margin-top: var(--space-5); max-width: 38rem; }

.company-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--font-size-h3); font-weight: var(--font-weight-medium); letter-spacing: var(--tracking-heading); }


.contact-list { display: grid; gap: var(--space-4); font-size: var(--font-size-h3); font-weight: var(--font-weight-medium); letter-spacing: var(--tracking-heading); }

.draft-note { display: inline-block; margin-bottom: var(--space-5); padding: var(--space-1) var(--space-3); border: var(--border-hairline) dashed var(--color-border-strong); border-radius: var(--radius-pill); font-family: var(--font-family-mono); font-size: var(--font-size-caption); color: var(--color-text-subtle); }

.footer__legal { margin-top: var(--space-5); color: var(--color-text-on-brand-muted); }

/* Footer call to action: "Email me." always starts its own line; its underline is drawn like an After Effects trim path
   (end 0 to 100, 80% influence in and out), and redraws every time the footer comes back into view (site.js). */
.footer__cta-lead, .footer__cta-action { display: block; }
.footer__cta .footer__mail { position: relative; display: inline-block; text-decoration: none; }
.footer__cta .footer__mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 3px; border-radius: 2px; background: var(--color-accent-on-brand); }
.js .footer__cta .footer__mail::after { transform: scaleX(0); transform-origin: left center; }
.js .footer__cta .footer__mail.is-drawn::after { transform: scaleX(1); transition: transform 700ms cubic-bezier(0.8, 0, 0.2, 1) 120ms; }   /* leaving the state has no transition: the line resets at once, unseen */
@media (prefers-reduced-motion: reduce) { .js .footer__cta .footer__mail::after { transform: none; transition: none; } }

/* Back to top: a round button with an up arrow */
.footer__links .to-top { width: 2.75rem; height: 2.75rem; min-height: 0; justify-content: center; border-radius: var(--radius-pill); background: var(--color-accent-on-brand); color: var(--color-bg-brand); transition: transform var(--duration-base) var(--ease-out); }
.footer__links .to-top:hover { color: var(--color-bg-brand); text-decoration: none; transform: translateY(-3px); }
.footer__links .to-top svg { display: block; }
@media (prefers-reduced-motion: reduce) { .footer__links .to-top:hover { transform: none; } }

/* ---------- Reel dialog ---------- */
.reel { width: min(96vw, 72rem); padding: 0; border: 0; background: var(--ink-950); color: #FAFAFA; overflow: visible; }
.reel::backdrop { background: rgb(14 16 19 / 0.86); }
.reel__frame { aspect-ratio: 16 / 9; width: 100%; background: #000; overflow: hidden; }
.reel__frame iframe { width: 100%; height: 100%; border: 0; }
.reel__close { position: absolute; right: 0; top: -3.25rem; min-height: 2.75rem; padding: 0 var(--space-4); border: var(--border-hairline) solid #8B93A0; border-radius: var(--radius-pill); background: transparent; color: #FAFAFA; cursor: pointer; }
.reel__close:hover { border-color: #FAFAFA; }

/* Scroll reveal: opacity and transform only, off for reduced motion and without JS */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- About: career journey ----------
   One vertical spine. A coral ball follows the scroll position (JS sets --journey-progress), each year lights as the ball passes it
   and the line fills behind it. Every card is already open: the dimming only touches the rail. */
.glance { margin-top: var(--space-8); }
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.journey { --spine-x: 0.5rem; position: relative; margin-top: var(--space-7); }
@media (min-width: 48rem) { .journey { --spine-x: 7.25rem; } }
.journey__spine, .journey__fill { position: absolute; left: var(--spine-x); top: 0; transform: translateX(-50%); }
.journey__spine { bottom: 0; width: 1px; background: var(--color-border-strong); opacity: 0.45; }
.journey__fill { height: var(--journey-progress, 0px); width: 2px; background: var(--color-accent); }
.journey__ball { position: absolute; left: var(--spine-x); top: var(--journey-progress, 0px); z-index: 2; width: 0.875rem; height: 0.875rem; border-radius: var(--radius-pill); background: var(--color-accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgb(232 78 64 / 0.22), 0 0 28px 6px rgb(232 78 64 / 0.4); }
.journey__list { list-style: none; margin: 0; padding: 0; }

.jnode { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: 0 0 var(--space-9) 2.25rem; }
.jnode:last-child { padding-bottom: 0; }
@media (min-width: 48rem) { .jnode { grid-template-columns: 6.25rem minmax(0, 1fr); column-gap: 3.25rem; padding-left: 0; } }
.jnode__dot { position: absolute; left: var(--spine-x); top: 0.95rem; z-index: 1; width: 0.875rem; height: 0.875rem; border-radius: var(--radius-pill); background: var(--color-bg-sunken); border: 2px solid var(--color-border-strong); transform: translateX(-50%); }
.jnode__rail { display: flex; align-items: baseline; gap: var(--space-3); }
@media (min-width: 48rem) { .jnode__rail { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; } }
.jnode__year { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); font-weight: var(--font-weight-light); line-height: 1.1; letter-spacing: var(--tracking-display); color: var(--color-text); }
.jnode__to { font-size: var(--font-size-small); color: var(--color-text-subtle); }
.jnode--mini { padding-bottom: var(--space-8); }
.jnode--mini .jnode__year { font-size: 1.25rem; }

/* Dimmed until the ball reaches them; with no JS or reduced motion every year stays lit */
.js .jnode .jnode__year, .js .jnode .jnode__to { transition: color 500ms var(--ease-out), opacity 500ms var(--ease-out); }
.js .jnode:not(.is-lit) .jnode__year { color: var(--color-text-subtle); opacity: 0.6; }
.js .jnode:not(.is-lit) .jnode__to { opacity: 0.5; }
.js .jnode.is-lit .jnode__dot { background: var(--color-accent); border-color: var(--color-accent); transition: background 400ms var(--ease-out), border-color 400ms var(--ease-out); }
.jnode.is-lit .jnode__year, .jnode--end .jnode__year { color: var(--color-accent-text); }
.js .jnode--end:not(.is-lit) .jnode__year { color: var(--color-text-subtle); }

.jcard__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.jcard h3 { font-size: var(--font-size-h3); font-weight: var(--font-weight-medium); line-height: var(--leading-tight); letter-spacing: var(--tracking-heading); }
.jnode--mini .jcard h3 { font-size: var(--font-size-h4); }
.jcard__role { margin-top: var(--space-1); font-size: var(--font-size-small); color: var(--color-text-muted); }
.jcard > p { max-width: 48rem; color: var(--color-text-muted); }
.jcard__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.jnode--end .jcard h3 { max-width: 28ch; }

.logo-slot { display: inline-grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border: var(--border-hairline) solid var(--color-border-strong); font-size: var(--font-size-small); font-weight: var(--font-weight-medium); letter-spacing: 0.04em; color: var(--color-text-muted); background: var(--color-bg); }
.logo-slot--icon { border-style: solid; color: var(--color-accent-text); }
.logo-slot--wide { width: auto; min-width: 7rem; height: 2.5rem; padding: 0 var(--space-4); letter-spacing: 0; font-weight: var(--font-weight-regular); }
.ph { border-style: dashed; }
.clients { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.wins { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; max-width: 48rem; }
.wins li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.wins .icon { margin-top: 0.1rem; color: var(--color-accent-text); }
.wins li.ph { padding: var(--space-3); border: var(--border-hairline) dashed var(--color-border-strong); color: var(--color-text-subtle); grid-template-columns: 1.5rem minmax(0, 1fr); }

/* UG2 comparison: two bars on the same scale, the short one is the point */
.vs { display: grid; gap: var(--space-3); max-width: 40rem; margin-top: var(--space-6); }
.vs__row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); align-items: baseline; font-size: var(--font-size-small); }
.vs__label { color: var(--color-text-muted); }
.vs__val { font-weight: var(--font-weight-medium); }
.vs__track { grid-column: 1 / -1; grid-row: 2; display: block; height: 0.5rem; }
.vs__bar { display: block; height: 100%; width: var(--w); min-width: 0.4rem; background: var(--color-border-strong); transform-origin: left center; }
.vs__row--win .vs__bar { background: var(--color-accent); }
.vs__row--win .vs__val { color: var(--color-accent-text); }
.js .jnode:not(.is-lit) .vs__bar { transform: scaleX(0); }
.js .jnode.is-lit .vs__bar { transform: none; transition: transform 900ms cubic-bezier(0.1, 0, 0.1, 1) 300ms; }

/* The hand: cards already fanned out like a hand of cards; hovering one lifts it flat */
.hand { display: flex; padding: var(--space-4) 0 var(--space-2) var(--space-2); margin-top: var(--space-5); }
.hcard { --r: 0deg; --y: 0rem; position: relative; flex: none; display: block; width: clamp(7.25rem, 28vw, 13rem); aspect-ratio: 16 / 10; margin-left: -1.75rem; overflow: hidden; background: var(--color-bg-raised); box-shadow: var(--shadow-md); color: inherit; text-decoration: none; transform: translateY(var(--y)) rotate(var(--r)); transform-origin: 50% 100%; transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out); }
.hcard:first-child { margin-left: 0; }
.hcard:nth-child(1) { --r: -5deg; --y: 0.35rem; }
.hcard:nth-child(2) { --r: 0deg; --y: 0rem; }
.hcard:nth-child(3) { --r: 5deg; --y: 0.35rem; }
.hcard:only-child { --r: 0deg; --y: 0rem; }
.hcard:hover, .hcard:focus-visible { z-index: 3; transform: translateY(-0.75rem) rotate(0deg); }
.hcard img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcard__label { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4) var(--space-3) var(--space-2); background: linear-gradient(to top, rgb(14 16 19 / 0.88), transparent); color: #FAFAFA; font-size: var(--font-size-caption); }
.hcard--ph { display: grid; place-content: center; gap: var(--space-2); padding: var(--space-3); border: var(--border-hairline) dashed var(--color-border-strong); background: var(--color-bg); box-shadow: none; text-align: center; font-size: var(--font-size-caption); color: var(--color-text-subtle); }
.ph-tag { justify-self: center; padding: 0 var(--space-2); border: var(--border-hairline) solid var(--color-accent-text); color: var(--color-accent-text); font-size: 0.6875rem; letter-spacing: var(--tracking-overline); text-transform: uppercase; }

.about-tools { margin-top: var(--space-9); }
.about-tools__list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

@media (prefers-reduced-motion: reduce) {
  .hcard, .js .jnode.is-lit .vs__bar, .js .jnode .jnode__year, .js .jnode .jnode__to { transition: none; }
  .js .jnode:not(.is-lit) .vs__bar { transform: none; }
}