/* ============================================
   Astrolaabh · Astro_P01 scroll-telling
   Pinned canvas frame-scrub, hero -> four bars
   Tokens inherited from styles.css (:root)
   ============================================ */

.scrolly {
  position: relative;
  /* runway for the full P03 film (859 frames): ritual -> stone -> light ->
     chart -> ring -> deconstructed anatomy.
     First 100vh is a static hero HOLD — the film only starts scrubbing past it.
     Taller runway = slower frame-scrub; scrolly.js warps scroll to dwell on the bloom. */
  height: 900vh;
  background: var(--bg-deep, #1b2016);
  z-index: 1;
}

/* Everything after the film rises as ONE sheet over the pinned final frame,
   bottom-to-top, like a curtain. The whole rest of the page is this sheet. */
.after-scrolly {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  background: var(--bone, #f1efe8);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -30px 80px rgba(20, 16, 8, 0.28);
}
/* round the leading edge — the first band inherits the sheet's top curve */
.after-scrolly > .section-statement:first-child {
  border-radius: 30px 30px 0 0;
}

/* hairline dividers between every section down the page — a soft gold
   thread, inset from the edges, that fades at its ends */
.after-scrolly > * { position: relative; }
.after-scrolly > * + *::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-x, 4.5rem);
  right: var(--pad-x, 4.5rem);
  height: 1px;
  background: linear-gradient(to right,
    transparent, rgba(160, 132, 78, 0.32), transparent);
  z-index: 6;
  pointer-events: none;
}

.scrolly-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #0c0f0a;
  --sc-ink: #ece7da;
  --sc-muted: #b9b5a5;
  --sc-eyebrow: #dcb968;
}

/* --- the film --- */
.scrolly-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* ambient hero loop — sits over the canvas at rest, fades out on scroll
   to reveal the frame-scrub starting from frame 1 */
.sc-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* soft cinematic vignette that deepens the dark scenes, near-invisible
   over the bright parchment (JS fades --veil per scene) */
.scrolly-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 42%, rgba(6, 8, 5, 0.55) 100%),
    linear-gradient(to top, rgba(6, 8, 5, 0.45), transparent 30%);
  opacity: var(--veil, 1);
  transition: opacity 0.25s linear;
}

/* --- scene overlay layer --- */
.sc-scene {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  padding: calc(var(--nav-h, 88px) + 3vh) var(--pad-x, 4.5rem) 8vh;
  pointer-events: none;
  will-change: opacity, transform;
  opacity: 0;              /* JS drives opacity; hidden until then */
}
/* hero is the only scene visible at the very top before JS runs */
.sc-scene[data-scene="hero"] { opacity: 1; }
.sc-scene > * { pointer-events: auto; }

/* per-scene placement — all copy sits in a left column, vertically centred */
.sc-scene[data-scene="hero"],
.sc-scene[data-scene="choose"],
.sc-scene[data-scene="light"],
.sc-scene[data-scene="ring2"],
.sc-scene[data-scene="usp"],
.sc-scene[data-scene="bars"] { align-items: center; justify-items: start; text-align: left; }

/* USP scene — single left column that branches off the main timeline rail
   (via the eyebrow connector tick), like every other scene. No second line. */
.sc-usp {
  position: relative;
  z-index: 3;
  max-width: min(34rem, 52vw);
}
.sc-scene[data-scene="usp"] .usp-eyebrow { color: #8a5f22; }
.sc-scene[data-scene="usp"] .usp-title { color: #1a1e12; text-shadow: 0 1px 14px rgba(249, 245, 235, 0.7); }
.sc-scene[data-scene="usp"] .usp-rtext h3 { color: #20251a; }
.sc-scene[data-scene="usp"] .usp-rtext p { color: rgba(28, 32, 22, 0.82); text-shadow: 0 1px 10px rgba(249, 245, 235, 0.6); }
.sc-scene[data-scene="usp"] .usp-ico {
  background: rgba(249, 245, 235, 0.72);
  border-color: rgba(138, 106, 34, 0.5);
}
.sc-scene[data-scene="usp"] .usp-ico i { color: #8a6a22; }
/* single clean spine: drop the per-row hairlines; keep the eyebrow connector
   tick so the block attaches to the main timeline rail */
.sc-scene[data-scene="usp"] .usp-row { border-top: 0; padding: 0.55rem 0; }
.sc-scene[data-scene="usp"] .usp-rows { margin-top: 1.1rem; display: grid; gap: 0.35rem; }
/* connector: start exactly at the rail (2.6rem from the scene edge) and stop a
   hair before the text — content sits at var(--pad-x), so anchor off that */
.sc-scene[data-scene="usp"] .usp-eyebrow::before {
  left: calc(2.6rem - var(--pad-x, 4.5rem));
  right: auto;
  margin-right: 0;
  width: calc(var(--pad-x, 4.5rem) - 2.6rem - 0.9rem);
}
/* USP call-to-actions */
.sc-usp-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
/* ring "setting" scene — nudge the copy up just slightly */
.sc-scene[data-scene="ring2"] .ring-left { transform: translateY(-2vh); }

/* ink themes */
.sc-scene.is-light .sc-eyebrow { color: var(--gold-bright, #dcb968); }
.sc-scene.is-light .sc-title,
.sc-scene.is-light .sc-sub { color: var(--ink, #ece7da); }
.sc-scene.is-dark .sc-eyebrow { color: #9a7d33; }
.sc-scene.is-dark .sc-title { color: #2a2213; }
.sc-scene.is-dark .sc-sub { color: #5c5233; }

.sc-copy { max-width: 40ch; }
.sc-scene[data-scene="hero"] .sc-copy { max-width: min(92vw, 40rem); }

.sc-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  opacity: 0.9;
}

.sc-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.sc-scene[data-scene="hero"] .sc-title {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  font-style: normal;
  line-height: 1.06;
  letter-spacing: 0.002em;
  /* a slight wave of glow drifts across the words */
  background: linear-gradient(105deg,
    #e6e0d2 0%, #e6e0d2 38%,
    #fff9ef 50%,
    #e6e0d2 62%, #e6e0d2 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 246, 228, 0.12));
  animation: sc-glow-sweep 7s ease-in-out infinite;
}
@keyframes sc-glow-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-scene[data-scene="hero"] .sc-title { animation: none; }
}
.sc-scene[data-scene="choose"] .sc-title,
.sc-scene[data-scene="light"] .sc-title { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.sc-scene.is-dark .sc-title { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); }

.sc-sub {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.55;
  margin: 1.4rem 0 0;
  font-weight: 400;
}
.sc-scene[data-scene="hero"] .sc-sub {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: #cbc6b6;
  margin-top: 1.6rem;
}

/* hero CTA — primary + secondary buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}

/* hero CTA — refined link with a gold underline that draws in on hover */
.sc-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.6rem;
  padding: 0 0 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink, #ece7da);
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}
/* base rule + gold draw-in, layered as two full-width underlines */
.sc-textlink::before,
.sc-textlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
}
.sc-textlink::before { background: rgba(236, 231, 218, 0.28); }
.sc-textlink::after {
  background: var(--gold-bright, #dcb968);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sc-textlink i {
  font-size: 1.05em;
  transition: transform 0.3s ease;
}
.sc-textlink:hover {
  color: #fff9ef;
  letter-spacing: 0.27em;
}
.sc-textlink:hover::after { transform: scaleX(1); }
.sc-textlink:hover i { transform: translateX(5px); }
.sc-scene.is-dark .sc-textlink { color: #2a2213; }
.sc-scene.is-dark .sc-textlink::before { background: rgba(60, 50, 25, 0.4); }

/* scroll cue under the hero */
.sc-cue {
  position: absolute;
  left: 50%;
  bottom: 4.2vh;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink, #ece7da);
  opacity: 0.72;
  z-index: 4;
}
.sc-cue i { animation: scCue 1.8s ease-in-out infinite; }
@keyframes scCue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- USP copy (held-to-the-light scene, on the bright frame) ---------- */
.sc-usp { max-width: min(44rem, 50vw); }

/* split composition: title centred on top, two rows flanking the centred
   hand (left + right), actions centred below — fills the bare white beat */
.sc-scene[data-scene="usp"] {
  padding-left: var(--pad-x, 4.5rem);   /* symmetric: cancel the rail offset */
  align-items: stretch;
  justify-items: stretch;
}
.sc-usp--split {
  max-width: none;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(28vw, 40vw) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "head head head"
    "left .    right"
    "acts acts acts";
  column-gap: 2.5rem;
  align-items: center;
}
.usp-head { grid-area: head; text-align: center; align-self: end; }
.usp-head .usp-eyebrow { margin-bottom: 0.7rem; }
.usp-rows--left  { grid-area: left;  align-self: center; margin: 0; max-width: 24rem; }
.usp-rows--right { grid-area: right; align-self: center; margin: 0; max-width: 24rem; justify-self: end; }
.usp-head + .usp-rows { margin-top: 0; }
.sc-usp--split .usp-actions { grid-area: acts; justify-content: center; align-self: start; margin-top: 0; }
/* the split head is centred — the rail connector tick would dangle oddly */
.sc-usp--split .usp-eyebrow::before { display: none; }

@media (max-width: 900px) {
  .sc-usp--split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "head" "left" "right" "acts";
    row-gap: 0.5rem;
    align-content: center;
  }
  .usp-rows--left, .usp-rows--right { max-width: 100%; justify-self: stretch; }
}
.usp-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sc-eyebrow);
  margin: 0 0 1rem;
}
.usp-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.7vw, 2.7rem);
  line-height: 1.08;
  color: var(--sc-ink);
  margin: 0;
}
/* documented ledger: subtle icon tiles + title/desc, hairline between rows */
.usp-rows {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}
.usp-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(150, 120, 45, 0.18);
}
.usp-row:first-child { border-top: 0; }
.usp-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.85rem;
  color: var(--gold, #c9a24b);
  background: rgba(201, 162, 75, 0.06);
  border: 1px solid rgba(201, 162, 75, 0.30);
  font-size: 1.35rem;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.4s ease, border-color 0.4s ease;
  /* a slow gold breath — a premium idle glow */
  animation: usp-ico-breath 3.6s ease-in-out infinite;
}
/* a light sweep glides diagonally across the tile every few seconds */
.usp-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 35%, rgba(255, 245, 214, 0.55) 50%, transparent 65%);
  background-size: 260% 260%;
  opacity: 0;
  pointer-events: none;
  animation: usp-ico-sheen 4.8s ease-in-out infinite;
}
.usp-ico i { position: relative; z-index: 1; }
@keyframes usp-ico-breath {
  0%, 100% {
    box-shadow: 0 0 0 rgba(201, 162, 75, 0);
    border-color: rgba(201, 162, 75, 0.30);
  }
  50% {
    box-shadow: 0 0 16px rgba(201, 162, 75, 0.30);
    border-color: rgba(201, 162, 75, 0.5);
  }
}
@keyframes usp-ico-sheen {
  0%, 70%, 100% { opacity: 0; background-position: 120% 120%; }
  82% { opacity: 1; }
  92% { opacity: 0; background-position: -20% -20%; }
}
/* stagger so the row shimmers in sequence, not in unison */
.usp-row:nth-child(2) .usp-ico,
.climax-grid li:nth-child(2) .usp-ico { animation-delay: 0.5s, 0.6s; }
.usp-row:nth-child(3) .usp-ico,
.climax-grid li:nth-child(3) .usp-ico { animation-delay: 1s, 1.2s; }
.usp-row:nth-child(4) .usp-ico,
.climax-grid li:nth-child(4) .usp-ico { animation-delay: 1.5s, 1.8s; }
.usp-row:hover .usp-ico {
  transform: translateY(-2px);
  background: rgba(201, 162, 75, 0.12);
  border-color: rgba(201, 162, 75, 0.55);
  box-shadow: 0 0 22px rgba(201, 162, 75, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .usp-ico, .usp-ico::after { animation: none; }
}
.usp-rtext h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.1;
  color: var(--sc-ink);
  margin: 0 0 0.2rem;
}
.usp-rtext p {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  color: var(--sc-muted);
  margin: 0;
}
.usp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* two-column comparison: everywhere else vs Astrolaabh */
.sc-compare { max-width: min(66rem, 68vw); }
.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 3rem;
}
.cmp-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #9a7d33;
  margin: 0 0 0.7rem;
}
.cmp-eyebrow--muted { color: #8a8172; }
.cmp-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.95rem);
  line-height: 1.1;
  color: #221c10;
  margin: 0;
}
.cmp-else .cmp-title { color: #4a4436; }
.cmp-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}
.cmp-list li {
  position: relative;
  padding: 0.78rem 0 0.78rem 1.8rem;
  font-family: var(--font-ui);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 1.42;
  border-top: 1px solid rgba(60, 50, 25, 0.14);
}
.cmp-list li:first-child { border-top: 0; }
.cmp-list li::before {
  position: absolute;
  left: 0;
  top: 0.78rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.cmp-list--check li { color: #3a3222; }
.cmp-list--check li::before { content: "\2713"; color: var(--gold, #c9a24b); }
.cmp-list--x li { color: #6f6656; }
.cmp-list--x li::before { content: "\2715"; color: #b3624a; font-size: 0.85rem; top: 0.85rem; }
.sc-btn--gold {
  background: url("assets/consult-card-bg.jpg") center / cover;                 /* sage */
  color: #ffffff;
}
.sc-btn--gold:hover { background: linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)), url("assets/consult-card-bg.jpg") center / cover; }
.sc-btn--line {
  background: transparent;
  color: #221c10;
  border: 1px solid rgba(60, 50, 25, 0.45);
}
.sc-btn--line:hover { background: rgba(60, 50, 25, 0.06); }

/* ---------- climax: four bars (on the parchment / natal-wheel frame) ---------- */
.sc-climax { max-width: min(48rem, 54vw); }
.climax-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sc-eyebrow);
  margin: 0 0 0.9rem;
}
.climax-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.05;
  color: var(--sc-ink);
  margin: 0;
}
.climax-title em { font-style: normal; color: inherit; }

/* Bars only ever shows on the bright parchment now (it vanishes before the
   ring frame), so lock its ink to readable dark tones — no low-contrast wash. */
.sc-scene[data-scene="bars"] .climax-eyebrow { color: #8a6a22; }
.sc-scene[data-scene="bars"] .climax-title { color: #241d10; }
.sc-scene[data-scene="bars"] .climax-body h3 { color: #2a2213; }
.sc-scene[data-scene="bars"] .climax-body p { color: #514732; }

.climax-grid {
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;      /* stacked one-by-one, like the USP */
}
.climax-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1.1rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(120, 95, 35, 0.22);
}
.climax-grid li:first-child { border-top: 0; padding-top: 0.3rem; }

.climax-num {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold, #c9a24b);
  padding-top: 0.3rem;
}
.climax-body h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: 1.42rem;
  color: var(--sc-ink);
  margin: 0 0 0.35rem;
  line-height: 1.05;
}
.climax-body p {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  color: var(--sc-muted);
  margin: 0;
}
.climax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* pill buttons, self-contained (do not depend on essence styles) */
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.sc-btn:hover { transform: translateY(-1px); }
.sc-btn--solid {
  background: url("assets/consult-card-bg.jpg") center / cover;                 /* sage */
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 25, 15, 0.18);
}
.sc-btn--solid:hover { background: linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)), url("assets/consult-card-bg.jpg") center / cover; box-shadow: 0 8px 20px rgba(20, 25, 15, 0.24); }
.sc-btn--ghost {
  background: transparent;
  color: #2a2213;
  border: 1px solid rgba(60, 50, 25, 0.5);
}
.sc-btn--ghost:hover { background: rgba(60, 50, 25, 0.06); }

/* ---------- dark scenes (ring + anatomy) — text colour comes from the
   scroll-driven --sc-ink vars; only structural accents fixed here ---------- */
.sc-scene--dark .climax-grid li { border-top-color: rgba(220, 190, 110, 0.18); }
.ring-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sc-muted);
  margin: 1.5rem 0 0;
  max-width: 40ch;
}
.sc-scene--dark .usp-eyebrow::before,
.sc-scene--dark .climax-eyebrow::before { background: rgba(220, 190, 110, 0.5); }

/* ring scene: copy flanks the centred ring, both sides — symmetric rails */
.sc-scene--split {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-left: 7.5rem;
  padding-right: 7.5rem;
}
.ring-left { max-width: 26%; }
.ring-right { max-width: 26%; text-align: right; }
.ring-kicker {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--sc-eyebrow);
  margin: 0 0 0.7rem;
}
/* ring copy is NOT tied to the lines — no connectors either side */
.ring-left .usp-eyebrow::before { display: none; }
.ring-right .ring-sub { margin-left: auto; }

/* ---------- anatomy: subtle callouts pinned near each deconstructed part ---------- */
.sc-scene--pin { display: block !important; padding: 0 !important; }
.anat-eyebrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 3.5vh;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sc-eyebrow);
  margin: 0;
}
.anat-eyebrow em { font-style: normal; color: var(--sc-muted); }

.anat-call {
  position: absolute;
  width: 16%;
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* staggered reveal when the exploded parts settle (frame ~825) */
.sc-scene--pin.anat-in .anat-call { opacity: 1; transform: none; }
.sc-scene--pin.anat-in .anat-01 { transition-delay: 0.06s; }
.sc-scene--pin.anat-in .anat-02 { transition-delay: 0.20s; }
.sc-scene--pin.anat-in .anat-03 { transition-delay: 0.34s; }
.sc-scene--pin.anat-in .anat-04 { transition-delay: 0.48s; }
.anat-actions {
  opacity: 0;
  transition: opacity 0.6s ease 0.58s;
}
.sc-scene--pin.anat-in .anat-actions { opacity: 1; }
.anat-call .anat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-bright, #dcb968);
  margin-bottom: 0.15rem;
}
.anat-call h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.28rem;
  color: var(--ink, #ece7da);
  margin: 0 0 0.3rem;
  line-height: 1.1;
}
.anat-call p {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  line-height: 1.4;
  color: #b0ab9c;
  margin: 0;
}
/* thin connector from the label toward its part */
.anat-line {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 8vh;
  background: linear-gradient(rgba(220, 190, 110, 0.55), rgba(220, 190, 110, 0));
}
/* each callout offset to clear its part with a consistent gap (stone = ref) */
.anat-01 { top: 26%; }   /* small stone, low  */
.anat-03 { top: 14%; }   /* tall silver part — sits high above it, inside the top line */
.anat-01 .anat-line, .anat-03 .anat-line { top: 100%; }
.anat-02 { top: 68%; }   /* below the chamber */
.anat-04 { top: 78%; }   /* below the tall gold band, inside the bottom line */
.anat-02 .anat-line, .anat-04 .anat-line {
  bottom: 100%;
  background: linear-gradient(rgba(220, 190, 110, 0), rgba(220, 190, 110, 0.55));
}
.anat-03 .anat-line { height: 15vh; }
.anat-04 .anat-line { height: 9vh; }
.anat-02 .anat-line { height: 7vh; }
/* horizontal placement centred on each part (~16 / 34 / 61 / 84%) */
.anat-01 { left: 8%; }
.anat-02 { left: 26%; }
.anat-03 { left: 53%; }
.anat-04 { left: 76%; }

.anat-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 13vh;               /* centred, lifted clear of the search dock */
  display: flex;
  gap: 0.9rem;
}

.sc-btn--solid-on-dark { background: url("assets/consult-card-bg.jpg") center / cover; color: #ffffff; }
.sc-btn--solid-on-dark:hover { background: linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)), url("assets/consult-card-bg.jpg") center / cover; }
.sc-btn--ghost-on-dark {
  background: transparent;
  color: var(--ink, #ece7da);
  border: 1px solid rgba(236, 231, 218, 0.32);
}
.sc-btn--ghost-on-dark:hover { background: rgba(236, 231, 218, 0.08); }

/* ---------- constellation grid overlay (pear.no-style framing + sparkles) ---------- */
.sc-grid {
  position: absolute;
  inset: 0;
  z-index: 6;                 /* overlays the scene copy, as requested */
  pointer-events: none;
  opacity: 0;                 /* JS drives visibility across the film */
  will-change: opacity;
  --grid-ink: rgba(233, 227, 210, 0.24);  /* JS recolours to the frame */
}
.grid-v, .grid-h { position: absolute; }
.grid-v {
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom,
    transparent, var(--grid-ink) 10%, var(--grid-ink) 90%, transparent);
}
.grid-h {
  left: 0; right: 0; height: 1px;
  background: linear-gradient(to right,
    transparent, var(--grid-ink) 10%, var(--grid-ink) 90%, transparent);
}
.grid-star {
  position: absolute;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;      /* centre on its (left,top) point */
  background: radial-gradient(circle at 50% 50%,
    #fffdf7 0%, #f4e7c2 42%, rgba(244, 231, 194, 0) 72%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%,
    50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 5px rgba(255, 241, 205, 0.85));
  animation: gridTwinkle 2.6s ease-in-out infinite;
}
.grid-star:nth-of-type(2) { animation-delay: 0.7s; }
.grid-star:nth-of-type(3) { animation-delay: 1.3s; }
.grid-star:nth-of-type(4) { animation-delay: 1.9s; }
@keyframes gridTwinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.45; }
  50%      { transform: scale(1.15) rotate(45deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-star { animation: none; opacity: 0.8; }
}

/* ---------- timeline rails (content branches off them) ---------- */
.sc-timeline {
  position: absolute;
  left: 2.6rem;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;                 /* JS drives visibility per scroll position */
}
/* right rail retired — the ring is framed by the converging grid lines instead */
.sc-timeline--right { display: none; }
.sc-tl-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent, rgba(160, 132, 78, 0.28) 8%,
    rgba(160, 132, 78, 0.28) 92%, transparent);
}
.sc-tl-ticks { display: none; }   /* no ruler-style scale marks */
.sc-tl-pct {
  position: absolute;
  left: -0.15rem;
  bottom: 4vh;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(160, 132, 78, 0.7);
}

/* content sits to the right of the rail; a subtle connector touches the line.
   Hero is the exception — its CTA carries no connector (removed by request). */
.sc-scene { padding-left: 7.5rem; }
.sc-eyebrow, .usp-eyebrow, .climax-eyebrow, .cmp-eyebrow, .sc-textlink { position: relative; }
.sc-eyebrow::before,
.usp-eyebrow::before,
.climax-eyebrow::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  /* 7.5rem content - 2.6rem rail - 0.9rem text gap = 4rem; +0.3rem so the
     connector visibly meets the rail instead of stopping a hair short. */
  width: 4.3rem;
  margin-right: 0.9rem;
  height: 1px;
  background: rgba(160, 132, 78, 0.45);
}

/* ---------- ambient audio toggle (bottom-right) ---------- */
.sc-audio-btn {
  position: fixed;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2.2vh, 1.7rem);
  z-index: 95;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 24, 16, 0.5);
  border: 1px solid rgba(220, 190, 110, 0.32);
  color: var(--gold-bright, #dcb968);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.4s ease;
}
.sc-audio-btn:hover { transform: translateY(-2px); border-color: rgba(220, 190, 110, 0.6); }
.sc-audio-btn > i { grid-area: 1 / 1; }   /* stack icons in one centred cell */
.sc-audio-wave { display: none; }          /* empty node was shoving the icon off-centre */
.sc-audio-btn [data-on] { display: none; }
.sc-audio-btn.is-on [data-on] { display: block; }
.sc-audio-btn.is-on [data-off] { display: none; }
.sc-audio-btn.is-on { background: rgba(120, 95, 30, 0.42); }

/* ---------- loading shimmer while frames warm ---------- */
.scrolly.is-warming .sc-scene[data-scene="hero"] { opacity: 1; }

/* ---------- top nav auto-hide on scroll-down ---------- */
.nav {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.3s ease, color 0.3s ease, backdrop-filter 0.3s ease;
  will-change: transform;
}
.nav.nav-hidden { transform: translateY(-118%); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .scrolly { height: 620vh; }
  .sc-scene {
    padding: calc(var(--nav-h, 88px) + 2vh) 1.4rem 12vh;
    align-items: end !important;
    justify-items: stretch !important;
    text-align: left;
  }
  .sc-scene[data-scene="hero"] { place-items: end center; text-align: center; }
  .sc-copy, .sc-usp, .sc-climax { max-width: 100%; width: 100%; }
  .climax-grid, .cmp-grid { grid-template-columns: 1fr; column-gap: 0; gap: 1.4rem; }
  .climax-grid li:nth-child(2) { border-top: 1px solid rgba(150, 120, 45, 0.18); padding-top: 1.2rem; }
  .climax-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .usp-rtext p { font-size: 0.9rem; }
  .sc-timeline { display: none; }
  .sc-eyebrow::before, .usp-eyebrow::before,
  .climax-eyebrow::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-cue i { animation: none; }
}

/* image-filled primary buttons need an edge on dark/sage grounds */
.sc-btn--solid,
.sc-btn--gold,
.sc-btn--solid-on-dark {
  border: 1px solid rgba(220, 190, 110, 0.5);
}
.sc-btn--solid:hover,
.sc-btn--gold:hover,
.sc-btn--solid-on-dark:hover {
  border-color: rgba(220, 190, 110, 0.75);
}

/* hero eyebrow chip — small, subtle pill above the title */
.hero-chip {
  display: inline-block;
  margin-bottom: 1.9rem;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(220, 190, 110, 0.7);
}

/* no hairline divider above the kinetic (octagon) band */
.after-scrolly > .section-kinetic + *::before,
.after-scrolly > .section-kinetic::before { display: none; }

/* four-bars (The Astrolaabh Standard) icons — distinct from the USP set:
   a solid gold-tinted seal tile with a duotone glyph, no idle sheen */
.usp-ico--std {
  background: rgba(249, 245, 235, 0.72);
  border-color: rgba(138, 106, 34, 0.45);
}
.usp-ico--std i { color: #8a6a22; }

/* the .after-scrolly > * { position: relative } rule above was overriding the
   fixed leaf overlay — restore fixed with a more specific selector */
.after-scrolly > .leaf-float { position: fixed; }

/* ============================================================
   USP scene — flanked layout for readability over the busy
   certificate frame: title top-centre, two bullets left + two
   right, white scrims feathering in from each edge (centre clear
   for the hand). Overrides the default centred grid layout.
   ============================================================ */
.sc-scene--flank { display: block !important; padding: 0 !important; }

.usp-scrim {
  position: absolute;
  top: 0; bottom: 0;
  width: 46%;
  z-index: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  -webkit-mask: linear-gradient(to right, #000 55%, transparent 100%);
          mask: linear-gradient(to right, #000 55%, transparent 100%);
}
.usp-scrim--l {
  left: 0;
  background: linear-gradient(to right,
    rgba(249, 246, 236, 0.99) 0%, rgba(249, 246, 236, 0.97) 40%,
    rgba(249, 246, 236, 0.6) 72%, rgba(249, 246, 236, 0) 100%);
}
.usp-scrim--r {
  right: 0;
  transform: scaleX(-1);
  background: linear-gradient(to right,
    rgba(249, 246, 236, 0.99) 0%, rgba(249, 246, 236, 0.97) 40%,
    rgba(249, 246, 236, 0.6) 72%, rgba(249, 246, 236, 0) 100%);
}

.sc-scene--flank .usp-head {
  position: absolute;
  top: calc(var(--nav-h, 88px) + 4vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  max-width: min(46rem, 88vw);
}
.sc-scene--flank .usp-eyebrow { color: #a1793a; }
.sc-scene--flank .usp-title { color: #20251a; }

.usp-side {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(250px, 30vw, 430px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.4vh, 2rem);
}
.usp-side--l { left: clamp(1.5rem, 4vw, 4.5rem); }
.usp-side--r { right: clamp(1.5rem, 4vw, 4.5rem); }

/* readable ink on the white scrims, regardless of the frame-brightness var */
.sc-scene--flank .usp-rtext h3 { color: #20251a; }
.sc-scene--flank .usp-rtext p { color: rgba(32, 37, 26, 0.72); }

/* ---- flank USP: de-boxed, subtler, more readable ----
   No tiles. The icon becomes a quiet gold glyph; each point is led by a thin
   gold hairline rather than a bordered box, and rows breathe with more air. */
.sc-scene--flank .usp-side { gap: clamp(1.6rem, 3.2vh, 2.6rem); }
.sc-scene--flank .usp-row {
  border-top: 0;
  padding: 0;
  align-items: start;
  gap: 0.85rem;
  grid-template-columns: auto 1fr;
}
.sc-scene--flank .usp-ico {
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: #a1793a;
  font-size: 1.45rem;
  animation: none;
  margin-top: 0.1rem;
}
.sc-scene--flank .usp-ico::after { display: none; }
.sc-scene--flank .usp-row:hover .usp-ico {
  transform: none;
  background: none;
  border: 0;
  box-shadow: none;
  color: #8a5f22;
}
/* a hairline gold rule under each heading — the accent, in place of a box */
.sc-scene--flank .usp-rtext h3 {
  display: inline-block;
  padding-bottom: 0.32rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(161, 121, 58, 0.35);
}
.sc-scene--flank .usp-rtext p { line-height: 1.5; }

/* stack on small screens: full scrim, single column under the title */
@media (max-width: 860px) {
  .usp-scrim { width: 100%; background: rgba(250, 247, 238, 0.9); }
  .sc-scene--flank .usp-head { position: static; transform: none; padding: calc(var(--nav-h, 88px) + 3vh) 1.4rem 1rem; max-width: 100%; }
  .usp-side { position: static; transform: none; width: auto; padding: 0 1.4rem; }
  .usp-side--r { margin-top: 1rem; }
}

/* faint white halo so the flank text stays crisp over any frame bleed */
.sc-scene--flank .usp-rtext h3,
.sc-scene--flank .usp-rtext p,
.sc-scene--flank .usp-title,
.sc-scene--flank .usp-eyebrow {
  text-shadow: 0 1px 6px rgba(249, 246, 236, 0.9), 0 0 2px rgba(249, 246, 236, 0.9);
}
