/* ===== fabianmofid.de — Shared Swiss Minimal Design System ===== */

@view-transition {
  navigation: auto;
}

:root {
  /* Color system — Default / Brand Light (Snowy White + Red-Orange + Yellow Punk) */
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111111;
  --muted: #555555;
  --line: rgba(17, 17, 17, 0.16);
  --accent: #111111;
  --accent-ink: #fafafa;
  --brand-crimson: #ff3b1d;
  --brand-block-bg: #ff3b1d;
  --brand-block-ink: #fafafa;
  --brand-spark: #eeff33;
  --brand-spark-ink: #111111;
  --film-sand: #f2ece1;
  --film-mocha: #2b3126;
  --film-watermelon: #ff5c77;
  --film-watermelon-ink: #d63353;
  --nav-link-color: #fafafa;
  --nav-link-hover: rgba(250, 250, 250, 0.78);

  /* Spacing & layout */
  --maxw: 1120px;
  --pad: clamp(24px, 5vw, 60px);
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 18px;
  --gap-lg: 24px;
  --gap-xl: clamp(28px, 4vw, 40px);
  --nav-pill-pad: 8px 11px;
  --hero-badge-size: clamp(190px, 19vw, 280px);
  --hero-badge-overlap: calc(var(--hero-badge-size) * 0.52);

  /* Type scale */
  --font-ui: "Plus Jakarta Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-0: clamp(12px, .85vw, 14px);
  --fs-1: clamp(14px, 1vw, 16px);
  --fs-2: clamp(16px, 1.2vw, 18px);
  --fs-3: clamp(20px, 2.2vw, 28px);
  --fs-4: clamp(28px, 3.5vw, 40px);
  --fs-5: clamp(36px, 5vw, 64px);

  /* Shape & elevation */
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
}

/* Brand Dark Mode */
body.theme-dark {
  color-scheme: dark;
  --bg: #141413;
  --surface: #1c1c1a;
  --text: #fafafa;
  --muted: #a8a8a3;
  --line: rgba(250, 250, 250, 0.16);
  --accent: #ff4e33;
  --accent-ink: #141413;
  --brand-crimson: #ff4e33;
  --brand-block-bg: #9e210e;
  --brand-block-ink: #fafafa;
  --nav-link-color: #fafafa;
  --nav-link-hover: rgba(238, 255, 51, 0.92);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .55);
}

/* Film Light Mode (Soft Sand + Mocha Green + Watermelon Pink) */
body.page-film {
  --bg: #f2ece1;
  --surface: #faf6ee;
  --text: #2b3126;
  --muted: #5a6252;
  --line: rgba(43, 49, 38, 0.2);
  --accent: #2b3126;
  --accent-ink: #f2ece1;
  --brand-crimson: #d63353;
  --film-block-bg: #2b3126;
  --film-block-ink: #f2ece1;
}

/* Film Dark Mode (Deep Mocha + Soft Sand + Watermelon Pink) */
body.page-film.theme-dark {
  --bg: #1d221a;
  --surface: #252c21;
  --text: #f2ece1;
  --muted: #b6b2a6;
  --line: rgba(242, 236, 225, 0.18);
  --accent: #ff5c77;
  --accent-ink: #1d221a;
  --brand-crimson: #ff5c77;
  --film-block-bg: #141812;
  --film-block-ink: #f2ece1;
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-1);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  letter-spacing: .01em;
}

/* Headings */
h1, h2, h3 { margin: 0 0 var(--gap-sm); }
h1 { font-family: var(--font-display); font-size: var(--fs-5); line-height: 1.03; }
h2 { font-family: var(--font-ui); font-size: var(--fs-4); line-height: 1.1; }
h3 { font-family: var(--font-ui); font-size: var(--fs-3); line-height: 1.15; }

/* Text helpers */
.small { font-size: var(--fs-2); color: var(--muted); }
.meta { color: var(--muted); font-size: var(--fs-2); letter-spacing: .01em; }

/* Layout */
.container { width: min(var(--maxw), 100%); margin: 0 auto; padding-inline: var(--pad); }
section { min-height: 100svh; display: grid; place-items: center; padding-block: clamp(72px, 12vh, 120px); }
.section-inner { width: 100%; }

/* ===== NAVIGATION & PATH SWITCHER ===== */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-inline: var(--pad);
  --nav-ink: #ffffff;
  --nav-ink-muted: rgba(255, 255, 255, 0.72);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease, color .22s ease;
}

.nav--sticky {
  position: fixed;
}

.nav.is-scrolled {
  --nav-ink: var(--text);
  --nav-ink-muted: var(--muted);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: color-mix(in oklab, var(--line) 22%, transparent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.theme-dark .nav.is-scrolled {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.nav .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding-inline: 0;
  width: 100%;
  max-width: none;
}

.nav__left {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  min-width: 0;
}

.brand {
  font-weight: 800;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  color: var(--nav-ink);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s ease, color .2s ease;
  view-transition-name: site-brand;
}
a.brand:hover { opacity: .82; }
a.brand:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.brand__tag {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  padding-left: 14px;
  margin-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}
@media (max-width: 760px) {
  .brand__tag { display: none; }
}

/* Segmented Brand / Film Switcher */
.path-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease;
  view-transition-name: path-switcher;
}

.nav.is-scrolled .path-switch {
  background: color-mix(in oklab, var(--text) 6%, transparent);
  border-color: color-mix(in oklab, var(--line) 28%, transparent);
}

.path-switch__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: background .22s cubic-bezier(.16, 1, .3, 1), color .22s ease, transform .2s ease;
  white-space: nowrap;
}

.path-switch__item:hover {
  color: #ffffff;
}

.nav.is-scrolled .path-switch__item {
  color: var(--muted);
}
.nav.is-scrolled .path-switch__item:hover {
  color: var(--text);
}

.path-switch__item[aria-current="page"] {
  background: #fafafa;
  color: #111111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

body.page-brand .path-switch__item[aria-current="page"] {
  background: var(--brand-spark);
  color: var(--brand-spark-ink);
}

/* Film top nav over flat Soft Sand hero (Mocha Green ink in Light, Soft Sand in Dark) */
body.page-film .nav {
  --nav-ink: var(--text);
  --nav-ink-muted: var(--muted);
}
body.page-film .path-switch {
  background: color-mix(in oklab, var(--text) 7%, transparent);
  border-color: color-mix(in oklab, var(--text) 20%, transparent);
}
body.page-film .path-switch__item {
  color: var(--muted);
}
body.page-film .path-switch__item:hover {
  color: var(--text);
}
body.page-film .path-switch__item[aria-current="page"] {
  background: var(--film-watermelon);
  color: #1d221a;
  box-shadow: none;
}
body.page-film .lang-switch__btn[aria-pressed="true"],
body.page-film .theme-toggle[aria-pressed="true"] {
  background: color-mix(in oklab, var(--text) 10%, transparent);
  color: var(--text);
}

.nav.is-scrolled .path-switch__item[aria-current="page"] {
  background: var(--text);
  color: var(--surface);
}
body.page-brand .nav.is-scrolled .path-switch__item[aria-current="page"] {
  background: var(--brand-block-bg);
  color: var(--brand-block-ink);
}
body.page-film .nav.is-scrolled .path-switch__item[aria-current="page"] {
  background: var(--film-watermelon);
  color: #1d221a;
}

.path-switch__item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav ul {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav ul a {
  display: inline-block;
  padding: var(--nav-pill-pad);
  border-radius: 10px;
  color: var(--nav-ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-1);
  transition: color .2s ease, opacity .2s ease;
}

.nav ul a:hover,
.nav ul a[aria-current="true"] {
  color: var(--nav-ink);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav ul { display: none; }
  .nav .container { height: 60px; }
  .path-switch__item { padding: 5px 11px; font-size: 11px; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 0;
  border-radius: 10px;
}

.lang-switch__btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--nav-ink-muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.lang-switch__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--nav-ink);
}

.nav.is-scrolled .lang-switch__btn[aria-pressed="true"] {
  background: color-mix(in oklab, var(--text) 10%, transparent);
  color: var(--text);
}

.lang-switch__btn:hover { color: var(--nav-ink); }
.lang-switch__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: 6px 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--nav-ink);
  font-size: var(--fs-1);
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease, background .2s ease;
}
.theme-toggle[aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); }
.nav.is-scrolled .theme-toggle[aria-pressed="true"] { background: color-mix(in oklab, var(--text) 10%, transparent); }
.theme-toggle:hover { opacity: .82; }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.theme-toggle__icon { font-size: 1.05em; line-height: 1; }

@media (max-width: 480px) {
  .brand { font-size: 15px; }
  .lang-switch { margin-left: 0; }
  .lang-switch__btn { padding: 5px 6px; font-size: 12px; }
  .theme-toggle { padding: 5px 6px; }
}

/* ===== SPLIT GATEWAY (index.html — Flat Brand Red-Orange / Film Soft Sand) ===== */
body.page-gateway {
  --gw-highlight: #ff3b1d;     /* Red-Orange (Brand ground & Film highlight) */
  --gw-yellow-punk: #eeff33;   /* Brand Yellow Punk highlight */
  --gw-watermelon: #ff5c77;    /* Film Watermelon Pink highlight */
  --gw-brand-bg: #ff3b1d;      /* Brand Red-Orange ground */
  --gw-brand-ink: #fafafa;     /* Brand Snowy White ink */
  --gw-film-bg: #f2ece1;       /* Film Soft Sand ground */
  --gw-film-ink: #2b3126;      /* Film Mocha Green ink */
  --gw-seal-ink: #2b3126;      /* Center seal legible on both Red-Orange & Soft Sand */
  background: var(--gw-film-bg);
  color: var(--gw-film-ink);
  overflow-x: hidden;
}

body.page-gateway.theme-dark {
  --gw-brand-bg: #9e210e;      /* Dark mode Brand deep red-orange */
  --gw-brand-ink: #fafafa;     /* Dark mode Brand snowy white ink */
  --gw-film-bg: #1d221a;       /* Dark mode Film deep mocha */
  --gw-film-ink: #f2ece1;      /* Dark mode Film soft sand ink */
  --gw-seal-ink: #f2ece1;
}

/* Gateway top bar & legal bar contrast across Brand (left) & Film (right) */
body.page-gateway .nav {
  --nav-ink: var(--gw-film-ink);
  --nav-ink-muted: color-mix(in oklab, var(--gw-film-ink) 68%, transparent);
}

body.page-gateway .nav .lang-switch__btn[aria-pressed="true"],
body.page-gateway .nav .theme-toggle[aria-pressed="true"] {
  background: color-mix(in oklab, var(--gw-film-ink) 10%, transparent);
}

body.page-gateway .nav .brand {
  color: var(--gw-brand-ink);
}

body.page-gateway .nav .brand__tag {
  color: color-mix(in oklab, var(--gw-brand-ink) 74%, transparent);
  border-left-color: color-mix(in oklab, var(--gw-brand-ink) 28%, transparent);
}

.gateway-shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.gateway {
  position: relative;
  flex: 1 1 auto;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: grid-template-columns .58s cubic-bezier(.16, 1, .3, 1);
  isolation: isolate;
}

@media (min-width: 901px) {
  .gateway:has(.gateway__pane--brand:is(:hover, :focus-visible)) {
    grid-template-columns: 1.08fr 0.92fr;
  }
  .gateway:has(.gateway__pane--film:is(:hover, :focus-visible)) {
    grid-template-columns: 0.92fr 1.08fr;
  }
}

.gateway__pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(92px, 13vh, 140px) clamp(28px, 5.5vw, 80px) clamp(64px, 10vh, 104px);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  outline: none;
  transition: background-color .35s ease, color .35s ease;
}

/* Brand pane: Flat Red-Orange + Snowy White */
.gateway__pane--brand {
  background-color: var(--gw-brand-bg);
  color: var(--gw-brand-ink);
  border-right: 1px solid color-mix(in oklab, var(--gw-brand-ink) 18%, transparent);
}

/* Film pane: Flat Soft Sand + Mocha Green */
.gateway__pane--film {
  background-color: var(--gw-film-bg);
  color: var(--gw-film-ink);
}

.gateway__inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  transition: opacity .42s cubic-bezier(.16, 1, .3, 1), transform .48s cubic-bezier(.16, 1, .3, 1);
}

/* Reciprocal focus dimming */
.gateway:has(.gateway__pane:is(:hover, :focus-visible)) .gateway__pane:not(:hover):not(:focus-visible) .gateway__inner {
  opacity: 0.36;
  transform: translateY(2px) scale(0.985);
}

.gateway__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(14px, 2vh, 22px);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gateway__index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gw-highlight);
}
.gateway__pane--brand .gateway__index {
  color: var(--gw-yellow-punk);
}

.gateway__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.2;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), background-color .28s ease, border-color .28s ease;
}

/* Brand micro-spark: Yellow Punk with crisp black ink */
.gateway__pane--brand .gateway__pill {
  background-color: var(--gw-yellow-punk);
  color: #111111;
}

/* Film tag: Watermelon Pink highlight pill with crisp dark ink */
.gateway__pane--film .gateway__pill {
  background-color: var(--gw-watermelon);
  color: #1d221a;
}

.gateway__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(64px, 10.2vw, 158px);
  line-height: .88;
  letter-spacing: -0.045em;
  margin: 0;
  color: currentColor;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), letter-spacing .42s cubic-bezier(.16, 1, .3, 1);
}

.gateway__pane:is(:hover, :focus-visible) .gateway__title {
  transform: translateY(-3px);
  letter-spacing: -0.035em;
}

.gateway__rule {
  width: 64px;
  height: 3px;
  background-color: var(--gw-highlight);
  margin: clamp(18px, 2.5vh, 28px) 0;
  transform-origin: left center;
  transition: width .42s cubic-bezier(.16, 1, .3, 1);
}
.gateway__pane--brand .gateway__rule {
  background-color: var(--gw-yellow-punk);
}
.gateway__pane:is(:hover, :focus-visible) .gateway__rule {
  width: 128px;
}

.gateway__scope {
  margin: 0 0 clamp(22px, 3.2vh, 34px);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  max-width: 40ch;
  transition: color .3s ease, opacity .3s ease;
}
.gateway__pane--brand .gateway__scope {
  color: color-mix(in oklab, var(--gw-brand-ink) 84%, transparent);
}
.gateway__pane--film .gateway__scope {
  color: color-mix(in oklab, var(--gw-film-ink) 74%, transparent);
}
.gateway__pane:is(:hover, :focus-visible) .gateway__scope {
  color: currentColor;
}

.gateway__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: currentColor;
  padding-bottom: 5px;
  border-bottom: 1px solid color-mix(in oklab, currentColor 32%, transparent);
  transition: border-color .28s ease, color .28s ease;
}
.gateway__pane:is(:hover, :focus-visible) .gateway__cta {
  border-bottom-color: var(--gw-highlight);
}
.gateway__pane--brand:is(:hover, :focus-visible) .gateway__cta {
  border-bottom-color: var(--gw-yellow-punk);
}

.gateway__cta-arrow {
  display: inline-block;
  color: var(--gw-highlight);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
}
.gateway__pane--brand .gateway__cta-arrow {
  color: var(--gw-yellow-punk);
}
.gateway__pane:is(:hover, :focus-visible) .gateway__cta-arrow {
  transform: translateX(7px);
}

.gateway__pane:focus-visible {
  box-shadow: inset 0 0 0 3px var(--gw-highlight);
}
.gateway__pane--brand:focus-visible {
  box-shadow: inset 0 0 0 3px var(--gw-yellow-punk);
}

/* Center Rotating Emblem — Enlarged & Evenly Filled 360° */
.gateway__seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(164px, 16vw, 232px);
  aspect-ratio: 1;
  z-index: 4;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.gateway:has(.gateway__pane:is(:hover, :focus-visible)) .gateway__seal {
  opacity: 0.25;
  transform: translate(-50%, -50%) scale(0.94);
}
.gateway__seal svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gateway__seal text {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  fill: var(--gw-seal-ink);
}

/* Whisper-quiet Gateway legal bar */
.gateway-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: color-mix(in oklab, var(--gw-brand-ink) 68%, transparent);
  pointer-events: none;
}
.gateway-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in oklab, var(--gw-film-ink) 52%, transparent);
  pointer-events: auto;
}
.gateway-footer a {
  color: color-mix(in oklab, var(--gw-film-ink) 68%, transparent);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}
.gateway-footer a:hover,
.gateway-footer a:focus-visible {
  color: var(--gw-film-ink);
  text-decoration: underline;
  outline: none;
}

/* Gateway Entrance Choreography */
@media (prefers-reduced-motion: no-preference) {
  .gateway__pane--brand .gateway__inner {
    animation: fadeUpBlur .9s cubic-bezier(.16, .84, .18, 1) .06s both;
  }
  .gateway__pane--film .gateway__inner {
    animation: fadeUpBlur .95s cubic-bezier(.16, .84, .18, 1) .18s both;
  }
  .gateway__seal svg {
    animation: slowSpin 34s linear infinite;
    transform-origin: 50% 50%;
  }
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  /* Stacked mobile: Top bar sits wholly on Brand (Red-Orange), bottom bar sits wholly on Film (Soft Sand) */
  body.page-gateway .nav {
    --nav-ink: var(--gw-brand-ink);
    --nav-ink-muted: color-mix(in oklab, var(--gw-brand-ink) 76%, transparent);
  }
  body.page-gateway .nav .lang-switch__btn[aria-pressed="true"],
  body.page-gateway .nav .theme-toggle[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.16);
  }
  .gateway {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .gateway__pane--brand {
    border-right: 0;
    border-bottom: 1px solid color-mix(in oklab, var(--gw-brand-ink) 18%, transparent);
    padding: 76px var(--pad) 28px;
  }
  .gateway__pane--film {
    padding: 28px var(--pad) 54px;
  }
  .gateway__title {
    font-size: clamp(52px, 14vw, 84px);
  }
  .gateway__rule {
    margin: 12px 0;
  }
  .gateway__scope {
    margin-bottom: 14px;
    font-size: 14px;
  }
  .gateway__seal {
    display: none;
  }
  .gateway-footer {
    padding-block: 10px;
    font-size: 11px;
    color: color-mix(in oklab, var(--gw-film-ink) 56%, transparent);
  }
}

/* ===== HERO SECTIONS (FLAT BRAND RED-ORANGE & FLAT FILM SOFT SAND) ===== */
.hero {
  overflow: visible;
  isolation: isolate;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: calc(clamp(72px, 12vh, 120px) + 68px);
}

.hero--white-ink { color: #fafafa; }
.hero--white-ink .kicker,
.hero--white-ink .small,
.hero--white-ink .hero-accent { color: #fafafa; }
.hero--white-ink .accent-rule { background: var(--brand-spark); }

/* Brand Hero: Flat Red-Orange + Snowy White + Yellow Punk */
.hero--brand {
  background: var(--brand-block-bg);
  color: var(--brand-block-ink);
  border-bottom-color: color-mix(in oklab, var(--brand-block-ink) 16%, transparent);
}
.hero--brand .hero-kicker {
  background: var(--brand-spark);
  color: var(--brand-spark-ink);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .12em;
}
.hero--brand .accent-rule {
  background: var(--brand-spark);
}
.hero--brand .hero-cta--primary {
  background: var(--brand-spark);
  color: var(--brand-spark-ink);
  box-shadow: none;
}
.hero--brand .hero-cta--primary:hover,
.hero--brand .hero-cta--primary:focus-visible {
  background: #fafafa;
  color: #111111;
}
.hero--brand .hero-cta--ghost {
  color: #fafafa;
  border-bottom-color: rgba(250, 250, 250, 0.5);
}
.hero--brand .hero-cta--ghost:hover,
.hero--brand .hero-cta--ghost:focus-visible {
  border-bottom-color: var(--brand-spark);
}
.hero--brand .hero-cta--ghost .hero-cta__arrow {
  color: var(--brand-spark);
}

/* Film Hero: Flat Soft Sand + Mocha Green + Watermelon Pink */
.hero--film {
  background: var(--bg);
  color: var(--text);
  border-bottom-color: var(--line);
}
.hero--film .hero-kicker {
  background: var(--film-watermelon);
  color: #1d221a;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .12em;
}
.hero--film .hero-accent {
  color: var(--text);
}
.hero--film .hero-sub {
  color: var(--muted);
}
.hero--film .accent-rule {
  background: var(--film-watermelon);
}
.hero--film .hero-cta--primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}
.hero--film .hero-cta--primary:hover,
.hero--film .hero-cta--primary:focus-visible {
  background: var(--film-watermelon);
  color: #1d221a;
}
.hero--film .hero-cta--ghost {
  color: var(--text);
  border-bottom-color: color-mix(in oklab, var(--text) 38%, transparent);
}
.hero--film .hero-cta--ghost:hover,
.hero--film .hero-cta--ghost:focus-visible {
  border-bottom-color: var(--film-watermelon);
  color: var(--text);
}
.hero--film .hero-cta--ghost .hero-cta__arrow {
  color: var(--brand-crimson);
}

.hero .section-inner { min-height: auto; display: block; }
.hero--swiss .container { position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 2; margin-top: 0; }

.hero-grid {
  display: grid;
  align-items: end;
  gap: var(--gap-xl);
  grid-template-columns: 1.2fr auto;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-family: var(--font-ui);
  font-size: clamp(11px, .85vw, 13px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-copy h1 {
  margin-top: 6px;
  font-size: clamp(64px, 11vw, 164px);
  line-height: .88;
  letter-spacing: -0.045em;
}

.hero .hero-lead {
  font-weight: 400;
  font-size: .36em;
  letter-spacing: .00em;
  display: inline-block;
  margin-bottom: .20em;
}

.hero-sub {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  max-width: 54ch;
}

.accent-rule {
  width: clamp(64px, 12vw, 140px);
  height: 3px;
  background: var(--text);
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: clamp(24px, 3vw, 34px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
}

.hero-cta--primary {
  padding: 13px 22px;
  border-radius: 999px;
  background: #fafafa;
  color: var(--brand-crimson);
}
.hero-cta--primary:hover,
.hero-cta--primary:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.hero-cta--ghost {
  padding: 8px 2px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-cta--ghost:hover,
.hero-cta--ghost:focus-visible {
  border-bottom-color: #ffffff;
  opacity: .9;
  outline: none;
}

.hero-cta__arrow {
  display: inline-block;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.hero-cta--primary:hover .hero-cta__arrow { transform: translateY(3px); }
.hero-cta--ghost:hover .hero-cta__arrow { transform: translateX(4px); }

.hero-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  align-self: center;
  overflow: visible;
}
.hero-badge {
  width: var(--hero-badge-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
}
.hero-badge--br {
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  bottom: calc(var(--hero-badge-overlap) * -3);
  z-index: 3;
}
.hero-badge svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  overflow: visible;
}
.hero-badge text {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  fill: var(--text);
}
body.page-brand.theme-dark .hero-badge text {
  fill: var(--brand-spark);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { letter-spacing: -2.5px; }
  .hero-badge--br {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: var(--gap-lg);
  }
  #videos {
    margin-top: var(--gap-lg) !important;
    padding-top: clamp(48px, 10vw, 110px) !important;
  }
}

/* Animations */
@keyframes fadeUpBlur {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroBlurDrift {
  0% { opacity: 0; transform: translateY(36px) scale(.96); filter: blur(18px); }
  70% { opacity: 1; transform: translateY(-6px) scale(1); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes growRule {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .hero-copy h1 span { display: inline-block; will-change: transform, filter; }
  .hero .hero-copy .hero-lead { animation: heroBlurDrift 1.8s cubic-bezier(.16, .84, .18, 1) .05s both; }
  .hero .hero-copy .hero-accent { animation: heroBlurDrift 2.1s cubic-bezier(.16, .84, .18, 1) .25s both; }
  .hero .hero-copy h1 span.hero-accent:nth-of-type(3) { animation-duration: 2.4s; animation-delay: .45s; }
  .hero .hero-copy .hero-sub { animation: fadeUpBlur 1.1s cubic-bezier(.2, .6, .2, 1) .5s both; }
  .hero .accent-rule { transform-origin: left; animation: growRule .9s cubic-bezier(.2, .6, .2, 1) .68s both; }
  .projects-swiss .proj-row { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  .projects-swiss .proj-row.reveal { animation: fadeUpBlur .7s cubic-bezier(.2, .6, .2, 1) var(--row-delay, .05s) both; }
  .inter-quote blockquote { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  .inter-quote.reveal blockquote { animation: fadeUpBlur .8s cubic-bezier(.2, .6, .2, 1) .05s both; }
}

/* Flat Architectural Section Blocks (Brand Red-Orange & Film Mocha Green) */
.section--brand {
  background: var(--brand-block-bg);
  color: var(--brand-block-ink);
}

.section--film-dark {
  background: var(--film-block-bg);
  color: var(--film-block-ink);
}

/* Section Positioning & Titles */
.projects-swiss, .videos, .contact { position: relative; z-index: 0; }
.projects-swiss .container, .videos .container, .contact .container { position: relative; z-index: 1; }
#videos {
  margin-top: calc(var(--hero-badge-overlap) * -0.4);
  padding-top: calc(var(--hero-badge-overlap) * 0.85 + clamp(24px, 4vw, 60px));
}

.section-title--mega {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -8px;
  line-height: .92;
  font-size: clamp(3rem, 12vw, 9rem);
  margin: 0 0 var(--gap-lg);
}
@media (max-width: 640px) {
  .section-title--mega { letter-spacing: -3px; }
}

/* ===== BRAND VIDEOS GRID ===== */
.videos .section-title--mega { margin-bottom: var(--gap-xl); }
.videos .inter-quote { margin-block: clamp(48px, 10vw, 140px); }

.inter-quote { position: relative; z-index: 3; margin-block: 16px; transform: rotate(-5deg); }
.inter-quote .container { display: grid; place-items: center; }
.inter-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--brand-crimson);
  text-align: center;
  text-wrap: balance;
}

.media-169, .vframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f8;
  overflow: hidden;
  border-radius: 4px;
}
body.theme-dark .media-169,
body.theme-dark .vframe {
  background: #161b28;
}
.media-169 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.media-169 video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vframe .vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vframe .play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 28px 0 28px 46px;
  border-color: transparent transparent transparent var(--brand-crimson);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25));
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.vframe:hover .play {
  transform: translate(-46%, -50%) scale(1.06);
}

.videos .grid {
  display: grid;
  gap: clamp(28px, 3.2vw, 44px) var(--gap-md);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) { .videos .grid { grid-template-columns: 1fr; } }

.vcard {
  display: flex;
  flex-direction: column;
  background: #f1f1ef;
  border: 0;
  border-radius: 20px;
  padding: clamp(16px, 2vw, 24px);
  cursor: pointer;
  transition: transform .32s cubic-bezier(.16, 1, .3, 1),
              box-shadow .32s cubic-bezier(.16, 1, .3, 1),
              background-color .25s ease;
}
body.theme-dark .vcard {
  background: #1d1d1b;
}
.vcard:hover,
.vcard:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);
  background: #eaeae6;
  outline: none;
}
body.theme-dark .vcard:hover,
body.theme-dark .vcard:focus-visible {
  background: #242421;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}
.vcard .vframe {
  border-radius: 12px;
}
.vcard .vframe .play {
  display: none;
}
.vcard:hover .case-trigger,
.vcard:focus-visible .case-trigger {
  color: var(--brand-crimson);
}
.vcard:hover .case-trigger__arrow,
.vcard:focus-visible .case-trigger__arrow {
  transform: translateX(5px);
}
.vcard .body {
  margin-top: clamp(10px, 1.8vw, 18px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.vcard .body h3 { margin: 0 0 2px; }
.brand-title {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 12px);
  flex-wrap: wrap;
}
.brand-title__name { color: var(--brand-crimson); font-weight: 800; letter-spacing: -2px; }
.brand-title__divider { color: var(--text); opacity: .7; font-weight: 600; }
.brand-title__type { color: var(--text); font-weight: 600; letter-spacing: -1px; }
.vcard .brand-title--clickable { cursor: pointer; transition: opacity .2s ease; }
.vcard .brand-title--clickable:hover { opacity: .82; }
.vcard .body .meta {
  font-size: var(--fs-2);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.vcard .body p:not(.meta) {
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.7;
  margin: 0 0 auto;
}
.vcard__actions {
  padding-top: 16px;
  margin-top: clamp(14px, 1.8vw, 20px);
  margin-bottom: 4px;
  border-top: 1px solid color-mix(in oklab, var(--line) 24%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: color .2s ease;
}
.case-trigger:hover,
.case-trigger:focus-visible {
  color: var(--brand-crimson);
  outline: none;
}
.case-trigger:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.case-trigger__arrow {
  display: inline-block;
  color: var(--brand-crimson);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.case-trigger:hover .case-trigger__arrow,
.case-trigger:focus-visible .case-trigger__arrow {
  transform: translateX(5px);
}

/* ===== CLIENT LOGOS STRIPE (FLAT RED-ORANGE) ===== */
.clients {
  background: var(--brand-block-bg);
  padding-block: clamp(14px, 2.4vh, 24px);
  min-height: 0;
  display: block;
}
.clients .rail {
  width: 100%;
  margin: 0;
  padding-inline: var(--pad);
  display: flex;
  gap: clamp(12px, 2.4vw, 24px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.clients .rail img {
  flex: 0 0 auto;
  width: auto;
  height: clamp(54px, 7.5vw, 104px);
  max-height: 104px;
  filter: grayscale(100%) brightness(.92) contrast(1.08);
  opacity: .9;
}
.clients img[alt="Atos / Eviden"] { height: clamp(60px, 7.5vw, 90px); }
.clients img[alt="Eviden"] { height: clamp(28px, 3.6vw, 40px); }
.clients img[alt="Palfinger"] { height: clamp(18px, 2.2vw, 24px); }

/* ===== FILM SLATE ROWS ===== */
.projects-swiss .rows { display: grid; gap: 0; }
.projects-swiss .projects-subtitle {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.proj-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 23vw, 275px);
  gap: clamp(24px, 3.6vw, 52px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 0;
}
.projects-swiss .rows > .proj-row:last-child { border-bottom: 0; }
@media (max-width: 960px) {
  .proj-row { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .proj-row .proj-poster { order: -1; max-width: min(280px, 76vw); }
}

.proj-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 50 / 67;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.proj-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--film-watermelon);
  mix-blend-mode: color;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1);
}
.proj-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .35s cubic-bezier(.16, 1, .3, 1);
}
.proj-poster:hover img,
.proj-poster:focus-visible img {
  filter: contrast(1.06) saturate(1.08);
}
.proj-poster:hover::after,
.proj-poster:focus-visible::after {
  opacity: .32;
  box-shadow: inset 0 0 0 2px var(--film-watermelon);
}
.proj-poster:focus-visible { outline: 2px solid var(--brand-crimson); outline-offset: 4px; }

.proj-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.proj-index {
  font-family: var(--font-display);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand-crimson);
}
.proj-status-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1d221a;
  background: var(--film-watermelon);
  padding: 4px 10px;
  border-radius: 999px;
}
.proj-title {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.05;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  margin: 0 0 6px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.proj-title:hover { opacity: .82; }
.proj-title .accent { color: var(--brand-crimson); font-weight: 800; }
.proj-title__type { font-weight: 600; letter-spacing: -1px; color: var(--text); }
.proj-year { font-size: var(--fs-2); color: var(--muted); margin-bottom: 16px; }
.proj-premise { margin: 0 0 20px; max-width: 58ch; }
.proj-premise small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-0);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.proj-premise p {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--text);
}
.proj-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 8px;
  border-top: 0;
}
.proj-request-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-family: var(--font-ui);
  font-size: var(--fs-0);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, var(--line) 50%, transparent);
  cursor: pointer;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.proj-request-btn:hover,
.proj-request-btn:focus-visible {
  color: var(--brand-crimson);
  text-decoration-color: var(--brand-crimson);
  outline: none;
}

.film-quote-band {
  min-height: 0;
  display: block;
  height: clamp(32px, 5vh, 60px);
  padding-block: 0;
}

/* ===== SLIDE-OVER DRAWERS (BRAND & FILM) ===== */
body.case-drawer-open { overflow: hidden; }
.case-drawer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
}
.case-drawer[hidden] { display: none; }
.case-drawer.is-open { pointer-events: auto; visibility: visible; }
.case-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 22, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
}
.case-drawer.is-open .case-drawer__backdrop { opacity: 1; }
.case-drawer__panel {
  position: relative;
  z-index: 1;
  width: min(780px, 94vw);
  height: 100%;
  background: var(--surface);
  color: var(--text);
  border-left: 1px solid color-mix(in oklab, var(--line) 32%, transparent);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
  outline: none;
}
.case-drawer.is-open .case-drawer__panel { transform: translateX(0); }

.case-drawer__topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: 16px clamp(20px, 3.2vw, 40px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 28%, transparent);
  background: var(--surface);
}
.case-drawer__nav { display: flex; align-items: center; gap: 14px; }
.case-drawer__counter {
  font-family: var(--font-display);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}
.case-drawer__steppers { display: inline-flex; align-items: center; gap: 6px; }
.case-drawer__icon-btn {
  appearance: none;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--line) 40%, transparent);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.case-drawer__icon-btn:hover,
.case-drawer__icon-btn:focus-visible {
  border-color: var(--brand-crimson);
  color: var(--brand-crimson);
  outline: none;
}
.case-drawer__close {
  appearance: none;
  border: 1px solid color-mix(in oklab, var(--line) 40%, transparent);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.case-drawer__close:hover,
.case-drawer__close:focus-visible {
  border-color: var(--brand-crimson);
  color: var(--brand-crimson);
  outline: none;
}
.case-drawer__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 3.6vw, 44px) clamp(20px, 3.2vw, 40px) clamp(36px, 5vw, 56px);
}
.case-drawer__hero { margin-bottom: clamp(20px, 2.6vw, 28px); }
.case-drawer__eyebrow { margin-bottom: 12px; }
.case-drawer__type-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-spark-ink);
  background: var(--brand-spark);
  padding: 5px 11px;
  border-radius: 999px;
}
body.page-film .case-drawer__type-pill {
  background: var(--film-watermelon);
  color: #1d221a;
}
.case-drawer__title {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  line-height: 1.05;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.case-drawer__name { color: var(--brand-crimson); }
.case-drawer__divider { color: var(--muted); font-weight: 400; opacity: .6; }
.case-drawer__client { color: var(--text); font-weight: 600; letter-spacing: -1px; }
.case-drawer__summary {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}
.case-drawer__media { margin-bottom: clamp(22px, 2.8vw, 32px); }
.case-drawer__vframe { border-radius: 6px; cursor: pointer; }

.film-drawer__hero-grid {
  display: grid;
  grid-template-columns: clamp(145px, 22vw, 195px) minmax(0, 1fr);
  gap: clamp(18px, 2.8vw, 28px);
  align-items: start;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.film-drawer__hero-grid .case-drawer__hero { margin-bottom: 0; }
.film-drawer__poster {
  width: 100%;
  aspect-ratio: 50 / 67;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.film-drawer__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.film-materials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.film-material-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--line) 36%, transparent);
  background: color-mix(in oklab, var(--text) 4%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
}

.case-drawer__dossier {
  display: flex;
  flex-direction: column;
  border-top: 1px solid color-mix(in oklab, var(--line) 32%, transparent);
}
.case-dossier__row {
  border-bottom: 1px solid color-mix(in oklab, var(--line) 24%, transparent);
  padding-block: clamp(18px, 2.2vw, 24px);
}
.case-dossier__row--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  align-items: start;
}
.case-dossier__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-dossier__num { font-family: var(--font-display); color: var(--brand-crimson); font-weight: 700; }
.case-dossier__text {
  margin: 0;
  font-size: clamp(14.5px, 1vw, 15.5px);
  line-height: 1.65;
  color: var(--text);
}
.case-dossier__block--feature {
  padding-left: clamp(14px, 1.8vw, 20px);
  border-left: 3px solid var(--brand-crimson);
}
.case-dossier__text--lead {
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.65;
  max-width: 64ch;
}
.case-drawer__footer {
  padding-top: clamp(20px, 2.4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.case-drawer__footer-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.case-drawer__footer-prompt { margin: 0; font-size: var(--fs-2); font-weight: 600; color: var(--text); }
.case-drawer__cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand-crimson);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, opacity .2s ease;
}
body.page-film .case-drawer__cta {
  background: var(--film-watermelon);
  color: #1d221a;
}
.case-drawer__cta:hover,
.case-drawer__cta:focus-visible {
  opacity: .9;
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 768px) {
  .case-drawer { align-items: flex-end; }
  .case-drawer__panel {
    width: 100%;
    height: 94dvh;
    border-left: 0;
    border-top: 1px solid color-mix(in oklab, var(--line) 32%, transparent);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .case-drawer.is-open .case-drawer__panel { transform: translateY(0); }
  .case-dossier__row--two { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .film-drawer__hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .film-drawer__poster { max-width: 185px; }
}

/* ===== ABOUT & WRITER BIO ===== */
.about {
  border-top: 0;
  padding-block: clamp(56px, 10vh, 120px);
  min-height: 0;
  display: block;
}
.about h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: var(--gap-lg);
  letter-spacing: -4px;
}
@media (max-width: 600px) { .about h2 { letter-spacing: -2px; } }
.about .cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); }
@media (max-width: 960px) { .about .cols { grid-template-columns: 1fr; } }
.about p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: var(--gap-md);
}
.about .about-subtitle {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(18px, 1.25vw, 23px);
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--text);
  max-width: 55ch;
  margin: 16px 0 var(--gap-lg);
}
.about .list { list-style: none; padding: 0; margin: 0; }
.about .list + .heading { margin-top: var(--gap-xl); }
.about .list li { padding: 10px 0; font-size: var(--fs-1); line-height: 1.45; }
.about .list li strong { font-weight: 700; display: block; }
.about .list li .small { font-size: var(--fs-0); color: var(--muted); display: block; margin-top: 4px; }
.about .list li .small-location { color: var(--text); font-weight: 600; }

.about-cols { gap: clamp(32px, 4vw, 56px); align-items: start; }
.about-intro { display: flex; flex-direction: column; gap: var(--gap-lg); }

.about-roadmap__list {
  --timeline-gap: clamp(32px, 5vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--timeline-gap);
}
.about-roadmap__step {
  position: relative;
  padding-left: 32px;
  font-size: var(--fs-1);
  color: var(--text);
}
.about-roadmap__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px; left: 5px;
  width: 2px;
  height: calc(100% + var(--timeline-gap) - 12px);
  background: var(--line);
  border-radius: 2px;
  z-index: 1;
}
.about-roadmap__step::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text);
  transition: transform .3s, border-color .3s, background .3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  z-index: 2;
}
.about-roadmap__step:last-of-type::before {
  width: 16px; height: 16px;
  left: -2px; top: 4px;
  background: var(--brand-crimson);
  border-color: var(--brand-crimson);
  box-shadow: 0 8px 20px rgba(139, 15, 20, .25);
}
.about-roadmap__step:hover::before,
.about-roadmap__step:focus-visible::before {
  transform: scale(1.3);
}
.about-roadmap__label {
  display: block;
  line-height: 1.4;
  max-width: 320px;
  transition: transform .3s ease;
}
.about-roadmap__step:hover .about-roadmap__label { transform: translateX(6px); }
.about-roadmap__step:last-of-type .about-roadmap__label {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand-crimson);
  font-size: clamp(18px, 1.2vw, 22px);
}

.about-education-block {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-xl);
}
.about-further__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-lg);
}
@media (max-width: 900px) {
  .about-education-block { grid-template-columns: 1fr; }
  .about-further__grid { grid-template-columns: 1fr; }
}

/* Writer's Bio Layout (/film/) */
.about--writer .writer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .about--writer .writer-grid { grid-template-columns: 1fr; }
}
.writer-bio__lead {
  font-size: clamp(20px, 1.6vw, 25px) !important;
  line-height: 1.58 !important;
  color: var(--text) !important;
  max-width: 48ch !important;
  margin: 0 0 20px !important;
}
.writer-bio__body {
  font-size: clamp(16px, 1.2vw, 18px) !important;
  line-height: 1.72 !important;
  color: var(--muted) !important;
  max-width: 56ch !important;
  margin: 0 !important;
}
.writer-dossier {
  border-top: 2px solid var(--brand-crimson);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.writer-dossier__kicker {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.writer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== BUTTONS & CONTACT ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  font-size: var(--fs-1);
  text-decoration: none;
  background: var(--text);
  color: var(--accent-ink);
  border: 1px solid var(--text);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.linkedin-btn {
  margin-top: var(--gap-md);
  background: transparent;
  border-color: rgba(250, 250, 250, 0.45);
  color: #fafafa;
}
.linkedin-btn:hover {
  background: var(--brand-spark);
  border-color: var(--brand-spark);
  color: var(--brand-spark-ink);
}
.section--film-dark .linkedin-btn:hover {
  background: var(--film-watermelon);
  border-color: var(--film-watermelon);
  color: #1d221a;
}

.contact { min-height: 0; padding-block: clamp(64px, 8vh, 96px); }
.contact .section-inner { display: block; }
.contact h2 {
  text-align: left;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: var(--gap-lg);
  letter-spacing: -4px;
}
@media (max-width: 600px) { .contact h2 { letter-spacing: -2px; } }
.contact .wrap {
  display: grid;
  gap: var(--gap-xl);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start;
}
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }

form { display: grid; gap: var(--gap-sm); }
#contactForm { gap: var(--gap-md); margin-top: var(--gap-md); }
#contactForm .field { display: flex; flex-direction: column; gap: 6px; }
#contactForm .field label { font-weight: 600; font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; }
#contactForm .field--textarea textarea { min-height: 180px; }
#contactForm .field--checkbox .checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-0); line-height: 1.4; cursor: pointer; }
#contactForm .field--checkbox input { width: auto; margin-top: 4px; }
#contactForm .form-footer { display: flex; flex-wrap: wrap; gap: var(--gap-sm); align-items: center; }
#contactForm .form-footer .btn { margin-right: var(--gap-sm); cursor: pointer; }
#contactForm .form-footer .btn[disabled] { opacity: .6; cursor: wait; pointer-events: none; }
#contactForm .form-status {
  margin: 0;
  font-size: var(--fs-1);
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  width: 100%;
}
#contactForm .form-status[hidden] { display: none; }
#contactForm .form-status--success { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.14); }
#contactForm .form-status--error { border-color: rgba(255, 220, 220, 0.85); background: rgba(0, 0, 0, 0.32); }
#contactForm input[name="_gotcha"] { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }

.contact.contact--swiss form { background: transparent; border: 0; padding: 0; }
.contact.contact--swiss input,
.contact.contact--swiss textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 2px;
}
.contact.contact--swiss .btn { background: transparent; color: var(--text); border-color: var(--text); }

.contact.contact--white-ink { color: #fafafa; }
.contact.contact--white-ink h2,
.contact.contact--white-ink h3,
.contact.contact--white-ink .small,
.contact.contact--white-ink .text-link { color: #fafafa; }
.contact.contact--white-ink .btn { color: #fafafa; border-color: #fafafa; }
.contact.contact--white-ink .btn:hover { background: var(--brand-spark); border-color: var(--brand-spark); color: var(--brand-spark-ink); }
.contact.section--film-dark.contact--white-ink { color: var(--film-block-ink); }
.contact.section--film-dark.contact--white-ink h2,
.contact.section--film-dark.contact--white-ink h3,
.contact.section--film-dark.contact--white-ink .small,
.contact.section--film-dark.contact--white-ink .text-link,
.contact.section--film-dark.contact--white-ink .contact-quote { color: var(--film-block-ink); }
.contact.section--film-dark.contact--white-ink .btn { color: var(--film-block-ink); border-color: var(--film-block-ink); }
.contact.section--film-dark.contact--white-ink .btn:hover { background: var(--film-watermelon); border-color: var(--film-watermelon); color: #1d221a; }
.contact.contact--white-ink input,
.contact.contact--white-ink textarea {
  color: #fff;
  background: transparent;
  border-bottom-color: color-mix(in oklab, #fff 70%, transparent);
}
.contact.contact--white-ink input:focus-visible,
.contact.contact--white-ink textarea:focus-visible {
  outline: none;
  border-bottom-color: #ffffff;
}
.contact.contact--white-ink input::placeholder,
.contact.contact--white-ink textarea::placeholder { color: color-mix(in oklab, #fff 70%, transparent); }

.contact .contact-quote {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.4;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.contact .contact-quote p { margin: 0; }
.contact .mail-card { display: grid; gap: var(--gap-sm); align-content: start; }
.contact .mail-card .form-lede { margin: 0; font-size: var(--fs-2); color: rgba(255, 255, 255, 0.78); }
.contact .mail-card .btn { justify-self: start; }

/* ===== LEGAL MODALS & FOOTER ===== */
.text-link { color: var(--text); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.legal-content { color: var(--muted); font-size: var(--fs-1); line-height: 1.6; }
.legal-content a { color: var(--text); }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2400;
}
.modal:target,
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal__dialog {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, 92%);
  max-height: 82vh;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 35%, transparent);
}
.modal__header h3 { margin: 0; font-size: var(--fs-3); }
.modal__body { padding: 18px; overflow: auto; max-height: calc(82vh - 58px); }
.modal__close {
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
  padding: 6px 11px;
  border: 1px solid color-mix(in oklab, var(--line) 45%, transparent);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

footer {
  padding: clamp(48px, 6vh, 80px) var(--pad);
  color: var(--muted);
  text-align: center;
  border-top: 1px solid color-mix(in oklab, var(--line) 30%, transparent);
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Auto Dark Mode fallback when no explicit preference is set */
@media (prefers-color-scheme: dark) {
  body.page-gateway:not(.theme-light) {
    --gw-brand-bg: #9e210e;
    --gw-brand-ink: #fafafa;
    --gw-film-bg: #1d221a;
    --gw-film-ink: #f2ece1;
    --gw-seal-ink: #f2ece1;
  }
  body:not(.theme-light) {
    color-scheme: dark;
    --bg: #141413;
    --surface: #1c1c1a;
    --text: #fafafa;
    --muted: #a8a8a3;
    --line: rgba(250, 250, 250, 0.16);
    --accent: #ff4e33;
    --accent-ink: #141413;
    --brand-crimson: #ff4e33;
    --brand-block-bg: #9e210e;
    --brand-block-ink: #fafafa;
    --nav-link-color: #fafafa;
    --nav-link-hover: rgba(238, 255, 51, 0.92);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .45);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .55);
  }
  body.page-film:not(.theme-light) {
    --bg: #1d221a;
    --surface: #252c21;
    --text: #f2ece1;
    --muted: #b6b2a6;
    --line: rgba(242, 236, 225, 0.18);
    --accent: #ff5c77;
    --accent-ink: #1d221a;
    --brand-crimson: #ff5c77;
    --film-block-bg: #141812;
    --film-block-ink: #f2ece1;
  }
}
