/* =========================================================================
   Home (index.html)
   Dawn over the Piedmont, then a quiet walk down the page:
     1 Hero         full-bleed "home" scene, the headline in the sky
     2 Statement    one sentence that brightens word by word
     3 Needs        an index of the fourteen kinds of help
     4 Guides       a shelf of ten small landscapes
     5 Breath       the breathing bloom, then 988
     6 Numbers      a restrained strip of true counts
     7 Closing      "Something missing?" before the footer ridge
   Tokens only (see styles.css). The guide vignettes are illustrations, so
   they draw with the --sc-* tokens from scenery.css and re-theme with them.
   ========================================================================= */

/* Card vignettes ease a hover value, so it needs to be a real number */
@property --hv {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.home main { overflow-x: clip; }

/* Shared section head: eyebrow + title on the left, a link or controls on the right */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 4.4vw, 60px);
}
.sec-head-text { max-width: 44rem; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.375rem);
  line-height: 1.06;
  letter-spacing: -0.034em;
}
.sec-lead { margin: 18px 0 0; max-width: 34em; }
.sec-link { min-height: 44px; }

/* =========================================================================
   1 · Hero
   The scene keeps a fixed height and sits on the bottom edge. If the copy
   grows (large text, translation), the hero grows upward and the sky simply
   continues above the drawing, so words never land on the hills.
   --hero-land is the drawn land below the far ridges: only the frosted
   search and chips may reach into it, never plain text.
   ========================================================================= */
.hero {
  --hero-h: clamp(620px, 100vh, 900px);
  --hero-h: clamp(620px, 100svh, max(900px, 62vw));
  --hero-land: max(19.8vw, calc(var(--hero-h) * .331));
  --hero-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: var(--hero-h);
  padding-top: calc(var(--header-h) + clamp(20px, 6.2vh, 76px));
  padding-bottom: var(--hero-land);
  background: var(--sc-sky-0);
}
.hero-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: var(--hero-h);
}
/* A breath of morning paper rising off the ground, so the hills settle into the page */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  height: clamp(56px, 7vw, 110px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 0%, transparent), color-mix(in srgb, var(--paper) 55%, transparent) 62%, var(--paper));
  pointer-events: none;
}

.hero-copy { position: relative; }
.hero-eyebrow { margin: 0 0 clamp(14px, 1.6vw, 20px); }
.hero-title {
  max-width: 8.6em;
  margin: 0;
  font-size: clamp(3rem, min(8vw, 13.2vh), 6.75rem);
  text-wrap: balance;
}
.hero-lead {
  max-width: 31em;
  margin: clamp(16px, 2vw, 26px) 0 0;
  color: var(--text-2);
}
.hero-search {
  max-width: 560px;
  margin-top: clamp(24px, 3vw, 36px);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.hero-chips a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--surface) 46%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--glass) 72%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 2px rgb(20 24 20 / .04);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.hero-chips a::before { content: ""; position: absolute; inset: -2px 0; } /* 44px tap target */
.hero-chips a:hover { background: var(--glass); border-color: color-mix(in srgb, var(--surface) 80%, transparent); }
.hero-chips a:active { transform: scale(.97); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-chips a { background: var(--surface); }
}

/* Cycling suggestions in the search field (home.js). The label and the real
   placeholder never change; this is a decorative layer on top. */
.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.search-field input { flex: 1; min-width: 0; }
.search-hint {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  overflow: hidden;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity var(--dur-1) var(--ease-out);
}
.search-hint-term {
  display: inline-block;
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out), filter 460ms var(--ease-out);
}
.search-hint-term.is-out { opacity: 0; transform: translateY(-55%); filter: blur(2px); }
.search-hint-term.is-pre { opacity: 0; transform: translateY(55%); filter: blur(2px); transition: none; }
.search-field.has-hint input:not(:focus)::placeholder { color: transparent; }
.search-field input:is(:focus, :not(:placeholder-shown)) ~ .search-hint { opacity: 0; }

/* Scroll cue: a plumb line from the hills into the page */
.hero-cue {
  position: absolute;
  left: calc(var(--hero-left) + 2px);
  bottom: 0;
  width: 1px;
  height: clamp(48px, 6vw, 72px);
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  transition: opacity var(--dur-3) var(--ease-out);
}
.hero-cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 45%;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 0%, transparent), var(--ink));
  transform: translateY(-100%);
}
html.motion-ok .hero-cue::after { animation: home-cue 3.2s var(--ease-in-out) 2.4s infinite; }
.hero:has(> .scene:is(.is-paused, .is-offscreen)) .hero-cue::after { animation-play-state: paused; }
.hero-cue.is-away { opacity: 0; }
@keyframes home-cue {
  0% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(240%); }
}

/* The pause control sits above Quick exit, which floats in the same corner */
.hero > .scene-toggle { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 48px + 14px); }

/* Entrance: the copy rises just after the hills settle (first visit), or
   right away when the scene has already played this session. CSS only, so
   nothing waits on a script. Glass elements fade without blur so their
   frosting never pops. */
html.motion-ok .hero-copy > :is(.hero-eyebrow, .hero-title, .hero-lead),
html.motion-ok .hero-search,
html.motion-ok .hero-chips a {
  animation: home-rise 1.1s var(--ease-out) backwards;
  animation-delay: calc(var(--hero-delay, 140ms) + var(--i, 0) * 100ms);
}
html.motion-ok .hero-copy > :is(.hero-eyebrow, .hero-title, .hero-lead) { animation-name: home-rise-soft; }
html.motion-ok .hero-chips li:nth-child(2) a { --i: 4.5; }
html.motion-ok .hero-chips li:nth-child(3) a { --i: 5; }
html.motion-ok .hero-chips li:nth-child(4) a { --i: 5.5; }
.hero:has(> .scene.is-entering) { --hero-delay: 860ms; }
.hero-chips a { --i: 4; }
@keyframes home-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes home-rise-soft { from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); } }

@media (max-width: 600px) {
  .hero {
    --hero-h: clamp(620px, 100vh, 780px);
    --hero-h: clamp(620px, 100svh, 780px);
    padding-top: calc(var(--header-h) + clamp(18px, 4vh, 36px));
  }
  .hero-title { font-size: clamp(2.75rem, 12.6vw, 3.25rem); }
  .hero-lead { font-size: 1.0625rem; }
  .hero-search { margin-top: 22px; }
  .hero-chips { gap: 6px; margin-top: 12px; }
  .hero-chips a { padding: 0 14px; font-size: .875rem; }
  .hero-cue { display: none; }
}

/* =========================================================================
   2 · Statement
   ========================================================================= */
.statement { padding-block: clamp(72px, 10vw, 148px) var(--space-section); }
.statement-text {
  --words-dim: .2;
  max-width: 15.5em;
  margin: 0 0 0 clamp(0px, 8.33%, 100px);
  font-size: clamp(2.125rem, 5.4vw, 4.625rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.statement-text em { font-style: italic; letter-spacing: -0.03em; }

/* =========================================================================
   3 · Browse by need: an editorial index with hairlines
   ========================================================================= */
.needs { padding-bottom: var(--space-section); }
.needs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  column-gap: clamp(40px, 6.5vw, 104px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.needs-list > li { min-width: 0; border-top: 1px solid var(--line); }
.needs-list > li:nth-child(7n) { border-bottom: 1px solid var(--line); }
.need {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(14px, 1.6vw, 20px);
  min-height: clamp(64px, 6vw, 82px);
  padding: 12px 4px 12px 2px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.need-ico {
  width: 24px;
  height: 24px;
  color: var(--moss);
  transition: color var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-spring);
}
.need-name {
  min-width: 0;
  font-size: clamp(1.1875rem, 1.75vw, 1.5625rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.024em;
  overflow-wrap: break-word;
  transition: transform var(--dur-3) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.need-n {
  min-width: 2ch;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
  transition: color var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.need-go {
  width: 20px;
  height: 20px;
  color: var(--pine);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.need:hover .need-name,
.need:focus-visible .need-name { color: var(--pine); transform: translateX(5px); }
.need:hover .need-ico,
.need:focus-visible .need-ico { color: var(--pine); transform: rotate(-6deg) scale(1.06); }
.need:hover .need-n,
.need:focus-visible .need-n { color: var(--ink); transform: translateX(-4px); }
.need:hover .need-go,
.need:focus-visible .need-go { opacity: 1; transform: none; }
.need:focus-visible { outline-offset: 0; }
@media (hover: none) {
  .need-go { opacity: .7; transform: none; }
}

/* =========================================================================
   4 · Guides shelf
   ========================================================================= */
.guides { padding-bottom: var(--space-section); }
.shelf-nav { display: flex; align-items: center; gap: 10px; }
.shelf-nav .sec-link { margin-right: 14px; }
.shelf-nav:not([hidden]) ~ .shelf-nojs { display: none; }
.shelf-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.shelf-btn svg { width: 20px; height: 20px; }
.shelf-btn:not([aria-disabled="true"]):hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.shelf-btn:not([aria-disabled="true"]):active { transform: scale(.93); }
.shelf-btn[aria-disabled="true"] { opacity: .4; box-shadow: none; cursor: default; }

.shelf {
  --pad: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --card-w: clamp(272px, 26.5vw, 344px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent;
  -webkit-overflow-scrolling: touch;
}
.js .shelf.is-enhanced { scrollbar-width: none; }
.js .shelf.is-enhanced::-webkit-scrollbar { display: none; }
.shelf:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--r-lg); }
.shelf-track {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  width: max-content;
  margin: 0;
  padding: 14px var(--pad) 34px;
  list-style: none;
}
.shelf-item {
  display: flex;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  scroll-snap-align: start;
}
.shelf-foot { margin-top: -6px; }
.shelf-progress {
  position: relative;
  display: block;
  width: min(180px, 36%);
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--fill-2);
}
.shelf-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  border-radius: inherit;
  background: var(--text-2);
  opacity: .7;
}

/* A guide card: a small landscape, then the words. The title link
   stretches over the whole card. */
.gcard {
  --hv: 0;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), --hv var(--dur-4) var(--ease-out);
}
.gcard:hover { --hv: 1; transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-3); }
.gcard-art {
  position: relative;
  isolation: isolate;
  height: clamp(168px, 14.6vw, 204px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--v-sky-0), var(--v-sky-1) 78%);
}
.gcard-art > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
/* the same fine film grain as the big scenes */
.gcard-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--sc-grain, .5);
  mix-blend-mode: var(--sc-grain-blend, soft-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 1.6 0 0 0 -.3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.gcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
}
.gcard-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.gcard-title a { color: var(--ink); text-decoration: none; }
.gcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.gcard-title a:focus-visible { outline: none; }
.gcard-title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.gcard-sub { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.45; }
.gcard-more { margin-top: auto; padding-top: 14px; font-size: .9375rem; }
.gcard:hover .gcard-more svg { transform: translateX(3px); }

/* Vignette layers: each depth drifts by its own amount as the card crosses
   the shelf (--p, set by home.js) and as the pointer settles on it (--hv). */
.gcard-art .vl { transform: translate3d(calc((var(--p, 0) * var(--dx) + var(--hv) * var(--hx)) * 1px), 0, 0); }
.gcard-art .vl-0 { --dx: 10; --hx: 0; }
.gcard-art .vl-1 { --dx: -5; --hx: -2; }
.gcard-art .vl-2 { --dx: -11; --hx: -5; }
.gcard-art .vl-3 { --dx: -20; --hx: -9; }
.gcard-art .v-rise { transform: translate3d(0, calc(var(--hv) * -8px), 0); }

.v-far { fill: var(--v-far); }
.v-mid { fill: var(--v-mid); }
.v-near { fill: var(--v-near); }
.v-sun { fill: var(--v-sun); }
.v-g0 { stop-color: var(--v-glow); stop-opacity: var(--v-glow-o, .85); }
.v-gm { stop-color: var(--v-glow); stop-opacity: calc(var(--v-glow-o, .85) * .4); }
.v-g1 { stop-color: var(--v-glow); stop-opacity: 0; }
.v-tree { fill: var(--v-tree, var(--v-near)); }
.v-tree--young { fill: var(--v-tree-2, var(--v-tree)); }
.v-trunk { fill: var(--v-trunk, var(--v-near)); }
.v-pine { fill: var(--v-pine, var(--v-near)); }
.v-path { fill: var(--v-path); }
.v-wall, .v-steeple { fill: var(--v-wall); }
.v-roof { fill: var(--v-roof); }
.v-window { fill: var(--v-window); }
.v-water { fill: var(--v-water); }
.v-box { fill: var(--v-box); }
.v-flag { fill: var(--v-flag); }
.v-row { fill: none; stroke: var(--v-row); stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.v-row--near { stroke: var(--v-row-2, var(--v-row)); opacity: .4; }
.v-wire { fill: none; stroke: var(--v-line); stroke-width: .9; opacity: .72; }
.v-pole, .v-post, .v-bench { fill: none; stroke: var(--v-line); stroke-width: 2.2; stroke-linecap: round; }
.v-pole--near { stroke-width: 3; }
.v-post--box { stroke-width: 3.2; }
.v-bench { stroke-width: 1.7; }
.v-rail { fill: none; stroke: var(--v-line); stroke-width: 1.2; opacity: .8; }
.v-shine { fill: none; stroke: var(--v-sun); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.v-ripple { fill: none; stroke: var(--v-ripple); stroke-width: 1.3; stroke-linecap: round; opacity: .7; }
.v-reed { fill: none; stroke: var(--v-near); stroke-width: 1.7; stroke-linecap: round; }
.v-star { fill: var(--sc-star); }
.v-night { display: none; }

/* Dawn palettes, one per guide */
.gcard {
  --v-sky-0: var(--sc-sky-1);
  --v-sky-1: var(--sc-sky-2);
  --v-sun: var(--sc-sun-core);
  --v-glow: var(--sc-halo);
  --v-far: var(--sc-h1);
  --v-mid: var(--sc-h3);
  --v-near: var(--sc-h4);
  --v-line: var(--sc-post);
  --v-tint: var(--sun);
}
.gcard--food { --v-sky-0: var(--sc-sky-1); --v-sky-1: var(--sc-sky-3); --v-mid: var(--sc-field); --v-near: var(--sc-meadow-2); --v-row: var(--sc-meadow-2); --v-row-2: var(--sc-meadow-3); --v-tint: var(--sun); }
.gcard--housing { --v-sky-0: var(--sc-sky-0); --v-sky-1: var(--sc-dusk-3); --v-sun: var(--sc-sun); --v-far: var(--sc-h2); --v-mid: var(--sc-h4); --v-near: var(--sc-h5); --v-tree: var(--sc-h5); --v-wall: var(--sc-path); --v-roof: var(--sc-clay); --v-window: var(--sc-sun-core); --v-tint: var(--clay); }
.gcard--bills { --v-sky-0: var(--sc-sky-0); --v-sky-1: var(--sc-water-0); --v-mid: var(--sc-h3); --v-near: var(--sc-h4); --v-tint: var(--sage); }
.gcard--job { --v-sky-1: var(--sc-sky-3); --v-far: var(--sc-h2); --v-mid: var(--sc-meadow); --v-near: var(--sc-meadow-2); --v-tree: var(--sc-h4); --v-path: var(--sc-path); --v-tint: var(--sun); }
.gcard--health { --v-sky-0: var(--sc-water-1); --v-sky-1: var(--sc-sky-1); --v-mid: var(--sc-h3); --v-near: var(--sc-h4); --v-tree: var(--sc-h5); --v-trunk: var(--sc-h6); --v-tint: var(--sage); }
.gcard--mental { --v-sky-0: var(--sc-dusk-0); --v-sky-1: var(--sc-dusk-2); --v-far: var(--sc-h2); --v-mid: var(--sc-h4); --v-near: var(--sc-h5); --v-water: var(--sc-water-1); --v-ripple: var(--sc-ripple); --v-tint: var(--moss); }
.gcard--safety { --v-sky-1: var(--sc-sky-3); --v-far: var(--sc-h2); --v-pine: var(--sc-h6); --v-near: var(--sc-h5); --v-path: var(--sc-path); --v-tint: var(--sun); }
.gcard--senior { --v-sky-0: var(--sc-sky-2); --v-sky-1: var(--sc-dusk-3); --v-mid: var(--sc-meadow); --v-near: var(--sc-meadow-2); --v-tree: var(--sc-h5); --v-tree-2: var(--sc-meadow-3); --v-trunk: var(--sc-post); --v-tint: var(--clay); }
.gcard--benefits { --v-sky-0: var(--sc-sky-0); --v-far: var(--sc-h2); --v-mid: var(--sc-field); --v-near: var(--sc-meadow-2); --v-path: var(--sc-path); --v-box: var(--sc-stone); --v-flag: var(--sc-blaze); --v-tint: var(--clay); }
.gcard--new { --v-sky-0: var(--sc-sky-0); --v-sky-1: var(--sc-sky-3); --v-mid: var(--sc-h3); --v-near: var(--sc-h5); --v-tree: var(--sc-h4); --v-wall: var(--sc-fl-white); --v-roof: var(--sc-roof); --v-window: var(--sc-sun); --v-tint: var(--sage); }

/* Night: the sun becomes a moon, a few stars come out, and each sky keeps
   a whisper of its own color at the horizon */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gcard {
    --v-sun: var(--sc-moon);
    --v-glow: var(--sc-moon-glow);
    --v-glow-o: .22;
    --v-sky-0: var(--sc-sky-0);
    --v-sky-1: color-mix(in oklab, var(--sc-sky-3) 80%, var(--v-tint) 20%);
  }
  :root:not([data-theme="light"]) .v-night { display: inline; }
  :root:not([data-theme="light"]) .gcard-art .v-shine { opacity: .45; }
}
:root[data-theme="dark"] .gcard {
  --v-sun: var(--sc-moon);
  --v-glow: var(--sc-moon-glow);
  --v-glow-o: .22;
  --v-sky-0: var(--sc-sky-0);
  --v-sky-1: color-mix(in oklab, var(--sc-sky-3) 80%, var(--v-tint) 20%);
}
:root[data-theme="dark"] .v-night { display: inline; }
:root[data-theme="dark"] .gcard-art .v-shine { opacity: .45; }

/* =========================================================================
   5 · Take a breath
   ========================================================================= */
.breath { padding-bottom: var(--space-section); }
.breath-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy bloom" "help help";
  align-items: center;
  gap: clamp(36px, 5vw, 72px) clamp(32px, 6vw, 96px);
  padding: clamp(36px, 6.5vw, 96px) clamp(24px, 6.5vw, 96px) clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl);
  background: var(--mist);
}
.breath-copy { grid-area: copy; max-width: 30rem; }
.breath-copy .eyebrow { margin-bottom: 14px; }
.breath-copy .lead { margin: 20px 0 0; }
.breath-bloom { grid-area: bloom; justify-self: center; width: 100%; max-width: 380px; }
.breath-help {
  grid-area: help;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.breath-line {
  flex: 1 1 24em;
  max-width: 36em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
}
.breath-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.breath-fine {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin: -6px 0 0;
  color: var(--text-2);
  font-size: .9375rem;
}
.breath-fine a:not(.link-arrow) { font-weight: 600; }
.breath-fine .link-arrow { min-height: 44px; }

/* =========================================================================
   6 · The numbers
   ========================================================================= */
.numbers { padding-bottom: var(--space-section); }
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 28px) 0;
}
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-n {
  color: var(--ink);
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}
.stat-label {
  max-width: 15em;
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* =========================================================================
   7 · Closing
   ========================================================================= */
.closing { padding-block: 0 clamp(24px, 4vw, 56px); }
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing .lead { max-width: 30em; margin: 18px auto 32px; }
.closing .btn svg { transition: transform var(--dur-2) var(--ease-out); }
.closing .btn:hover svg { transform: translateX(3px); }

/* =========================================================================
   Narrower screens
   ========================================================================= */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .stat { padding: 22px 16px 22px 0; border-top: 1px solid var(--line); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .stat:last-child .stat-label { max-width: 26em; }
}
@media (max-width: 760px) {
  .needs-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .needs-list > li:nth-child(7n) { border-bottom: 0; }
  .needs-list > li:last-child { border-bottom: 1px solid var(--line); }
  .need { min-height: 60px; }
  .breath-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "bloom" "help"; }
  .breath-copy { max-width: none; }
}
@media (max-width: 560px) {
  .statement-text { margin-left: 0; }
  .shelf { --card-w: min(80vw, 316px); }
  .shelf-nav .sec-link { margin-right: auto; }
  .shelf-nav { flex: 1 1 100%; }
  .breath-panel { border-radius: var(--r-lg); }
  .breath-actions { flex: 1 1 100%; }
  .breath-actions .btn { flex: 1 1 0; }
}

/* =========================================================================
   Preferences
   ========================================================================= */
html:not(.motion-ok) .gcard:hover { transform: none; }
html:not(.motion-ok) .gcard { --p: 0; }
html[data-motion="reduce"] .gcard-art .vl,
html[data-motion="reduce"] .gcard-art .v-rise { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .gcard-art .vl, .gcard-art .v-rise { transform: none; }
}

html[data-contrast="high"] .hero {
  min-height: 0;
  padding-bottom: clamp(48px, 7vw, 88px);
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
html[data-contrast="high"] .hero::after,
html[data-contrast="high"] .hero-cue,
html[data-contrast="high"] .gcard-art { display: none; }
html[data-contrast="high"] .hero-chips a {
  border: 2px solid var(--line);
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-contrast="high"] .gcard { border: 2px solid var(--line); box-shadow: none; }
html[data-contrast="high"] .gcard:hover { box-shadow: 0 0 0 2px var(--line); }
html[data-contrast="high"] .shelf-btn { border: 2px solid var(--line); }
html[data-contrast="high"] .breath-panel { border: 2px solid var(--line); }
html[data-contrast="high"] .needs-list > li { border-color: var(--line); }

html[data-spacing="wide"] .need-name { letter-spacing: 0; }

@media print {
  .hero { min-height: 0; padding: 0 0 12pt; background: none; }
  .hero::after, .hero-cue, .hero-chips, .shelf-nav, .shelf-foot, .gcard-art, .breath-bloom, .breath-actions { display: none !important; }
  .hero-copy, .gcard-art .vl { transform: none !important; }
  .statement, .needs, .guides, .breath, .numbers, .closing { padding-block: 12pt; }
  .shelf { overflow: visible; }
  .shelf-track { flex-wrap: wrap; width: auto; padding: 0; }
  .shelf-item { flex: 1 1 45%; width: auto; }
  .gcard { box-shadow: none; border: 1px solid #999999; }
  .need-go { display: none; }
  .breath-panel { display: block; padding: 0; background: none; }
  .stats { grid-template-columns: repeat(5, 1fr); }
}
