/* ============================================================
   Vale — V3 sales site
   Tokens sourced from Figma "Vale Brand (Internal)" → V1/V2 variables.
   Pixel target: the 1920-wide V3 frame (node 3091:8216). Sizing hits
   the exact Figma values at ~1920px and scales down fluidly below;
   no mobile frames exist yet, so narrow behavior is an interpretation.
   This stylesheet is scoped to the marketing page only — the funnel
   subpages keep /styles.css.
   ============================================================ */

/* SF Pro renders natively as the system font on Apple devices; the
   webfont is a fallback for everything else. */
@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
  /* Brand palette — Figma V1/V2 variables */
  --foundation: #41454b;  /* V1/Foundation */
  --signal:     #2d65c9;  /* V1/Signal */
  --concrete:   #949eb0;  /* V1/Concrete */
  --iron:       #232528;  /* V2/Iron */
  --chalk:      #efeee9;  /* V2/Chalk */
  --white:      #ffffff;  /* V1/White */

  --font-sf: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  --font-inter: 'Inter', var(--font-sf);

  /* Layout — 1920 canvas, 120px side gutters → 1680 content */
  --page-max: 1920px;
  --content-max: 1680px;
  --gutter: clamp(24px, 6.25vw, 120px);

  /* Fluid type. Display dialed back from 120px (Jon 6/18 — hero text
     dominated / photo couldn't breathe). */
  --fs-display: clamp(52px, 5vw, 96px);
  --fs-h2:      clamp(40px, 3.75vw, 72px);
  --fs-lead:    clamp(20px, 1.5vw, 28px);
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sf);
  color: var(--iron);
  background: var(--white);
  line-height: 1.5;
}

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

.v3-gutter {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   HERO — node 3091:8217 (1920×1324)
   ============================================================ */
.hero {
  position: relative;
  /* Stacking context above #product so the hero's open address
     dropdown layers on top of the section below it. */
  z-index: 2;
  width: 100%;
  /* Keep the full hero inside the first viewport on desktop so the foreground
     people are visible without scrolling. */
  height: clamp(720px, 52vw, 940px);
  background-image: image-set(
    url('/assets/v3/hero-3840.jpg') 2x,
    url('/assets/v3/hero-1920.jpg') 1x);
  background-size: cover;
  /* Balanced crop: keeps foreground life visible without pushing the treeline
     directly behind the hero copy. */
  background-position: center 58%;
  /* `visible` (not hidden) lets the open address dropdown spill past the
     hero and overlay #product. The background still crops to the box —
     backgrounds clip to border-box regardless of overflow. */
  overflow: visible;
}
/* Inset Signal-blue frame — Figma "Border": inset 18px, 1px @ 50% Signal, r8 */
.hero__border {
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(45, 101, 201, 0.5);
  border-radius: 8px;
  pointer-events: none;
}

/* Logo — bumped up + rebalanced (Jon 6/18 — felt too small/off-balance). */
.hero__logo {
  position: absolute;
  z-index: 1;
  top: clamp(64px, 5vw, 96px);
  left: var(--gutter);
  width: clamp(112px, 6.4vw, 132px);
  height: auto;
  color: var(--foundation);
}
.hero__logo svg { width: 100%; height: auto; }

/* Content block — anchored upper-left over the sky (matching the Figma).
   No wash: the copy sits over the bright sky band, where dark text reads on
   its own, instead of being centered down over the busy treeline. */
.hero__content {
  position: absolute;
  z-index: 1;
  top: clamp(132px, 11vw, 190px);
  left: var(--gutter);
  width: min(640px, 58vw);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.5vw, 28px);
}
.hero__lead { max-width: 560px; }

.hero__eyebrow {
  font-weight: 600;
  font-size: clamp(22px, 1.65vw, 30px);
  line-height: 1.05;
  color: var(--foundation);
  text-transform: capitalize;
  margin-bottom: clamp(16px, 1.4vw, 26px);
}

.hero__title {
  font-weight: 600;
  font-size: clamp(60px, 4.7vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--signal);
}

.hero__lead {
  font-weight: 500;
  font-size: clamp(21px, 1.45vw, 28px);
  line-height: 1.16;
  color: var(--iron);
  /* Figma para frame is 874px → wraps to 2 lines; fill the content block. */
}

/* ---- Availability form (also reused in CTA section) ---- */
.vale-form {
  display: inline-flex;
  align-items: stretch;
  gap: 16px;
  padding: 6px;
  background: rgba(45, 101, 201, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  position: relative;
  font-family: var(--font-sf);
  /* Size to contents — without this the form stretches to the parent
     column's width (align-items:stretch) and leaves slack on the right. */
  width: fit-content;
  max-width: 100%;
}
.vale-form__field {
  position: relative;
  display: flex;
  align-items: center;
  width: 420px;
  max-width: 56vw;
  padding: 10px 22px;
  border-radius: 50px;
  /* White fill so the placeholder/input is legible against the tinted
     pill on the light hero (Ryan, 6/17). Widened back out per Jon
     (6/18 — "address bar feels short"); an address needs room. */
  background: var(--white);
}
.vale-form__input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--iron);
}
.vale-form__input::placeholder { color: var(--iron); opacity: 0.7; }
.vale-form__submit {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background: var(--signal);
  color: var(--white);
  border-radius: 50px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.18s ease;
}
.vale-form__submit:hover { background: #245bb8; }
.vale-form__submit .arrow { font-weight: 400; }

/* Autocomplete dropdown */
.vale-form__suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  display: none;
  overflow: hidden;
  z-index: 50;
  text-align: left;
}
.vale-form__suggestions.open { display: block; z-index: 1000; }
.vale-form__suggestion {
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  border-top: 1px solid var(--chalk);
  color: var(--iron);
}
.vale-form__suggestion:first-child { border-top: none; }
.vale-form__suggestion:hover { background: var(--chalk); }
.vale-form__suggestion small { display: block; font-size: 12px; color: var(--concrete); margin-top: 2px; }

/* Plain text under the field — no bubble (Jon, 2026-06-23). */
.vale-form__msg {
  position: absolute;
  top: calc(100% + 12px);
  left: 22px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.vale-form__msg[hidden] { display: none; }
.vale-form__msg--error { color: #c41e1e; }
.vale-form__msg--info  { color: var(--signal); }

/* Loading interstitial on submit */
.vale-loading-overlay {
  position: fixed; inset: 0; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; animation: vale-fade-in 0.25s ease-out forwards;
}
.vale-loading-overlay svg { width: 48px; height: auto; color: var(--concrete); animation: vale-pulse 1.4s ease-in-out infinite; }
@keyframes vale-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vale-pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.6; } }

/* ============================================================
   Shared — section eyebrow pill ("Covered Notice" component)
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 8px;
  background: #f3ede2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(5px);
  border-radius: 999px;
  font-weight: 400;
  font-size: 12px;
  line-height: 15.75px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--iron);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

.section-title {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--iron);
}

/* ============================================================
   PRODUCT — node 3091:8244 (scrollytelling)
   ============================================================ */
.product { background: var(--white); }

.product__head {
  padding-top: 120px;
  padding-bottom: 44px;
  border-bottom: 6px solid var(--signal);
}
.product__head .eyebrow { margin-bottom: 8px; }
.product__title {
  font-weight: 600;
  font-size: clamp(44px, 4.167vw, 80px);   /* 80 @1920 */
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--iron);
}

/* Pinned scrub: track is tall, stage sticks for the duration */
.scrolly { position: relative; }
.scrolly__track { height: calc(var(--steps, 5) * 90vh); position: relative; }
.scrolly__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Left: diagram column. Dialed down + matched to the scene viewBox so it
   reads as the whole neighborhood, not a cropped close-up (Jon 6/18 —
   "too zoomed in"). */
.scrolly__viz {
  position: relative;
  flex: none;
  width: 46%;
  margin-left: 4%;
  /* Taller clip window than the 904:507 art so zoomed content (e.g. the circle
     during 3→4) has vertical room before it's cut. The art itself is NOT
     resized — the world stays 904:507 and is centred in this taller frame. */
  aspect-ratio: 904 / 640;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;            /* the camera frame — clips the zoomed world */
  /* Soft edges: the scene feathers out toward the frame instead of a hard
     rectangular cut when zoomed in. */
  -webkit-mask-image: radial-gradient(150% 150% at 50% 50%, #000 90%, transparent 100%);
          mask-image: radial-gradient(150% 150% at 50% 50%, #000 90%, transparent 100%);
}
/* The scene "world" — the actual 904:507 content box, centred in the taller
   frame. Scaled/panned by the camera; origin = the hero house. */
.scrolly__world {
  position: relative;
  width: 100%;
  aspect-ratio: 904 / 507;
  transform-origin: 50% 38%;
  transform: translate(var(--panx, 0%), var(--pany, 0%)) scale(var(--cam, 1));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
/* ADDITIVE layer build: 7 isolated layers (roads, lot, coverage, dispatch,
   houses, cameras, trees) share ONE 904×507 frame. The road + house bases are
   single persistent layers (no cross-fade → no jitter); annotations fade in/out
   per beat while the camera zooms out. */
.scrolly__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.5s ease;
}
.scrolly__layer svg { width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  .scrolly__layer { transition: none; }
  .scrolly__world { transition: none; }
}

/* Right: text column — Figma margin x974 w539, left rule + 24px pad */
.scrolly__steps {
  position: relative;
  flex: none;
  width: 32.1%;
  margin-left: 3.8%;
  min-height: 240px;
}
.scrolly__step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0; right: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
}
/* Fade-IN only (no transition on hide) so two paragraphs never cross-fade
   through each other — the outgoing step drops instantly, the new one eases in. */
.scrolly__step.is-active {
  opacity: 1;
  pointer-events: auto;
  animation: vale-step-in 0.4s ease;
}
@keyframes vale-step-in { from { opacity: 0; } to { opacity: 1; } }
.step__label {
  font-weight: 400;
  font-size: 12px;
  line-height: 15.75px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: 4px;
}
.step__title {
  font-weight: 600;
  font-size: clamp(30px, 2.29vw, 44px);    /* 44 @1920 */
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--iron);
  margin-bottom: 4px;
}
.step__body {
  font-weight: 400;
  font-size: clamp(18px, 1.458vw, 28px);   /* 28 @1920 */
  line-height: 1.3;
  color: var(--iron);
}

/* Scroll-position indicator — one dot per beat on the right rail; the active
   dot elongates into a Signal pill. Clickable. */
.scrolly__dots {
  position: absolute;
  right: clamp(20px, 3vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
}
.scrolly__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(35, 37, 40, 0.22);
  cursor: pointer;
  transition: height 0.4s ease, background 0.4s ease;
}
.scrolly__dot:hover { background: rgba(35, 37, 40, 0.45); }
.scrolly__dot.is-active { height: 26px; background: var(--signal); }

/* ============================================================
   BENEFITS + TESTIMONIALS — node 3091:8283 (dark)
   ============================================================ */
.benefits {
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(45, 101, 201, 0.20), rgba(45, 101, 201, 0) 100%),
    var(--iron);
  color: var(--white);
}
.benefits__inner {
  padding-top: 121px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.benefits .eyebrow {           /* dark-mode eyebrow variant */
  background: #494949;
  color: var(--white);
  margin-bottom: 8px;
}
.benefits__title {
  font-weight: 600;
  font-size: clamp(44px, 4.167vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 888px;
}

/* Testimonials — 3 columns with hairline frame */
.testimonials {
  display: grid;
  /* Fill the row with however many quotes are live (2 now, 3 when the next
     resident confirms). */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
}
.tm {
  padding: 54px 72px;          /* 18+36 vert, 40+32 horiz (approx Figma nesting) */
  border-right: 1px solid rgba(244, 241, 234, 0.14);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 276px;
}
.testimonials .tm:last-child { border-right: none; }
.tm__quote {
  position: relative;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 28px;
  line-height: 35px;
  letter-spacing: -0.504px;
  color: var(--chalk);
}
.tm__mark {
  position: absolute;
  left: -30px; top: -6px;
  font-size: 56px;
  line-height: 35px;
  color: var(--signal);
}
.tm__cap { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.tm__name {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: var(--chalk);
}
.tm__role {
  font-weight: 400;
  font-size: 12px;
  line-height: 15.75px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--white);
}

/* Benefit list — 4 icon cards in a hairline grid */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}
.benefit {
  border-right: 1px solid rgba(244, 241, 234, 0.14);
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  padding: 28px 24px 33px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.benefit:last-child { border-right: none; }
.benefit img { height: 120px; width: auto; }
.benefit__label {
  font-weight: 600;
  font-size: 24px;
  line-height: 28.5px;
  color: var(--chalk);
}

/* ============================================================
   STORY / AUDIENCE — node 3091:8401 (light)
   ============================================================ */
.story { background: var(--white); }
.story__inner { padding-top: 120px; padding-bottom: 120px; }
.story__head {
  padding-bottom: 44px;
  border-bottom: 6px solid var(--signal);
  margin-bottom: 56px;
}
.story__head .eyebrow { margin-bottom: 8px; }
.story__title {
  font-weight: 600;
  font-size: clamp(44px, 4.167vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--iron);
}
/* Aside removed — body is just the card grid now, full width. */
.story__body { display: block; }
.story__grid {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  /* Cards size themselves to fill the row: as many as fit at >=360px each,
     stretching to share the width. Auto-derives 3-up → 2-up → 1-up. */
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
/* Below the 1920 design width the fixed 600px aside starves the cards —
   stack the aside under the grid so profiles keep a usable width. */
@media (max-width: 1700px) {
  .story__body { flex-direction: column; }
  .story__aside { width: 100% !important; max-width: 760px; }
}
@media (max-width: 680px) {
  .story__grid { grid-template-columns: 1fr; }
  .profile { flex-direction: column; }
  .profile__photo { width: 100%; height: 220px; }
}
.profile {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(65, 69, 75, 0.3);
}
.profile__photo { position: relative; width: 198px; flex: none; overflow: hidden; }
.profile__photo img { width: 100%; height: 100%; min-height: 256px; object-fit: cover; }
.profile__photo::after {
  content: ""; position: absolute; inset: 0;
  background: var(--signal); mix-blend-mode: screen; opacity: 0.7;
}
.profile__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* name + title centered now that bios are gone */
  gap: 8px;
  padding: 20px 24px;
  color: var(--iron);
}
.profile__name { font-weight: 600; font-size: 22px; line-height: 33px; }
.profile__role { font-weight: 400; font-size: 12px; line-height: 15.75px; letter-spacing: 1.8px; text-transform: uppercase; }
.profile__bio  { font-weight: 400; font-size: 16px; line-height: 1.35; }

.story__aside { width: 600px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.story__copy { display: flex; flex-direction: column; gap: 24px; }
.story__copy p { font-weight: 400; font-size: 22px; line-height: 33px; color: var(--iron); }
.story__backed-label { font-weight: 400; font-size: 12px; line-height: 15.75px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--iron); }
.story__backed img { width: 425px; max-width: 100%; height: auto; }

/* ============================================================
   CTA — node 3091:8424 (Signal blue)
   ============================================================ */
.cta {
  background: var(--signal);
  border-top: 1px solid rgba(35, 37, 40, 0.1);
}
.cta__inner { padding-top: 121px; padding-bottom: 120px; }
.cta__card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 44px;
  display: flex;
  flex-wrap: wrap;            /* wrap the form below the title before it cramps */
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}
.cta__title {
  flex: 1 1 340px;
  font-weight: 600;
  font-size: clamp(32px, 2.29vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 624px;
}
/* CTA form variant — lighter blue track, no border */
.vale-form--cta { background: #6fa3ff; border: none; }
/* On the blue CTA the Signal button would vanish into the background, so
   flip it to white-on-Signal; and the invite line goes white, not blue. */
.cta .vale-form__submit { background: var(--white); color: var(--signal); }
.cta .vale-form__submit:hover { background: var(--chalk); }
.cta .vale-form__msg--info { color: var(--white); }
.cta .vale-form__msg--error { color: #ffd7d7; }

/* ============================================================
   FOOTER — node 3091:8430 (Iron + glow)
   ============================================================ */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(45, 101, 201, 0.20), rgba(45, 101, 201, 0) 100%),
    var(--iron);
  color: var(--white);
}
.footer__inner {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer__logo { width: 94px; height: auto; color: var(--white); flex: none; }
.footer__logo svg { width: 100%; height: auto; }
.footer__nav { display: flex; gap: 32px; align-items: center; }
.footer__copyright {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}
.footer__nav a {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--white);
  text-decoration: none;
}
.footer__nav a:hover { opacity: 0.8; }

/* ============================================================
   QA-only — flatten scrollytelling for full-page screenshots
   (toggled by ?qafull=1; harmless in production)
   ============================================================ */
.qa-flat .scrolly__track { height: auto; }
.qa-flat .scrolly__stage { position: static; height: auto; padding: 80px 0; overflow: visible; }
.qa-flat .scrolly__steps { min-height: 0; }
.qa-flat .scrolly__step { position: absolute; }
.qa-flat .scrolly__step.is-active { position: static; opacity: 1; }
.qa-flat .scrolly__step:not(.is-active) { display: none; }

/* ============================================================
   MOBILE — designed-ourselves (no Figma mobile comp). Desktop is
   CEO-signed-off and untouched; everything below is additive.
   Primary target: iPhone (~390px). Tablet handled at 900px.
   ============================================================ */

/* ---- Tablet: collapse the two big multi-column sections ---- */
@media (min-width: 1201px) and (max-height: 850px) {
  .hero {
    height: clamp(760px, 56vw, 940px);
    background-position: center 52%;
  }
  .hero__content {
    top: clamp(118px, 9vw, 170px);
    gap: clamp(18px, 1.35vw, 24px);
  }
  .hero__lead { max-width: 520px; }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .hero {
    height: clamp(660px, 74vw, 760px);
    background-position: center 58%;
  }
  .hero__content {
    top: clamp(116px, 11vw, 148px);
    width: min(520px, calc(100vw - (var(--gutter) * 2)));
    gap: 18px;
  }
  .hero__eyebrow {
    font-size: clamp(20px, 2.4vw, 24px);
    margin-bottom: 14px;
  }
  .hero__title { font-size: clamp(54px, 6.4vw, 72px); }
  .hero__lead {
    max-width: 500px;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.18;
  }
  .hero .vale-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(430px, 100%);
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
  }
  .hero .vale-form__field {
    width: auto;
    max-width: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
  }
  .hero .vale-form__submit {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 15px 24px;
  }
}

@media (max-width: 900px) {
  /* Scrollytelling — keep the pinned scrub, restack diagram OVER text
     inside the sticky stage (per 2026-06-22 decision). */
  .scrolly__stage {
    flex-direction: column;
    justify-content: center;
    height: 100svh;
    gap: clamp(20px, 4vw, 36px);
    padding-inline: var(--gutter);
  }
  .scrolly__viz {
    width: 100%;
    max-width: 520px;
    margin-left: 0;
    align-self: center;
  }
  .scrolly__steps {
    width: 100%;
    max-width: 520px;
    margin-left: 0;
    align-self: center;
    min-height: 168px;
  }

  /* Testimonials — 3-up → single column */
  .testimonials { grid-template-columns: 1fr; }
  .tm {
    border-right: none;
    border-bottom: 1px solid rgba(244, 241, 234, 0.14);
    min-height: 0;
    padding: 40px 32px 40px 48px;
  }
  .testimonials .tm:last-child { border-bottom: none; }
}

/* ---- Phone + tablet-portrait (≤768px) ---- */
@media (max-width: 768px) {
  /* Hero — copy pulled up over the sky just below the logo, no wash (Jon,
     2026-06-24). The sky band reads dark text on its own. */
  /* Taller frame: portrait crop shows the full photo top-to-bottom, so a
     taller hero = more sky behind the copy AND more house below the form
     (position can't reveal more on mobile; only height can). */
  .hero {
    height: auto;
    min-height: max(760px, 110svh);
    background-position: 24% bottom;
  }
  .hero__border { display: none; }
  .hero__content {
    top: calc(var(--gutter) + 118px);
    bottom: auto;
    transform: none;
    width: auto;
    right: var(--gutter);
    gap: 18px;
  }
  .hero__logo { top: var(--gutter); }
  .hero__eyebrow { font-size: clamp(20px, 5vw, 26px); margin-bottom: 12px; }
  .hero__title { font-size: clamp(44px, 10vw, 64px); }
  .hero__lead { font-size: clamp(19px, 4.7vw, 28px); line-height: 1.2; }

  /* Availability form — clean stacked pills, NO enclosing track box. The
     white field needs a hairline so it reads on the white hero scrim. */
  .vale-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
  }
  .vale-form__field {
    width: auto;
    max-width: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
  }
  .vale-form__submit { width: 100%; text-align: center; padding: 14px 22px; }
  .vale-form__msg {
    position: static;
    margin-top: 4px;
    left: auto;
    align-self: flex-start;
    max-width: 400px;
  }

  /* Section rhythm — pull the big desktop paddings in */
  .product__head { padding-top: 72px; padding-bottom: 32px; }
  .benefits__inner { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  /* Even inset all around (card border = gutter from every section edge) */
  .cta__inner { padding-top: var(--gutter); padding-bottom: var(--gutter); }
  .footer__inner { padding-top: 64px; padding-bottom: 64px; }

  /* Slightly tighter scrub on phones — 5×90vh is a lot of thumb-travel */
  .scrolly__track { height: calc(var(--steps, 5) * 78vh); }
  .scrolly__viz { max-width: 440px; }
  .tm__quote { font-size: 22px; line-height: 30px; }

  /* Benefits + product titles shouldn't run to 80px on a phone */
  .benefits__title, .product__title { font-size: clamp(36px, 9vw, 48px); }

  /* CTA card — stack title over form, compact (no vertical space-between gap) */
  .cta__card {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    padding: 28px;
    gap: 24px;
  }
  .cta__title { flex: 0 0 auto; font-size: clamp(28px, 7.5vw, 40px); }
  .vale-form--cta { width: 100%; max-width: 400px; background: none; padding: 0; }
  .cta .vale-form__msg--info { color: rgba(255, 255, 255, 0.88); }

  /* Story — full-width profile photos, single column, no bios */
  .story__inner { padding-top: 72px; padding-bottom: 72px; }
  .story__grid { grid-template-columns: 1fr; gap: 20px; }
  .profile { flex-direction: column; }
  .profile__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .profile__photo img { min-height: 0; object-position: center 18%; }

  /* Footer — stack logo over nav */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__brand { gap: 18px; }
  .footer__nav { gap: 24px; }
}
