/* =========================================================================
   mailo AG — cinematic LIGHT theme · accent #fceb0d (brand yellow)
   One continuous scroll-scrubbed journey through Cologne.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* base — light theme */
  --bg:        #ffffff;
  --bg-soft:   #f5f5f1;
  --bg-elev:   #ffffff;
  --surface:   rgba(20, 22, 28, 0.035);
  --surface-2: rgba(20, 22, 28, 0.06);
  --line:      rgba(20, 22, 28, 0.10);
  --line-2:    rgba(20, 22, 28, 0.17);

  /* ink */
  --ink:    #14161c;
  --ink-2:  #3b4049;
  --muted:  #6a7180;
  --faint:  #9aa0ad;

  /* brand — yellow accent (#fceb0d) */
  --brand:      #fceb0d;            /* fills, buttons, route, highlights */
  --brand-2:    #e6d400;           /* deeper gold for gradients */
  --brand-ink:  #fceb0d;           /* unified with the brand yellow per brand owner */
  --brand-deep: #c9b900;
  --accent:     #fceb0d;
  --danger:     #CB2027;

  --glow: 0 0 38px rgba(252, 235, 13, 0.55);

  /* type */
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   "Bree Serif", Georgia, serif;

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--brand); color: #001018; }

/* atmospheric base — subtle grain + vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(252,235,13,0.10), transparent 55%),
    radial-gradient(80% 60% at 100% 100%, rgba(252,235,13,0.08), transparent 60%);
  mix-blend-mode: screen;
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--wide { --container: 1440px; }
.section { position: relative; padding: clamp(90px, 13vh, 160px) 0; z-index: 3; }
.section--tight { padding: clamp(60px, 8vh, 100px) 0; }

main { position: relative; z-index: 3; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--brand-ink);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.eyebrow--center::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; }
.display {
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.96;
}
h2.title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2); font-weight: 300; line-height: 1.55; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-serif); font-weight: 400; }
/* highlighted words: dark ink with a yellow marker-pen sweep behind */
.grad-text {
  color: var(--ink);
  background: linear-gradient(transparent 58%, rgba(252,235,13,0.85) 58%, rgba(252,235,13,0.85) 92%, transparent 92%);
  padding: 0 0.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(180deg, #fff36a, var(--brand));
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(252,235,13,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { box-shadow: 0 18px 44px -10px rgba(252,235,13,0.7), inset 0 1px 0 rgba(255,255,255,0.5); }

.btn--ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand-ink); color: var(--ink); }

.btn--lg { padding: 1.1em 2em; font-size: 1.02rem; }

/* arrow link */
.alink {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--brand-ink); font-weight: 600; font-size: 0.95rem;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.alink svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.alink:hover { gap: 0.85em; color: #fceb0d; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.hide { transform: translateY(-100%); }
.nav__inner { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.logo { display: inline-flex; align-items: baseline; gap: 0.05em; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.04em; color: var(--ink); }
.logo b { color: var(--brand); font-weight: 800; }
.logo .dot { color: var(--brand); }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  position: relative; padding: 0.55em 0.9em; font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  border-radius: 8px; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0.9em; right: 0.9em; bottom: 0.35em; height: 1px;
  background: var(--brand-ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 0.3rem;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); padding: 0.18em 0; transition: color 0.3s, transform 0.3s; }
.mobile-menu a:hover { color: var(--brand-ink); transform: translateX(8px); }
.mobile-menu .btn { margin-top: 1.4rem; align-self: flex-start; }

/* =========================================================================
   HERO  — cinematic full-bleed video
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.62);
  transform: scale(1.08);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 32%, rgba(255,255,255,0.55) 68%, var(--bg) 100%),
    radial-gradient(110% 80% at 20% 90%, rgba(255,255,255,0.85), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(60px, 9vh, 120px); padding-top: var(--nav-h); }
.hero h1 { max-width: 16ch; margin-top: 0.5rem; }
.hero .lead { max-width: 46ch; margin-top: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.66rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--brand), transparent); animation: scrollPulse 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* location tag on hero */
.geo-tag { position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--nav-h) + 28px); text-align: right; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.geo-tag b { display: block; color: var(--ink); font-size: 0.95rem; letter-spacing: 0.05em; margin-top: 4px; }

/* =========================================================================
   STATS
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-soft); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); position: relative; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat__num .suffix { color: var(--brand-ink); }
.stat__label { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }

/* =========================================================================
   CHAPTER — scroll-scrubbed cinematic journey
   The video frame is driven by scroll position: as you scroll, the camera
   travels from one Cologne location to the next. Each chapter's end frame
   equals the next chapter's start frame for a seamless journey.
   ========================================================================= */
.chapter { position: relative; height: 300vh; }
.chapter--hero { height: 340vh; }
.chapter--journey { height: 660vh; } /* one continuous 17.75s film — long, immersive scrub */
.chapter__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.chapter__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.04) contrast(1.02) brightness(0.99);
}
/* light scrim: keeps the daytime video vivid in the centre/right, but lays a soft
   white wash top (nav), bottom (blend into white page) and bottom-left (caption legibility) */
.chapter__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0) 16%, rgba(255,255,255,0) 38%, rgba(255,255,255,0.55) 70%, var(--bg) 100%),
    radial-gradient(100% 95% at 16% 86%, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.6) 38%, rgba(255,255,255,0.15) 62%, transparent 78%);
}
.chapter__caps { position: absolute; inset: 0; z-index: 2; }
.cap { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; will-change: opacity, transform; }
.cap[data-start="0"] { opacity: 1; } /* first caption visible before JS boots */
.cap--center { align-items: center; }
.cap__inner { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; padding-bottom: clamp(104px, 15vh, 180px); }
.cap--center .cap__inner { padding-bottom: clamp(40px, 6vh, 90px); }
.cap h1 { max-width: 16ch; }
.cap h2 { max-width: 18ch; font-size: clamp(2rem, 5.5vw, 4.4rem); }
.cap .lead { max-width: 46ch; margin-top: 1.5rem; color: var(--ink); }
.cap__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 1.1rem; }
.cap__kicker::before { content: ""; width: 26px; height: 1px; background: var(--brand-ink); }
.cap__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
/* white halo keeps dark caption text legible over the bright daytime video */
.cap h1, .cap h2 { text-shadow: 0 2px 34px rgba(255,255,255,0.7), 0 1px 4px rgba(255,255,255,0.7); }
.cap .lead { color: var(--ink); font-weight: 400; text-shadow: 0 1px 14px rgba(255,255,255,0.95), 0 1px 3px rgba(255,255,255,0.95); }
.cap__kicker { text-shadow: 0 1px 12px rgba(255,255,255,0.9); }

/* historical anecdote note */
.note { margin-top: 1.7rem; max-width: 46ch; display: flex; flex-direction: column; gap: 5px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,0.78); backdrop-filter: blur(8px); border: 1px solid var(--line); border-left: 3px solid var(--brand); box-shadow: 0 14px 36px -20px rgba(0,0,0,0.45); }
.note__tag { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-ink); font-weight: 700; }
.note p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }

/* chapter number watermark */
.chapter__index { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 22px); z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 7rem); color: rgba(20,22,28,0.08); letter-spacing: -0.05em; line-height: 1; }

/* journey route indicator */
.route { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 16px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.route__from { color: var(--muted); white-space: nowrap; }
.route__to { color: var(--ink); white-space: nowrap; }
.route__track { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(20,22,28,0.2); }
.route__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 2px; background: var(--brand); box-shadow: 0 0 14px rgba(252,235,13,0.7); }
.route__dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: var(--glow); z-index: 2; }

/* multi-stop route (single continuous journey) */
.route--multi { bottom: 46px; }
.route--multi .route__track { flex: 1; }
.route__stop { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.route__stop i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid rgba(20,22,28,0.4); }
.route__stop b { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 700; white-space: nowrap; background: rgba(255,255,255,0.72); padding: 2px 7px; border-radius: 5px; }
.route__stop--start { transform: translate(0, -50%); }
.route__stop--start b { left: 0; transform: none; }
.route__stop--end { transform: translate(-100%, -50%); }
.route__stop--end b { left: auto; right: 0; transform: none; }

/* scroll hint (hero chapter only) */
.scroll-hint { position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.scroll-hint .line { width: 2px; height: 42px; background: linear-gradient(var(--brand-ink), transparent); animation: scrollPulse 2.2s var(--ease) infinite; transform-origin: top; }

/* =========================================================================
   PRODUCT CARDS
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(252,235,13,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.45s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card__icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: rgba(252,235,13,0.12); border: 1px solid rgba(252,235,13,0.25); color: var(--brand-ink); margin-bottom: 1.4rem; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4rem; }
.card .tagline { color: var(--brand-ink); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.9rem; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card__no { position: absolute; top: 24px; right: 28px; font-family: var(--font-display); font-weight: 800; color: var(--line-2); font-size: 0.9rem; letter-spacing: 0.1em; }

/* =========================================================================
   PROBLEM / SOLUTION
   ========================================================================= */
.ps-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.ps-cell { background: var(--bg-soft); padding: clamp(22px, 2.6vw, 34px); display: flex; gap: 1rem; align-items: flex-start; }
.ps-cell--problem { color: var(--muted); }
.ps-cell--solution { background: linear-gradient(180deg, rgba(252,235,13,0.06), var(--bg-soft)); }
.ps-cell .mark { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 0.8rem; }
.ps-cell--problem .mark { background: rgba(203,32,39,0.12); color: #ff7a80; }
.ps-cell--solution .mark { background: rgba(252,235,13,0.15); color: var(--brand-ink); }
.ps-cell h4 { font-size: 1.02rem; margin-bottom: 0.2rem; color: var(--ink); }
.ps-cell--solution h4 { color: var(--ink); }
.ps-cell p { font-size: 0.9rem; }
.ps-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.ps-head > div { background: var(--bg-elev); padding: 1rem clamp(22px,2.6vw,34px); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
.ps-head .h-problem { color: var(--faint); }
.ps-head .h-solution { color: var(--brand-ink); }

/* =========================================================================
   SPLIT / FEATURE
   ========================================================================= */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--rev .split__media { order: -1; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.split__media video, .split__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) brightness(1); }
.split__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,0.6)); }
.split .feature-list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink-2); }
.feature-list .tick { flex:none; width: 24px; height: 24px; border-radius: 7px; background: rgba(252,235,13,0.13); color: var(--brand-ink); display:grid; place-items:center; font-size:0.7rem; margin-top:2px; }
.feature-list b { color: var(--ink); font-weight: 600; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testi-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(88vw, 460px); gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  scroll-snap-align: start; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01)); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.testi__quote { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); }
.testi__quote::before { content: "“"; font-family: var(--font-serif); display: block; font-size: 3rem; line-height: 0.6; color: var(--brand-ink); margin-bottom: 0.3rem; }
.testi__who { display: flex; align-items: center; gap: 0.9rem; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #2c2f39, var(--ink)); display:grid; place-items:center; font-weight:700; color:#fff; font-size:0.95rem; border:1px solid var(--line-2); }
.testi__who b { display: block; color: var(--ink); font-size: 0.95rem; }
.testi__who span { font-size: 0.82rem; color: var(--muted); }

/* =========================================================================
   SERVICE PROMISE
   ========================================================================= */
.promise { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 3rem; }
.promise__item { padding: clamp(26px,3vw,38px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .4s, transform .5s var(--ease); }
.promise__item:hover { border-color: var(--brand-ink); transform: translateY(-5px); }
.promise__time { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,3vw,2.6rem); color: var(--brand-ink); letter-spacing: -0.03em; }
.promise__item p { color: var(--ink-2); margin-top: 0.5rem; }

/* =========================================================================
   QUOTE (CEO)
   ========================================================================= */
.quote-block { max-width: 920px; margin-inline: auto; text-align: center; }
.quote-block blockquote { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.4; color: var(--ink); font-weight: 400; }
.quote-block .who { margin-top: 2rem; display: inline-flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.quote-block .who b { color: var(--ink); }
.quote-block .who span { color: var(--brand-ink); font-size: 0.9rem; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(48px, 7vw, 96px) var(--gutter);
  text-align: center; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 50% 0%, rgba(252,235,13,0.16), transparent 55%), var(--bg-soft);
}
.cta__media { position: absolute; inset: 0; z-index: 0; opacity: 0.16; }
.cta__media img, .cta__media video { width:100%; height:100%; object-fit: cover; filter: grayscale(0.15) brightness(1.05); }
.cta__media::after { content:""; position:absolute; inset:0; background: radial-gradient(100% 100% at 50% 40%, rgba(255,255,255,0.4), var(--bg) 85%); }
.cta__inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2rem, 5vw, 4rem); max-width: 18ch; margin-inline: auto; }
.cta .lead { max-width: 52ch; margin: 1.4rem auto 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.4rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { position: relative; z-index: 3; border-top: 1px solid var(--line); background: var(--bg-soft); padding: clamp(60px, 8vh, 100px) 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(30px, 4vw, 60px); }
.footer__brand .logo { font-size: 1.8rem; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); max-width: 34ch; font-size: 0.92rem; }
.footer__col h5 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.footer__col a, .footer__col p { display: block; color: var(--ink-2); font-size: 0.93rem; padding: 0.32em 0; transition: color 0.3s, transform 0.3s; }
.footer__col a:hover { color: var(--brand-ink); transform: translateX(4px); }
.footer__bottom { margin-top: clamp(40px,6vh,70px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--faint); font-size: 0.82rem; }
.footer__bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--ink); }
.footer__badge { display:inline-flex; align-items:center; gap: 0.6rem; padding: 0.5em 0.9em; border:1px solid var(--line); border-radius: 100px; font-size:0.78rem; color: var(--muted); }
.footer__badge .dot { width:7px; height:7px; border-radius:50%; background: var(--brand); box-shadow: var(--glow); }

/* =========================================================================
   PAGE HEADER (interior pages)
   ========================================================================= */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(70px,12vh,150px)) 0 clamp(50px,7vh,90px); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img, .page-hero__media video { width:100%; height:100%; object-fit: cover; filter: saturate(1.03) brightness(1); transform: scale(1.05); }
.page-hero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5) 40%, var(--bg)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 18ch; }
.page-hero .lead { max-width: 56ch; margin-top: 1.4rem; }
.breadcrumb { display:flex; gap:0.5rem; align-items:center; font-size:0.8rem; color: var(--muted); margin-bottom: 1.4rem; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--brand-ink); }

/* prose for legal / text pages */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem,3vw,2.2rem); margin: 2.4rem 0 1rem; }
.prose h3, .prose h4 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 0.9rem; line-height: 1.7; }
.prose a { color: var(--brand-ink); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); }
.prose ul { display: grid; gap: 0.4rem; margin: 0.5rem 0 1.2rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content:""; position:absolute; left:0; top:0.65em; width:6px; height:6px; border-radius:50%; background: var(--brand-ink); }
.prose .divider { height:1px; background: var(--line); margin: 2.4rem 0; border:0; }

/* info cards grid (contact) */
.info-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.info-card { padding: clamp(26px,3vw,38px); border-radius: var(--radius-lg); border:1px solid var(--line); background: var(--surface); transition: border-color .4s, transform .5s var(--ease); }
.info-card:hover { border-color: var(--brand-ink); transform: translateY(-5px); }
.info-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.info-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.info-card a.contact-line { display:block; color:var(--ink); font-weight:600; padding: 0.2em 0; }
.info-card a.contact-line:hover { color: var(--brand-ink); }

/* forms */
.form-card { background: var(--bg-soft); border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px,4vw,48px); }
.field { margin-bottom: 1.2rem; }
.field label { display:block; font-size:0.82rem; color: var(--muted); margin-bottom: 0.45rem; letter-spacing:0.02em; }
.field label .req { color: var(--brand-ink); }
.field input, .field select, .field textarea {
  width:100%; padding: 0.85em 1em; border-radius: 10px; background: rgba(255,255,255,0.03);
  border:1px solid var(--line-2); color: var(--ink); font-family: inherit; font-size: 0.95rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--brand-ink); background: rgba(252,235,13,0.05); box-shadow: 0 0 0 3px rgba(252,235,13,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance:none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238d97a9' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 1em center; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.form-note a { color: var(--brand-ink); }

/* steps */
.steps { counter-reset: step; display:grid; gap: 1.2rem; margin-top: 1.5rem; }
.steps li { position: relative; padding-left: 3.4rem; color: var(--ink-2); }
.steps li::before { counter-increment: step; content: counter(step); position:absolute; left:0; top:-2px; width: 38px; height:38px; border-radius:11px; background: rgba(252,235,13,0.12); border:1px solid rgba(252,235,13,0.3); color: var(--brand-ink); font-weight:700; display:grid; place-items:center; }

/* logos / partners */
.partners { display:flex; flex-wrap:wrap; gap: 0.8rem; }
.partner-chip { padding: 0.7em 1.2em; border:1px solid var(--line); border-radius: 100px; color: var(--ink-2); font-size: 0.9rem; font-weight:500; background: var(--surface); transition: border-color .3s, color .3s; }
.partner-chip:hover { border-color: var(--brand-ink); color:var(--ink); }

/* job listing */
.job { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; padding: clamp(22px,3vw,32px); border:1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .4s, transform .4s var(--ease), background .4s; }
.job:hover { border-color: var(--brand-ink); transform: translateX(6px); background: var(--surface-2); }
.job__meta { display:flex; gap:0.6rem; flex-wrap:wrap; margin-top:0.5rem; }
.job__tag { display:inline-flex; align-items:center; gap:0.45em; font-size:0.78rem; color: var(--muted); padding: 0.32em 0.8em; border:1px solid var(--line); border-radius:100px; }
.job__tag svg { width:0.95em; height:0.95em; color: var(--brand-ink); }

/* refined job cards */
.jobs-list { display:grid; gap: 1.2rem; }
.jobcard { position:relative; display:grid; grid-template-columns: auto 1fr auto; align-items:center; gap: clamp(16px,2.5vw,30px);
  padding: clamp(22px,3vw,34px); border:1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow:hidden; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.jobcard::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--brand); transform: scaleY(0); transform-origin:top; transition: transform .5s var(--ease); }
.jobcard:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 30px 70px -45px rgba(12,14,18,0.5); }
.jobcard:hover::before { transform: scaleY(1); }
.jobcard__icon { width:54px; height:54px; border-radius:14px; display:grid; place-items:center; background: rgba(252,235,13,0.16); border:1px solid rgba(252,235,13,0.3); color: var(--brand-ink); }
.jobcard__icon svg { width:26px; height:26px; }
.jobcard__title { font-size:1.25rem; margin-bottom:0.3rem; }
.jobcard__desc { color: var(--muted); font-size:0.95rem; max-width: 52ch; }
.jobcard__meta { display:flex; gap:0.6rem; flex-wrap:wrap; margin-top:0.9rem; }
.jobcard__cta { white-space:nowrap; }

/* document download cards (Steckbriefe) */
.doc-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.doc-card { display:flex; align-items:center; gap: 1rem; padding: 1.05rem 1.15rem; border:1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .35s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.doc-card:hover { border-color: var(--brand-ink); transform: translateY(-3px); box-shadow: 0 24px 56px -40px rgba(12,14,18,0.5); }
.doc-card__icon { flex:none; width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background: rgba(252,235,13,0.16); border:1px solid rgba(252,235,13,0.28); color: var(--brand-ink); }
.doc-card__icon svg { width:22px; height:22px; }
.doc-card__body { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.doc-card__title { font-weight:600; font-size:0.98rem; color: var(--ink); line-height:1.25; }
.doc-card__meta { font-size:0.76rem; color: var(--muted); letter-spacing:0.02em; }
.doc-card__dl { flex:none; color: var(--faint); transition: color .35s, transform .35s var(--ease); }
.doc-card__dl svg { width:20px; height:20px; }
.doc-card:hover .doc-card__dl { color: var(--brand-ink); transform: translateY(3px); }

/* misc */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline:auto; text-align:center; }
.section-head h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; }
.award { display:inline-flex; align-items:center; gap:0.8rem; padding:0.7em 1.1em; border:1px solid var(--line); border-radius:100px; background: var(--surface); font-size:0.85rem; color: var(--ink-2); }
.award .seal { width:34px; height:34px; border-radius:50%; background: radial-gradient(circle at 30% 30%, var(--accent), #b8a800); display:grid; place-items:center; font-size:0.7rem; color:#3a3300; font-weight:800; }

/* =========================================================================
   ANIMATION — reveal states
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }

/* hero line stagger on load */
.preload [data-hero] { opacity: 0; transform: translateY(40px); }
.hero-in [data-hero] { animation: heroUp 1.1s var(--ease-out) forwards; }
[data-hero="1"] { animation-delay: 0.15s; }
[data-hero="2"] { animation-delay: 0.32s; }
[data-hero="3"] { animation-delay: 0.49s; }
[data-hero="4"] { animation-delay: 0.66s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* page intro curtain */
.curtain { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display:grid; place-items:center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.curtain.gone { opacity: 0; visibility: hidden; }
.curtain__logo { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; color:var(--ink); opacity:0; animation: fadeIn 0.6s var(--ease) 0.1s forwards; }
.curtain__logo b { color: var(--brand-ink); }
.curtain__bar { width: 160px; height: 2px; background: var(--line); margin-top: 1.2rem; overflow: hidden; border-radius: 2px; }
.curtain__bar i { display:block; height:100%; width:40%; background: var(--brand); animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-120%);} 100% { transform: translateX(360%);} }
@keyframes fadeIn { to { opacity: 1; } }

/* =========================================================================
   PERSISTENT CITY BACKGROUND (home)
   The journey video is fixed behind the whole page and scrubbed by overall
   scroll, so the city travels Dom→Altstadt while the content scrolls over it
   on translucent glass panels. Not a tourism map — a living business backdrop.
   ========================================================================= */
body.home { background: #0c0e12; }            /* shows behind the fixed video */
.citybg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0c0e12; }
.citybg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* ONE continuous readability veil across the whole background (no square patches).
   The city stays visible as a soft, living backdrop; text is legible everywhere. */
.citybg__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.56) 10%, rgba(255,255,255,0.56) 85%, rgba(255,255,255,0.72) 100%); }
body.home main { position: relative; z-index: 3; background: transparent; }

/* first screen */
.hero-intro { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 2vh) 0 clamp(90px, 13vh, 160px); }
.hero-intro h1 { margin-top: 0.6rem; }
.hero-intro .lead { max-width: 47ch; margin-top: 1.5rem; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* content sits directly on the uniformly-fogged background — no panels, no squares */
body.home .section { background: transparent; }
/* gentle halos for extra crispness over the moving city */
body.home .section :is(h1, h2, h3, h4, .eyebrow, .lead, .title, blockquote, p, li),
body.home .hero-intro :is(h1, .eyebrow, .lead) { text-shadow: 0 1px 10px rgba(255,255,255,0.72), 0 1px 2px rgba(255,255,255,0.72); }
body.home .card *, body.home .testi *, body.home .form-card *, body.home .info-card *, body.home .ps-cell * { text-shadow: none; }
/* darken small secondary text on home so it reads over the bright backdrop */
body.home .hero-intro .lead, body.home .section .lead { color: var(--ink); font-weight: 400; }
body.home .stat__label { color: var(--ink-2); }
body.home .section .muted { color: var(--ink-2); }

/* STATS: no panel — the numbers live straight on the background */
body.home .stats { background: transparent; border: none; border-radius: 0; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
body.home .stat { background: transparent; padding: 0; }
body.home .stat + .stat { border-left: 1px solid rgba(20,22,28,0.16); padding-left: clamp(14px, 2vw, 30px); }

/* PRODUCT cards: refined glass with an animated yellow accent (not a flat box) */
body.home .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.42));
  backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%);
  border: 1px solid rgba(255,255,255,0.7);
}
body.home .card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
body.home .card:hover::after { transform: scaleX(1); }

/* dense text blocks keep a light, discreet surface for their small type */
body.home .testi, body.home .form-card, body.home .info-card {
  background: rgba(255,255,255,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.6);
}
body.home .promise__item { background: transparent; border-color: rgba(20,22,28,0.16); }
body.home .promise__item:hover { background: rgba(255,255,255,0.5); }
body.home .ps-grid { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.4); }
body.home .ps-cell { background: rgba(255,255,255,0.72); }
body.home .ps-cell--solution { background: rgba(255,248,205,0.74); }
body.home .ps-head > div { background: rgba(255,255,255,0.85); }
body.home .split__media { box-shadow: 0 40px 90px -50px rgba(12,14,18,0.7); }

/* secondary buttons need real contrast over the video → frosted white + yellow edge */
body.home .btn--ghost { background: rgba(255,255,255,0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1.5px solid var(--brand); color: var(--ink); }
body.home .btn--ghost:hover { background: var(--brand); border-color: var(--brand); color: #1c1900; }

/* CTA: no box, just text on the city like everything else */
body.home #kontaktcta .cta { background: transparent; border: none; box-shadow: none; padding: 0; }
body.home #kontaktcta .cta__media { display: none; }

/* footer settles the journey on solid ground */
body.home .footer { position: relative; z-index: 3; background: var(--bg-soft); }

/* discreet location + anecdote, top-right */
.citynote { position: fixed; top: calc(var(--nav-h) + 12px); right: var(--gutter); z-index: 70; max-width: 248px; display: flex; flex-direction: column; gap: 3px; text-align: right; pointer-events: none;
  padding: 9px 13px; border-radius: 12px;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255,255,255,0.5);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.citynote__place { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.citynote__place::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-left: 8px; vertical-align: middle; box-shadow: var(--glow); }
.citynote__fact { font-size: 0.71rem; line-height: 1.45; color: var(--ink-2); }

/* tiny discreet journey progress line, bottom edge */
.cityprogress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 70; background: rgba(20,22,28,0.1); }
.cityprogress__bar { display: block; height: 100%; width: 0; background: var(--brand); box-shadow: 0 0 12px rgba(252,235,13,0.85); }

@media (max-width: 600px) {
  /* dock the location chip to the bottom (clear of headings/stats up top) */
  .citynote { top: auto; bottom: 14px; right: var(--gutter); left: auto; max-width: 64vw; padding: 6px 11px; }
  .citynote__fact { display: none; } /* keep just the location on phones */
  .cityprogress { bottom: 0; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
  .cards, .promise, .info-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .jobcard { grid-template-columns: auto 1fr; }
  .jobcard__cta { grid-column: 1 / -1; justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split--rev .split__media { order: 0; }
  .ps-row, .ps-head { grid-template-columns: 1fr; }
  .ps-head .h-problem { display: none; }
  .ps-cell--problem { display: none; }
  .chapter { height: 260vh; }
  .chapter--hero { height: 280vh; }
}
@media (max-width: 600px) {
  :root { --nav-h: 66px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .jobcard { grid-template-columns: 1fr; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .geo-tag, .hero__scroll, .scroll-hint { display: none; }
  .chapter__index { font-size: 3rem; }
  .cap h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .route__from { display: none; }
  .route { gap: 12px; font-size: 0.6rem; }
  /* avoid label crowding: keep only the start & end stop labels on phones */
  .route--multi .route__stop:not(.route__stop--start):not(.route__stop--end) b { display: none; }
  .route__stop b { font-size: 0.58rem; letter-spacing: 0.06em; padding: 2px 5px; }
  .cap__inner { padding-bottom: clamp(120px, 20vh, 200px); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .preload [data-hero] { opacity: 1 !important; transform: none !important; }
  /* reduced motion: collapse the journey into static stills + stacked captions */
  .chapter { height: auto !important; }
  .chapter__stage { position: relative; height: auto; min-height: 60svh; }
  .chapter__video { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .chapter__caps { position: relative; inset: auto; }
  .cap { position: relative; inset: auto; opacity: 1 !important; transform: none !important; padding: 7vh 0; }
  .cap--center .cap__inner, .cap__inner { padding-bottom: 4vh; }
  .scroll-hint, .route { display: none; }
  .hero__media video { display: none; }
}
