:root {
  color-scheme: light;

  /* WHITE — pure */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8f9;
  --sand: #f2f5f6;

  --border: #e6eaec;
  --border-strong: #d4dadd;

  --ink: #0f2e2a;
  --text: #173a35;
  --muted: #5a6b6a;
  --faint: #8b9896;

  --teal: #14b8a6;
  --teal-deep: #0f9488;
  --teal-soft: #e6f6f3;
  --teal-line: #bfe9e2;
  --coral: #e0584f;
  --coral-soft: #fbeceb;

  --r-card: 8px;
  --r-pill: 999px;
  --maxw: 1840px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

img {
  display: block;
}

/* ---------- intro dissolve (Pebble Labs style) ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity 1100ms var(--ease);
}

#intro.is-out {
  opacity: 0;
  pointer-events: none;
}

#intro.is-gone {
  display: none;
}

.intro-word {
  display: inline-flex;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.intro-letter {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(8px) scale(1.08);
  transition:
    opacity 1100ms var(--ease),
    filter 1100ms var(--ease),
    transform 1100ms var(--ease);
}

.intro-letter.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* disintegrate back out — blur up and lift away */
.intro-letter.is-out {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(-10px) scale(1.12);
  transition:
    opacity 850ms var(--ease),
    filter 850ms var(--ease),
    transform 850ms var(--ease);
}

/* ---------- landing reveal: blur-dissolve fade-in, plays after the intro ---------- */
/* keyframe animation (not a transition) so it ALWAYS plays when intro-done is added */
@keyframes referix-rise {
  from { opacity: 0; filter: blur(12px); transform: translateY(10px) scale(1.015); }
  to   { opacity: 1; filter: blur(0);    transform: none; }
}

/* everything that should fade in starts hidden */
.hero-copy > *,
.hero-visual,
.reveal {
  opacity: 0;
}

/* once the intro finishes, run the animation with a slow, gentle stagger */
body.intro-done .hero-copy > *,
body.intro-done .hero-visual {
  animation: referix-rise 1200ms var(--ease) both;
}
body.intro-done .hero-copy > *:nth-child(1) { animation-delay: 150ms; }
body.intro-done .hero-copy > *:nth-child(2) { animation-delay: 320ms; }
body.intro-done .hero-copy > *:nth-child(3) { animation-delay: 490ms; }
body.intro-done .hero-copy > *:nth-child(4) { animation-delay: 660ms; }
body.intro-done .hero-copy > *:nth-child(5) { animation-delay: 830ms; }
body.intro-done .hero-visual { animation-delay: 520ms; }

/* generic scroll-revealed elements lower on the page */
.reveal.in-view { animation: referix-rise 900ms var(--ease) both; }

@keyframes referix-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  /* keep a gentle opacity fade (no movement/blur) — acceptable under reduced motion */
  body.intro-done .hero-copy > *,
  body.intro-done .hero-visual {
    animation: referix-fade 600ms ease both;
    filter: none;
    transform: none;
  }
  .reveal.in-view { animation: referix-fade 500ms ease both; }

  /* reduced motion: don't pin the comparison — stack both slides */
  .compare-section { height: auto; }
  .compare-pin { position: static; min-height: 0; }
  .compare-stack { min-height: 0; display: grid; gap: 22px; }
  .compare-slide {
    position: static; inset: auto;
    --p: 1; opacity: 1; transform: none; transition: none;
  }
}

/* safety: if JS never sets intro-done at all, never leave content hidden */
.no-js .hero-copy > *,
.no-js .hero-visual,
.no-js .reveal { opacity: 1 !important; filter: none !important; transform: none !important; }

/* safety for the comparison: never trap a slide behind scroll progress */
.no-js .compare-section { height: auto; }
.no-js .compare-pin { position: static; min-height: 0; }
.no-js .compare-stack { min-height: 0; display: grid; gap: 22px; }
.no-js .compare-slide {
  position: static; inset: auto;
  --p: 1; opacity: 1; transform: none;
}

/* ---------- header — floating glass bar that breaks into separate glass pills on scroll ----------

   Two states:
   - top of page (default): one continuous liquid-glass bar holds everything.
   - .is-scrolled (set by JS after the first scroll): the bar's own glass dissolves
     away and each child — brand, nav links, CTA — becomes its own floating glass pill.

   The glass recipe is shared via custom props so "clearer, more obviously glass"
   tuning lives in one place. */
:root {
  /* clearer glass — less white tint so the page reads through it, crisper edge light */
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-bg-hover: rgba(255, 255, 255, 0.34);
  --glass-blur: blur(20px) saturate(180%) brightness(1.08);
  --glass-edge: rgba(255, 255, 255, 0.55);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 2px rgba(15, 46, 42, 0.05),
    0 8px 26px rgba(15, 46, 42, 0.12);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(calc(100% - 48px), 1760px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 22px;
  border-radius: var(--r-pill);
  /* the bar's container glass — animated to nothing once scrolled */
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  /* only paint animates — never geometry (padding/radius) or backdrop-filter,
     which is what caused the square-corner pop and the blur snap. */
  transition:
    background 600ms var(--ease),
    border-color 600ms var(--ease),
    box-shadow 600ms var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12) 45%,
      rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 1;
  transition: opacity 600ms var(--ease);
}

/* ---- scrolled state: the bar dissolves, children become standalone glass pills ----

   IMPORTANT for a clean transition: geometry never changes. The pills already carry
   their radius, padding, backdrop-filter and a transparent border/ring at ALL times
   (see .brand / .glass-pill / .nav-cta below). Scrolling only fades the *paint*
   (background, border color, shadow, ring opacity) in and out — so there's no
   square-to-round pop and no hard backdrop-filter snap. */
.site-header.is-scrolled {
  /* container glass paint gone — the bar is now just a transparent layout track. */
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  /* drop the bar's OWN blur — otherwise the full bar-shaped area keeps frosting
     everything behind it (the blurry band between the pills). The pills carry their
     own blur, so the gaps between them must be perfectly clear. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled::before {
  opacity: 0;
}

/* fade each pill's glass paint IN */
.site-header.is-scrolled .brand,
.site-header.is-scrolled .glass-pill {
  background: var(--glass-bg);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

.site-header.is-scrolled .brand::before,
.site-header.is-scrolled .glass-pill::before {
  opacity: 1;
}

/* push page content below the floating header */
main {
  padding-top: 84px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* geometry + glass blur are present from the start so only the paint fades.
     padding 9px 18px 9px 16px gives the logo breathing room inside the pill —
     held constant at the top too so the box never resizes mid-transition. */
  padding: 9px 18px 9px 16px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition:
    background 600ms var(--ease),
    border-color 600ms var(--ease),
    box-shadow 600ms var(--ease);
}

/* edge-light ring lives on the pill at all times, just invisible until scrolled */
.brand::before,
.glass-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12) 45%,
      rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

.site-header .brand-mark-image {
  width: auto;
  height: clamp(36px, 4vw, 42px);
}

.site-header .brand-wordmark-image {
  width: auto;
  height: clamp(20px, 2.9vw, 25px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* nav links inside the floating header pill */
.glass-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition:
    background 600ms var(--ease),
    border-color 600ms var(--ease),
    box-shadow 600ms var(--ease);
}

.pill-link {
  position: relative;
  z-index: 1;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}

.pill-link:hover {
  color: var(--ink);
  background: rgba(15, 46, 42, 0.06);
}

.nav-cta {
  padding: 11px 20px;
  color: #ffffff;
  background: var(--teal);
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  /* blur present from the start (invisible behind full-opacity teal) so it doesn't
     snap; only the paint animates as the teal becomes translucent glass. */
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transition:
    background 600ms var(--ease),
    border-color 600ms var(--ease),
    box-shadow 600ms var(--ease);
}

.nav-cta:hover {
  background: var(--teal-deep);
}

/* scrolled: CTA becomes a translucent teal-glass pill — still clearly the primary
   action, but you can see the page tinting through it */
.site-header.is-scrolled .nav-cta {
  background: rgba(20, 184, 166, 0.78);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 26px rgba(15, 148, 136, 0.28);
}

.site-header.is-scrolled .nav-cta:hover {
  background: rgba(15, 148, 136, 0.9);
}

.nav-toggle {
  display: none;
}

/* ---------- brand lockup / HIPAA badge ---------- */
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.hipaa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.22);
  color: var(--teal-deep);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.hipaa-badge-shield {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .hipaa-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }
}

/* ---------- type ---------- */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
}

/* hero headline: size-strategy — quieter lead line, big emphatic payoff line */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 22px;
  line-height: 0.98;
}
.ht-lead {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #4a5d5a;
}
.ht-emph {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* "Revenue" gets a hand-drawn green loop scribbled around it */
.ht-circle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.ht-loop {
  position: absolute;
  /* hand-drawn underline sitting just below the word — never touches the letters */
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.34em;
  overflow: visible;
  pointer-events: none;
}
.ht-loop path {
  fill: none;
  stroke: var(--teal);
  /* non-scaling-stroke keeps the line an even, crisp weight even though the SVG is
     stretched non-uniformly to fit the word width */
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* hidden until the draw animation runs */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
/* JS adds .is-drawn once the intro is done, before the compare animation */
.ht-circle.is-drawn .ht-loop path {
  animation: ht-loop-draw 1900ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes ht-loop-draw {
  from { stroke-dashoffset: 1; opacity: 1; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-loop path { stroke-dashoffset: 0; opacity: 1; animation: none; }
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: block;
  margin: 0 0 16px;
  padding: 0 0 0 14px;
  color: var(--teal-deep);
  border-left: 2px solid var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--border-strong);
}

.button.secondary:hover {
  border-color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(24px, 6vw, 88px);
}

.hero-copy {
  /* full-width copy — fills the page, no narrow column cap */
  max-width: none;
}

.hero-subhead {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.15rem, 1.6vw, 1.38rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-text {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 20px;
}

.launch-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
}

.visual-orbit {
  display: none;
}

/* ---------- hero visual — two dead-simple outcome cards ---------- */
.hero-visual {
  width: 100%;
  display: grid;
  gap: 16px;
}

.outcome {
  position: relative;
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 46, 42, 0.05);
}

.outcome-open {
  border-left: 3px solid var(--coral);
}

.outcome-closed {
  border-left: 3px solid var(--teal);
}

.outcome-label {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.outcome-open .outcome-label {
  color: var(--coral);
}

.outcome-closed .outcome-label {
  color: var(--teal-deep);
}

.outcome-head {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.outcome-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.outcome-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.outcome-tag.warning {
  color: var(--coral);
  background: var(--coral-soft);
}

.outcome-tag.complete {
  color: var(--teal-deep);
  background: var(--teal-soft);
}

/* ---------- comparison chart — sticky-scroll pinned (same model as the problem
   notes): the panel holds still while scroll progress crossfades the two slides
   in place. No horizontal swiping. ---------- */
.compare-section {
  /* tall runway so the pinned panel stays put while we scroll both slides */
  height: 240vh;
  position: relative;
}

.compare-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 56px);
}
.compare-pin .eyebrow { border-left: none; padding-left: 0; }
.compare-heading h2 { margin: 0 0 18px; }
.compare-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

/* PLACEHOLDER STATE — the chart was moved up into the hero, so this section keeps
   only its heading. The slide markup + scroll JS are preserved in the DOM but
   hidden, and the tall scroll-pin runway collapses to a normal block of flow so
   nothing has to be scrolled past empty space. */
.compare-section.is-placeholder {
  height: auto;
}
/* whole section hidden for now (markup kept in the DOM via [hidden]) */
.compare-section[hidden] {
  display: none !important;
}
.compare-section.is-placeholder .compare-pin {
  position: static;
  min-height: 0;
  grid-template-columns: 1fr;
  align-items: start;
  padding-block: clamp(64px, 9vw, 120px);
}
.compare-section.is-placeholder .compare-heading h2 { margin: 0 0 16px; }
.compare-section.is-placeholder .compare-lead { margin: 0; }
.compare-section.is-placeholder .compare-stack,
.compare-section.is-placeholder .scroll-cue {
  display: none;
}

/* the two slides are stacked in the same spot and crossfaded by scroll */
.compare-stack {
  position: relative;
  min-height: clamp(460px, 60vh, 620px);
}

.compare-slide {
  /* both slides occupy the same top-left origin and overlay; the taller "old way"
     slide can grow past the stack's baseline min-height without being clipped. */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(26px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 46, 42, 0.05);
  /* JS sets --p (0..1) per slide; the active one is opaque + on top, the other
     fully hidden so they never blend together while crossfading. */
  --p: 0;
  --z: 1;
  z-index: var(--z);
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 28px)) scale(calc(0.985 + var(--p) * 0.015));
  transition: opacity 220ms var(--ease), transform 320ms var(--ease);
  will-change: opacity, transform;
}
.col-before { border-top: 3px solid var(--coral); }
.col-after { border-top: 3px solid var(--teal); }
.compare-slide .compare-banner { margin-top: auto; }

.compare-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.compare-pill.warning { color: var(--coral); background: var(--coral-soft); }
.compare-pill.complete { color: var(--teal-deep); background: var(--teal-soft); }

.compare-col-head { margin: 14px 0 6px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; }
.compare-col-sub { margin: 0 0 28px; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* ---- timeline: clean soft node cards (matches the site's calm glass surfaces) ---- */
.timeline {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
  position: relative;
}
.tl-node {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.tl-node:hover {
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 46, 42, 0.05);
}

/* slim connector between cards */
.tl-node:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 28px;
  top: calc(100% - 1px);
  height: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
  z-index: 1;
}
.timeline-after .tl-node:not(:last-child)::before { background: var(--teal-line); }
.timeline-before .tl-node:nth-last-child(2)::before {
  background: linear-gradient(180deg, var(--border-strong), rgba(224, 88, 79, 0.55));
}

/* node marker — small, flat, calm */
.tl-dot {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 1;
}
.tl-node.is-good .tl-dot {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
.tl-node.is-alert .tl-dot {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
  font-size: 0.95rem;
}

.tl-node strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tl-node.is-alert strong { color: var(--coral); }
.tl-node.is-good strong { color: var(--teal-deep); }
.tl-node p { margin: 3px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* failure + success nodes — soft tinted surfaces, no gloss */
.tl-node.is-alert {
  background: var(--coral-soft);
  border-color: rgba(224, 88, 79, 0.22);
}
.tl-node.is-good {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}

/* ---- summary banner — clean soft surface ---- */
.compare-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid;
}
.compare-banner.warning { background: var(--coral-soft); border-color: rgba(224, 88, 79, 0.22); }
.compare-banner.complete { background: var(--teal-soft); border-color: var(--teal-line); }
.compare-banner p { margin: 0; font-weight: 700; line-height: 1.4; }
.compare-banner.warning p { color: var(--coral); }
.compare-banner.complete p { color: var(--teal-deep); }
.banner-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(15, 46, 42, 0.06);
}
.compare-banner.warning .banner-icon { color: var(--coral); }
.compare-banner.complete .banner-icon { color: var(--teal-deep); }


/* ---------- hero horizontal flowchart ----------
   Two stacked horizontal tracks so the whole comparison fits beside the copy
   without scrolling. Top = "Without Referix" (chaotic: cramped coral steps with
   a slight jitter). Bottom = "With Referix" (clear: three calm teal steps).
   A small "vs." rule divides them. The whole block fades in with .hero-visual. */
/* two side-by-side columns: Without Referix (chaotic) | With Referix (clean).
   Each column's steps flow top -> bottom with down arrows. */
.flowchart {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  align-items: start;
}

.fc-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 16px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.fc-row--chaos {
  border-color: var(--coral-soft);
  background: linear-gradient(180deg, #fff 0%, var(--coral-soft) 220%);
}
.fc-row--clear {
  border-color: var(--teal-line);
  background: linear-gradient(180deg, #fff 0%, var(--teal-soft) 220%);
}

.fc-label {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.fc-label--bad  { color: var(--coral); background: var(--coral-soft); }
.fc-label--good { color: var(--teal-deep); background: var(--teal-soft); }

/* the vertical run of steps + down arrows */
.fc-track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin-top: 2px;
}

.fc-step {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-align: center;
}

/* the "without" path: straight, aligned coral steps */
.fc-step--bad {
  color: var(--coral);
  background: var(--coral-soft);
  border-color: #f4cfcb;
}

.fc-step--cold {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

/* clear: calm, aligned, lightly elevated cards (the "good" path looks settled) */
.fc-step--good {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--teal-deep);
  background: #fff;
  border-color: var(--teal-line);
  box-shadow: 0 4px 14px rgba(15, 148, 136, 0.08);
}

/* final step gets a filled "done" treatment + checkmark to signal resolution */
.fc-step--done {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 6px 16px rgba(15, 148, 136, 0.22);
}
.fc-check {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* down arrows between vertical steps */
.fc-arrow {
  align-self: center;
  font-size: 0.95rem;
  line-height: 1;
}
.fc-arrow--bad  { color: #d99b95; }
.fc-arrow--good { color: var(--teal); }

.fc-caption {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
}
.fc-caption--bad  { color: var(--coral); }
.fc-caption--good { color: var(--teal-deep); }

/* ---------- hero mini-comparison ----------
   Deliberately NOT the default "pill + colored dot + tinted badge" look (the
   statistical center of AI-generated UI). Instead: editorial typographic labels
   (Linear/Notion idiom) — bare uppercase microtype with wide tracking, a short
   accent rule, no enclosing chip. One card, an interior hairline splits the two
   paths. Accent color lives only in the rule + the outcome word. */
.mini-compare {
  display: grid;
  gap: 0;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px -22px rgba(15, 46, 42, 0.14), 0 1px 3px rgba(15, 46, 42, 0.04);
}
.mini-row { padding: 22px 0; }
.mini-before { padding-top: 4px; }
.mini-after  { padding-bottom: 4px; }

/* interior hairline divider, with a small monospace "vs" sitting on the rule
   instead of a floating circle. */
.mini-after-wrap {
  position: relative;
  border-top: 1px solid var(--border);
}
.mini-vs {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  background: var(--surface);
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* the microlabel: type IS the chrome. A leading accent rule, then tracked-out
   uppercase. No pill, no fill, no dot. */
.mini-head { margin-bottom: 13px; }
.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mini-tag.warning  { color: var(--coral); }
.mini-tag.complete { color: var(--teal-deep); }

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
/* the outcome word carries the verdict through weight + color, not a badge.
   "lost" reads broken via a strike; "loop closed" gets a confident accent
   underline drawn from the teal — quiet, not decorated. */
.mini-bad  {
  color: var(--coral);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(224, 88, 79, 0.55);
}
.mini-good {
  color: var(--teal-deep);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--teal);
  padding-bottom: 1px;
}

/* steps + arrows VISIBLE by default. All step reveal animation is driven inline by
   JS (script.js) so nothing here can leave content stuck hidden. */
.mini-step { display: inline-flex; align-items: center; }
.mini-arrow {
  color: var(--faint);
  font-weight: 400;
  display: inline-flex;
  font-size: 0.85rem;
}

/* When JS is available, pre-hide the steps from the FIRST paint so the finished
   state never flashes before the animation. JS reveals them in sequence.
   No-JS visitors keep them visible. */
html.js-ready .mini-step,
html.js-ready .mini-arrow {
  opacity: 0;
  transform: translateY(6px);
}

/* "Referral lost" breaks down — letters settle/slip a touch but STAY readable.
   whitespace:nowrap keeps the word on one line so spacing never reflows. */
.mini-breakdown.is-broken { position: relative; white-space: nowrap; }
.mini-breakdown .frag {
  display: inline-block;
  animation: frag-break 600ms var(--ease) forwards;
}
@keyframes frag-break {
  0%   { transform: none; opacity: 1; }
  100% { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); opacity: 0.85; }
}

/* celebratory confetti on "Loop closed" (auto-removed by JS).
   A fountain burst: each piece shoots up-and-out, arcs over under gravity, then
   flutters down past the origin while tumbling on two axes — reads like real paper. */
.confetti-piece {
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  animation: confetti-fly 1700ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes confetti-fly {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg);
    opacity: 1;
  }
  /* ~apex of the arc: full horizontal spread reached, piece is at its highest */
  35% {
    transform:
      translate3d(calc(var(--px) * 0.7), var(--rise), 0)
      rotateX(calc(var(--spinX) * 0.4)) rotateZ(calc(var(--spinZ) * 0.4));
    opacity: 1;
  }
  /* falling back down past the launch point, drifting sideways (flutter) */
  100% {
    transform:
      translate3d(calc(var(--px) + var(--sway)), var(--fall), 0)
      rotateX(var(--spinX)) rotateZ(var(--spinZ));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-step, .mini-arrow { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- dissolve-on-scroll headings ---------- */
[data-dissolve] {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(8px);
  transition: opacity 800ms var(--ease), filter 800ms var(--ease), transform 800ms var(--ease);
}

[data-dissolve].revealed {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ---------- sections ---------- */
.section,
.vision-section,
.waitlist-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 116px) clamp(20px, 5vw, 56px);
  scroll-margin-top: 110px; /* clear the floating header when jumped to */
}
/* any id'd section can be a scroll target — keep it below the header */
section[id] { scroll-margin-top: 110px; }

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

/* how-it-works flow */
.flow-section {

}

/* keep the how-it-works heading on a single line */
.flow-section .section-heading {
  max-width: none;
}
.flow-section .section-heading h2 {
  white-space: nowrap;
}

.referral-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flow-node {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.flow-node:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 46, 42, 0.06);
}

.flow-node span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  font-size: 0.78rem;
  font-weight: 800;
}

.flow-node strong {
  color: var(--ink);
  font-size: 1rem;
}

.flow-node p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.flow-node.is-active {
  border-color: var(--teal-line);
  box-shadow: inset 2px 0 0 var(--teal);
}

.flow-node.is-active span {
  color: var(--teal-deep);
  border-color: var(--teal-line);
  background: var(--teal-soft);
}

.flow-node.is-complete {
  border-color: var(--teal-line);
}

.flow-node.is-complete span {
  color: #fff;
  background: var(--teal);
}

/* problem — sticky-scroll pinned section: page holds still while scroll
   progress reveals the sticky notes one at a time. */
.problem-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 56px);
}

/* light tinted panel that holds the heading + cards, like the screenshot */
.problem-panel {
  background: linear-gradient(180deg, #faf7f2 0%, #f4f8ff 100%);
  border: 1px solid rgba(15, 46, 42, 0.06);
  border-radius: clamp(18px, 2vw, 28px);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 64px);
  box-shadow: 0 24px 60px rgba(15, 46, 42, 0.06);
}

.problem-heading {
  text-align: center;
  max-width: none;
  margin: 0 auto clamp(36px, 4vw, 56px);
}

.problem-heading .eyebrow {
  display: block;
  /* no teal left bar here — the eyebrow is centered in this section */
  border-left: none;
  padding-left: 0;
}

.problem-heading h2 {
  margin: 12px 0 18px;
  white-space: nowrap;
}

.problem-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* three cards side by side, each revealing its body in a white inset box */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}

.problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 28px) clamp(18px, 1.8vw, 26px) clamp(24px, 2.4vw, 32px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 46, 42, 0.06);
  border-radius: clamp(14px, 1.4vw, 20px);
  box-shadow: 0 14px 36px rgba(15, 46, 42, 0.05);
}

.problem-card-number {
  display: block;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.problem-card h3 {
  margin: 0 0 clamp(14px, 1.6vw, 22px);
  /* reserve two lines so single- and double-line titles take the same
     height, keeping every card body starting on the same line */
  min-height: calc(2 * 1.25 * clamp(1rem, 1.2vw, 1.15rem));
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.problem-card-body {
  padding: 0;
}

.problem-card-body p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  text-wrap: pretty;
}


/* vision — asymmetric full-bleed band */
.vision-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  background: var(--sand);

  border-bottom: 1px solid var(--border);
  max-width: none;
  padding-left: max(calc((100vw - var(--maxw)) / 2 + 20px), clamp(20px, 5vw, 56px));
  padding-right: max(calc((100vw - var(--maxw)) / 2 + 20px), clamp(20px, 5vw, 56px));
}

.vision-copy p {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 0;
}

.feature-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-strong);
}

.feature-list article:first-child {
  padding-top: 0;
}

.feature-list span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--teal);
  border-radius: var(--r-pill);
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* waitlist */
.waitlist-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 500px);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.waitlist-copy p {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.waitlist-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 46, 42, 0.06);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
}

input::placeholder {
  color: var(--faint);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--teal-deep);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: pre-wrap;
}

.form-note.is-error {
  color: var(--coral);
}

/* footer */
.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 44px clamp(20px, 5vw, 56px);
  max-width: var(--maxw);
  margin: 0 auto;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand {
  flex: 0 0 auto;
}

.site-footer .brand {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-footer .footer-mark {
  width: auto;
  height: clamp(30px, 3.6vw, 38px);
}

.site-footer .footer-wordmark {
  width: auto;
  height: clamp(18px, 2.6vw, 22px);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer p {
  margin: 0;
  color: var(--faint);
}

.social-links {
  display: flex;
  gap: 12px;
  align-self: flex-end;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color 140ms var(--ease), color 140ms var(--ease), background 140ms var(--ease);
}

.social-links a svg {
  display: block;
}

.social-links a:hover {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- responsive ---------- */
@media (min-width: 1000px) {
  .hero {
    /* two columns: copy on the left, the horizontal flowchart on the right */
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    min-height: calc(100vh - 84px);
  }
}

@media (max-width: 980px) {

  .vision-section,
  .waitlist-section {
    grid-template-columns: 1fr;
  }

  .referral-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-panel {
    min-height: auto;
  }

  /* problem: stack the three cards in one column on narrow screens */
  .problem-cards {
    grid-template-columns: 1fr;
  }

  /* comparison: on narrow screens, drop the pin and stack both slides in a column */
  .compare-section {
    height: auto;
  }

  .compare-pin {
    position: static;
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .compare-stack {
    min-height: 0;
    display: grid;
    gap: 22px;
  }

  .compare-slide {
    position: static;
    inset: auto;
    --p: 1;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  /* the how-it-works heading won't fit one line on phones, let it wrap again */
  .flow-section .section-heading h2 { white-space: normal; }

  /* flowchart on phones: tighten the two columns so they still fit side by side */
  .flowchart { gap: 10px; }
  .fc-row { padding: 13px 11px; }
  .fc-step { font-size: 0.76rem; padding: 8px 9px; }
  .fc-label { font-size: 0.66rem; padding: 4px 9px; }

  .site-header {
    flex-wrap: wrap;
    padding: 10px 12px 10px 18px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-weight: 700;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .glass-pill {
    flex-direction: column;
    gap: 4px;
  }

  .pill-link {
    text-align: center;
    padding: 11px;
  }

  .nav-cta {
    text-align: center;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.0;
  }

  .referral-flow {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    width: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 6px 20px rgba(15, 46, 42, 0.10);
  }

  .site-header::before {
    display: none;
  }

  /* scrolled pills stay opaque white when transparency is reduced */
  .site-header.is-scrolled .brand,
  .site-header.is-scrolled .glass-pill {
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header.is-scrolled .nav-cta {
    background: var(--teal);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header.is-scrolled .brand::before,
  .site-header.is-scrolled .glass-pill::before {
    display: none;
  }
}

/* fallback when backdrop-filter unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .site-header.is-scrolled .brand,
  .site-header.is-scrolled .glass-pill {
    background: rgba(255, 255, 255, 0.95);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  /* but keep the intro + landing fade as a quick, smooth opacity dissolve
     (a gentle fade is acceptable under reduced motion; we drop the movement) */
  #intro {
    transition-duration: 600ms !important;
  }

  .intro-letter,
  .intro-letter.is-in,
  .intro-letter.is-out {
    transition-duration: 500ms !important;
    transform: none !important;
    /* no movement, fade + blur only */
  }

  body.intro-done .hero-copy>*,
  body.intro-done .hero-visual {
    transition-duration: 700ms !important;
    transform: none !important;
    /* fade/blur in place, no slide */
  }
}
