/* ── Self-hosted fonts (DSGVO-konform, kein Google-CDN) ── */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* luminAIre — marketing site
 * Dark-first futurist brand. Luminous Purple signal on ink black.
 * Brand tokens align with Corporate Design Manual v1.0 (2026).
 */

:root {
  /* ── Paper / light mode (print + inverted) ── */
  --bg: #F1F1F4;             /* Paper — print & inverted */
  --bg-soft: #E7E7EC;
  --bg-elev: #FFFFFF;
  --surface-1: #ECECF1;
  --surface-2: #DEDEE6;
  --border: #D4D4DB;
  --border-strong: #B7B7C2;
  --ink: #0A0A0C;            /* Ink Black */
  --ink-2: #1F1F24;
  --muted: #5A5A63;
  --muted-2: #8A8A93;
  /* Brand — Luminous Purple system.
   * Light theme uses the deep stop (#6E1CFF) as signal so text on paper
   * meets WCAG AA. Dark theme overrides --brand to the luminous stop. */
  --brand: #6E1CFF;          /* Signal on paper — Deep Purple */
  --brand-2: #8E4CFF;        /* mid-tone */
  --brand-3: #C08AFF;        /* Soft Purple — gradient top, highlights */
  --brand-deep: #6E1CFF;     /* Deep Purple — gradient bottom, button bg */
  --brand-lum: #A96BFF;      /* Luminous Purple — dark-theme signal */
  --brand-soft: rgba(110, 28, 255, 0.10);
  --brand-100: rgba(110, 28, 255, 0.14);
  --brand-200: rgba(110, 28, 255, 0.28);
  --brand-700: #5814D9;
  --brand-tint-1: rgba(169, 107, 255, 0.04);
  --brand-tint-2: rgba(169, 107, 255, 0.08);
  --brand-ink: #07070A;      /* Void — deepest */
  --brand-night: #0A0A0C;    /* Ink Black — primary panel */
  --brand-gradient: linear-gradient(180deg, var(--brand-3) 0%, var(--brand-deep) 100%);
  --brand-glow: 0 0 0 1px rgba(169, 107, 255, 0.35), 0 8px 28px rgba(169, 107, 255, 0.45), 0 2px 6px rgba(110, 28, 255, 0.35);
  --accent: #06b6d4;
  --success: #10B981;
  --warn: #F59E0B;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 5px;        /* AI-Pill radius */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.18), 0 1px 1px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.22);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.30);
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 68px;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* Motion tokens — strong custom curves; built-in easings are too weak. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-xs: 120ms;
  --dur-sm: 160ms;
  --dur: 220ms;
  --dur-lg: 320ms;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

p { margin: 0 0 1em; color: var(--ink-2); }
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; font-weight: 600; font-family: var(--font-sans); }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; line-height: 1.10; font-weight: 600; }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.25; font-weight: 500; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wide { max-width: 1320px; }

/* ── Top bar ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid fallback for browsers without backdrop-filter or for users on low-end devices */
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
/* Blur only where supported AND on devices with fine pointer (excludes most low-end touch) */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (hover: hover) and (pointer: fine) {
    .site-header {
      background: rgba(255, 255, 255, 0.72);
      backdrop-filter: saturate(160%) blur(14px);
      -webkit-backdrop-filter: saturate(160%) blur(14px);
    }
    .site-header.is-scrolled {
      background: rgba(255, 255, 255, 0.88);
    }
  }
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 17, 40, 0.02);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
/* Brand mark hidden: real luminAIre wordmark has no separate symbol —
   the AI-block in the wordmark IS the identifier. Kept in HTML for
   semantic redundancy / no markup change. */
.brand-mark { display: none; }
.brand-mark svg { width: 16px; height: 16px; }

.brand { gap: 0; }
.brand-name { display: inline-flex; align-items: baseline; gap: 0; }

/* AI pill — the luminous accent in the wordmark.
   Vertical gradient Soft → Deep Purple, with brand glow. */
.brand-name .ai {
  display: inline-block;
  background: var(--brand-gradient);
  color: #fff;
  padding: 0 5px;
  margin: 0 2px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.30) inset,
    0 0 0 1px rgba(255,255,255,0.06),
    0 6px 18px rgba(169, 107, 255, 0.45),
    0 2px 4px rgba(110, 28, 255, 0.30);
  transform: translateY(-0.5px);
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); background: var(--surface-1); text-decoration: none; }
}
.nav-links a.active { color: var(--brand); }

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

/* Nav CTA: long label on desktop, short label on phone so it doesn't crowd the hamburger */
.cta-short { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;     /* WCAG 2.5.5 touch target */
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 0 auto; position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { content: ""; position: absolute; top:  6px; left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  padding: 12px 18px;
  min-height: 44px;          /* WCAG 2.5.5 touch target */
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transform: scale(1);
  transition:
    transform var(--dur-sm) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); transition-duration: var(--dur-xs); }
.btn-primary {
  background: var(--brand-deep);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 18px rgba(110, 28, 255, 0.42),
    0 1px 2px rgba(110, 28, 255, 0.30);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: transparent;
}
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #5814D9;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.22) inset,
      0 14px 32px rgba(110, 28, 255, 0.50),
      0 2px 6px rgba(110, 28, 255, 0.40);
  }
  .btn-ghost:hover { background: var(--surface-1); border-color: var(--ink-2); }
  .btn-soft:hover { background: var(--brand-100); }
  .btn:hover .arrow { transform: translateX(3px); }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 128px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(169,107,255,0.10) 0%, transparent 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(192,138,255,0.08) 0%, transparent 60%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15,17,40,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,17,40,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 12px); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand);
  background: transparent;
  padding: 4px 0;
  border-radius: 0;
  margin-bottom: 16px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 8px rgba(169, 107, 255, 0.6); }

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

/* Hero side card */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, var(--brand-tint-1) 0%, var(--brand-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-3);
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.hero-card-title { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-card-badge {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-list li:hover { border-color: var(--brand-200); transform: translateX(2px); }
}
.hero-list .num {
  flex: 0 0 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px; font-weight: 700;
}
.hero-list .t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hero-list .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hero-list .num svg { width: 14px; height: 14px; stroke: #fff; }

.hero-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-card-price {
  display: inline-grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 6px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.3;
}
.hero-card-price .price-prefix { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.hero-card-price strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.hero-card-price .price-unit { color: var(--muted); font-size: 12.5px; }
.hero-card-price .price-fine {
  grid-column: 1 / -1;
  color: var(--muted-2, var(--muted));
  font-size: 11px;
  letter-spacing: 0.02em;
  margin-top: 2px;
  opacity: 0.85;
}
.hero-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out);
}
.hero-card-link:hover { color: var(--brand-2); }
.hero-card-link .arrow { transition: transform var(--dur) var(--ease-out); }
.hero-card-link:hover .arrow { transform: translateX(3px); }

/* ── Section ── */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-soft { background: var(--surface-1); }
.section-ink {
  background: #0b0c1a;
  color: #f1f1f6;
}
.section-ink h2, .section-ink h3, .section-ink h4 { color: #f6f6fb; }
.section-ink p { color: #b5b7c8; }

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ── Pillars (3-col) ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition:
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    border-color: var(--brand-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
  }
}
.pillar .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.pillar .icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ── Product cards ── */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
  }
}
.product-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.product h3 { margin-bottom: 8px; font-size: 22px; }
.product .summary { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.product-meta { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.product-meta li { display: flex; gap: 10px; }
.product-meta strong { color: var(--muted); font-weight: 500; min-width: 88px; }
.product-price {
  margin-top: auto;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 0 4px;
  border-top: 1px dashed var(--border);
}
.product-price .price { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.product-price .price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.product .cta { margin-top: 18px; }

.price-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.price-info {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}
.price-info svg { width: 14px; height: 14px; }
.price-info:hover,
.price-info:focus-visible {
  color: var(--brand);
  border-color: var(--brand-200);
  background: var(--brand-tint);
  outline: none;
}
.price-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: -6px;
  width: max-content;
  max-width: 240px;
  padding: 10px 12px;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
  z-index: 5;
}
.price-tooltip strong { color: var(--ink); font-weight: 600; }
.price-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px;
  width: 10px;
  height: 10px;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateY(-50%) rotate(45deg);
}
.price-info-wrap:hover .price-tooltip,
.price-info-wrap:focus-within .price-tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
[data-theme="dark"] .price-tooltip,
[data-theme="dark"] .price-tooltip::after { background: var(--surface-2); }

.product.featured {
  background: linear-gradient(180deg, var(--brand-tint-2) 0%, var(--bg) 100%);
  border-color: var(--brand-200);
}

/* ── Method rail (horizontal numbered steps with connecting line) ──
 * Deliberate departure from the card-grid pattern used by .pillars
 * and .products, so the page composition doesn't read as 3×identical-grid.
 */
.method-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 8px;
  position: relative;
}
.method-rail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--border) 0%,
    var(--brand-3) 30%,
    var(--brand) 50%,
    var(--brand-3) 70%,
    var(--border) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.method-rail li {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: left;
}
.method-rail .rail-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.method-rail li:hover .rail-node {
  background: var(--brand);
  color: #fff;
  transform: scale(1.08);
}
.method-rail h3 {
  font-size: 17px;
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.method-rail p {
  font-size: 14.5px;
  margin: 0;
  color: var(--muted);
}

/* Legacy .methods grid (preserved for inner pages still using it) */
.methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.method {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .method:hover { border-color: var(--brand-200); transform: translateY(-2px); }
}
.method .badge {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
  display: inline-block;
}
.method h3,
.method h4 { font-size: 16px; margin-bottom: 6px; line-height: 1.25; letter-spacing: -0.01em; }
.method p { font-size: 13.5px; margin: 0; color: var(--muted); }

/* ── Team ── */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.member {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.avatar {
  flex: 0 0 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-deep));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}
.member h3,
.member h4 { margin-bottom: 4px; font-size: 17px; line-height: 1.25; }
.member .role { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.member p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ── Video Teaser ── */
.video-teaser {
  background: var(--surface-1);
}
.video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3), 0 0 0 1px var(--border);
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
[data-theme="dark"] .video-teaser {
  background: linear-gradient(160deg, var(--brand-ink) 0%, #14081f 100%);
}
[data-theme="dark"] .video-wrap {
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(192,138,255,0.18);
}

/* ── Seminarräume / Location ── */
.rooms-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.room-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  box-shadow: var(--shadow-2), 0 0 0 1px var(--border);
  transition: transform var(--dur-lg) var(--ease-out), box-shadow var(--dur-lg) var(--ease-out);
}
.room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease-out);
}
.room-photo:hover { transform: translateY(-3px); box-shadow: var(--shadow-3), 0 0 0 1px var(--border-strong); }
.room-photo:hover img { transform: scale(1.03); }

.rooms-info {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}
.rooms-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.rooms-card-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.rooms-card h3 { margin: 0 0 8px; }
.rooms-address {
  font-style: normal;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.rooms-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.rooms-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.rooms-features svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--brand);
  margin-top: 2px;
}
.rooms-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.rooms-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow-2), 0 0 0 1px var(--border);
  background: var(--surface-2);
}
.rooms-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.95);
}

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
  background:
    linear-gradient(135deg, rgba(169, 107, 255, 0.06) 0%, rgba(169, 107, 255, 0.02) 100%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(169, 107, 255, 0.04) 14px 15px),
    var(--surface-1);
  text-align: center;
}
.map-consent-inner { max-width: 380px; }
.map-consent-icon {
  width: 36px;
  height: 36px;
  color: var(--brand);
  margin: 0 auto 12px;
}
.map-consent h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.map-consent p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.55;
}
.map-consent .btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  min-height: 40px;
}
.map-consent-fine {
  font-size: 12px !important;
  color: var(--muted-2) !important;
  margin: 16px 0 0 !important;
}
.map-consent-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.map-consent-alt { margin: 8px 0 0 !important; font-size: 12px !important; }
.map-consent-alt a { color: var(--brand); }

[data-theme="dark"] .map-consent {
  background:
    linear-gradient(135deg, rgba(192, 138, 255, 0.10) 0%, rgba(192, 138, 255, 0.03) 100%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(192, 138, 255, 0.05) 14px 15px),
    var(--surface-1);
}
[data-theme="dark"] .rooms-card { background: var(--bg-elev); }
[data-theme="dark"] .room-photo,
[data-theme="dark"] .rooms-map {
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(192,138,255,0.12);
}
[data-theme="dark"] .rooms-map iframe { filter: saturate(0.85) brightness(0.92); }

/* ── CTA block ── */
.cta-block {
  background: linear-gradient(135deg, var(--brand-night) 0%, var(--brand-ink) 100%);
  color: #f5f5fb;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 0%, rgba(192,138,255,0.30) 0%, transparent 60%);
  pointer-events: none;
}
.cta-block h2 { color: #fff; margin-bottom: 12px; }
.cta-block p { color: #c8c9d6; font-size: 16px; margin: 0; }
.cta-block .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-block .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.cta-block .btn-primary:hover { background: #f0f0fa; }
.cta-block .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.cta-block .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 64px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-network {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-network .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-network img {
  display: block;
  height: 28px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease-out);
}
.footer-network a:hover img { opacity: 1; }
[data-theme="dark"] .footer-network img {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
[data-theme="dark"] .footer-network a:hover img { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom .legal { display: flex; gap: 18px; }

/* ── Product page detail ── */
.detail-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.detail-hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.detail-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.detail-hero .lead { font-size: 18px; margin-bottom: 28px; max-width: none; }

.spec-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-2);
}
.spec-card h2,
.spec-card h3,
.spec-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.spec-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.spec-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list .k { color: var(--muted); }
.spec-list .v { color: var(--ink); font-weight: 500; }

.spec-price {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}
.spec-price .label { font-size: 12px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.spec-price .value { font-size: 22px; font-weight: 700; color: var(--brand-ink); margin-top: 4px; letter-spacing: -0.02em; }
.spec-price small { color: var(--ink-2); display: block; font-size: 13px; margin-top: 2px; }
.spec-price small.fine-print {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(169, 107, 255, 0.18);
}

/* Article-style content for product pages */
.article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  margin-top: 40px;
}
.article-body h2 { margin-top: 36px; font-size: 26px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 28px; font-size: 19px; }
.article-body ul { padding-left: 22px; margin: 0 0 1em; }
.article-body li { margin-bottom: 6px; color: var(--ink-2); }
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 14.5px;
}
.article-body th, .article-body td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.article-body th { background: var(--surface-1); font-weight: 600; color: var(--ink); }
.article-body td { color: var(--ink-2); }
.article-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  align-self: start;
}

/* ── Contact form ── */
.form-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: start;
}
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b8bac8; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(169, 107, 255, 0.14);
  background: var(--brand-tint-1);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-legend { font-size: 12px; color: var(--muted); margin: 0 0 14px; letter-spacing: 0.01em; }
.field label .req { color: var(--brand); font-weight: 600; margin-left: 2px; }
.form-legend .req { color: var(--brand); font-weight: 600; margin-right: 4px; }
.field label .optional { color: var(--muted); font-weight: 400; }

.contact-aside h3,
.contact-aside h4 { font-size: 17px; margin-bottom: 8px; line-height: 1.25; }
.contact-aside p { margin-bottom: 14px; color: var(--muted); font-size: 14.5px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  flex-shrink: 0;
}
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.contact-list .v { font-size: 15px; color: var(--ink); font-weight: 500; margin-top: 2px; }
.contact-list .v a { color: var(--ink); }
.contact-list .v a:hover { color: var(--brand); }

/* ── Legal page ── */
.legal-page { padding: clamp(48px, 7vw, 96px) 0; }
.legal-page .container { max-width: 760px; }
.legal-page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 28px; }
.legal-page h2 { font-size: 22px; margin-top: 32px; margin-bottom: 12px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--ink-2); }

/* ── Utility ── */
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.btn-block { width: 100%; justify-content: center; }

/* Footer brand mark spacing */
.footer-col .brand { margin-bottom: 16px; }
.footer-blurb { font-size: 14px; max-width: 320px; margin-top: 12px; }

/* Sidebar note above CTA in product detail sticky asides */
.aside-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.aside-contact {
  font-size: 13px;
  margin-top: 16px;
  color: var(--muted);
}

/* Quick-path callout (kontakt aside) */
.callout-soft {
  margin-top: 28px;
  padding: 18px;
  background: var(--brand-soft);
  border-radius: 12px;
}
.callout-soft p { font-size: 13.5px; color: var(--brand-ink); margin: 0; }
[data-theme="dark"] .callout-soft { background: rgba(169, 107, 255, 0.18); }
[data-theme="dark"] .callout-soft p { color: var(--ink); }

/* Secondary inline price hint (product card) */
.price-note { font-size: 16px; color: var(--muted); }

/* Pillar emphasis variant: breaks the 3× identical rhythm.
   Applied to the middle pillar only — single visual variation by design. */
.pillar.is-emphasis {
  background: var(--brand-soft);
  border-color: var(--brand-200);
}
.pillar.is-emphasis .icon { background: var(--bg-elev); }
[data-theme="dark"] .pillar.is-emphasis {
  background: rgba(169, 107, 255, 0.10);
  border-color: rgba(192, 138, 255, 0.30);
}
[data-theme="dark"] .pillar.is-emphasis .icon { background: rgba(169, 107, 255, 0.18); }

/* ── Motion: entry stagger ──
 * .rise — fires on page load (above-the-fold hero).
 * .reveal — fires when element enters viewport (set by site.js).
 * Stagger is set per element via inline --i (children of .stagger-children).
 */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.rise > *,
.rise-self {
  opacity: 0;
  animation: rise 700ms var(--ease-out) both;
  animation-delay: calc(60ms + var(--i, 0) * 70ms);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Skip link — WCAG 2.4.1, hidden until keyboard focus. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(169, 107, 255, 0.35);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Focus: visible only when keyboard-navigated. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Pressable hero list items (keyboard parity with hover) */
.hero-list li { will-change: transform; }

/* Selection */
::selection { background: rgba(169, 107, 255, 0.18); color: var(--ink); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rise > *,
  .rise-self,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Mobile ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .pillars, .products, .methods, .team { grid-template-columns: 1fr 1fr; }
  .rooms-info { grid-template-columns: 1fr; }
  .rooms-map { min-height: 280px; }
  .detail-hero .container { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .cta-block { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Method rail: horizontal → vertical timeline */
  .method-rail { grid-template-columns: 1fr; gap: 28px; }
  .method-rail::before {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      to bottom,
      var(--brand) 0%,
      var(--brand-3) 50%,
      var(--border) 100%
    );
  }
  .method-rail li { padding: 0 0 0 64px; min-height: 44px; }
  .method-rail .rail-node {
    position: absolute;
    left: 0;
    top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .rooms-gallery { grid-template-columns: 1fr; }
  .room-photo { aspect-ratio: 4 / 3; }
  .rooms-actions .btn { flex: 1; justify-content: center; }

  /* Shorten nav CTA so it doesn't compete with the hamburger */
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-actions .btn-primary { padding: 12px 16px; min-height: 44px; font-size: 14.5px; }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    padding: 0 var(--gutter);
    background: #fff;
    border-bottom: 1px solid transparent;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
      max-height var(--dur-lg) var(--ease-out),
      opacity var(--dur) var(--ease-out),
      padding var(--dur-lg) var(--ease-out),
      border-color var(--dur) var(--ease-out);
  }
  .nav-links.open {
    display: flex;
    max-height: 480px;
    opacity: 1;
    padding: 14px var(--gutter) 18px;
    border-bottom-color: var(--border);
  }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: grid; place-items: center; }
  .pillars, .products, .methods, .team { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
  .spec-list .k { font-size: 12px; }
}

/* ── Dark mode ──
 * Triggered by [data-theme="dark"] on <html>. The inline boot script in
 * <head> sets this attribute on first paint based on (in order):
 *   1. localStorage.luminaire-theme (manual override)
 *   2. prefers-color-scheme: dark (system pref)
 *   3. light fallback
 * The theme-toggle button in the header flips between "light" and "dark"
 * and persists the choice to localStorage.
 *
 * Brand violet is identical in both modes; only neutrals invert.
 * Reference: design-system/luminaire/MASTER.md "Theme" section.
 */
:root[data-theme="dark"] {
  --bg: #0A0A0C;             /* Ink Black — primary background */
  --bg-soft: #07070A;        /* Void — deepest */
  --bg-elev: #15141C;        /* Panel — cards & surfaces */
  --surface-1: #15141C;
  --surface-2: #1C1B25;
  --border: #232230;
  --border-strong: #2F2E3D;
  --ink: #F1F1F4;            /* Paper — primary text */
  --ink-2: #D7D7DC;
  --muted: #9A9AA3;          /* Mute — secondary text */
  --muted-2: #6E6E78;
  /* Dark theme uses Luminous Purple as signal — has contrast against ink black. */
  --brand: #A96BFF;
  --brand-soft: rgba(169, 107, 255, 0.10);
  --brand-100: rgba(169, 107, 255, 0.16);
  --brand-200: rgba(169, 107, 255, 0.32);
}

/* Header solid fallback (dark) */
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.92);
  border-bottom-color: rgba(35, 34, 48, 0.6);
}

/* Hardcoded backgrounds: dark equivalents */
[data-theme="dark"] .pillar { background: var(--bg-elev); }
[data-theme="dark"] .product { background: var(--bg-elev); }
[data-theme="dark"] .product.featured {
  background: linear-gradient(180deg, rgba(169, 107, 255, 0.10) 0%, var(--bg-elev) 100%);
  border-color: rgba(192, 138, 255, 0.30);
}
[data-theme="dark"] .method { background: var(--bg-elev); }
[data-theme="dark"] .member { background: var(--bg-elev); }
[data-theme="dark"] .hero-card {
  background: linear-gradient(180deg, #13131F 0%, #1A1A2A 100%);
  border-color: var(--border);
}
[data-theme="dark"] .hero-list li {
  background: var(--bg-elev);
  border-color: var(--border);
}
[data-theme="dark"] .method-rail .rail-node { background: var(--bg); }

/* Form fields */
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--border-strong);
}
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: var(--muted-2); }
[data-theme="dark"] .field input:hover,
[data-theme="dark"] .field textarea:hover,
[data-theme="dark"] .field select:hover { border-color: #4B4B62; }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus {
  background: var(--surface-2);
  border-color: var(--brand);
}
[data-theme="dark"] .form-card { background: var(--bg-elev); }
[data-theme="dark"] .spec-card { background: var(--bg-elev); }
[data-theme="dark"] .article-body th { background: var(--surface-1); }
[data-theme="dark"] .nav-links { background: var(--bg) !important; }
[data-theme="dark"] .cta-block::before {
  background: radial-gradient(60% 80% at 90% 0%, rgba(192, 138, 255, 0.40) 0%, transparent 60%);
}
[data-theme="dark"] ::selection { background: rgba(192, 138, 255, 0.30); color: var(--ink); }

/* ── Dark-mode text contrast ──
 * Lift accent/link text to --brand-3 (#C08AFF) which clears 7:1 on ink-black
 * and ~5:1 over tinted pills, well above WCAG AA for body text.
 */
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .hero-card-badge,
[data-theme="dark"] .product-tag,
[data-theme="dark"] .rooms-card-eyebrow,
[data-theme="dark"] .method .badge,
[data-theme="dark"] .method-rail .rail-node,
[data-theme="dark"] .hero-card-link,
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .btn-soft,
[data-theme="dark"] .text-brand,
[data-theme="dark"] .hero-meta svg,
[data-theme="dark"] .pillar .icon,
[data-theme="dark"] .contact-list .ic,
[data-theme="dark"] .map-consent-icon,
[data-theme="dark"] .map-consent-alt a,
[data-theme="dark"] .rooms-features svg,
[data-theme="dark"] .spec-price .label,
[data-theme="dark"] a:not(.btn):not(.brand):not(.skip-link) {
  color: var(--brand-3);
}

/* Keep header nav and footer link colors intact in dark mode
 * (the broad a override above would otherwise turn them violet). */
[data-theme="dark"] .nav-links a { color: var(--ink); }
[data-theme="dark"] .nav-links a.active { color: var(--brand-3); }
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-bottom a { color: var(--muted); }
[data-theme="dark"] .footer-col a:hover,
[data-theme="dark"] .footer-bottom a:hover { color: var(--ink); }
[data-theme="dark"] .contact-list .v a { color: var(--ink); }

/* Method rail border + line: keep coherent with brighter text */
[data-theme="dark"] .method-rail .rail-node { border-color: var(--brand-3); }

/* Spec-price card sits on --brand-soft (tinted dark in dark mode);
 * lift the value text to --ink for full contrast on the tinted background. */
[data-theme="dark"] .spec-price .value { color: var(--ink); }
[data-theme="dark"] .spec-price small { color: var(--ink); }

/* Map-consent paragraph sits over a violet-tinted surface — lift to ink. */
[data-theme="dark"] .map-consent p { color: var(--ink-2); }
[data-theme="dark"] .map-consent-fine,
[data-theme="dark"] .map-consent-fine a { color: var(--muted); }

/* Header glass-blur dark variant (only on capable, fine-pointer devices) */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (hover: hover) and (pointer: fine) {
    [data-theme="dark"] .site-header { background: rgba(10, 10, 20, 0.72); }
    [data-theme="dark"] .site-header.is-scrolled { background: rgba(10, 10, 20, 0.88); }
  }
}

/* ── Theme toggle button (sun/moon icon) ──
 * Sun icon shown in dark mode (click → switch to light)
 * Moon icon shown in light mode (click → switch to dark)
 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.theme-toggle:hover {
  background: var(--surface-1);
  border-color: var(--ink-2);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-lg) var(--ease-out);
}
.theme-toggle:hover svg { transform: rotate(15deg); }

/* Icon swap by current theme */
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
