/* ==========================================================================
   U.F.E. Zentrum — Stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-soft-2: #eaeff5;
  --surface: #ffffff;
  --ink: #1a2233;
  --ink-soft: #4d5566;
  --text-muted: #8992a3;

  --accent-900: #1f3346;
  --accent-700: #35526b;
  --accent-600: #44647f;
  --accent-500: #5c7a99;
  --accent-400: #8aa5c0;
  --accent-100: #e6edf4;

  --gold-600: #b8862f;
  --gold-500: #c9922f;

  --hero-navy-950: #0b0f18;
  --hero-navy-900: #111726;
  --hero-navy-800: #182236;
  --hero-blue-300: #a7c8ff;
  --hero-blue-400: #7fb0ff;
  --hero-blue-500: #4f8ef7;
  --hero-blue-700: #2f6fe0;

  --line: rgba(26,34,51,0.1);
  --line-soft: rgba(26,34,51,0.07);

  --font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --container-w: 1180px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 20px 50px rgba(20,28,45,0.1);
  --shadow-card: 0 10px 28px rgba(20,28,45,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; color: var(--ink); font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent-600);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-400), var(--accent-700));
  transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-display);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-900));
  color: #fbfdff;
  box-shadow: 0 12px 26px rgba(31,51,70,0.28);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(31,51,70,0.38); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent-500); color: var(--accent-700); }

.link-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.link-button:hover { color: var(--accent-700); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 24px rgba(20,28,45,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  line-height: 1;
  transition: color .3s ease;
}
.logo:hover { text-decoration: none; }
.logo-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s ease;
}
.logo-title strong {
  font-weight: 800;
}
.logo-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-blue-300);
  transition: color .3s ease;
}
.logo-sub span {
  margin: 0 0.5em;
  color: rgba(255,255,255,0.55);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .logo-title {
  color: var(--ink);
}
.site-header.is-scrolled .logo-sub {
  color: var(--accent-600);
}
.site-header.is-scrolled .logo-sub span {
  color: var(--text-muted);
}

.footer-brand .logo,
.footer-brand .logo-title {
  color: var(--ink);
}
.footer-brand .logo-sub {
  color: var(--accent-600);
}
.footer-brand .logo-sub span {
  color: var(--text-muted);
}

.footer-brand .logo-title,
.footer-brand .logo-sub {
  display: block;
}
.footer-brand .logo-sub {
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  transition: color .3s ease;
}
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.08);
  transition: color .3s ease, background .3s ease, border-color .3s ease;
}
.nav-cta:hover { border-color: var(--hero-blue-400); color: var(--hero-blue-300); }

.site-header.is-scrolled .nav-link { color: var(--ink-soft); }
.site-header.is-scrolled .nav-link:hover { color: var(--ink); }
.site-header.is-scrolled .nav-cta {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.site-header.is-scrolled .nav-cta:hover { border-color: var(--accent-500); color: var(--accent-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: background .3s ease, transform .25s ease, opacity .25s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span { border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.55) 65%, rgba(255,255,255,0.97) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 90px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-700);
  font-weight: 700;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.hero h1 { max-width: 900px; }
.hero h1 em { color: var(--gold-600); font-style: normal; }
.hero-lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- Hero (dark, split layout) ---------- */
.hero-dark {
  min-height: 0;
  align-items: stretch;
  background: linear-gradient(115deg, var(--hero-navy-950) 0%, var(--hero-navy-900) 45%, var(--hero-navy-800) 100%);
  padding-top: 96px;
}
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 18% 15%, rgba(79,142,247,0.16), transparent 70%),
    radial-gradient(45% 50% at 85% 75%, rgba(79,142,247,0.1), transparent 70%);
  pointer-events: none;
}
.hero-ghost-text {
  position: absolute;
  top: 8%;
  right: 2%;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  text-align: right;
  pointer-events: none;
  z-index: 1;
}
.hero-ghost-text span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  white-space: nowrap;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 64px;
}
.hero-copy { max-width: 620px; }
.eyebrow-dark {
  color: var(--hero-blue-300);
  opacity: 0.85;
}
.hero-dark-heading {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: #fff;
  font-weight: 800;
}
.hero-dark-heading em {
  color: var(--hero-blue-400);
  font-style: normal;
  background: linear-gradient(90deg, var(--hero-blue-300), var(--hero-blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead-dark {
  color: rgba(226,232,244,0.78);
  max-width: 520px;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 22px;
  margin: 34px 0 38px;
}
.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(127,176,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-blue-400);
  flex-shrink: 0;
}
.hero-feature-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(226,232,244,0.85);
  line-height: 1.35;
}
.btn-primary-dark {
  background: linear-gradient(135deg, var(--hero-blue-400), var(--hero-blue-700));
  color: #fff;
  box-shadow: 0 14px 30px rgba(47,111,224,0.4);
  gap: 10px;
}
.btn-primary-dark:hover { box-shadow: 0 18px 36px rgba(47,111,224,0.5); }
.hero-text-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  align-self: center;
}
.hero-text-link:hover { color: var(--hero-blue-300); border-color: var(--hero-blue-300); text-decoration: none; }

.hero-media {
  position: relative;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-photo {
  max-height: 640px;
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
}
.hero-script {
  position: absolute;
  right: 4%;
  bottom: 6%;
  margin: 0;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #fff;
  text-align: right;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.scroll-hint-dark {
  border-color: rgba(255,255,255,0.3);
}
.scroll-hint-dark span { background: var(--hero-blue-400); }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(26,34,51,0.2);
  border-radius: 20px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-600);
  transform: translateX(-50%);
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--accent-900);
  padding: 52px 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}
.section-alt { background: var(--bg-soft); }
.section-contact { background: var(--bg); }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-700);
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.section-head { max-width: 700px; margin-bottom: 60px; }
.lead-text {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  scroll-margin-top: 110px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,28,45,0.1);
}
.pillar-icon { width: 56px; height: 56px; margin-bottom: 22px; }
.pillar-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.pillar-card h3 { margin-bottom: 16px; }
.pillar-card blockquote {
  margin: 0 0 20px;
  padding-left: 18px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent-700);
  font-style: normal;
}
.pillar-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pillar-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* ---------- Timeline (Ablauf) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-bottom: 44px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 56px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-index {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-body h3 { margin-bottom: 8px; }
.timeline-body p { color: var(--ink-soft); max-width: 640px; margin: 0; }

/* ---------- FAQ Accordion ---------- */
.accordion {
  border-top: 1px solid var(--line);
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.accordion-trigger:hover { color: var(--accent-700); }
.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--accent-700);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::before { width: 9px; height: 1.5px; }
.accordion-icon::after { width: 1.5px; height: 9px; transition: transform .2s ease, opacity .2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.accordion-panel p {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  font-size: 1.05rem;
}
.contact-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--accent-700); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 260px;
}
.footer-contact p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.95rem; }
.footer-contact a { color: var(--ink-soft); }
.footer-contact a:hover { color: var(--accent-700); }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 22px;
}
.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-700);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease, color .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-700);
  color: #fff;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20,28,45,0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-soft);
  transform: translateY(24px) scale(0.98);
  transition: transform .28s ease;
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal h2 { margin-bottom: 22px; }
.modal h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-700);
  margin-top: 30px;
}
.modal p { font-size: 0.96rem; color: var(--ink-soft); }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.modal-close:hover {
  background: var(--accent-700);
  color: #fff;
  transform: rotate(90deg);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat-item:nth-child(2) { border-right: none; padding-right: 0; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-right: none; }
}

@media (max-width: 900px) {
  .pillar-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-media { max-width: 320px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-copy { max-width: none; }
  .hero-media { min-height: 340px; order: -1; margin-bottom: 8px; }
  .hero-photo { max-height: 400px; -webkit-mask-image: none; mask-image: none; border-radius: var(--radius-lg); }
  .hero-ghost-text { display: none; }
  .hero-script { right: 6%; bottom: 4%; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -20px 0 50px rgba(20,28,45,0.15);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-link { color: var(--ink-soft); }
  .main-nav .nav-link:hover { color: var(--ink); }
  .main-nav .nav-cta {
    border-color: var(--line);
    color: var(--ink);
    background: var(--bg-soft);
  }
  .main-nav .nav-cta:hover { border-color: var(--accent-500); color: var(--accent-700); }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 80px 0; }
  .hero-content { padding-top: 140px; }
  .hero-dark { padding-top: 88px; }
  .hero-features { grid-template-columns: repeat(2, auto); row-gap: 24px; }
  .modal { padding: 36px 24px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 20px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline-index { width: 48px; height: 48px; font-size: 0.95rem; }
  .timeline-item::before { left: 23px; top: 44px; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-features { grid-template-columns: 1fr 1fr; }
}
