/* =====================================================================
   FLUIDCAR — site.css
   One stylesheet for the whole site, organised in numbered sections.
   ---------------------------------------------------------------------
   COLOUR RULES
   - The seven brand colours (section 1a) are the foundation.
   - Section 1b lists PROPOSED extensions (not yet approved). They are used
     only where a brand colour fails a contrast or role requirement.
   - Components never use raw colours: they use the semantic tokens of
     section 2 (--bg, --text, --muted, --border, --accent ...), which
     change per section tone (.tone-dark, .tone-deep, .tone-light, .tone-mist).
   - Electric Cyan is used only on dark backgrounds. On light backgrounds
     the accent is the proposed Cyan Deep (Electric Cyan fails contrast there).
   ===================================================================== */

/* ---------- 1a. Brand palette (approved, from fluidcar-design-tokens.css) ---------- */
:root {
  --navy:     var(--fc-deep-navy, #07111F);
  --cyan:     var(--fc-electric-cyan, #00C8D7);
  --cloud:    var(--fc-cloud-white, #F4F7FA);
  --metallic: var(--fc-metallic-grey, #AAB7C5);
  --steel:    #162638;
  --slate:    #526779;
  --mist:     #DCE5EC;

/* ---------- 1b. PROPOSED extensions (awaiting approval) ----------
   Cyan Deep      #006A73  accent on light backgrounds (5.90 on Cloud, 4.97 on Mist)
   Border Dark    #6B7E92  control borders on dark (4.53 on Navy, 3.67 on Steel)
   Divider Dark   #24364A  hairlines on dark (decorative)
   Divider Light  #C5D1DB  hairlines on light (decorative)
   Navy 900       #0E1C2C  story panel / resources band (all text >= 8.4:1)        */
  --x-cyan-deep: #006A73;
  --x-border-dark: #6B7E92;
  --x-divider-dark: #24364A;
  --x-divider-light: #C5D1DB;
  --x-navy-900: #0E1C2C;

  /* Overlays derived from Deep Navy only */
  --scrim-strong: rgba(7, 17, 31, 0.88);
  --scrim-soft: rgba(7, 17, 31, 0.45);

  /* Typography: brand fonts first, system fallbacks so the site works without font files */
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Motion by purpose (not one universal limit) */
  --t-micro: 160ms;     /* hover, press, focus feedback */
  --t-ui: 260ms;        /* menu, disclosure */
  --t-reveal: 650ms;    /* one-time content reveal */
  --t-stage: 600ms;     /* story stage cross-fade */
  --t-draw: 1100ms;     /* line drawing inside the active stage */
  --t-cinematic: 1400ms;/* one-time hero settle */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* Layout */
  --util-h: 36px;
  --nav-h: 72px;
  --header-h: calc(var(--util-h) + var(--nav-h));
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(88px, 11vw, 168px);
  --radius: 2px;
}

/* ---------- 2. Semantic tokens per section tone ---------- */
:root, .tone-dark, .tone-deep {
  --bg: var(--navy);
  --surface: var(--steel);
  --text: var(--cloud);
  --text-2: var(--mist);
  --muted: var(--metallic);
  --border: var(--x-border-dark);
  --divider: var(--x-divider-dark);
  --accent: var(--cyan);
  --focus: var(--cyan);
  --btn-bg: var(--cyan);
  --btn-fg: var(--navy);
  --btn-hover-bg: var(--cloud);
  --btn-active-bg: var(--mist);
  --sel-bg: var(--cloud);
  --sel-fg: var(--navy);
}
.tone-deep { --bg: var(--x-navy-900); }
.tone-light, .tone-mist {
  --bg: var(--cloud);
  --surface: var(--mist);
  --text: var(--navy);
  --text-2: var(--steel);
  --muted: var(--slate);
  --border: var(--slate);
  --divider: var(--x-divider-light);
  --accent: var(--x-cyan-deep);
  --focus: var(--navy);
  --btn-bg: var(--navy);
  --btn-fg: var(--cloud);
  --btn-hover-bg: var(--steel);
  --btn-active-bg: var(--slate);
  --sel-bg: var(--navy);
  --sel-fg: var(--cloud);
}
.tone-mist { --bg: var(--mist); --surface: var(--cloud); }
.tone-dark, .tone-deep, .tone-light, .tone-mist { background: var(--bg); color: var(--text); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--cloud);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
html[lang="de"] body { hyphens: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; margin: 0; hyphens: manual; }
h2, h1.as-h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
/* Semantic h2 that keeps the h3 look (heading-hierarchy fix 2026-11-18, same idea as h1.as-h2). */
h2.as-h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* An element marked hidden is always hidden, whatever display a class gives it. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cloud); color: var(--navy); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section-pad) 0; position: relative; }
.block { display: block; }

/* Shared text patterns */
.eyebrow { display: flex; align-items: center; gap: 14px; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow-num::before { display: none; }
.num { font-family: var(--font-mono); color: var(--accent); letter-spacing: 0.08em; }
.eyebrow-num .num::after { content: " /"; color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--text-2); max-width: 40rem; }
.note-line { font-size: 0.95rem; color: var(--muted); border-left: 2px solid var(--border); padding-left: 16px; max-width: 40rem; }
.section-head { max-width: 54rem; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2, .section-head h1.as-h2 { margin-bottom: 24px; }

/* Placeholders (preview mode) */
.ph-tag { display: inline-block; vertical-align: middle; font: 600 0.625rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); border: 1px dashed var(--border); border-radius: var(--radius); padding: 5px 7px; }
.ph-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--muted); border: 1px dashed var(--border); padding: 14px 16px; margin: 0 0 20px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font: 500 0.98rem/1 var(--font-body); color: var(--text); background: transparent; cursor: pointer;
  transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out); }
.btn:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-bg); color: var(--btn-fg); }
.tone-light .btn:hover, .tone-mist .btn:hover { color: var(--cloud); }
.btn:active { background: var(--btn-active-bg); border-color: var(--btn-active-bg); }
.btn-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 4px; transition: border-color var(--t-micro) var(--ease-out); }
.text-link::after { content: "→"; transition: transform var(--t-micro) var(--ease-out); }
.text-link:hover { border-color: var(--text); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- 4. Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--cloud); background: var(--navy); border-bottom: 1px solid var(--x-divider-dark);
  --text: var(--cloud); --muted: var(--metallic); --border: var(--x-border-dark); --divider: var(--x-divider-dark); --focus: var(--cyan); --accent: var(--cyan);
  transition: background-color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out); }
html.js .site-header.at-top { background: linear-gradient(var(--scrim-soft), transparent); border-color: transparent; }
.utility-bar { height: var(--util-h); border-bottom: 1px solid var(--x-divider-dark); }
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.utility-sep { width: 1px; height: 16px; background: var(--x-divider-dark); }
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { margin-right: auto; display: block; flex: none; }
.brand-mark { display: none; }
.main-nav > ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.main-nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); white-space: nowrap; padding: 8px 0; position: relative; transition: color var(--t-micro) var(--ease-out); }
.main-nav a:hover, .main-nav a[aria-current="true"], .main-nav a[aria-current="page"] { color: var(--cloud); }
.main-nav a[aria-current="true"]::after, .main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); }
.main-nav a.nav-cta { color: var(--cloud); border: 1px solid var(--x-border-dark); padding: 10px 18px; border-radius: var(--radius); }
.main-nav a.nav-cta:hover { background: var(--cloud); border-color: var(--cloud); color: var(--navy); }
.main-nav a.nav-cta[aria-current="true"]::after, .main-nav a.nav-cta[aria-current="page"]::after { display: none; }
.main-nav a.nav-cta[aria-current="page"] { background: var(--cloud); border-color: var(--cloud); color: var(--navy); box-shadow: inset 0 -3px 0 var(--cyan); }
.menu-extras { display: none; }
.menu-label { font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* Language selector */
.lang-switch { display: inline-flex; border: 1px solid var(--x-border-dark); border-radius: var(--radius); overflow: hidden; }
.lang-switch button { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; color: var(--metallic); background: transparent; border: 0; min-width: 38px; min-height: 30px; padding: 0 8px; cursor: pointer;
  transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out); }
.lang-switch button:hover { color: var(--cloud); background: var(--steel); }
.lang-switch button[aria-pressed="true"] { background: var(--cloud); color: var(--navy); font-weight: 600; }
.lang-compact { display: none; }
.footer-bottom .lang-switch button { min-height: 36px; }

/* Social buttons (header, menu, resources, footer) */
.social { display: flex; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--radius); font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.04em; color: var(--text-2, var(--mist)); text-decoration: none;
  transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out); }
a.social-btn:hover { background: var(--cloud); color: var(--navy); border-color: var(--cloud); }
.social-btn.is-ph { border-style: dashed; color: var(--muted); }
.social-btn img { width: 14px; height: 14px; }
.site-footer .social-btn, .menu-extras .social-btn, .follow .social-btn { width: 44px; height: 44px; font-size: 0.7rem; }

/* Menu toggle (mobile) */
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--x-border-dark); border-radius: var(--radius); background: transparent; color: var(--cloud); cursor: pointer; flex: none; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-micro); }
.menu-toggle-bars { top: 21px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; right: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.draft-note { background: var(--steel); color: var(--mist); font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.04em; text-align: center; padding: 8px var(--gutter); border-top: 1px solid var(--x-divider-dark); }

/* Without JavaScript: static header, visible navigation, no language or menu buttons (they would do nothing) */
html:not(.js) .site-header { position: static; }
html:not(.js) .lang-switch, html:not(.js) .menu-toggle, html:not(.js) .utility-sep { display: none !important; }
html:not(.js) .hero { padding-top: 0; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-placeholder, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 70% 50%; }
.hero-placeholder {
  background:
    radial-gradient(90% 70% at 74% 62%, rgba(82, 103, 121, 0.38) 0%, rgba(22, 38, 56, 0.55) 38%, transparent 72%),
    linear-gradient(180deg, var(--x-navy-900) 0%, var(--navy) 78%);
}
.hero-placeholder::before { /* horizon hairline: stands in for the photo's light line */
  content: ""; position: absolute; left: 0; right: 0; top: 61%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(170, 183, 197, 0.35) 45%, rgba(170, 183, 197, 0.35) 90%, transparent 100%);
}
.hero-guide { position: absolute; border: 1px dashed rgba(170, 183, 197, 0.45); }
.hero-guide span { position: absolute; top: 8px; left: 10px; font: 500 0.65rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--metallic); }
.hero-guide-desktop { inset: calc(var(--header-h) + 24px) var(--gutter) 24px; }
.hero-guide-mobile { top: calc(var(--header-h) + 64px); right: calc(var(--gutter) + 6%); width: min(30vw, 400px); aspect-ratio: 4 / 5; }
.hero::after { /* readability scrim, Deep Navy only */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--scrim-strong) 0%, rgba(7, 17, 31, 0.6) 32%, transparent 68%), linear-gradient(0deg, var(--navy) 0%, transparent 38%);
}
.hero-ph-label { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; max-width: 22rem; display: grid; gap: 8px; justify-items: start; font: 400 0.82rem/1.5 var(--font-mono); color: var(--mist); text-align: left; }
.hero-content { position: relative; padding: calc(var(--header-h) + 96px) 0 clamp(56px, 9vh, 104px); }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 32px; max-width: 20ch; }
.hero-line { display: block; }
.hero-line + .hero-line { color: var(--metallic); }
.hero-lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--mist); max-width: 36rem; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-status { font: 500 0.78rem/1.5 var(--font-mono); letter-spacing: 0.06em; color: var(--metallic); border-top: 1px solid var(--x-divider-dark); padding-top: 20px; max-width: 40rem; }
@keyframes hero-settle { from { transform: scale(1.045); } to { transform: none; } }
html.js .hero-placeholder, html.js .hero-photo { animation: hero-settle var(--t-cinematic) var(--ease-out) both; }

/* ---------- 6. Project overview ---------- */
.overview-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.overview-statement h2 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); margin-bottom: 32px; }
.overview-statement .lede { margin-bottom: 32px; }
.glance { border-top: 2px solid var(--text); padding-top: 22px; }
.glance-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.glance-title { font-size: 1.05rem; }
.status-pill { font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 9px; display: inline-flex; gap: 8px; align-items: center; }
.status-pill::before { content: ""; width: 6px; height: 6px; background: var(--accent); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--divider); }
.facts div:last-child { border-bottom: 1px solid var(--divider); }
.facts dt { font: 500 0.72rem/1.6 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 500; }
.distinctions { margin-top: clamp(56px, 7vw, 96px); max-width: 54rem; }
.distinctions h3 { font-size: 1.5rem; margin-bottom: 16px; }
.faq-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--divider); }
.faq-list li:last-child { border-bottom: 1px solid var(--divider); }
.faq-q { font-family: var(--font-head); font-weight: 500; }
.faq-a { font: 500 0.75rem/1.8 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- 7. The approach (story) — see also 8 for figures ---------- */
.stage-index { margin-bottom: clamp(40px, 5vw, 72px); }
.stage-index ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--divider); }
.stage-index a { display: flex; gap: 10px; align-items: baseline; padding: 16px 12px 16px 0; text-decoration: none; color: var(--muted); font: 500 0.82rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; border-top: 2px solid transparent; margin-top: -1px; transition: color var(--t-micro) var(--ease-out), border-color var(--t-ui) var(--ease-out); }
.stage-index a:hover { color: var(--text); }
.stage-index a[aria-current="step"] { color: var(--text); border-top-color: var(--accent); }

.stage { padding: 0 0 clamp(56px, 7vw, 96px); border-top: 1px solid var(--divider); padding-top: 32px; }
.stage:focus { outline: none; } /* programmatic focus target from the stage index */
.stage-kicker { display: flex; gap: 12px; font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.stage h3, .stage h2.as-h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.stage-text { font-size: 1.1rem; line-height: 1.65; color: var(--text-2); max-width: 36rem; margin-bottom: 24px; }
.verdict { border-left: 2px solid var(--text); padding-left: 18px; color: var(--text-2); max-width: 36rem; margin-bottom: 24px; }
.verdict strong { color: var(--text); font-weight: 600; }

/* Native details/summary */
.tech-details { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); max-width: 36rem; margin-bottom: 32px; }
.tech-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font: 500 0.8rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.tech-details summary::-webkit-details-marker { display: none; }
.tech-details summary::after { content: "+"; font: 400 1.25rem/1 var(--font-mono); color: var(--accent); transition: transform var(--t-ui) var(--ease-out); }
.tech-details[open] summary::after { transform: rotate(45deg); }
.tech-details p { color: var(--text-2); padding: 0 0 16px; font-size: 0.98rem; }
.tech-details p + p { padding-top: 0; }

/* Desktop sticky visual (only when story.js enhances the section) */
.story-visual { display: none; }
@media (min-width: 1024px) {
  .story.is-enhanced { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .story.is-enhanced .stage { min-height: 78vh; padding-top: 40px; }
  .story.is-enhanced .stage:last-child { min-height: 60vh; }
  .story.is-enhanced .stage .stage-figure { display: none; }   /* inline copies only; the sticky panel keeps its own */
  .story.is-enhanced .stage h3, .story.is-enhanced .stage h2.as-h3, .story.is-enhanced .stage .stage-kicker { transition: color var(--t-stage) var(--ease-out); }
  .story.is-enhanced .stage:not(.is-active) h3, .story.is-enhanced .stage:not(.is-active) h2.as-h3 { color: var(--muted); }
  .story.is-enhanced .story-visual { display: block; position: sticky; top: calc(var(--header-h) + 88px); height: calc(100vh - var(--header-h) - 120px); min-height: 440px; }
  .story-visual-inner { position: relative; height: 100%; background: var(--x-navy-900); border: 1px solid var(--divider); display: flex; flex-direction: column; }
  .story-visual-stack { position: relative; flex: 1; margin: 32px 32px 0; }
  .story-visual-stack .stage-figure { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; opacity: 0; transform: translateY(14px); transition: opacity var(--t-stage) var(--ease-out), transform var(--t-stage) var(--ease-out); }
  .story-visual-stack .stage-figure.is-active { opacity: 1; transform: none; }
  .story-visual-stack .stage-figure svg { width: 100%; height: auto; max-height: 100%; }
  .story-visual-stack figcaption { display: none; }
  .story-visual-caption { display: flex; justify-content: space-between; gap: 16px; padding: 16px 32px; border-top: 1px solid var(--divider); font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .approach .stage-index.is-sticky { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); }
}

/* ---------- 8. Stage figures (SVG) ---------- */
.stage-figure { margin: 0 0 8px; padding-top: 24px; border-top: 1px solid var(--divider); max-width: 40rem; }
.stage-figure svg { width: 100%; height: auto; overflow: visible; }
.stage-figure figcaption { display: grid; gap: 6px; margin-top: 16px; font-size: 0.9rem; color: var(--text-2); }
.illustrative { font: 500 0.7rem/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stage-figure svg * { vector-effect: non-scaling-stroke; }
.fig-label { font: 500 17px var(--font-mono); fill: var(--cloud); letter-spacing: 0.02em; }
.fig-small { font: 400 15px var(--font-mono); fill: var(--metallic); }
.fig-accent { fill: var(--cyan); }
.fig-muted { fill: var(--x-border-dark); }
.fig-frames rect { fill: none; stroke: var(--metallic); stroke-width: 1.2; }
.fig-faint { fill: none; stroke: var(--x-border-dark); stroke-width: 1; }
.fig-signal, .fig-input { fill: none; stroke: var(--cloud); stroke-width: 1.8; }
.fig-sync path { stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 2 6; opacity: 0.8; }
.fig-axis, .fig-ticks path { fill: none; stroke: var(--x-border-dark); stroke-width: 1.2; }
.fig-boundary { fill: none; stroke: var(--x-border-dark); stroke-dasharray: 6 6; }
.fig-links path { stroke: var(--x-border-dark); stroke-width: 1; fill: none; }
.fig-loops path { stroke: var(--cyan); stroke-width: 1.2; fill: none; }
.fig-nodes circle { fill: var(--navy); stroke: var(--cloud); stroke-width: 1.4; }
.fig-nodes .fig-node-out { stroke: var(--cyan); }
.fig-pred { fill: none; stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round; }
.fig-driver { fill: none; stroke: var(--cloud); stroke-width: 1.8; stroke-linecap: round; }
.fig-arrow { fill: none; stroke: var(--cyan); stroke-width: 2; }
.fig-dim { opacity: 0.55; }
.fig-vehicle { fill: none; stroke: var(--cloud); stroke-width: 1.4; }
.fig-wheels rect { fill: var(--x-border-dark); }
.fig-edge { fill: var(--steel); stroke: var(--cyan); stroke-width: 1.4; }
.fig-sensor { fill: var(--cloud); }
.fig-dashed { fill: none; stroke: var(--metallic); stroke-dasharray: 5 6; stroke-width: 1.2; }
.fig-box { fill: none; stroke: var(--metallic); stroke-width: 1.2; }
.fig-cross { stroke: var(--cyan); stroke-width: 2; }
.fig-window { fill: rgba(0, 200, 215, 0.07); stroke: var(--cyan); stroke-width: 1.4; }
.fig-card { fill: var(--steel); stroke: var(--x-border-dark); }
.fig-rule { stroke: var(--x-divider-dark); }
/* Sticky panel copies: no inline border, no caption (the panel has its own caption) */
.story-visual-stack .stage-figure { border: 0; padding: 0; max-width: none; }
.story-visual-stack .stage-figure figcaption { display: none; }
/* Line drawing — only on the enhanced desktop copies (story.js sets pathLength="1") */
.story-visual-stack .draw[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--t-draw) var(--ease-out) 150ms; }
.story-visual-stack .is-active .draw[pathLength] { stroke-dashoffset: 0; }

/* ---------- 9. Driver-Mimic Kit ---------- */
.kit-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.kit-intro h2:not(.list-title), .kit-intro h1.as-h2 { margin-bottom: 28px; }
.kit-intro .lede { margin-bottom: 48px; }
.list-title { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-bottom: 28px; }
.components li { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--divider); font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; }
.planned-tag { font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.principles { border-top: 2px solid var(--text); }
.principle { padding: 26px 0; border-bottom: 1px solid var(--divider); }
.principle h3, .principle h2.as-h3 { margin-bottom: 10px; }
.principle p { color: var(--text-2); }

/* ---------- 10. Applications ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.app { border-top: 1px solid var(--divider); padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.app-kicker { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.app h3, .app h2.as-h3 { font-size: 1.6rem; }
.app p:not(.app-kicker) { color: var(--text-2); flex: 1; }
.app .text-link { align-self: flex-start; margin-top: 8px; }

/* ---------- 11. Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.member { display: flex; flex-direction: column; border-top: 1px solid var(--divider); padding-top: 24px; }
.member-portrait { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--mist), var(--x-divider-light)); margin-bottom: 22px; overflow: hidden; }
.member-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-ph { position: absolute; left: 14px; bottom: 12px; font: 500 0.65rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.member-role { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.member-name, h2.as-h3.member-name { font-size: 1.3rem; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.member[data-verified="false"] .member-name-text { color: var(--muted); }
.member-bio { color: var(--text-2); font-size: 0.95rem; flex: 1; margin-bottom: 20px; }
.member[data-verified="false"] .member-bio { color: var(--muted); }
.member-links li { border-top: 1px solid var(--divider); }
.member-links li:last-child { border-bottom: 1px solid var(--divider); }
.member-links a, .member-links .link-ph { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; font-size: 0.92rem; text-decoration: none; }
.member-links a::after { content: "→"; color: var(--muted); }
.member-links a[target="_blank"]::after { content: "↗"; }
.member-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-ph { color: var(--muted); }

/* ---------- 12. Updates & resources ---------- */
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.resource { border-top: 1px solid var(--divider); padding: 28px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.resource-kicker { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.resource h3, .resource h2.as-h3 { font-size: 1.45rem; }
.resource p:not(.resource-kicker) { color: var(--text-2); }
.resource-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--muted) !important; }
.resource-links ul { display: grid; gap: 4px; }
.resource-links a { text-decoration: underline; text-underline-offset: 4px; }
.resource-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-right: 10px; }
.follow { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--divider); }

/* ---------- 13. Contact & EU funding ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact-main h2, .contact-main h1.as-h2 { margin-bottom: 28px; max-width: 18ch; }
.contact-main .lede { margin-bottom: 40px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-bottom: 32px; }
.contact-address { display: grid; gap: 4px; }
.contact-label { font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-address a { font-family: var(--font-head); font-size: 1.15rem; text-underline-offset: 5px; }
.eu-block { border-top: 2px solid var(--text); padding-top: 24px; display: grid; gap: 14px; }
.eu-emblem-slot { display: grid; gap: 8px; align-content: center; justify-items: start; aspect-ratio: 3 / 1.4; max-width: 300px; border: 1px dashed var(--border); padding: 16px; font-size: 0.82rem; color: var(--muted); }
.eu-label { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eu-heading { font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; }
.eu-text, .eu-ga { color: var(--text-2); }
.eu-disclaimer { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--divider); padding-top: 14px; }

/* ---------- 14. Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 40px; border-top: 1px solid var(--divider); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 72px); padding-bottom: 48px; border-bottom: 1px solid var(--divider); }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-full { font-family: var(--font-head); color: var(--mist); }
.footer-support { font-size: 0.9rem; color: var(--muted); max-width: 26rem; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.footer-nav a, .footer-contact a { color: var(--mist); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--cloud); text-decoration: underline; text-underline-offset: 4px; }
.footer-nav a[aria-current="page"] { color: var(--cloud); }
.footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-address { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; }
.footer-note { font-size: 0.85rem; color: var(--muted); max-width: 38rem; }
.back-top { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); text-decoration: none; padding: 10px 0; }
.back-top:hover { color: var(--cloud); }

/* ---------- 15. Reveal motion (one-time, only when JS runs) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 16. Site modes ---------- */
/* Production: hide every placeholder and unavailable item. */
html[data-site-mode="production"] .preview-only,
html[data-site-mode="production"] .hero-guide,
html[data-site-mode="production"] .ph-tag,
html[data-site-mode="production"] .member[data-verified="false"],
html[data-site-mode="production"] .resource[data-available="false"],
html[data-site-mode="production"] .social li:has(.is-ph) { display: none !important; }
html[data-site-mode="production"]:not(.has-team) [data-requires="team"],
html[data-site-mode="production"]:not(.has-resources):not(.has-social) [data-requires="resources"],
html[data-site-mode="production"]:not(.has-resources) #resource-list,
html[data-site-mode="production"]:not(.has-social) [data-requires-social],
html[data-site-mode="production"]:not(.has-social) .utility-bar .social,
html[data-site-mode="production"]:not(.has-social) .utility-sep,
html[data-site-mode="production"]:not(.has-social) .menu-extras { display: none !important; }
/* "Coming soon" blocks on team.html / resources.html: only in production, only while nothing is published. */
.page-soon { display: none; }
html[data-site-mode="production"]:not(.has-team) .page-soon[data-soon="team"],
html[data-site-mode="production"]:not(.has-resources):not(.has-social) .page-soon[data-soon="resources"] { display: block; }
.page-soon .btn { margin-top: 12px; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1199px) {
  :root { --util-h: 0px; --nav-h: 68px; }
  .utility-bar { display: none; }
  .lang-compact { display: inline-flex; }
  html.js .menu-toggle { display: inline-block; }
  html.js .main-nav { position: fixed; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; background: var(--navy); border-bottom: 1px solid var(--x-divider-dark); padding: 8px var(--gutter) 28px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui); }
  html.js .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html.js .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  html.js .main-nav > ul a { display: block; padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--x-divider-dark); }
  html.js .main-nav a[aria-current="true"]::after, html.js .main-nav a[aria-current="page"]::after { display: none; }
  html.js .main-nav a[aria-current="true"], html.js .main-nav a[aria-current="page"] { border-left: 2px solid var(--cyan); padding-left: 12px; }
  html.js .main-nav a.nav-cta { margin-top: 20px; text-align: center; border: 1px solid var(--cloud); background: var(--cloud); color: var(--navy); }
  html.js .main-nav a.nav-cta[aria-current="page"] { border-left-width: 1px; padding-left: 18px; box-shadow: inset 0 -3px 0 var(--cyan); }
  html.js .menu-extras { display: block; margin-top: 28px; }
  html:not(.js) .nav-bar { height: auto; flex-wrap: wrap; padding: 14px 0; }
  html:not(.js) .main-nav { width: 100%; }
  html:not(.js) .main-nav > ul { flex-wrap: wrap; gap: 6px 18px; }
}
@media (max-width: 1023px) {
  .overview-grid, .kit-grid, .contact-grid { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stage-index ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stage-index a { flex-direction: column; gap: 4px; font-size: 0.72rem; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .hero-content { padding-top: calc(var(--header-h) + 140px); }
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-guide-desktop { display: none; }
  .hero-guide-mobile { top: calc(var(--header-h) + 16px); bottom: auto; right: 50%; transform: translateX(50%); width: 62%; }
  .hero-ph-label { left: var(--gutter); right: var(--gutter); top: auto; bottom: 16px; max-width: none; font-size: 0.72rem; }
  .hero-content { padding-bottom: 104px; }
  .hero::after { background: linear-gradient(0deg, var(--navy) 0%, var(--scrim-strong) 46%, rgba(7, 17, 31, 0.35) 100%); }
  .brand-full { display: none; }
  .brand-mark { display: block; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .components { grid-template-columns: 1fr; }
  .resources { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .member { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 18px; }
  .member-portrait { grid-row: 1 / span 4; margin-bottom: 0; }
  .member-links { grid-column: 1 / -1; margin-top: 18px; }
  .member-bio { margin-bottom: 0; }
  .stage-index { overflow-x: auto; }
  .stage-index ol { grid-template-columns: repeat(5, minmax(5.5rem, 1fr)); min-width: 30rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-actions .btn { width: 100%; }
}

/* ---------- 19. Multi-page layout ---------- */
/* Pages without the hero start below the fixed header. */
html.js body:not([data-page="home"]) #main { padding-top: var(--header-h); }
/* Fallback navigation and footer, shown only when JavaScript does not run (<noscript>). */
.noscript-header { background: var(--navy); color: var(--cloud); border-bottom: 1px solid var(--x-divider-dark); padding: 16px 0; }
.noscript-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.noscript-header ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.noscript-header a { color: var(--metallic); text-decoration: none; }
.noscript-header a:hover, .noscript-header a[aria-current="page"] { color: var(--cloud); text-decoration: underline; text-underline-offset: 6px; }
.noscript-footer { background: var(--navy); color: var(--metallic); padding: 40px 0; border-top: 1px solid var(--x-divider-dark); font-size: 0.92rem; }
.noscript-footer p + p { margin-top: 8px; }
.noscript-footer .footer-full { color: var(--mist); }
.noscript-footer a { color: var(--mist); }

/* ---------- 20. News & Media ---------- */
/* Page head + filter bar (dark), feed (light). Card sizes follow a 12-column rhythm set by news-media.js. */
.nm-head { padding: clamp(56px, 7vw, 104px) 0 clamp(28px, 3.5vw, 44px); }
.nm-head .lede { margin-top: 20px; }
.nm-bar { position: sticky; top: var(--header-h); z-index: 20; border-bottom: 1px solid var(--divider); }
html:not(.js) .nm-bar { display: none; }
.nm-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 60px; }
.nm-filters { display: flex; gap: clamp(16px, 2.6vw, 36px); overflow-x: auto; scrollbar-width: none; }
.nm-filters::-webkit-scrollbar { display: none; }
.nm-filters button, .nm-when button { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nm-filters button { padding: 22px 0 19px; border-bottom: 2px solid transparent; transition: color var(--t-micro) var(--ease-out), border-color var(--t-ui) var(--ease-out); }
.nm-filters button:hover { color: var(--text); }
.nm-filters button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.nm-when { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); }
.nm-when button { padding: 10px 14px; min-height: 36px; transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out); }
.nm-when button[aria-pressed="true"] { background: var(--cloud); color: var(--navy); }
.nm-when[hidden], .nm-cat[hidden] { display: none; }
.nm-chip { display: inline-flex; align-items: center; gap: 10px; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--cloud); border: 0; border-radius: var(--radius); padding: 9px 12px; cursor: pointer; }
.nm-chip-x { font-size: 1rem; line-height: 0.6; }

.nm-feed-section { padding: clamp(40px, 5vw, 72px) 0 var(--section-pad); }
.nm-app { transition: opacity 140ms var(--ease-out); }
.nm-app.is-switching { opacity: 0.25; }

/* Shared card parts */
.nm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nm-label { color: var(--accent); }
.nm-kicker { color: var(--text); border: 1px solid var(--border); padding: 4px 8px; border-radius: var(--radius); }
.nm-title { font-family: var(--font-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.nm-link { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--t-ui) var(--ease-out); }
.nm-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }          /* whole card is clickable */
.nm-link:focus-visible { outline: none; }
.nm-card:focus-within, .nm-featured:focus-within, .nm-event-row:focus-within { outline: 2px solid var(--focus); outline-offset: 6px; }
.nm-ext { margin-left: 6px; font-size: 0.8em; color: var(--accent); }
.nm-summary { color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nm-extra, .nm-location { font-size: 0.92rem; color: var(--muted); }
.nm-flags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; }
.nm-flag { font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--radius); border: 1px solid currentColor; }
.nm-flag-draft { background: var(--navy); color: var(--cloud); border-color: var(--navy); }
.nm-flag-warn { color: var(--text); border-style: dashed; }

/* Images: subtle zoom on hover, never a fake photo */
.nm-media { position: relative; overflow: hidden; background: var(--steel); aspect-ratio: 16 / 9; }
.nm-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 700ms var(--ease-out); }
.nm-card:hover .nm-media img, .nm-featured:hover .nm-media img, .nm-event-row:hover .nm-media img { transform: scale(1.04); }
.nm-card:hover .nm-link, .nm-featured:hover .nm-link, .nm-event-row:hover .nm-link { background-size: 100% 1px; }
.nm-media-flag { position: absolute; top: 14px; left: 14px; z-index: 1; font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; background: var(--cloud); color: var(--navy); padding: 7px 10px; border-radius: var(--radius); }
.nm-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(18px, 2.4vw, 32px); color: var(--cloud);
  background:
    linear-gradient(0deg, transparent calc(100% - 1px), rgba(170, 183, 197, 0.12) 0) 0 0 / 100% 48px,
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(170, 183, 197, 0.12) 0) 0 0 / 48px 100%,
    linear-gradient(135deg, var(--steel), var(--navy)); }
.nm-fallback::before { content: ""; width: 56px; height: 3px; background: var(--cyan); margin-bottom: 6px; }
.nm-fallback-label { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.1; }
.nm-fallback-date { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--metallic); }

/* Featured story */
.nm-featured { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--divider); }
.nm-featured .nm-media { aspect-ratio: 16 / 10; }
.nm-featured .nm-body { display: grid; gap: 18px; align-content: center; }
.nm-featured .nm-title { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
.nm-featured .nm-summary { -webkit-line-clamp: 5; font-size: 1.05rem; }
.nm-more { font-weight: 500; color: var(--text); }

/* Editorial grid */
.nm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); align-items: start; }
.nm-card { position: relative; display: grid; gap: 18px; }
.nm-card .nm-body { display: grid; gap: 12px; }
.nm-card.size-wide { grid-column: span 12; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.nm-card.size-lg { grid-column: span 8; }
.nm-card.size-half { grid-column: span 6; }
.nm-card.size-sm { grid-column: span 4; }
.nm-card.aspect-169 .nm-media, .nm-card.aspect-wide .nm-media { aspect-ratio: 16 / 9; }
.nm-card.aspect-32 .nm-media { aspect-ratio: 3 / 2; }
.nm-card.aspect-43 .nm-media { aspect-ratio: 4 / 3; }
.nm-card.aspect-45 .nm-media { aspect-ratio: 4 / 5; }
.nm-card .nm-title { font-size: 1.3rem; }
.nm-card.size-lg .nm-title, .nm-card.size-wide .nm-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.nm-card.size-half .nm-title { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.nm-card.is-past .nm-label { color: var(--muted); }
.nm-card.is-past .nm-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; margin-right: 8px; vertical-align: 1px; }
.nm-card.is-past .nm-media img { filter: saturate(0.85); }

/* Year groups */
.nm-year-group + .nm-year-group { margin-top: clamp(56px, 7vw, 96px); }
.nm-year { display: flex; align-items: center; gap: 20px; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.16em; color: var(--muted); margin-bottom: 32px; }
.nm-year::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.nm-showmore-wrap { margin-top: 56px; text-align: center; }
.nm-showmore { color: var(--text); border-color: var(--border); background: transparent; }
.nm-showmore:hover { background: var(--navy); color: var(--cloud); border-color: var(--navy); }

/* Upcoming events: date first, clearly different from completed events */
.nm-upcoming { margin-bottom: clamp(48px, 6vw, 80px); }
.nm-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 24px; }
.nm-section-title { font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.nm-textbtn { background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--text); cursor: pointer; font: inherit; font-weight: 500; padding: 0 0 4px; }
.nm-event-list { display: grid; gap: 16px; }
.nm-event-row { position: relative; display: grid; grid-template-columns: 132px minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: 20px; background: var(--navy); color: var(--cloud); border-left: 3px solid var(--cyan); border-radius: var(--radius);
  --text: var(--cloud); --text-2: var(--mist); --muted: var(--metallic); --accent: var(--cyan); --border: var(--x-border-dark); --focus: var(--cyan); }
.nm-event-row .nm-media { aspect-ratio: 3 / 2; }
.nm-event-row .nm-body { display: grid; gap: 10px; }
.nm-event-row .nm-title { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.nm-dateblock { display: grid; gap: 6px; align-content: center; padding-right: 20px; border-right: 1px solid var(--x-divider-dark); min-height: 100%; }
.nm-day { font-family: var(--font-head); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.nm-day.is-range { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.nm-month { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--metallic); }
.nm-part { display: inline-block; font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; border-radius: var(--radius); border: 1px dashed var(--metallic); color: var(--mist); }
.nm-part-confirmed { border-style: solid; border-color: var(--cyan); color: var(--cyan); }
.nm-event-row .nm-flag-draft { background: var(--cloud); color: var(--navy); border-color: var(--cloud); }

/* Empty state */
.nm-empty { border: 1px solid var(--divider); border-left: 3px solid var(--accent); padding: clamp(28px, 4vw, 48px); display: grid; gap: 12px; max-width: 46rem; }
.nm-empty-title { font-family: var(--font-head); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--text); }
.nm-empty-text { color: var(--text-2); }
.nm-empty-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 8px; }

/* Home: latest strip */
.home-news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.home-news-head h2 { max-width: 20ch; }
.home-news-head .eyebrow { margin-bottom: 16px; }

/* Single item page */
.nm-item-head { padding: clamp(48px, 6vw, 88px) 0 clamp(36px, 4vw, 56px); }
.nm-item-head .nm-meta { margin: 28px 0 18px; }
.nm-item-title { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 22ch; }
.nm-back { display: inline-block; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px 0; }
.nm-back:hover { color: var(--text); }
.nm-notice { margin-top: 22px; display: inline-block; font: 600 0.72rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.nm-notice-draft { background: var(--cloud); color: var(--navy); border-color: var(--cloud); }
.nm-item-cover { margin-top: 0; padding-top: clamp(24px, 3vw, 40px); }
.nm-item-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--steel); }
.nm-item-cover figcaption { margin-top: 10px; font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.nm-item-body { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.nm-item-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.nm-item-text { display: grid; gap: 20px; max-width: 42rem; }
.nm-item-text > p:not(.lede) { font-size: 1.06rem; line-height: 1.75; color: var(--text-2); }
.nm-ext-btn { justify-self: start; margin-top: 8px; }
.nm-item-aside { border-top: 2px solid var(--text); padding-top: 20px; }
.nm-facts { display: grid; gap: 4px 0; }
.nm-facts dt { font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.nm-facts dd { margin: 0; color: var(--text); }
.nm-item-foot { margin-top: clamp(40px, 5vw, 64px); }
.nm-notfound { min-height: 60vh; }
.nm-notfound .as-h2 { margin: 24px 0 20px; max-width: 18ch; }
.nm-notfound .btn { margin-top: 28px; }

/* Gallery + viewer */
.nm-gallery-section { padding: 0 0 clamp(64px, 8vw, 120px); }
.nm-gallery-section .nm-section-title { margin-bottom: 24px; padding-top: 32px; border-top: 1px solid var(--divider); }
.nm-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.nm-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--steel); }
.nm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.nm-thumb:hover img { transform: scale(1.05); }
.nm-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.nm-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 17, 31, 0.97); color: var(--cloud); overflow: hidden; }
.nm-lightbox::backdrop { background: rgba(7, 17, 31, 0.9); }
body.nm-lb-open { overflow: hidden; }
.nm-lb-figure { position: absolute; inset: 72px 88px 24px; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; touch-action: pan-y; }
.nm-lb-img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.nm-lb-caption { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 0.75rem/1.5 var(--font-mono); letter-spacing: 0.06em; color: var(--metallic); justify-content: center; text-align: center; }
.nm-lb-count { color: var(--cloud); }
.nm-lb-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: transparent; color: var(--cloud); border: 1px solid var(--x-border-dark); border-radius: var(--radius); font: 400 1.3rem/1 var(--font-body); cursor: pointer; transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out); }
.nm-lb-btn:hover { background: var(--cloud); color: var(--navy); }
.nm-lb-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.nm-lb-close { top: 14px; right: 14px; }
.nm-lb-prev { left: 20px; top: calc(50% - 24px); }
.nm-lb-next { right: 20px; top: calc(50% - 24px); }

@media (max-width: 1023px) {
  .nm-featured { grid-template-columns: 1fr; }
  .nm-card.size-lg, .nm-card.size-wide { grid-column: span 12; }
  .nm-card.size-wide { grid-template-columns: 1fr; }
  .nm-card.size-half, .nm-card.size-sm { grid-column: span 6; }
  .nm-card.aspect-45 .nm-media { aspect-ratio: 4 / 3; }
  .nm-event-row { grid-template-columns: 112px minmax(0, 1fr); }
  .nm-event-row .nm-media { display: none; }
  .nm-item-grid { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .nm-card.size-half, .nm-card.size-sm { grid-column: span 12; }
  .nm-bar-inner { gap: 0 20px; }
  .nm-when { margin-bottom: 12px; }
  .nm-event-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .nm-dateblock { display: flex; align-items: baseline; gap: 12px; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--x-divider-dark); padding-bottom: 12px; }
  .nm-day { font-size: 2rem; }
  .nm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-lb-figure { inset: 64px 12px 84px; }
  .nm-lb-prev, .nm-lb-next { top: auto; bottom: 18px; }
  .nm-lb-prev { left: calc(50% - 60px); }
  .nm-lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .nm-app, .nm-media img, .nm-thumb img, .nm-link, .nm-filters button { transition: none !important; }
  .nm-card:hover .nm-media img, .nm-featured:hover .nm-media img, .nm-event-row:hover .nm-media img, .nm-thumb:hover img { transform: none; }
  .nm-app.is-switching { opacity: 1; }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   21. Persistent corner elements — EU funding badge + Contact button
   Rendered once by layout.js on every page.
   EU badge follows the EU emblem rules for beneficiaries: emblem on a white
   background, statement next to it in full, in Arial (or Calibri, Garamond,
   Trebuchet, Tahoma, Verdana), black, with no italics, underline or effects.
   Emblem height 38px ≈ 1 cm (the stated minimum emblem height).
   ===================================================================== */
:root {
  --float-gap: 16px;
  --float-bottom: calc(var(--float-gap) + env(safe-area-inset-bottom, 0px));
  --float-left: calc(var(--float-gap) + env(safe-area-inset-left, 0px));
  --float-right: calc(var(--float-gap) + env(safe-area-inset-right, 0px));
  --float-h: 54px;
}
.eu-badge, .contact-fab {
  position: fixed; bottom: var(--float-bottom); z-index: 40;
  display: inline-flex; align-items: center;
  min-height: var(--float-h); border-radius: var(--radius); text-decoration: none;
  box-shadow: 0 6px 20px rgba(7, 17, 31, 0.22);
  transition: border-color var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out), opacity var(--t-ui) var(--ease-out), visibility 0s linear 0s;
}
/* Focus ring visible on both dark and light sections: navy halo + cyan outline */
.eu-badge:focus-visible, .contact-fab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy); }

.eu-badge {
  left: var(--float-left); gap: 10px; padding: 8px 14px 8px 8px;
  background: #FFFFFF; color: #000000; border: 1px solid var(--metallic);
}
.eu-badge:hover { border-color: var(--navy); }
.eu-badge-emblem { display: block; height: 38px; }
.eu-badge-emblem[hidden] { display: none; }
.eu-badge-emblem img { display: block; height: 38px; width: auto; }
.eu-badge-ph { display: grid; place-items: center; width: 57px; height: 38px; border: 1px dashed var(--slate); color: var(--slate); font: 500 0.56rem/1.15 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.has-eu-emblem .eu-badge-ph, .has-eu-emblem .eu-emblem-slot { display: none !important; }
.eu-badge-text { font: 400 0.8rem/1.25 Arial, Calibri, Verdana, Tahoma, sans-serif; color: #000000; max-width: 8.6rem; text-decoration: none; }

.contact-fab {
  right: var(--float-right); gap: 10px; padding: 0 20px;
  background: var(--navy); color: var(--cloud); border: 1px solid var(--x-border-dark);
  font: 500 0.95rem/1 var(--font-body); white-space: nowrap;
}
.contact-fab:hover { background: var(--steel); border-color: var(--cyan); }
.contact-fab-icon { color: var(--cyan); flex: none; }
body[data-page="contact"] .contact-fab { display: none; }   /* already on the Contact page */

/* Contact page: emblem above the full acknowledgement once the file exists */
.eu-emblem img { display: block; height: 56px; width: auto; }
.eu-emblem { background: #FFFFFF; padding: 8px; justify-self: start; }
.eu-block { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Keep the end of the page clear of the corner elements */
.site-footer { padding-bottom: calc(40px + var(--float-h) + var(--float-bottom)); }

/* Hidden while the mobile menu is open, and in print */
html.menu-open .eu-badge, html.menu-open .contact-fab { opacity: 0; visibility: hidden; transition: opacity var(--t-micro) var(--ease-out), visibility 0s linear var(--t-micro); }
@media print { .eu-badge, .contact-fab { display: none !important; } }

/* Small screens: compact badge, icon-only Contact button (label stays for screen readers) */
@media (max-width: 479px) {
  :root { --float-gap: 12px; --float-h: 50px; }
  .eu-badge { gap: 8px; padding: 5px 10px 5px 5px; }
  .eu-badge-text { font-size: 0.72rem; max-width: 7.4rem; }
  .contact-fab { width: var(--float-h); padding: 0; justify-content: center; }
  .contact-fab-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .contact-fab-icon { width: 22px; height: 22px; }
}
/* Preview-only hero label sits above the Contact button */
.hero-ph-label { bottom: calc(var(--float-h) + var(--float-bottom) + 24px); }
/* Keep the last line of the hero clear of the corner elements on the first screen */
.hero-content { padding-bottom: max(clamp(56px, 9vh, 104px), calc(var(--float-h) + var(--float-bottom) + 24px)); }

/* =====================================================================
   22. Home intro (assets/js/intro.js — home page only)
   Timeline, 2.8 s in total:
     0.10–0.90 s  hairline draws out from the centre
     0.15–1.35 s  cyan light travels across the screen
     0.55–1.25 s  logo (symbol + wordmark) appears
     1.20–1.75 s  tagline "Intelligence in Motion." appears
     2.20–2.45 s  logo and line fade out
     2.30–2.80 s  the intro fades into the home page
   Only opacity and transform are animated. The exit is pure CSS, so the
   intro ends even if its JavaScript stops working.
   If you change the timing, keep EXIT_AT in intro.js equal to the
   intro-out delay below (2300ms).
   TAGLINE_AREA: where the tagline sits inside fluidcar-logo-primary.svg
   (viewBox 900 × 190: from x 280 and y 117 to the bottom-right corner).
   ===================================================================== */
.intro {
  --tag-x: 31.2%; --tag-y: 61.6%;            /* TAGLINE_AREA */
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; overflow: hidden;
  background: var(--navy) radial-gradient(60% 45% at 50% 50%, rgba(170, 183, 197, 0.07), rgba(170, 183, 197, 0) 70%);
  color: var(--cloud);
  animation: intro-out 500ms cubic-bezier(0.4, 0, 0.2, 1) 2300ms forwards;
}
.intro.is-skipped { animation: intro-skip-out 220ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.intro-stage { width: 100%; display: grid; justify-items: center; gap: clamp(24px, 4.5vh, 40px); animation: intro-stage-out 250ms var(--ease-in) 2200ms forwards; }
.intro-logo { position: relative; width: clamp(260px, 44vw, 600px); aspect-ratio: 900 / 190; }
.intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.intro-logo-main {
  clip-path: polygon(0 0, 100% 0, 100% var(--tag-y), var(--tag-x) var(--tag-y), var(--tag-x) 100%, 0 100%);
  transform: translateY(10px);
  animation: intro-rise 700ms var(--ease-out) 550ms forwards;
}
.intro-logo-tagline {
  clip-path: inset(var(--tag-y) 0 0 var(--tag-x));
  transform: translateY(6px);
  animation: intro-rise 550ms var(--ease-out) 1200ms forwards;
}
.intro-line { position: relative; width: 100%; height: 9px; }
.intro-line::before {                        /* hairline */
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px;
  background: rgba(170, 183, 197, 0.32);
  transform: scaleX(0);
  animation: intro-draw 800ms var(--ease-out) 100ms forwards;
}
.intro-line::after {                         /* faint measurement scale */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(170, 183, 197, 0.2) 0 1px, transparent 1px 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  opacity: 0;
  animation: intro-fade 600ms ease-out 500ms forwards;
}
.intro-light {                               /* the travelling light */
  position: absolute; left: 0; top: 4px; width: max(160px, 24vw); height: 1px;
  background: linear-gradient(90deg, rgba(0, 200, 215, 0), var(--cyan) 72%, var(--cloud) 97%, rgba(0, 200, 215, 0));
  transform: translateX(-100%);
  animation: intro-sweep 1200ms cubic-bezier(0.65, 0, 0.35, 1) 150ms forwards;
}
.intro-light::after { content: ""; position: absolute; inset: -3px 0; background: inherit; filter: blur(3px); opacity: 0.5; }
.intro-skip {
  position: fixed; right: var(--float-right); bottom: var(--float-bottom);
  min-height: 44px; padding: 0 18px; border: 1px solid rgba(170, 183, 197, 0.55); border-radius: var(--radius);
  background: transparent; color: var(--cloud); cursor: pointer;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; animation: intro-fade 300ms ease-out 300ms forwards;
  transition: border-color var(--t-micro) var(--ease-out);
}
.intro-skip:hover { border-color: var(--cyan); }
.intro-skip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@keyframes intro-draw { to { transform: scaleX(1); } }
@keyframes intro-sweep { to { transform: translateX(100vw); } }
@keyframes intro-rise { to { opacity: 1; transform: none; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-out {                     /* clickable until half-way, then the page takes over */
  0%, 49% { pointer-events: auto; }
  50% { pointer-events: none; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes intro-stage-out { to { opacity: 0; } }
@keyframes intro-skip-out { to { opacity: 0; } }   /* stays clickable until removed, so a skipping tap never reaches the page */

/* The hero's existing one-time settle starts as the intro hands over */
html.intro-played .hero-placeholder, html.intro-played .hero-photo { animation-delay: var(--intro-hero-delay, 2300ms); }

@media (max-width: 639px) { .intro-logo { width: min(86vw, 420px); } }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }
@media print { .intro { display: none !important; } }

/* ---------- 23. Home refinements (2026-11-18): How it works (R3) + FAQ answers (R5) ----------
   Scoped to .how-it-works and .faq-answer only. Uses existing tokens; no global changes. */
.how-it-works { margin-top: clamp(56px, 7vw, 96px); }
.how-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 20px; }
.how-head h3 { font-size: 1.5rem; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.how-steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--divider); }
.how-num { font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.12em; color: var(--accent); }
.how-step-title { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; }
.how-step-text { color: var(--text-2); line-height: 1.6; max-width: 26rem; }
.faq-list .faq-answer { flex-basis: 100%; color: var(--text-2); line-height: 1.6; max-width: 44rem; }
@media (max-width: 767px) {
  .how-steps { grid-template-columns: 1fr; row-gap: 24px; }
}
.how-problem { color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 44rem; margin-bottom: 28px; }

/* ---------- 24. v1.0 refinements (2026-11-18): Kit targets, Team company line, Contact project facts ----------
   Scoped selectors only; existing tokens; no global changes. */
.kit-targets-title { margin-top: 40px; }
.kit-targets { margin-bottom: 20px; }
.team-company { margin-top: 20px; }
.eu-facts { margin: 4px 0 0; }
.eu-facts div { grid-template-columns: 8.5rem 1fr; padding: 10px 0; }
.eu-source { font-size: 0.85rem; color: var(--muted); }
.eu-source a { color: var(--text); }
/* Resources: optional slots (technical, software) are never shown empty, in any mode. */
.resource[data-optional][data-available="false"] { display: none; }
.kit-targets-block .ph-banner { margin-top: 32px; }


/* ---------- 25. Company link (2026-11-19): back to the AdaGuzey Engineering website ----------
   In the main menu (just before Contact, after a divider) and in the footer.
   Same design as the FLUIDCAR link on the AdaGuzey site: soft violet chip, logo,
   mono label, cyan "↗". Address: config.js (companyUrl). */
.company-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border: 1px solid rgba(133, 87, 255, 0.45); border-radius: 999px;
  background: rgba(133, 87, 255, 0.12); color: var(--cloud); font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.12em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out); }
.company-link img { width: 18px; height: 17px; border-radius: 2px; flex: none; }
.company-link-arrow { color: var(--cyan); transition: transform var(--t-micro) var(--ease-out); }
.company-link:hover { background: rgba(133, 87, 255, 0.26); border-color: rgba(133, 87, 255, 0.8); color: var(--cloud); }
.company-link:hover .company-link-arrow { transform: translate(2px, -2px); }
.nav-company-item { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav-company-item::before { content: ""; width: 1px; height: 20px; background: var(--x-divider-dark); }
.main-nav a.company-link { color: var(--cloud); padding: 8px 12px 8px 10px; }
.main-nav a.company-link::after { display: none !important; }
.company-link-footer { justify-self: start; margin-top: 6px; padding: 12px 16px 12px 12px; }
.company-link-footer img { width: 22px; height: 20px; }
@media (max-width: 1199px) {
  .nav-company-item { display: block; }
  .nav-company-item::before { display: none; }
  html.js .main-nav > ul a.company-link { display: flex; justify-content: center; margin-top: 20px; padding: 15px 16px; border: 1px solid rgba(133, 87, 255, 0.45); border-radius: 999px; font-size: 0.85rem; }
  html.js .main-nav > ul a.company-link img { width: 22px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .company-link-arrow { transition: none; } }

/* ===================================================================
   HERO BACKGROUND VIDEO
   The poster (.hero-photo) is always there; the video fades in over it only once it is playing.
   =================================================================== */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  opacity: 0; transition: opacity 900ms var(--ease-out); pointer-events: none; }
.hero-video-on .hero-video { opacity: 1; }
.hero-video-toggle { position: absolute; z-index: 3; top: calc(var(--header-h) + 24px); right: var(--gutter);
  width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--mist); background: rgba(7, 17, 31, 0.5); border: 1px solid rgba(220, 229, 236, 0.32); border-radius: var(--radius);
  transition: border-color var(--t-micro) ease, background-color var(--t-micro) ease; }
.hero-video-toggle:hover { border-color: var(--mist); background: rgba(7, 17, 31, 0.75); }
.hero-video-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hero-video-toggle[hidden] { display: none; }
.hvt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hero-video-toggle[data-state="playing"] .hvt-label-play,
.hero-video-toggle[data-state="paused"] .hvt-label-pause { display: none; }
/* pause: two bars / play: a triangle, drawn with borders so no icon font or SVG request is needed */
.hvt-icon { display: block; box-sizing: border-box; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-video-toggle[data-state="paused"] .hvt-icon { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor; }
@media (max-width: 767px) {
  .hero-video-toggle { top: calc(var(--header-h) + 16px); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video, .hero-video-toggle { display: none !important; }
}
@media print { .hero-video, .hero-video-toggle { display: none !important; } }
/* The video is brighter and busier than the old still, so the media layer gets its own Deep Navy veil
   (.hero-veil, between the video and the brand lighting in identity.css)
   tint: a top band keeps the transparent header legible, and an even veil keeps the headline above
   WCAG AA over every frame (checked frame by frame, see README). */
.hero-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.9) 0%, rgba(7, 17, 31, 0.6) 20%, rgba(7, 17, 31, 0.32) 36%, rgba(7, 17, 31, 0) 54%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.5) 50%, rgba(7, 17, 31, 0) 86%), rgba(7, 17, 31, 0.3); }
/* Over the moving video the small eyebrow line moves from Metallic Grey to Mist to stay above 4.5:1. */
.hero-video-on .hero-content .eyebrow { color: var(--mist); }
.hero-video-on .hero-line + .hero-line { color: var(--mist); }
