/* =========================================================
   R5 HOMES — Builder's Editorial design system
   Paper, ink, terracotta, sage. Fraunces + Mona Sans.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Paper / ink palette */
  --paper:       #F4EFE3;   /* warm off-white base */
  --paper-deep:  #EAE2CE;   /* tonal section bg */
  --bone:        #FBF8F1;   /* lightest cards / overlays */
  --ink:         #1B1F1A;   /* primary text */
  --ink-soft:    #4A4F47;
  --ink-mute:    #7A7F76;
  --line:        #C9C0AE;   /* hairline */
  --line-soft:   #DED5C0;

  /* Accents */
  --terra:       #B85C2E;   /* terracotta CTA */
  --terra-deep:  #8E4321;
  --terra-tint:  #E9C9B5;
  --sage:        #6B7A5C;   /* trust / secondary */
  --sage-deep:   #4A5640;
  --sage-tint:   #C7CEB7;

  /* Type families */
  --font-display: "Fraunces", "Iowan Old Style", "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Mona Sans", "Söhne", "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Type scale (clamp = fluid) — bumped for 35–70 audience (everyone has glasses or will). Body 19px floor. */
  --t-mega:    clamp(3.75rem, 9vw, 7.5rem);
  --t-display: clamp(3rem,  6.5vw, 5.5rem);
  --t-h1:      clamp(2.5rem,  4.75vw, 4rem);
  --t-h2:      clamp(2rem,    3.75vw, 2.875rem);
  --t-h3:      clamp(1.5rem,  2.2vw, 1.875rem);
  --t-h4:      1.375rem;
  --t-lead:    clamp(1.25rem, 1.625vw, 1.5rem);
  --t-body:    1.1875rem;       /* 19px */
  --t-small:   1rem;            /* 16px floor — buttons, labels, nav */
  --t-micro:   0.875rem;        /* 14px — only meta/eyebrow */
  --t-eyebrow: 0.8125rem;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 2.5rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-10: 5rem;
  --s-12: 6rem;
  --s-16: 8rem;
  --s-20: 10rem;
  --s-24: 12rem;

  /* Layout */
  --content-max: 1320px;
  --content-pad: clamp(1.25rem, 5vw, 4rem);
  --rail-pad:    clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-mid:  450ms;
  --dur-slow: 900ms;

  /* Effects */
  --shadow-soft: 0 1px 2px rgba(27,31,26,0.04), 0 8px 24px rgba(27,31,26,0.06);
  --shadow-lift: 0 2px 6px rgba(27,31,26,0.08), 0 24px 60px rgba(27,31,26,0.12);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
p { line-height: 1.65; }
h1, h2, h3, h4 { line-height: 1.2; }

/* Skip to content link — visible only when focused */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* Focus visible — accessible focus rings for all interactive elements */
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 3px;
  outline-width: 2px;
}
.nav-list a:focus-visible,
.nav-list .has-menu > button:focus-visible {
  outline-offset: 0;
}
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Paper grain texture ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 380;          /* Fraunces variable: lighter than typical bold */
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-variation-settings: "opsz" 80, "SOFT" 50; }
h4 { font-size: var(--t-h4); font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.005em; }

p { line-height: 1.6; color: var(--ink-soft); }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--ink); }

em, .italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow--sage { color: var(--sage-deep); }
.eyebrow--ink  { color: var(--ink-soft); }

.numeral {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
  position: relative;
  z-index: 2;
}
.shell--wide { max-width: 1500px; }
.shell--narrow { max-width: 880px; }

section { position: relative; z-index: 2; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper-deep { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: rgba(244, 239, 227, 0.78); }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--s-6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--terra);
  color: var(--bone);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 24px rgba(184,92,46,0.22);
}
.btn--primary:hover { background: var(--terra-deep); box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 12px 32px rgba(184,92,46,0.28); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.85rem 1.5rem;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--quiet {
  padding: 0.5rem 0;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--ink);
}
.btn--quiet:hover { color: var(--terra); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 227, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand .mark {
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  line-height: 28px;
  transform: translateY(-2px);
}
.brand .wm { font-weight: 360; }
.brand .wm em { font-style: italic; color: var(--terra); }

/* Image-based brand logo (header). Replaces the legacy text mark. */
.brand img.brand-logo {
  display: block;
  height: clamp(32px, 3.5vw, 44px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  max-width: none;
}
.lp-bar .brand img.brand-logo { height: clamp(28px, 3vw, 36px); }
.site-footer .word img.footer-logo,
.lp-footer-logo {
  display: block;
  height: clamp(56px, 7vw, 80px);
  width: auto;
}

.nav-list {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.nav-list a, .nav-list .has-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.nav-list a:hover, .nav-list .has-menu > button:hover { background: rgba(27,31,26,0.06); }
.nav-list .has-menu { position: relative; }
.nav-list .has-menu .menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.nav-list .has-menu:hover .menu,
.nav-list .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .has-menu .menu a { padding: 0.55rem 0.8rem; border-radius: 6px; font-size: 0.9rem; }
.nav-list .has-menu .menu a:hover { background: var(--paper-deep); color: var(--terra-deep); }

.nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.nav-cta .btn--primary { text-transform: uppercase; letter-spacing: 0.06em; }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-list { display: none; }
  .nav-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 999px;
  }
  .nav-toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--ink); position: relative;
  }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after  { top:  6px; }

  body.nav-open .nav-mobile { transform: translateX(0); }
  .nav-mobile {
    position: fixed; inset: 0; z-index: 60;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform var(--dur-mid) var(--ease-in-out);
    padding: 5rem var(--content-pad) 2rem;
    overflow-y: auto;
  }
  .nav-mobile a { display: block; padding: 0.75rem 0; font-size: 1.5rem; font-family: var(--font-display); border-bottom: 1px solid var(--line-soft); }
  .nav-mobile details summary { font-size: 1.5rem; font-family: var(--font-display); padding: 0.75rem 0; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
  .nav-mobile details a { font-size: 1rem; font-family: var(--font-sans); padding: 0.4rem 0 0.4rem 1rem; border-bottom: 0; color: var(--ink-soft); }
  .nav-close { position: absolute; top: 1.25rem; right: var(--content-pad); width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 999px; }
}
@media (min-width: 1025px) { .nav-mobile { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 8rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow-row {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: var(--s-4);
}
.hero-eyebrow-row .rule {
  flex: 1; height: 1px; background: var(--line);
}

.hero h1 {
  font-size: var(--t-mega);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.hero h1 .row { display: block; }
.hero h1 em {
  font-style: italic;
  color: var(--terra);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-sub {
  margin-top: var(--s-4);
  font-size: var(--t-lead);
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero-cta {
  margin-top: var(--s-5);
  display: flex; gap: 1rem; flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom var(--dur-slow) var(--ease-out) both;
}
@keyframes hero-zoom { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1.04); opacity: 1; } }

.hero-tag {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: rgba(27,31,26,0.78);
  color: var(--paper);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Stat strip beneath hero */
.hero-stats {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.hero-stats .stat {
  background: var(--paper);
  padding: 1.25rem 1.5rem;
}
.hero-stats .stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}
.hero-stats .stat .num em { color: var(--terra); }
.hero-stats .stat .lbl {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.35rem;
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reveal animation (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d-1 { transition-delay: 80ms; }
.reveal-d-2 { transition-delay: 160ms; }
.reveal-d-3 { transition-delay: 240ms; }
.reveal-d-4 { transition-delay: 320ms; }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--s-8);
  align-items: end;
  margin-bottom: var(--s-8);
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: var(--s-3); } }
.section-head h2 { max-width: 22ch; }
.section-head .lead { max-width: 56ch; }
.section-head .tag-row {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.75rem;
}

/* ---------- Editorial pair (image + text) ---------- */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.pair--reverse > .pair-text { order: 2; }
.pair--reverse > .pair-figure { order: 1; }
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; } .pair--reverse > .pair-text, .pair--reverse > .pair-figure { order: initial; } }

.pair-figure {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pair-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pair-figure:hover img { transform: scale(1.03); }

.pair-text h3 { margin-bottom: var(--s-3); max-width: 18ch; }
.pair-text p { max-width: 50ch; }
.pair-text .cta-row { margin-top: var(--s-4); }

/* ---------- Benefits grid (numbered) ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }
.benefit {
  background: var(--paper);
  padding: var(--s-5) var(--s-4);
  display: grid;
  gap: var(--s-2);
  align-content: start;
  min-height: 240px;
  transition: background-color var(--dur-mid) var(--ease-out);
}
.benefit:hover { background: var(--bone); }
.benefit .num { color: var(--terra); }
.benefit h3 {
  font-size: 1.5rem;
  font-variation-settings: "opsz" 80, "SOFT" 50;
}
.benefit p { font-size: var(--t-small); color: var(--ink-soft); }

/* ---------- Floorplan grid ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1024px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--line-soft);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.plan-card .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.plan-card .frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.plan-card:hover .frame img { transform: scale(1.06); }
.plan-card .body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid; gap: 0.4rem;
}
.plan-card .row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.5rem;
}
.plan-card h3 {
  font-size: 1.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.plan-card .meta {
  font-size: var(--t-micro);
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.plan-card .specs {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: var(--t-small); color: var(--ink-soft);
}
.plan-card .specs span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---------- Quote / pull ---------- */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-style: italic;
  color: var(--ink);
  max-width: 28ch;
  letter-spacing: -0.01em;
}
.pull .mark { color: var(--terra); }

/* ---------- Photo collage ---------- */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 12vw;
  gap: var(--s-2);
}
.collage figure { overflow: hidden; border-radius: var(--radius-md); position: relative; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.collage figure:hover img { transform: scale(1.05); }
.c-1 { grid-column: span 6; grid-row: span 3; }
.c-2 { grid-column: span 4; grid-row: span 2; }
.c-3 { grid-column: span 2; grid-row: span 2; }
.c-4 { grid-column: span 4; grid-row: span 2; }
.c-5 { grid-column: span 4; grid-row: span 2; }
.c-6 { grid-column: span 4; grid-row: span 2; }
@media (max-width: 900px) {
  .collage { grid-auto-rows: 28vw; }
  .c-1, .c-2, .c-3, .c-4, .c-5, .c-6 { grid-column: span 12; grid-row: span 1; }
}

/* ---------- Contact / address card ---------- */
.address-card {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 800px) { .address-card { grid-template-columns: 1fr; padding: var(--s-4); } }
.address-card h3 { color: var(--paper); font-size: 2rem; }
.address-card .label {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-tint);
}
.address-card .val { font-size: 1.0625rem; margin-top: 0.4rem; color: var(--paper); }
.address-card .col { display: grid; gap: var(--s-3); align-content: start; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 2;
  padding-block: var(--s-12) var(--s-6);
  margin-top: var(--s-12);
}
.site-footer h4 { color: var(--paper); margin-bottom: var(--s-2); font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--terra-tint); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid a { color: rgba(244,239,227,0.78); display: block; padding: 0.25rem 0; transition: color var(--dur-fast); }
.footer-grid a:hover { color: var(--terra-tint); }
.site-footer .word {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.site-footer .word em { color: var(--terra); font-style: italic; }
.site-footer p { color: rgba(244,239,227,0.7); max-width: 32ch; font-size: var(--t-small); }
.footer-bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(244,239,227,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--t-micro);
  color: rgba(244,239,227,0.6);
}
.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: rgba(244,239,227,0.06);
  margin-top: var(--s-12);
  margin-bottom: -0.2em;
  pointer-events: none;
  user-select: none;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-3); }
.form label { font-size: var(--t-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.form .field { display: grid; gap: 0.5rem; }
.form input, .form textarea, .form select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }

/* ---------- Misc utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.dim { opacity: 0.7; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 700px) { .hide-mobile { display: none; } .show-mobile { display: initial; } }

/* Blueprint grid background option */
.bp {
  background-image:
    linear-gradient(to right, rgba(27,31,26,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,31,26,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* =========================================================
   ENHANCEMENTS — V2 hero, ledger calculator, scrollytelling
   ========================================================= */

/* ---------- Hero v2 — Editorial signature treatment ---------- */
.hero-v2 {
  position: relative;
  padding-block: clamp(3rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* Vertical numbered rail running down left side */
.hero-v2 .rail {
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(0.5rem, 2vw, 1.5rem);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 20%, var(--line) 80%, transparent);
  z-index: 1;
}
.hero-v2 .rail-text {
  position: absolute;
  top: 50%;
  left: clamp(-1.25rem, -1vw, -0.5rem);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  z-index: 1;
  display: none;
}
@media (min-width: 1100px) { .hero-v2 .rail-text { display: block; } }

/* Asymmetric headline stack */
.h-stack {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  position: relative;
  z-index: 3;
  margin-block: clamp(1.5rem, 4vw, 3rem);
  pointer-events: none;
}
.h-stack > * { pointer-events: auto; }
.h-line {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--ink);
  text-wrap: balance;
}
.h-line em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Line 1: "Live upstairs," — left, normal weight, smaller */
.h-line.l1 {
  grid-column: 1 / span 9;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 380;
  margin-left: clamp(1rem, 4vw, 3rem);
}
/* Line 2: "Rent downstairs," — pushed right, italic, terracotta */
.h-line.l2 {
  grid-column: 4 / span 9;
  font-size: clamp(4rem, 11vw, 9rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--terra);
  text-align: right;
  margin-top: -0.15em;
  margin-right: clamp(0.5rem, 2vw, 2rem);
}
.h-line.l2 .underline {
  position: relative;
  display: inline-block;
}
.h-line.l2 .underline::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%;
  bottom: 0.05em;
  height: 0.08em;
  background: var(--terra);
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 1.4s var(--ease-out) 0.8s both;
}
@keyframes underline-grow { to { transform: scaleX(1); } }

/* Line 3: "Crush your mortgage." — left, biggest, ink */
.h-line.l3 {
  grid-column: 1 / span 11;
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 420;
  margin-top: -0.1em;
  margin-left: clamp(0.25rem, 2vw, 1rem);
}
.h-line.l3 .dot {
  display: inline-block;
  width: 0.18em; height: 0.18em;
  background: var(--terra);
  border-radius: 999px;
  margin-left: 0.06em;
  vertical-align: 0.07em;
  transform: scale(0);
  animation: dot-pop 0.5s var(--ease-out) 1.4s both;
}
@keyframes dot-pop { to { transform: scale(1); } }

/* Word reveal animation (mask slides up).
   padding-bottom + matching negative margin gives descenders (y, p, g, j) room
   to render below the baseline without expanding the visual line box. */
.h-mask { display: inline-block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.h-mask > span { display: inline-block; transform: translateY(110%); animation: word-reveal 0.9s var(--ease-out) both; }
.h-mask > span.d1 { animation-delay: 0.05s; }
.h-mask > span.d2 { animation-delay: 0.30s; }
.h-mask > span.d3 { animation-delay: 0.55s; }
@keyframes word-reveal { to { transform: translateY(0); } }

/* Sub layout: photo left, diagram right OR stat strip beneath */
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero-v2-grid { grid-template-columns: 1fr; }
}
.hero-v2-grid.hero-v2-grid--single {
  grid-template-columns: 1fr;
  justify-items: start;
}

.hero-v2-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  animation: photo-reveal 1.2s var(--ease-out) 0.6s both;
  box-shadow: var(--shadow-lift);
}
.hero-v2-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: photo-zoom 12s var(--ease-out) 0.6s both;
}
/* Bunny iframe inside the photo card */
.hero-v2-photo iframe.hero-v2-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============== Hero stage with full-bleed background video ============== */
.hero-v2-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.hero-v2-bg-poster,
.hero-v2-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-v2-bg-video {
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero-v2-bg-video.is-ready { opacity: 1; }
.hero-v2-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(15, 17, 14, 0.78) 0%,
      rgba(15, 17, 14, 0.62) 50%,
      rgba(15, 17, 14, 0.78) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, 0.35), transparent 65%);
}
.hero-v2-stage-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-v2-stage-content .hero-eyebrow-row { justify-content: center; }
.hero-v2-stage-content .h-stack { text-align: center; }
.hero-v2-stage-content .hero-v2-lede { margin-inline: auto; }
.hero-v2-stage-content .hero-v2-cta { justify-content: center; }

/* Light text inside the dark-overlaid hero stage */
.hero-v2-stage .hero-eyebrow-row .numeral { color: var(--paper); }
.hero-v2-stage .hero-eyebrow-row .numeral.muted { color: rgba(244, 239, 227, 0.7); }
.hero-v2-stage .hero-eyebrow-row .rule { background: rgba(244, 239, 227, 0.4); }
.hero-v2-stage .h-stack,
.hero-v2-stage .h-stack * { color: var(--paper); }
.hero-v2-stage .h-stack .underline { background-image: linear-gradient(transparent 60%, rgba(217, 113, 75, 0.45) 60%); }
.hero-v2-lede {
  max-width: 62ch;
  margin-top: 1.5rem;
  font-size: var(--t-lead);
  color: rgba(244, 239, 227, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.hero-v2-stage .micro { color: rgba(244, 239, 227, 0.78); }
.hero-v2-stage .btn--ghost { color: var(--paper); border-color: rgba(244, 239, 227, 0.5); }
.hero-v2-stage .btn--ghost:hover { background: rgba(244, 239, 227, 0.12); border-color: var(--paper); }
@keyframes photo-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes photo-zoom { to { transform: scale(1.0); } }
.hero-v2-photo .stamp {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  width: 96px; height: 96px;
  border-radius: 999px;
  background: rgba(244,239,227,0.92);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.2;
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  animation: stamp-spin 60s linear infinite;
  font-weight: 500;
}
@keyframes stamp-spin { to { transform: rotate(360deg); } }
.hero-v2-photo .stamp em {
  display: block;
  font-style: italic;
  color: var(--terra);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  font-weight: 460;
  font-variation-settings: "opsz" 80, "SOFT" 100;
}

/* Diagram block (SVG floor diagram) */
.hero-v2-diagram {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-content: end;
}
.hero-v2-diagram .legend {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-v2-diagram .diag-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(27,31,26,0.06));
}
.diag-svg .stroke { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw-line 2s var(--ease-out) 0.7s forwards; }
.diag-svg .stroke.delay-1 { animation-delay: 1.2s; }
.diag-svg .stroke.delay-2 { animation-delay: 1.6s; }
.diag-svg .fill-pop { opacity: 0; animation: fade-in 0.4s var(--ease-out) 2.2s forwards; }
.diag-svg .fill-pop-2 { opacity: 0; animation: fade-in 0.4s var(--ease-out) 2.5s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.diag-svg .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  fill: var(--ink-soft);
  text-transform: uppercase;
}
.diag-svg .label.live { fill: var(--ink); }
.diag-svg .label.rent { fill: var(--terra); font-weight: 600; }
.diag-svg .room-fill { fill: var(--paper-deep); }
.diag-svg .room-fill-rent { fill: var(--terra-tint); opacity: 0.4; }

/* Ticker / specs row */
.hero-v2-ticker {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.hero-v2-ticker .cell {
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.4rem;
  border-right: 1px solid var(--line);
}
.hero-v2-ticker .cell:last-child { border-right: 0; }
.hero-v2-ticker .cell .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-v2-ticker .cell .num em { color: var(--terra); font-style: italic; }
.hero-v2-ticker .cell .lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 720px) { .hero-v2-ticker { grid-template-columns: repeat(2, 1fr); }
  .hero-v2-ticker .cell:nth-child(2) { border-right: 0; }
  .hero-v2-ticker .cell:nth-child(1), .hero-v2-ticker .cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* CTA cluster v2 */
.hero-v2-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}
.hero-v2-cta .micro {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-v2-cta .micro::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--sage);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Calculator mode toggle ---------- */
.calc-mode {
  display: inline-flex;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--s-3);
}
.calc-mode button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.calc-mode button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.calc-mode button:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* ---------- LEDGER CALCULATOR — paper receipt aesthetic ---------- */
.ledger {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .ledger { grid-template-columns: 1fr; } }

.ledger-form {
  display: grid;
  gap: 0;
  position: relative;
}
.ledger-form .row {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--line);
}
.ledger-form .row:first-of-type { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.ledger-form .row label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ledger-form .row .input-wrap {
  position: relative;
  display: flex;
  align-items: baseline;
}
.ledger-form .row input {
  width: 100%;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  text-align: right;
  color: var(--ink);
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.02em;
}
.ledger-form .row input:focus {
  outline: 0;
  background: var(--paper-deep);
  border-radius: 4px;
}
.ledger-form .row .unit {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin-left: 0.25rem;
}

/* The receipt */
.receipt {
  position: relative;
  background: var(--bone);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(27,31,26,0.04),
    0 12px 40px rgba(27,31,26,0.10);
  background-image:
    repeating-linear-gradient(0deg,
      transparent 0,
      transparent 23px,
      rgba(184,92,46,0.04) 23px,
      rgba(184,92,46,0.04) 24px);
  isolation: isolate;
}
/* Torn-edge top */
.receipt::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 12px;
  background:
    radial-gradient(circle at 6px 0, var(--bone) 6px, transparent 6.5px) repeat-x;
  background-size: 12px 12px;
}
/* Torn-edge bottom */
.receipt::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 0; right: 0;
  height: 12px;
  background:
    radial-gradient(circle at 6px 12px, var(--bone) 6px, transparent 6.5px) repeat-x;
  background-size: 12px 12px;
}
.receipt .head {
  display: grid;
  gap: 0.4rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.receipt .head .brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 80, "SOFT" 50;
}
.receipt .head .brand em { color: var(--terra); }
.receipt .head .meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.receipt .lines {
  display: grid;
  gap: 0;
  margin-block: 1.25rem;
}
.receipt .line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.receipt .line .lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.receipt .line .val {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.receipt .line.deduct .val { color: var(--sage-deep); }
.receipt .total {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--ink);
  text-align: center;
}
.receipt .total .lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.receipt .total .effective {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.receipt .total .effective .dollar {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--terra);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  transition: font-size var(--dur-fast) var(--ease-out);
}
.receipt .total .effective .amount {
  font-size: clamp(3.25rem, 8vw, 6rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: color var(--dur-fast) var(--ease-out);
}
.receipt .total .sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.receipt .stamp-mark {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 70px; height: 70px;
  border: 1.5px solid var(--terra);
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--terra);
  transform: rotate(-12deg);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  line-height: 1.1;
  font-weight: 460;
}
.receipt.is-good .stamp-mark { opacity: 1; }
.receipt .savings-bar {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.receipt .savings-bar .lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
}
.receipt .savings-bar .track {
  height: 6px;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}
.receipt .savings-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage) 0%, var(--terra) 100%);
  width: 0;
  transition: width 0.6s var(--ease-out);
  border-radius: 999px;
}

/* Number flicker animation when value changes */
@keyframes flicker {
  0% { opacity: 0.5; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}
.receipt .val.changed,
.receipt .effective .amount.changed { animation: flicker 0.25s var(--ease-out); }

/* ---------- SCROLLYTELLING — floor walkthrough (Cherry-style) ---------- */
.walkthrough {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .walkthrough { grid-template-columns: 1fr; } }

.walkthrough .stage {
  position: sticky;
  top: 110px;
  height: clamp(420px, 75vh, 720px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-deep);
}
.walkthrough .stage .layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.walkthrough .stage .layer.in { opacity: 1; }
.walkthrough .stage .layer img {
  width: 100%; height: 100%; object-fit: cover;
}
.walkthrough .stage .legend {
  position: absolute;
  left: 1.5rem; bottom: 1.5rem;
  background: rgba(27,31,26,0.82);
  color: var(--paper);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.walkthrough .scroller {
  display: grid;
  gap: clamp(40vh, 60vh, 80vh);
  padding-block: 8vh;
}
.walkthrough .panel {
  display: grid;
  gap: 1rem;
  max-width: 50ch;
}
.walkthrough .panel .step {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.walkthrough .panel h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.walkthrough .panel p { font-size: 1.0625rem; color: var(--ink-soft); }
.walkthrough .panel .specs {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.walkthrough .panel .specs span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.walkthrough .panel .specs strong { color: var(--ink); font-weight: 500; }
.walkthrough .panel .panel-img { display: none; }
@media (max-width: 900px) {
  .walkthrough .panel .panel-img {
    display: block;
    margin-bottom: 1.25rem;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .walkthrough .panel .panel-img img { width: 100%; height: 100%; object-fit: cover; }
}

/* Hero photo + asymmetric spec stack overlay (Cherry hero v2) */
.plan-hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: var(--ink);
}
.plan-hero .bg {
  position: absolute;
  inset: 0;
}
.plan-hero .bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: photo-zoom 18s linear infinite alternate;
}
.plan-hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27,31,26,0.0) 30%, rgba(27,31,26,0.45) 70%, rgba(27,31,26,0.85) 100%),
    linear-gradient(90deg, rgba(27,31,26,0.55) 0%, rgba(27,31,26,0.0) 50%);
}
.plan-hero .content {
  position: relative;
  z-index: 2;
  min-height: 90vh;
  padding: clamp(2rem, 5vw, 5rem) 0;
  display: grid;
  align-items: end;
}
.plan-hero h1 {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
}
.plan-hero h1 em {
  display: block;
  font-style: italic;
  color: var(--terra);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 0.65em;
  margin-top: -0.05em;
}
.plan-hero .crown {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terra-tint);
  margin-bottom: 1.5rem;
}
.plan-hero .specs-stack {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244,239,227,0.25);
}
.plan-hero .specs-stack .item {
  display: grid;
  gap: 0.25rem;
}
.plan-hero .specs-stack .item .lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-tint);
}
.plan-hero .specs-stack .item .val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--paper);
  font-variation-settings: "opsz" 80, "SOFT" 60;
  letter-spacing: -0.02em;
}
.plan-hero .ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.plan-hero .scroll-cue {
  position: absolute;
  bottom: 2rem; right: clamp(1rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 3;
  opacity: 0.7;
  writing-mode: vertical-rl;
}
.plan-hero .scroll-cue::before {
  content: "";
  display: block;
  width: 1px; height: 40px;
  background: var(--paper);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Plan math panel (per-floorplan calculator preview) ---------- */
.plan-math {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .plan-math { grid-template-columns: 1fr; } }
.plan-math .copy h2 { max-width: 16ch; }
.plan-math .copy p { max-width: 50ch; }

/* Sticky mobile CTA bar removed — relied on intrusive bottom-screen real estate
   that conflicts with single-CTA strategy and Google's intrusive-interstitial guidance. */

/* ---------- Star rating display ---------- */
.stars { display: inline-flex; gap: 2px; align-items: center; color: var(--terra); }
.stars svg { width: 18px; height: 18px; fill: var(--terra); }
.stars .count {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.stars-large svg { width: 26px; height: 26px; }
.stars-large .count { font-size: 1rem; }

/* Hero rating row */
.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(244, 239, 227, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-small);
  margin-bottom: 1rem;
}

/* =========================================================
   RESPONSIVE PASS — comprehensive mobile/tablet refinements
   ========================================================= */

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  .hero-v2 .rail-text { display: none; }
  .hero-v2-diagram .diag-svg { max-width: 280px; }
  .nav-list { display: none; }
}

/* ---------- Small tablet / large phone (≤900px) ---------- */
@media (max-width: 900px) {
  /* Hero v2: stack and tighten */
  .h-stack { display: block; margin-block: 1.5rem; }
  .h-line.l1, .h-line.l2, .h-line.l3 {
    grid-column: auto;
    margin: 0;
    text-align: left;
    display: block;
  }
  .h-line.l1 { font-size: clamp(2.75rem, 11vw, 4.5rem); }
  .h-line.l2 {
    font-size: clamp(3rem, 13vw, 5rem);
    margin-top: 0.05em;
  }
  .h-line.l3 {
    font-size: clamp(3.25rem, 14vw, 5.5rem);
    margin-top: 0.05em;
  }

  .hero-v2-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 2rem;
  }
  .hero-v2-photo { aspect-ratio: 4 / 3; }
  .hero-v2-photo .stamp { width: 78px; height: 78px; font-size: 0.625rem; top: 0.75rem; left: 0.75rem; }
  .hero-v2-photo .stamp em { font-size: 0.875rem; }

  .hero-v2-diagram { padding-block: 0.5rem; }
  .hero-v2-diagram .diag-svg { max-width: 240px; margin-inline: auto; display: block; }

  .hero-v2-cta { margin-top: 1.25rem; }
  .hero-v2-cta .micro { width: 100%; order: 99; margin-top: 0.5rem; }

  /* Walkthrough: stop pinning, stack panels with image above each */
  .walkthrough { grid-template-columns: 1fr; gap: 1.5rem; }
  .walkthrough .stage { display: none; }
  .walkthrough .scroller {
    gap: 3rem;
    padding-block: 0;
  }
  .walkthrough .panel {
    background: var(--bone);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    max-width: none;
  }
  /* Inject inline image per panel via data-img — but since we can't, show an info notice */

  /* Receipt: stamp doesn't overlap content */
  .receipt .stamp-mark {
    width: 56px; height: 56px;
    font-size: 0.5625rem;
    top: 0.75rem; right: 0.75rem;
  }
  .receipt .head .brand { font-size: 1.25rem; }

  /* Ledger form: more breathing room */
  .ledger-form .row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1rem 0; }
  .ledger-form .row .input-wrap { justify-content: flex-start; }
  .ledger-form .row input { font-size: 1.125rem; text-align: left; padding-left: 0; }

  /* Plan hero: tighter padding */
  .plan-hero { min-height: 80vh; }
  .plan-hero .content { min-height: 80vh; }
  .plan-hero .specs-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
  }
  .plan-hero .scroll-cue { display: none; }

  /* Plan math collapse */
  .plan-math .receipt { justify-self: stretch; max-width: none; }

  /* Section paddings */
  .section { padding-block: 3.5rem; }
  .hero, .hero-v2 { padding-block: 2rem 3rem; }

  /* Stats / ticker stack to 2 cols */
  .hero-stats, .hero-v2-ticker { grid-template-columns: repeat(2, 1fr); }
  .hero-v2-ticker .cell:nth-child(2) { border-right: 0; }
  .hero-v2-ticker .cell:nth-child(1), .hero-v2-ticker .cell:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* Section header stacks */
  .section-head { grid-template-columns: 1fr; gap: 1rem; }

  /* Pair always stacks */
  .pair { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Plan hero h1 sizing already fluid, just ensure no overflow */
  .plan-hero h1 { font-size: clamp(3.5rem, 16vw, 6rem); }
  .plan-hero h1 em { font-size: 0.7em; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-mega { font-size: clamp(3.5rem, 14vw, 6rem); }

  /* Address card */
  .address-card { grid-template-columns: 1fr; padding: var(--s-4); gap: 1.5rem; }

  /* Plan hero specs stack at narrow widths */
  .plan-hero .specs-stack .item .val { font-size: clamp(1.25rem, 5vw, 1.75rem); }
}

/* ---------- Phone (≤600px) ---------- */
@media (max-width: 600px) {
  /* Headline: even tighter */
  .h-line.l1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .h-line.l2 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .h-line.l3 { font-size: clamp(2.75rem, 15vw, 4.25rem); }

  /* Eyebrow row: stack instead of inline */
  .hero-eyebrow-row { flex-wrap: wrap; gap: 0.5rem; }
  .hero-eyebrow-row .rule { display: none; }

  /* Hero photo + diagram */
  .hero-v2-photo { aspect-ratio: 4 / 3; }
  .hero-v2-photo .stamp { width: 64px; height: 64px; font-size: 0.5625rem; }
  .hero-v2-photo .stamp em { font-size: 0.75rem; margin-top: 0.15rem; }

  /* CTA buttons stack full width */
  .hero-v2-cta .btn,
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-v2-cta .micro { font-size: 0.625rem; }

  /* Plan hero: 2x2 specs */
  .plan-hero { min-height: 70vh; }
  .plan-hero .content { min-height: 70vh; padding: 2rem 0; }
  .plan-hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .plan-hero .ctas .btn { flex: 1 1 100%; }

  /* Receipt: full width, smaller text */
  .receipt { padding: 1.25rem 1rem; }
  .receipt .total .effective .amount { font-size: clamp(2.5rem, 14vw, 4rem); }
  .receipt .total .effective .dollar { font-size: clamp(1.75rem, 9vw, 2.75rem); }
  .receipt .line { padding: 0.5rem 0; gap: 0.25rem; }
  .receipt .line .lbl { font-size: 0.6875rem; }
  .receipt .line .val { font-size: 0.9375rem; }
  .receipt .stamp-mark { display: none; }

  /* Ticker single column */
  .hero-stats, .hero-v2-ticker { grid-template-columns: 1fr; }
  .hero-v2-ticker .cell { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .hero-v2-ticker .cell:last-child { border-bottom: 0; }
  .hero-v2-ticker .cell .num { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Plan grid → 1 col */
  .plan-grid { grid-template-columns: 1fr; }

  /* Benefits → 1 col */
  .benefits { grid-template-columns: 1fr; }
  .benefit { min-height: auto; padding: 2rem 1.25rem; }

  /* Footer → 1 col */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Brand text smaller */
  .brand .wm { display: none; }

  /* Eyebrow and numerals: smaller */
  .numeral { font-size: 0.6875rem; }
  .eyebrow { font-size: 0.6875rem; }

  /* Section padding */
  .section { padding-block: 2.5rem; }
  .hero, .hero-v2 { padding-block: 1.5rem 2.5rem; }

  /* Buttons: tighter */
  .btn { padding: 0.85rem 1.25rem; font-size: 0.875rem; }

  /* Pull quote */
  .pull { font-size: 1.5rem; }

  /* Address card: dial down */
  .address-card h3 { font-size: 1.5rem; }

  /* Forms */
  .form input, .form textarea, .form select { font-size: 16px; /* prevent iOS zoom */ }

  /* Walkthrough panel: tighter */
  .walkthrough .panel { padding: 1.25rem; }
  .walkthrough .panel h3 { font-size: 1.5rem; }

  /* Plan math */
  .plan-math { gap: 1.5rem; }
}

/* ---------- Very narrow phones (≤380px) ---------- */
@media (max-width: 380px) {
  :root { --content-pad: 1rem; }
  .h-line.l1, .h-line.l2, .h-line.l3 { line-height: 0.95; }
  .receipt .head .brand { font-size: 1.125rem; }
  .nav { gap: 0.75rem; }
  .nav-cta .btn { display: none; }
  .footer-mega { display: none; }
}

/* ---------- Tall mobile / landscape phones ---------- */
@media (max-height: 600px) and (orientation: landscape) {
  .plan-hero { min-height: 100vh; }
  .plan-hero .content { min-height: 100vh; padding: 1.5rem 0; }
}

/* ---------- Wide desktop ---------- */
@media (min-width: 1600px) {
  :root { --content-pad: clamp(2rem, 4vw, 5rem); }
}

/* ---------- Touch devices: disable hover effects that conflict ---------- */
@media (hover: none) {
  .plan-card:hover { transform: none; box-shadow: var(--shadow-soft); }
  .plan-card:hover .frame img { transform: none; }
  .pair-figure:hover img { transform: none; }
  .btn:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-bar, .nav-mobile, .hero-v2 .rail, .hero-v2 .rail-text { display: none !important; }
  body { color: #000; background: #fff; }
  body::before { display: none; }
  a { color: inherit; text-decoration: underline; }
}

/* =========================================================
   FB AD LANDING PAGE — high-conversion, single-CTA, no-nav
   ========================================================= */
.lp { background: var(--paper); }

.lp-bar {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.85rem 0;
  background: var(--paper);
}
.lp-bar .row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lp-bar .brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.lp-bar .brand .mark {
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  line-height: 28px;
  font-family: var(--font-display);
  transform: translateY(-2px);
}
.lp-bar .brand em { font-style: italic; color: var(--terra); }
.lp-bar .phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.lp-bar .phone strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--terra);
}
.lp-bar .phone svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .lp-bar .phone .lbl { display: none; }
  .lp-bar .brand { font-size: 1.125rem; }
}

.lp-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at top, var(--bone) 0%, var(--paper) 60%),
    var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.lp-hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: var(--terra);
  color: var(--bone);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.lp-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  max-width: 18ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.lp-hero h1 .amount {
  display: inline-block;
  font-style: italic;
  color: var(--terra);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  white-space: nowrap;
}
.lp-hero p.sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.lp-hero .cta-block {
  display: grid;
  gap: 0.75rem;
  align-items: start;
  max-width: 480px;
}
.lp-hero .cta-block .btn--primary {
  font-size: 1.125rem;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  width: 100%;
  justify-content: center;
  font-weight: 500;
}
.lp-hero .cta-block .alt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-align: center;
}
.lp-hero .cta-block .alt a {
  color: var(--terra);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 1px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-inline: 0.25em;
}
.lp-hero .trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.lp-hero .trust-divider {
  width: 1px; height: 18px; background: var(--line);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.lp-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.lp-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-photo .badge {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(244,239,227,0.92);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-photo { aspect-ratio: 4 / 3; max-height: 60vh; }
}

/* Profession badges */
.lp-pros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.lp-pros span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

/* Story cards */
.lp-stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 900px) { .lp-stories { grid-template-columns: 1fr; } }
.lp-story {
  background: var(--bone);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lp-story .frame {
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  overflow: hidden;
}
.lp-story .frame img { width: 100%; height: 100%; object-fit: cover; }
.lp-story .body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.lp-story .pro {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}
.lp-story h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  font-variation-settings: "opsz" 80, "SOFT" 60;
}
.lp-story p {
  font-size: var(--t-small);
  color: var(--ink-soft);
  flex: 1;
}
.lp-story .stat {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.lp-story .stat .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--terra);
  font-variation-settings: "opsz" 80, "SOFT" 80;
  letter-spacing: -0.02em;
}
.lp-story .stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Form section */
.lp-form-section {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.lp-form-section h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 22ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.lp-form-section .lead { color: rgba(244,239,227,0.78); max-width: 56ch; }
.lp-form {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1rem;
  max-width: 560px;
}
.lp-form .field { display: grid; gap: 0.4rem; }
.lp-form label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.lp-form input, .lp-form select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
}
.lp-form input:focus, .lp-form select:focus {
  outline: 0; border-color: var(--ink);
}
.lp-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .lp-form .row { grid-template-columns: 1fr; } }
.lp-form button {
  margin-top: 0.5rem;
  background: var(--terra);
  color: var(--bone);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 1.1rem;
  border-radius: 10px;
  letter-spacing: 0.01em;
  width: 100%;
  cursor: pointer;
  border: 0;
  transition: background var(--dur-fast);
}
.lp-form button:hover { background: var(--terra-deep); }
.lp-form .fine {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
