:root {
  --ink: #070b14;
  --ink2: #0b1220;

  --paper: #eef3f9;
  --paper2: #f7f9fc;

  --text: #0b1220;
  --muted: #475569;
  --soft: #64748b;

  --accent: #2b6cff;

  --line: rgba(15, 23, 42, 0.10);
  --lineOnDark: rgba(255, 255, 255, 0.14);

  --shadowA: 0 18px 55px rgba(0, 0, 0, 0.12);
  --shadowB: 0 36px 120px rgba(0, 0, 0, 0.16);

  --r1: 18px;
  --r2: 26px;

  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;

  --logoSize: 115px;
  --brandNameSize: 20px;
  --taglineSize: 13px;
  --navSize: 16px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--paper), var(--paper2));
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.94; }

.container {
  width: min(var(--max), calc(100% - 24px));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

/* BRAND (logo + text treated as one unit) */
.brand {
  display: flex;
  align-items: center;
  gap: 0px;                  /* was 0px */
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  top: 0px;                  /* keep your vertical adjust */
}

/* Keep logo large, but prevent wrapper from expanding or shifting layout */
.brand-logo-wrap {
  width: var(--logoSize);
  height: var(--logoSize);
  flex: 0 0 var(--logoSize);
}

.brand-logo-wrap img {
  width: var(--logoSize);
  height: var(--logoSize);
}

/* Text block: vertically centered to the 135px logo height */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 4px;                 /* THIS is the space between name + tagline */
  line-height: 1.2;         /* keep tight, gap handles spacing */
  margin: 0;
  padding: 0;

  margin-left: -18px;        /* keep your tight lockup */
  transform: translateY(-10px);
}

/* Make sure the two lines are optically centered */
.brand-name {
  font-size: var(--brandNameSize);
}

.brand-tagline {
  font-size: var(--taglineSize);
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-size: var(--navSize);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding: 6px 0;
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.98);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  opacity: 0.75;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.nav-center a:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.22);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.btn:hover { background: rgba(255, 255, 255, 0.14); }

.btn-primary {
  background: rgba(43, 108, 255, 0.54);
  border: 1px solid rgba(43, 108, 255, 0.55);
}

.btn-primary:hover { background: rgba(43, 108, 255, 0.64); }

.btn-ghost { background: rgba(255, 255, 255, 0.08); }

.btn-nav {
  padding: 10px 16px;
  border-radius: 14px;
}

/* TYPOGRAPHY */
.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow-dark { color: rgba(15, 23, 42, 0.55); }

h1 {
  margin: 0 0 14px;
  font-size: clamp(44px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.8px;
}

h2 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.5px;
}

.lead {
  margin: 0 0 14px;
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.sublead {
  margin: 0 0 22px;
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

/* Optional mark (if used on other pages) */
.mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.mark::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(160px 120px at 30% 20%, rgba(43, 108, 255, 0.55), transparent 60%);
  transform: rotate(-18deg);
}

.section-lead {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 80ch;
}

.section-lead.tight { margin-bottom: 14px; }
.section-lead.tight.last { margin-bottom: 0; }

/* HERO */
.hero {
  position: relative;
  padding: 165px 0 84px;
  color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

/* INNER PAGE HERO (matches Index hero tone so header stays readable) */
.page-hero {
  position: relative;
  padding: 165px 0 84px;
  color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("asg-hero-mountains.png");
  background-size: cover;
  background-position: 53% 20%;
  background-repeat: no-repeat;
  z-index: 0;

  opacity: 0;
  transform: scale(1.04) translate3d(-0.4%, -0.2%, 0);
  transition: opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

body.is-loaded .page-hero::before {
  opacity: 1;
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at 18% 10%, rgba(43, 108, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.22), rgba(5, 9, 18, 0.56)),
    radial-gradient(1400px 900px at 50% 35%, transparent 58%, rgba(5, 9, 18, 0.55) 100%);
  background-repeat: no-repeat;
  z-index: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

/* HOME hero: allow 2 columns like inner pages */
.hero .page-hero-inner {
  grid-template-columns: 1.2fr 0.8fr;
}

@media (max-width: 980px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}

/* PAGE HERO INTRO (match Home staged on-load feel) */
.page-intro .intro {
  opacity: 0;
  transform: translateY(14px) scale(0.992);
  filter: blur(10px);
  transition:
    opacity 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1300ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

body.is-loaded .page-intro .intro {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Reuse the same deterministic delays */
.page-intro .d1 { transition-delay: 180ms; }
.page-intro .d2 { transition-delay: 360ms; }
.page-intro .d3 { transition-delay: 540ms; }
.page-intro .d4 { transition-delay: 720ms; }
.page-intro .d5 { transition-delay: 900ms; }
.page-intro .d6 { transition-delay: 1080ms; }

/* Mountains background (drift) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("asg-hero-mountains.png");
  background-size: cover;
  background-position: 53% 20%;
  background-repeat: no-repeat;
  filter: none;
  z-index: 0;

  opacity: 0;
  transform: scale(1.04) translate3d(-0.4%, -0.2%, 0);
  transition: opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

body.is-loaded .hero::before {
  opacity: 1;
  animation: heroDrift 14s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  0% { transform: scale(1.04) translate3d(-0.4%, -0.2%, 0); }
  100% { transform: scale(1.07) translate3d(0.4%, 0.2%, 0); }
}

/* Overlay to preserve readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at 18% 10%, rgba(43, 108, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.22), rgba(5, 9, 18, 0.56)),
    radial-gradient(1400px 900px at 50% 35%, transparent 58%, rgba(5, 9, 18, 0.55) 100%);
  background-repeat: no-repeat;
  z-index: 1;
}

/* Snow layer above background, below content */
.hero-snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  opacity: 0;
  transition: opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-loaded .hero-snow {
  opacity: 0.85;
}

.hero-snow::before,
.hero-snow::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  will-change: transform;
}

/* Near flakes */
.hero-snow::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.40) 0 1px, transparent 2px);
  background-size: 160px 160px, 190px 190px, 230px 230px;
  animation: snowFallNear 7s linear infinite;
}

/* Far flakes */
.hero-snow::after {
  background-image:
    radial-gradient(circle at 15% 60%, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 20%, rgba(255, 255, 255, 0.20) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px);
  background-size: 260px 260px, 320px 320px, 420px 420px;
  animation: snowFallFar 11s linear infinite;
}

/* Micro flakes (third layer) */
.hero-snow .snow-micro {
  position: absolute;
  inset: -25%;
  display: block;
  pointer-events: none;
  will-change: transform;
  opacity: 0.75;

  /* many tiny dots, low opacity */
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 0.6px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 0.6px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 0.6px, transparent 1.6px);
  background-size: 120px 120px, 150px 150px, 190px 190px;

  animation: snowFallMicro 6.5s linear infinite;
}

/* Micro drift uses slightly more downward movement */
@keyframes snowFallMicro {
  0%   { transform: translate3d(-0.8%, -10%, 0); }
  100% { transform: translate3d(0.8%, 10%, 0); }
}

@keyframes snowFallNear {
  0% { transform: translate3d(-1%, -8%, 0); }
  100% { transform: translate3d(1%, 8%, 0); }
}

@keyframes snowFallFar {
  0% { transform: translate3d(0.6%, -6%, 0); }
  100% { transform: translate3d(-0.6%, 6%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.hero-copy { max-width: 760px; }

/* HERO INTRO (on-load staged reveal) */
.hero-intro .intro {
  opacity: 0;
  transform: translateY(14px) scale(0.992);
  filter: blur(10px);
  transition:
    opacity 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1300ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

body.is-loaded .hero-intro .intro {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Deterministic delays */
.hero-intro .d1 { transition-delay: 180ms; }
.hero-intro .d2 { transition-delay: 360ms; }
.hero-intro .d3 { transition-delay: 540ms; }
.hero-intro .d4 { transition-delay: 720ms; }
.hero-intro .d5 { transition-delay: 900ms; }
.hero-intro .d6 { transition-delay: 1080ms; }

/* CTA row / pills */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.18);
}

.pill.in { opacity: 1; transform: translateY(0); }

/* SECTIONS */
.section {
  padding: 88px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* CRISP: use PNG only, no extra gradients */
.section-light {
  background: url("asg-light-swoosh.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* keep your soft neutral option */
.section-soft {
  background:
    radial-gradient(1100px 700px at 65% 0%, rgba(43, 108, 255, 0.08), transparent 58%),
    linear-gradient(180deg, #f3f6fb, #eef3f9);
  background-repeat: no-repeat;
}

/* CRISP: use PNG only, optional overlay is minimal */
.section-dark {
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(5, 9, 18, 0.18), rgba(5, 9, 18, 0.58)),
    url("asg-dark-swoosh.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.section-dark .section-lead { color: rgba(255, 255, 255, 0.74); }
.section-dark h2, .section-dark h3, .section-dark p { color: rgba(255, 255, 255, 0.92); }

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

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.bridge-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.bridge-card {
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadowA);
}

/* Bridge card: true glass, not white */
.bridge-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
}

/* Remove the white sheen on this card */
.bridge-card::before {
  opacity: 0.05;
}

/* Kill the white sheen on this specific card */
.bridge-card::before {
  opacity: 0.08;
}

/* PANELS / CARDS — GLASS UPGRADE */
.panel,
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--r2);
  padding: 28px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

/* HOME: glass textbox next to hero message */
.hero-glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 26px 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-glass h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.96);
}

.hero-glass p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

/* Optional: list style matching your screenshot */
.hero-glass ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-glass li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-glass .check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(58, 122, 255, 0.90);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
}

/* If you want slightly darker text for readability, bump these up */
.hero-glass.is-darker h3 { color: rgba(255, 255, 255, 0.98); }
.hero-glass.is-darker p,
.hero-glass.is-darker li { color: rgba(255, 255, 255, 0.90); }

/* Light sections: soften white cards into glass */
.section-light .panel,
.section-light .card {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(15, 23, 42, 0.10);
}

/* Light sections: stop reading as white cards */
.section-light .panel,
.section-light .card {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}

/* Reduce the "white sheen" highlight only in light sections */
.section-light .panel::before,
.section-light .card::before {
  opacity: 0.14;
}

/* restrained lift only */
.panel:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.14);
  border-color: rgba(43, 108, 255, 0.22);
}

/* dark sections stay darker and tighter */
.section-dark .panel,
.section-dark .card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 110px rgba(0, 0, 0, 0.32);
}

/* Inner highlight for glass (makes panels feel designed, not foggy) */
.panel::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35),
    transparent 40%
  );
  opacity: 0.4;
}

/* Typography inside panels */
.panel h3 {
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  font-size: 18px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.section-dark .panel p {
  color: rgba(255, 255, 255, 0.76);
}

/* Card internals */
.card-title {
  margin: 0 0 8px;
  font-weight: 850;
  letter-spacing: -0.2px;
}

.card-body {
  margin: 0 0 14px;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

/* Lists */
.clean-list { margin: 0; padding-left: 18px; color: var(--muted); }
.clean-list li { margin: 8px 0; }
.section-dark .clean-list { color: rgba(255, 255, 255, 0.76); }

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: white;
  background: rgba(43, 108, 255, 0.85);
  box-shadow: 0 18px 50px rgba(43, 108, 255, 0.25);
}

/* Feature columns */
.feature-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 12px;
}

/* Stats */
.kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

.kicker-dark { color: rgba(15, 23, 42, 0.55); }

.feature-stat {
  border-color: rgba(43, 108, 255, 0.18);
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(43, 108, 255, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.88);
}

    /* Stats texture background (graph + grid behind the proof panel only) */
.stats-texture {
  position: relative;
  overflow: hidden;
}

/* Allow graph to show through on stats panel */
.feature-stat.stats-texture {
  background:
    radial-gradient(
      700px 340px at 20% 0%,
      rgba(43, 108, 255, 0.10),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.55);
}

/* Stats panel: allow real graph to show (no blur) */
.feature-stat.stats-texture {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Real statistics graph */
.stats-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image: url("assets/stats-graph.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 75% 55%;

  opacity: 0.30;
  filter: blur(0.6px) saturate(0.85);
}

/* Keep stats content above graph + grid */
.stats-texture > * {
  position: relative;
  z-index: 3;
}

/* Make the proof panel slightly heavier than its neighbor in dark sections */
.section-dark .stats-texture {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(43, 108, 255, 0.35);
  box-shadow: 0 30px 140px rgba(0, 0, 0, 0.38);
}

.stat-row {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.stat-row:first-of-type { border-top: none; padding-top: 6px; }

.stat-big {
  font-weight: 950;
  letter-spacing: -0.4px;
  font-size: 26px;
  color: var(--text);
}

.stat-meta {
  color: rgba(15, 23, 42, 0.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.stat-footnote { margin: 12px 0 0; color: var(--soft); font-size: 12px; }

/* Notes */
.note {
  margin-top: 14px;
  color: var(--soft);
  font-size: 13px;
  max-width: 78ch;
}

.note a { color: var(--accent); text-decoration: underline; }

/* Contact */
.contact-card { max-width: 760px; }

.contact-line {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.label {
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 850;
}

.contact-note { margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 14px; }

.panel-glass {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* Footer */
.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link-underline { text-decoration: underline; }

/* Reveal motion (existing system) */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(.16, 1, .3, 1),
    transform 900ms cubic-bezier(.16, 1, .3, 1),
    filter 900ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform, filter;
}

.reveal-left { transform: translateX(-22px) scale(0.985); }
.reveal-right { transform: translateX(22px) scale(0.985); }

.reveal.in,
.reveal-left.in,
.reveal-right.in {
  opacity: 1;
  filter: blur(0);
  transform: translate(0, 0) scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal, .reveal-left, .reveal-right, .pill, .card, .panel, .btn,
  .hero-intro .intro {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .hero::before { animation: none !important; }
  .hero-snow::before, .hero-snow::after { animation: none !important; }
}

/* Responsive layout (NO header sizing here) */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .feature-columns { grid-template-columns: 1fr; }
  .bridge-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}

/* Work / Origin / Fit supporting layout (keeps writing the same, improves structure) */
.panel-sub {
  margin: 0 0 16px;
  color: var(--muted);
}

.section-dark .panel-sub {
  color: rgba(255, 255, 255, 0.76);
}

.stack {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.stack-item {
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.section-dark .stack-item {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.stack-item:first-child {
  border-top: none;
  padding-top: 0;
}

.stack-title {
  margin: 0 0 6px;
  font-weight: 850;
  letter-spacing: -0.2px;
}

.stack-body {
  margin: 0;
  color: var(--muted);
}

.section-dark .stack-body {
  color: rgba(255, 255, 255, 0.76);
}

.callout {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--r2);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-dark .callout {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.callout-title {
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.callout-body {
  margin: 0;
  color: var(--muted);
  max-width: 90ch;
}

.section-dark .callout-body {
  color: rgba(255, 255, 255, 0.76);
}

.callout-cta {
  margin: 14px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.longform {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.longform-panel p {
  margin: 0 0 12px;
}

.longform-panel p:last-child {
  margin-bottom: 0;
}

/* Match inner-page content width to Home */
.page-hero-inner > .reveal {
  max-width: 760px;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.header .container {
  width: calc(100% - 24px);
  max-width: none;
}

.brand {
  margin-left: -6px;
}

/* Header 3-zone layout */
.header-3col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* True center nav */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Right side actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Keep buttons subtle */
.header-actions .btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-actions .btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Mobile fallback */
@media (max-width: 980px) {
  .nav-center {
    position: static;
    transform: none;
  }

  .header-3col {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-actions {
    margin-left: auto;
  }
}

/* HOME HERO — force right-side column like Work */
.home .page-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

/* =========================================================
   FINAL MOBILE POLISH PASS
   Scope: ≤ 980px only
   Purpose: spacing, readability, restraint
   ========================================================= */

@media (max-width: 980px) {

  /* -----------------------------------------
     HERO: spacing + readability
     ----------------------------------------- */
  .hero {
    padding: 140px 0 72px;
  }

  .hero h1 {
    margin-bottom: 10px;
  }

  .hero .intro {
    margin-bottom: 10px;
  }

  .hero .cta-row {
    margin-top: 8px;
  }

  .hero .pill-row {
    margin-top: 10px;
  }

  /* -----------------------------------------
     HERO GLASS: stacked behavior
     ----------------------------------------- */
  .hero-glass {
    margin-top: 22px;
    border-radius: 18px;
  }

  /* -----------------------------------------
     SECTION HEADERS: reduce vertical drag
     ----------------------------------------- */
  .section h2 {
    margin-bottom: 8px;
  }

  .section .section-lead {
    margin-bottom: 18px;
  }

  /* -----------------------------------------
     COMPARISON SECTIONS: stacked rhythm
     ----------------------------------------- */
  .two-col > .panel {
    margin-top: 14px;
  }

  /* -----------------------------------------
     MOTION: calm on touch devices
     ----------------------------------------- */
  .panel:hover,
  .card:hover,
  .btn:hover {
    transform: none;
  }

  /* -----------------------------------------
     FOOTER: breathing room
     ----------------------------------------- */
  .footer {
    margin-top: 32px;
    padding-top: 22px;
  }
}

@media (max-width: 980px) {
  .hero,
  .page-hero {
    padding-top: 200px;
  }
}

@media (max-width: 980px) {

  .hero-glass {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    margin-top: 22px;
    border-radius: 18px;
  }

  .hero-glass h3 { font-size: 22px; }

  .hero-glass p {
    font-size: 14.5px;
    line-height: 1.5;
  }

  /* Force Home hero to be 1 column on mobile */
  .home .page-hero-inner {
    grid-template-columns: 1fr;
  }

  /* Ensure copy first, glass second */
  .home .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .home .hero-glass {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Mobile menu toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Mobile menu panel (hidden by default) */
.mobile-menu {
  position: absolute;
  top: 72px;
  left: 12px;
  right: 12px;
  z-index: 60;

  background: rgba(10, 16, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;

  transition: opacity 220ms ease, transform 220ms ease;
}

body.nav-open .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu .mobile-links {
  display: grid;
  gap: 10px;
  padding: 8px 4px 12px;
}

.mobile-menu .mobile-links a {
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.mobile-menu .mobile-links a[aria-current="page"] {
  background: rgba(43, 108, 255, 0.18);
  border-color: rgba(43, 108, 255, 0.35);
}

.mobile-menu .mobile-actions {
  display: grid;
  gap: 10px;
  padding: 12px 4px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Mobile header behavior */
@media (max-width: 980px) {
  .nav-center,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-3col {
    flex-wrap: nowrap;
  }
}