/* =============================================
   EarlyBird section styles
   Hero dawn scene, trust bar, services split explorer,
   about + dashboard mock, why ledger, journey tweaks,
   compare, pricing, proof band, FAQ daybreak sheet,
   contact, footer. Loads last, after marble-elements.css.
   ============================================= */

/* =============================================
   1. Hero: the dawn scene
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 120px;
  overflow: hidden;
  background: var(--sky-top);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

.hero__badge {
  margin-bottom: 26px;
}

.hero__h1 {
  max-width: 13em;
  margin-bottom: 26px;
}

/* SplitText word masks: descender-safe clip (site.js builds these) */
.h1-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__sub {
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero__proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.face-mono {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 9%, transparent);
  border: 2px solid var(--ink);
  margin-left: -10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero__faces {
  display: flex;
  flex-shrink: 0;
}

.hero__faces .face-mono:first-child {
  margin-left: 0;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 14px;
}

.hero__proof-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__proof-link:hover {
  color: var(--paper);
}

/* ---- Scenery layer (decorative, aria-hidden) ---- */
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-top) 55%, var(--sky-glow) 100%);
}

/* dawnRise: base styles ARE the end state, the keyframe animates
   from a lower, dimmer start, so reduced motion and no-JS render
   the finished dawn with zero extra rules. */
.hero__glowwrap {
  position: absolute;
  inset: 0;
  animation: dawnRise 2.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dawnRise {
  from {
    transform: translateY(40px);
    opacity: 0.55;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: radial-gradient(120% 100% at 22% 100%, color-mix(in srgb, var(--sun) 10%, transparent) 0%, transparent 55%);
}

.hero__sunwrap {
  position: absolute;
  left: 16%;
  bottom: 120px;
  width: 130px;
  height: 130px;
}

.hero__sun {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 90px color-mix(in srgb, var(--sun) 40%, transparent);
}

.hero__sunring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sun) 55%, transparent);
  opacity: 0;
  animation: sunRing 5s ease-out infinite;
}

.hero__sunring--2 {
  animation-delay: 2.5s;
}

@keyframes sunRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  80% {
    transform: scale(1.9);
    opacity: 0;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ---- Clouds: paper-tint blobs on slow drift loops.
   Negative delays start each one mid-flight. ---- */
.hero__clouds {
  position: absolute;
  inset: 0;
}

.hero__cloud {
  position: absolute;
  color: color-mix(in srgb, var(--paper) 6%, transparent);
  animation: cloudDrift linear infinite;
}

.hero__clouds--near .hero__cloud {
  color: color-mix(in srgb, var(--paper) 9%, transparent);
}

.hero__cloud--1 {
  top: 16%;
  animation-duration: 105s;
  animation-delay: -20s;
}

.hero__cloud--2 {
  top: 30%;
  animation-duration: 120s;
  animation-delay: -70s;
}

.hero__cloud--3 {
  top: 10%;
  animation-duration: 75s;
  animation-delay: -12s;
}

.hero__cloud--4 {
  top: 40%;
  animation-duration: 90s;
  animation-delay: -55s;
}

@keyframes cloudDrift {
  from {
    transform: translateX(-320px);
  }

  to {
    transform: translateX(calc(100vw + 320px));
  }
}

/* ---- Hills: three ink-step silhouettes ---- */
.hero__hill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.hero__hill--back {
  height: 220px;
  z-index: 2;
}

.hero__hill--mid {
  height: 170px;
  z-index: 3;
}

.hero__hill--front {
  height: 120px;
  z-index: 4;
}

/* ---- The bird: parallax > drift > swoop > float nesting so CSS
   loops and the GSAP swoop never write to the same transform ---- */
.hero__bird-par {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hero__bird-drift {
  position: absolute;
  left: 10%;
  top: 22%;
  animation: birdDrift 40s ease-in-out infinite alternate;
}

.hero__bird-float {
  animation: birdFloat 6s ease-in-out infinite;
}

.hero__bird {
  color: var(--accent);
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--accent) 25%, transparent));
}

/* the swoop layer is GSAP scope only */
.hero--swooping .hero__bird-drift,
.hero--swooping .hero__bird-float {
  animation-play-state: paused;
}

@keyframes birdDrift {
  from {
    transform: translateX(0) translateY(0);
  }

  to {
    transform: translateX(46vw) translateY(-40px);
  }
}

@keyframes birdFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

/* ---- Dust motes (spans injected by site.js, desktop only) ---- */
.hero__dust {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.hero__dust span {
  position: absolute;
  bottom: 10%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 40%, transparent);
  opacity: 0;
  animation: dustRise linear infinite;
}

@keyframes dustRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  12% {
    opacity: 0.45;
  }

  85% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-52vh) translateX(26px);
    opacity: 0;
  }
}

/* ---- The worm (easter egg, injected by site.js) ---- */
.hero__worm {
  position: absolute;
  z-index: 4;
  transform: scale(0);
}

.hero__worm.pop {
  animation: wormPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wormPop {
  from {
    transform: scale(0) rotate(-10deg);
  }

  to {
    transform: scale(1) rotate(0deg);
  }
}

/* the hero receives clicks for the easter egg */
.hero {
  cursor: default;
}

/* ---- Hero mobile: sun + 2 hills + 1 cloud, nothing else ---- */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 90px;
  }

  .hero__cloud--2,
  .hero__cloud--3,
  .hero__cloud--4 {
    display: none;
  }

  .hero__hill--mid {
    display: none;
  }

  .hero__sunwrap {
    width: 92px;
    height: 92px;
    bottom: 90px;
    left: 10%;
  }

  .hero__bird-drift {
    top: 16%;
  }

  .hero__sub {
    font-size: 16px;
  }

  .hero__proof {
    font-size: 13.5px;
  }
}

/* =============================================
   2. Trust bar
   ============================================= */
.trust-bar {
  padding: 64px 0 70px;
  background: var(--ink);
}

.trust-bar__heading {
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 36px;
}

/* cleaned, content-trimmed logos: fit each in a uniform box (height + width
   caps) so the row reads big and balanced. object-fit keeps ratios intact. */
.lmarquee__track img {
  max-height: 68px;
  max-width: 172px;
  object-fit: contain;
}

.lmarquee__track {
  gap: 76px;
}

@media (max-width: 768px) {
  .trust-bar {
    padding: 48px 0 52px;
  }

  .lmarquee__track {
    gap: 52px;
  }

  .lmarquee__track img {
    max-height: 54px;
    max-width: 140px;
  }
}

/* =============================================
   3. Services: the split explorer
   Server markup = the fully expanded list (the no-JS
   and crawler view). site.js section 4b adds
   .svcx--split (>=861px: rows left, one sticky preview
   panel right) or .svcx--acc (accordion) plus .is-active
   on the current row + panel. Vignette scenes ship in
   their finished state: intro animations live in the
   motion-safe block at the end of this section and only
   run when the panel is active and .svcx is .visible.
   ============================================= */
.svcx__list {
  border-bottom: 1px solid var(--line);
}

.svcx__row {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.2;
}

.svcx__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 8px;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  font: inherit;
  letter-spacing: 1px;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.svcx__btn:hover {
  color: var(--paper);
}

/* active row: accent hairline over the row's bottom edge */
.svcx__btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.svcx__btn.is-active {
  color: var(--paper);
}

.svcx__btn.is-active::after {
  transform: scaleX(1);
}

.svcx__icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--faint);
  transition: color 0.3s ease;
}

.svcx__btn:hover .svcx__icon,
.svcx__btn.is-active .svcx__icon {
  color: var(--accent);
}

.svcx__idx {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.svcx__chev {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(-45deg); /* points right (split mode default) */
  transition: transform 0.3s ease, border-color 0.3s ease;
  margin-right: 4px;
}

.svcx__btn.is-active .svcx__chev {
  border-color: var(--accent);
}

/* panel base = expanded under its row (no-JS view) */
.svcx__card {
  padding: 10px 8px 34px;
}

.svcx__blurb {
  font-size: 18px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--paper) 86%, transparent);
  max-width: 560px;
  margin-bottom: 22px;
}

/* ---- accordion mode (JS on, < 861px): rows toggle their panel
   inline via the 0fr/1fr grid trick ---- */
.svcx--acc .svcx__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.svcx--acc .svcx__panel.is-active {
  grid-template-rows: 1fr;
}

.svcx--acc .svcx__inner {
  min-height: 0;
  overflow: hidden;
}

.svcx--acc .svcx__chev {
  transform: rotate(45deg); /* points down when closed */
  margin-top: -4px;
}

.svcx--acc .svcx__btn.is-active .svcx__chev {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* ---- split mode (JS on, >= 861px): rows fill column 1, every
   panel stacks into the same column-2 area, only the active one
   visible, its card sticky while the rows scroll ---- */
.svcx--split .svcx__list {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  column-gap: 60px;
  border-bottom: 0;
}

.svcx--split .svcx__row {
  grid-column: 1;
}

.svcx--split .svcx__row:last-of-type .svcx__btn {
  border-bottom: 1px solid var(--line);
}

.svcx--split .svcx__panel {
  grid-column: 2;
  grid-row: 1 / span 6;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.svcx--split .svcx__panel.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 0.45s ease 0.08s, visibility 0s;
}

.svcx--split .svcx__inner {
  position: sticky;
  top: 104px;
}

.svcx--split .svcx__card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.svcx--split .svcx__blurb {
  font-size: 19px;
}

/* ---- vignette scenes: fixed height reserves the space (no CLS) ---- */
.svcx__scene {
  position: relative;
  height: 220px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

/* shared caption chip, bottom right of a scene */
.scene-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--r-pill);
  padding: 6px 13px;
}

/* Technical SEO: the audit terminal */
.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.term__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 22%, transparent);
}

.term__title {
  margin-left: 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.term__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 16px;
}

.term__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.term__line::before {
  content: ">";
  color: var(--faint);
}

.term__cmd {
  display: inline-block;
  white-space: nowrap;
}

.term__ok {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.term__pass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--r-pill);
  padding: 6px 13px;
}

.term__tick path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* eCommerce SEO: product card + rising rank chip + bars */
.svcx__scene--shop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.shop__card {
  position: relative;
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: color-mix(in srgb, var(--white) 3%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
}

.shop__img {
  height: 54px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--white) 6%, transparent);
  display: grid;
  place-items: center;
  color: var(--faint);
}

.shop__line {
  height: 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 14%, transparent);
}

.shop__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--paper);
}

.shop__rank {
  position: absolute;
  top: -13px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  padding: 5px 11px;
}

.shop__bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 112px;
}

.shop__bar {
  width: 18px;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: color-mix(in srgb, var(--paper) 14%, transparent);
  transform-origin: bottom;
}

.shop__bar--hot {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

/* Local SEO: map pin with pulsing rings */
.map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
}

.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -85%);
  color: var(--accent);
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent));
}

/* rings render only while the vignette animates (sunring pattern) */
.map__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0;
}

/* SMB SEO: storefront + growth sparkline */
.svcx__scene--store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.store__front {
  color: var(--muted);
}

.store__awn {
  stroke: var(--accent);
}

.store__spark {
  width: 150px;
  height: 82px;
  overflow: visible;
}

.store__sparkline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.store__dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
}

/* SEO Content Writing: skeleton page filling in */
.svcx__scene--doc {
  display: grid;
  place-items: center;
}

.doc__page {
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: color-mix(in srgb, var(--white) 3%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.doc__title {
  height: 12px;
  width: 62%;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 26%, transparent);
}

.doc__line {
  height: 7px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 12%, transparent);
}

.doc__line--kw {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--paper) 12%, transparent) 0 42%,
    color-mix(in srgb, var(--accent) 75%, transparent) 42% 74%,
    color-mix(in srgb, var(--paper) 12%, transparent) 74%);
}

.doc__wipe {
  transform-origin: left;
}

/* Link Building: nodes wiring up */
.svcx__scene--net .net {
  display: block;
  width: 100%;
  height: 100%;
}

.net__link {
  stroke: color-mix(in srgb, var(--accent) 55%, transparent);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.net__node {
  fill: var(--ink);
  stroke: var(--muted);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
}

.net__node--hub {
  stroke: var(--accent);
  stroke-width: 2;
}

/* ---- scene intro animations: motion-safe only, keyed to the
   active panel once the explorer has revealed. Base styles above
   are the finished state, so reduced motion, no-JS and crawlers
   always see the composed scene. Re-adding .is-active (tab swap
   or auto-advance) restarts every intro. ---- */
@media (prefers-reduced-motion: no-preference) {
  .svcx.visible .svcx__panel.is-active .term__cmd {
    animation: termType 0.55s steps(18, end) both;
    animation-delay: calc(var(--i, 0) * 0.5s + 0.15s);
  }

  .svcx.visible .svcx__panel.is-active .term__ok {
    animation: sceneIn 0.3s ease both;
    animation-delay: calc(var(--i, 0) * 0.5s + 0.62s);
  }

  .svcx.visible .svcx__panel.is-active .term__pass {
    animation: scenePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 0.5s + 0.3s);
  }

  .svcx.visible .svcx__panel.is-active .term__tick path {
    animation: sceneDraw 0.45s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.5s + 0.55s);
  }

  .svcx.visible .svcx__panel.is-active .shop__bar {
    animation: sceneRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.14s + 0.25s);
  }

  .svcx.visible .svcx__panel.is-active .shop__rank {
    animation: scenePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.95s;
  }

  .svcx.visible .svcx__panel.is-active .map__pin {
    animation: mapDrop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.2s;
  }

  .svcx.visible .svcx__panel.is-active .map__ring {
    animation: mapRing 2.6s ease-out 0.7s infinite;
  }

  .svcx.visible .svcx__panel.is-active .map__ring--2 {
    animation-delay: 2s;
  }

  .svcx.visible .svcx__panel.is-active .store__sparkline {
    animation: sceneDraw 1.1s ease-out both 0.3s;
  }

  .svcx.visible .svcx__panel.is-active .store__dot {
    animation: scenePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both 1.35s;
  }

  .svcx.visible .svcx__panel.is-active .doc__wipe {
    animation: sceneWipe 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.16s + 0.2s);
  }

  .svcx.visible .svcx__panel.is-active .net__link {
    animation: sceneDraw 0.6s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.3s + 0.45s);
  }

  .svcx.visible .svcx__panel.is-active .net__node {
    animation: scenePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 0.3s + 0.85s);
  }

  .svcx.visible .svcx__panel.is-active .net__node--hub {
    animation-delay: 0.2s;
  }

  .svcx.visible .svcx__panel.is-active .scene-chip {
    animation: scenePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 1.5s;
  }
}

@keyframes termType {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -4% 0 0); }
}

@keyframes sceneIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scenePop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.6);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sceneDraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes sceneRise {
  from { transform: scaleY(0.06); }
  to { transform: scaleY(1); }
}

@keyframes sceneWipe {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes mapDrop {
  from {
    opacity: 0;
    transform: translate(-50%, -160%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -85%);
  }
}

@keyframes mapRing {
  0% {
    transform: scale(0.4);
    opacity: 0.6;
  }

  80% {
    transform: scale(1.9);
    opacity: 0;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .svcx__row {
    font-size: 21px;
  }

  .svcx__btn {
    padding: 18px 4px;
    gap: 14px;
  }

  .svcx__icon svg {
    width: 26px;
    height: 26px;
  }

  .svcx__card {
    padding: 6px 2px 26px;
  }

  .svcx__scene {
    height: 190px;
  }

  .svcx__scene--shop {
    gap: 20px;
  }

  .shop__bars {
    height: 96px;
  }

  .store__spark {
    width: 120px;
  }
}

/* =============================================
   4. About + dashboard mock
   ============================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about__copy p {
  color: var(--muted);
  margin-bottom: 20px;
}

.about__punch {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--paper) !important;
  line-height: 1.35;
}

.about__caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 440px;
}

/* ---- The SEranking dashboard mock. Base markup and styles are the
   IMPROVED end state: reduced-motion and no-JS users see the finished
   dashboard. site.js resets to the start state before each loop. ---- */
.dash {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.dash__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 3%, transparent);
}

.dash__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 22%, transparent);
}

.dash__url {
  margin-left: 10px;
  flex: 1;
  font-size: 12.5px;
  color: var(--faint);
  background: color-mix(in srgb, var(--white) 4%, transparent);
  border-radius: var(--r-pill);
  padding: 5px 14px;
}

.dash__stage {
  padding: 20px;
  transition: opacity 0.26s ease;
}

.dash__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dash__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--white) 4%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: 12.5px;
}

.dash__chip-label {
  color: var(--faint);
}

.dash__chip-val {
  color: var(--accent);
  font-weight: 700;
}

.dash__rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.dash__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
}

.dash__kw {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__track {
  height: 7px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 6%, transparent);
  overflow: hidden;
  display: block;
}

.dash__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform: scaleX(var(--e));
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash--start .dash__fill {
  transform: scaleX(var(--s));
  transition: none;
}

.dash__pos {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: var(--r-pill);
  padding: 3px 0;
}

.dash__pop {
  position: absolute;
  top: -30px;
  right: 0;
  z-index: 2;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
}

.dash__pop.pop {
  animation: stickerPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stickerPop {
  from {
    transform: scale(0) rotate(-5deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.dash__sparkwin {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.dash__spark {
  display: block;
  width: 100%;
  height: 70px;
}

.dash__sparkarea {
  fill: color-mix(in srgb, var(--accent) 13%, transparent);
}

.dash__sparkline {
  stroke: var(--accent);
  stroke-width: 2;
}

/* curtain reveals the sparkline; base = fully revealed */
.dash__curtain {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash--start .dash__curtain {
  transform: scaleX(0.6);
  transition: none;
}

@media (max-width: 1000px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  /* three rows are plenty on a phone */
  .dash__row:nth-child(n+5) {
    display: none;
  }

  .dash__chips {
    gap: 7px;
  }
}

/* =============================================
   5. Why choose EarlyBird: the alternating ledger
   Six full-width rows around a center spine. Ghosted
   Degular numerals carry the count; copy alternates
   sides via nth-of-type. The spine ships fully drawn
   (base = end state); site.js 6d rewinds it and fires
   a once-only draw on entry (deliberately NOT scrubbed:
   the journey trail keeps the page's single scrub).
   The stat band keeps the three count-ups.
   ============================================= */
.ledger {
  position: relative;
  margin-bottom: 84px;
}

.ledger__spine {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 2px;
  margin-left: -1px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  opacity: 0.75;
  transform-origin: top;
}

.ledger__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 76px;
  align-items: center;
  padding: 46px 0;
}

/* node dot where each row meets the spine */
.ledger__row::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
}

.ledger__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(110px, 11vw, 168px);
  line-height: 0.85;
  letter-spacing: 2px;
  color: color-mix(in srgb, var(--white) 5%, transparent);
  user-select: none;
}

.ledger__body {
  max-width: 470px;
}

.ledger__body h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.ledger__body p {
  font-size: 15.5px;
  color: var(--muted);
}

/* odd rows: numeral left, copy right; even rows swap */
.ledger__row:nth-of-type(odd) .ledger__num {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.ledger__row:nth-of-type(odd) .ledger__body {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.ledger__row:nth-of-type(even) .ledger__num {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.ledger__row:nth-of-type(even) .ledger__body {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

/* stat band: boxed card with hairline dividers */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 52px 24px;
  text-align: center;
}

.stat {
  padding: 0 18px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1;
  color: var(--accent);
}

.stat__num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .ledger {
    margin-bottom: 56px;
  }

  /* single column: numeral becomes a background watermark */
  .ledger__spine,
  .ledger__row::after {
    display: none;
  }

  .ledger__row {
    display: block;
    padding: 30px 0;
    border-top: 1px solid var(--line);
  }

  .ledger__num {
    position: absolute;
    top: 8px;
    right: 0;
    z-index: 0;
    font-size: 96px;
    pointer-events: none;
  }

  .ledger__body {
    position: relative;
    z-index: 1;
    max-width: none;
  }

  .stat-strip {
    grid-template-columns: 1fr;
    padding: 10px 22px;
  }

  .stat {
    padding: 26px 0;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* =============================================
   6. Journey trail: page-level tweaks over the port
   ============================================= */
.journey-trail {
  padding: 110px 0 120px;
}

.journey-trail .eyebrow {
  text-align: center;
}

/* solid accent line drawn over the dotted base by the site.js scrub */
.jt-path-draw {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.9;
}

/* =============================================
   7. Comparison band
   ============================================= */
.compare__h2 {
  text-align: center;
  max-width: 15em;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   8. Pricing
   ============================================= */
.pricing__note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 56px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px 34px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.price-card--hot {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 7%, transparent);
}

.price-card__pill {
  position: absolute;
  top: -15px;
  left: 34px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--r-pill);
}

.price-card__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.price-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 4.6vw, 58px);
  line-height: 1;
  color: var(--paper);
  margin-bottom: 14px;
}

/* fixed-width numeral span: the count-up never shifts layout */
.price__num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.price__cur {
  font-size: 0.62em;
  vertical-align: 0.28em;
  margin-right: 2px;
}

.price__per {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  margin-left: 4px;
}

.price-card__tagline {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 3.2em;
}

.price-card__features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.price-card__features li {
  position: relative;
  font-size: 15px;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  padding: 9px 0 9px 28px;
  border-top: 1px solid color-mix(in srgb, var(--white) 6%, transparent);
}

.price-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.price-card__cta {
  align-self: stretch;
}

.price-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 46px;
}

.price-badge {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  background: color-mix(in srgb, var(--white) 5%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 20px;
}

/* Advanced pops 4% on desktop only */
@media (min-width: 861px) {
  .price-card--hot {
    transform: scale(1.04);
  }

  .price-card--hot:hover {
    transform: scale(1.04) translateY(-6px);
  }
}

@media (max-width: 1000px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* stacked with Advanced on top per the blueprint */
  .price-card--hot {
    order: -1;
  }

  .price-card__tagline {
    min-height: 0;
  }
}

/* =============================================
   9. Proof band (testimonials)
   ============================================= */
.proof {
  padding-bottom: 40px;
}

.proof__h2 {
  text-align: center;
  max-width: 14em;
  margin-left: auto;
  margin-right: auto;
}

.proof__sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 56px;
}

/* =============================================
   10. FAQ: the daybreak sheet
   ============================================= */
.faq-band {
  background: var(--ink);
  padding-top: 60px;
}

/* seam-cover gradient: softens the join where the paper rises out of the ink */
.faq-seam {
  height: 70px;
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 92%, var(--paper)) 100%);
}

.faq-sheet {
  background: var(--paper);
  border-radius: 30px 30px 0 0;
  padding: 100px 0 110px;
  margin-top: -30px;
  position: relative;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.35);
}

.faq-sheet h2 {
  color: var(--ink);
  margin-bottom: 48px;
}

.faq-sheet .accent {
  /* On the light daybreak sheet the neon accent vanishes (2.17:1), so darken the
     brand green toward ink for a readable deep-green full stop. Palette-derived. */
  color: color-mix(in srgb, var(--accent-deep) 50%, var(--ink));
}

.faq-list {
  max-width: 860px;
}

.faq-item {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 17.5px;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent-deep);
}

.faq-item__chev {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -4px;
}

.faq-item[open] .faq-item__chev {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* site.js keeps [open] set while the close eases shut; the
   .closing class flips the chevron back immediately */
.faq-item.closing .faq-item__chev {
  transform: rotate(45deg);
  margin-top: -4px;
}

.faq-item__body {
  padding: 0 26px;
}

.faq-item__body p,
.faq-item__body ul {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--faint);
  margin-bottom: 14px;
}

.faq-item__body ul {
  list-style: disc;
  padding-left: 22px;
  list-style-position: outside;
}

.faq-item__body li {
  margin-bottom: 8px;
}

.faq-item__body > :last-child {
  padding-bottom: 24px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-sheet {
    padding: 64px 0 72px;
  }

  .faq-item summary {
    font-size: 16px;
    padding: 18px 20px;
  }

  .faq-item__body {
    padding: 0 20px;
  }
}

/* =============================================
   11. Contact
   ============================================= */
.contact {
  background: var(--ink);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.contact__copy p {
  color: var(--muted);
  max-width: 460px;
}

.contact__bird {
  color: var(--accent);
  margin-top: 34px;
}

.contact__form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px 36px;
}

.field {
  margin-bottom: 20px;
}

/* Turnstile widget. Sits between the last field and the submit button. */
.cf-turnstile {
  margin-bottom: 20px;
  min-height: 65px;
}

/* Honeypot wrapper. Off-screen, not display:none, and never announced.
   See the comment on the markup in index.html before changing this. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Two-up pairs (name/email, company/phone). The contact grid has
   already gone single-column by 1000px, so the form is full width
   and the pairs still fit; they stack at 620px. */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 15.5px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea {
  border-radius: var(--r-sm);
  resize: vertical;
  min-height: 130px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field__select {
  position: relative;
}

.field__select::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--paper);
}

.field select option {
  color: var(--ink);
  background: var(--white);
}

.contact__submit {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.contact__submit .btn__check {
  position: absolute;
  opacity: 0;
}

/* JS-off / reduced-motion success state: simple swap */
.contact__submit.is-done .btn__label {
  opacity: 0;
}

.contact__submit.is-done .btn__check {
  opacity: 1;
}

.contact__submit[disabled] {
  cursor: default;
}

.form__status {
  margin-top: 16px;
}

.form__msg {
  font-size: 14.5px;
  line-height: 1.55;
}

.form__msg--ok {
  color: var(--accent);
}

.form__msg--err {
  color: var(--paper);
}

@media (max-width: 1000px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact__form {
    padding: 30px 22px;
  }
}

/* =============================================
   12. Footer
   ============================================= */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
}

.footer__brand img {
  width: 199px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 22px;
}

.footer__sh {
  font-size: 15px;
  color: var(--muted);
  max-width: 340px;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.footer__col a,
.footer__col address {
  display: block;
  font-size: 15.5px;
  color: var(--paper);
  margin-bottom: 12px;
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__strip {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 14px 20px;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 50px;
  }

  .footer {
    padding-top: 56px;
  }
}

/* =============================================
   13. Reduced motion: scenery and loops freeze in
   composed, fully visible end states. Never a
   nuclear kill: reveals and focus states survive
   via the marble-elements.css block.
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__glowwrap,
  .hero__sunring,
  .hero__cloud,
  .hero__bird-drift,
  .hero__bird-float,
  .hero__dust span,
  .hero__worm.pop,
  .dash__pop.pop {
    animation: none;
  }

  /* static dawn: bird rests mid-sky, clouds at their base spots,
     sun risen (glowwrap base styles are already the end state) */
  .hero__bird-drift {
    transform: translateX(18vw);
  }

  .hero__cloud--1 {
    transform: translateX(30vw);
  }

  .hero__cloud--2 {
    transform: translateX(62vw);
  }

  .hero__cloud--3 {
    transform: translateX(56vw);
  }

  .hero__cloud--4 {
    transform: translateX(12vw);
  }

  /* sticker-style chips render pre-popped */
  .hero__worm.pop {
    transform: scale(1);
  }

  .dash__pop,
  .dash__pop.pop {
    transform: scale(1);
    opacity: 1;
  }

  /* dashboard holds its improved end state */
  .dash__fill,
  .dash--start .dash__fill {
    transform: scaleX(var(--e));
    transition: none;
  }

  .dash__curtain,
  .dash--start .dash__curtain {
    transform: scaleX(0);
    transition: none;
  }

  .dash__stage {
    transition: none;
  }

  .faq-item__chev,
  .field input,
  .field select,
  .field textarea,
  .svcx__btn,
  .svcx__btn::after,
  .svcx__chev,
  .svcx__panel,
  .price-card,
  .tcard,
  .mcard {
    transition-duration: 0.01s;
  }
}

/* =============================================
   14. 3D hero upgrade (body.hero-3d)
   div#heroCanvas is created at runtime by
   assets/js/hero-scene.js (gated module script at
   the end of index.html: desktop >= 1024px, motion
   safe, no saveData, WebGL). It mounts as the LAST
   child of #Hero at z-index 1: painted above the
   CSS scenery (.hero__scene, z-index 1, earlier in
   DOM order) and below the text (.hero__inner,
   z-index 2), so the headline stacking never moves.
   body.hero-3d = init succeeded: the canvas fades in
   over 900ms while the CSS scenery fades out, then
   goes visibility hidden. The scenery STAYS in the
   DOM: removing the class restores it instantly
   (the base state carries no transition).
   ============================================= */
#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* clicks fall through; CTAs unaffected */
  opacity: 0;
  transition: opacity 0.9s ease;
}

#heroCanvas canvas {
  display: block;
}

body.hero-3d #heroCanvas {
  opacity: 1;
}

body.hero-3d .hero__scene {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

/* stop the hidden scenery's animation work entirely
   (clouds, sun rings, dawn glow, bird drift, dust) */
body.hero-3d .hero__scene * {
  animation-play-state: paused;
}

/* eagle model attribution: tiny faint line in the footer credits */
.footer__model-credit {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* =============================================
   15. Hero proof row: real reviewer face photos
   (replacing the initials monograms). Same
   overlap + ink border cutout as .face-mono.
   ============================================= */
.face-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  margin-left: -10px;
  background: color-mix(in srgb, var(--white) 9%, transparent);
}

.hero__faces .face-photo:first-child {
  margin-left: 0;
}

/* =============================================
   16. Minimal pre-3D hero base
   Set pre-paint by the head probe (html.hero-3d-pending) when the
   three.js hero is expected: only the sky gradient and the warm
   horizon glow paint; sun disc, rings, clouds, hills, bird and dust
   never flash before the 3D scene fades in. Any 3D failure removes
   the class and the full CSS dawn appears.
   ============================================= */
html.hero-3d-pending .hero__scene > :not(.hero__glowwrap) {
  display: none;
}

html.hero-3d-pending .hero__sunwrap {
  display: none;
}

/* gentler arrival: slightly longer canvas fade when coming from the
   minimal base (overrides the 900ms default set in section 14) */
html.hero-3d-pending #heroCanvas {
  transition-duration: 1.4s;
}
