/* =========================================================
   HOA Reserves — premium dark landing
   Palette pulled from the coastal-sunset hero photo
   ========================================================= */

:root {
  /* base */
  --bg:        #070A12;
  --bg-2:      #0A0F1C;
  --bg-3:      #0E1424;

  /* glass / surfaces */
  --panel:     rgba(255, 255, 255, 0.045);
  --panel-2:   rgba(255, 255, 255, 0.07);
  --panel-3:   rgba(255, 255, 255, 0.10);
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.055);

  /* text */
  --text:      #EAEEF7;
  --text-2:    #AEB6C9;
  --muted:     #828BA2;
  --faint:     #5B6378;

  /* accents — sunset */
  --accent:    #EE8A5B;   /* coral sunset */
  --accent-2:  #F4B07A;   /* warm peach */
  --accent-deep: #D96B43;
  --teal:      #6FA7B8;   /* coastal water */
  --gold:      #E9C887;

  --glow-warm: rgba(238, 138, 91, 0.45);
  --glow-cool: rgba(78, 124, 168, 0.35);

  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --nav-h:     74px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1240px;

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

/* Native smooth scrolling is a DESKTOP-only nicety. On touch devices it turns
   every programmatic scroll (anchor links, nav-drawer links, route restore)
   into an animated glide that a finger drag interrupts — which reads as
   "scroll, stop, scroll, stop". Keep it off for coarse pointers. */
@media (pointer: fine) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* ambient atmosphere */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(238,138,91,0.10), transparent 60%),
    radial-gradient(800px 700px at 8% 12%, rgba(78,124,168,0.10), transparent 60%),
    radial-gradient(1200px 900px at 50% 120%, rgba(238,138,91,0.06), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.muted { color: var(--muted); }
.t2 { color: var(--text-2); }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--bg-btn);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #2A1206;
  box-shadow: 0 10px 30px -10px var(--glow-warm), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn.primary:hover { box-shadow: 0 16px 40px -12px var(--glow-warm), inset 0 1px 0 rgba(255,255,255,0.5); }

.btn.ghost { background: var(--panel); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--border-2); }

.btn.lg { padding: 16px 28px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 11, 19, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent-2), var(--accent-deep));
  position: relative;
  box-shadow: 0 6px 18px -6px var(--glow-warm);
  flex: none;
}
.logo .mark::before {
  content: "";
  position: absolute;
  inset: 7px 7px auto 7px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 0 rgba(255,255,255,0.55), 0 12px 0 rgba(255,255,255,0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 9px 15px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle { display: none; }

/* Mobile drawer (hidden on desktop) */
.nav-drawer { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding-top: 96px;
}

/* ---------- stacked panels: each pins, the next slides up to cover it ----------
   NOTE: use element+class selectors so these beat the base `.section`/`.hero`
   position rules (same specificity would otherwise let the later rule win). */
header.panel,
section.panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background-color: var(--bg);
  box-shadow: 0 -34px 80px -20px rgba(0,0,0,0.72);
}
section.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 40px;
}
/* the last panel holds the tall CTA + footer — let it scroll normally so the
   footer is reachable; nothing needs to cover it. */
section.panel.closing {
  position: relative;
  min-height: auto;
  justify-content: flex-start;
  box-shadow: none;
  padding-top: 0;
}
.software { background-image:
    radial-gradient(900px 620px at 78% 8%, rgba(238,138,91,0.08), transparent 60%),
    radial-gradient(820px 700px at 8% 14%, rgba(78,124,168,0.09), transparent 60%); }

/* ---------- the hero end-frame "settles" into a dim, fixed backdrop that the
   content panels scroll over. Panels stay opaque (stacked-cover effect + zero
   bleed); background-attachment:fixed makes every panel show the same
   viewport-locked image, so it reads as ONE continuous background. ---------- */
section.panel:not(.closing) { isolation: isolate; }
section.panel:not(.closing)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg,
      rgba(7,10,18,0.92) 0%,
      rgba(7,10,18,0.78) 34%,
      rgba(7,10,18,0.60) 64%,
      rgba(7,10,18,0.74) 100%),
    url(assets/hero-end.png) center 34% / cover fixed;
}
@media (max-width: 980px) {
  /* On mobile `background-attachment: fixed` is broken, so each panel would
     repeat its OWN crop of the hero image and read as multiple different
     backgrounds. Render the image on <html> (the root element fills the
     viewport on its own) and make <body> transparent so its opaque bg
     color doesn't cover the image. Each panel shows only its tint overlay
     on top — reading as ONE continuous background. NOTE: must set on <html>,
     not body::before with negative z-index, since body's own background
     paints over negative-z pseudos and hides the image. */
  /* StaticPage sets an inline `style.background = "#070A12"` on <html> and
     <body> to lock the page dark during route swaps. Inline styles beat
     stylesheet rules, so we MUST use !important here to win and reveal the
     condo image on mobile. */
  /* The image must NOT live on <html>: the root element is the scrolling box,
     so painting a `cover` photo there makes mobile browsers repaint the whole
     viewport on scroll frames. Put it on a single `position: fixed` layer
     inside the host instead — fixed layers composite, they don't repaint. */
  html {
    background-image: none !important;
    background-color: #070A12 !important;
  }
  body { background: transparent !important; }
  .static-site-host {
    position: relative;
    z-index: 0;
    background: transparent !important;
  }
  .static-site-host::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #070A12 url(assets/hero-end-mobile.jpg) center 34% / cover no-repeat;
  }
  header.panel,
  section.panel:not(.closing) {
    background-color: transparent;
  }
  section.panel:not(.closing)::before {
    background:
      linear-gradient(115deg,
        rgba(7,10,18,0.86) 0%,
        rgba(7,10,18,0.70) 34%,
        rgba(7,10,18,0.48) 64%,
        rgba(7,10,18,0.66) 100%);
  }
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  will-change: opacity;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  will-change: opacity;
}
/* hero video sits over the still image, then fades out to reveal it */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transition: opacity 1.2s var(--ease);
}
.hero-media.video-done .hero-video { opacity: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7,10,18,0.58) 0%, rgba(7,10,18,0.08) 24%, rgba(7,10,18,0.30) 52%, rgba(7,10,18,0.85) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,10,18,0.82) 0%, rgba(7,10,18,0.40) 38%, rgba(7,10,18,0.05) 66%, transparent 80%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  right: -10%;
  top: 8%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(238,138,91,0.18), transparent 62%);
  pointer-events: none;
}

.hero-content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 92px;
  position: relative;
}
.hero { box-sizing: border-box; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow-warm);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(238,138,91,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(238,138,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,138,91,0); }
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 800;
  max-width: 16ch;
  letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2) 10%, var(--accent) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  color: #D5DBEA;
  max-width: 52ch;
  margin-top: 24px;
  text-shadow: 0 1px 18px rgba(7,10,18,0.7);
}
.hero h1 { text-shadow: 0 2px 30px rgba(7,10,18,0.45); }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.hero-stat .l {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  z-index: 2;
}
.scroll-cue .line {
  width: 1px; height: 38px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   Shared section heading
   ============================================================ */
.section { position: relative; padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  margin-top: 18px;
  letter-spacing: -0.035em;
}
.section-head p {
  font-size: 18.5px;
  color: var(--text-2);
  margin-top: 20px;
  max-width: 60ch;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   SOFTWARE PREVIEW — mobile-first live bento
   ============================================================ */
.software { position: relative; }
.sw-stage {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sw-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sw-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin-top: 16px;
  letter-spacing: -0.035em;
}
.sw-head p { color: var(--text-2); font-size: clamp(15.5px, 2vw, 18px); margin-top: 16px; }

/* ---- bento grid: mobile-first single column ---- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(168deg, rgba(255,255,255,0.07), rgba(255,255,255,0.022));
  box-shadow: 0 20px 50px -28px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 30px 64px -28px rgba(0,0,0,0.8);
}

.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tile-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.tile-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--accent-2);
  border: 1px solid var(--border-2);
  border-radius: 7px; padding: 3px 9px;
}
.tile-count {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.03em; color: var(--text);
}

/* chart tile */
.tile-chart-wrap { flex: 1; min-height: 168px; position: relative; }
.proj-svg { width: 100%; height: 100%; display: block; }
.tile-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.lg-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.lg-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }
.lg-chip .dot.dash { background: transparent; border: 1.5px dashed var(--muted); }
.tile-grow { flex: 1; }
.tile-delta {
  font-family: var(--font-mono); font-size: 12px;
  color: #8FE3B0; background: rgba(80,200,130,0.12);
  padding: 3px 10px; border-radius: 999px;
}

/* gauge tile */
.tile-gauge { align-items: center; text-align: center; }
.gauge { position: relative; width: clamp(132px, 42vw, 168px); aspect-ratio: 1; margin: 14px 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.g-track { stroke: rgba(255,255,255,0.08); }
.g-val {
  stroke: #EE8A5B;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  filter: drop-shadow(0 0 6px rgba(238,138,91,0.5));
}
/* gauge glow pulse is JS-driven (see ticker) */
.gauge-center { position: absolute; inset: 0; display: grid; place-items: center; }
.g-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 8vw, 40px); letter-spacing: -0.04em; line-height: 1; }
.g-pct { font-size: 0.5em; color: var(--muted); margin-left: 2px; }
.tile-status { font-family: var(--font-mono); font-size: 12px; }
.tile-status.good { color: #8FE3B0; }

/* list tile */
.comp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.comp-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 14.5px;
}
.comp-list li:first-child { border-top: none; }
.c-name { color: var(--text); }
.c-yr { font-family: var(--font-mono); font-size: 12px; color: var(--muted); flex: none; }

/* report tile — looping PDF deck */
.tile-report { flex-direction: row; align-items: center; gap: 20px; }
.rep-deck {
  position: relative; flex: none;
  width: 76px; height: 96px;
  perspective: 650px;
}
.deck-card {
  position: absolute; inset: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid var(--border-2);
  transform-origin: top center;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,0.7);
}
.deck-card.dc1 { background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)); }
.deck-card.dc2 { background: linear-gradient(160deg, rgba(255,255,255,0.085), rgba(255,255,255,0.02)); }
.deck-card.dc3 { padding: 12px 11px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.rep-badge {
  position: absolute; top: 9px; left: 10px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em;
  color: #2A1206; background: var(--accent-2);
  padding: 2px 5px; border-radius: 4px;
}
.rep-lines { display: flex; flex-direction: column; gap: 5px; }
.rep-lines i { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.22); display: block; }
.rep-meta p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* deck flip — JS-driven (CSS @keyframes are frozen in this environment) */
.rep-deck .deck-card { will-change: transform; backface-visibility: hidden; }
.rep-deck .dc3 { z-index: 3; }
.rep-deck .dc2 { z-index: 2; }
.rep-deck .dc1 { z-index: 1; }

/* breathing glow behind the bento — soft idle ambience */
.bento { position: relative; }
.bento::before {
  content: "";
  position: absolute; inset: -8% -5%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(238,138,91,0.12), rgba(78,124,168,0.04) 60%, transparent 75%);
  filter: blur(34px);
  pointer-events: none;
  opacity: var(--glow-o, 0.55);
  transform: scale(var(--glow-s, 1));
}

/* ---- reveal: each tile slides in AND out as it enters / leaves view ---- */
.reveal-tile {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
  will-change: transform, opacity;
}
.reveal-tile.in { opacity: 1; transform: none; }

/* directional slide — all tiles rise cleanly from the bottom */
.tile-chart:not(.in),
.tile-gauge:not(.in),
.tile-list:not(.in),
.tile-report:not(.in) { transform: translateY(34px); }

/* inside animations */
/* chart: line draws L→R, area fades in, delta badge lands at the end (JS-driven) */
.chart-grow { opacity: 1; }
.chart-area { opacity: 0; }
.tile-delta { opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.tile-delta.show { opacity: 1; transform: none; }

/* component library — live conveyor of rows pushing upward */
.comp-list { overflow: hidden; }
.comp-list li {
  max-height: 56px;
  transition: max-height 0.5s var(--ease), opacity 0.45s var(--ease),
              padding 0.5s var(--ease), transform 0.5s var(--ease);
}
.comp-list li.entering { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; transform: translateY(10px); }
.comp-list li.leaving  { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-top-color: transparent; }
.c-name { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-total {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.03em; color: var(--text);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  display: inline-block;
}
.comp-total.bump { color: var(--accent-2); transform: translateY(-2px) scale(1.08); }

.rep-lines i { transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.tile-report.in .rep-lines i:nth-child(1) { transition-delay: 0.20s; transform: scaleX(1); }
.tile-report.in .rep-lines i:nth-child(2) { transition-delay: 0.30s; transform: scaleX(1); }
.tile-report.in .rep-lines i:nth-child(3) { transition-delay: 0.40s; transform: scaleX(1); }
.tile-report.in .rep-lines i:nth-child(4) { transition-delay: 0.50s; transform: scaleX(1); }

/* report meta text reveal */
.rep-meta .tile-lbl, .rep-meta p { opacity: 0; transform: translateX(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.tile-report.in .rep-meta .tile-lbl { opacity: 1; transform: none; transition-delay: 0.28s; }
.tile-report.in .rep-meta p { opacity: 1; transform: none; transition-delay: 0.4s; }

/* gauge status + label */
.tile-gauge .tile-lbl, .tile-status { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.tile-gauge.in .tile-lbl { opacity: 1; transform: none; transition-delay: 0.12s; }
.tile-gauge.in .tile-status { opacity: 1; transform: none; transition-delay: 0.9s; }

.sw-cta { text-align: center; margin-top: 30px; }

/* ---- desktop bento layout ---- */
@media (min-width: 760px) {
  .sw-head { margin-bottom: 44px; }
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 16px;
    height: clamp(360px, 52vh, 460px);
  }
  .tile-chart  { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tile-gauge  { grid-column: 3 / 4; grid-row: 1 / 2; }
  .tile-report { grid-column: 4 / 5; grid-row: 1 / 2; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
  .tile-list   { grid-column: 3 / 5; grid-row: 2 / 3; }
  /* all tiles rise from the bottom, staggered */
  .tile-chart:not(.in),
  .tile-gauge:not(.in),
  .tile-list:not(.in),
  .tile-report:not(.in) { transform: translateY(46px); }
  /* stagger the four tiles in */
  .bento .tile.reveal-tile { transition-delay: 0s; }
  .tile-chart.reveal-tile  { transition-delay: 0.05s; }
  .tile-gauge.reveal-tile  { transition-delay: 0.18s; }
  .tile-report.reveal-tile { transition-delay: 0.31s; }
  .tile-list.reveal-tile   { transition-delay: 0.44s; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .bento { height: auto; }
  .tile-chart-wrap { min-height: 150px; }
}

/* ============================================================
   THREE PATHWAYS
   ============================================================ */
/* Option B "Spotlight Tilt" — copper-on-midnight, cursor-follow glow, 3D hover tilt */
#pathways { perspective: 1000px; }
/* Visually center the block in the viewport — the global panel rule
   uses an asymmetric padding-top (nav + 24) that pushes content down. */
section.panel#pathways {
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: calc(var(--nav-h) + 24px);
}
#pathways .section-head { margin-bottom: 28px; }
#pathways .section-head h2 { margin-bottom: 10px; }
.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.path-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(18, 27, 46, 0.8);
  padding: 22px 24px 20px;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* cursor-follow copper spotlight (positioned via --mx/--my from JS) */
.path-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(217,160,113,0.18), transparent 60%);
  transition: opacity 0.3s var(--ease);
}
.path-card:hover .path-glow { opacity: 1; }
/* corner accent line draws on hover */
.path-card::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 30px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #c0855a, transparent);
  transition: width 0.5s var(--ease);
}
.path-card:hover::before { width: 60px; }
.path-card:hover {
  border-color: rgba(192,133,90,0.5);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.path-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.14em;
  position: relative; z-index: 1;
}
.path-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(192,133,90,0.12);
  border: 1px solid rgba(192,133,90,0.4);
  color: #d9a071;
  display: grid; place-items: center;
  margin: 12px 0 10px;
  position: relative; z-index: 1;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.path-ico svg { width: 22px; height: 22px; stroke: #d9a071; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.path-card:hover .path-ico { transform: translateZ(30px) scale(1.1) rotate(-6deg); }
.paths-grid.settled .path-ico { box-shadow: 0 0 26px -7px rgba(217,160,113,0.55); }
.path-card h3 { font-size: 21px; font-weight: 800; position: relative; z-index: 1; }
.path-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin-top: 7px; position: relative; z-index: 1; }
.path-foot {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-weight: 500; font-size: 12px;
  color: #d9a071;
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
}
.path-foot .arr { transition: transform 0.3s var(--ease); }
.path-card:hover .path-foot .arr { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) {
  .path-card { transition: none; }
  .path-card:hover { transform: translateY(-4px); }
}

/* ============================================================
   STORY — static report -> living plan
   ============================================================ */
.story { background-image: linear-gradient(180deg, rgba(14,20,36,0.55), transparent 55%); }
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
  position: relative;
}
.flow-node {
  position: relative;
  padding: 0 14px;
  text-align: center;
}
.flow-node .dot {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border);
  display: grid; place-items: center;
  position: relative;
  z-index: 2;
  opacity: 0.55;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease),
              border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.flow-node .dot svg {
  width: 26px; height: 26px; stroke: var(--muted); fill: none; stroke-width: 1.5;
  transition: stroke 0.5s var(--ease);
}
/* activated state — icon lights up */
.flow-node.active .dot {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: var(--border-2);
  box-shadow: 0 0 0 4px rgba(238,138,91,0.07), 0 10px 26px -12px var(--glow-warm);
}
.flow-node.active .dot svg { stroke: var(--accent-2); }
/* pulse ring */
.flow-node .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 18px;
  border: 1.5px solid var(--accent-2);
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.flow-node.pulse .dot::after { opacity: 0.5; transform: scale(1.18); }

.flow-node.is-last.active .dot {
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(238,138,91,0.12), 0 16px 38px -10px var(--glow-warm);
}
.flow-node.is-last.active .dot svg { stroke: #2A1206; }

.flow-node .step {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.12em; opacity: 0.5; transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}
.flow-node h4 {
  font-size: 17px; margin-top: 7px; color: var(--text-2);
  opacity: 0.55; transform: translateY(4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.5s var(--ease);
}
.flow-node.active .step { opacity: 1; color: var(--accent-2); }
.flow-node.active h4 { opacity: 1; transform: none; color: var(--text); }

/* ---- horizontal progress line + traveling spark ---- */
.flow-line {
  position: absolute;
  top: 29px;
  left: 0; right: 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--border) 8%, var(--border) 92%, transparent);
}
.flow-line .progress {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--glow-warm);
}
.flow-line .spark {
  position: absolute; top: 50%; left: 0;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #FFE9D6;
  box-shadow: 0 0 10px 3px var(--glow-warm), 0 0 18px 6px rgba(238,138,91,0.4);
  opacity: 0;
}
/* vertical line (mobile) */
.flow-vline {
  display: none;
  position: absolute; top: 18px; bottom: 18px; left: 28px;
  width: 1px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--border) 6%, var(--border) 94%, transparent);
}
.flow-vline .vprogress {
  position: absolute; left: 0; top: 0; right: 0; height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow-warm);
}

/* ============================================================
   Per-step micro-animations (JS toggles .play on the node)
   ============================================================ */
.micro {
  position: absolute; top: 29px; left: 50%;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 3;
}
/* Components — tiles appear around icon, then collapse inward */
.micro-comp i {
  position: absolute; top: 50%; left: 50%;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 3px;
  background: var(--accent-2); opacity: 0;
  transform: translate(0,0) scale(0.3);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.micro-comp.fire i { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
.micro-comp.fire.in i { opacity: 0; transform: translate(0,0) scale(0.3); }

/* Costs — dollar chips rise & fade */
.micro-cost b {
  position: absolute; left: 50%; top: 50%;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent-2); white-space: nowrap;
  transform: translate(-50%, 6px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.micro-cost b:nth-child(1) { margin-left: -26px; }
.micro-cost b:nth-child(2) { margin-left: 4px; }
.micro-cost b:nth-child(3) { margin-left: 30px; }
.micro-cost.fire b { opacity: 1; transform: translate(-50%, -34px); }
.micro-cost.fire.out b { opacity: 0; transform: translate(-50%, -52px); }

/* Projections — mini line draws */
.micro-proj { display: grid; place-items: center; }
.micro-proj svg { width: 54px; height: 30px; margin-top: -2px; overflow: visible; }
.proj-line {
  stroke: var(--accent-2);
  stroke-dasharray: 90; stroke-dashoffset: 90;
  filter: drop-shadow(0 0 4px var(--glow-warm));
  transition: stroke-dashoffset 0.9s var(--ease);
}
.flow-node.play .micro-proj .proj-line { stroke-dashoffset: 0; }

/* Funding Plan — bars grow + balance check */
.micro-fund { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.micro-fund i {
  width: 6px; border-radius: 2px;
  background: var(--accent-2); transform-origin: bottom; transform: scaleY(0.08); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.micro-fund i:nth-child(1) { height: 14px; }
.micro-fund i:nth-child(2) { height: 26px; }
.micro-fund i:nth-child(3) { height: 20px; }
.micro-fund i:nth-child(4) { height: 30px; }
.micro-fund i:nth-child(5) { height: 22px; }
.flow-node.play .micro-fund i { opacity: 1; transform: scaleY(1); }
.micro-fund .fund-ok {
  position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  opacity: 0; transform: scale(0.4); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.micro-fund .fund-ok svg { width: 12px; height: 12px; stroke: #2A1206; stroke-width: 2.5; fill: none; }
.flow-node.balanced .micro-fund .fund-ok { opacity: 1; transform: scale(1); }
.flow-node.balanced .micro-fund i { opacity: 0.25; }

/* Report — mini PDF opens, lines draw */
.micro-report { display: grid; place-items: center; }
.mini-pdf {
  position: relative; width: 30px; height: 38px; border-radius: 3px;
  background: linear-gradient(160deg, #FFF6EE, #FBE4D2);
  box-shadow: 0 8px 20px -8px var(--glow-warm);
  transform: rotateX(90deg) translateY(-6px); transform-origin: bottom; opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
  padding: 6px 5px; display: flex; flex-direction: column; gap: 3px;
}
.flow-node.opened .mini-pdf { transform: rotateX(0deg); opacity: 1; }
.mini-pdf i {
  height: 2px; border-radius: 1px; background: rgba(42,18,6,0.45);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.mini-pdf i:nth-child(1) { width: 70%; }
.mini-pdf i:nth-child(2) { width: 100%; }
.mini-pdf i:nth-child(3) { width: 85%; }
.mini-pdf i:nth-child(4) { width: 55%; }
.flow-node.opened .mini-pdf i { transform: scaleX(1); }

.story-note {
  text-align: center;
  max-width: 60ch;
  margin: 56px auto 0;
  color: var(--text-2);
  font-size: 18px;
}
.story-cta { text-align: center; margin-top: 30px; }
.story-cta .btn { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease); }
.story-cta.glow .btn {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: 0 12px 34px -10px var(--glow-warm), 0 0 0 4px rgba(238,138,91,0.08);
}
.story-cta.glow .btn .arr { transform: translateX(4px); transition: transform 0.4s var(--ease); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  position: relative;
  margin: 0 32px 40px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.final-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 110px 32px;
}
.final::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 380px at 50% 120%, rgba(238,138,91,0.28), transparent 60%),
    radial-gradient(600px 400px at 14% -10%, rgba(78,124,168,0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.final-bg-img {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.16;
  background-size: cover;
  background-position: center 40%;
  mix-blend-mode: luminosity;
}
.final h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; }
.final p { color: var(--text-2); font-size: 19px; margin: 22px auto 0; max-width: 56ch; }
.final-actions { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 40px;
}
/* Frosted boundary panel so the footer stands out over hero imagery */
.footer { border-top: none; padding: 40px 0 48px; position: relative; }
.footer > .wrap {
  position: relative;
  border-radius: 22px;
  padding: 44px 40px 32px;
  background: rgba(10, 16, 30, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(207, 225, 245, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
@media (max-width: 720px) {
  .footer > .wrap { padding: 32px 22px 24px; border-radius: 18px; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .logo { margin-bottom: 18px; }
.footer-blurb { color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 15px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-base {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  color: var(--faint); font-size: 13.5px;
  flex-wrap: wrap;
}

/* ============================================================
   reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  /* The bento's product-demo animations ARE the content, so they keep playing.
     We only drop page-level smooth scrolling here. */
  html { scroll-behavior: auto; }
  .ctaband::before, .ctaband::after { animation: none; }
}

/* ============================================================
   Services — six cards (staggered reveal + hover), dark theme
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 44px auto 0; }
.svc-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); padding: 28px 26px 30px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.svc-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 0%, rgba(238, 138, 91, 0.16), transparent 55%); opacity: 0; transition: opacity 0.35s var(--ease); }
.svc-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5); }
.svc-card:hover::before { opacity: 1; }
.svc-ic {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--border-2); background: rgba(238, 138, 91, 0.10);
  display: flex; align-items: center; justify-content: center; color: var(--accent-2);
  margin-bottom: 18px; transition: transform 0.4s var(--ease);
}
.svc-card:hover .svc-ic { transform: rotate(8deg) scale(1.08); }
.svc-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { position: relative; z-index: 1; font-size: 22px; }
.svc-card p { position: relative; z-index: 1; font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.55; }
.svc-arrow {
  position: relative; z-index: 1; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc-card:hover .svc-arrow { opacity: 1; transform: none; }
.svc-arrow .arr { transition: transform 0.3s var(--ease); }
.svc-card:hover .svc-arrow .arr { transform: translateX(4px); }

/* ============================================================
   CTA band — navy with two slow drifting glow orbs
   ============================================================ */
.ctaband {
  position: relative; overflow: hidden; width: 100%;
  background: linear-gradient(150deg, #16243f, #0f1a30);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.ctaband::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -130px; top: -190px; background: radial-gradient(circle, rgba(238, 138, 91, 0.20), transparent 62%); animation: cta-drift 14s ease-in-out infinite alternate; }
.ctaband::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -130px; bottom: -190px; background: radial-gradient(circle, rgba(74, 102, 136, 0.30), transparent 62%); animation: cta-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes cta-drift { to { transform: translate(40px, 30px) scale(1.12); } }
.cta-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 84px 44px; text-align: center; }
.cta-rule { width: 60px; height: 3px; border-radius: 999px; margin: 0 auto 24px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.cta-sub { font-size: 16px; color: var(--text-2); max-width: 54ch; margin: 18px auto 32px; line-height: 1.6; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 64px 22px; }
}

/* ============================================================
   responsive
   ============================================================ */
/* turn OFF sticky stacking when there isn't room (small or short windows) */
@media (max-width: 980px), (max-height: 680px) {
  header.panel,
  section.panel {
    position: relative;
    min-height: auto;
    box-shadow: none;
  }
  section.panel:not(.closing) {
    justify-content: flex-start;
    padding-top: 90px;
    padding-bottom: 90px;
  }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .paths-grid { grid-template-columns: 1fr; }
  /* vertical timeline on tablet/mobile */
  .flow { grid-template-columns: 1fr; gap: 30px 0; max-width: 340px; margin-left: auto; margin-right: auto; }
  .flow-line { display: none; }
  .flow-vline { display: block; left: 50%; transform: translateX(-50%); }
}

/* On phones, switch the flow back to a compact 5-up horizontal layout so the
   user sees all icons at once without scrolling vertically through them. */
@media (max-width: 760px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    max-width: 100%;
    margin-top: 14px;
  }
  .flow-node { padding: 0 4px; }
  .flow-node .dot { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; }
  .flow-node .dot svg { width: 18px; height: 18px; stroke-width: 1.7; }
  .flow-node .step { font-size: 9px; letter-spacing: 0.08em; }
  .flow-node h4 { font-size: 11px; margin-top: 4px; line-height: 1.2; }
  .flow-node .micro { display: none; }       /* hide the per-node micro graphics on phones */
  .flow-line { display: block; top: 20px; }   /* keep the horizontal progress line */
  .flow-vline { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero-content { padding: 0 20px 70px; }
  .hero-stats { gap: 28px; }
  .final { margin: 0 16px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ========== Mobile nav (hamburger + drawer) ========== */
@media (max-width: 820px) {
  .nav-inner { padding: 14px 18px; gap: 12px; }
  .logo { font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    padding: 0 10px;
    margin-left: auto;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px 22px;
    background: rgba(8,11,19,0.96);
    backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s var(--ease), opacity .25s var(--ease), padding .35s var(--ease);
    padding-top: 0; padding-bottom: 0;
  }
  .nav.open .nav-drawer {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 14px;
    padding-bottom: 22px;
  }
  .nav-drawer a {
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-2);
    border-radius: 10px;
  }
  .nav-drawer a:hover { background: var(--panel); color: var(--text); }
  .nav-drawer .btn { margin-top: 6px; text-align: center; justify-content: center; }
}

/* Tighter hero copy on small screens */
@media (max-width: 620px) {
  .hr-h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.05; }
  .hr-sub { font-size: 15px; }
}

.text-link-cta{
  display:inline-flex;align-items:center;gap:6px;
  font-weight:600;font-size:14px;letter-spacing:.02em;
  color:#E8B66B;text-decoration:none;
  padding:14px 6px;
  transition:color .2s ease;
}
.text-link-cta:hover{color:#F4CE94;text-decoration:underline;text-underline-offset:4px;}


/* ============================================================
   MOBILE SCROLL PERFORMANCE
   backdrop-filter (blur) over a full-screen fixed background makes mobile
   browsers repaint the entire viewport on every scroll frame, which reads as
   the page freezing and unfreezing. Drop the blurs on small screens and use
   solid surfaces instead — visually near-identical, hugely cheaper.
   ============================================================ */
@media (max-width: 980px) {
  .footer > .wrap,
  .nav.scrolled,
  .tile,
  .btn.ghost,
  .hero-badge,
  /* universal nav (site-nav.css) — sticky bar, login pill, hamburger, menu */
  .site-nav,
  .site-nav.is-scrolled,
  .site-nav-login,
  .site-nav-toggle,
  .site-nav-menu,
  /* subpages.css cards/controls */
  .float-card,
  .lvl-arrow {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .footer > .wrap { background: rgba(10, 16, 30, 0.86); box-shadow: none; }
  .nav.scrolled { background: rgba(8, 11, 19, 0.96); }
  .site-nav.is-scrolled { background: rgba(8, 11, 19, 0.96) !important; }
  .site-nav-menu { background: rgba(9, 13, 24, 0.98) !important; }
  .tile { box-shadow: none; }
  /* stacked-panel drop shadows are pure paint cost once stacking is disabled */
  header.panel, section.panel { box-shadow: none !important; }

  /* `100vh` changes value when the mobile URL bar collapses, which relayouts
     the page mid-scroll and reads as a jump. `svh` is the stable small
     viewport height. */
  .hero { min-height: 100svh; }
}
