/* ==== tokens.css ==== */
/*
  Design tokens. Values taken from the original Webflow CSS
  (see reference/INVENTORY.md, sections 2.4 and 2.5).
  Breakpoints (mobile first, used as literal values in media queries,
  because custom properties cannot be used inside @media):
    phone             <= 599px   (base styles)
    tablet portrait   600–1023px (min-width: 600px)
    tablet landscape  1024–1279px (min-width: 1024px)
    desktop           >= 1280px  (min-width: 1280px)
*/

/* Inter, self-hosted variable font (from @fontsource-variable/inter) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  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;
}

:root {
  /* ---- Colour ---- */
  --color-bg: #0a0a0e;
  --color-surface: #151518;
  --color-surface-2: #1a1a1e;
  --color-accent: #e8622c;
  --color-accent-soft: rgba(232, 98, 44, 0.15);
  --color-text: #fff;

  /* text alphas (white on dark) */
  --text-85: rgba(255, 255, 255, 0.85);
  --text-82: rgba(255, 255, 255, 0.82);
  --text-80: rgba(255, 255, 255, 0.8);
  --text-75: rgba(255, 255, 255, 0.75);
  --text-70: rgba(255, 255, 255, 0.7);
  --text-65: rgba(255, 255, 255, 0.65);
  --text-60: rgba(255, 255, 255, 0.6);
  --text-55: rgba(255, 255, 255, 0.55);
  --text-50: rgba(255, 255, 255, 0.5);
  --text-45: rgba(255, 255, 255, 0.45);
  --text-40: rgba(255, 255, 255, 0.4);
  --text-30: rgba(255, 255, 255, 0.3);

  /* borders / lines */
  --line-card: rgba(255, 255, 255, 0.12);
  --line-divider: rgba(255, 255, 255, 0.1);
  --line-pill: rgba(255, 255, 255, 0.18);
  --line-underline: rgba(255, 255, 255, 0.25);
  --line-hover: rgba(255, 255, 255, 0.35);
  --fill-hover: rgba(255, 255, 255, 0.05);

  /* overlays */
  --overlay-menu: #0a0a0e;
  --overlay-lightbox: rgba(6, 6, 8, 0.94);
  --hero-glow: radial-gradient(circle, rgba(74, 74, 80, 0.28) 0%, rgba(10, 10, 14, 0) 58%);

  /* ---- Typography ---- */
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* fluid scale (min @320px → max @1280px) */
  --fs-display: clamp(2.25rem, 1.5rem + 3.75vw, 4.5rem);   /* 36 → 72  project title */
  --fs-h1: clamp(2rem, 1.667rem + 1.667vw, 3rem);          /* 32 → 48  page title */
  --fs-h2: clamp(1.75rem, 1.417rem + 1.667vw, 2.75rem);    /* 28 → 44  CTA title */
  --fs-h3: clamp(1.125rem, 1.083rem + 0.208vw, 1.25rem);   /* 18 → 20  card title */
  --fs-body-lg: clamp(1rem, 0.979rem + 0.104vw, 1.0625rem);/* 16 → 17  body copy */
  --fs-body: 0.9375rem;   /* 15 */
  --fs-ui: 0.875rem;      /* 14  logo, meta */
  --fs-nav: 0.8125rem;    /* 13  nav link, location, eyebrow */
  --fs-small: 0.75rem;    /* 12  back link, pills */
  --fs-micro: 0.6875rem;  /* 11  footer, tags */

  --lh-tight: 1.05;
  --lh-heading: 1.2;
  --lh-body: 1.7;

  --tracking-logo: 2px;     /* nav logo, eyebrows */
  --tracking-nav: 1px;      /* nav links, page title */
  --tracking-label: 1.5px;  /* footer, back links */
  --tracking-body: 0.3px;

  /* ---- Spacing (fluid) ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: clamp(1.25rem, 1.083rem + 0.833vw, 1.75rem);
  --space-l: clamp(1.5rem, 1.167rem + 1.667vw, 2.5rem);    /* 24 → 40 */
  --space-xl: clamp(2rem, 1.333rem + 3.333vw, 4rem);        /* 32 → 64 */
  --space-2xl: clamp(3rem, 1.917rem + 5.417vw, 6.25rem);            /* 48 → 100 */

  /* page gutter: 20px on phone → 48px on desktop (original: 48px) */
  --gutter: clamp(1.25rem, 0.667rem + 2.917vw, 3rem);
  --container-max: 1200px;      /* list pages */
  --container-narrow: 1100px;   /* project pages */
  --container-text: 720px;

  /* ---- Shape ---- */
  --radius-s: 10px;   /* cards, images, video */
  --radius-m: 12px;   /* role card, about photo */
  --radius-l: 14px;   /* partner card */
  --radius-xl: 16px;  /* mobile hero card */
  --radius-pill: 20px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 0.9, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.35s;
  --dur-slow: 0.55s;

  /* ---- Misc ---- */
  --tap-min: 44px;
  --header-h: 4.5rem;
  --z-header: 100;
  --z-overlay: 90;
  --focus-ring: 2px solid var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
    --dur-slow: 0.01ms;
  }
}

/* ==== base.css ==== */
/* Reset (modern, minimal) + base typography */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background-color: var(--color-bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--weight-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--weight-bold); line-height: var(--lh-heading); text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

::selection { background: var(--color-accent); color: var(--color-text); }

/* ---- Typographic helpers ---- */
.page-title {
  font-size: var(--fs-h1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-nav);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-l);
}

.eyebrow {
  color: var(--color-accent);
  font-size: var(--fs-nav);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  margin-bottom: var(--space-s);
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-80);
  max-width: var(--container-text);
}

.label {
  font-size: var(--fs-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-45);
}

/* ---- Accessibility ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: calc(var(--space-2xs) + env(safe-area-inset-top));
  left: calc(var(--space-2xs) + env(safe-area-inset-left));
  z-index: calc(var(--z-header) + 1);
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 var(--space-s);
  background: var(--color-accent);
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-s);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* ==== layout.css ==== */
/* Layout utilities: container, stack, grid. Mobile first. */

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--text { max-width: calc(var(--container-text) + 2 * var(--gutter)); }

/* Standard page body spacing (original: 60px top, 100px bottom) */
.page {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

/* Vertical rhythm */
.stack > * + * { margin-top: var(--stack-gap, var(--space-s)); }

/* Grid: 1 column on phone, configurable from tablet up.
   Usage: <div class="grid grid--2"> / grid--3 / grid--4 */
.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-m));
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Auto-fit grid for cards: min card width via --grid-min */
.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min, 260px), 100%), 1fr));
}

/* Two-column content + sidebar (e.g. project body: 1fr 320px), stacks below 1024px */
.split {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Visibility helpers by breakpoint */
@media (max-width: 1023px) { .hide-below-lg { display: none !important; } }
@media (min-width: 1024px) { .hide-from-lg { display: none !important; } }

/* ==== nav.css ==== */
/* Global header / navigation
   phone + tablet portrait (<1024px): logo + burger, full-screen overlay menu
   tablet landscape + desktop (>=1024px): logo left · links centred · location right */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-bg);
}

.site-header__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--header-h);
  padding-top: calc(var(--space-2xs) + env(safe-area-inset-top));
  padding-bottom: var(--space-2xs);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(calc(var(--gutter) - 10px), env(safe-area-inset-right));
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-text);
  font-size: var(--fs-ui);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-logo);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-l);
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-text);
  opacity: 0.85;
  font-size: var(--fs-nav);
  letter-spacing: var(--tracking-nav);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.site-nav__link[aria-current="page"] { opacity: 1; color: var(--color-accent); }

.site-header__location {
  color: var(--color-text);
  opacity: 0.55;
  font-size: var(--fs-nav);
  letter-spacing: var(--tracking-nav);
  white-space: nowrap;
}

/* ---- Burger button ---- */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  flex-shrink: 0;
  color: var(--color-text);
  border-radius: var(--radius-s);
}
.menu-toggle .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.menu-toggle__icon { display: inline-flex; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open,
.menu-toggle[aria-expanded="false"] .menu-toggle__icon--close { display: none; }

/* ---- Mobile / tablet portrait (<1024px) ---- */
@media (max-width: 1023px) {
  .js .site-nav,
  .site-header__location { display: none; }

  /* Without JS: no burger, links wrap below the logo */
  .no-js .menu-toggle { display: none; }
  .no-js .site-header__bar { flex-wrap: wrap; row-gap: 0; }
  .no-js .site-nav { width: 100%; }
  .no-js .site-nav__list { column-gap: var(--space-m); }
}

/* ---- Full-screen overlay menu ---- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + var(--space-l));
  padding-bottom: calc(var(--space-l) + env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  background-color: var(--overlay-menu);
  background-image: var(--hero-glow);
  background-repeat: no-repeat;
  background-position: 50% 40%;
  background-size: 140vmax 140vmax;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s;
}

.menu-overlay__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.menu-overlay__link {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--tap-min) + 8px);
  color: var(--color-text);
  font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.75rem);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-nav);
  line-height: 1.1;
  text-decoration: none;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out), color var(--dur-fast);
}
.menu-overlay.is-open .menu-overlay__link { transform: none; opacity: 1; }
.menu-overlay__list li:nth-child(2) .menu-overlay__link { transition-delay: 0.03s, 0.03s, 0s; }
.menu-overlay__list li:nth-child(3) .menu-overlay__link { transition-delay: 0.06s, 0.06s, 0s; }
.menu-overlay__list li:nth-child(4) .menu-overlay__link { transition-delay: 0.09s, 0.09s, 0s; }
.menu-overlay__list li:nth-child(5) .menu-overlay__link { transition-delay: 0.12s, 0.12s, 0s; }
.menu-overlay__link[aria-current="page"] { color: var(--color-accent); }

.menu-overlay__location {
  margin-top: var(--space-xl);
  color: var(--text-55);
  font-size: var(--fs-nav);
  letter-spacing: var(--tracking-nav);
}

/* Scroll lock while the menu is open */
html.is-menu-open,
html.is-menu-open body { overflow: hidden; }

/* ---- Tablet landscape + desktop (>=1024px) ---- */
@media (min-width: 1024px) {
  .site-header { position: relative; background: transparent; }

  .site-header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-top: calc(var(--space-l) + env(safe-area-inset-top));
    padding-bottom: var(--space-l);
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .site-header__logo { justify-self: start; }
  .site-header__location { justify-self: end; }
  .site-nav__list { flex-wrap: nowrap; column-gap: clamp(1.5rem, -0.5rem + 3.125vw, 2.5rem); } /* 24 → 40 */

  .menu-toggle,
  .menu-overlay { display: none !important; }
}

/* ---- Hover (pointer devices only) ---- */
@media (hover: hover) {
  .site-nav__link:hover { opacity: 1; }
  .site-header__logo:hover { color: var(--text-85); }
  .menu-overlay__link:hover { color: var(--color-accent); }
  .menu-toggle:hover { background-color: var(--fill-hover); }
}

/* ==== footer.css ==== */
/* Global footer (original: .hero-footer-row / .imprint-footer, 11px, 1.5px tracking, 45 % white).
   Text uses 47 % white: 45 % gave 4.48:1 on the background, 47 % reaches 4.5:1 (WCAG AA). */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line-divider);
  background-color: var(--color-bg);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xs);
  padding-top: var(--space-m);
  padding-bottom: calc(var(--space-m) + env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.site-footer__text {
  color: rgba(255, 255, 255, 0.47);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-l);
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: rgba(255, 255, 255, 0.47);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer__link[aria-current="page"] { color: var(--text-85); }

@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
  }
}

@media (hover: hover) {
  .site-footer__link:hover { color: var(--text-85); }
}

/* ==== projects.css ==== */
/* Projects (Job C): /all-projects/ grid, project detail page, lightbox.
   Mobile first; breakpoints 600 / 1024 / 1280. */

/* ---------- /all-projects/ ---------- */
.project-grid {
  display: grid;
  gap: var(--space-l) var(--space-m);
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-s);
}
.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--color-surface);
  margin-bottom: var(--space-s);
}
.project-card__media picture,
.project-card__img {
  width: 100%;
  height: 100%;
}
.project-card__img {
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.project-card__category {
  color: var(--color-accent);
  font-size: var(--fs-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--space-3xs);
}
.project-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  margin-bottom: var(--space-3xs);
}
.project-card__meta {
  font-size: var(--fs-nav);
  color: var(--text-55);
}
@media (hover: hover) {
  .project-card:hover .project-card__img { transform: scale(1.04); }
  .project-card:hover .project-card__title { color: var(--text-85); }
}

/* ---------- Project hero ---------- */
.project-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  min-height: 62svh;
  overflow: hidden;
  background: var(--color-surface);
}
@media (min-width: 1024px) {
  .project-hero { min-height: 72vh; min-height: 72svh; }
}
.project-hero > picture {
  position: absolute;
  inset: 0;
}
.project-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 14, 0.95) 0%, rgba(10, 10, 14, 0.35) 45%, rgba(10, 10, 14, 0) 75%);
}
.project-hero__content {
  position: relative;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}
.project-hero__eyebrow {
  color: var(--color-accent);
  font-size: var(--fs-nav);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.project-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-s);
  max-width: 20ch;
  hyphens: auto;
}
.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2xs);
  font-size: var(--fs-ui);
  color: var(--text-80);
}
.project-hero__sep { color: var(--text-45); }

/* ---------- Body: description + info card ---------- */
.project-body {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: minmax(0, 1fr);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
@media (min-width: 1024px) {
  .project-body {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-xl);
    align-items: start;
  }
}
.project-body__text {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-85);
  max-width: var(--container-text);
}
.project-body__text > * + * { margin-top: var(--space-s); }

.project-info {
  border: 1px solid var(--line-card);
  border-radius: var(--radius-m);
  background: var(--color-surface);
  padding: var(--space-m);
}
.project-info__role {
  font-size: 1.1875rem; /* 19px */
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  margin-bottom: var(--space-s);
}
.project-info__line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-2xs) 0;
  border-top: 1px solid var(--line-divider);
  font-size: var(--fs-nav);
}
.project-info__line dt { color: var(--text-50); }
.project-info__line dd { text-align: right; color: var(--text-85); }

/* ---------- Sections: gallery, video, credits ---------- */
.project-section { padding-bottom: var(--space-xl); }
.project-section__title {
  font-size: var(--fs-small);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: var(--space-m);
}

.gallery {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gallery__link {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--color-surface);
  cursor: zoom-in;
}
.gallery__link picture,
.gallery__img {
  width: 100%;
  height: 100%;
}
.gallery__img {
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (hover: hover) {
  .gallery__link:hover .gallery__img { transform: scale(1.03); }
}
.gallery__link:focus-visible { outline-offset: 2px; }

.project-videos {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .project-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.project-credits {
  padding: 0;
  list-style: none;
  font-size: var(--fs-ui);
  line-height: 1.9;
  color: var(--text-75);
}

/* Press: optional list of external articles (title link + muted outlet) */
.project-press {
  padding: 0;
  list-style: none;
  font-size: var(--fs-ui);
  line-height: 1.9;
}
.project-press__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-xs);
}
.project-press__link {
  color: var(--text-75);
  text-decoration: underline;
  text-decoration-color: var(--text-30);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}
.project-press__link:hover { color: var(--color-text); text-decoration-color: currentColor; }
.project-press__icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 0.35em;
  vertical-align: -1px;
  opacity: 0.7;
}
.project-press__outlet { color: var(--text-50); }

/* ---------- Prev / next + back ---------- */
.project-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-s);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line-divider);
}
.project-pager__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  min-height: var(--tap-min);
  padding: var(--space-s);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.project-pager__link--next { text-align: right; align-items: flex-end; grid-column: 2; }
.project-pager__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--fs-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-50);
}
.project-pager__label .icon { width: 14px; height: 14px; }
.project-pager__title {
  font-size: var(--fs-ui);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}
@media (hover: hover) {
  .project-pager__link:hover { border-color: var(--line-hover); background: var(--fill-hover); }
}
.project-back {
  padding-top: var(--space-m);
  padding-bottom: var(--space-2xl);
}
.project-back a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: var(--tap-min);
  font-size: var(--fs-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-70);
}
.project-back a:hover { color: var(--color-text); }
.project-back .icon { width: 16px; height: 16px; }

/* ---------- Lightbox ---------- */
.lightbox-open, .lightbox-open body { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-lightbox);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: calc(var(--tap-min) + var(--space-s) + env(safe-area-inset-top)) var(--space-2xs) calc(var(--space-xl) + env(safe-area-inset-bottom));
}
@media (min-width: 600px) {
  .lightbox__stage { padding-left: calc(var(--tap-min) + var(--space-m)); padding-right: calc(var(--tap-min) + var(--space-m)); }
}
.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity var(--dur-fast);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox.is-loading .lightbox__img { opacity: 0.4; }
.lightbox__counter {
  position: absolute;
  bottom: calc(var(--space-s) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-nav);
  letter-spacing: var(--tracking-nav);
  color: var(--text-60);
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: 50%;
  color: var(--color-text);
  background: rgba(10, 10, 14, 0.5);
  opacity: 0.8;
  transition: opacity var(--dur-fast), background-color var(--dur-fast);
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close {
  top: calc(var(--space-2xs) + env(safe-area-inset-top));
  right: calc(var(--space-2xs) + env(safe-area-inset-right));
}
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: calc(var(--space-2xs) + env(safe-area-inset-left)); }
.lightbox__next { right: calc(var(--space-2xs) + env(safe-area-inset-right)); }
/* Phones: arrows at the bottom corners so they do not cover the photo */
@media (max-width: 599px) {
  .lightbox__prev, .lightbox__next {
    top: auto;
    bottom: calc(var(--space-2xs) + env(safe-area-inset-bottom));
    transform: none;
  }
}

/* ==== home.css ==== */
/* Home page: project fan hero.
   Geometry ported 1:1 from the Webflow embed (webflow/hero-fan.html).
   Two modes:
   - static (default, mobile first): phones, tablets, touch devices, windows < 1024px.
     The whole fan is shown, scaled to the width, every strip is a link. No animation.
   - interactive: (hover: hover) and (min-width: 1024px). Strips fly to the centre on
     hover/focus and the info panel appears (src/assets/js/fan.js).
   The stage is always 1100x900 "fan pixels" and is scaled with transform: scale(). */

/* ---- Background: dark + radial glow + SVG noise (original .hero-section) ---- */
body.is-home {
  background-color: var(--color-bg);
  background-image:
    var(--hero-glow),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100vh, 160px 160px;
  background-size: 100% 100dvh, 160px 160px;
  background-blend-mode: normal, screen;
}

/* The hero row already carries the tagline: avoid printing it twice in the global footer. */
.is-home .site-footer__text { display: none; }
@media (min-width: 600px) {
  .is-home .site-footer__inner { justify-content: flex-end; }
}

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  font-weight: var(--weight-medium);
}

/* ======================================================================
   Strips (shared by both modes)
   ====================================================================== */
.fan-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 900px;
  transform-origin: center center;
}

.strip {
  position: absolute;
  top: var(--t, 0);
  left: var(--l, 0);
  width: 39px;
  height: 165px;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  filter: grayscale(10%) brightness(0.85);
  opacity: 0.95;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

/* The clip layer carries the pill shape, so the link itself can have a larger hit area. */
.strip__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.strip.side-left  .strip__clip { clip-path: path("M0,19.5 A19.5,19.5 0 1 1 39,19.5 L26.5,158 A7,7 0 1 1 12.5,158 L0,19.5 Z"); }
.strip.side-right .strip__clip { clip-path: path("M12.5,7 A7,7 0 1 1 26.5,7 L39,145.5 A19.5,19.5 0 1 1 0,145.5 L12.5,7 Z"); }
.strip.side-left.grow,  .strip.side-right.grow  { height: 176.5px; }
.strip.side-left.grow2, .strip.side-right.grow2 { height: 196.4px; }
.strip.side-left.grow3, .strip.side-right.grow3 { height: 188.9px; }
.strip.side-left.grow   .strip__clip { clip-path: path("M0,19.5 A19.5,19.5 0 1 1 39,19.5 L26.5,169.5 A7,7 0 1 1 12.5,169.5 L0,19.5 Z"); }
.strip.side-right.grow  .strip__clip { clip-path: path("M12.5,7 A7,7 0 1 1 26.5,7 L39,157 A19.5,19.5 0 1 1 0,157 L12.5,7 Z"); }
.strip.side-left.grow2  .strip__clip { clip-path: path("M0,19.5 A19.5,19.5 0 1 1 39,19.5 L26.5,189.4 A7,7 0 1 1 12.5,189.4 L0,19.5 Z"); }
.strip.side-right.grow2 .strip__clip { clip-path: path("M12.5,7 A7,7 0 1 1 26.5,7 L39,176.9 A19.5,19.5 0 1 1 0,176.9 L12.5,7 Z"); }
.strip.side-left.grow3  .strip__clip { clip-path: path("M0,19.5 A19.5,19.5 0 1 1 39,19.5 L26.5,181.9 A7,7 0 1 1 12.5,181.9 L0,19.5 Z"); }
.strip.side-right.grow3 .strip__clip { clip-path: path("M12.5,7 A7,7 0 1 1 26.5,7 L39,169.4 A19.5,19.5 0 1 1 0,169.4 L12.5,7 Z"); }

.strip img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--rot, 0deg)));
}
.strip.crop-fix   img { width: 300px; transform: translate(-50%, -68%) rotate(calc(-1 * var(--rot, 0deg))); }
.strip.crop-fix-2 img { width: 300px; transform: translate(-50%, -42%) rotate(calc(-1 * var(--rot, 0deg))); }
.strip.crop-fix-3 img { width: 280px; transform: translate(-50%, -50%) rotate(calc(-1 * var(--rot, 0deg))); }
.strip.crop-fix-4 img { width: 280px; transform: translate(-35%, -65%) rotate(calc(-1 * var(--rot, 0deg))); }

.strip.center {
  width: 65px;
  height: 860px;
  border-radius: 32.5px;
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  z-index: 2;
}
.strip.center .strip__clip { clip-path: none; }
.strip.center img { width: 1090px; }

.strip:focus-visible { outline: none; }
.strip:focus-visible .strip__clip { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* ======================================================================
   Static mode (default): phones, tablets, touch, < 1024px
   ====================================================================== */
.fan-wrap {
  padding-top: var(--space-s);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Crop box around the visible fan, in stage pixels (measured from the geometry with
   Playwright): x 191..907, y 68..792 -> 716 x 724. Its centre sits 1.5px left of and
   20.5px above the stage centre, hence the extra translate. */
.fan-box {
  position: relative;
  width: min(100%, 760px, calc((100vh - var(--header-h) - 2rem) * 716 / 724));
  width: min(100%, 760px, calc((100dvh - var(--header-h) - 2rem) * 716 / 724));
  aspect-ratio: 716 / 724;
  margin-inline: auto;
  overflow: hidden;
  container-type: inline-size;
}
/* Tablets in landscape (static mode, not phones: min-height): the fan box and the
   VIEW ALL PROJECTS button (52px + 2 x --space-m padding) fit in one screen together.
   --home-header-h is the measured header height (fan.js), --space-s the wrap's top padding. */
@media (hover: none) and (orientation: landscape) and (min-height: 500px),
       (max-width: 1023.98px) and (orientation: landscape) and (min-height: 500px) {
  .fan-box {
    width: min(100%, 760px, calc((100vh - var(--home-header-h, var(--header-h)) - var(--space-s) - 52px - 2 * var(--space-m)) * 716 / 724));
    width: min(100%, 760px, calc((100dvh - var(--home-header-h, var(--header-h)) - var(--space-s) - 52px - 2 * var(--space-m)) * 716 / 724));
  }
}
.fan-box .fan-stage {
  width: 1100px;
  /* scale = box width / crop width; fan.js sets --fan-scale where tan(atan2()) is unsupported */
  --fan-scale: tan(atan2(100cqw, 716px));
  transform: translate(-50%, -50%) scale(var(--fan-scale, 0.45)) translate(1.5px, 20.5px);
}

/* Enlarged, invisible tap area (in stage pixels, before scaling) */
.strip::after {
  content: "";
  position: absolute;
  inset: -16px -7px;
}
.strip.center::after { inset: -10px -12px; }
.strip:active { filter: grayscale(0%) brightness(1.1); opacity: 1; }

.hero-info { display: none; }

/* ---- Video stencil (phones/tablets, only when homeFan.mobileVideo is set) ----
   The strips are hidden and one link covers the fan box. Its background (poster) and
   the <video> are masked by an SVG of the 21 strip shapes (--fan-mask, lib/fanMask.js),
   so the video only shows through the fan; the rest stays the dark page background.
   Same condition as "not interactive mode" below; desktop never renders this. */
.fan-video { display: none; }
@media (hover: none), (max-width: 1023.98px) {
  .fan-box.has-video .fan-stage { display: none; }
  .fan-video {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--fan-poster) center / cover no-repeat;
    -webkit-mask-image: var(--fan-mask);
            mask-image: var(--fan-mask);
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-tap-highlight-color: transparent;
  }
  .fan-video__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }
  .fan-video:active { opacity: 0.85; }
  /* The mask would clip a focus ring on the link itself, so draw it on the box. */
  .fan-box.has-video:has(.fan-video:focus-visible) { overflow: visible; outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 4px; }
}

.home-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-m) max(var(--gutter), env(safe-area-inset-right)) var(--space-m) max(var(--gutter), env(safe-area-inset-left));
}
.home-feature__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  min-height: 52px;
  padding: var(--space-xs) var(--space-l);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-logo);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.home-feature__all:active { background-color: var(--color-accent-soft); }

.hero-footer-row {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2xs) var(--space-m);
  padding: var(--space-s) max(var(--gutter), env(safe-area-inset-right)) var(--space-s) max(var(--gutter), env(safe-area-inset-left));
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  line-height: 1.5;
}
.hero-footer-row span { color: rgba(255, 255, 255, 0.47); } /* 47 %: >= 4.5:1, see footer.css */
.hero-footer-row__archive {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--text-85);
  text-decoration: none;
}
/* In static mode the big VIEW ALL PROJECTS button already does this job */
.hero-footer-row__archive { display: none; }

/* ======================================================================
   Interactive mode: desktop / pointer devices with hover, >= 1024px
   ====================================================================== */
@media (hover: hover) and (min-width: 1024px) {
  .home-hero {
    /* header height (nav.css: 2 x --space-l padding + 44px links); fan.js refines it */
    height: calc(100vh - var(--home-header-h, calc(2 * var(--space-l) + var(--tap-min))));
    height: calc(100dvh - var(--home-header-h, calc(2 * var(--space-l) + var(--tap-min) + env(safe-area-inset-top))));
    min-height: 420px;
    overflow: hidden;
  }

  .fan-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    container-type: size;
  }
  .fan-box {
    position: absolute;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    margin: 0;
    overflow: visible;
    container-type: normal;
  }
  /* Same as the original fitToViewport(): stage = min(wrap - 80px, 1100px) wide,
     scale = min(1, wrapH / 900, wrapW / 1100) */
  .fan-box .fan-stage {
    width: min(100cqw - 80px, 1100px);
    --fan-scale: min(1, tan(atan2(100cqh, 900px)), tan(atan2(100cqw, 1100px)));
    transform: translate(-50%, -50%) scale(var(--fan-scale, 0.8));
  }

  .strip {
    cursor: pointer;
    transition:
      top var(--dur-slow) var(--ease-out), left var(--dur-slow) var(--ease-out),
      width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out), border-radius 0.4s ease,
      filter var(--dur-base) ease, opacity var(--dur-base) ease, box-shadow var(--dur-base) ease;
  }
  .strip__clip { transition: clip-path 0.4s ease, border-radius 0.4s ease; }
  .strip img { transition: width var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .strip::after { content: none; }

  .strip:hover { filter: grayscale(5%) brightness(0.95); opacity: 1; }
  .fan-stage.is-hovering .strip.center { opacity: 0; }

  .strip.is-flying {
    top: 50% !important;
    left: 50% !important;
    /* fan.js (sizeFlying): about 12 % wider than the fan, 16:9; 640x360 without JS */
    width: var(--fly-w, 640px) !important;
    height: var(--fly-h, 360px) !important;
    border-radius: 10px !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
    filter: grayscale(0%) brightness(1) !important;
    opacity: 1 !important;
    z-index: 20 !important;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  }
  .strip.is-flying .strip__clip { clip-path: none !important; }
  .strip.is-flying img {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    object-fit: cover;
  }

  /* reduced motion: no flying, the strip only lights up */
  .strip.is-active {
    filter: grayscale(0%) brightness(1.1) !important;
    opacity: 1 !important;
    z-index: 3;
  }

  .hero-info {
    display: block;
    position: absolute;
    right: 6%;
    top: 50%;
    max-width: 280px;
    opacity: 0;
    transform: translateY(-50%) translateX(14px);
    transition: opacity var(--dur-base) ease, transform var(--dur-base) ease, visibility 0s linear var(--dur-base);
    visibility: hidden;
    pointer-events: none;
    z-index: 25;
  }
  .hero-info.is-shown {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
    transition: opacity var(--dur-base) ease, transform var(--dur-base) ease, visibility 0s;
  }
  .hero-info__title { color: var(--color-text); font-size: 32px; font-weight: var(--weight-semibold); letter-spacing: 1px; line-height: 1.15; margin-bottom: 10px; }
  .hero-info__meta { color: var(--text-60); font-size: 13px; letter-spacing: 1px; line-height: 1.4; margin-bottom: 4px; }
  .hero-info__meta:empty { display: none; }
  .hero-info__view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-top: 22px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.25s ease;
    pointer-events: auto;
  }
  .hero-info__view:hover { background-color: var(--color-accent-soft); }

  .home-feature { display: none; }

  .hero-footer-row { flex-wrap: nowrap; padding: 16px 40px; }
  .hero-footer-row__archive { display: inline-flex; min-height: 0; }
  .hero-footer-row__archive:hover { color: var(--color-text); }
}

@media (hover: hover) and (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .strip, .strip__clip, .strip img, .hero-info, .hero-info.is-shown { transition: none; }
}

@media (hover: hover) {
  .home-feature__all:hover { background-color: var(--color-accent-soft); }
}

/* ==== pages.css ==== */
/*
  Pages: About, Videos, Partners, Contact, Imprint, Privacy, 404
  plus the reusable two-click YouTube component (.yt-consent).
  Mobile first; breakpoints as in tokens.css (600 / 1024 / 1280).
  Values follow the original Webflow CSS (reference/INVENTORY.md 3.3–3.6).
*/

/* ---------- Shared: section heading, pills, cards, buttons ---------- */

.section-heading {
  color: var(--text-45);
  font-size: var(--fs-nav);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  border-top: 1px solid var(--line-divider);
  padding-top: var(--space-xl);
  margin-bottom: var(--space-m);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.pill {
  color: var(--text-85);
  font-size: var(--fs-small);
  letter-spacing: 0.5px;
  line-height: 1.3;
  border: 1px solid var(--line-pill);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
}

.card-grid {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
}
@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.info-card {
  border: 1px solid var(--line-card);
  border-radius: var(--radius-s);
  padding: var(--space-m);
}
.info-card__title {
  color: var(--color-accent);
  font-size: var(--fs-small);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.info-card__title--service {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}
.info-card__role {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  margin-bottom: 0.625rem;
}
.info-card__tag {
  color: var(--text-40);
  font-size: var(--fs-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.info-card__desc {
  color: var(--text-65);
  font-size: 0.84375rem; /* 13.5px */
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 1.5rem;
  border: 1px solid var(--line-hover);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.button:hover { background-color: var(--fill-hover); border-color: var(--color-text); }
.button--accent { background-color: var(--color-accent); border-color: var(--color-accent); }
.button--accent:hover { background-color: #f07240; border-color: #f07240; }

/* ---------- About ---------- */

.about-hero {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: var(--space-2xl);
}
.about-hero__photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-m);
  background-color: var(--color-surface);
}
@media (min-width: 768px) {
  .about-hero { grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-xl); }
}
@media (min-width: 1024px) {
  .about-hero { grid-template-columns: 340px minmax(0, 1fr); gap: 3.5rem; }
}
.about-hero__name {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.25rem); /* 32 → 52 */
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: var(--space-m);
}
.about-hero__bio {
  color: var(--text-80);
  font-size: var(--fs-body-lg);
  max-width: 560px;
  margin-bottom: var(--space-m);
}

.about-section { margin-bottom: var(--space-l); }

.timeline {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  padding: 0;
}
@media (min-width: 600px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l); }
}
.timeline__item { display: flex; flex-direction: column; }
.timeline__year {
  color: var(--color-accent);
  font-size: 1.375rem;
  font-weight: var(--weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-2xs);
}
.timeline__title { font-size: var(--fs-body); font-weight: var(--weight-semibold); line-height: 1.4; }
.timeline__sub { color: var(--text-50); font-size: var(--fs-nav); }

.contact-cta {
  text-align: center;
  border-top: 1px solid var(--line-divider);
  margin-top: var(--space-xl);
  padding-top: var(--space-2xl);
}
.contact-cta__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  max-width: 22ch;
  margin: 0 auto var(--space-l);
}
.contact-cta__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs) var(--space-l);
}
@media (min-width: 600px) {
  .contact-cta__links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
.contact-cta__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--text-80);
  font-size: var(--fs-ui);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-cta__link {
  background-image: linear-gradient(var(--line-underline), var(--line-underline));
  background-size: 100% 1px;
  background-position: 0 calc(100% - 10px);
  background-repeat: no-repeat;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-cta__link:hover { color: var(--color-accent); }

/* ---------- Videos + reusable two-click YouTube facade ---------- */

.videos-intro { margin-bottom: var(--space-l); }

.video-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-m); }
}
@media (min-width: 1024px) {
  .video-grid { gap: var(--space-xl) 2rem; }
}
.video-card__title {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  margin-top: var(--space-xs);
  margin-bottom: 0.25rem;
}
.video-card__artist { color: var(--text-55); font-size: var(--fs-nav); }

.yt-consent {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-s);
  background-color: var(--color-surface);
}
.yt-consent__thumb,
.yt-consent__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-consent__thumb {
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
  filter: brightness(0.8);
}
.yt-consent__play,
.yt-consent__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
}
.yt-consent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(10, 10, 14, 0.72);
  border: 1px solid var(--line-hover);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.yt-consent__icon .icon { width: 1.5rem; height: 1.5rem; margin-left: 3px; fill: currentColor; }
.yt-consent__play:hover .yt-consent__icon,
.yt-consent__play:focus-visible .yt-consent__icon,
.yt-consent__fallback:hover .yt-consent__icon {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.06);
}
.yt-consent:hover .yt-consent__thumb { filter: brightness(0.65); }
.yt-consent__play:focus-visible { outline-offset: -4px; }
.yt-consent__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem var(--space-s) var(--space-xs);
  background: linear-gradient(to top, rgba(10, 10, 14, 0.85), rgba(10, 10, 14, 0));
  color: var(--text-75);
  font-size: var(--fs-micro);
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}
.yt-consent__note a { pointer-events: auto; color: var(--color-text); }
.yt-consent__note a:hover { color: var(--color-accent); }

/* JS on: two-click button. JS off: plain link to YouTube (opens a new tab). */
.yt-consent__fallback { display: none; }
.no-js .yt-consent__play { display: none; }
.no-js .yt-consent__fallback { display: flex; }

/* ---------- Partners ---------- */

.partner-grid {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px) {
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-s); }
}
@media (min-width: 1024px) {
  .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); }
}
.partner-grid > li { display: flex; min-width: 0; }

.partner-card {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8.5rem;
  padding: var(--space-l) var(--space-s) 2.5rem;
  color: var(--color-text);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-l);
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
@media (min-width: 1024px) {
  .partner-card { min-height: 11.875rem; padding: 2.5rem var(--space-m); }
}
.partner-card:hover,
.partner-card:focus-visible {
  border-color: var(--line-hover);
  background-color: var(--fill-hover);
}

.partner-card__logo {
  display: block;
  width: auto;
  height: 3rem;
  max-width: min(100%, 180px);
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--dur-base) var(--ease-out);
}
@media (min-width: 1024px) {
  .partner-card__logo { height: 4rem; }
}
.partner-card:hover .partner-card__logo { opacity: 1; }

/* Logos turned into white marks on the dark card */
.partner-card__logo--silhouette { filter: brightness(0) invert(1); }
.partner-card__logo--screen { filter: grayscale(1) brightness(1.8) contrast(1.1); mix-blend-mode: screen; }
.partner-card__logo--invert-screen { filter: grayscale(1) invert(1) contrast(1.2); mix-blend-mode: screen; }
.partner-card__logo--mono { filter: grayscale(1) contrast(1.05); }
/* square / round marks need more height than wordmarks */
.partner-card__logo[src$="keinemusik.png"],
.partner-card__logo[src$="fusion-festival.webp"],
.partner-card__logo[src$="yard.jpg"],
.partner-card__logo[src$="spacyal.png"] { height: 4.5rem; }
@media (min-width: 1024px) {
  .partner-card__logo[src$="keinemusik.png"],
  .partner-card__logo[src$="fusion-festival.webp"],
  .partner-card__logo[src$="yard.jpg"],
  .partner-card__logo[src$="spacyal.png"] { height: 5.5rem; }
}
/* card without a link (empty url in partners.json): no hover frame */
.partner-card--nolink:hover {
  border-color: var(--line-card);
  background-color: rgba(255, 255, 255, 0.02);
}

.partner-card__name {
  position: absolute;
  left: var(--space-2xs);
  right: var(--space-2xs);
  bottom: var(--space-s);
  color: var(--text-70);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-logo);
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere; /* long names (FOUNDATION.BERLIN) on narrow phones; partners.njk adds <wbr> after dots */
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.partner-card:hover .partner-card__name,
.partner-card:focus-visible .partner-card__name { opacity: 1; }
/* Touch devices without hover: show names permanently */
@media (hover: none) {
  .partner-card__name { opacity: 1; }
}
.partner-card__name--static {
  position: static;
  opacity: 1;
  color: var(--color-text);
  font-size: var(--fs-ui);
  font-weight: var(--weight-semibold);
}

/* ---------- Contact ---------- */

.contact .lead { margin-bottom: var(--space-xl); }
.contact__layout {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .contact__layout:has(.contact__form:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.contact__email {
  display: inline-block;
  font-size: clamp(1.125rem, 0.25rem + 4vw, 3rem); /* 18 → 48 */
  font-weight: var(--weight-bold);
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--line-underline);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  padding-block: var(--space-2xs);
  margin-bottom: var(--space-l);
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}
.contact__email:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.contact__list {
  display: grid;
  gap: 0;
  max-width: 36rem;
  border-top: 1px solid var(--line-divider);
}
.contact__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-s);
  min-height: 3.5rem;
  border-bottom: 1px solid var(--line-divider);
}
.contact__row dd { margin: 0; color: var(--text-85); font-size: var(--fs-body-lg); }
.contact__row dd a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  text-decoration: none;
}
.contact__row dd a:hover { color: var(--color-accent); }

/* ---------- Legal pages (imprint, privacy) ---------- */

.legal { color: var(--text-80); font-size: var(--fs-body-lg); }
.legal .page-title { color: var(--color-text); }
.legal h2 {
  color: var(--color-text);
  font-size: var(--fs-h3);
  margin-top: var(--space-l);
  margin-bottom: var(--space-2xs);
}
.legal p, .legal ul, .legal address { margin-bottom: var(--space-s); }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.25rem; }
.legal address { font-style: normal; }
.legal a { color: var(--color-text); text-decoration-color: var(--line-underline); overflow-wrap: anywhere; }
.legal a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.legal code { font-size: 0.9em; color: var(--text-85); }
.legal__meta { color: var(--text-50); font-size: var(--fs-nav); }

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.not-found__title { font-size: var(--fs-display); line-height: var(--lh-tight); }
.not-found .lead { margin-bottom: var(--space-l); }
.not-found__links { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
