/* =========================================================
   ScaleSpa landing page
   All brand values come from tokens.css.
   Order: base, type, layout, components, then one block per
   page section in page order. Each section block only styles
   classes prefixed with that section's name, so a section can
   be lifted into its own GHL Custom Code block.
   ========================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--void);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--s2); top: -120px; z-index: 100;
  padding: 12px 18px; background: var(--void); color: var(--white);
  font-family: var(--font-display); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: var(--s2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); line-height: 1; }
.h2 { font-size: var(--fs-h2); line-height: 1.05; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; }
.small { font-size: var(--fs-small); }
.muted { color: var(--void-72); }
.eyebrow {
  display: block;
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1.2;
  color: var(--electric-text);           /* never gold on white */
}
.text-link {
  color: var(--void);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--electric);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--electric-text); }

/* Dark grounds */
.on-dark { color: var(--white); }
.on-dark .eyebrow { color: var(--gold); }  /* gold on void is allowed, 10.8:1 */
.on-dark .muted { color: var(--text-on-dark); }
.on-dark .text-link { color: var(--white); }
.on-dark .text-link:hover { color: var(--electric); }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--margin-outer));
  margin-inline: auto;
}
.section { position: relative; padding-block: var(--section-pad); overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
/* Grounds. Each carries a grain texture in its own background (static).
   Light grounds draw their grid in ::before so it can drift on scroll.
   Dark grounds draw the grid here, so the cursor highlight lines up with it.
   The moving layers live in the EFFECTS block at the end of this file. */
.section--white { background: var(--grain-dark), var(--white); }
.section--sky { background: var(--grain-dark), var(--sky), var(--white); }
.section--starlight { background: var(--grain-dark), var(--starlight); }
.section--void {
  background-color: var(--void);
  background-image:
    var(--grain-light),
    linear-gradient(to right, var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 180px 180px, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
  background-position: 0 0, center top, center top;
}
.section--space {
  background-image:
    var(--grain-light),
    linear-gradient(to right, var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-dark) 1px, transparent 1px),
    var(--space);
  background-size: 180px 180px, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
  background-position: 0 0, center top, center top, 0 0;
}

.section-head { max-width: 46rem; margin-bottom: var(--s6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: var(--s3); }

/* ---------- Components ---------- */

/* Button: gold, Void label, square, hover #FFC633 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 56px; padding: 0 28px;
  background: var(--gold); color: var(--void);
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-label); line-height: 1.1;
  text-align: center; text-decoration: none;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--gold-hover); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn-note { margin-top: var(--s2); font-size: var(--fs-small); }

/* Check list: Electric icons */
.check-list li { position: relative; padding-left: 34px; }
.check-list li + li { margin-top: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.18em;
  width: 22px; height: 22px;
  background: var(--electric);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.x-list li { position: relative; padding-left: 34px; }
.x-list li + li { margin-top: 14px; }
.x-list li::before {
  content: ""; position: absolute; left: 1px; top: 0.25em;
  width: 18px; height: 18px;
  background: var(--void-56);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Chip (square) */
.chip {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line-dark);
  font-family: var(--font-display); font-weight: 500; font-size: 0.875rem;
}

/* Icon box */
.icon-box {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--electric-wash);
  color: var(--electric);
}
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; }

/* Photo placeholder: replace each with a real photo.
   Real people in real med spas, one warm light, room for a headline. No stock. */
.photo-slot {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  width: 100%;
  padding: var(--s3);
  background:
    linear-gradient(160deg, rgba(5, 5, 8, 0.06), rgba(2, 151, 222, 0.10)),
    var(--starlight);
  border: 1px dashed var(--line-input);
  color: var(--void-72);
  font-size: var(--fs-small);
  line-height: 1.35;
}
.photo-slot::before {
  content: ""; position: absolute; top: var(--s3); left: var(--s3);
  width: 32px; height: 32px; background: currentColor; opacity: 0.6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.photo-slot strong { font-family: var(--font-display); font-weight: 500; color: var(--void); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.on-dark .photo-slot {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(2, 151, 222, 0.12)), var(--surface-dark);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-on-dark);
}
.on-dark .photo-slot strong { color: var(--white); }

/* Video placeholder (16:9): put the video iframe inside and it fills the box.
   The play mark is white, not gold: gold stays on the CTA, the logo mark and the Outline S. */
.video-slot {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 8px;
  /* No min-height here: with aspect-ratio it would set a minimum width and overflow phones.
     If the label text needs more room than 16:9 gives, the box grows taller on its own. */
  width: 100%; aspect-ratio: 16 / 9;
  padding: var(--s3);
  background: var(--surface-dark);   /* flat: the kit keeps gradients for whole-section grounds only */
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--text-on-dark);
  text-align: center; font-size: var(--fs-small); line-height: 1.4;
}
.video-slot::before {
  content: ""; width: 56px; height: 56px; margin-bottom: 6px;
  border: 2px solid var(--white); border-radius: 50%;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M23 18l16 10-16 10z' fill='black'/%3E%3Ccircle cx='28' cy='28' r='26' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M23 18l16 10-16 10z' fill='black'/%3E%3Ccircle cx='28' cy='28' r='26' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.video-slot strong { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; color: var(--white); }
.video-slot span { max-width: 30rem; }
.video-slot iframe, .video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Content or embed placeholder: a dashed panel that says what goes in it */
.embed-slot {
  display: grid; align-content: center; gap: 8px;
  padding: var(--s4);
  background: var(--white);
  border: 1px dashed var(--line-input);
  color: var(--void-72); font-size: var(--fs-small); line-height: 1.45;
}
.embed-slot strong { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; color: var(--void); }

/* Phone-style UI card: the only rounded element (28px) */
.ui-card {
  background: var(--white);
  color: var(--void);
  border-radius: var(--radius-ui);
  box-shadow: var(--shadow-ui);
}

/* Outline S graphic: the mark drawn as a 4px line, cropped by the edge.
   Max 2 per page, at least half the section tall, never behind body text. */
.outline-s {
  position: absolute; z-index: 0;
  aspect-ratio: 681.22 / 1000;
  color: var(--gold);
  pointer-events: none;
}
.outline-s svg { width: 100%; height: 100%; overflow: visible; }
.outline-s path { fill: none; stroke: currentColor; stroke-width: 4; vector-effect: non-scaling-stroke; }

/* =========================================================
   SECTION: header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
          backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: var(--header-h);
}
/* Logo: 140px minimum on screen; clear space = height of "THE" (about 18% of logo height) */
.site-header__logo { display: block; padding-block: 10px; flex: none; }
.site-header__logo img { width: 150px; height: auto; }
.site-nav { display: none; }
.site-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-small);
  text-decoration: none; color: var(--void);
}
.site-nav a:hover { color: var(--electric-text); }
@media (min-width: 1080px) {
  .site-nav { display: flex; gap: 32px; }
}
@media (max-width: 599px) {
  :root { --header-h: 68px; }
  .site-header__logo img { width: 140px; }
  .site-header .btn--sm { min-height: 42px; padding: 0 14px; font-size: 0.9375rem; }
}
@media (max-width: 359px) {
  /* Below 140px of room, the guidelines call for the mark alone */
  .site-header__logo img.logo-full { display: none; }
  .site-header__logo img.logo-mark { display: block; width: 28px; }
}
.site-header__logo img.logo-mark { display: none; }

/* =========================================================
   SECTION: hero
   ========================================================= */
.hero { padding-block: clamp(3rem, 1.5rem + 5vw, 7rem) var(--section-pad); }
.hero__grid { display: grid; gap: var(--s6); align-items: center; }
.hero__sub { margin-top: var(--s3); max-width: 36rem; }
.hero__cta { margin-top: var(--s5); }
.hero__ticks {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
}
.hero__ticks li + li { margin-top: 0; }
.hero__visual { position: relative; max-width: 30rem; width: 100%; margin-inline: auto; }
.hero__photo { aspect-ratio: 4 / 5; justify-content: flex-start; padding-top: 30%; }
.hero__chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: min(300px, 86%);
  padding: 12px 18px 12px 12px;
}
.hero__chip-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--electric-wash); color: var(--electric);
}
.hero__chip-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.hero__chip-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.hero__chip-text { display: block; margin-top: 2px; font-size: var(--fs-micro); line-height: 1.3; color: var(--void-72); }
.hero__chip--1 { top: 6%; left: 12px; }
.hero__chip--2 { top: 58%; right: 12px; }
.hero__chip--3 { bottom: 6%; left: 12px; }
.hero__outline { display: none; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .hero__copy { grid-column: 1 / span 7; }
  .hero__visual { grid-column: 9 / span 4; max-width: none; }
  .hero__chip--1 { left: -22%; }
  .hero__chip--2 { right: -12%; }
  .hero__chip--3 { left: -14%; }
  /* Sized by width so it never reaches the copy column, whatever the section height */
  .hero__outline { display: block; width: 46%; right: -12%; top: 50%; transform: translateY(-50%); opacity: 0.85; }
}

/* =========================================================
   SECTION: facts (proof strip)
   ========================================================= */
.facts { padding-block: var(--s6); border-bottom: 1px solid var(--line-light); }
.facts__grid { display: grid; gap: var(--s3) var(--gutter); }
@media (min-width: 480px) { .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); } }
.facts__value { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-stat); line-height: 1; letter-spacing: -0.02em; }
.facts__label { display: block; margin-top: 10px; font-size: var(--fs-small); }
@media (min-width: 900px) {
  .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__item + .facts__item { padding-left: var(--gutter); border-left: 1px solid var(--line-light); }
}

/* =========================================================
   SECTION: levers
   ========================================================= */
.levers__legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  margin: calc(var(--s5) * -1) 0 var(--s5);
  font-size: var(--fs-small);
}
.levers__key { display: inline-flex; align-items: center; gap: 10px; }
.levers__key::before { content: ""; width: 28px; height: 4px; background: var(--void); }
.levers__key--lead::before { background: var(--electric); }
.levers__grid { display: grid; gap: var(--gutter); counter-reset: lever; }
.levers__card {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s4) var(--s4) var(--s4);
  background: var(--starlight);
  border-top: 4px solid var(--void);
}
.levers__card--lead { border-top-color: var(--electric); }
.levers__num { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-small); color: var(--electric-text); }
.levers__card .h3 { margin-top: var(--s2); }
.levers__card p { margin-top: 10px; }
.levers__tag {
  align-self: flex-start;
  margin-top: var(--s3);
  padding: 6px 10px;
  background: var(--void); color: var(--white);
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-micro); line-height: 1.2;
}
@media (min-width: 700px) { .levers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .levers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   SECTION: included
   ========================================================= */
.included__top { display: grid; gap: var(--s6); align-items: center; }
.included__lead { margin-top: var(--s3); }
.included__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.included__cards { display: grid; gap: var(--gutter); margin-top: var(--s7); }
.included__card { padding: var(--s4); background: var(--panel-dark); border: 1px solid var(--line-dark); }
.included__card .h3 { margin-top: var(--s3); }
.included__card p { margin-top: 10px; }
.included__card .icon-box { background: rgba(2, 151, 222, 0.16); }
.included__cta { margin-top: var(--s5); }
@media (min-width: 700px) { .included__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .included__top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .included__copy { grid-column: 1 / span 6; }
  .included__visual { grid-column: 8 / span 5; }
}
@media (min-width: 1024px) { .included__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Chat mock (phone-style UI card) */
.chat { max-width: 420px; margin-inline: auto; overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-light); }
.chat__avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--starlight); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-micro);
}
.chat__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.chat__meta { display: block; font-size: var(--fs-micro); color: var(--void-72); }
.chat__badge {
  margin-left: auto; padding: 5px 10px; border-radius: 999px;
  background: var(--electric-wash); color: var(--electric-text);
  font-family: var(--font-display); font-weight: 500; font-size: 0.75rem; white-space: nowrap;
}
.chat__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #FAFBFD; }
.chat__msg { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.4; }
.chat__msg--in { align-self: flex-start; background: var(--starlight); border-bottom-left-radius: 6px; }
.chat__msg--out { align-self: flex-end; background: var(--void); color: var(--white); border-bottom-right-radius: 6px; }
.chat__link {
  display: block; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--white); color: var(--void);
}
.chat__link-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; }
.chat__link-url { display: block; font-size: 0.75rem; color: var(--electric-text); }
.chat__status {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 0.75rem; color: var(--void-72);
}
.chat__status svg { width: 14px; height: 14px; fill: none; stroke: var(--electric); stroke-width: 2.5; }
.chat__foot { padding: 14px 20px 18px; }
.chat__input { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 0.875rem; color: var(--void-56); }

/* =========================================================
   SECTION: feature rows (lead management, consults, retention)
   ========================================================= */
.feature__grid { display: grid; gap: var(--s6); align-items: center; }
.feature__text { margin-top: var(--s3); }
.feature__checks { margin-top: var(--s4); }
.feature__cta { margin-top: var(--s5); }
.feature__photo { aspect-ratio: 5 / 4; }
@media (min-width: 960px) {
  .feature__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .feature__copy { grid-column: 1 / span 5; }
  .feature__visual { grid-column: 7 / span 6; }
  .feature--reverse .feature__copy { grid-column: 8 / span 5; grid-row: 1; }
  .feature--reverse .feature__visual { grid-column: 1 / span 6; grid-row: 1; }
}

/* Pipeline mock (panel: square) */
.pipeline { padding: var(--s3); background: var(--starlight); border: 1px solid var(--line-light); }
.pipeline__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: var(--s2); }
.pipeline__title { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; }
.pipeline__note { font-size: 0.75rem; color: var(--void-72); }
.pipeline__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pipeline__col-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.8125rem;
}
.pipeline__col-head::before { content: ""; width: 8px; height: 8px; background: var(--electric); }
.pipeline__col:nth-child(4) .pipeline__col-head::before { background: var(--void); }
.pipeline__card { padding: 10px 12px; background: var(--white); border: 1px solid var(--line-light); }
.pipeline__card + .pipeline__card { margin-top: 8px; }
.pipeline__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; line-height: 1.25; }
.pipeline__src { display: block; margin-top: 2px; font-size: 0.6875rem; line-height: 1.3; color: var(--void-72); }
@media (min-width: 560px) { .pipeline__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* App mock (phone-style UI card) */
.app { width: min(320px, 100%); margin-inline: auto; padding: 22px 18px 26px; background: var(--white); }
.app__bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; }
.app__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--starlight); }
.app__hello { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.01em; }
.app__card { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--starlight); }
.app__card--void { background: var(--void); color: var(--white); }
.app__label { display: block; font-size: 0.75rem; color: var(--void-72); }
.app__card--void .app__label { color: var(--text-on-dark); }
.app__value { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.app__bar-track { height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(5, 5, 8, 0.1); }
.app__bar-fill { width: 66%; height: 100%; border-radius: 3px; background: var(--electric); }

/* =========================================================
   SECTION: roadmap (16 weeks)
   ========================================================= */
.roadmap__grid { display: grid; gap: var(--s6); align-items: start; }
.roadmap__steps { position: relative; }
.roadmap__step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s3); padding-bottom: var(--s5); }
.roadmap__step:last-child { padding-bottom: 0; }
.roadmap__step::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line-light);
}
.roadmap__step:last-child::before { display: none; }
.roadmap__marker {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--white); border: 2px solid var(--electric);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
}
.roadmap__step:first-child .roadmap__marker { background: var(--void); border-color: var(--void); color: var(--white); }
.roadmap__weeks { display: block; padding-top: 2px; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-small); color: var(--electric-text); }
.roadmap__step .h3 { margin-top: 6px; }
.roadmap__step p { margin-top: 8px; }
.roadmap__card { padding: var(--s4); background: var(--white); border: 1px solid var(--line-light); }
.roadmap__card-title { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); line-height: 1.05; letter-spacing: -0.02em; }
.roadmap__card-text { margin-top: var(--s2); }
.roadmap__metrics { margin-top: var(--s4); border-top: 1px solid var(--line-light); }
.roadmap__metric {
  display: flex; justify-content: space-between; gap: var(--s2);
  padding-block: 14px; border-bottom: 1px solid var(--line-light); font-size: var(--fs-small);
}
.roadmap__metric span:last-child { color: var(--void-72); white-space: nowrap; }
.roadmap__metric--total { font-family: var(--font-display); font-weight: 700; border-bottom: 0; }
.roadmap__metric--total span:last-child { color: var(--electric-text); }
@media (min-width: 960px) {
  .roadmap__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .roadmap__steps { grid-column: 1 / span 7; }
  .roadmap__aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + var(--s4)); }
}

/* =========================================================
   SECTION: why (how we work)
   ========================================================= */
.why__grid { display: grid; gap: var(--s5) var(--gutter); }
.why__item { padding-top: var(--s3); border-top: 2px solid var(--void); }
.why__item p { margin-top: 10px; }
@media (min-width: 700px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* =========================================================
   SECTION: guarantee
   ========================================================= */
.guarantee__grid { display: grid; }
.guarantee__list { display: grid; gap: 14px var(--gutter); margin-top: var(--s5); }
.guarantee__list li + li { margin-top: 0; }
.guarantee__list li { padding-block: 2px; }
.guarantee__note { margin-top: var(--s4); max-width: 38rem; }
.guarantee__cta { margin-top: var(--s5); }
.guarantee__outline { display: none; }
@media (min-width: 700px) { .guarantee__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .guarantee__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .guarantee__copy { grid-column: 6 / span 7; }
  .guarantee__outline { display: block; width: 46%; left: -14%; top: 50%; transform: translateY(-50%); opacity: 0.9; }
}

/* =========================================================
   SECTION: fit (who it's for)
   ========================================================= */
.fit__grid { display: grid; gap: var(--gutter); }
.fit__panel { padding: var(--s5) var(--s4); }
.fit__panel--yes { background: var(--starlight); }
.fit__panel--no { background: var(--white); border: 1px solid var(--line-light); }
.fit__panel .h3 { margin-bottom: var(--s3); }
@media (min-width: 860px) {
  .fit__grid { grid-template-columns: 7fr 5fr; }
  .fit__panel { padding: var(--s5); }
}

/* =========================================================
   SECTION: testimonials (hidden until real reviews exist)
   ========================================================= */
.testimonials__grid { display: grid; gap: var(--gutter); }
.testimonials__card { padding: var(--s4); background: var(--starlight); }
.testimonials__quote { font-size: var(--fs-lead); line-height: 1.4; }
.testimonials__who { margin-top: var(--s3); font-size: var(--fs-small); }
.testimonials__who strong { display: block; font-family: var(--font-display); }
@media (min-width: 900px) { .testimonials__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   SECTION: faq
   ========================================================= */
.faq__list { max-width: 50rem; margin-inline: auto; border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: var(--s3) 48px var(--s3) 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--electric);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 48px var(--s3) 0; max-width: 42rem; }
.faq__contact { margin-top: var(--s5); text-align: center; }

/* =========================================================
   SECTION: book (form)
   ========================================================= */
.book__grid { display: grid; gap: var(--s6); align-items: start; }
.book__lead { margin-top: var(--s3); }
.book__steps { margin-top: var(--s5); counter-reset: step; }
.book__step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s2); align-items: start; }
.book__step + .book__step { margin-top: var(--s3); }
.book__step-num {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid var(--electric); font-family: var(--font-display); font-weight: 700;
}
.book__step-title { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1.3; padding-top: 7px; }
.book__step-text { display: block; margin-top: 4px; font-size: var(--fs-small); }
@media (min-width: 960px) {
  .book__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .book__copy { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s4)); }
  .book__form-wrap { grid-column: 7 / span 6; }
}

/* Form card (placeholder until the GHL form embed is pasted in) */
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--white); color: var(--void); }
.on-dark .form-card .muted, .on-dark .ui-card .muted { color: var(--void-72); }  /* light cards on dark grounds */
.form-card__title { margin-bottom: var(--s1); }
.form-card__intro { margin-bottom: var(--s4); font-size: var(--fs-small); }
.form-grid { display: grid; gap: 18px var(--s2); }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 500; font-size: 0.875rem; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--white); border: 1px solid var(--line-input); border-radius: var(--radius);
  font-size: 1rem; color: var(--void);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050508' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:focus, .field select:focus { outline: 3px solid var(--electric); outline-offset: 0; border-color: var(--electric); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-top: var(--s3); font-size: var(--fs-micro); line-height: 1.45; color: var(--void-72); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--void); }
.consent a { color: var(--void); text-decoration-color: var(--electric); text-underline-offset: 3px; }
.form-card .btn { margin-top: var(--s3); }
.form-card__after { margin-top: var(--s2); font-size: var(--fs-micro); text-align: center; color: var(--void-72); }

/* =========================================================
   SECTION: footer
   ========================================================= */
.site-footer {
  padding-block: var(--s6) var(--s5);
  background-color: var(--void);
  background-image:
    var(--grain-light),
    linear-gradient(to right, var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 180px 180px, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
  background-position: 0 0, center top, center top;
  border-top: 1px solid var(--line-dark);
}
.site-footer__grid { display: grid; gap: var(--s4) var(--gutter); align-items: start; }
.site-footer__logo img { width: 150px; height: auto; }
.site-footer__about { margin-top: var(--s2); max-width: 22rem; font-size: var(--fs-small); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: var(--fs-small); }
.site-footer__links a { text-decoration: none; color: var(--white); }
.site-footer__links a:hover { color: var(--electric); }
.site-footer__contact { font-size: var(--fs-small); font-style: normal; line-height: 1.6; }
.site-footer__legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line-dark); font-size: var(--fs-micro); }
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: 5fr 3fr 4fr; }
}


/* =========================================================
   PAGE: thank-you
   ========================================================= */
.thanks { min-height: calc(100vh - var(--header-h)); padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section-pad); }
.thanks__head { max-width: 46rem; }
.thanks__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.thanks__lead { margin-top: var(--s3); }
.thanks__grid { display: grid; gap: var(--s5); margin-top: var(--s6); align-items: start; }
.calendar-slot {
  display: grid; place-items: center; align-content: center; gap: 10px;
  min-height: 640px; padding: var(--s4);
  background: var(--white); border: 1px dashed var(--line-input);
  text-align: center; color: var(--void-72);
}
.calendar-slot strong { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--void); }
.calendar-slot iframe { width: 100%; min-height: 640px; border: 0; }
.thanks__next { padding: var(--s4); background: var(--white); border: 1px solid var(--line-light); }
.thanks__next .h3 { margin-bottom: var(--s3); }
@media (min-width: 960px) {
  .thanks__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .thanks__calendar { grid-column: 1 / span 8; }
  .thanks__aside { grid-column: 9 / span 4; }
}

/* =========================================================
   PAGE: booked (after a call is booked)
   Shared by the website and med spa funnels: both book into
   the Revenue Growth Planning Call, so keep it brand-level.
   ========================================================= */
/* Brand guidelines p11, "Bookings and print": confirmations stay calm, on a gold or
   Void field with one outline S. This page uses the Void field with a gold line. */
.booked { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.booked > .container { position: relative; z-index: 1; }
.booked__head { max-width: 46rem; }
.booked__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.booked__lead { margin-top: var(--s3); }
/* The one outline S. Hidden below 1200px so it can never sit behind the text column. */
.booked__outline { display: none; }
@media (min-width: 1200px) {
  .booked__outline { display: block; width: 30%; right: -8%; top: 50%; transform: translateY(-50%); }
}

/* SECTION: prep (video and "Before the call", booked page) */
.prep { padding-block: var(--s6) var(--section-pad); }
.prep__grid { display: grid; gap: var(--s5); align-items: start; }
.prep__grid > * { min-width: 0; }
.prep__panel { padding: var(--s4); background: var(--white); border: 1px solid var(--line-light); }
.prep__panel .h3 { margin-bottom: var(--s3); }
.prep__step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s2); align-items: start; }
.prep__step + .prep__step { margin-top: var(--s3); }
/* Numbers in tight spaces: Forma DJR Condensed Bold, per the type spec (p7) */
.prep__step-num {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid var(--electric);
  font-family: var(--font-condensed); font-weight: 700; font-stretch: condensed; font-size: 1.125rem;
}
.prep__step-title { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1.3; padding-top: 7px; }
.prep__step-text { display: block; margin-top: 4px; font-size: var(--fs-small); }
@media (min-width: 960px) {
  .prep__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .prep__video { grid-column: 1 / span 7; }
  .prep__panel { grid-column: 8 / span 5; }
}

/* SECTION: call (what the call covers, booked page) */
.call__grid { display: grid; gap: var(--s5); align-items: center; }
.call__lead { margin-top: var(--s3); }
.call__calc { min-height: 280px; }
@media (min-width: 960px) {
  .call__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .call__copy { grid-column: 1 / span 5; }
  .call__calc { grid-column: 7 / span 6; min-height: 360px; }
}

/* =========================================================
   PAGE: dq (disqualified)
   Shared by the website and med spa surveys: both redirect to
   {{custom_values.dq_page_link}}, so keep it brand-level.
   ========================================================= */
.dq { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h)); padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section-pad); }
.dq > .container { position: relative; z-index: 1; }
.dq__inner { max-width: 46rem; }
/* One outline S, the "white, gold line" version for web pages (p8).
   Hidden below 1200px so it can never sit behind the text column. */
.dq__outline { display: none; }
@media (min-width: 1200px) {
  .dq__outline { display: block; width: 30%; right: -8%; top: 50%; transform: translateY(-50%); }
}
.dq__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.dq__lead { margin-top: var(--s3); }
.dq__back { margin-top: var(--s3); }
.dq__link { margin-top: var(--s4); }
.dq__more { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line-light); }
.dq__more .h3 { margin-bottom: var(--s3); }
.dq__resource { min-height: 180px; }

/* =========================================================
   EFFECTS: texture, grid, parallax, reveal, cursor light
   The layers are pure CSS. assets/js/fx.js only sets:
     --fx-p   scroll position of a ground, -1 (leaving at the top) to 1 (entering at the bottom)
     --mx/--my cursor position on dark grounds, plus .is-lit
     [data-fx] / .is-in on elements that rise in as they scroll into view
   Without the script every layer still renders, standing still.
   Brand guardrails: no glows or flares (internal visual guide), gold only as the kit's
   crosshair graphic lines, and the outline S stays a single line, never a pattern.
   ========================================================= */

/* Each ground is its own stacking context: decorative layers (z-index -1) sit above
   the ground colour and below all content. overflow: clip (not hidden) keeps
   position: sticky working for anything inside. */
[class*="section--"], .site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}
[class*="section--"]::before,
.site-footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
}

/* Light grounds: a grid that fades out from one corner and drifts slower than the page */
.section--white::before,
.section--sky::before,
.section--starlight::before {
  inset: -14% 0;
  background-image:
    linear-gradient(to right, var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  -webkit-mask-image: radial-gradient(95% 75% at 100% 10%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 70%);
          mask-image: radial-gradient(95% 75% at 100% 10%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 70%);
  translate: 0 calc(var(--fx-p, 0) * 56px);
}
/* Starlight sections alternate with white ones, so their grid comes in from the other corner */
.section--starlight::before {
  -webkit-mask-image: radial-gradient(95% 75% at 0% 90%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 70%);
          mask-image: radial-gradient(95% 75% at 0% 90%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 70%);
}

/* Dark grounds: a sparse starfield that drifts at its own speed for depth */
.section--void::before,
.section--space::before,
.site-footer::before {
  inset: -18% 0;
  background-image: var(--stars), var(--stars);
  background-size: 480px 480px, 760px 760px;
  background-position: 0 0, 190px 330px;
  translate: 0 calc(var(--fx-p, 0) * 90px);
}
.site-footer::before { opacity: 0.45; }

/* Dark grounds, desktop: the grid lines turn Electric near the cursor.
   Same grid as the ground's background, so the lines meet exactly. */
.section--void::after,
.section--space::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line-lit) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-lit) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 100%);
          mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.section--void.is-lit::after,
.section--space.is-lit::after { opacity: 1; }

/* Depth: pieces that move at their own speed inside their section */
.outline-s { translate: 0 calc(var(--fx-p, 0) * -64px); }
.hero__chip--1 { translate: 0 calc(var(--fx-p, 0) * -40px); }
.hero__chip--2 { translate: 0 calc(var(--fx-p, 0) * 30px); }
.hero__chip--3 { translate: 0 calc(var(--fx-p, 0) * -22px); }
.feature__visual > * { translate: 0 calc(var(--fx-p, 0) * -28px); }

/* The kit's gold crosshair (pp. 10-12): short graphic lines pinning one panel per page */
.prep__panel, .thanks__next, .dq__resource, .form-card { position: relative; }
.prep__panel::after,
.thanks__next::after,
.dq__resource::after,
.form-card::after {
  content: ""; position: absolute; left: -21px; top: -21px;
  width: 64px; height: 64px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 20px / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 20px 0 / 2px 100% no-repeat;
}

/* Rise in: the first screen animates on load (CSS only), the rest as it scrolls into view */
/* Content is always readable: the first screen starts partly visible, and content further
   down stays fully visible and only slides into place. Nothing waits on the script to appear. */
@keyframes fx-rise {
  from { opacity: 0.45; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .booked__head, .thanks__head, .dq__inner { animation: fx-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__visual { animation: fx-rise 1s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  /* Offset instantly when tagged (still fully visible); only the rise is animated */
  [data-fx]:not(.is-in) { transform: translate3d(0, 40px, 0); }
  [data-fx].is-in {
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--fx-i, 0) * 80ms);
  }
}

/* Reduced motion: textures and grids stay, nothing moves */
@media (prefers-reduced-motion: reduce) {
  [class*="section--"]::before, .site-footer::before, .outline-s,
  .hero__chip, .feature__visual > * { translate: none; }
}

/* =========================================================
   FLIGHT: landing page only (index.html)
   Effects adapted from the Flora template (GetLayers, "next16-claude-starter"),
   rebuilt without React or WebGL. Only index.html loads assets/js/flight.js, and
   every rule below needs either a class that script adds or the html.flight class
   the landing page's head sets, so no other page changes.
   Left out on purpose: the preloader (it blocks the page before anyone can act),
   the dandelion scene (the flower, and an 11-screen scroll before any CTA), the
   fire backdrop (glows are off-brand) and smooth-scroll hijacking.
   Conversion rules: the CTA is never hidden, blurred or delayed past ~0.5s,
   and everything stops under "reduce motion".
   ========================================================= */

/* Curves from Flora: letters use a quintic ease-out, words a cubic one */
:root {
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-entrance: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Hero arrival ---------- */
/* The whole-copy fade from the shared effects is replaced by piece-by-piece arrival */
.flight .hero__copy { animation: none; }

/* Until the script has split the text, the two split lines wait unseen.
   If the script never runs, they appear on their own after 1.2s. */
.flight .hero h1:not(.is-split),
.flight .hero__sub:not(.is-split) { opacity: 0; animation: fl-failsafe 0s 1.2s forwards; }
@keyframes fl-failsafe { to { opacity: 1; } }

/* Headline: a letter at a time, rising out of focus (Flora's "letters" flight) */
.fl-word { display: inline-block; white-space: nowrap; }
.fl-letter {
  display: inline-block;
  opacity: 0; filter: blur(7px); transform: translate3d(0, 0.85rem, 0);
  animation: fl-land 1.4s var(--ease-quint) both;
  animation-delay: calc(var(--i) * var(--fl-step, 38ms));
}
/* Lead paragraph: a word at a time, at a whisper (Flora's "rise" flight) */
.fl-rise {
  display: inline-block;
  opacity: 0; transform: translate3d(0, 0.45em, 0);
  animation: fl-land 0.7s var(--ease-cubic) both;
  animation-delay: calc(var(--fl-offset, 0ms) + var(--i) * var(--fl-step, 34ms));
}
@keyframes fl-land { to { opacity: 1; filter: none; transform: none; } }

/* The rest of the hero copy: short, early fades. The CTA is up by 0.5s. */
.flight .hero__copy .eyebrow { animation: fl-up 0.6s var(--ease-cubic) both; }
.flight .hero__cta { animation: fl-up 0.5s 0.1s var(--ease-cubic) both; }
.flight .hero__ticks { animation: fl-up 0.7s 0.9s var(--ease-cubic) both; }
@keyframes fl-up {
  from { opacity: 0.35; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero route (Flora's relay panel) ----------
   The three cards are the relays: they arrive as points and grow, the track is
   laid between them, then a packet runs it and lights each card as it reaches it.
   The last card keeps a live pulse. */
.hero__route {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.hero__route-track {
  fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5;
  stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 0.9s var(--ease-entrance);
}
.hero__route.is-laid .hero__route-track { stroke-dashoffset: 0; }
.hero__route-packet { fill: var(--electric); opacity: 0; transition: opacity 0.2s ease; }
.hero__route-halo { fill: none; stroke: var(--electric); stroke-width: 1.5; opacity: 0; transition: opacity 0.2s ease; }
.hero__route.is-running .hero__route-packet { opacity: 1; }
.hero__route.is-running .hero__route-halo { opacity: 0.5; }

/* Cards wait as points from the first paint (html.flight is set in the head), so they
   never flash in and out. If the script never runs, they appear on their own at 2.5s. */
.flight .hero__chip { transition: opacity 0.45s var(--ease-entrance), transform 0.55s var(--ease-quint); }
.flight .hero__chip:not(.is-there) {
  opacity: 0; transform: scale(0.6);
  animation: fl-failsafe-node 0s 2.5s forwards;
}
@keyframes fl-failsafe-node { to { opacity: 1; transform: none; } }
.hero__chip-icon { position: relative; transition: background-color 0.35s ease, color 0.35s ease; }
.hero__chip.is-lit .hero__chip-icon { background: var(--electric); color: var(--white); }
/* The live pulse: a ring that keeps leaving the card the packet stands on */
.hero__chip.is-current .hero__chip-icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 18px;
  border: 2px solid var(--electric);
  animation: fl-pulse 1.8s var(--ease-cubic) infinite;
}
@keyframes fl-pulse {
  from { opacity: 0.7; transform: scale(0.85); }
  to { opacity: 0; transform: scale(1.35); }
}

/* ---------- Call to action (Flora's CtaButton + CtaIcon) ----------
   A plate and a square, 2px apart. Hover sweeps the kit's hover gold in from the
   left; the square runs a loop until a hand is on the button, then holds. */
.btn.btn--flight { padding: 0; gap: 2px; background: none; align-items: stretch; }
.btn.btn--flight:hover { background: none; }
.btn__plate {
  display: flex; align-items: center; justify-content: center; flex: 1 1 auto;
  padding: 0 28px;
  background-color: var(--gold);
  background-image: linear-gradient(90deg, var(--gold-hover) 50%, var(--gold) 50%);
  background-size: 200% 100%; background-position: 100% 0; background-repeat: no-repeat;
  transition: background-position 0.25s var(--ease-entrance);
}
.btn--flight:hover .btn__plate,
.btn--flight:focus-visible .btn__plate { background-position: 0 0; }
.btn--sm.btn--flight .btn__plate { padding: 0 18px; }
.btn__icon { flex: none; display: block; width: 56px; background: var(--gold); }
.btn__icon svg { display: block; width: 100%; height: 100%; }
.btn__dot { fill: var(--void); opacity: 0.32; transition: opacity 0.3s var(--ease-cubic); }
.btn__arrow { fill: var(--void); transition: transform 0.4s var(--ease-cubic), opacity 0.4s var(--ease-cubic); }
.btn__icon.is-first .btn__dot--1,
.btn__icon.is-second .btn__dot--2 { opacity: 1; }
.btn__icon.is-sent .btn__arrow { transform: translateX(10px); opacity: 0.08; }
.btn__icon.is-poised .btn__dot { opacity: 1; }
.btn__icon.is-poised .btn__arrow { transform: translateX(3px); opacity: 1; }
.btn__icon.is-reset .btn__dot, .btn__icon.is-reset .btn__arrow { transition: none; }
.btn--sm.btn--flight .btn__icon { width: 44px; }
@media (max-width: 599px) {
  .site-header .btn--flight .btn__icon { display: none; }   /* the small header button keeps its room */
}

/* ---------- Six levers heading: assembles on the scroll (Flora's scroll-clocked "scatter") ----------
   Each word sits a little off its place and comes home as the heading rises to reading
   height; scrolling back takes it apart again, the arrival reversed. */
.fl-scatter { display: inline-block; will-change: transform, opacity; }

/* ---------- Facts: values pulled out of noise (Flora's RelayCount) ---------- */
.facts__value { font-variant-numeric: tabular-nums; }

/* =========================================================
   NAV: merged into the page at the top, every page
   fx.js sets html.nav-ready and toggles .is-scrolled on the header. Without the script the
   header keeps its solid background, so it can never sit unreadably over the content.
   ========================================================= */
.site-header { transition: background-color 0.25s ease, border-color 0.25s ease; }
.nav-ready .site-header:not(.is-scrolled) {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
