/**
 * home.css — homepage-specific section styling
 *
 * Consumes tokens.css + base.css. Holds only what is unique to the homepage;
 * anything reusable belongs in base.css (the .card, .field, button, nav,
 * footer, and typography primitives all live there).
 */

/* ---- Section 1 — Hero -------------------------------------------------- */

.hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  padding-block: var(--space-12);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.hero__headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.hero__subhead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-1);
}

.hero__proof {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--space-2);
  max-width: none;
}

/* ---- Shared section rhythm -------------------------------------------- */

/* Each section opens with an eyebrow then an h2; give them consistent space. */
.section > .wrap > .eyebrow { margin-bottom: 0.5rem; }

/* ---- Section 2 — The three results ------------------------------------ */

.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.result { display: flex; flex-direction: column; gap: var(--space-1); }
.result__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--signal);
  min-height: 2.4em;
}
.result__body { font-size: 1rem; color: var(--ink); max-width: none; }

.results__disclaimer {
  margin-block: var(--space-6);
  padding-block: var(--space-3);
  border-block: 1px solid var(--rule);
  font-style: italic;
  color: var(--muted);
  max-width: 64ch;
}
.results__stat {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 64ch;
}
.results__stat cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Section 3 — The Reclaimed Week (scroll-driven) ------------------- */

/* The section provides its own rhythm — the scroll runway handles spacing. */
.reclaimed { padding-block: var(--space-8) 0; }

.reclaimed__intro { text-align: center; }
.reclaimed__scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--space-3);
  max-width: none;
  transition: opacity var(--dur-base) var(--ease);
}
/* Once the visitor is clearly scrolling, the prompt has done its job. */
.reclaimed:not([data-scene="1"]) .reclaimed__scroll-hint { opacity: 0; }

/* The scroll runway — tall; the stage sticks within it as scenes advance. */
.reclaimed__scroll { height: 280vh; }
.reclaimed__stage {
  position: sticky;
  top: 4rem;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
}
.reclaimed__stage-inner { width: 100%; }

/* The pull quote — prominent at scenes 1-2, recedes once migration starts. */
.reclaimed__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto var(--space-6);
  text-align: center;
  transition: opacity var(--dur-base) var(--ease);
}
.reclaimed[data-scene="3"] .reclaimed__quote,
.reclaimed[data-scene="4"] .reclaimed__quote,
.reclaimed[data-scene="5"] .reclaimed__quote,
.reclaimed[data-scene="6"] .reclaimed__quote { opacity: 0.25; }

/* The two lanes. */
.reclaimed__lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.reclaimed__lane {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.reclaimed__lane--rtsn {
  border-left: var(--spine) solid var(--verdant);
  background: var(--soft-bg);
}
.reclaimed__lane-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.reclaimed__cells { list-style: none; margin: 0; padding: 0; }

/* Cells transition by collapsing (max-height + opacity). Operational cells
   are visible by default and collapse out wave by wave; build cells +
   handled items start collapsed and expand in. */
.rc-cell, .rc-handled {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  overflow: hidden;
  max-height: 2.4rem;
  padding-block: 0.35rem;
  transition: max-height var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease),
              padding var(--dur-base) var(--ease);
}
.rc-cell--ops.is-gone { max-height: 0; opacity: 0; padding-block: 0; }

.rc-cell--build,
.rc-handled { max-height: 0; opacity: 0; padding-block: 0; }
.rc-cell--build.is-in,
.rc-handled.is-in { max-height: 2.4rem; opacity: 1; padding-block: 0.35rem; }

.rc-handled { display: flex; justify-content: space-between; gap: var(--space-2); color: var(--muted); }
.rc-handled span { font-family: var(--font-display); font-style: italic; color: var(--verdant); }

/* The resolve line — appears only at scene 6. */
.reclaimed__resolve {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  max-width: none;
  margin: var(--space-6) auto 0;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.reclaimed[data-scene="6"] .reclaimed__resolve { opacity: 1; }

/* Post-scrollytelling prose. */
.reclaimed__prose { max-width: 58ch; margin: var(--space-12) auto 0; }
.reclaimed__prose p { max-width: none; margin-bottom: var(--space-2); }
.reclaimed__stat {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-3);
}
.reclaimed__stat cite {
  display: block;
  margin-top: 0.375rem;
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Reduced-motion / no-JS static fallback: no runway, no sticky — the stage
   renders the resolved comparison directly (home.js sets scene 6). */
.reclaimed--static .reclaimed__scroll { height: auto; }
.reclaimed--static .reclaimed__stage {
  position: static;
  min-height: 0;
  padding-block: var(--space-6);
}
.reclaimed--static .reclaimed__scroll-hint { display: none; }
/* The static snapshot reads as a statement, not a mid-transition frame —
   keep the opening quote fully legible rather than at its scene-6 fade.
   Doubled .reclaimed class matches the scene-6 fade rule's specificity. */
.reclaimed.reclaimed--static .reclaimed__quote { opacity: 1; }

/* ---- Section 4 — What we operate (offerings) -------------------------- */

.offerings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.offerings__tier { gap: 0.5rem; }
.offerings__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.offerings__price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--signal);
  margin-top: var(--space-1);
  max-width: none;
}
.offerings__price-unit { font-size: 1.125rem; color: var(--muted); }
.offerings__price-sub {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: none;
}
.offerings__desc {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-top: var(--space-2);
  max-width: none;
}
.offerings__reversal {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--verdant);
  margin-top: var(--space-2);
  max-width: none;
}
.offerings__anchor {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
  margin-top: var(--space-2);
  max-width: none;
}
.offerings__more { margin-top: auto; padding-top: var(--space-3); }

.offerings__sequence {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: var(--space-6) auto 0;
}
.offerings__founding {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  max-width: 64ch;
  margin: var(--space-2) auto 0;
}

/* ---- Section 5 — How we deliver --------------------------------------- */

.deliver { background: var(--soft-bg); }
.deliver__rows {
  margin-top: var(--space-6);
  border-top: 1px solid var(--rule);
}
.deliver__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4);
  align-items: baseline;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.deliver__result {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--signal);
}
.deliver__mechanism {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink);
  max-width: none;
}
.deliver__note {
  margin-top: var(--space-4);
  color: var(--muted);
  max-width: none;
}
.deliver .link-arrow { display: inline-block; margin-top: var(--space-2); }

/* ---- Section 6 — The work we build ------------------------------------ */

.work__lead {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--muted);
  max-width: 52ch;
  margin-top: 0.5rem;
}
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.work__item { gap: 0.5rem; }
.work__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.work__body { font-size: 0.9375rem; color: var(--ink); max-width: none; }
.work__more { margin-top: auto; padding-top: var(--space-2); }
.work__soon {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sapphire);
  max-width: none;
}
.work__item--soon { background: var(--soft-bg); }
.work__note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 64ch;
  margin-top: var(--space-4);
}

/* ---- Section 7 — A note from the founder ------------------------------ */

.founder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  max-width: 56ch;
}
.founder__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.founder__role { margin: 0; max-width: none; }
.founder__cred {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: none;
}
.founder__body {
  margin-top: var(--space-3);
  text-align: left;
}
.founder__body p {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: none;
  margin-bottom: var(--space-2);
}
.founder__body a { color: var(--signal); text-decoration-color: var(--signal); }
.founder__signoff {
  align-self: flex-end;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: var(--space-2);
  max-width: none;
}

/* ---- Section 8 — Final CTA -------------------------------------------- */

.final-cta {
  background: var(--soft-bg);
  border-top: 1px solid var(--rule);
}
.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}
.final-cta__headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.final-cta__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--muted);
  max-width: none;
}
.final-cta__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-3);
}
.final-cta__steps {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  max-width: 52ch;
  text-align: left;
  counter-reset: step;
}
.final-cta__steps li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  counter-increment: step;
  position: relative;
}
.final-cta__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--signal);
}
.final-cta__reassure {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 56ch;
  margin-top: var(--space-3);
}

/* ---- Footer — newsletter signup --------------------------------------- */

.site-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
}
.site-footer__newsletter-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  margin: 0;
  max-width: none;
}
.site-footer__newsletter-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.site-footer__newsletter-row .field { flex: 1; }
.site-footer__newsletter-row .btn { white-space: nowrap; }

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 760px) {
  .results__grid,
  .offerings__grid,
  .work__grid,
  .reclaimed__lanes { grid-template-columns: 1fr; gap: var(--space-4); }

  .deliver__row { grid-template-columns: 1fr; gap: 0.25rem; }

  /* Drop the desktop headline break — let it wrap naturally on mobile. */
  .hero__brk { display: none; }

  .site-footer__newsletter { max-width: none; }
}
