/* =========================================================
   GSA Consulting — Design System
   Theme: Dark technical, brand indigo/navy + cyan glow
   ========================================================= */

:root {
  /* Brand */
  --navy-900: #0a0a18;
  --navy-800: #0e0e22;
  --navy-700: #14143a;
  --indigo-600: #2b2b78;
  --indigo-500: #3a3a9e;
  --indigo-400: #5b5be0;

  /* Accent (glow) */
  --cyan: #45d0ff;
  --cyan-soft: #8fe3ff;
  --violet: #8b7bff;

  /* Neutrals */
  --bg: #07070f;
  --bg-elev: #0d0d1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(139, 147, 255, 0.16);
  --border-strong: rgba(139, 147, 255, 0.32);

  --text: #eef0ff;
  --text-dim: #aab0d4;
  --text-faint: #6c719a;

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --glow: 0 0 0 1px var(--border), 0 18px 60px -22px rgba(69, 208, 255, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background grid + glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(58, 58, 158, 0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(69, 208, 255, 0.10), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(139, 147, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 147, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }

.text-grad {
  background: linear-gradient(100deg, #fff 10%, var(--cyan-soft) 55%, var(--indigo-400) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(100deg, var(--indigo-500), var(--cyan));
  color: #06121b;
  box-shadow: 0 12px 40px -12px rgba(69, 208, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -12px rgba(69, 208, 255, 0.7); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand .logo { width: 38px; height: auto; color: var(--cyan); filter: drop-shadow(0 0 10px rgba(69,208,255,0.5)); }
.brand .brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; letter-spacing: 0.01em; }
.brand .brand-name b { font-weight: 700; }
.brand .brand-name span { color: var(--text-dim); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 9px 14px; font-size: 0.93rem; color: var(--text-dim);
  border-radius: 10px; transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; font-family: var(--font-mono); font-size: 0.78rem;
}
.lang-toggle button {
  padding: 5px 11px; border-radius: 999px; color: var(--text-faint); transition: all 0.25s; font-weight: 600;
}
.lang-toggle button.active { background: var(--indigo-500); color: #fff; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 76px; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 820px; }
.hero h1 { margin: 18px 0 24px; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--text-dim); max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint); display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--cyan), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Cards / glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, transparent, rgba(69,208,255,0.5), transparent);
  -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.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(69,208,255,0.10); border: 1px solid var(--border); color: var(--cyan); margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-portrait {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  aspect-ratio: 4/5; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(91,91,224,0.4), transparent 60%),
    radial-gradient(120% 90% at 90% 100%, rgba(69,208,255,0.35), transparent 55%),
    var(--bg-elev);
  display: grid; place-items: center;
}
.about-portrait .portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.about-portrait .mono-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; font-family: var(--font-head); font-size: 1.25rem; color: #fff; text-align: left; padding: 48px 24px 20px; background: linear-gradient(to top, rgba(7,7,15,0.88) 10%, rgba(7,7,15,0.45) 55%, transparent); }
.about-portrait .mono-name small { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.1em; margin-top: 8px; }
.about-text p { color: var(--text-dim); font-size: 1.06rem; margin-top: 18px; }
.about-text .role { font-family: var(--font-mono); color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.service-item {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.service-item:hover { transform: translateY(-4px); border-color: var(--cyan); background: var(--surface-2); }
.service-item .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(91,91,224,0.14); color: var(--cyan); }
.service-item .ico svg { width: 20px; height: 20px; }
.service-item span { font-weight: 500; font-size: 0.96rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(180deg, transparent, rgba(20,20,58,0.5), transparent); }
.stat { text-align: center; padding: 24px 12px; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; }
.stat .num .text-grad { display: inline-block; }
.stat .label { color: var(--text-dim); margin-top: 10px; font-size: 0.95rem; }
.stat .plus { color: var(--cyan); }

/* ---------- References marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ref-pill {
  display: grid; place-items: center; height: 76px; min-width: 176px; padding: 0 30px;
  border: 1px solid var(--border); border-radius: 14px; background: #ffffff;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.ref-pill img {
  max-height: 34px; max-width: 130px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.7; transition: filter 0.35s, opacity 0.35s;
}
.ref-pill:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 14px 36px -18px rgba(69,208,255,0.6); }
.ref-pill:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .glass { padding: clamp(40px, 7vw, 80px); position: relative; overflow: hidden; }
.cta-band .glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 50% 0%, rgba(69,208,255,0.18), transparent 70%);
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { color: var(--text-dim); max-width: 540px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 36px; background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.site-footer .f-links a { display: block; color: var(--text-dim); padding: 6px 0; transition: color 0.25s; }
.site-footer .f-links a:hover { color: var(--cyan); }
.site-footer .f-about p { color: var(--text-dim); max-width: 300px; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Floating CV button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px;
  background: linear-gradient(100deg, var(--indigo-500), var(--cyan)); color: #06121b; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 12px 40px -12px rgba(69,208,255,0.6); transition: transform 0.3s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 1px solid var(--cyan); opacity: 0; animation: fabPulse 2.6s var(--ease) infinite; }
@keyframes fabPulse { 0% { opacity: 0.6; transform: scale(0.9); } 70%,100% { opacity: 0; transform: scale(1.25); } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(120px, 16vw, 180px) 0 clamp(48px, 7vw, 80px); position: relative; }
.page-hero h1 { margin-top: 16px; }
.page-hero p { color: var(--text-dim); max-width: 600px; margin-top: 18px; font-size: 1.08rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.05em; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Value cards (about) ---------- */
.value-card .ico { background: rgba(91,91,224,0.12); }

/* ---------- Services page groups ---------- */
.svc-group { margin-bottom: 48px; }
.svc-group h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.svc-group h3 .tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--cyan); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; letter-spacing: 0.1em; }

/* ---------- Projects ---------- */
.project-card { padding: 0; overflow: hidden; }
.project-card .pc-top { height: 150px; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, rgba(91,91,224,0.35), transparent 60%), var(--bg-elev); font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--text); letter-spacing: 0.02em; }
.project-card .pc-body { padding: 26px; }
.project-card .pc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
.chip.year { color: var(--cyan); }
.project-card p { color: var(--text-dim); font-size: 0.95rem; }
.project-card .pc-top { position: relative; }
.project-card .pc-init { font-size: 1.9rem; }
.pc-live { position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #07121a; background: var(--cyan); padding: 4px 9px; border-radius: 999px; font-weight: 600; box-shadow: 0 0 18px -2px rgba(69,208,255,0.6); }
.pc-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #07121a; margin-right: 5px; vertical-align: middle; animation: pcpulse 1.6s ease-in-out infinite; }
@keyframes pcpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.project-card .pc-client { font-size: 1.15rem; margin-bottom: 4px; }
.project-card .pc-firm { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.02em; margin-bottom: 12px; }
.project-card .pc-sum { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Expandable cards (hover desktop / tap mobile) ---------- */
.expandable { cursor: pointer; }
.expandable .more {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s, margin-top 0.35s;
  opacity: 0; margin-top: 0;
}
.expandable .more > * { overflow: hidden; min-height: 0; }
.expandable .more p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }
.expand-hint {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); opacity: 0.75; transition: opacity 0.3s;
}
.expand-hint::after { content: "+"; font-size: 0.95rem; line-height: 1; }
.expandable.open .more { grid-template-rows: 1fr; opacity: 1; margin-top: 14px; }
.expandable.open .expand-hint { opacity: 0; height: 0; margin-top: 0; overflow: hidden; }
@media (hover: hover) {
  .expandable:hover .more { grid-template-rows: 1fr; opacity: 1; margin-top: 14px; }
  .expandable:hover .expand-hint { opacity: 0; }
}
/* service-item becomes a stacked, expandable tile */
.service-item.expandable { flex-direction: column; align-items: stretch; gap: 0; }
.service-item .si-head { display: flex; align-items: center; gap: 14px; }
.service-item .more p { font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info .info-item .ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(69,208,255,0.1); color: var(--cyan); }
.contact-info .info-item .ico svg { width: 20px; height: 20px; }
.contact-info .info-item b { display: block; font-weight: 600; }
.contact-info .info-item span { color: var(--text-dim); font-size: 0.92rem; }

.form { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 7px; font-family: var(--font-mono); letter-spacing: 0.03em; }
.field label .req { color: var(--cyan); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; background: var(--bg-elev);
  border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(69,208,255,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #ff8497; font-size: 0.78rem; margin-top: 6px; min-height: 1em; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #ff8497; }
.field.invalid .err { display: block; }
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 8px; }
.form-success { display: none; padding: 16px; border-radius: 12px; background: rgba(69,208,255,0.1); border: 1px solid var(--cyan); color: var(--cyan-soft); margin-bottom: 18px; }
.form-success.show { display: block; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: rgba(7,7,15,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; gap: 2px; transform: translateY(-130%); transition: transform 0.4s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px; width: 100%; font-size: 1rem; }
  .nav-toggle { display: block; }
  /* declutter header — CV lives in the floating button on phones */
  .nav-actions .btn-ghost { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .fab { right: 16px; bottom: 16px; padding: 14px; }
  /* 16px input prevents iOS Safari auto-zoom on focus */
  .field input, .field textarea { font-size: 16px; }
  .card { padding: 24px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  section { padding: clamp(56px, 14vw, 90px) 0; }
  /* full-width, easy-to-tap primary actions */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .hero .lead { margin-bottom: 30px; }
  .section-head { margin-bottom: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat { padding: 18px 8px; }
  .form { padding: 22px; }
  .cta-band .glass { padding: 36px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* keep brand from crowding the toggle on narrow screens */
  .brand .brand-name { font-size: 1.05rem; }
}

/* ---- Impressum / legal page ---- */
.legal { padding: clamp(28px, 4vw, 48px); }
.legal-list {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 14px 32px;
  margin: 0;
}
.legal-list dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: 2px;
}
.legal-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.legal-list dt { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.legal-list dt:last-of-type, .legal-list dd:last-of-type { border-bottom: 0; }
@media (max-width: 680px) {
  .legal-list { grid-template-columns: 1fr; gap: 4px; }
  .legal-list dt { border-bottom: 0; padding-bottom: 2px; }
  .legal-list dd { padding-bottom: 18px; }
}
