/* ==========================================================
   Kassen Keutgen – shared stylesheet
   Mobile first, system fonts, no external resources.
   Colors strictly derived from the logo: blue, silver, white.
   All colors are tokens so a dark mode can be added later
   by overriding them under [data-theme="dark"].
   ========================================================== */

:root {
  /* Brand (logo blue) */
  --brand: #1f4e9c;
  --brand-strong: #0f2a57;
  --brand-hover: #173f82;
  --brand-soft: #e7edf7;
  --brand-bright: #7ea4e4;      /* highlight on dark backgrounds */
  --brand-solid: #1f4e9c;       /* filled backgrounds with white text (buttons) */
  --brand-solid-hover: #173f82;

  /* Light surfaces (logo silver/white) */
  --bg: #ffffff;
  --bg-soft: #f1f3f6;
  --bg-muted: #e6e9ee;
  --surface: #ffffff;
  --text: #0c1626;
  --text-muted: #566070;
  --text-faint: #8a929e;
  --line: #dadfe6;
  --header-bg: rgba(255, 255, 255, 0.86);

  /* Dark sections */
  --dark-bg: #081428;
  --dark-surface: rgba(255, 255, 255, 0.035);
  --dark-surface-hover: rgba(255, 255, 255, 0.07);
  --dark-line: rgba(255, 255, 255, 0.11);
  --dark-text: #eef2f8;
  --dark-muted: #9ba7b9;
  --dark-glow: rgba(31, 78, 156, 0.55);

  --radius: 12px;
  --radius-sm: 8px;
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* Dark mode: data-theme is set by js/menu.js (saved choice, otherwise system setting) */
:root[data-theme="dark"] {
  --brand: #8fb0ea;
  --brand-strong: #0f2a57;
  --brand-hover: #b3cbf3;
  --brand-soft: rgba(126, 164, 228, 0.16);
  --brand-solid: #2a5cb3;
  --brand-solid-hover: #3468c2;

  --bg: #0d1729;
  --bg-soft: #111d33;
  --bg-muted: #16233d;
  --surface: #13203a;
  --text: #e8edf5;
  --text-muted: #a5b1c4;
  --text-faint: #7a879c;
  --line: #26344f;
  --header-bg: rgba(10, 18, 34, 0.84);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

h1, h2, h3 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: inherit; margin: 0 0 0.5em; font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-strong); color: #fff; padding: 8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.icon { width: 1.1em; height: 1.1em; }

/* Highlighted words in headings */
.hl { color: var(--brand); }
.dark .hl, .hero .hl { color: var(--brand-bright); }

/* Small section label with icon */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.eyebrow .icon { color: var(--brand); }
.dark .eyebrow { color: var(--dark-muted); }
.dark .eyebrow .icon { color: var(--brand-bright); }

.center { text-align: center; }
.center .lead, .center h2 { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-muted); max-width: 620px; }
.dark .lead { color: var(--dark-muted); }

/* ---------- Buttons ---------- */

.btn {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
/* Light that follows the pointer (position set by JS) */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(140px circle at var(--x) var(--y), rgba(255, 255, 255, 0.3), transparent 65%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

/* Button with round icon bubble on the right */
/* Buttons are text-only now; btn--icon keeps the normal padding */
.btn__icon {
  display: grid; place-items: center; width: 2.25em; height: 2.25em; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn__icon .icon { width: 1.05em; height: 1.05em; }
.btn:hover .btn__icon { transform: rotate(-8deg) scale(1.05); }
.btn:hover .btn__icon .icon { animation: arrow-loop 0.55s var(--ease); }
.btn:hover .btn__icon--down .icon { animation-name: arrow-loop-down; }
@keyframes arrow-loop { 0% { transform: none; } 45% { transform: translateX(170%); } 46% { transform: translateX(-170%); } 100% { transform: none; } }
@keyframes arrow-loop-down { 0% { transform: none; } 45% { transform: translateY(170%); } 46% { transform: translateY(-170%); } 100% { transform: none; } }

.btn--primary {
  color: #fff; background: var(--brand-solid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px -12px rgba(31, 78, 156, 0.75);
}
.btn--primary:hover { color: #fff; background: var(--brand-solid-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 38px -12px rgba(31, 78, 156, 0.9); }
.btn--primary:hover .btn__icon { background: #fff; color: var(--brand); }

.btn--light { color: var(--brand-strong); background: #fff; }
.btn--light::before { background: radial-gradient(140px circle at var(--x) var(--y), rgba(31, 78, 156, 0.16), transparent 65%); }
.btn--light:hover { color: var(--brand-strong); box-shadow: 0 14px 40px -12px rgba(126, 164, 228, 0.75); }
.btn--light .btn__icon { background: var(--brand); color: #fff; }

.btn--outline { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn--outline::before { background: radial-gradient(140px circle at var(--x) var(--y), rgba(31, 78, 156, 0.12), transparent 65%); }
.btn--outline:hover { color: var(--text); border-color: var(--brand); }
.btn--outline .btn__icon { background: var(--brand-soft); color: var(--brand); }
.dark .btn--outline, .hero .btn--outline {
  color: var(--dark-text); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.dark .btn--outline::before, .hero .btn--outline::before { background: radial-gradient(140px circle at var(--x) var(--y), rgba(255, 255, 255, 0.18), transparent 65%); }
.dark .btn--outline:hover, .hero .btn--outline:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }

.btn--sm { padding: 0.6em 1.1em; font-size: 0.88rem; }

/* Text links without icon: light underline that fills blue on hover */
.textlink {
  display: inline; font-weight: 600; padding-bottom: 3px;
  background:
    linear-gradient(var(--brand), var(--brand)) left bottom / 0 2px no-repeat,
    linear-gradient(var(--brand-soft), var(--brand-soft)) left bottom / 100% 2px no-repeat;
  transition: background-size 0.35s var(--ease);
}
/* Whole-card hover only for cards that are one single link (a.pcard); cards with two links react per link */
.textlink:hover, a.pcard:hover .textlink { background-size: 100% 2px, 100% 2px; }
span.textlink { color: var(--brand); }
a:hover span.textlink { color: var(--brand-hover); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: var(--header-h); }
.logo img { width: 150px; transition: width 0.3s var(--ease); }
.site-header.is-scrolled .logo img { width: 136px; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: none; place-items: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

/* Light/dark switch: round button bottom left (counterpart to the news button bottom right).
   Shows moon in light mode, sun in dark mode. Hidden without JS (then it couldn't work). */
.theme-toggle {
  position: fixed; left: 20px; bottom: 20px; z-index: 89;
  display: none; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: var(--brand-solid); color: #fff; cursor: pointer;
  box-shadow: 0 16px 36px -12px rgba(31, 78, 156, 0.8);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.js .theme-toggle { display: grid; }
.theme-toggle:hover { transform: scale(1.08); background: var(--brand-solid-hover); }
.theme-toggle .icon { width: 24px; height: 24px; }
.theme-toggle__sun, [data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
@media (max-width: 480px) { .theme-toggle { left: 16px; bottom: 16px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-5px) rotate(-45deg); }

.main-nav { width: 100%; order: 5; }
.menu { list-style: none; margin: 0; padding: 0 0 16px; display: none; }
.menu.is-open { display: block; }
.menu a { display: flex; align-items: center; gap: 6px; padding: 12px 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--bg-muted); }
.menu a:hover, .menu a[aria-current="page"], .menu a.is-active { color: var(--brand); }
.menu .chev { display: none; }
.sub { list-style: none; margin: 0; padding: 0 0 0 16px; }
.sub a { color: var(--text-muted); font-weight: 400; }

@media (min-width: 1080px) {
  .header__inner { flex-wrap: nowrap; gap: 24px; }
  .nav-toggle { display: none; }
  .icon-btn { display: grid; }
  .main-nav { width: auto; order: 0; margin: 0 auto; }
  .menu, .menu.is-open { display: flex; gap: 4px; padding: 0; }
  .menu > li { position: relative; }
  .menu > li > a {
    border: 0; padding: 8px 14px; border-radius: 999px;
    font-size: 0.93rem; color: var(--text-muted);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }
  .menu > li > a:hover, .menu > li:focus-within > a { color: var(--text); background: var(--bg-soft); }
  /* Active section: blue text + fine line sitting on the header's bottom edge */
  .menu > li > a { position: relative; }
  .menu > li > a[aria-current="page"], .menu > li > a.is-active { color: var(--brand); font-weight: 600; }
  .menu > li > a[aria-current="page"] .chev, .menu > li > a.is-active .chev { color: var(--brand); }
  .menu > li > a[aria-current="page"]::after, .menu > li > a.is-active::after {
    content: ""; position: absolute; left: 10px; right: 10px; height: 2px;
    bottom: calc(50% - var(--header-h) / 2 - 1px);
    border-radius: 2px 2px 0 0; background: var(--brand);
  }
  .menu .chev { display: block; width: 14px; height: 14px; color: var(--text-faint); transition: transform 0.2s; }
  .has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }

  .sub {
    position: absolute; z-index: 10; top: calc(100% + 10px); left: -1px; min-width: 260px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 24px 48px -20px rgba(8, 20, 40, 0.25);
    padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .sub a { border: 0; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: 0.92rem; }
  .sub a:hover { background: var(--bg-soft); color: var(--brand); }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Image placeholders ----------
   Replace <div class="media ..."> with <img class="media ..."> once photos exist. */

.media {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-muted);
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #e6eaf0 0%, #c3ccd8 100%);
  object-fit: cover;
}
.media--dark {
  background-color: #0e1d38;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #13284a 0%, #0b1730 100%);
}
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media__note {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  font-size: 0.72rem; letter-spacing: 0.03em; color: var(--text-muted);
}
.media--dark .media__note { color: var(--dark-muted); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* ---------- Dark sections (shared) ---------- */

.dark, .hero { background-color: var(--dark-bg); color: var(--dark-text); position: relative; overflow: hidden; }
.gridlines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 124px 124px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.glow::after {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 600px; left: 50%; top: 10%; transform: translateX(-30%);
  background: radial-gradient(closest-side, var(--dark-glow), transparent);
  filter: blur(20px);
}
.dark > .container, .hero > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 40px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero__lead { color: var(--dark-muted); font-size: 1.15rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Process diagram (skewed boxes, staggered) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow li {
  --i: 0;
  width: min(250px, 72%);
  margin-left: calc(var(--i) * 9%);
  padding: 16px 20px;
  border: 1px solid var(--dark-line);
  background: var(--dark-surface);
  transform: skewX(-14deg);
  color: var(--dark-muted);
  animation: flow-active 8s infinite;
  animation-delay: calc(var(--i) * 2s);
}
.flow li > span { display: block; transform: skewX(14deg); font-size: 0.92rem; text-align: center; }
.flow li strong { display: block; color: var(--dark-text); font-weight: 600; font-size: 1rem; }
.flow li:nth-child(1) { --i: 0; }
.flow li:nth-child(2) { --i: 1; }
.flow li:nth-child(3) { --i: 2; }
.flow li:nth-child(4) { --i: 3; }
@keyframes flow-active {
  0%, 22% { border-color: var(--brand-bright); background: rgba(31, 78, 156, 0.35); box-shadow: 0 0 30px -6px rgba(126, 164, 228, 0.45); }
  28%, 100% { border-color: var(--dark-line); background: var(--dark-surface); box-shadow: none; }
}

/* Industry tiles at hero bottom */
.hero__tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
.htile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--dark-line); background: var(--dark-surface);
  color: var(--dark-text); font-size: 0.92rem;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.htile:hover { color: #fff; background: var(--dark-surface-hover); border-color: rgba(126, 164, 228, 0.5); transform: translateY(-2px); }
.htile .media { aspect-ratio: 16 / 10; }
.htile span { padding: 0 4px; }

@media (min-width: 720px) { .hero__tiles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .hero { padding: 96px 0 48px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero__tiles { margin-top: 88px; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { margin-bottom: 44px; }
.section__head h2 { max-width: 860px; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

/* Cards (light) */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--bg-muted); border: 1px solid var(--line);
}
.card .icon--line { width: 30px; height: 30px; color: var(--brand); margin-bottom: 26px; }
.card p { margin: 0; color: var(--text); }

/* Answer section with soft tint */
.answer {
  background:
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(31, 78, 156, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(138, 146, 158, 0.18), transparent 70%),
    var(--bg-soft);
}
.answer p.lead { margin-bottom: 0; }

.cells {
  display: grid; grid-template-columns: 1fr; margin-top: 56px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}
@media (min-width: 640px) { .cells { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cells { grid-template-columns: repeat(5, 1fr); } }
.cell {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
}
@media (min-width: 1024px) { .cell { border-bottom: 0; } .cell + .cell { border-left: 1px solid var(--line); } }
.cell:hover { background: var(--surface); color: var(--text); }
.cell .icon { width: 24px; height: 24px; color: var(--brand); margin-bottom: 14px; }
.cell strong { font-weight: 600; }
.cell span { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Partner tabs ---------- */

.tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--dark-line); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
}
.tab {
  display: flex; align-items: center; justify-content: center; min-height: 64px;
  padding: 12px; font: inherit; font-weight: 600; letter-spacing: 0.02em;
  color: var(--dark-muted); background: transparent; border: 0; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.tab + .tab { border-left: 1px solid var(--dark-line); }
.tab:hover { color: #fff; background: var(--dark-surface); }
.tab[aria-selected="true"] { background: var(--bg-muted); color: var(--text); }

.tabpanel {
  display: grid; grid-template-columns: 1fr;
  background: var(--bg-muted); color: var(--text);
  border: 1px solid var(--dark-line); border-top: 0; /* same frame as .tabs, so the edges line up */
  background-clip: padding-box; /* background stays inside the frame, like the tab above */
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}
.tabpanel[hidden] { display: none; }
.tabpanel:not([hidden]) { animation: panel-in 0.6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 860px) { .tabpanel { grid-template-columns: 1fr 1fr; } }
.tabpanel__text { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.tabpanel__text p { color: var(--text-muted); }
.tabpanel__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: auto; padding-top: 24px; }
.tabpanel__media { border-top: 1px solid var(--line); }
@media (min-width: 860px) { .tabpanel__media { border-top: 0; border-left: 1px solid var(--line); } }
.tabpanel__media .media { height: 100%; min-height: 260px; border-radius: 0; }

/* Partner tab as one stage: soft gradient, no divider, photo at native size (stays sharp) */
.tabpanel--stage { background: linear-gradient(180deg, var(--bg-muted) 0%, #d9dfe8 100%); background-clip: padding-box; }
/* Same height as the other partner tabs (300px): photo height capped */
.tabpanel__media.tabpanel__media--stage { border: 0; display: flex; align-items: center; justify-content: center; padding: 24px 32px; }
.tabpanel__media--stage img { display: block; width: auto; max-width: 100%; max-height: 252px; height: auto; filter: drop-shadow(0 24px 30px rgba(10, 28, 59, 0.25)); }.partner-logo {
  display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 18px;
}
.partner-logo img { height: 40px; width: auto; }

/* Partner tab: only a large logo + website link, centered */
.tabpanel__text--logo { align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 56px 32px; min-height: 300px; }
.tabpanel__text--logo .tabpanel__links { margin-top: 0; padding-top: 0; justify-content: center; }
.partner-logo--lg { margin: 0; transition: transform 0.4s var(--ease); }
.partner-logo--lg:hover { transform: scale(1.04); }
.partner-logo--lg img { height: auto; width: min(300px, 70vw); }
/* Vectron Smart Partner badge (light + dark version) */
.partner-badge { height: 46px; width: auto; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
}

/* ---------- Stats block ---------- */

.stats {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-muted);
}
@media (min-width: 900px) { .stats { grid-template-columns: 1.4fr 1fr 1fr; } }
.stats__intro { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.stats__intro p { color: var(--text); }
.stats__intro .btn { margin-top: auto; }
.stat { padding: 28px 32px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.stat > span { color: var(--text-muted); font-size: 0.92rem; }
@media (min-width: 900px) {
  .stats { grid-template-rows: auto auto; }
  .stats__intro { grid-row: span 2; }
  .stat { border-left: 1px solid var(--line); }
  .stat:nth-child(2), .stat:nth-child(3) { border-top: 0; }
}

/* ---------- Remote support ---------- */

.remote__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .remote__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.remote h2 { color: #fff; }
.remote__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--dark-line); background: var(--dark-surface);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(126, 164, 228, 0.45); color: var(--brand-bright); font-weight: 600;
}
.steps h3 { color: #fff; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--dark-muted); }
.steps a { color: var(--brand-bright); font-weight: 600; }

/* ---------- Contact ---------- */

.contact { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; gap: 72px; } }
.contact__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact__list li { display: grid; gap: 4px; padding: 20px 24px; }
.contact__list li + li { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .contact__list li { grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; } }
.contact__list span { font-size: 0.85rem; color: var(--text-faint); }
.contact__list a, .contact__list p { font-size: 1.15rem; font-weight: 500; color: var(--text); margin: 0; line-height: 1.4; }
.contact__list a:hover { color: var(--brand); }

/* Opening hours as aligned rows */
.hours { display: grid; gap: 12px; margin: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.hours > div { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 520px) { .hours > div { grid-template-columns: 190px 1fr; gap: 16px; } }
.hours dt { color: var(--text); }
.hours dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.hours > div + div { padding-top: 12px; border-top: 1px dashed var(--line); }

/* ==========================================================
   Subpages
   ========================================================== */

.page-hero { padding: 56px 0 64px; }
@media (min-width: 768px) { .page-hero { padding: 88px 0 96px; } }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--dark-muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--dark-muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--dark-text); }

.split2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split2 { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split2 .media { aspect-ratio: 4 / 3; }
.split2 .media.media--3x2 { aspect-ratio: 3 / 2; } /* wide group photo: nobody cut off */

.pcards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pcards--3 { grid-template-columns: repeat(3, 1fr); } }
.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pcard:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(8, 20, 40, 0.35); }
.pcard .media { border-radius: 0; aspect-ratio: 16 / 10; }
/* Photo shown complete; its edges fade softly into a matching neutral surface */
/* Background continues the photo: grey wall darkens towards the table, thin light edge at 69.5 %, grey table top getting lighter */
.media.media--inset, [data-theme="dark"] .media.media--inset {
  background: linear-gradient(180deg, #e6e6e7 0%, #dcdcdd 69%, #c4c4c6 69.3%, #c4c4c6 69.7%, #dedede 70.4%, #e4e4e5 78%, #efeff0 100%);
}
.media--inset > img {
  left: 50%; right: auto; width: auto; max-width: none; height: 100%; aspect-ratio: 5 / 4;
  transform: translateX(-50%); object-fit: cover;
  /* only the narrow side edges fade, the devices stay untouched */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
/* Cut-out photo (transparent PNG): same grey wall as the Vectron card,
   edge behind the devices (48 %), white floor below; soft shadow so the devices stand on it */
.media.media--cutout, [data-theme="dark"] .media.media--cutout {
  background: linear-gradient(180deg, #e6e6e7 0%, #dcdcdd 47.6%, #c4c4c6 47.9%, #c4c4c6 48.3%, #f3f3f4 49%, #fbfbfb 62%, #ffffff 100%);
}
.media--cutout > img { object-fit: contain; filter: drop-shadow(0 14px 12px rgba(10, 20, 40, 0.22)); }
.pcard__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; }
.pcard__body p { color: var(--text-muted); }
.pcard__body > .textlink { margin-top: auto; }
.pcard__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pcard h3 a { color: inherit; }
.pcard h3 a:hover { color: var(--brand); }

@media (min-width: 768px) { .cards.cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cells.cells--4 { grid-template-columns: repeat(4, 1fr); } }
/* Six cells in two rows of three */
@media (min-width: 1024px) {
  .cells.cells--3 { grid-template-columns: repeat(3, 1fr); }
  .cells--3 .cell:nth-child(3n+1) { border-left: 0; }
  .cells--3 .cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
.card { position: relative; }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card__num { position: absolute; top: 26px; right: 26px; font-size: 0.85rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.stats__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.card h3 { margin-bottom: 8px; }
.card .placeholder { margin-top: 10px; }

.sblock { display: grid; gap: 12px 40px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.sblock:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .sblock { grid-template-columns: 90px 1fr 1.3fr; } }
.sblock__num { font-size: 0.9rem; color: var(--text-faint); font-variant-numeric: tabular-nums; padding-top: 8px; }
.sblock h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.sblock p { color: var(--text-muted); }
.sblock p:last-child, .sblock .checklist:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4e9c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.info { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--brand-soft); border-left: 3px solid var(--brand); color: var(--text); }
.info p:last-child { margin: 0; }
.info + .info { margin-top: 12px; }
.section__foot { margin-top: 40px; }

.steps--light li { border-color: var(--line); background: var(--surface); }
.steps--light li::before { color: var(--brand); border-color: var(--brand-soft); background: var(--brand-soft); }
.steps--light h3 { color: var(--text); }
.steps--light p { color: var(--text-muted); }
.steps--light a { color: var(--brand); }

.dl-group + .dl-group { margin-top: 56px; }
.dl-group h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 18px; }
.dl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dl li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 24px; }
.dl li + li { border-top: 1px solid var(--line); }
.dl__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.dl__icon .icon { width: 22px; height: 22px; }
.dl__text { flex: 1 1 240px; }
.dl__text strong { display: block; font-weight: 600; }
.dl__text span { color: var(--text-muted); font-size: 0.92rem; }

.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 2em 0 0.5em; }
.legal p, .legal li { color: var(--text-muted); }
.legal .info { margin-bottom: 8px; }
.legal h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.legal ul:not(.checklist), .legal ol { padding-left: 22px; }
.legal a { overflow-wrap: anywhere; }
.legal__stand { font-size: 0.9rem; color: var(--text-faint); }
.legal__toc { margin: 28px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.legal__toc ol { margin: 8px 0 0; }
.legal__toc li { margin: 2px 0; }
.legal h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
/* "Zu prüfen" boxes in legal drafts: clearly marked, remove before publishing */
.legal__check { background: #fff6d6; border-left-color: #c99a00; margin: 12px 0; }
.legal__highlight { margin: 20px 0; }
.legal__highlight h3 { margin-top: 0; }

.person { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.person .media { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 50%; }
.person .media__note { display: none; }
.person .media > img { object-position: 50% 25%; } /* keep the face centred in the round crop */
.person strong { display: block; }
.person span { color: var(--text-muted); font-size: 0.92rem; }

/* Company history timeline */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 32px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--line), var(--brand));
}
.timeline li { position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -32px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-soft); border: 3px solid var(--brand);
}
.timeline li:last-child::before { background: var(--brand); box-shadow: 0 0 0 6px rgba(31, 78, 156, 0.15); }
.timeline strong { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--brand); }
.timeline span { color: var(--text-muted); }

/* Vision / Mission / Working method columns on dark background */
.pillars { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pillar {
  padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--dark-line); background: var(--dark-surface);
}
.pillar h3 { color: #fff; font-size: 1.3rem; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--dark-line); }
.pillar p { margin: 0; color: var(--dark-muted); line-height: 1.7; }

/* Google Maps with two-click consent (iframe inserted by JS) */
.map {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background-color: var(--bg-muted);
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #e6eaf0 0%, #c3ccd8 100%);
}
.map__consent {
  position: absolute; inset: 0; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.map__consent p { max-width: 360px; margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.map__consent strong { color: var(--text); font-size: 1.05rem; }
.map__pin { width: 36px; height: 36px; color: var(--brand); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- News card bottom right (built by JS from NEWS in menu.js) ---------- */
.news {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: min(360px, calc(100% - 32px));
  padding: 22px 22px 18px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: 0 30px 60px -24px rgba(8, 20, 40, 0.45);
  animation: news-in 0.6s var(--ease);
}
.news[hidden] { display: none; }
@media (max-width: 480px) { .news { right: 16px; bottom: 16px; } }
@keyframes news-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.news h3 { font-size: 1.1rem; margin: 10px 0 6px; padding-right: 28px; }
.news p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 12px; }
.news__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: var(--bg-soft); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.news__close:hover { color: var(--brand); }
.news__progress { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--brand); animation: news-progress 6s linear forwards; }
/* pause on hover and on keyboard focus only (mouse clicks leave focus behind and would pause forever) */
.news:hover .news__progress, .news:has(:focus-visible) .news__progress { animation-play-state: paused; }
@keyframes news-progress { from { width: 0; } to { width: 100%; } }
.news__slide { display: none; }
.news__slide.is-active { display: block; animation: news-slide 0.5s var(--ease); }
@keyframes news-slide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.news__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.news__dots { display: flex; gap: 6px; }
.news__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width 0.3s, background-color 0.3s; }
.news__dots button[aria-current="true"] { width: 22px; background: var(--brand); }
.news__arrows { display: flex; align-items: center; gap: 6px; }
.news__count { margin-right: 4px; font-size: 0.82rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.news__arrows button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.news__arrows button:hover { border-color: var(--brand); color: var(--brand); }

/* Round button that reopens the news card after closing */
.news-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--brand-solid); color: #fff; cursor: pointer;
  box-shadow: 0 16px 36px -12px rgba(31, 78, 156, 0.8);
  animation: news-in 0.5s var(--ease);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.news-bubble[hidden] { display: none; }
.news-bubble:hover { transform: scale(1.08); background: var(--brand-solid-hover); }
.news-bubble svg { width: 24px; height: 24px; }
.news-bubble__count {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--brand-solid);
  background: #fff; color: var(--brand-solid); font-size: 0.75rem; font-weight: 700;
}
@media (max-width: 480px) { .news-bubble { right: 16px; bottom: 16px; } }

/* ---------- Placeholder text (missing content) ---------- */

.placeholder {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  border: 1px dashed var(--text-faint); color: var(--text-muted);
  font-size: 0.82rem; font-weight: 500;
}
.dark .placeholder, .tab .placeholder { border-color: currentColor; color: inherit; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark-bg); color: var(--dark-muted); font-size: 0.93rem; padding: 72px 0 28px; }
.site-footer a { color: var(--dark-muted); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.footer__brand p { max-width: 340px; }
.site-footer h2 { color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer address { font-style: normal; }
.footer__bottom {
  border-top: 1px solid var(--dark-line);
  margin-top: 56px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.85rem;
}
.footer__bottom nav { display: flex; gap: 24px; }

/* Footer brand: signet + company name as one lockup, address with pin icon */
.footer__lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer__signet {
  width: 48px; height: 48px; flex: 0 0 48px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.6s var(--ease);
}
.footer__brand:hover .footer__signet { transform: rotate(-6deg) scale(1.05); }
.footer__lockup strong { display: block; margin: 0; color: #fff; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.footer__lockup span { display: block; color: var(--dark-muted); font-size: 0.85rem; letter-spacing: 0.04em; }
.footer__address { display: flex; align-items: flex-start; gap: 10px; font-style: normal; line-height: 1.6; }
.footer__address .icon { color: var(--brand-bright); margin-top: 4px; }
.footer__badge { display: block; height: 36px; width: auto; margin-top: 20px; }

/* ==========================================================
   Dark mode – only what the color tokens above can't cover
   ========================================================== */

/* Header logo: separate version with light lettering (img/logo-dark.png) */
.logo .logo__dark, [data-theme="dark"] .logo .logo__light { display: none; }
[data-theme="dark"] .logo .logo__dark { display: block; }
/* Partner logos: shown in white – except logos with their own dark version (partner-logo--color) */
[data-theme="dark"] .partner-logo:not(.partner-logo--color) img { filter: brightness(0) invert(1); }
/* Images that exist in a light and a dark version */
.theme-dark, [data-theme="dark"] .theme-light { display: none; }
[data-theme="dark"] .theme-dark { display: inline-block; }
[data-theme="dark"] .tabpanel--stage { background: linear-gradient(180deg, var(--bg-muted) 0%, #0e1a30 100%); background-clip: padding-box; }
[data-theme="dark"] .tabpanel__media--stage img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); }

/* Image placeholders and map background */
[data-theme="dark"] .media:not(.media--dark),
[data-theme="dark"] .map {
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #1a2944 0%, #111d33 100%);
}

[data-theme="dark"] .cells { background: rgba(255, 255, 255, 0.02); }
[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb0ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
}
[data-theme="dark"] .legal__check { background: rgba(201, 154, 0, 0.14); }
[data-theme="dark"] .spot::before { background: radial-gradient(320px circle at var(--x) var(--y), rgba(126, 164, 228, 0.1), transparent 60%); }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }

/* ==========================================================
   Motion
   ========================================================== */

/* Scroll progress bar (element created by JS) */
.progress {
  position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  pointer-events: none;
}

.site-header { transition: box-shadow 0.3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(8, 20, 40, 0.4); }

/* Reveal on scroll – classes are added by JS, content stays visible without JS */
.js .reveal {
  opacity: 0; transform: translateY(28px); filter: blur(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Headline builds word by word */
.js .split .w {
  display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(6px);
  animation: word-in 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }

/* Hero ambience: drifting glow, slowly panning grid, floating diagram */
.glow::after { animation: glow-drift 18s ease-in-out infinite alternate; }
@keyframes glow-drift {
  0% { transform: translate(-30%, 0) scale(1); }
  50% { transform: translate(-55%, 10%) scale(1.15); }
  100% { transform: translate(-12%, -8%) scale(0.95); }
}
.gridlines::before { animation: grid-pan 60s linear infinite; }
@keyframes grid-pan { to { background-position: 124px 124px, 124px 124px; } }
.flow { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Pointer spotlight on cards (position set by JS) */
.spot { --x: 50%; --y: 50%; position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--x) var(--y), rgba(31, 78, 156, 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.spot::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(240px circle at var(--x) var(--y), var(--brand-bright), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.dark .spot::before, .hero .spot::before { background: radial-gradient(320px circle at var(--x) var(--y), rgba(126, 164, 228, 0.12), transparent 60%); }
.card, .cell { transition: transform 0.4s var(--ease), background-color 0.3s; }
.card:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split .w { opacity: 1 !important; transform: none !important; filter: none !important; }
}
