/* ==========================================================================
   SONDER — SITE STYLES (Phase B: hero + provisional anchors)
   ========================================================================== */

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

html {
  scrollbar-gutter: stable;  /* no layout shift when the intro locks scrolling */
  background: var(--dark-bg);
  color: var(--dark-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
::selection { background: var(--c-orange); color: var(--c-charcoal); }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--dark-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--dark-text);
  color: var(--c-charcoal);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

.eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--dark-text-faint);
}
.eyebrow--dark { color: var(--light-text-soft); }

/* ---------- Wordmark component ------------------------------------------- */
/* Header/footer marks reuse the hero's traced SVG glyphs via <use>, so every
   SONDER on the site is the same drawing. The O (.wordmark__o) is its own element. */
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--dark-text);
  text-decoration: none;
  line-height: 0;
}
.wordmark__svg {
  display: block;
  height: 1rem;           /* ≈ 14px cap height */
  width: auto;
  aspect-ratio: 668 / 98;
  overflow: visible;
  fill: currentColor;
}
.wordmark__s,
.wordmark__rest,
.wordmark__o {
  transform-box: fill-box;
  transform-origin: center;
}

/* Collapsed: only the circle shows while the hero wordmark is on screen.
   The O slides into the S position (94.5 = O left edge − S left edge, in glyph units). */
.js .wordmark.is-collapsed .wordmark__s,
.js .wordmark.is-collapsed .wordmark__rest { opacity: 0; }
.js .wordmark.is-collapsed .wordmark__rest { transform: translateX(-24px); }
.js .wordmark.is-collapsed .wordmark__o { transform: translateX(-94.5px) scale(1.18); }
@media (prefers-reduced-motion: no-preference) {
  .js .wordmark .wordmark__s,
  .js .wordmark .wordmark__rest { transition: opacity 420ms var(--ease-quiet), transform 520ms var(--ease-settle); }
  .js .wordmark .wordmark__o { transition: transform 620ms var(--ease-settle); }
}

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--dark-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-calm) var(--ease-quiet);
}
.site-header.is-scrolled { border-bottom-color: var(--dark-rule); }

.site-header__inner {
  height: 100%;
  max-width: min(var(--maxw), calc(var(--plate-w, var(--maxw)) + 2 * var(--gutter)));
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 1.4vw, 2.75rem);
}
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--dark-text-soft);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-quiet);
}
.site-nav__list a[aria-current="true"] { color: var(--dark-text); }
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-settle);
}
.site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav__list a:hover { color: var(--dark-text); }
  .site-nav__list a:hover::after { transform: scaleX(1); }
}
.site-nav__contact { color: var(--dark-text) !important; }

/* Contact, outlined (under review). Reversible: <html data-contact="plain|pill">,
   ?contact=pill|plain or the footer switch; "plain" is the approved style.
   A hairline cream pill, transparent inside, same type as the other links.
   Only the horizontal desktop/tablet nav; the phone menu is unchanged. */
.site-nav__arrow { display: none; }
@media (min-width: 761px) {
  html[data-contact="pill"] .site-nav__list .site-nav__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.42em 0.8em 0.42em 0.9em;
    line-height: 1;
    border: 1px solid rgb(244 233 221 / 0.5);
    border-radius: 999px;
    background: transparent;
    transition:
      border-color 300ms var(--ease-out),
      background-color 300ms var(--ease-out),
      opacity 250ms var(--ease-out);
  }
  html[data-contact="pill"] .site-nav__list .site-nav__contact::after,
  html[data-contact="pill"] .site-nav__list .site-nav__contact::before { display: none; }
  html[data-contact="pill"] .site-nav__arrow {
    display: block;
    width: 0.62em;
    height: 0.62em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 300ms var(--ease-out);
  }
  /* Current section (#contact): the outline simply firms up. */
  html[data-contact="pill"] .site-nav__list .site-nav__contact[aria-current="true"] {
    border-color: rgb(244 233 221 / 0.85);
  }
  html[data-contact="pill"] .site-nav__list .site-nav__contact:focus-visible {
    border-radius: 999px;
    border-color: rgb(244 233 221 / 0.85);
    background-color: rgb(244 233 221 / 0.06);
  }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  html[data-contact="pill"] .site-nav__list .site-nav__contact:hover {
    border-color: rgb(244 233 221 / 0.85);
    background-color: rgb(244 233 221 / 0.06);
  }
  html[data-contact="pill"] .site-nav__list .site-nav__contact:hover .site-nav__arrow {
    transform: translate(1.5px, -1.5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-contact="pill"] .site-nav__arrow { transition: none; }
}

.site-nav__toggle { display: none; }

/* ---------- Hero ---------------------------------------------------------- */
/*
   Landscape layout = an editorial "plate": the approved artwork sits on the
   page grid, uncut where possible, with the copy in a band beneath it — never
   over the faces, hand or baked-in wordmark.

   Plate sizing (container query units):
   - wide space  → art keeps width, crops top/bottom, never beyond --art-max-crop-ratio
   - very wide   → art caps at that ratio and centres, charcoal either side
   - narrower    → whole artwork shows (contain)
*/
.hero {
  /* stage geometry (see docs/README.md, "Living hero") */
  --stage-ratio: 1.776119;   /* 1904 / 1072 — shared grid of both videos */
  --cap: 2.09;               /* widest visible window before faces/chin are cut */
  --crop-x: 0.5;             /* where the stage sits inside its window (like object-position) */
  --crop-y: 0.3;
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 34rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Layout slot: the Phase B plate rules decide its size; it holds no content. */
.hero__plate {
  grid-area: 1 / 1;
  margin: 0;
  min-height: 0;
  container-type: size;
  display: grid;
  place-items: center;
}
.hero__slot {
  width:  min(100cqw, 100cqh * var(--cap));
  height: min(100cqh, 100cqw / var(--stage-ratio));
}

/* Frame = the visible window onto the stage. Without JS it fills the plate cell;
   with JS it is fitted exactly to the slot (--fx/--fy/--fw/--fh). During the
   introduction it becomes the whole viewport. */
.hero__frame {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  container-type: size;
  background: var(--video-black);
}
.js .hero__frame {
  position: absolute;
  left: var(--fx, 0px);
  top: var(--fy, 0px);
  width: var(--fw, 100%);
  height: var(--fh, 100%);
}

/* Stage: the 1904×1072 picture, covering its window (never beyond --cap). */
.stage {
  --sw: min(max(100cqw, 100cqh * var(--stage-ratio)), 100cqh * var(--cap));
  position: absolute;
  width: var(--sw);
  height: calc(var(--sw) / var(--stage-ratio));
  left: calc((100cqw - var(--sw)) * var(--crop-x));
  top: calc((100cqh - var(--sw) / var(--stage-ratio)) * var(--crop-y));
  transform-origin: 0 0;
}
.stage__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;     /* every layer shares the stage's exact aspect ratio */
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.stage__poster   { z-index: 1; }
.stage__still    { z-index: 2; }
.stage__bloom    { z-index: 3; }
.stage__breath   { z-index: 4; }
.stage__wordmark { z-index: 5; overflow: visible; }

/* Layer visibility by state — one attribute, no per-frame scripting.
   poster      : opening image only (first paint)
   bloom       : The Bloom over the opening image (video shown once it has a frame)
   living      : The Breath + live wordmark (Bloom's last frame stays underneath)
   living-still: still frame + live wordmark while The Breath catches up
   static      : still + live wordmark (reduced motion, no JS, paused before load) */
.stage[data-state="poster"] .stage__poster,
.stage[data-state="bloom"] .stage__poster,
.stage[data-state="bloom"] .stage__bloom.has-frame,
.stage[data-state="living"] .stage__bloom.has-frame,
.stage[data-state="living"] .stage__still,
.stage[data-state="living"] .stage__breath,
.stage[data-state="living"] .stage__wordmark,
.stage[data-state="living-still"] .stage__still,
.stage[data-state="living-still"] .stage__wordmark,
.stage[data-state="static"] .stage__still,
.stage[data-state="static"] .stage__wordmark { opacity: 1; }

/* Before the controller runs, an intro visit shows only the opening image. */
html.is-intro .stage[data-state="static"] .stage__still,
html.is-intro .stage[data-state="static"] .stage__wordmark { opacity: 0; }
html.is-intro .stage[data-state="static"] .stage__poster { opacity: 1; }

/* Skip: brief cross-dissolve (an explicit user action, not the authored handoff). */
.stage.is-crossfade .stage__layer { transition: opacity 320ms var(--ease-quiet); }

/* ---------- Introduction & settle ----------------------------------------- */
html.is-intro,
html.is-settling { overflow: hidden; }

html.is-intro .hero__frame,
html.is-settling .hero__frame {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: 60;
}
/* Intro framing: centred, so the opening circle sits at the centre of the screen. */
html.is-intro .stage { --crop-x: 0.5; --crop-y: 0.5; }

/* While the intro plays, the interface is laid out but invisible and inert. */
html.ui-hidden .site-header,
html.ui-hidden .hero__band,
html.ui-hidden .page-sections,
html.ui-hidden .site-footer {
  opacity: 0;
  pointer-events: none;
}
.js .site-header,
.js .page-sections,
.js .site-footer { transition: opacity 1100ms var(--ease-quiet); }
html.is-revealing .site-header { transition-delay: 500ms; }
html.is-revealing .page-sections,
html.is-revealing .site-footer { transition-delay: 900ms; }
.js .hero__band { transition: opacity 600ms var(--ease-quiet); }

.intro-skip {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 70;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--dark-text-soft);
  font: 500 0.8125rem/1 var(--font-sans);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: var(--dark-rule);
  text-underline-offset: 0.4em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--ease-quiet), visibility 0s linear 600ms;
}
html.is-intro .intro-skip {
  visibility: visible;
  opacity: 0.7;
  transition: opacity 900ms var(--ease-quiet) 1200ms;
}
html.is-intro .intro-skip:hover,
html.is-intro .intro-skip:focus-visible { opacity: 1; transition-delay: 0s; }

.motion-toggle {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  z-index: 6;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark-rule);
  border-radius: 50%;
  background: rgb(15 13 18 / 0.55);
  color: var(--dark-text);
  cursor: pointer;
  transition: opacity 600ms var(--ease-quiet), background-color var(--dur-quick) var(--ease-quiet);
}
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { background: rgb(15 13 18 / 0.85); } }
.motion-toggle:active { transform: scale(0.94); }
html.ui-hidden .motion-toggle,
html.is-settling .motion-toggle { opacity: 0; pointer-events: none; }
.motion-toggle__icon {
  width: 0.625rem;
  height: 0.75rem;
  border-inline: 3px solid currentColor;            /* pause bars */
}
.motion-toggle[data-paused="true"] .motion-toggle__icon {
  width: 0; height: 0;                               /* play triangle */
  border-inline: 0;
  border-left: 0.65rem solid currentColor;
  border-top: 0.4rem solid transparent;
  border-bottom: 0.4rem solid transparent;
  margin-left: 0.2rem;
}

.hero__band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  grid-template-areas: "intro lede actions";
  align-items: end;
  column-gap: clamp(1.5rem, 0.5rem + 3vw, 4.5rem);
  padding-block: clamp(1.25rem, 0.4rem + 2.6vh, 2.25rem) clamp(1.5rem, 0.5rem + 3.4vh, 3rem);
  width: min(100%, var(--plate-w, 100%));
  justify-self: center;
}

/* Short landscape screens (e.g. 1280×720 laptops): tighten the band so the art keeps its size. */
@media (max-height: 820px) and (min-width: 761px) and (orientation: landscape) {
  .hero__band { column-gap: 2rem; }
  .hero__title { font-size: clamp(1.875rem, 1.2rem + 1.5vw, 2.5rem); }
  .hero__lede { font-size: 0.9375rem; }
  .hero__actions { gap: 1.25rem; }
}
.hero__intro   { grid-area: intro; }
.hero__lede    { grid-area: lede; }
.hero__actions { grid-area: actions; }

.hero__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 360;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--dark-text);
  text-wrap: balance;
}

.hero__lede {
  margin: 0;
  max-width: 40ch;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--dark-text-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
}

/* ---------- Buttons & links ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:active:not([aria-disabled="true"]) { transform: scale(0.96); }
.btn--primary {
  background: var(--dark-accent);
  color: var(--c-charcoal);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover:not([aria-disabled="true"]) { background: var(--dark-text); }
}
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: transparent;
  color: var(--dark-text-soft);
  box-shadow: inset 0 0 0 1px var(--dark-rule);
}
.btn--primary:focus-visible { outline-color: var(--dark-text); }

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--dark-rule);
  transition: text-decoration-color var(--dur-quick) var(--ease-quiet);
}
.text-link--dark { color: var(--light-text); text-decoration-color: var(--light-rule); }
.text-link__arrow { display: inline-block; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: var(--c-orange); }
  .text-link:hover .text-link__arrow { transform: translateX(3px); }
}

/* ---------- Copy reveal ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  .js .is-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 900ms var(--ease-quiet), transform 1000ms var(--ease-settle);
    transition-delay: calc(350ms + var(--i, 0) * 110ms);
  }
  html.is-revealing .is-ready [data-reveal] { transition-delay: calc(800ms + var(--i, 0) * 120ms); }
}

/* ---------- Tablet portrait: stacked, art-directed crop ------------------- */
@media (orientation: portrait) and (min-width: 761px) and (max-width: 1180px) {
  .hero {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    padding-inline: 0;
  }
  .hero { --crop-x: 0.79; --crop-y: 0.5; --stack-aspect: 1.5; }
  .hero__plate { container-type: normal; }
  .hero__slot { width: 100%; height: auto; aspect-ratio: var(--stack-aspect); }
  /* window ≈ x 206–1617 of the art: both faces, hand and wordmark intact */
  .hero__band {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "lede" "actions";
    align-content: start;
    row-gap: 1.25rem;
    padding: 2.75rem var(--gutter) 3.5rem;
  }
  .hero__lede { max-width: 46ch; }
  .hero__actions { justify-self: start; flex-wrap: wrap; margin-top: 0.75rem; }
}

/* ---------- Mobile: stacked, art-directed crop --------------------------- */
@media (max-width: 760px) {
  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0 0.25rem 0 0.75rem;
    margin-right: -0.25rem;
    background: none;
    border: 0;
    color: var(--dark-text);
    font: 500 0.875rem/1 var(--font-sans);
    letter-spacing: 0.01em;
    cursor: pointer;
  }
  .site-nav__toggle-icon {
    position: relative;
    width: 1.25rem;
    height: 0.5rem;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transition: transform 300ms var(--ease-settle);
  }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon { transform: scaleY(0.2); }

  /* With JS: overlay menu. Without JS: a simple wrapped row stays visible. */
  .js .site-nav__list {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 2rem var(--gutter);
    background: var(--dark-bg);
    border-top: 1px solid var(--dark-rule);
    visibility: hidden;
    opacity: 0;
    transition: opacity 260ms var(--ease-quiet), visibility 0s linear 260ms;
  }
  .js .site-nav__list.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 260ms var(--ease-quiet);
  }
  .js .site-nav__list a {
    font-family: var(--font-display);
    font-weight: 360;
    font-size: 2rem;
    letter-spacing: -0.01em;
    color: var(--dark-text);
  }
  html:not(.js) .site-nav__toggle { display: none; }
  html:not(.js) .site-nav__list { gap: 1rem; flex-wrap: wrap; }

  .hero {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    padding-inline: 0;
  }
  .hero { --crop-x: 0.68; --crop-y: 0.5; --stack-aspect: 1.32; }
  .hero__plate { container-type: normal; }
  .hero__slot { width: 100%; height: auto; aspect-ratio: var(--stack-aspect); }
  /* window ≈ x 291–1533 of the art: both full faces (incl. back of the blue head),
     the hand and the whole wordmark. */
  .hero__band {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "lede" "actions";
    align-content: start;
    row-gap: 1rem;
    padding: 1.75rem var(--gutter) 2.75rem;
  }
  .hero__title { font-size: clamp(2rem, 1.2rem + 4vw, 2.5rem); }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .hero__actions .text-link { align-self: flex-start; }
}

/* ---------- Stacked layouts (phone, tablet portrait): framing --------------- */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1180px) {
  /* Top and bottom edges of the picture dissolve into the surrounding near-black,
     so the art never reads as a boxed video, in the intro or in the hero. */
  .stage {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  }
  /* Intro: same picture size as the hero slot, centred in the dark screen,
     so the settle is a short glide rather than a change of scale. */
  html.is-intro .stage { --sw: calc(100cqw * var(--stage-ratio) / var(--stack-aspect)); }
}

/* ==========================================================================
   HOMEPAGE SECTIONS
   ========================================================================== */
.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  overflow: clip;                      /* art may bleed to the viewport edge, never beyond */
}
.section > * { max-width: var(--maxw); margin-inline: auto; }
.section--paper { background: var(--paper-bg); color: var(--light-text); }
.section--paper + .section--paper { padding-top: 0; }
.section--ivory { background: var(--ivory-bg); color: var(--light-text); }
.section--dark  { background: var(--dark-bg);  color: var(--dark-text); }
.section--paper :focus-visible,
.section--ivory :focus-visible { outline-color: var(--light-focus); }

.section-head { margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6) clamp(2rem, 6vw, 7rem);
  align-items: end;
}
.section-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-intro {
  margin: var(--space-5) 0 0;
  max-width: 54ch;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--light-text-soft);
  text-wrap: pretty;
}
.section-head--split .section-intro { margin-top: 0; }
.section-intro--dark { color: var(--dark-text-soft); }
.lede--dark { color: var(--light-text-soft); }

/* ---------- 2 · Approach ----------------------------------------------------- */
.approach__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--fs-statement);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.approach__copy .lede {
  margin: var(--space-6) 0 0;
  max-width: 44ch;
  font-size: var(--fs-lede);
  line-height: 1.6;
  text-wrap: pretty;
}
.levels { margin: var(--space-7) 0 var(--space-6); max-width: 44ch; }
.levels__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--light-rule);
}
.levels__row:last-child { border-bottom: 1px solid var(--light-rule); }
.levels dt { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.35; }
.levels dd { margin: 0; color: var(--light-text-soft); line-height: 1.5; }

/* The art bleeds off the right edge of the page (the section's one deliberate
   rule-break). Its field colour equals the section's, and its top and bottom
   edges dissolve, so there is no box. */
.approach__art {
  margin: 0 calc(-1 * var(--gutter)) 0 0;
  margin-right: calc(-1 * max(var(--gutter), (100vw - var(--maxw)) / 2));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
}
.approach__art img { width: 100%; height: auto; }

/* Words surface from a muted tone to full ink as the statement scrolls into view. */
.statement .word { transition: opacity 600ms var(--ease-reveal); }
.js .statement[data-surface-ready] .word { opacity: 0.22; }
.js .statement[data-surface-ready] .word.is-lit { opacity: 1; }

/* ---------- 3 · Four disciplines ------------------------------------------- */
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--light-rule); }
.index__row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 3.2fr) minmax(0, 2.2fr) minmax(0, 5fr);
  grid-template-areas:
    "glyph name who what"
    "glyph name who offers";
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: var(--space-2);
  align-items: baseline;
  padding-block: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem);
  border-bottom: 1px solid var(--light-rule);
}
.glyph {
  grid-area: glyph;
  align-self: start;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  overflow: visible;
}
.glyph__o { fill: var(--c-orange); stroke: none; }
.index__name {
  grid-area: name;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.index__who {
  grid-area: who;
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--light-text-soft);
}
.index__what { grid-area: what; margin: 0; max-width: 46ch; line-height: 1.55; text-wrap: pretty; }
.index__offers {
  grid-area: offers;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--light-text-soft);
}

/* ---------- 4 · Method: the Sonder Cycle ------------------------------------ */
.cycle { position: relative; }
.cycle__thread {
  position: absolute;
  left: 0.5rem; top: 0;
  width: calc(100% - 0.5rem);    /* same box as the steps, so curve points meet the nodes */
  height: 5rem;
  overflow: visible;
  pointer-events: none;
}
.cycle__thread path {
  fill: none;
  stroke: var(--dark-text);
  stroke-opacity: 0.55;
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.cycle__steps {
  position: relative;
  display: grid;
  margin-left: 0.5rem !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.cycle__step { position: relative; padding: 5.5rem 1.5rem 0 0; }
.cycle__node {
  position: absolute;
  left: 0;
  top: 2.5rem;                         /* = the thread's 50% line */
  width: 0.875rem;
  height: 0.875rem;
  border: 1.25px solid var(--dark-text);
  border-radius: 50%;
  background: var(--dark-bg);
  transform: translate(-50%, -50%);
}
.cycle__node--o { background: var(--c-orange); border-color: var(--c-orange); width: 1.125rem; height: 1.125rem; }
.cycle__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--dark-text-faint);
}
.cycle__step h3 {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--fs-h3);
  line-height: 1.15;
}
.cycle__step p { margin: 0; max-width: 24ch; color: var(--dark-text-soft); line-height: 1.5; text-wrap: pretty; }

/* Drawn once, in order: the thread draws, each movement arrives as it passes. */
@media (prefers-reduced-motion: no-preference) {
  .js .cycle:not(.is-drawn) .cycle__thread path { stroke-dashoffset: 1; }
  .js .cycle .cycle__thread path { transition: stroke-dashoffset 2200ms var(--ease-in-out); }
  .js .cycle:not(.is-drawn) .cycle__step { opacity: 0; transform: translateY(12px); }
  .js .cycle .cycle__step {
    transition: opacity 700ms var(--ease-reveal), transform 900ms var(--ease-reveal);
    transition-delay: calc(250ms + var(--n) * 330ms);
  }
}

/* ---------- 6 · The practice ---------------------------------------------- */
.practice__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-7) clamp(2rem, 6vw, 7rem);
  align-items: start;
}
.practice__role {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--light-text-soft);
}
.strands { margin: 0; border-top: 1px solid var(--light-rule); }
.strands__item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--light-rule);
}
.strands dt { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; }
.strands dd { margin: 0; color: var(--light-text-soft); line-height: 1.6; text-wrap: pretty; }

.scope {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--light-rule);
  border-radius: 1.25rem;
}
.scope__title { margin: 0 0 var(--space-5); font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; }
.scope__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); }
.scope__cols p { margin: 0; color: var(--light-text-soft); line-height: 1.6; text-wrap: pretty; }
.scope__cols strong { color: var(--light-text); font-weight: 600; }

/* ---------- 7 · Invitation -------------------------------------------------- */
/* The page ends on the circle the visit began with. */
.invite { padding-block: clamp(6rem, 4rem + 8vw, 12rem); }
.invite__copy { position: relative; z-index: 1; max-width: var(--maxw); }
.invite__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--fs-statement);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.invite .section-intro { max-width: 46ch; }
.invite__actions { margin-top: var(--space-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.invite__note { margin: 0; font-size: var(--fs-small); color: var(--dark-text-faint); }
.invite__o {
  position: absolute;
  z-index: 0;
  right: calc(-1 * clamp(6rem, 12vw, 14rem));
  top: 50%;
  width: clamp(16rem, 36vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-orange);
  transform: translateY(-50%);
}

/* ---------- Scroll reveals --------------------------------------------------- */
/* One entrance per section, once. Lead first, support after, art fades. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-section]:not(.is-in) [data-reveal-item] { opacity: 0; transform: translateY(24px); }
  .js [data-section] [data-reveal-item] {
    transition: opacity 800ms var(--ease-reveal), transform 1000ms var(--ease-reveal);
    transition-delay: var(--d, 0ms);
  }
  .js [data-section]:not(.is-in) [data-reveal-art] { opacity: 0; transform: scale(1.03); }
  .js [data-section] [data-reveal-art] {
    transition: opacity 1400ms var(--ease-reveal), transform 1800ms var(--ease-reveal);
    transition-delay: 150ms;
  }
  .js .invite:not(.is-in) .invite__o { transform: translateY(-38%) scale(0.92); opacity: 0; }
  .js .invite .invite__o { transition: transform 1600ms var(--ease-reveal), opacity 1200ms var(--ease-reveal); }
}

/* ---------- Section layouts on narrower screens ----------------------------- */
@media (max-width: 1080px) {
  .index__row {
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas:
      "glyph name what"
      "glyph who  offers";
  }
}
@media (max-width: 860px) {
  .approach__inner,
  .practice__grid,
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .approach__art { margin: var(--space-4) calc(-1 * var(--gutter)) 0; }
  .index__row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    grid-template-areas: "glyph name" "glyph who" "glyph what" "glyph offers";
    row-gap: var(--space-2);
  }
  .index__who { margin-bottom: var(--space-2); }
  .strands__item { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .scope__cols { grid-template-columns: minmax(0, 1fr); }

  /* Cycle becomes a vertical thread */
  .cycle__thread { display: none; }
  .cycle__steps { grid-template-columns: minmax(0, 1fr); padding-left: 2.25rem; }
  .cycle__steps::before {
    content: "";
    position: absolute;
    left: 0.4375rem; top: 0.5rem; bottom: 0.5rem;
    width: 1.25px;
    background: rgb(244 233 221 / 0.45);
    transform-origin: top;
  }
  .cycle__step { padding: 0 0 var(--space-7); }
  .cycle__step:last-child { padding-bottom: 0; }
  .cycle__node { left: -1.8125rem; top: 0.45rem; transform: translate(-50%, 0); }
  .cycle__node { left: -1.8125rem; }
  .cycle__step p { max-width: 40ch; }
  /* The circle gets its own space below the copy, cropped by the section edge. */
  .invite { padding-bottom: 15rem; }
  .invite__o { right: -5rem; top: auto; bottom: -7rem; width: 19rem; transform: none; }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .js .cycle:not(.is-drawn) .cycle__steps::before { transform: scaleY(0); }
  .js .cycle .cycle__steps::before { transition: transform 2000ms var(--ease-in-out); }
  .js .invite:not(.is-in) .invite__o { transform: translateY(8%) scale(0.92); }
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--dark-bg); }
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer__nav a {
  font-size: 0.875rem;
  color: var(--dark-text-soft);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .site-footer__nav a:hover { color: var(--dark-text); } }
.replay-intro {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dark-text-soft);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--dark-rule);
  text-underline-offset: 0.3em;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .replay-intro:hover { color: var(--dark-text); } }
.site-footer__fine {
  margin: 0 0 0 auto;
  font-size: 0.75rem;
  color: var(--dark-text-faint);
}
