/* =========================================================
   FCS Fast Cooling Systems — Blueprint / Wireframe Design
   ========================================================= */

:root {
  /* Blueprint palette */
  --bp-paper: #FAFCFF;
  --bp-paper-soft: #F2F6FC;
  --bp-paper-dark: #E9F0FA;
  --bp-grid: rgba(27, 168, 224, 0.12);
  --bp-grid-strong: rgba(27, 168, 224, 0.22);
  --bp-ink: #0A1838;           /* Deep blueprint ink */
  --bp-ink-soft: #1B2A6B;      /* Brand navy */
  --bp-ink-muted: #4A5B85;
  --bp-line: #1BA8E0;          /* Brand cyan */
  --bp-line-dark: #0F89BC;
  --bp-line-glow: rgba(27, 168, 224, 0.45);
  --bp-construction: rgba(27, 168, 224, 0.35);
  --bp-annotation: #DC2626;    /* Red annotation marks */
  --bp-annotation-soft: rgba(220, 38, 38, 0.1);
  --bp-success: #16A34A;
  --bp-white: #FFFFFF;
  --bp-black: #060A1F;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Type scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-4xl: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);
  --fs-5xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms;
  --t-base: 300ms;
  --t-slow: 600ms;
}

/* =========================================================
   Reset & Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--bp-ink);
  background: var(--bp-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Global blueprint grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bp-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bp-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
  transition: opacity 0.5s var(--ease);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bp-grid-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bp-grid-strong) 1px, transparent 1px);
  background-size: 200px 200px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Crosshair markers at grid intersections (decorative) */
.grid-crosshairs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--bp-line) 1px, transparent 1.5px);
  background-size: 200px 200px;
  background-position: center;
  opacity: 0.3;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bp-ink);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-5xl); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-4); color: var(--bp-ink-muted); }

a {
  color: var(--bp-line-dark);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--bp-ink-soft); }

img, svg, video { display: block; max-width: 100%; height: auto; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); color: var(--bp-ink-muted); }

::selection { background: var(--bp-line); color: var(--bp-white); }

:focus-visible {
  outline: 2px solid var(--bp-line);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px; left: var(--space-4);
  background: var(--bp-ink-soft);
  color: var(--bp-white);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--space-4); color: var(--bp-white); }

/* =========================================================
   Annotation Markers (Blueprint signature)
   ========================================================= */

.annot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--bp-line-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.annot::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--bp-paper);
  border: 1.5px solid var(--bp-line);
  position: relative;
}
.annot::after {
  content: "";
  position: absolute;
  margin-left: 2px;
  width: 8px;
  height: 8px;
  background: var(--bp-line);
}
.annot--simple::before {
  content: "+";
  display: inline-block;
  width: auto; height: auto;
  background: transparent;
  border: 0;
  color: var(--bp-line);
  font-weight: 700;
  font-size: 1.2em;
  margin-right: 2px;
}
.annot--simple::after { display: none; }

/* Tag pill */
.tag-mono {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--bp-line-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  background: var(--bp-paper);
  border: 1px solid var(--bp-line);
  border-radius: 0;
}
.tag-mono::before { content: "▷ "; color: var(--bp-line); }

/* =========================================================
   Container & Section
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  position: relative;
}
.container--narrow { max-width: var(--container-narrow); }

section { padding: var(--space-24) 0; position: relative; }
@media (max-width: 768px) { section { padding: var(--space-16) 0; } }

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-16);
  text-align: center;
}
.section-header .tag-mono { margin-bottom: var(--space-4); }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { font-size: var(--fs-lg); }

/* Section markers — corner brackets */
.section-marked {
  position: relative;
}
.section-marked::before,
.section-marked::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--bp-line);
  pointer-events: none;
}
.section-marked::before { top: var(--space-8); left: var(--space-5); border-right: 0; border-bottom: 0; }
.section-marked::after { bottom: var(--space-8); right: var(--space-5); border-left: 0; border-top: 0; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--bp-ink-soft);
  background: transparent;
  color: var(--bp-ink-soft);
  cursor: pointer;
  position: relative;
  isolation: isolate;            /* new stacking context so z-index:-1 stays in-button */
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bp-ink-soft);
  transform: translateX(-100%);
  transition: transform var(--t-base) var(--ease);
  z-index: -1;                   /* behind text always — fixes raw text being painted over */
}
.btn:hover::before { transform: translateX(0); }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn:hover {
  color: var(--bp-white);
  box-shadow: 6px 6px 0 var(--bp-line);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--bp-line); }

.btn-primary {
  border-color: var(--bp-line);
  color: var(--bp-line-dark);
}
.btn-primary::before { background: var(--bp-line); }
.btn-primary:hover { color: var(--bp-white); box-shadow: 6px 6px 0 var(--bp-ink-soft); }

.btn-ghost {
  border-color: var(--bp-white);
  color: var(--bp-white);
}
.btn-ghost::before { background: var(--bp-white); }
.btn-ghost:hover { color: var(--bp-ink-soft); box-shadow: 6px 6px 0 var(--bp-line); }

/* Aliases for compat with existing pages */
.btn-outline {
  border-color: var(--bp-paper-dark);
  color: var(--bp-ink);
}
.btn-outline::before { background: var(--bp-ink); }
.btn-outline:hover { color: var(--bp-white); box-shadow: 6px 6px 0 var(--bp-line); }

.btn-dark {
  border-color: var(--bp-line);
  color: var(--bp-line);
  background: transparent;
}
.btn-dark::before { background: var(--bp-line); }
.btn-dark:hover { color: var(--bp-ink); box-shadow: 6px 6px 0 var(--bp-white); }

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--fs-base); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--fs-xs); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 252, 255, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--bp-paper-dark);
  transition: box-shadow var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(10, 24, 56, 0.06);
  border-bottom-color: var(--bp-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bp-ink);
  flex-shrink: 0;
}
.nav-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.nav-logo:hover { color: var(--bp-ink); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  color: var(--bp-ink);
  font-weight: 500;
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-menu a::before {
  content: "[";
  opacity: 0;
  margin-right: 4px;
  color: var(--bp-line);
  transition: opacity var(--t-fast) var(--ease);
}
.nav-menu a::after {
  content: "]";
  opacity: 0;
  margin-left: 4px;
  color: var(--bp-line);
  transition: opacity var(--t-fast) var(--ease);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--bp-line-dark);
}
.nav-menu a:hover::before, .nav-menu a:hover::after,
.nav-menu a.active::before, .nav-menu a.active::after {
  opacity: 1;
}

.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

/* Call-to-action button in nav */
.nav-call {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-call svg { width: 16px; height: 16px; }
@media (max-width: 540px) {
  .nav-call span:not(.icon) { display: none; }
  .nav-call { padding: var(--space-2) var(--space-3); }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--bp-ink);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--bp-ink);
  position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--bp-ink);
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   Mobile Navigation Overlay — Bulletproof full-viewport approach
   ============================================================ */

/* Backdrop is rendered at body level via JS, always present in DOM */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 56, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 9998;
  pointer-events: none;
}
.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Scroll-lock when nav is open — touch-action only, no overflow:hidden
   (which breaks position:sticky header on mobile). */
body.nav-locked {
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}
html.nav-locked { overscroll-behavior: none; }

@media (max-width: 1200px) {
  .nav-menu a { padding: var(--space-2); font-size: var(--fs-xs); }
}

@media (max-width: 1024px) {
  /* Header stays as sticky (no scroll-lock-based overflow:hidden anymore).
     Backdrop-filter removed to avoid Containing-Block trap for fixed children. */
  .site-header {
    z-index: 10000;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(250, 252, 255, 0.97);
    border-bottom: 1px solid var(--bp-line);
  }

  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Menu when open — starts BELOW the sticky header */
  .nav-menu.is-open {
    display: block !important;
    position: fixed !important;
    top: var(--header-h) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--header-h)) !important;
    height: calc(100svh - var(--header-h)) !important;
    height: calc(100dvh - var(--header-h)) !important;
    background: var(--bp-paper);
    padding:
      var(--space-6)
      var(--space-5)
      calc(var(--space-12) + env(safe-area-inset-bottom, 0px))
      var(--space-5) !important;
    margin: 0 !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 9999 !important;
    box-shadow: none;
    will-change: auto;
    transform: none !important;
    touch-action: pan-y;
  }

  /* Backdrop also starts below header so the header bar stays visible */
  .nav-backdrop { top: var(--header-h); }

  .nav-menu.is-open li {
    margin: 0;
    list-style: none;
  }
  .nav-menu.is-open a {
    padding: var(--space-4) var(--space-3);
    font-size: var(--fs-lg);
    border-bottom: 1px dashed var(--bp-paper-dark);
    font-family: var(--font-display);
    color: var(--bp-ink);
    display: block;
    width: 100%;
    text-decoration: none;
  }
  .nav-menu.is-open a::before,
  .nav-menu.is-open a::after { display: none; }
  .nav-menu.is-open a:hover,
  .nav-menu.is-open a.active {
    color: var(--bp-line-dark);
    background: var(--bp-paper-soft);
  }

  /* Hide WhatsApp + cookie banner when nav is open to avoid overlap */
  body.nav-locked .cookie-banner,
  body.nav-locked .wa-fab { display: none; }

  /* Subtle "menu open" hint near burger when active */
  .nav-toggle[aria-expanded="true"] {
    background: var(--bp-paper-soft);
  }
}

@media (min-width: 1025px) {
  .nav-backdrop { display: none; }
}

@media (max-width: 640px) {
  .nav-actions .btn:not(.nav-call) { display: none; }
}

/* =========================================================
   HERO — The signature blueprint hero
   ========================================================= */

.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-24);
  overflow: hidden;
}

.hero-spec-line {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-line-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-spec-tl { top: var(--space-6); left: var(--space-5); }
.hero-spec-tr { top: var(--space-6); right: var(--space-5); text-align: right; }
.hero-spec-bl { bottom: var(--space-6); left: var(--space-5); }
.hero-spec-br { bottom: var(--space-6); right: var(--space-5); text-align: right; }
.hero-spec-line .num { color: var(--bp-line); font-weight: 600; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 600px;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); min-height: auto; }
}

.hero-text { position: relative; }
.hero-text .tag-mono { margin-bottom: var(--space-5); }
.hero h1 {
  font-size: clamp(2.5rem, 1.8rem + 4vw, 5.5rem);
  margin-bottom: var(--space-5);
}
.hero h1 .underline-sketch {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero h1 .underline-sketch::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 8px;
  background: var(--bp-line);
  opacity: 0.35;
  transform: skewX(-12deg);
}
.hero h1 .construct {
  display: inline-block;
  border-bottom: 2px dashed var(--bp-construction);
  padding-bottom: 4px;
}
.hero-lead {
  font-size: var(--fs-lg);
  color: var(--bp-ink-muted);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  position: relative;
}
.hero-stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--bp-line) 0, var(--bp-line) 6px, transparent 6px, transparent 12px);
}
.hero-stat {
  padding-top: var(--space-5);
  position: relative;
}
.hero-stat::before {
  content: "+";
  position: absolute;
  top: -8px;
  left: 0;
  background: var(--bp-paper);
  color: var(--bp-line);
  padding: 0 6px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--bp-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .num .unit {
  font-size: 0.6em;
  color: var(--bp-line-dark);
  margin-left: 2px;
}
.hero-stat .label {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 540px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > :nth-child(3) { grid-column: span 2; }
}

/* Hero wireframe visual */
.hero-wireframe {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  cursor: grab;
}
.hero-wireframe-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
  will-change: transform;
}

/* SVG wireframe styling */
.wireframe-svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.wireframe-svg .edge {
  fill: none;
  stroke: var(--bp-ink-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wireframe-svg .edge-accent {
  stroke: var(--bp-line);
  stroke-width: 2;
}
.wireframe-svg .edge-hidden {
  stroke: var(--bp-ink-soft);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.45;
}
.wireframe-svg .edge-construction {
  stroke: var(--bp-line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.6;
}
.wireframe-svg .fill-soft { fill: var(--bp-line); opacity: 0.06; }
.wireframe-svg .fill-medium { fill: var(--bp-line); opacity: 0.12; }
.wireframe-svg .joint {
  fill: var(--bp-paper);
  stroke: var(--bp-ink-soft);
  stroke-width: 1.5;
}
.wireframe-svg .joint-active {
  fill: var(--bp-line);
  stroke: var(--bp-ink-soft);
}
.wireframe-svg .label-text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--bp-line-dark);
  letter-spacing: 0.05em;
}
.wireframe-svg .label-text-ink {
  fill: var(--bp-ink);
  font-weight: 600;
}
.wireframe-svg .dim-line {
  stroke: var(--bp-line);
  stroke-width: 1;
  fill: none;
}
.wireframe-svg .dim-text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--bp-line-dark);
  font-weight: 500;
}

/* Path drawing animation */
.wireframe-svg .draw-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawPath 2.4s var(--ease-out) forwards;
}
.wireframe-svg .draw-path[data-delay="200"] { animation-delay: 200ms; }
.wireframe-svg .draw-path[data-delay="400"] { animation-delay: 400ms; }
.wireframe-svg .draw-path[data-delay="600"] { animation-delay: 600ms; }
.wireframe-svg .draw-path[data-delay="800"] { animation-delay: 800ms; }
.wireframe-svg .draw-path[data-delay="1000"] { animation-delay: 1000ms; }

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

/* Floating spec labels around wireframe */
.spec-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink);
  background: var(--bp-paper);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--bp-line);
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: floatY 5s ease-in-out infinite;
  z-index: 2;
}
.spec-label::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--bp-line);
  flex-shrink: 0;
}
.spec-label .accent { color: var(--bp-line-dark); font-weight: 600; }
.spec-label-tl { top: 8%; left: -4%; animation-delay: 0s; }
.spec-label-tr { top: 18%; right: -8%; animation-delay: 1s; }
.spec-label-br { bottom: 14%; right: -2%; animation-delay: 2s; }
.spec-label-bl { bottom: 26%; left: -8%; animation-delay: 3s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================================================
   Trusted Customers / Brand Strip
   ========================================================= */

.trusted-section {
  padding: var(--space-12) 0;
  border-top: 1px dashed var(--bp-paper-dark);
  border-bottom: 1px dashed var(--bp-paper-dark);
  overflow: hidden;
  position: relative;
}
.trusted-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.trusted-header .tag-mono { margin-bottom: var(--space-3); }
.trusted-header h3 {
  font-size: var(--fs-lg);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bp-ink-muted);
  margin: 0;
}

.brand-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.brand-track {
  display: flex;
  gap: var(--space-12);
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  align-items: center;
}
.brand-marquee:hover .brand-track { animation-play-state: paused; }

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-8);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--bp-ink-soft);
  border: 1.5px solid var(--bp-paper-dark);
  background: var(--bp-paper);
  position: relative;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 100px;
  box-sizing: border-box;
}
.brand-chip::before,
.brand-chip::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1.5px solid var(--bp-line);
  transition: opacity var(--t-base) var(--ease);
}
.brand-chip::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.brand-chip::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.brand-chip:hover {
  color: var(--bp-line-dark);
  border-color: var(--bp-line);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--bp-line);
}

/* Brand logo image inside chip — preserves aspect ratio, inherits color for monochrome SVGs */
.brand-chip img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* For SVGs that use currentColor (our placeholders) — apply ink-soft */
  color: var(--bp-ink-soft);
  filter: grayscale(20%);
  opacity: 0.78;
  transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.brand-chip:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}
@media (max-width: 540px) {
  .brand-chip { min-width: 150px; min-height: 80px; padding: var(--space-4) var(--space-5); }
  .brand-chip img { height: 36px; max-width: 130px; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   Services Grid (blueprint card style)
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--bp-paper-dark);
  border-top: 1px solid var(--bp-paper-dark);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--bp-paper-dark);
  border-bottom: 1px solid var(--bp-paper-dark);
  background: var(--bp-paper);
  transition: background var(--t-base) var(--ease);
  overflow: hidden;
  min-height: 320px;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) top left / 30px 1px no-repeat,
    linear-gradient(to bottom, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) top left / 1px 30px no-repeat,
    linear-gradient(to left, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) top right / 30px 1px no-repeat,
    linear-gradient(to bottom, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) top right / 1px 30px no-repeat,
    linear-gradient(to right, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) bottom left / 30px 1px no-repeat,
    linear-gradient(to top, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) bottom left / 1px 30px no-repeat,
    linear-gradient(to left, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) bottom right / 30px 1px no-repeat,
    linear-gradient(to top, var(--bp-line) 0, var(--bp-line) 30px, transparent 30px) bottom right / 1px 30px no-repeat;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.service-card:hover {
  background: var(--bp-paper-soft);
}
.service-card:hover::before { opacity: 1; }

.service-card .card-index {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-line-dark);
  letter-spacing: 0.1em;
}

.service-card .card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
  position: relative;
}
.service-card .card-icon svg {
  width: 100%; height: 100%;
  stroke: var(--bp-ink-soft);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-slow) var(--ease-out), stroke var(--t-base) var(--ease);
}
.service-card:hover .card-icon svg {
  transform: rotateY(180deg);
  stroke: var(--bp-line);
}

.service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}
.service-card p {
  font-size: var(--fs-base);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.service-card .card-cta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bp-line-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.service-card .card-cta::after {
  content: "→";
  transition: transform var(--t-base) var(--ease);
}
.service-card:hover .card-cta::after { transform: translateX(6px); }

/* =========================================================
   Process / Steps (numbered timeline)
   ========================================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 8%; right: 8%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--bp-line) 0, var(--bp-line) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
@media (max-width: 980px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .process-grid::before { display: none; }
}
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  padding: 0 var(--space-4);
  position: relative;
  counter-increment: step;
}
.process-step .step-marker {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-5);
  background: var(--bp-paper);
  border: 2px solid var(--bp-ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--bp-ink-soft);
  position: relative;
  z-index: 1;
  transition: all var(--t-base) var(--ease);
}
.process-step .step-marker::before {
  content: "0" counter(step);
}
.process-step .step-marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--bp-line);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.process-step:hover .step-marker {
  background: var(--bp-line);
  color: var(--bp-white);
  border-color: var(--bp-line);
}
.process-step:hover .step-marker::after { opacity: 1; }

.process-step h3 {
  font-size: var(--fs-lg);
  text-align: center;
  margin-bottom: var(--space-2);
}
.process-step p {
  font-size: var(--fs-sm);
  text-align: center;
  margin: 0;
}

/* =========================================================
   Stats Strip
   ========================================================= */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--bp-paper-dark);
  background: var(--bp-paper);
  margin: var(--space-12) 0;
}
@media (max-width: 768px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stats-item {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--bp-paper-dark);
  text-align: center;
  position: relative;
}
.stats-item:last-child { border-right: 0; }
@media (max-width: 768px) {
  .stats-item:nth-child(2n) { border-right: 0; }
  .stats-item:nth-child(-n+2) { border-bottom: 1px solid var(--bp-paper-dark); }
}
.stats-item .stats-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--bp-line-dark);
  line-height: 1;
  letter-spacing: -0.025em;
}
.stats-item .stats-num .unit {
  font-size: 0.5em;
  color: var(--bp-ink-muted);
  margin-left: 4px;
}
.stats-item .stats-label {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bp-ink-muted);
}

/* =========================================================
   CTA Band (Dark)
   ========================================================= */

.cta-band {
  background: var(--bp-ink);
  color: var(--bp-white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 168, 224, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 168, 224, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(27, 168, 224, 0.25), transparent 60%);
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 768px) {
  .cta-band-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.cta-band h2 { color: var(--bp-white); margin: 0 0 var(--space-2); }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin: 0; font-size: var(--fs-lg); }
.cta-band-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* =========================================================
   Regions
   ========================================================= */

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--bp-paper-dark);
  border-left: 1px solid var(--bp-paper-dark);
  margin-top: var(--space-8);
}
.region-item {
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid var(--bp-paper-dark);
  border-bottom: 1px solid var(--bp-paper-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--bp-ink);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  background: var(--bp-paper);
}
a.region-item:hover {
  background: var(--bp-line);
  color: var(--bp-white);
}
a.region-item:hover::before { color: var(--bp-white); }
.region-item::before {
  content: "▷";
  color: var(--bp-line);
  font-size: 0.7em;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--bp-paper-dark);
  position: relative;
}
.faq-item::before {
  content: "+";
  position: absolute;
  left: -24px; top: var(--space-5);
  color: var(--bp-line);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-lg);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--bp-ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "[+]";
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--bp-line);
  flex-shrink: 0;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "[−]"; }
.faq-item .faq-body {
  padding: 0 0 var(--space-5);
  color: var(--bp-ink-muted);
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* =========================================================
   Page Hero (sub-pages)
   ========================================================= */

.page-hero {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  border-bottom: 1px dashed var(--bp-paper-dark);
}
.page-hero-inner { max-width: 880px; }
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bp-ink-muted);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--bp-ink-muted); }
.breadcrumb a:hover { color: var(--bp-line-dark); }
.breadcrumb .sep { color: var(--bp-line); }
.page-hero h1 {
  font-size: clamp(2rem, 1.5rem + 3vw, 4rem);
  margin-bottom: var(--space-5);
}
.page-hero .lead { font-size: var(--fs-lg); color: var(--bp-ink-muted); max-width: 65ch; }

/* =========================================================
   Content Layout
   ========================================================= */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } }

.content-prose h2 {
  margin-top: var(--space-12);
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--bp-paper-dark);
  position: relative;
}
.content-prose h2::before {
  content: "//";
  color: var(--bp-line);
  font-family: var(--font-mono);
  margin-right: var(--space-3);
  font-weight: 400;
}
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 { margin-top: var(--space-8); }
.content-prose .checklist { list-style: none; padding: 0; }
.content-prose .checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: var(--space-3);
  color: var(--bp-ink);
}
.content-prose .checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--bp-line);
  background: var(--bp-paper);
}
.content-prose .checklist li::after {
  content: "✓";
  position: absolute;
  left: 4px; top: 4px;
  color: var(--bp-line);
  font-weight: 700;
  font-size: 14px;
}

/* Sidebar card */
.sidebar-card {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  padding: var(--space-6);
  background: var(--bp-paper);
  border: 1px solid var(--bp-line);
  position: relative;
}
.sidebar-card::before {
  content: "";
  position: absolute;
  top: -6px; left: -6px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--bp-line);
  border-left: 2px solid var(--bp-line);
}
.sidebar-card::after {
  content: "";
  position: absolute;
  bottom: -6px; right: -6px;
  width: 12px; height: 12px;
  border-bottom: 2px solid var(--bp-line);
  border-right: 2px solid var(--bp-line);
}
.sidebar-card .tag-mono { margin-bottom: var(--space-3); }
.sidebar-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.sidebar-card p { font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.sidebar-card .btn { width: 100%; }

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
}
.specs-table th, .specs-table td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--bp-paper-dark);
  text-align: left;
}
.specs-table th {
  background: var(--bp-paper-soft);
  font-weight: 600;
  color: var(--bp-ink-soft);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

/* =========================================================
   Forms
   ========================================================= */

.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--bp-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-field label .req { color: var(--bp-annotation); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--bp-ink);
  background: #FFFFFF;
  border: 1.5px solid var(--bp-paper-dark);
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--bp-ink-muted);
  opacity: 0.6;
}
.form-field input:hover:not(:focus),
.form-field select:hover:not(:focus),
.form-field textarea:hover:not(:focus) {
  border-color: var(--bp-ink-muted);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--bp-line);
  box-shadow: 4px 4px 0 var(--bp-line);
  background: #FFFFFF;
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* Form wrapper card (white panel for visibility) */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--bp-paper-dark);
  padding: var(--space-8);
  position: relative;
  box-shadow: 8px 8px 0 var(--bp-line);
}
.form-card::before, .form-card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--bp-line);
  pointer-events: none;
}
.form-card::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
}
.form-card::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
}
@media (max-width: 640px) {
  .form-card { padding: var(--space-5); box-shadow: 4px 4px 0 var(--bp-line); }
}
.form-check {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--bp-ink-muted);
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--bp-line);
}
.form-status {
  padding: var(--space-4);
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  display: none;
  line-height: 1.5;
}
.form-status.is-success { display: block; background: #ECFDF5; color: var(--bp-success); border-color: var(--bp-success); }
.form-status.is-error { display: block; background: #FEF2F2; color: var(--bp-annotation); border-color: var(--bp-annotation); }
.form-status.is-loading {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--bp-paper-soft); color: var(--bp-ink-soft);
  border-color: var(--bp-line);
}
.form-status.is-loading::before {
  content: "";
  width: 18px; height: 18px;
  border: 2px solid var(--bp-line);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

/* Submit-button loading state */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}
.btn.is-loading > span,
.btn.is-loading > svg { opacity: 0.3; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 2;
}

/* Contact info cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--bp-paper-dark);
  border-top: 1px solid var(--bp-paper-dark);
  margin-bottom: var(--space-12);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--bp-paper-dark);
  border-bottom: 1px solid var(--bp-paper-dark);
  background: var(--bp-paper);
  transition: background var(--t-base) var(--ease);
  position: relative;
}
.contact-card:hover { background: var(--bp-paper-soft); }
.contact-card .ico {
  width: 40px; height: 40px;
  border: 1.5px solid var(--bp-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--bp-line-dark);
  margin-bottom: var(--space-4);
}
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bp-ink-muted);
  margin-bottom: var(--space-2);
}
.contact-card .value {
  display: block;
  font-family: var(--font-display);
  color: var(--bp-ink);
  font-weight: 600;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-1);
}
.contact-card .hint { font-size: var(--fs-sm); color: var(--bp-ink-muted); margin: 0; font-family: var(--font-mono); }

/* References grid */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 880px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-card {
  background: var(--bp-paper);
  border: 1px solid var(--bp-paper-dark);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.ref-card:hover { border-color: var(--bp-line); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--bp-line); }
.ref-card .media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(to right, var(--bp-grid-strong) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to bottom, var(--bp-grid-strong) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--bp-paper-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--bp-line);
  position: relative;
}
.ref-card .media svg { width: 50%; height: 50%; }
.ref-card .body { padding: var(--space-5); }
.ref-card .tag {
  display: inline-block;
  padding: 2px var(--space-3);
  background: transparent;
  color: var(--bp-line-dark);
  border: 1px solid var(--bp-line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.ref-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.ref-card p { font-size: var(--fs-sm); margin: 0; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--bp-ink);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-16) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 168, 224, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 168, 224, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.4fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: var(--space-5);
  background: var(--bp-white);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--bp-line);
  box-shadow: 4px 4px 0 var(--bp-line);
  object-fit: contain;
}
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: var(--fs-sm); }

.footer-col h4 {
  color: var(--bp-white);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-5);
}
.footer-col h4::before {
  content: "// ";
  color: var(--bp-line);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-3); }
.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--bp-line); }
.footer-col .contact-row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
}
.footer-col .contact-row svg {
  width: 16px; height: 16px;
  color: var(--bp-line);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  position: relative;
  padding-top: var(--space-6);
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-bottom .legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-bottom .legal a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom .legal a:hover { color: var(--bp-line); }

/* =========================================================
   Reveal Animations
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-delay="300"] { transition-delay: 300ms; }
[data-reveal][data-delay="400"] { transition-delay: 400ms; }
[data-reveal][data-delay="500"] { transition-delay: 500ms; }
[data-reveal][data-delay="600"] { transition-delay: 600ms; }

/* SVG path on-scroll drawing */
[data-draw-path] {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.8s var(--ease-out);
}
[data-draw-path].is-visible { stroke-dashoffset: 0; }

/* Tilt cards */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s var(--ease-out);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-draw-path] { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Konfigurator
   ========================================================= */

.konfigurator-page {
  padding: var(--space-8) 0 var(--space-12);
}
.konfigurator-page .page-hero {
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px dashed var(--bp-paper-dark);
  margin-bottom: var(--space-8);
}

.konfigurator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 1100px) {
  .konfigurator-layout { grid-template-columns: 1fr; }
}

/* Viewport (3D canvas wrapper) */
.konfigurator-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bp-paper);
  border: 1px solid var(--bp-line);
  box-shadow: 6px 6px 0 var(--bp-line);
  overflow: hidden;
}
@media (max-width: 540px) {
  .konfigurator-viewport { aspect-ratio: 1 / 1; }
}
.konfigurator-viewport::before,
.konfigurator-viewport::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--bp-line);
  z-index: 4;
  pointer-events: none;
}
.konfigurator-viewport::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
}
.konfigurator-viewport::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
}
#konfigurator-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.konfigurator-loader {
  position: absolute;
  inset: 0;
  background: var(--bp-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  z-index: 5;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.konfigurator-loader.is-hidden { opacity: 0; visibility: hidden; }
.konfigurator-loader .spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--bp-paper-dark);
  border-top-color: var(--bp-line);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.konfigurator-loader .label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bp-ink-muted);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Viewport overlay UI */
.viewport-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.viewport-spec-tl, .viewport-spec-tr,
.viewport-spec-bl, .viewport-spec-br {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-line-dark);
  letter-spacing: 0.08em;
  background: rgba(250, 252, 255, 0.85);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--bp-paper-dark);
}
.viewport-spec-tl { top: var(--space-3); left: var(--space-3); }
.viewport-spec-tr { top: var(--space-3); right: var(--space-3); text-align: right; }
.viewport-spec-bl { bottom: var(--space-3); left: var(--space-3); }
.viewport-spec-br { bottom: var(--space-3); right: var(--space-3); text-align: right; }

/* View preset buttons */
.viewport-controls {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  gap: var(--space-1);
  z-index: 4;
  pointer-events: auto;
}
.view-btn {
  background: var(--bp-paper);
  border: 1px solid var(--bp-paper-dark);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--t-fast) var(--ease);
}
.view-btn:hover { border-color: var(--bp-line); color: var(--bp-line-dark); }
.view-btn.is-active {
  background: var(--bp-line);
  color: var(--bp-white);
  border-color: var(--bp-line);
}

.viewport-bottom-bar {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  z-index: 4;
  pointer-events: none;
}
.viewport-bottom-bar > * { pointer-events: auto; }

/* CAD dimension labels (CSS2DRenderer) */
.dim-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bp-line-dark);
  background: var(--bp-paper);
  border: 1px solid var(--bp-line);
  padding: 3px 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(27, 168, 224, 0.25);
  user-select: none;
  -webkit-user-select: none;
  transform: translate(-50%, -50%);
}

/* Door state quick-buttons (in viewport) */
.viewport-door-bar {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(250, 252, 255, 0.92);
  border: 1px solid var(--bp-paper-dark);
  padding: var(--space-1);
  z-index: 4;
  pointer-events: auto;
}
.door-bar-label {
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.door-state-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--t-fast) var(--ease);
}
.door-state-btn:hover { background: var(--bp-paper-soft); color: var(--bp-line-dark); }
.door-state-btn.is-active {
  background: var(--bp-line);
  color: var(--bp-white);
  border-color: var(--bp-line);
}

@media (max-width: 640px) {
  .viewport-door-bar { flex-wrap: wrap; max-width: calc(100% - 24px); }
  .door-bar-label { width: 100%; padding: 2px var(--space-1); }
}
.viewport-hint {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink-muted);
  background: rgba(250, 252, 255, 0.85);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--bp-paper-dark);
}

/* Config panel */
.konfigurator-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  max-height: calc(100vh - var(--header-h) - var(--space-8));
  overflow-y: auto;
  padding-right: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--bp-line) var(--bp-paper-dark);
}
@media (max-width: 1100px) {
  .konfigurator-panel { position: static; max-height: none; }
}

.panel-section {
  background: var(--bp-paper);
  border: 1px solid var(--bp-paper-dark);
  padding: var(--space-5);
  position: relative;
}
.panel-section > .panel-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--bp-paper-dark);
}
.panel-section h3 {
  font-size: var(--fs-base);
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.panel-section h3::before {
  content: "//";
  color: var(--bp-line);
  font-family: var(--font-mono);
  margin-right: var(--space-2);
  font-weight: 400;
}
.panel-section .panel-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-line-dark);
  letter-spacing: 0.1em;
}

.field {
  margin-bottom: var(--space-4);
}
.field:last-child { margin-bottom: 0; }
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.field-label .field-value {
  color: var(--bp-line-dark);
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* Range / Slider */
.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bp-paper-dark);
  border-radius: 0;
  outline: none;
  border: 0;
  margin: var(--space-2) 0;
  cursor: pointer;
}
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  background: var(--bp-line);
  border: 2px solid var(--bp-paper);
  cursor: grab;
  box-shadow: 0 0 0 1.5px var(--bp-line);
}
.field input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--bp-line);
  border: 2px solid var(--bp-paper);
  cursor: grab;
  box-shadow: 0 0 0 1.5px var(--bp-line);
  border-radius: 0;
}
.field input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.field-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--bp-ink-muted);
}

/* Radio group */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.radio-group.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.radio-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border: 1.5px solid var(--bp-paper-dark);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  transition: all var(--t-fast) var(--ease);
  background: var(--bp-paper);
  position: relative;
}
.radio-group label:hover { border-color: var(--bp-line); }
.radio-group input { display: none; }
.radio-group input:checked + span,
.radio-group label:has(input:checked) {
  background: var(--bp-line);
  color: var(--bp-white);
  border-color: var(--bp-line);
}
.radio-group label.has-checked,
.radio-group label.is-active {
  background: var(--bp-line);
  color: var(--bp-white);
  border-color: var(--bp-line);
}

/* Native select */
.field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--bp-ink);
  background: var(--bp-paper);
  border: 1.5px solid var(--bp-paper-dark);
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--bp-line) 50%), linear-gradient(135deg, var(--bp-line) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--space-8);
  transition: border-color var(--t-fast) var(--ease);
}
.field select:focus { outline: none; border-color: var(--bp-line); }

/* Checkbox row */
.option-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--bp-paper-dark);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.option-row:last-child { border-bottom: 0; }
.option-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--bp-line);
}
.option-row .opt-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  color: var(--bp-ink-muted);
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-top: 2px;
}

/* Live values */
.live-values {
  background: linear-gradient(180deg, var(--bp-paper) 0%, var(--bp-paper-soft) 100%);
  border: 1.5px solid var(--bp-line);
  padding: var(--space-5);
  position: relative;
  box-shadow: 4px 4px 0 var(--bp-line);
}
.live-values .panel-section-header { padding-bottom: var(--space-3); border-bottom-color: var(--bp-line); }
.live-values .live-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--bp-paper-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.live-values .live-row:last-child { border-bottom: 0; }
.live-values .live-row .key {
  color: var(--bp-ink-muted);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}
.live-values .live-row .val {
  color: var(--bp-ink);
  font-weight: 600;
}

/* Submit button */
.btn-request {
  width: 100%;
  padding: var(--space-5);
  font-size: var(--fs-base);
}

/* Konfigurator hint banner */
.konfigurator-hint {
  background: var(--bp-paper-soft);
  border-left: 3px solid var(--bp-line);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink-muted);
  line-height: 1.7;
}
.konfigurator-hint strong { color: var(--bp-ink); }

/* Rotation toggle */
.rotate-toggle {
  pointer-events: auto;
  background: var(--bp-paper);
  border: 1px solid var(--bp-paper-dark);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--bp-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--t-fast) var(--ease);
}
.rotate-toggle:hover { border-color: var(--bp-line); color: var(--bp-line-dark); }
.rotate-toggle.is-active { background: var(--bp-line); color: var(--bp-white); border-color: var(--bp-line); }
.rotate-toggle::before {
  content: "↻";
  font-size: 14px;
}

/* =========================================================
   Konfigurator — Teilen & gespeicherte Konfigurationen
   ========================================================= */

/* Hinweisband über dem Viewport (geteilte Konfiguration geladen / abgelaufen) */
.konfig-notice {
  background: var(--bp-paper-soft);
  border: 1px solid var(--bp-line);
  border-left-width: 3px;
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--bp-ink);
}
.konfig-notice strong { color: var(--bp-line-dark); }
.konfig-notice.is-warning {
  border-color: #C2410C;
  background: rgba(194, 65, 12, 0.06);
}
.konfig-notice.is-warning strong { color: #9A3412; }

.share-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.share-actions .btn { flex: 1; min-width: 130px; justify-content: center; }
.share-actions svg { width: 15px; height: 15px; flex-shrink: 0; }

.share-status {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  min-height: 1.2em;
  margin-top: var(--space-2);
  color: var(--bp-ink-muted);
}
.share-status.is-success { color: #15803D; }
.share-status.is-error   { color: #B91C1C; }

.share-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--bp-ink-muted);
  margin: var(--space-3) 0 var(--space-5);
}
.share-hint strong { color: var(--bp-ink); }

.save-row {
  display: flex;
  gap: var(--space-2);
}
.save-row input {
  flex: 1;
  min-width: 0;   /* verhindert Overflow im Flex-Container */
}
.save-row .btn { flex-shrink: 0; }

/* Liste gespeicherter Konfigurationen */
.saved-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.saved-list:empty { display: none; }
.saved-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--bp-paper-dark);
  background: var(--bp-paper);
  padding: var(--space-2) var(--space-3);
}
.saved-item .saved-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--bp-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saved-item .saved-date {
  display: block;
  font-size: 10px;
  color: var(--bp-ink-muted);
}
.saved-item button {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--bp-paper-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  color: var(--bp-ink-muted);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.saved-item button:hover {
  border-color: var(--bp-line);
  color: var(--bp-line-dark);
}
.saved-item button.saved-delete:hover {
  border-color: #B91C1C;
  color: #B91C1C;
}

/* Anfrage-Formular im Konfigurator-Panel */
.konfig-request-form {
  /* .form setzt display:grid — muss das hidden-Attribut wieder gewinnen lassen */
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--bp-paper-dark);
  background: var(--bp-paper-soft);
}
.konfig-request-form[hidden] { display: none; }

/* Im schmalen Panel wären die Standardhöhen zu groß */
.konfig-request-form .form-field textarea { min-height: 80px; }
.konfig-request-form .form-check { font-size: var(--fs-xs); }
.konfig-request-form .form-status { padding: var(--space-3); font-size: var(--fs-xs); }

.request-intro {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--bp-ink-muted);
  margin: 0;
}

/* =========================================================
   WhatsApp Floating Action Button
   ========================================================= */

.wa-fab {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 18px 14px 14px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(10, 24, 56, 0.15);
  z-index: 150;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}
.wa-fab:hover {
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5), 0 4px 8px rgba(10, 24, 56, 0.2);
}
.wa-fab:active { transform: translateY(-1px) scale(1.01); }
.wa-fab svg {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.wa-fab .wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full, 9999px);
  background: #25D366;
  opacity: 0;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.7); }
}

@media (max-width: 540px) {
  .wa-fab {
    bottom: var(--space-4);
    right: var(--space-4);
    padding: 14px;
    width: 56px; height: 56px;
    justify-content: center;
  }
  .wa-fab .wa-label { display: none; }
}

/* Hide WhatsApp button when mobile nav or cookie banner is open */
body.nav-locked .wa-fab { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wa-fab .wa-pulse { animation: none; }
}

/* =========================================================
   Cookie Banner
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 480px;
  margin: 0 auto;
  background: var(--bp-paper);
  border: 1px solid var(--bp-line);
  padding: var(--space-5);
  box-shadow: 8px 8px 0 var(--bp-ink-soft);
  z-index: 200;
  transform: translateY(calc(100% + 32px));
  transition: transform var(--t-slow) var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .tag-mono { margin-bottom: var(--space-2); }
.cookie-banner h4 { font-size: var(--fs-base); margin-bottom: var(--space-2); }
.cookie-banner p { font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.cookie-banner .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cookie-banner .btn { flex: 1; min-width: 140px; }

/* =========================================================
   Utilities
   ========================================================= */

.text-center { text-align: center; }
.bg-soft { background: var(--bp-paper-soft); position: relative; }
.bg-soft > * { position: relative; z-index: 1; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Section corner brackets utility */
.corners {
  position: relative;
}
.corners::before, .corners::after,
.corners > .corner-tl, .corners > .corner-br {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--bp-line);
  pointer-events: none;
}
.corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corners::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Custom cursor effect (optional, decorative) */
.cursor-tracker {
  position: fixed;
  width: 20px; height: 20px;
  border: 1.5px solid var(--bp-line);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  display: none;
}
.cursor-tracker.is-hover { width: 40px; height: 40px; }
@media (hover: hover) and (min-width: 980px) {
  .cursor-tracker { display: block; }
}
