/* ============================================================
   MicroStar — design system
   Obsidian / gold-horizon aesthetic. Poppins + Syne.

   Table of contents
   1.  Design tokens (:root)
   2.  Base / reset
   3.  Overlays & chrome (grain, cursor, star-chaser, scroll-progress, rail)
   4.  Navigation
   5.  Buttons
   6.  Hero + horizon (incl. WebGL canvas + fixed sun + twinkles)
   7.  Sections & layout (.section, .split, container widths)
   8.  Cards
   9.  Marquee
   10. Process timeline
   11. CTA banner
   12. Footer
   13. Pinned scenes
   14. Reveal animations
   15. Page hero (subpages)
   16. Responsive
   ============================================================ */

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --bg: #0a0b0f;
  --bg-2: #0e1016;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f5f7;
  --muted: #9aa1ad;
  --gold: #ffd866;
  --gold-2: #f5b942;
  --gold-deep: #b57d1e;
  --blue: #5f8dc8;
  --blue-deep: #0e2248;
  --radius: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: "Poppins", sans-serif;
  --font-accent: "Syne", sans-serif;

  /* z-index scale */
  --z-bg: -1;
  --z-rail: 900;
  --z-nav: 1000;
  --z-grain: 9990;
  --z-progress: 9995;
  --z-star: 9998;
  --z-cursor: 9999;

  /* consolidated shadow/glow values (only where the underlying rgba was exactly duplicated) */
  --glow-gold-soft: rgba(255, 216, 102, 0.45);
  --shadow-heading: 0 2px 26px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.6);
  --shadow-body: 0 1px 14px rgba(0, 0, 0, 0.8);

  /* layout */
  --container: 1560px;
}

/* ============================================================
   2. Base / reset
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; caret-color: transparent; }
input, textarea, [contenteditable] { caret-color: auto; } /* keep the caret where typing is real */
html { scroll-behavior: smooth; }

html { background: var(--bg); }
body {
  font-family: var(--font-body);
  background: transparent; /* lets the fixed sun canvas (z -1) show through */
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: #131313; }

/* ============================================================
   3. Overlays & chrome (grain, cursor, star-chaser, scroll-progress, rail)
   ============================================================ */
/* --- grain overlay --- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0);} 10% { transform: translate(-2%,-3%);} 20% { transform: translate(3%,2%);} 30% { transform: translate(-4%,1%);} 40% { transform: translate(2%,-4%);} 50% { transform: translate(-1%,3%);} 60% { transform: translate(4%,-2%);} 70% { transform: translate(-3%,-1%);} 80% { transform: translate(1%,4%);} 90% { transform: translate(-2%,2%);}
}

/* --- custom cursor --- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: var(--z-cursor);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--glow-gold-soft);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: rgba(255,216,102,0.9); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* --- progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  z-index: var(--z-progress);
}

/* --- cursor-chasing star --- */
.star-chaser {
  position: fixed; top: 0; left: 0; z-index: var(--z-star);
  width: 30px; height: 30px; pointer-events: none;
  color: #fff; opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 232, 160, 0.95)) drop-shadow(0 0 26px rgba(255, 200, 90, 0.55));
  transition: opacity .5s;
}
.star-chaser.on { opacity: 1; }
.star-chaser svg { width: 100%; height: 100%; }
@media (hover: none), (pointer: coarse) { .star-chaser { display: none; } }

/* --- left section rail (scrollspy) --- */
.rail {
  position: fixed; left: clamp(14px, 2vw, 34px); top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-rail); display: flex; flex-direction: column; gap: 20px;
}
.rail a {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--muted);
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.65; transition: opacity .3s, color .3s;
}
.rail a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: 0 0 auto;
  transition: box-shadow .3s, background .3s, transform .3s;
}
.rail a span {
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}
.rail a:hover span { opacity: 1; transform: none; }
.rail a.is-active {
  color: var(--gold); opacity: 1;
  text-shadow: 0 0 18px rgba(255, 216, 102, 0.8);
}
.rail a.is-active::before {
  background: var(--gold);
  transform: scale(1.35);
  box-shadow: 0 0 14px rgba(255, 216, 102, 0.95), 0 0 34px rgba(255, 200, 90, 0.5);
}
.rail a.is-active span { opacity: 1; transform: none; }
@media (max-width: 1180px) { .rail { display: none; } }

/* ============================================================
   4. Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 72px);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav__logo img { height: 26px; display: block; }
.nav__links { display: flex; gap: 34px; list-style: none; }
@media (max-width: 1440px) { .nav__links { gap: 22px; } .nav__links a { font-size: 12.5px; } }
.nav__links a {
  white-space: nowrap;
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.02em; position: relative; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; border: 0;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s;
  will-change: transform;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #171308;
  box-shadow: 0 0 0 rgba(255, 216, 102, 0);
}
.btn--gold:hover { box-shadow: 0 8px 40px rgba(255, 216, 102, 0.35); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: rgba(255, 216, 102, 0.6); color: var(--gold); }
.btn .btn__arrow { transition: transform .3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }
/* sheen sweep */
.btn--gold::before {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease-out);
}
.btn--gold:hover::before { left: 130%; }

/* ============================================================
   6. Hero + horizon (incl. WebGL canvas + fixed sun + twinkles)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 0;
  overflow: hidden;
}
#neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__eyebrow {
  font-family: var(--font-accent); font-size: 13px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hero__title {
  font-size: clamp(42px, 7.2vw, 96px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.02em;
  margin: 28px 0 26px; max-width: 1200px;
  position: relative; z-index: 2;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; transform: translateY(110%); }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 10%, #fff2c4 45%, var(--gold-2) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero__sub {
  color: #e8ebf0; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.7;
  max-width: 680px; position: relative; z-index: 2;
  /* sits directly on the corona's brightest band — needs a heavy halo */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.9);
}
.hero__actions { display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }
.hero__stats {
  display: flex; gap: clamp(32px, 6vw, 96px);
  margin-top: 76px; position: relative; z-index: 2;
}
.hero__stat { text-align: center; }
.hero__stat b { font-size: clamp(26px, 3vw, 40px); font-weight: 700; display: block; color: var(--text); }
.hero__stat b em { font-style: normal; color: var(--gold); }
.hero__stat span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* --- horizon --- */
.horizon { position: relative; height: 46vh; min-height: 300px; overflow: hidden; pointer-events: none; }
.horizon__arc {
  position: absolute; left: 50%; top: 34%;
  width: 160vw; height: 160vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #060709;
  box-shadow:
    0 -18px 60px 8px rgba(255, 205, 96, 0.85),
    0 -60px 140px 30px rgba(240, 165, 48, 0.5),
    0 -140px 320px 80px rgba(210, 130, 30, 0.22);
}
.horizon__spark {
  position: absolute; left: 50%; top: 16%;
  transform: translateX(-50%);
  width: 26px; height: 26px; color: #fff;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.9));
  animation: sparkPulse 3.4s ease-in-out infinite;
}
@keyframes sparkPulse { 0%,100% { transform: translateX(-50%) scale(1); opacity: 1;} 50% { transform: translateX(-50%) scale(0.72); opacity: .65;} }

/* --- WebGL shader horizon --- */
.horizon-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.horizon.gl .horizon__arc { display: none; }
/* persistent risen-sun background behind all content after the sunrise scene */
.horizon-fixed {
  position: fixed; inset: 0; height: auto; min-height: 0;
  z-index: var(--z-bg); opacity: 0; pointer-events: none;
  transition: opacity 1.2s ease;
}
.horizon-fixed.on { opacity: 1; }

/* --- twinkling starfield (hero) --- */
.twinkle {
  position: absolute; border-radius: 50%;
  background: #fff; pointer-events: none;
  opacity: 0;
  animation: twinkle var(--tw-dur, 4s) ease-in-out var(--tw-delay, 0s) infinite;
  box-shadow: 0 0 8px rgba(255, 240, 200, 0.9);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--tw-max, 0.9); transform: scale(1); }
}

/* ============================================================
   7. Sections & layout (.section, .split, container widths)
   ============================================================ */
.section { position: relative; padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 100px); max-width: var(--container); margin: 0 auto; }
.section__eyebrow {
  font-family: var(--font-accent); font-size: 12px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
.section__title {
  font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12;
  text-shadow: var(--shadow-heading);
}
.section__lede {
  color: #c4c9d2; line-height: 1.8; font-size: 16.5px; max-width: 620px; margin-top: 22px;
  text-shadow: var(--shadow-body);
}
.process__step h4, .process__step p, .cta h2, .cta p { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75); }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; display: block; border-radius: 24px; }
.split__media .orbit-ring {
  position: absolute; inset: -7%;
  border: 1px dashed rgba(255, 216, 102, 0.25);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   8. Cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 64px; }
.card {
  background: rgba(13, 14, 19, 0.9); /* solid-ish default: no blur cost */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 34px 38px;
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease-out), border-color .45s, background .45s;
  transform-style: preserve-3d;
}
.card::before { /* spotlight follows cursor (set via --mx/--my) */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 216, 102, 0.08), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(255, 216, 102, 0.35); background: var(--surface-2); transform: translateY(-6px); }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(140deg, rgba(255, 216, 102, 0.16), rgba(255, 216, 102, 0.04));
  border: 1px solid rgba(255, 216, 102, 0.25);
  color: var(--gold);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; color: var(--gold); font-size: 13.5px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.04em;
}
.card__link svg { transition: transform .3s var(--ease-out); }
.card__link:hover svg { transform: translateX(4px); }
/* centered variant: orphan cards in the last row center instead of left-aligning */
.cards--center { display: flex; flex-wrap: wrap; justify-content: center; }
.cards--center .card { flex: 0 1 calc((100% - 52px) / 3); min-width: 280px; }

/* frosted cards only where the sun background exists (homepage) */
body.sunbg .card {
  background: rgba(11, 12, 17, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card__num {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--font-accent); font-weight: 700; font-size: 15px;
  color: rgba(255, 255, 255, 0.14);
}

/* ============================================================
   9. Marquee
   ============================================================ */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; position: relative;
  -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: inline-flex; gap: 64px; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-accent); font-size: clamp(18px, 2.2vw, 28px); font-weight: 600;
  color: rgba(255, 255, 255, 0.22); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 64px;
}
.marquee__track span i { font-style: normal; color: var(--gold); font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   10. Process timeline
   ============================================================ */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 70px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 27px; left: 6%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,216,102,.4), rgba(255,216,102,.4), transparent);
}
.process__step { padding: 0 26px; text-align: center; position: relative; z-index: 1; } /* always above the draw bar */
.process__dot {
  width: 54px; height: 54px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--bg-2); border: 1px solid rgba(255, 216, 102, 0.4);
  font-family: var(--font-accent); font-weight: 700; color: var(--gold);
}
.process__step h4 { font-size: 17px; margin-bottom: 12px; }
.process__step p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ============================================================
   11. CTA banner
   ============================================================ */
.cta {
  position: relative; text-align: center;
  border-radius: 28px; overflow: hidden;
  padding: clamp(64px, 8vw, 110px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(closest-side, rgba(244, 178, 56, 0.5), rgba(180, 115, 25, 0.24) 55%, transparent),
    radial-gradient(1200px 500px at 50% 120%, rgba(255, 200, 90, 0.35), transparent 70%),
    var(--bg-2);
  border: 1px solid rgba(255, 216, 102, 0.18);
}
.cta::before { /* dot grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(closest-side at 50% 60%, #000, transparent);
}
.cta h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; position: relative; max-width: 760px; margin: 0 auto; }
.cta p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 22px auto 38px; line-height: 1.8; position: relative; }

/* ============================================================
   12. Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: #07080b; padding: 72px clamp(24px, 6vw, 100px) 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; max-width: var(--container); margin: 0 auto; }
.footer__brand img { height: 26px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 13.5px; line-height: 1.7; max-width: 240px; }
.footer h5 { font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: var(--muted); font-size: 13.5px; text-decoration: none; transition: color .3s; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--container); margin: 56px auto 0; padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
}

/* ============================================================
   13. Pinned scenes
   ============================================================ */
.pin { position: relative; }
.pin__stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.pin__stage.horizon { min-height: 0; }
.pin__stage .section { padding-top: 0; padding-bottom: 0; width: 100%; }
/* scene-driven elements start hidden; JS scrubs them with scroll */
[data-scene="cards"] .card, [data-scene="cards"] .section__eyebrow,
[data-scene="cards"] .section__title { opacity: 0; }
[data-scene="line"] .process__step { opacity: 0; }
.process__bar {
  position: absolute; top: 27px; left: 6%; height: 2px; width: 0; z-index: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  box-shadow: 0 0 12px rgba(255, 216, 102, 0.7);
  z-index: 0;
}
.process__dot.lit {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #171308;
  box-shadow: 0 0 18px rgba(255, 216, 102, 0.8), 0 0 44px rgba(255, 200, 90, 0.4);
}

/* parallax will-change hints */
[data-plx] { will-change: transform; }
.split__media img { will-change: transform; }

/* ============================================================
   14. Reveal animations (JS adds .in)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(46px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="left"] { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="left"].in, [data-reveal="right"].in, [data-reveal="scale"].in { transform: none; }

/* ============================================================
   15. Page hero (subpages)
   ============================================================ */
.page-hero {
  padding: 210px 24px 40px; text-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center; /* center the max-width boxes */
}
.page-hero .hero__title { font-size: clamp(36px, 5.4vw, 72px); margin-inline: auto; }
.page-hero .hero__sub { margin-inline: auto; }

/* ============================================================
   16. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process::before { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 0; background: rgba(8,9,12,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 30px; transform: translateY(-100%); transition: transform .5s var(--ease-out); }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 20px; }
  .nav__burger { display: block; z-index: 1002; }
  .nav__cta .btn { display: none; }
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 28px; }
}
