/* ============================================================
   VizualZ Media — Landing Page
   Tokens · Type pairing (Fraunces / Plus Jakarta Sans) · 8px spacing grid
   ============================================================ */

:root {
  /* ---- Color — PLASTER & BRASS ---- */
  --color-bg-primary:   #F2EEE6;  /* Plaster — dominant light surface */
  --color-bg-secondary: #E7E0D3;  /* Travertine — secondary surface */
  --color-bg-dark:      #2A241F;  /* Espresso — dark cards / hero / footer */
  --color-accent:       #B08D57;  /* Brass */
  --color-accent-deep:  #6E5631;  /* Brass, deep — pressed + labels (AA on plaster) */
  --color-text-primary: #221F1A;  /* Ink body */
  --color-text-light:   #EFEAE1;  /* Warm off-white on espresso */
  --color-text-muted:   #5B5247;  /* Captions, labels — AA on Plaster & Travertine */
  --color-line:         #D9D0C0;  /* Hairline on light */

  /* ---- Type scale (fluid) ----
     Tied to BOTH vw and vh so headlines/body stay substantial inside a
     tall fullscreen (100vh) section without overflowing short laptops. */
  --text-display: clamp(2.5rem, 4vw + 3vh, 6rem);
  --text-h1:      clamp(1.75rem, 2vw + 2vh, 3.5rem);
  --text-h2:      clamp(1.375rem, 1.2vw + 1.2vh, 2rem);
  --text-lg:      clamp(1.0625rem, 0.6vw + 0.8vh, 1.3rem);
  --text-base:    1rem;
  --text-sm:      0.875rem;
  --text-xs:      0.75rem;

  /* ---- Spacing (8px grid) ---- */
  --space-2:  0.5rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Layout ---- */
  --max-width:  1100px;
  --read-width: 680px;
  --radius:     2px;

  /* ---- Fonts ---- */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Texture ---- */
  /* Desaturated fractal-noise tile (SVG data URI). If a browser can't
     render it, no image loads and the overlay is simply invisible. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

img { max-width: 100%; display: block; }

/* ============================================================
   Skip link & focus
   ============================================================ */

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* Footer stays dark, so its focus ring uses the light secondary; the hero
   is now light plaster and uses the default brass focus ring. */
.footer :focus-visible { outline-color: var(--color-bg-secondary); }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--read-width); }

.section {
  padding-block: var(--space-16);
}
.section--bone { background: var(--color-bg-primary); }
.section--sand { background: var(--color-bg-secondary); }

/* Plaster↔Travertine is a deliberately subtle step (~1.14:1), so every seam
   between two light sections gets a hairline to keep the sections distinct —
   including the hero→Problem fold. The dark footer needs no line (strong
   contrast) and is a <footer>, so this selector skips it. box-sizing is
   border-box, so the 1px never disturbs the scroll-snap section heights. */
main > section + section { border-top: 1px solid var(--color-line); }

@media (min-width: 768px) {
  .section { padding-block: var(--space-32); }
  .container { padding-inline: var(--space-8); }
}

/* ============================================================
   Section-wise scroll — CONTAINER MODEL (DESKTOP ONLY, > 768px)
   The scroller is a fixed box that starts BELOW the 72px nav, so its
   height already excludes the nav. Sections snap flush under the nav —
   no sliver of the neighbour, nothing hidden behind the nav. mandatory
   gives a strict section-by-section lock; because every section is sized
   to the scroller's height, mandatory never traps.
   ============================================================ */
@media (min-width: 769px) {
  body { overflow: hidden; }              /* the body itself no longer scrolls */
  .scroll-root {
    position: fixed;
    inset: 72px 0 0 0;                    /* top edge sits just below the nav */
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .scroll-root > main > section,
  .scroll-root > .footer {
    scroll-snap-align: start;
  }
  .scroll-root > main > section {
    min-height: calc(100vh - 72px);       /* exactly the scroller's height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .scroll-root > main > section.section {
    padding-block: var(--space-12);
  }
  /* Hero's default 6rem block padding is large; trim it here so short
     windows don't spill (content stays flex-centered either way). */
  .scroll-root > main > section.hero {
    padding-block: var(--space-12);
  }
  /* The section's direct child carries the width; flex-centering handles
     vertical placement. */
  .scroll-root > main > section > * {
    width: 100%;
  }
  /* The nav is already excluded from the scroller, so anchor jumps must NOT
     add the old 90px offset (it would re-introduce a sliver). */
  .scroll-root :is(#work, #how, #why, #pilot) { scroll-margin-top: 0; }
}

/* Reduced motion: jump between sections instantly instead of smooth-scrolling. */
@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
  .scroll-root { scroll-behavior: auto; }
}

/* ============================================================
   Typography helpers
   ============================================================ */

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Deeper sienna so 14px labels clear AA (4.5:1) on Bone AND Warm Sand */
  color: var(--color-accent-deep);
  margin-bottom: var(--space-4);
}
.eyebrow--light { color: var(--color-bg-secondary); }

.section-heading {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--color-text-primary);
}
.section-heading em { color: var(--color-accent); }

/* Widow/orphan control — keep last lines from stranding a single word */
.hero__heading,
.problem__hook,
.finalcta__heading,
.how__title { text-wrap: balance; }

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  /* 54ch keeps the longest rendered line under ~73 chars at every
     breakpoint (60ch measured 78 at the 768px breakpoint) */
  max-width: 54ch;
}

.section-head { margin-bottom: var(--space-12); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }
/* Heading → paragraph gap, consistent with the other sections */
.section-head .lead { margin-top: var(--space-6); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center; /* centers the label when the button goes full-width on mobile */
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}
.btn--accent {
  /* Deep brass (not the lighter --color-accent) so the off-white label clears
     WCAG AA: #6E5631 on #EFEAE1 ≈ 5.8:1. Brass #B08D57 stays the accent for
     text/detail elsewhere. */
  background: var(--color-accent-deep);
  color: var(--color-text-light);
  box-shadow: 0 2px 8px rgba(110, 86, 49, 0.16);
}
/* Hover changes three properties: background + lift + shadow */
.btn--accent:hover {
  background: #5A4728; /* one step deeper than the deep-brass resting fill */
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(110, 86, 49, 0.28);
}
.btn--accent:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(110, 86, 49, 0.22);
}
.btn--sm { padding: var(--space-2) var(--space-6); font-size: var(--text-sm); }

/* Full-width primary CTAs on mobile for an easy tap target */
@media (max-width: 767px) {
  .hero .btn--accent,
  .pilot-card .btn--accent,
  .finalcta .btn--accent {
    display: block;
    width: 100%;
  }
}

/* ============================================================
   1. HERO (light plaster — Plaster & Brass)
   ============================================================ */

.hero {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--space-6);
}
.hero__inner { max-width: 880px; }

.hero__heading {
  font-family: var(--font-serif);
  /* Push Fraunces to its display optical master (opsz 144) for a true
     high-contrast display cut — dramatic thick/thin strokes. This is the
     page's one deliberate typographic moment; smaller headings stay on
     optical-sizing:auto so they read sturdier. */
  font-variation-settings: "opsz" 144;
  font-weight: 340;
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}
.hero__heading em {
  font-weight: 300;
  font-style: italic;
  color: #8F6F40; /* antique brass — legible on plaster (AA-large) yet clearly brass */
}
.hero__subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 auto var(--space-8);
}

/* Each headline line is its own block and its own clip box. The clip is
   what the per-line reveal (refinement #4) slides the inner span up out of.
   padding/negative-margin pair expands the box just enough to spare
   descenders from the tight 1.08 line-height, without shifting layout. */
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero__line-inner { display: block; }

/* Scroll cue — a subtle chevron at the base of the hero so the snap-scroll
   experience is discoverable. Desktop only; it scrolls away with the hero. */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: clamp(16px, 4vh, 40px);
  transform: translateX(-50%);
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--color-accent-deep);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.hero__scroll svg { width: 24px; height: 24px; }
.hero__scroll:hover { opacity: 0.9; }
@media (min-width: 769px) { .hero__scroll { display: flex; } }
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .hero__scroll { animation: heroScrollBob 1.8s ease-in-out infinite; }
}
@keyframes heroScrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ============================================================
   2. PROBLEM
   ============================================================ */

.problem { text-align: center; }
.problem__hook {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-8);
}
.problem__hook em { color: var(--color-accent); font-style: italic; }
.problem .lead { margin-inline: auto; }

/* ============================================================
   3. TRANSFORMATION
   ============================================================ */

.transformation__grid { display: grid; gap: var(--space-12); }
.transformation__copy .lead { margin-top: var(--space-6); }

.transformation__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.photo-stack { position: relative; width: clamp(96px, 28vw, 120px); aspect-ratio: 4 / 5; flex: none; }
.photo-stack__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-line);
  box-shadow: 0 8px 24px rgba(43, 38, 34, 0.12);
}
.photo-stack__card--3 { transform: rotate(-8deg) translate(-10px, 6px); }
.photo-stack__card--2 { transform: rotate(4deg) translate(8px, -4px); }
.photo-stack__card--1 {
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.transformation__arrow {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent); /* SVG strokes inherit via currentColor */
  flex: none;
}

.phone {
  position: relative;
  width: clamp(88px, 26vw, 110px);
  aspect-ratio: 11 / 20;
  flex: none;
  border-radius: 18px;
  background: var(--color-bg-dark);
  border: 3px solid #1C1B19;
  box-shadow: 0 16px 36px rgba(43, 38, 34, 0.22);
  overflow: hidden;
}
.phone__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 36px; height: 4px;
  border-radius: 4px;
  background: rgba(237, 230, 218, 0.4);
}
/* Reel placeholder — a warm "poster" frame with a play affordance, stands
   in until the edited reel is ready. To drop in the reel, replace the
   .phone__play span with <video class="phone__media" ...> or <img>. */
.phone__screen {
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 20, 16, 0) 52%, rgba(26, 20, 16, 0.5) 100%),
    linear-gradient(135deg, #C9A56C 0%, #B08D57 45%, #6E5631 100%);
}
.phone__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(237, 230, 218, 0.18);
  border: 1px solid rgba(237, 230, 218, 0.55);
  display: grid;
  place-items: center;
}
.phone__play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 3px; /* optically center the triangle */
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--color-bg-secondary);
}
/* Ready for the real reel: a <video>/<img> with this class fills the screen */
.phone__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .transformation__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-16);
  }
  /* The mockup is the page's signature — give it room on desktop.
     (Heights follow from the base aspect-ratios.) */
  .transformation__visual { gap: var(--space-8); }
  .photo-stack { width: 150px; }
  .phone { width: 150px; }
}

/* ============================================================
   4. SEE THE WORK — no live reels yet, so two labelled
   "coming soon" placeholder slots (9:16, reel-shaped) stand in
   until the real videos drop in. Honest about status, no faked
   results.
   ============================================================ */

.work__grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 760px;
  margin: 48px auto 0;
}
.work__slot {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(176, 141, 87, 0.22);
  box-shadow: 0 2px 24px rgba(43, 38, 34, 0.10);
}
.work__skeleton {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(220, 209, 192, 0.85) 0%,
    rgba(110, 86, 49, 0.95) 100%);
}
.work__status {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 230, 218, 0.75);
}

@media (max-width: 767px) {
  .work__grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .work__slot {
    width: 200px;
    /* Definite height instead of relying on aspect-ratio to size the <button>.
       iOS Safari doesn't reliably derive a button's height from aspect-ratio,
       so the box came out non-9:16 and object-fit:cover zoomed/cropped the
       reel. An explicit height keeps the frame a true 9:16. */
    height: calc(200px * 16 / 9);
  }
}
/* In the fullscreen section, cap slot height to the viewport so the two
   9:16 reels + header never overflow on a short laptop. Width follows
   from the 9/16 aspect-ratio. */
@media (min-width: 769px) {
  .work__grid { margin-top: var(--space-8); }
  /* Single centred frame now sits above the copy + CTA, so it's smaller to
     leave room within one screen. */
  .work__slot {
    width: auto;
    height: min(320px, 38vh);
  }
}

/* Live reel: the slot is a button (tap to play fullscreen with sound).
   Reset button chrome but keep the framed-reel look from .work__slot above. */
.work__slot--live {
  display: block;
  padding: 0;
  background: var(--color-bg-dark);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.work__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* In fullscreen the video box is a landscape screen; `cover` would crop the
   vertical reel. Switch to `contain` so the whole 9:16 frame shows, centred
   with black bars. Separate rules — a browser that doesn't know one selector
   must not drop the other. */
.work__video:fullscreen {
  object-fit: contain;
  background: #000;
}
.work__video:-webkit-full-screen {
  object-fit: contain;
  background: #000;
}
/* Fullscreen/sound affordance — a quiet brass pill, bottom-right of the frame. */
.work__expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(42, 36, 31, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(237, 230, 218, 0.92);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 300ms ease;
}

/* Honest "in production" state: one reel frame + a line of copy + the CTA,
   all centred to share an axis with the (now centred) header. */
.work__cta { text-align: center; margin-top: var(--space-8); }
.work__cta .lead { margin-inline: auto; margin-bottom: var(--space-6); }
/* Centered play affordance, sitting 8px above the status label */
.work__play {
  position: absolute;
  left: 50%;
  bottom: calc(24px + 1.7em + 8px);
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(237, 230, 218, 0.4);
}

/* ============================================================
   5. HOW IT WORKS
   ============================================================ */

.how__steps {
  display: grid;
  gap: var(--space-12);
  counter-reset: step;
}
.how__step {
  padding-top: var(--space-6);
}
.how__step::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
  margin-bottom: 20px;
}
.how__num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.how__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}
.how__body { color: var(--color-text-primary); }

/* Orchestrated moment: steps reveal in sequence (~110ms apart) */
.how__step.reveal:nth-child(2) { transition-delay: 0.11s; }
.how__step.reveal:nth-child(3) { transition-delay: 0.22s; }

@media (min-width: 768px) {
  .how__steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}

/* ============================================================
   6. WHY ME
   ============================================================ */

.why__grid { display: grid; gap: var(--space-12); }

/* Founder photo placeholder — a clean labelled slot stands in until the
   real photo is ready. To drop the photo in, replace the .why__photo-slot
   div with <img src="…" alt="Vyom, founder of VizualZ Media">. */
.why__photo { margin: 0; }
.why__photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background: var(--color-bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.why__photo-icon {
  width: 44px;
  height: 44px;
  color: var(--color-text-muted);
  opacity: 0.55;
}
.why__photo-label {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.why__photo img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}
.why__copy .section-heading { margin-bottom: var(--space-6); }

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: 0.8fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }
  /* Cap the photo's HEIGHT (not width) on short viewports so the section
     holds one screen. Width still fills the 0.8fr column, so the figure
     keeps stretching — no margin-auto shrink-to-content. object-fit on the
     real <img> handles any crop; the placeholder just sits a touch shorter. */
  .why__photo-slot,
  .why__photo img {
    max-height: 64vh;
  }
}

/* ============================================================
   7. THE PILOT (dark card breaks the warm rhythm)
   ============================================================ */

.pilot-card {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  border-radius: var(--radius);
  padding: var(--space-12) var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: 0 24px 60px rgba(43, 38, 34, 0.18);
}
.pilot-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(231, 224, 211, 0.18);
  margin-bottom: var(--space-6);
}
.pilot-card__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--text-h2);
  color: var(--color-text-light);
}
.pilot-card__price {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-h1);
  color: var(--color-bg-secondary);
}
.pilot-card__list { margin-bottom: var(--space-8); }
.pilot-card__list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: rgba(237, 230, 218, 0.9);
}
.pilot-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
/* The card's single action: full-width so it anchors the base of the card
   and reads as the decisive step after the deliverables — not a fifth bullet. */
.pilot-card .btn--accent {
  display: block;
  width: 100%;
}

.pilot__upsell {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 50ch;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .pilot-card { padding: var(--space-16) var(--space-16); }
}

/* Fullscreen Pilot: 4 deliverables + full-width CTA + upsell. Vertical
   rhythm compressed and section padding reduced so it fits one scroller
   screen, with a confident gap setting the action apart from the list. */
@media (min-width: 769px) {
  /* Less section padding than other sections (more specific than the
     container's .section rule, so this wins). */
  .scroll-root > main > section.pilot { padding-block: var(--space-6); }
  /* Smaller heading than the page default so the section fits one screen. */
  .pilot .section-heading { font-size: clamp(1.6rem, 1.3vw + 1.3vh, 2.4rem); }
  .pilot .eyebrow { margin-bottom: var(--space-2); }
  .pilot .section-head { margin-bottom: var(--space-4); }
  .pilot .section-head .lead { margin-top: var(--space-2); }
  .pilot-card {
    padding-block: clamp(var(--space-4), 3vh, var(--space-10, 2.5rem));
    margin-bottom: var(--space-4);
  }
  .pilot-card__head {
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
  }
  .pilot-card__list { margin-bottom: var(--space-8); }
  .pilot-card__list li { margin-bottom: 0.7rem; }
  .pilot__upsell { font-size: var(--text-sm); }
}

/* ============================================================
   8. FREE SAMPLE + FINAL CTA (maximum negative space)
   ============================================================ */

.finalcta {
  text-align: center;
  padding-block: var(--space-24);
}
.finalcta__heading {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: var(--text-h1);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}
.finalcta__heading em { font-style: italic; color: var(--color-accent); }
.finalcta .lead {
  margin: 0 auto var(--space-8);
}

@media (min-width: 768px) {
  .finalcta { padding-block: var(--space-32); }
}

/* ============================================================
   9. FOOTER (returns to dark — bookends the hero)
   ============================================================ */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding-block: var(--space-16);
  border-top: 2px solid var(--color-accent);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.footer__wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-h2);
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}
.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(237, 230, 218, 0.7);
  max-width: 40ch;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}
.footer__link {
  position: relative; /* anchor for the draw-in underline (::after) */
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target floor */
  color: var(--color-bg-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   Motion — scroll reveal (progressive enhancement)
   Content is fully visible without JS; hidden state only applies
   once the .js flag is set by motion.js.
   ============================================================ */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SURFACE REFINEMENTS
   Texture, ambient motion, and editorial marks layered on top.
   No existing layout, color, or spacing rule is altered.
   ============================================================ */

/* (1) Warm linen grain — per-section overlay so light sections read at
   3% and the dark hero/footer at 5%. Sits above content at a whisper of
   opacity; degrades to nothing if the noise image can't render. */
.section, .hero, .footer { position: relative; }
.section::after,
.hero::after,
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: var(--grain);
}
.section::after { opacity: 0.03; }
.hero::after,
.footer::after { opacity: 0.05; }

/* (2) Hero content sits above the grain in its own stacking context.
   (The former ambient radial glow was removed — the per-line headline
   reveal is the hero's single, deliberate motion moment.) */
.hero { overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }

/* (3) Editorial Sienna hairline above every eyebrow label */
.eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: var(--space-4);
}
/* Center the rule where the label itself is centered */
.hero .eyebrow::before,
.section-head--center .eyebrow::before { margin-inline: auto; }

/* (4) Hero load stagger — sequenced entrance on page load (not scroll).
   Eyebrow, subhead and button fade up; the headline reveals line by line,
   each inner span sliding up out of its clipped line box. Wrapped in
   no-preference so reduced-motion users see everything instantly. */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero__subhead,
  .hero .btn {
    animation: heroIn 600ms ease-out backwards;
  }
  .hero__line-inner {
    animation: heroLineIn 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .hero__line:nth-child(1) .hero__line-inner { animation-delay: 150ms; }
  .hero__line:nth-child(2) .hero__line-inner { animation-delay: 270ms; }
  .hero__line:nth-child(3) .hero__line-inner { animation-delay: 390ms; }
  .hero__subhead { animation-delay: 520ms; }
  .hero .btn     { animation-delay: 640ms; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Transform-only: the clip does the revealing, so no opacity fade needed. */
@keyframes heroLineIn {
  from { transform: translateY(120%); }
  to   { transform: translateY(0); }
}

/* (5) Draw-in underline for inline anchors (footer links). Replaces the
   default text-decoration with a left-to-right Sienna rule on hover. */
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(0.72em);
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 200ms ease;
}
.footer__link:hover::after,
.footer__link:focus-visible::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .how__step.reveal { transition-delay: 0s; }
  .skip-link { transition: none; }
  .btn { transition: none; }
  /* Keep hover legible without motion: background + shadow still change */
  .btn--accent:hover,
  .btn--accent:active { transform: none; }
  /* (Hero load stagger is already off — it's gated on no-preference.) */
  .footer__link::after { transition: none; }
}
