/* =====================================================================
   Inspira KG — site-wide design system
   Editorial, premium consulting look: warm porcelain / deep ink themes,
   gold + indigo accents, serif display type, restrained glass effects.
   Page-specific styles live in each page's own <style> block.
   ===================================================================== */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face{
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face{
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-normal.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root{
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Light — warm porcelain */
  --bg: #f6f4ef;
  --bg2: #fdfcf9;
  --text: #15171f;
  --muted: #545a68;
  --muted2: #646a7a;
  --surface: #ffffff;
  --surface2: #fbfaf6;
  --border: rgba(21, 23, 31, .11);
  --track: color-mix(in oklab, var(--border) 75%, transparent);
  --shadow: 0 1px 2px rgba(21,23,31,.05), 0 16px 44px rgba(21,23,31,.09);
  --shadow2: 0 2px 10px rgba(21,23,31,.08), 0 30px 80px rgba(21,23,31,.14);

  --gold: #a8853c;
  --gold-strong: #7d6127;
  --gold-soft: rgba(168,133,60,.14);
  --indigo: #4f46e5;
  --indigo-soft: rgba(79,70,229,.12);
  --good: #15803d;

  --ink-btn: #191c26;         /* primary button surface */
  --ink-btn-text: #f7f5ef;

  --radius: 16px;
  --radius2: 24px;
  --container: min(1160px, 92vw);
  --nav-h: 74px;

  color-scheme: light;
  scroll-behavior: smooth;
}

[data-theme="dark"]{
  --bg: #0a0c14;
  --bg2: #0e1120;
  --text: #eef0f8;
  --muted: #aab2c5;
  --muted2: #8e96ab;
  --surface: #131726;
  --surface2: #171c2e;
  --border: rgba(238,240,248,.12);
  --track: rgba(238,240,248,.22);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 18px 55px rgba(0,0,0,.5);
  --shadow2: 0 2px 12px rgba(0,0,0,.45), 0 36px 100px rgba(0,0,0,.6);

  --gold: #d9b36c;
  --gold-strong: #e7c684;
  --gold-soft: rgba(217,179,108,.16);
  --indigo: #8b93f8;
  --indigo-soft: rgba(139,147,248,.15);
  --good: #16a34a;

  --ink-btn: #f2ede1;
  --ink-btn-text: #14161f;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  background:
    radial-gradient(1100px 800px at 12% -12%, var(--indigo-soft), transparent 62%),
    radial-gradient(900px 700px at 108% 10%, var(--gold-soft), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  overflow-x: hidden;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
p{ line-height: 1.7; margin: 0 0 1rem; color: color-mix(in oklab, var(--text) 88%, var(--muted2)); }
ul{ margin: .6rem 0 0; padding: 0 0 0 1.15rem; color: color-mix(in oklab, var(--text) 84%, var(--muted2)); }
li{ margin: .4rem 0; line-height: 1.55; }
h1, h2, h3, h4{ margin: 0; font-family: var(--font-display); font-weight: 560; letter-spacing: -0.01em; text-wrap: balance; }
h1{ font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.04; }
h2{ font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3{ font-size: 1.22rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.015em; }
/* h2 that must look like an h3 (keeps the heading outline free of level skips) */
.h-sub{ font-size: 1.22rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.015em; line-height: normal; }
strong{ font-weight: 700; }
:focus-visible{ outline: 2px solid color-mix(in oklab, var(--gold) 75%, var(--text)); outline-offset: 3px; border-radius: 10px; }
::selection{ background: color-mix(in oklab, var(--gold) 32%, var(--bg)); }

.container{ width: var(--container); margin: 0 auto; }
section{ padding: clamp(3.6rem, 8vw, 6.4rem) 0; scroll-margin-top: calc(var(--nav-h) + 12px); position: relative; }
.muted{ color: var(--muted); }
.small{ font-size: .9rem; color: var(--muted); margin: 0; }

/* Serif italic-gold highlight inside display headings */
.hl-serif{
  font-style: italic;
  font-weight: 620;
  background: linear-gradient(100deg, var(--gold-strong), var(--gold) 55%, color-mix(in oklab, var(--gold) 60%, var(--indigo)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .04em;
}

/* Gold underline that fades in under the h1 highlight after the headline reveal.
   text-decoration (not a pseudo-element) so it survives line wrapping and the
   overflow-hidden word-reveal wrappers; base state is visible so reduced-motion
   (animation: none) keeps the underline. */
h1 .hl-serif{
  text-decoration-line: underline;
  text-decoration-thickness: .05em;
  text-underline-offset: .08em;
  text-decoration-color: color-mix(in oklab, var(--gold) 70%, transparent);
  animation: hlFade 1.1s ease .95s both;
}
@keyframes hlFade{ from{ text-decoration-color: transparent; } }

/* Eyebrow: small-caps label with gold rule — used above every section heading */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 1rem;
}
.eyebrow::before{
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head{ max-width: 72ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p{ margin: .7rem 0 0; font-size: 1.06rem; }
/* detail pages promote their top heading to h1 for a11y — keep h2 visual size */
.section-head h1{ font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.12; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow{ justify-content: center; }
.section-head.center .eyebrow::before{ display: none; }

/* ---------- Grids ---------- */
.grid-2{ display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.4rem, 3.2vw, 3rem); align-items: center; }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.auto-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }

/* ---------- Skip link (first tab stop, visible only on focus) ---------- */
.skip-link{
  position: fixed;
  left: 1rem; top: -100%;
  z-index: 700;
  padding: .6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus,
.skip-link:focus-visible{ top: 1rem; }

/* ---------- Header / navigation ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 250;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--bg2) 82%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled{
  background: color-mix(in oklab, var(--bg2) 94%, transparent);
  box-shadow: 0 12px 32px rgba(0,0,0,.09);
}
.nav{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand img{
  width: 36px; height: 36px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent);
}
/* the emblem's black strokes vanish on dark surfaces — give it a porcelain chip */
[data-theme="dark"] .brand img{
  background: #f4f0e8;
  padding: 2px;
}
.brand .kg{ color: var(--gold-strong); font-style: italic; }

.nav-links{ display: flex; align-items: center; gap: .35rem; }
.nav-links a{
  padding: .55rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: color-mix(in oklab, var(--text) 82%, var(--muted2));
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.nav-links a:hover{ color: var(--text); background: color-mix(in oklab, var(--surface) 80%, transparent); }
.nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .18rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), color-mix(in oklab, var(--gold) 40%, var(--indigo)));
}

.nav-cta{ display: flex; align-items: center; gap: .55rem; }
.nav-cta .mobile-cta{ display: none; }

/* Language switch — DE | EN pill */
.lang-switch{
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.lang-switch button{
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: .45rem .7rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-switch button.active{
  background: var(--ink-btn);
  color: var(--ink-btn-text);
  cursor: default;
}
.lang-switch button:not(.active):hover{ color: var(--text); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow2); border-color: color-mix(in oklab, var(--gold) 35%, var(--border)); }
.btn:active{ transform: translateY(0); }
.btn.primary{
  background: var(--ink-btn);
  color: var(--ink-btn-text);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.btn.primary::after{      /* gold sheen sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, color-mix(in oklab, var(--gold) 55%, transparent) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn.primary:hover::after{ transform: translateX(120%); }
.btn.ghost{ background: transparent; box-shadow: none; }
.icon-btn{ width: 42px; height: 42px; padding: 0; border-radius: 999px; display: grid; place-items: center; }
.icon{ width: 18px; height: 18px; flex: 0 0 auto; }
.btn .icon{ transition: transform .2s ease; }
.btn:hover .icon.arrow{ transform: translateX(3px); }

.burger{ display: none; width: 42px; height: 42px; border-radius: 999px; }

/* ---------- Mobile menu ---------- */
.mobile{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: color-mix(in oklab, var(--bg) 68%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile.open{ display: block; }
.mobile .panel{
  width: min(520px, 92vw);
  margin: 1rem auto;
  border-radius: var(--radius2);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  overflow: hidden;
  animation: panel-in .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes panel-in{ from{ opacity: 0; transform: translateY(-14px) scale(.98); } to{ opacity: 1; transform: none; } }
.mobile .head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--border);
}
.mobile nav{ display: grid; padding: .75rem; gap: .35rem; }
.mobile nav a{
  padding: .95rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  background: color-mix(in oklab, var(--surface2) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile nav a.active{ border-color: color-mix(in oklab, var(--gold) 45%, var(--border)); color: var(--gold-strong); }
.mobile-actions{
  display: grid;
  padding: .35rem .75rem 1rem;
  gap: .45rem;
  grid-template-columns: 1fr;
}
.mobile-actions .row{ display: flex; gap: .45rem; }
.mobile-actions .row > *{ flex: 1; }

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.card.pad{ padding: 1.5rem; }
.hover-lift{
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.hover-lift:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow2);
  border-color: color-mix(in oklab, var(--gold) 30%, var(--border));
}
/* cursor-tracking glow for [data-tilt] cards */
[data-tilt]::after{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px 260px at var(--mx, 50%) var(--my, 0%), var(--gold-soft), transparent 65%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
[data-tilt]:hover::after{ opacity: 1; }

.icon-badge{
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  border: 1px solid color-mix(in oklab, var(--gold) 22%, var(--border));
  color: var(--gold-strong);
  margin-bottom: .9rem;
}
.icon-badge svg{ width: 22px; height: 22px; stroke: currentColor; }

/* Big serif numeral (stats, process steps) */
.num-serif{
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1;
  color: var(--gold-strong);
  letter-spacing: -0.02em;
}

/* ---------- Media / figures ---------- */
.media{
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  position: relative;
}
.media img{ width: 100%; object-fit: cover; }
.media .bar{
  position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), color-mix(in oklab, var(--gold) 40%, var(--indigo)));
}
figure{ margin: 0; }
.figure img{ border-radius: 16px; border: 1px solid var(--border); }
.figcap{ margin-top: .5rem; font-size: .88rem; color: var(--muted); }

/* ---------- Aurora backdrop (hero) ---------- */
.aurora{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora span{
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .5;
  mix-blend-mode: plus-lighter;
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
[data-theme="light"] .aurora span, :root:not([data-theme="dark"]) .aurora span{ mix-blend-mode: normal; opacity: .38; }
.aurora .a1{ width: 480px; height: 480px; top: -160px; left: -120px; background: radial-gradient(circle at 35% 35%, var(--indigo), transparent 65%); }
.aurora .a2{ width: 420px; height: 420px; top: 10%; right: -140px; background: radial-gradient(circle at 60% 40%, var(--gold), transparent 62%); animation-delay: -5s; animation-duration: 19s; }
.aurora .a3{ width: 380px; height: 380px; bottom: -180px; left: 30%; background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--gold) 45%, var(--indigo)), transparent 65%); animation-delay: -9s; animation-duration: 22s; }
@keyframes aurora-drift{
  0%{ transform: translate3d(0,0,0) scale(1); }
  100%{ transform: translate3d(60px, 40px, 0) scale(1.15); }
}

/* Subtle grain */
.noise{
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Word-by-word headline reveal ---------- */
[data-words] .w{ display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-words] .w > span{ display: inline-block; transform: translateY(110%); }
body.js-ready [data-words].play .w > span{ animation: word-up .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--wi) * 60ms); }
@keyframes word-up{ from{ transform: translateY(110%); } to{ transform: translateY(0); } }

/* ---------- Marquee ---------- */
.marquee{
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.05rem 0;
  background: color-mix(in oklab, var(--surface2) 55%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .track{
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .track{ animation-play-state: paused; }
.marquee .item{
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  color: color-mix(in oklab, var(--text) 72%, var(--muted2));
}
.marquee .item::after{ content: "✦"; font-size: .8rem; color: var(--gold); font-style: normal; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- Timeline (process) ---------- */
.timeline{ display: grid; gap: 1rem; position: relative; --line: 0px; }
.timeline::before{
  content: "";
  position: absolute;
  left: 26px; top: 16px; bottom: 16px;
  width: 2px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--border) 90%, transparent);
}
.timeline::after{
  content: "";
  position: absolute;
  left: 26px; top: 16px;
  width: 2px;
  height: var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), color-mix(in oklab, var(--gold) 40%, var(--indigo)));
  box-shadow: 0 0 22px var(--gold-soft);
}
.step{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius2);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.step .n{
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border: 1px solid color-mix(in oklab, var(--gold) 25%, var(--border));
}
.step h3, .step .h-sub{ margin: .3rem 0 .3rem; }
.timeline .step[data-reveal]{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Quote / testimonial ---------- */
.quote-card{
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.quote-card blockquote{
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: color-mix(in oklab, var(--text) 92%, var(--muted2));
}
.quote-card cite{ display: block; margin-top: .8rem; font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner{
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  background: var(--ink-btn);
  color: var(--ink-btn-text);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  isolation: isolate;
}
.cta-banner::before{
  content: "";
  position: absolute; inset: -2px;
  background:
    radial-gradient(600px 300px at 15% 0%, color-mix(in oklab, var(--indigo) 40%, transparent), transparent 60%),
    radial-gradient(520px 280px at 90% 100%, color-mix(in oklab, var(--gold) 45%, transparent), transparent 60%);
  opacity: .5;
  z-index: -1;
}
.cta-banner h2{ color: inherit; margin-bottom: .6rem; }
.cta-banner p{ color: color-mix(in oklab, var(--ink-btn-text) 80%, transparent); max-width: 56ch; margin: 0 auto 1.5rem; }
.cta-banner .btn{ border-color: transparent; }
.cta-banner .btn.gold{
  background: linear-gradient(120deg, var(--gold), color-mix(in oklab, var(--gold) 70%, #fff));
  color: #1c1608;
}
[data-theme="dark"] .cta-banner .btn.gold{ color: #1c1608; }

/* ---------- Forms ---------- */
form{ display: grid; gap: .9rem; }
.two{ display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label{ display: block; font-size: .9rem; font-weight: 700; margin: 0 0 .35rem; color: color-mix(in oklab, var(--text) 85%, var(--muted2)); }
input, textarea, select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg2) 80%, transparent);
  color: var(--text);
  padding: .85rem .95rem;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea{ min-height: 150px; resize: vertical; }
input:focus, textarea:focus{
  border-color: color-mix(in oklab, var(--gold) 45%, var(--border));
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.form-footer{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }

/* Info tiles (contact) */
.info-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.info-tile{
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .8rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.info-icon{
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold-strong);
}
.info-icon svg{ width: 20px; height: 20px; stroke: currentColor; }
.info-title{ font-weight: 800; margin: 0 0 .15rem; font-size: .95rem; }
.info-body{ margin: 0; color: color-mix(in oklab, var(--text) 80%, var(--muted) 16%); font-size: .95rem; }
.link{ text-decoration: underline; text-underline-offset: .22em; text-decoration-color: color-mix(in oklab, var(--gold) 60%, transparent); }
.link:hover{ text-decoration-color: var(--gold); }

/* ---------- FAQ (details/summary) ---------- */
.faq{ display: grid; gap: .7rem; }
.faq details{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary{
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold-strong);
  transition: transform .25s ease;
}
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq .faq-body{ padding: 0 1.2rem 1.1rem; }
.faq .faq-body p{ margin: 0; }

/* ---------- Guided next-page navigation ---------- */
.next-nav{
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  display: flex;
  justify-content: flex-end;
}
.next-nav a{
  display: grid;
  gap: .15rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: min(340px, 100%);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.next-nav a:hover{ transform: translateY(-3px); box-shadow: var(--shadow2); border-color: color-mix(in oklab, var(--gold) 40%, var(--border)); }
.next-nav .k{ font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-strong); }
.next-nav .t{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.next-nav .t .icon{ color: var(--gold-strong); }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 1.6rem;
  color: var(--muted);
  position: relative;
  z-index: 2;
  background: color-mix(in oklab, var(--surface2) 55%, transparent);
}
.site-footer .cols{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3{ font-family: var(--font-sans); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-strong); margin-bottom: .8rem; }
.site-footer .tagline{ max-width: 40ch; margin-top: .8rem; }
.site-footer nav{ display: grid; gap: .45rem; }
.site-footer nav a{ color: var(--muted); transition: color .2s ease; width: fit-content; }
.site-footer nav a:hover{ color: var(--text); }
.site-footer .bottom{
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

/* ---------- Chrome: progress, loading, toast, back-to-top ---------- */
.progress{
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), color-mix(in oklab, var(--gold) 40%, var(--indigo)));
  z-index: 260;
}
.page-loading{
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .7rem;
  z-index: 500;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--muted);
  transition: opacity .3s ease, visibility .3s ease;
}
body.page-ready .page-loading{ opacity: 0; visibility: hidden; pointer-events: none; }
.spinner{
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 3px solid var(--gold-soft);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.toast{
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 400;
  width: min(420px, 92vw);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  padding: .95rem 1.05rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.show{ transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--good));
  margin-top: .35rem;
  flex: 0 0 auto;
}
.toast p{ margin: 0; }

.top{
  position: fixed;
  left: 1rem; bottom: 1rem;
  z-index: 250;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.top.show{ opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Reveal system ----------
   Elements tagged data-reveal animate in when scrolled into view.
   Variants: (default fade-up) | left | right | zoom | blur
   Stagger: style="--i:n"  → n * 90ms delay */
[data-reveal]{ opacity: 1; transform: none; }
body.js-ready [data-reveal]{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1), filter .75s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
body.js-ready [data-reveal="left"]{ transform: translateX(-28px); }
body.js-ready [data-reveal="right"]{ transform: translateX(28px); }
body.js-ready [data-reveal="zoom"]{ transform: scale(.92); }
body.js-ready [data-reveal="blur"]{ transform: none; filter: blur(8px); }
body.js-ready [data-reveal].in{ opacity: 1; transform: none; filter: none; }

/* ---------- Page transition ---------- */
body.js-ready .page-enter{ animation: page-in .5s ease both; }
@keyframes page-in{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px){
  .grid-2{ grid-template-columns: minmax(0, 1fr); }
  .grid-4{ grid-template-columns: 1fr 1fr; }
  .site-footer .cols{ grid-template-columns: 1fr 1fr; }
}
/* The full DE header (nav links + language switch + CTA) needs ~950px —
   switch to the burger early enough that nothing gets clipped. */
@media (max-width: 960px){
  .nav-links{ display: none; }
  .nav-cta .desktop-only{ display: none; }
  .nav-cta .mobile-cta{ display: inline-flex; padding: .5rem .85rem; font-size: .85rem; }
  .burger{ display: inline-grid; }
}
@media (max-width: 340px){
  .nav-cta .mobile-cta{ display: none; }
}
@media (max-width: 860px){
  .two{ grid-template-columns: 1fr; }
  .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .site-footer .cols{ grid-template-columns: 1fr; }
  body{ font-size: 16px; }
}

/* ---------- Blazor error UI ---------- */
#blazor-error-ui{
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  padding: .8rem 2.6rem .8rem 1.2rem;
  background: var(--surface);
  color: var(--text);
  border-top: 2px solid #b91c1c;
  box-shadow: var(--shadow2);
  font-size: .95rem;
}
#blazor-error-ui .reload{
  margin-left: .6rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#blazor-error-ui .dismiss{
  position: absolute;
  right: .9rem;
  top: .7rem;
  cursor: pointer;
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body.js-ready [data-reveal]{ opacity: 1 !important; transform: none !important; filter: none !important; }
  [data-words] .w > span{ transform: none !important; }
  .marquee .track{ animation: none !important; }
}
