/* ============================================================
   De Slimme Brug — site styles
   Calm, architectural, levend. Heritage × algoritme.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Layout ─────────────────────────── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Extra breathing room inside cards on small screens */
@media (max-width: 720px) {
  .qs-card,
  .nl-form,
  .editie,
  .verhaal,
  .rm-card,
  .partner-type,
  .voordeel-card,
  .aanmeld-card,
  .sec-pillar,
  .arch-step,
  .cert-card,
  .founder-body,
  .mv-card,
  .bc-card,
  .pkg-card,
  .mod-card,
  .case-bridge-card,
  .heatmap-card {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
  .biz-row { padding-left: 0; padding-right: 0; }
  .biz-cell { padding-left: var(--space-5); padding-right: var(--space-5); }
  .nl-card { padding: var(--space-7); }
}

section { position: relative; }

/* ── Section header pattern ─────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--accent);
  margin-bottom: var(--space-5);
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,184,217,0.18);
  animation: pulse-dot 1.8s var(--ease-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw + 1rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
  text-wrap: pretty;
  max-width: 22ch;
}
.section-lede {
  font-size: var(--fs-18);
  line-height: 1.6;
  color: var(--fg-secondary);
  max-width: 56ch;
  margin: 0;
}

/* ── Buttons ────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-14);
  letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              color var(--dur-normal) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--fg-on-inverse);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--primary-press); transform: translateY(0); transition-duration: 80ms; }

.btn-accent {
  background: var(--accent);
  color: #002A33;
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost.on-dark { color: var(--fg-on-inverse); border-color: rgba(255,255,255,0.22); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); transform: translateY(-1px); }
.btn-ghost.on-light:hover { background: var(--bg-subtle); transform: translateY(-1px); }

.btn-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Header / nav ──────────────────── */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--accent);
  color: #002A33;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--fs-14);
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out),
              backdrop-filter var(--dur-normal) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-on-dark { color: var(--fg-on-inverse); }
.site-header.is-on-dark.is-scrolled {
  background: rgba(6, 24, 41, 0.86);
  border-bottom-color: rgba(255,255,255,0.08);
}
.site-header.is-on-light {
  color: var(--fg-primary);
  background: rgba(247, 248, 250, 0.86);
  border-bottom-color: var(--border-subtle);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
  flex-wrap: nowrap;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-18);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-lockup .brand-mark {
  width: 56px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 2px;
}
.brand-lockup .brand-mark svg { width: 100%; height: 100%; overflow: visible; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-family: inherit;
  font-size: var(--fs-14);
  font-weight: 500;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.is-on-dark .nav-link { color: rgba(255,255,255,0.92); }
.is-on-light .nav-link { color: var(--fg-primary); }
.is-on-dark .nav-link:hover { background: rgba(255,255,255,0.06); }
.is-on-light .nav-link:hover { background: var(--bg-subtle); }

/* "Inzichten" — top-level item met blijvend accent-stipje */
.nav-inzichten { font-weight: 600; }
.nav-new-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #00B8D9); margin-left: 5px; vertical-align: top; margin-top: 1px;
  box-shadow: 0 0 0 0 rgba(0, 184, 217, 0.55);
  animation: navNewPulse 2.6s ease-out infinite;
}
@keyframes navNewPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 184, 217, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0, 184, 217, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 184, 217, 0); }
}
.mobile-drawer .m-link-inzichten { font-weight: 700; display: inline-flex; align-items: center; }
.nav-login {
  border: 1px solid currentColor;
  border-color: rgba(255,255,255,0.18);
  padding: 8px 14px !important;
  font-weight: 500;
}
.is-on-light .nav-login { border-color: var(--border-default); }
.nav-login:hover { border-color: var(--accent) !important; color: var(--accent) !important; background: transparent !important; }
.nav-link .chev {
  transition: transform var(--dur-normal) var(--ease-out);
  width: 12px; height: 12px;
}
.nav-link[data-open="true"] .chev { transform: rotate(180deg); }

.nav-cta { display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}
/* Hide the "87 bruggen live" pill on tighter widths so the header doesn't wrap */
@media (max-width: 1280px) {
  .site-header .nav-status { display: none; }
}
.is-on-light .nav-status { border-color: var(--border-subtle); color: var(--fg-secondary); }
.nav-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulse-dot 1.8s var(--ease-out) infinite;
}

/* Mega menu */
.mega {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg-surface);
  color: var(--fg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out),
              visibility var(--dur-normal);
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: var(--space-12);
  padding: var(--space-10) 0 var(--space-10);
}
.mega-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-tertiary);
  margin: 0 0 var(--space-4);
  font-weight: 500;
}
.mega-link-list { display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.mega-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out);
}
.mega-link:hover { background: var(--bg-subtle); }
.mega-link strong { font-size: var(--fs-14); font-weight: 600; }
.mega-link span { font-size: var(--fs-13); color: var(--fg-tertiary); }

.mega-promo {
  background: var(--dsb-navy-900);
  color: var(--fg-on-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: relative;
  overflow: hidden;
}
.mega-promo::before {
  content: '';
  position: absolute; inset: auto -20% -40% auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle at center, rgba(0,184,217,0.18), transparent 60%);
  pointer-events: none;
}

/* Mobile nav */
.nav-mobile-toggle {
  width: 40px; height: 40px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-mobile-toggle .bar {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-normal) var(--ease-out);
}
.nav-mobile-toggle .bar:nth-child(1) { top: 14px; }
.nav-mobile-toggle .bar:nth-child(2) { top: 19px; }
.nav-mobile-toggle .bar:nth-child(3) { top: 24px; }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--dsb-navy-900);
  color: var(--fg-on-inverse);
  z-index: 55;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition:
    transform var(--dur-slow) var(--ease-out),
    clip-path var(--dur-slow) var(--ease-out),
    visibility 0s linear var(--dur-slow);
  overflow-y: auto;
  padding: var(--space-6) var(--space-5) var(--space-12);
}
.mobile-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transition:
    transform var(--dur-slow) var(--ease-out),
    clip-path var(--dur-slow) var(--ease-out),
    visibility 0s linear 0s;
}
.mobile-drawer .m-nav { display: flex; flex-direction: column; }
.mobile-drawer .m-group {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--accent);
  margin: var(--space-5) 0 2px;
}
.mobile-drawer .m-group:first-child { margin-top: 0; }
.mobile-drawer .m-link {
  display: block;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mobile-drawer .m-cta { margin-top: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }

@media (max-width: 980px) {
  .nav-primary, .nav-cta .desktop-only { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}

/* ── Hero ───────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-hero);
  color: var(--fg-on-inverse);
  overflow: hidden;
  isolation: isolate;
  padding-top: 72px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(0, 184, 217, 0.10), transparent 70%),
    radial-gradient(40% 30% at 20% 80%, rgba(0, 184, 217, 0.06), transparent 70%);
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 75%);
  z-index: 0;
}
.hero-fog {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, var(--bg-hero) 0%, rgba(6,24,41,0.5) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.hero-content { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-on-inverse-secondary);
}
.hero-eyebrow .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,184,217,0.22);
  animation: pulse-dot 1.8s var(--ease-out) infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw + 0.5rem, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: var(--space-5) 0 var(--space-6);
  text-wrap: pretty;
}
.hero h1 .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}
.hero h1 .hl {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8EEF7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.25rem);
  line-height: 1.55;
  color: var(--fg-on-inverse-secondary);
  max-width: 56ch;
  margin: 0 0 var(--space-8);
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-stats {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-30);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stat .num .unit { color: var(--accent); margin-left: 2px; }
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-on-inverse-secondary);
  margin-top: 4px;
  display: block;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-width: 640px;
  margin-left: auto;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-stage { max-width: none; aspect-ratio: 1.3 / 1; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* On phones, lift sensor labels out from on top of the bridge:
   stage becomes flex-column, SVG keeps its aspect, labels reflow into
   a 2-column chip grid below — the bridge stays unobstructed. */
@media (max-width: 640px) {
  /* Stop forcing a full viewport height: let the hero be content-sized so the
     bridge animation no longer pushes the page to ~1.6× screen height. */
  .hero { min-height: auto; }
  .hero-inner {
    min-height: auto;
    padding-top: var(--space-10);
    padding-bottom: var(--space-12);
    gap: var(--space-8);
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { margin-top: var(--space-8); gap: var(--space-5); }
  .hero-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
  .hero-stage > svg {
    width: 100%;
    aspect-ratio: 1.7 / 1;
    height: auto !important;
    order: 1;
    flex-basis: 100%;
  }
  .hero-stage > .bridge-hud {
    order: 0;
    flex-basis: 100%;
    /* Drop the absolute overlay on phones: let the HUD sit in flow above the
       bridge so it can't spill over the stage onto the ticker below. */
    position: static;
    transform: none;
    width: 100%;
    margin: 0 0 var(--space-4);
  }
  /* The four floating sensor chips duplicate the HUD data and add ~160px of
     clutter on a phone — hide them so the bridge reads cleanly. */
  .hero-stage .sensor-label,
  .hero-stage .sensor-leader { display: none !important; }
}

/* Floating sensor labels */
.sensor-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 12px 8px 10px;
  background: rgba(6,24,41,0.7);
  border: 1px solid rgba(0,184,217,0.28);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-on-inverse);
  white-space: nowrap;
  letter-spacing: 0.04em;
  animation: drift 8s var(--ease-in-out) infinite;
}
.sensor-label::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,184,217,0.22);
}
.sensor-label .lbl-id { color: var(--accent); margin-right: 4px; }
/* Distributed around the bridge — two flanking the deck above the traffic lane,
   two below in the water area. None overlaps the structure or the HUD. */
.sensor-label.sl-1 { top: 48%; left: 1%; animation-delay: 0s; }
.sensor-label.sl-2 { bottom: 16%; left: 6%; animation-delay: 1.2s; }
.sensor-label.sl-3 { bottom: 16%; right: 6%; animation-delay: 2.4s; }
.sensor-label.sl-4 { top: 48%; right: 1%; animation-delay: 3.6s; }
.sensor-label { transition: background-color 320ms var(--ease-out), border-color 320ms var(--ease-out), color 320ms var(--ease-out); }
.sensor-label.is-active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #FFEAC9;
}
.sensor-label.is-active::before {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.30);
  animation-duration: 0.7s;
}
.sensor-label.is-active .lbl-id { color: #F59E0B; }
.sensor-label.is-open {
  background: rgba(0, 184, 217, 0.14);
  border-color: rgba(0, 184, 217, 0.40);
}

/* ── Bridge HUD ───────────────────────────────────────────────────
   Floating data overlay above the bridge animation. Reads openings,
   previous duration, predicted next opening, and a heartbeat ECG. */
.bridge-hud {
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: min(86%, 460px);
  background: rgba(10, 22, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2);
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.05);
}
.bridge-hud::before {
  content: ''; position: absolute; left: var(--space-4); right: var(--space-4); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent) 60%, transparent);
  opacity: 0.55;
}
.hud-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.hud-id { color: rgba(255,255,255,0.55); }
.hud-phase { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.88); }
.hud-phase-dot {
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
  animation: pulse-dot 1.6s var(--ease-out) infinite;
}
[data-phase="opening"] .hud-phase-dot,
[data-phase="closing"] .hud-phase-dot { animation-duration: 0.7s; }
.hud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.hud-cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 8px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.hud-cell:first-child { border-left: 0; padding-left: 0; }
.hud-lbl {
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
}
.hud-val {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  transition: color 320ms var(--ease-out);
}
.hud-val.flash-1 { color: var(--accent); }
.hud-u { font-size: 11px; opacity: 0.55; margin-left: 2px; }
.hud-sub {
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.hud-ecg {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--space-2);
  margin-top: 2px;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hud-ecg-lbl {
  font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.hud-ecg svg { width: 100%; height: 28px; display: block; }
.hud-ecg .ecg-trace {
  animation: ecg-scroll 1.8s linear infinite;
}
[data-tempo="rustig"] .hud-ecg .ecg-trace { animation-duration: 2.6s; }
[data-tempo="urgent"] .hud-ecg .ecg-trace { animation-duration: 1.1s; }
@keyframes ecg-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(80px); }
}
.hud-bpm { font-size: 13px; color: rgba(255,255,255,0.85); white-space: nowrap; }
@media (max-width: 980px) {
  .bridge-hud { width: min(94%, 420px); padding: var(--space-3); }
  .hud-val { font-size: 18px; }
  .hud-grid { gap: var(--space-2); }
}
@media (max-width: 640px) {
  /* In the stacked mobile hero the HUD sits in flow, so trim it down:
     keep the live readouts, drop the separate ECG trace row (the bridge
     SVG already pulses) and let the 3 cells sit in one tidy row. */
  .bridge-hud { padding: var(--space-3) var(--space-4); gap: var(--space-2); }
  .bridge-hud .hud-ecg { display: none; }
  .hud-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .hud-val { font-size: 17px; }
}
@media (max-width: 520px) {
  .bridge-hud { top: var(--space-2); }
  .hud-grid { grid-template-columns: 1fr 1fr; }
  .hud-cell:nth-child(3) { grid-column: span 2; border-left: 0; padding-left: 0; }
  .hud-ecg-lbl, .hud-bpm { display: none; }
  /* Lift the smallest data labels to a legible size on phones */
  .hud-lbl, .hud-sub { font-size: 10px; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Connector lines from labels to sensors */
.sensor-leader {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, rgba(0,184,217,0.55), rgba(0,184,217,0));
  pointer-events: none;
}

/* Marquee ticker */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(6,24,41,0.4);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-on-inverse-secondary);
}
.ticker-track {
  display: flex;
  gap: var(--space-12);
  white-space: nowrap;
  padding: 14px 0;
  animation: ticker 60s linear infinite;
}
.ticker-track > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.ticker-track > span::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,184,217,0.22);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Section: Mission ───────────────── */
.mission {
  padding: var(--space-24) 0;
  background: var(--bg-page);
  position: relative;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-16);
  align-items: start;
}
.mission-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.022em;
  color: var(--fg-primary);
  text-wrap: pretty;
}
.mission-quote em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.mission-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
}
.pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-subtle);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--border-subtle); }
.pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-tertiary);
  padding-top: 4px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-20);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.018em;
}
.pillar p {
  margin: 0;
  color: var(--fg-secondary);
  line-height: 1.65;
  font-size: var(--fs-14);
}

@media (max-width: 980px) {
  .mission-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

/* ── Section: Services ──────────────── */
.services {
  padding: var(--space-24) 0;
  background: var(--bg-subtle);
  position: relative;
}
.services-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: var(--space-12); gap: var(--space-8); flex-wrap: wrap; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.svc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  display: flex; flex-direction: column; gap: var(--space-4);
  min-height: 240px;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.svc-card:hover { border-color: var(--border-default); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc-card .svc-go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--fg-tertiary);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.svc-card:hover .svc-go, .svc-card:focus-visible .svc-go { opacity: 1; transform: translateY(0); color: var(--accent); }
.svc-card:hover .svc-go { gap: 10px; }
.svc-card.featured .svc-go { color: var(--accent); }
.svc-card.s-12 { grid-column: span 12; }
.svc-card.s-8 { grid-column: span 8; }
.svc-card.s-6 { grid-column: span 6; }
.svc-card.s-4 { grid-column: span 4; }

.svc-card .svc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-tertiary);
}
.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-24);
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: pretty;
}
.svc-card p {
  margin: 0;
  color: var(--fg-secondary);
  line-height: 1.6;
  font-size: var(--fs-14);
}
.svc-card .svc-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.svc-card:hover .svc-cta { gap: 10px; color: var(--accent); }

.svc-card.featured {
  background: var(--dsb-navy-900);
  color: var(--fg-on-inverse);
  border-color: transparent;
  position: relative;
}
.svc-card.featured h3, .svc-card.featured p { color: inherit; }
.svc-card.featured p { color: var(--fg-on-inverse-secondary); }
.svc-card.featured .svc-cta { color: var(--accent); }
.svc-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent);
}

@media (max-width: 980px) {
  .svc-card.s-12, .svc-card.s-8, .svc-card.s-6, .svc-card.s-4 { grid-column: span 12; }
}

/* ── Section: Capabilities ──────────── */
.capabilities {
  padding: var(--space-24) 0;
  background: var(--dsb-navy-900);
  color: var(--fg-on-inverse);
  position: relative;
  overflow: hidden;
}
.capabilities::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 100%;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  pointer-events: none;
}
.capabilities .container { position: relative; z-index: 1; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-12);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cap-cell {
  padding: var(--space-8) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: relative;
  transition: background var(--dur-normal) var(--ease-out);
}
.cap-cell:hover { background: rgba(0,184,217,0.04); }
.cap-cell:nth-child(3n) { border-right: none; }
.cap-cell .cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  color: var(--accent);
}
.cap-cell h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-18);
  letter-spacing: -0.018em;
  margin: 0;
}
.cap-cell p {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--fg-on-inverse-secondary);
  max-width: 36ch;
}

@media (max-width: 980px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-cell:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.08); }
  .cap-cell:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-cell { border-right: none !important; }
}

/* ── Section: Safety / Monitoring ───── */
.safety {
  padding: var(--space-24) 0;
  background: var(--bg-page);
}
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
}
.safety-stage {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--dsb-navy-900);
  color: var(--fg-on-inverse);
  padding: var(--space-8);
  overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column; gap: var(--space-6);
}
.safety-stage::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 80% 10%, rgba(0,184,217,0.10), transparent 70%);
  pointer-events: none;
}
.safety-stage > * { position: relative; z-index: 1; }
.safety-head {
  display: flex; justify-content: space-between; align-items: start;
  gap: var(--space-4);
}
.safety-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-on-inverse-secondary);
}
.safety-head .label strong {
  color: var(--accent);
  font-weight: 500;
}

.alert-list { display: flex; flex-direction: column; gap: var(--space-3); }
.alert {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  font-size: var(--fs-13);
}
.alert .ind {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,184,217,0.22);
}
.alert.warn .ind { background: var(--dsb-warning-500); box-shadow: 0 0 0 3px rgba(217,119,6,0.22); }
.alert.danger .ind { background: var(--dsb-danger-500); box-shadow: 0 0 0 3px rgba(220,38,38,0.22); }
.alert .alert-name { font-weight: 500; }
.alert .alert-detail { color: var(--fg-on-inverse-secondary); margin-left: 8px; }
.alert .alert-time { font-family: var(--font-mono); font-size: 11px; color: var(--fg-on-inverse-secondary); letter-spacing: 0.04em; }

.ecg-wrap {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  padding: var(--space-4) var(--space-5);
}
.ecg-wrap .ecg-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-on-inverse-secondary);
  margin-bottom: var(--space-3);
}
.ecg-wrap .ecg-meta .val { color: var(--accent); font-size: var(--fs-14); letter-spacing: 0; text-transform: none; }
.ecg-svg { width: 100%; height: 80px; display: block; }

@media (max-width: 980px) {
  .safety-grid { grid-template-columns: 1fr; }
}

/* ── Section: Sensors ───────────────── */
.sensors {
  padding: var(--space-24) 0;
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
}
.sensors-head { margin-bottom: var(--space-12); }
.sensors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.sensor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-normal) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.sensor-card:hover { border-color: var(--accent); }
.sensor-card .s-id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-tertiary);
  text-transform: uppercase;
}
.sensor-card .s-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-16);
  letter-spacing: -0.016em;
}
.sensor-card .s-val {
  font-family: var(--font-mono);
  font-size: var(--fs-30);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  display: flex; align-items: baseline; gap: 4px;
  transition: color var(--dur-normal) var(--ease-out);
}
.sensor-card.flash .s-val { color: var(--accent); }
.sensor-card .s-val .unit {
  font-size: var(--fs-13);
  font-family: var(--font-mono);
  color: var(--fg-tertiary);
  font-weight: 400;
}
.sensor-card .s-spark { width: 100%; height: 36px; }
.sensor-card .s-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-tertiary);
  display: flex; justify-content: space-between;
}
.sensor-card .s-meta .ok { color: var(--dsb-success-500); }

@media (max-width: 980px) { .sensors-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .sensors-grid { grid-template-columns: 1fr; } }

/* ── Section: Dashboard ─────────────── */
.dashboard {
  padding: var(--space-24) 0;
  background: var(--bg-subtle);
}
.dashboard-head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.dash {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dash-chrome {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-tertiary);
}
.dash-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--border-subtle);
}
.dash-chrome .dots { display: flex; gap: 6px; }
.dash-chrome .breadcrumb { margin-left: var(--space-3); flex: 1; }
.dash-chrome .breadcrumb b { color: var(--fg-primary); font-weight: 500; }
.dash-chrome .live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.dash-chrome .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,184,217,0.22);
  animation: pulse-dot 1.8s var(--ease-out) infinite;
}
.dash-chrome .dash-org {
  display: inline-flex; flex-direction: column; line-height: 1.2;
  padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); text-align: left;
  flex-shrink: 0; white-space: nowrap;
}
.dash-chrome .dash-org b { color: var(--fg-primary); font-weight: 600; font-size: var(--fs-12); white-space: nowrap; }
.dash-chrome .dash-org span { color: var(--fg-tertiary); font-size: 10px; white-space: nowrap; }
.dash-chrome .dash-clock { color: var(--fg-tertiary); font-size: var(--fs-12); }
.dash-greeting {
  font-size: var(--fs-13); color: var(--fg-secondary);
  margin-bottom: var(--space-4);
}
.dash-greeting b { color: var(--fg-primary); font-weight: 600; }
@media (max-width: 720px) {
  .dash-chrome .dash-org, .dash-chrome .dash-clock { display: none; }
}

/* Static dashboard embed (homepage) — crisp, scales to fit */
.dash-shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  background: var(--bg-surface);
}
.dash-frame-wrap { position: relative; width: 100%; overflow: hidden; }
.dash-frame { border: 0; display: block; transform-origin: top left; background: var(--bg-page); }
.dash-shot-cta {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #002A33;
  font-weight: 600; font-size: var(--fs-14);
  padding: 10px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  z-index: 2;
}
.dash-shot-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .dash-shot-cta { right: 10px; bottom: 10px; padding: 8px 12px; font-size: var(--fs-13); } }
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  min-height: 540px;
}
.dash-sidebar {
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--bg-page);
}
.dash-sidebar h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin: 0 0 var(--space-2);
  font-weight: 500;
}
.dash-list { display: flex; flex-direction: column; gap: 2px; }
.dash-list-item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-13);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  position: relative;
}
.dash-list-item:hover { background: var(--bg-subtle); }
.dash-list-item.is-active { background: var(--bg-subtle); }
.dash-list-item.is-active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; background: var(--accent);
}
.dash-list-item .ind { width: 6px; height: 6px; border-radius: 50%; background: var(--dsb-success-500); margin-left: auto; }
.dash-list-item .ind.warn { background: var(--dsb-warning-500); }
.dash-list-item .ind.danger { background: var(--dsb-danger-500); }
.dash-list-item .id-tag { font-family: var(--font-mono); font-size: 10px; color: var(--fg-tertiary); margin-left: auto; margin-right: 4px; }

.dash-main {
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.dash-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.kpi {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: 4px;
}
.kpi .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.kpi .v {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.kpi .v .u { font-size: var(--fs-13); color: var(--fg-tertiary); font-family: var(--font-mono); font-weight: 400; }
.kpi .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  display: inline-flex; gap: 4px; align-items: center;
}
.kpi .delta.up { color: var(--dsb-success-500); }
.kpi .delta.down { color: var(--dsb-danger-500); }

.dash-chart {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  flex: 1;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.dash-chart .ch-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.dash-chart .ch-head .v {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-transform: none;
}
.dash-chart svg { width: 100%; height: 200px; display: block; }

.dash-aside {
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-5);
  background: var(--bg-page);
}
.dash-aside h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin: 0;
  font-weight: 500;
}
.event-feed { display: flex; flex-direction: column; gap: 0; }
.event {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-13);
}
.event .t { font-family: var(--font-mono); font-size: 11px; color: var(--fg-tertiary); }
.event .e-title { font-weight: 500; margin-bottom: 2px; }
.event .e-bridge { font-size: var(--fs-12); color: var(--fg-tertiary); }
.event.warn .e-title::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dsb-warning-500); margin-right: 6px; vertical-align: 1px;
}
.event.danger .e-title::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dsb-danger-500); margin-right: 6px; vertical-align: 1px;
}
.event.ok .e-title::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dsb-success-500); margin-right: 6px; vertical-align: 1px;
}

@media (max-width: 1100px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar, .dash-aside { display: none; }
  .dash-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section: Predictive maintenance ─ */
.predictive {
  padding: var(--space-24) 0;
  background: var(--bg-page);
}
.predictive-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: stretch;
}
.timeline {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--border-subtle);
  padding-left: var(--space-6);
  margin-left: var(--space-3);
}
.tl-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }
.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-6) - 4px);
  top: var(--space-6);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 2px solid var(--border-default);
}
.tl-item.is-future::before { border-color: var(--accent); background: var(--bg-page); box-shadow: 0 0 0 4px rgba(0,184,217,0.18); }
.tl-item.is-now::before { background: var(--accent); border-color: var(--accent); }

.tl-item .tl-when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 6px;
}
.tl-item .tl-when.future { color: var(--accent); }
.tl-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-18);
  letter-spacing: -0.018em;
  margin: 0 0 var(--space-2);
}
.tl-item p {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--fg-secondary);
}
.tl-item .conf {
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: var(--space-3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--dsb-navy-800);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .predictive-grid { grid-template-columns: 1fr; }
}

/* ── Section: AI ────────────────────── */
.ai-section {
  padding: var(--space-24) 0;
  background: var(--dsb-navy-900);
  color: var(--fg-on-inverse);
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 20% 20%, rgba(0,184,217,0.08), transparent 70%),
    radial-gradient(50% 40% at 90% 80%, rgba(0,184,217,0.06), transparent 70%);
  pointer-events: none;
}
.ai-section .container { position: relative; }
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.ai-section .section-title { color: var(--fg-on-inverse); }
.ai-section .section-lede { color: var(--fg-on-inverse-secondary); }

.layer-stack {
  display: flex; flex-direction: column; gap: var(--space-3);
}
.layer {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  transition: border-color var(--dur-normal) var(--ease-out), background var(--dur-normal) var(--ease-out);
}
.layer .ll-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-on-inverse-secondary);
}
.layer .ll-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-16);
  letter-spacing: -0.014em;
}
.layer .ll-name span { display: block; font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-13); color: var(--fg-on-inverse-secondary); margin-top: 2px; letter-spacing: 0; }
.layer .ll-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.layer.is-active { border-color: rgba(0,184,217,0.4); background: rgba(0,184,217,0.04); }

@media (max-width: 980px) {
  .ai-grid { grid-template-columns: 1fr; }
}

/* ── Section: CTA ───────────────────── */
.cta {
  padding: var(--space-24) 0;
  background: var(--bg-page);
  position: relative;
}
.cta-card {
  background: var(--dsb-navy-900);
  color: var(--fg-on-inverse);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-10), 8vw, var(--space-24));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 35% at 85% 20%, rgba(0,184,217,0.16), transparent 65%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw + 1rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: var(--space-4) 0 var(--space-5);
  text-wrap: pretty;
}
.cta-card p {
  font-size: var(--fs-18);
  line-height: 1.55;
  color: var(--fg-on-inverse-secondary);
  max-width: 50ch;
  margin: 0 0 var(--space-8);
}
.cta-card .cta-buttons { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.cta-aside {
  display: flex; flex-direction: column; gap: var(--space-3);
}
.cta-aside .booker {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.cta-aside .booker .ho {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-on-inverse-secondary);
  display: flex; justify-content: space-between;
}
.cta-aside .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cta-aside .slot {
  text-align: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  display: flex; flex-direction: column; gap: 2px;
}
.cta-aside .slot:hover { border-color: var(--accent); background: rgba(0,184,217,0.06); }
.cta-aside .slot.is-active { background: var(--accent); color: var(--dsb-navy-900); border-color: var(--accent); }
.cta-aside .slot .day { color: var(--fg-on-inverse-secondary); font-size: 10px; text-transform: uppercase; }
.cta-aside .slot.is-active .day { color: var(--dsb-navy-800); }
.cta-aside .slot .time { font-size: var(--fs-13); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

@media (max-width: 980px) {
  .cta-card { grid-template-columns: 1fr; }
  /* Let grid children shrink below their content min-width so nothing clips */
  .cta-card > * { min-width: 0; }
}
@media (max-width: 640px) {
  /* Tighter padding so the card content has room on a phone */
  .cta-card { padding: var(--space-7) var(--space-6); gap: var(--space-8); border-radius: var(--radius-xl); }
  .cta-card .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-card .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ── Footer ─────────────────────────── */
footer.site-footer {
  background: var(--bg-hero);
  color: var(--fg-on-inverse);
  padding: var(--space-20) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
footer.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 100%;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  pointer-events: none;
}
footer.site-footer .container { position: relative; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-30);
  letter-spacing: -0.025em;
  margin: var(--space-6) 0 var(--space-3);
  max-width: 18ch;
  line-height: 1.1;
}
.footer-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer-wordmark img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 100%;
}
.footer-brand p {
  color: var(--fg-on-inverse-secondary);
  max-width: 36ch;
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-on-inverse-secondary);
  margin: 0 0 var(--space-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  font-size: var(--fs-14);
  color: var(--fg-on-inverse);
  transition: color var(--dur-fast) var(--ease-out);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-on-inverse-secondary);
}
.footer-bottom .ft-status { display: inline-flex; align-items: center; gap: var(--space-2); }
/* Discrete beheer-ingang: ziet eruit als een gewone scheidings-punt, alleen klikbaar */
.ft-beheer { color: inherit; text-decoration: none; cursor: pointer; opacity: 0.6; padding: 0 2px; }
.ft-beheer:hover { color: var(--accent); opacity: 1; }
.footer-bottom .ft-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dsb-success-500); box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
  animation: pulse-dot 1.8s var(--ease-out) infinite;
}

@media (max-width: 1200px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── Business case (anonymous "voor vs. na") ───── */
.biz-case {
  padding: var(--space-24) 0;
  background: var(--bg-page);
}
.biz-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: end;
  margin-bottom: var(--space-12);
}
@media (max-width: 980px) { .biz-head { grid-template-columns: 1fr; gap: var(--space-6); } }

.biz-table {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.biz-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border-subtle);
}
.biz-row:last-child { border-bottom: none; }
.biz-row-head {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-default);
}
.biz-cell {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  font-size: var(--fs-15, var(--fs-16));
  border-right: 1px solid var(--border-subtle);
}
.biz-cell:last-child { border-right: none; }
.biz-row-head .biz-cell {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-tertiary);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.biz-cell-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-16);
  letter-spacing: -0.012em;
  color: var(--fg-primary);
}
.biz-cell-before {
  color: var(--fg-tertiary);
  text-decoration: line-through;
  text-decoration-color: rgba(220,38,38,0.45);
  text-decoration-thickness: 1.5px;
  font-size: var(--fs-18);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.biz-cell-after {
  color: var(--fg-primary);
  font-weight: 600;
  font-size: var(--fs-20);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.biz-cell-delta {
  font-weight: 600;
  color: var(--dsb-success-500);
  font-size: var(--fs-16);
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-left: calc(var(--space-6) + 14px);
}
.biz-cell-delta::before {
  content: '';
  position: absolute;
  left: var(--space-6);
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dsb-success-500);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  .biz-row-head { display: none; }
  .biz-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-2) 0;
  }
  .biz-cell {
    border-right: none;
    padding: var(--space-2) var(--space-5);
  }
  .biz-cell-label { padding-top: var(--space-4); font-size: var(--fs-15); }
  .biz-cell-before::before { content: 'Zonder voorspelling: '; color: var(--fg-tertiary); font-size: var(--fs-13); font-family: var(--font-mono); letter-spacing: var(--tracking-caps); text-transform: uppercase; margin-right: 8px; text-decoration: none; }
  .biz-cell-after::before { content: 'Met De Slimme Brug: '; color: var(--accent); font-size: var(--fs-13); font-family: var(--font-mono); letter-spacing: var(--tracking-caps); text-transform: uppercase; margin-right: 8px; }
  .biz-cell-delta { padding-left: var(--space-5); padding-bottom: var(--space-4); }
  .biz-cell-delta::before { left: var(--space-5); }
}

.biz-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-10);
  align-items: center;
  margin-top: var(--space-10);
}
@media (max-width: 880px) { .biz-foot { grid-template-columns: 1fr; gap: var(--space-6); } }
.biz-note {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--fg-secondary);
  max-width: 64ch;
}
.biz-mark {
  display: inline-block;
  width: 22px; height: 22px;
  margin-right: 8px;
  vertical-align: -5px;
  text-align: center;
  line-height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dsb-navy-900);
  font-weight: 700;
}
.biz-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}
@media (max-width: 880px) { .biz-cta { justify-content: flex-start; } }
.btn-ghost.on-light { color: var(--fg-primary); border-color: var(--border-default); }

/* ── Reveal on scroll ───────────────── */
/* Global overflow safety — prevents grid items from blowing past viewport */
section,
.container,
.partner-types-grid,
.qs-grid,
.editie-list,
.cap-grid,
.mod-grid,
.sensors-grid,
.dash-kpi-row,
.cert-grid,
.voordelen-grid,
.partners-grid,
.oo-prin-grid,
.case-grid,
.biz-table,
.hoe-grid,
.value-grid,
.svc-card,
.qs-card,
.nl-form,
.nl-card,
.editie,
.verhaal,
.rm-card,
.partner-type,
.voordeel-card,
.aanmeld-card,
.sec-pillar,
.arch-step,
.cert-card,
.founder-card,
.founder-body,
.mv-card,
.bc-card,
.pkg-card,
.mod-card,
.case-bridge-card,
.heatmap-card,
.value-card,
.faq-item,
.cap-cell,
.svc-card,
.sensor-card,
.dash {
  min-width: 0;
}

/* Paragraphs and headings wrap long words on small screens */
@media (max-width: 720px) {
  p, h1, h2, h3, h4, h5, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}

.reveal {
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ── Embedded login overlay ──────────────────────────────────
   Clicking "Inloggen" opens brugbeheer.nl inside the site.
   A fallback link sits behind the iframe for environments that
   refuse to be embedded (X-Frame-Options / CSP frame-ancestors). */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
}
.login-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 41, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: login-fade 200ms var(--ease-out) both;
}
.login-panel {
  position: relative;
  width: min(1120px, 100%);
  height: min(800px, 90vh);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface, #fff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(6, 24, 41, 0.45);
  animation: login-rise 240ms var(--ease-out) both;
}
.login-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page, #fff);
  flex-shrink: 0;
}
.login-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}
.login-title .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 184, 217, 0.18);
}
.login-bar-actions { display: flex; align-items: center; gap: 6px; }
.login-ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-secondary);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 7px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.login-ext:hover { color: var(--accent); background: var(--bg-subtle); }
.login-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.login-close:hover { color: var(--fg-primary); background: var(--bg-subtle); }
.login-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--bg-subtle, #f4f6f8);
}
.login-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-8);
}
.login-fallback-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.login-fallback p {
  margin: 0;
  max-width: 420px;
  color: var(--fg-secondary);
  font-size: var(--fs-14);
  line-height: 1.6;
}
.login-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@keyframes login-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes login-rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ── Mobile rhythm ───────────────────────────────────────────────
   Most sections use 96px (--space-24) vertical padding. On phones that
   leaves too much dead space between blocks; compress to 64px sitewide.
   Listed explicitly (rather than redefining the token) so gaps elsewhere
   are unaffected. */
@media (max-width: 640px) {
  .mission, .services, .capabilities, .safety, .sensors, .dashboard,
  .predictive, .ai-section, .cta, .biz-case,
  .newsletter, .quote-strip, .bruggencheck,
  .faq-section, .verhalen-section, .case-section, .case-cta-section,
  .aanmeld-section, .whitepaper,
  .oo-founders, .oo-gemis, .oo-mv, .oo-principes, .oo-partners {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
