/* Kompavi — Brand Stylesheet v1 */
/* Fonts: Jost (headlines/wordmark), Inter (body) — both free SIL OFL */

/* Self-hosted — no request leaves the visitor's browser to Google. */
@import url('fonts.css');

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --dark-bg:        #08070F;
  --dark-bg-mid:    #0E0C1A;
  --dark-bg-card:   #13101F;
  --light-bg:       #F9F7F4;
  --card-bg:        #FFFFFF;
  --text-dark:      #191622;
  --text-mid:       #3B3747;
  --text-muted:     #5C5869;
  --text-light:     #F4F1EC;
  --text-light-dim: #D3D0DC;
  /* Muted tone for dark surfaces — the light-bg --text-muted is far too dim there. */
  --text-dim-dark:  #A7A3B4;
  --accent-gold:    #C9A24E;
  --accent-gold-lt: #F2D488;
  --accent-violet:  #5C4FC4;
  --accent-teal:    #1F5E5A;
  --border:         #E8E4DC;
  --border-dark:    #2A2540;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.08);
  --shadow-md:      0 4px 24px rgba(0,0,0,.12);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--light-bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }
p { max-width: 68ch; }

/* ── Layout helpers ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--dark { background: var(--dark-bg); color: var(--text-light); }
.section--mid { background: var(--dark-bg-mid); color: var(--text-light); }
.section--tinted { background: #F2EFE8; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,7,15,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.nav__wordmark {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light-dim);
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text-light); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__lang {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim-dark);
  padding: 4px 10px;
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  transition: all 0.2s;
  text-decoration: none;
}
.nav__lang:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent-gold);
  color: #0D0A00;
}
.btn--primary:hover { background: var(--accent-gold-lt); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,162,78,.35); }
.btn--outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(244,241,236,0.35);
}
.btn--outline:hover { border-color: var(--text-light); background: rgba(244,241,236,0.08); }
.btn--outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}
.btn--outline-dark:hover { border-color: var(--text-mid); background: rgba(0,0,0,0.04); }
.btn--sm { padding: 8px 18px; font-size: 0.875rem; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(92,79,196,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(122,47,114,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 85%, rgba(31,94,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero__tagline {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 24px; }
.hero__sub {
  font-size: 1.1rem;
  color: var(--text-light-dim);
  margin-bottom: 40px;
  max-width: 52ch;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* The mark sits directly on the hero gradient — no tile, no box. */
.hero__logo-mark {
  width: clamp(200px, 28vw, 300px);
  height: clamp(200px, 28vw, 300px);
}

/* ── Section labels ────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  display: block;
}
.section-intro { margin-bottom: 56px; }
.section-intro h2 { margin-bottom: 16px; }
.section-intro p { color: var(--text-mid); font-size: 1.05rem; }
.section-intro--light p { color: var(--text-light-dim); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 24px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--dark {
  background: var(--dark-bg-card);
  border-color: var(--border-dark);
  color: var(--text-light);
}
.card--dark p { color: var(--text-light-dim); }
.card__number {
  font-family: 'Jost', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.6;
  margin-bottom: 12px;
  line-height: 1;
}
.card__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; line-height: 1.7; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold);
}
.card__link:hover { gap: 8px; }

/* ── Industry tiles ────────────────────────────────────────────────────── */
.industry-tile {
  display: block;
  background: var(--dark-bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 28px;
  color: var(--text-light);
  transition: all 0.25s;
  text-decoration: none;
}
.industry-tile:hover {
  background: #1A1530;
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.industry-tile__icon { font-size: 1.6rem; margin-bottom: 14px; }
.industry-tile h3 { margin-bottom: 8px; font-size: 1.1rem; }
.industry-tile p { font-size: 0.875rem; color: var(--text-light-dim); line-height: 1.6; }
.industry-tile__arrow {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* ── Trust/Haltung section ─────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.trust__points { display: flex; flex-direction: column; gap: 28px; }
.trust-point { display: flex; gap: 16px; align-items: flex-start; }
.trust-point__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(92,79,196,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.trust-point__text h4 { margin-bottom: 4px; color: var(--text-light); }
.trust-point__text p { font-size: 0.9rem; color: var(--text-light-dim); }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--dark-bg-mid) 0%, #1C163A 100%);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 72px 0;
  text-align: center;
  color: var(--text-light);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p {
  color: var(--text-light-dim);
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ── Page header (sub-pages) ───────────────────────────────────────────── */
.page-header {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 15% 50%, rgba(92,79,196,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { color: var(--text-light-dim); font-size: 1.1rem; max-width: 60ch; }

/* ── Contact form ──────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--card-bg);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-violet); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.form-success {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 32px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-mid); font-size: 0.95rem; margin: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark-bg);
  color: var(--text-light-dim);
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.footer__logo-icon { width: 28px; height: 28px; }
.footer__wordmark {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-light);
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-dim-dark);
  line-height: 1.5;
}
.footer__col h5 {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim-dark);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light-dim);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--text-light); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: var(--text-dim-dark);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: var(--text-dim-dark); }
.footer__legal a:hover { color: var(--text-light-dim); }

/* ── Branche detail ────────────────────────────────────────────────────── */
/* Light card in a light section — the old dark-violet panel with lavender italics
   was the worst readability offender on the industry pages. */
.challenge-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-violet);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
  color: var(--text-dark);
}
.challenge-box p { color: var(--text-mid); font-style: normal; max-width: 100%; }
.example-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.example-item { display: flex; gap: 16px; }
.example-item__num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(201,162,78,0.15);
  border: 1px solid rgba(201,162,78,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.example-item p { font-size: 0.95rem; color: var(--text-mid); }
.entry-question {
  background: #F4F2FA;
  border: 1px solid #DCD6EE;
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 40px;
}
.entry-question__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* Darkened from --accent-violet: 5.2:1 → 7.5:1 on this tint. */
  color: #463BA8;
  margin-bottom: 10px;
}
.entry-question p {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-style: normal;
  max-width: 100%;
}

/* ── Two-column split (text + aside) ───────────────────────────────────── */
.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.quote-card {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--text-light);
}
.quote-card h3 { margin-bottom: 16px; color: var(--text-light); }
.quote-card p {
  margin-bottom: 0;
  color: var(--text-light-dim);
  font-size: 1.05rem;
  font-style: italic;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .cards--3, .cards--4 { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(8,7,15,0.98);
    border-bottom: 1px solid var(--border-dark);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-dark);
  }
  .nav__links a:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .cards--3, .cards--4, .cards--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .split-2 { gap: 32px; }
  .quote-card { padding: 28px; }
}

/* ── Utility ───────────────────────────────────────────────────────────── */
.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ════════════════════════════════════════════════════════════════════════
   v2 — Motion & depth layer („Der leuchtende Kompass")
   Additive on top of the v1 tokens. Fully inert without JS and under
   prefers-reduced-motion.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Reveal engine (classes applied by motion.js) ─────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ── Section label: short gold rule draws in beside the label ─────────── */
.section-label::after {
  content: '';
  display: inline-block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-gold), rgba(201,162,78,0));
  margin-left: 12px;
  vertical-align: middle;
  transform-origin: left center;
  transition: transform 0.7s 0.25s var(--ease-out);
}
html.has-motion .section-label::after { transform: scaleX(0); }
html.has-motion .rv.in .section-label::after,
html.has-motion .section-label.rv.in::after { transform: scaleX(1); }

/* ── Nav: transparent over the dark page top, frosted once scrolled ───── */
.nav--dynamic {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s, border-color 0.4s;
}
/* Fixed nav leaves the flow — give page tops their 64px back */
html.has-fixed-nav .page-header { padding-top: 136px; }
html.has-fixed-nav .hero--home { padding-top: 184px; }
.nav--dynamic.nav--scrolled,
.nav--dynamic.is-open {
  background: rgba(8, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-dark);
}

/* ── Homepage hero: living particle spiral ────────────────────────────── */
.hero--home {
  min-height: min(92vh, 940px);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 0 100px;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
/* Soft vignette keeps the headline readable over the particles */
.hero--home::before {
  background:
    radial-gradient(ellipse 58% 46% at 50% 46%, rgba(8,7,15,0.62) 0%, rgba(8,7,15,0.25) 55%, transparent 75%),
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(92,79,196,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(122,47,114,0.10) 0%, transparent 70%);
  z-index: 1;
}
.hero--home .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero--home h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero--home .hero__sub {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 58ch;
}
.hero--home .hero__actions { justify-content: center; }
/* Static fallback mark — shown until/unless the canvas takes over */
.hero__fallback {
  display: block;
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(52vw, 440px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero--live .hero__fallback { display: none; }

/* ── Depth: tint, grain and hairline on dark surfaces ─────────────────── */
.section--dark, .section--mid, .cta-band { position: relative; overflow: hidden; }
.section--dark {
  background: radial-gradient(ellipse 75% 60% at 50% 0%, rgba(92,79,196,0.09) 0%, transparent 60%) var(--dark-bg);
}
.section--mid {
  background: radial-gradient(ellipse 75% 60% at 50% 100%, rgba(92,79,196,0.08) 0%, transparent 60%) var(--dark-bg-mid);
}
.section--dark::before, .section--mid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(201,162,78,0.30) 50%, transparent 90%);
  pointer-events: none;
}
.section--dark::after, .section--mid::after,
.hero::after, .page-header::after, .cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.028;
  pointer-events: none;
  z-index: 1;
}
.hero--home::after { z-index: 1; }

/* ── CTA band: slow gold shimmer ──────────────────────────────────────── */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(201,162,78,0.05) 45%,
    rgba(242,212,136,0.09) 50%,
    rgba(201,162,78,0.05) 55%,
    transparent 68%);
  background-size: 250% 100%;
  background-position: 130% 0;
  animation: ctaShimmer 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShimmer {
  0%   { background-position: 130% 0; }
  60%  { background-position: -70% 0; }
  100% { background-position: -70% 0; }
}
.cta-band .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; }
}

/* ── Line-icon set (replaces the emoji) ───────────────────────────────── */
svg.icon {
  width: 1em;
  height: 1em;
  color: var(--accent-gold);
  flex-shrink: 0;
}
.card__icon svg.icon, .industry-tile__icon svg.icon { display: block; }
.industry-tile__icon svg.icon { transition: transform 0.25s var(--ease-out); }
.industry-tile:hover .industry-tile__icon svg.icon { transform: translateY(-3px); }
.trust-point__icon svg.icon { width: 1.15em; height: 1.15em; }

/* ── Hover & focus refinements ────────────────────────────────────────── */
.btn { transition: all 0.25s var(--ease-out); }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,162,78,0.42), 0 0 0 1px rgba(242,212,136,0.35) inset;
}
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.industry-tile:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(201,162,78,0.10);
}
.industry-tile__arrow, .card__link {
  transition: transform 0.25s var(--ease-out), gap 0.25s var(--ease-out);
}
.industry-tile:hover .industry-tile__arrow { transform: translateX(4px); }
.card:hover { box-shadow: var(--shadow-md), 0 0 20px rgba(201,162,78,0.07); }

/* ── Typography & rhythm: more air on large screens ───────────────────── */
@media (min-width: 900px) {
  .section { padding: 108px 0; }
  .section--sm { padding: 56px 0; }
  .section-intro { margin-bottom: 64px; }
  .cta-band { padding: 96px 0; }
}

/* ════════════════════════════════════════════════════════════════════════
   v3 — Kompassstern brand mark & constellation layer
   ════════════════════════════════════════════════════════════════════════ */

/* ── Nav mark: living logo ────────────────────────────────────────────── */
.nav__logo-icon { display: block; }
.nav__logo-sat-static { display: none; }
.nav__logo-core { animation: logoBreath 5.5s ease-in-out infinite; }
@keyframes logoBreath {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.nav__logo svg { transition: filter 0.35s var(--ease-out); }
.nav__logo:hover svg { filter: drop-shadow(0 0 7px rgba(242, 212, 136, 0.55)); }
@media (prefers-reduced-motion: reduce) {
  .nav__logo-sat { display: none; }
  .nav__logo-sat-static { display: block; }
  .nav__logo-core { animation: none; }
}

/* ── Constellation canvases (injected by motion.js) ───────────────────── */
.fx-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 2; }

/* ── Spotlight: gold glow trails the pointer over cards ───────────────── */
.card, .industry-tile { position: relative; overflow: hidden; }
html.has-motion .card::before,
html.has-motion .industry-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
html.has-motion .card::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 162, 78, 0.10), transparent 65%);
}
html.has-motion .industry-tile::before {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 212, 136, 0.13), transparent 65%);
}
html.has-motion .card:hover::before,
html.has-motion .industry-tile:hover::before { opacity: 1; }
