/* Moondog site, 2026 brand: the home page only. Loaded after tokens.css and base.css.
   Source: prototype-2026-10/landing/landing.css, without the parts base.css already carries
   (reset, layout, buttons, nav, frames, forms, footer).
   The hero, the two answers and the doors are a generated sky (BRAND.md 3.5, 7.4): ink at the top, never bluer than
   Nocturne. Colour enters only as light, inside the scenes. Never on a figure, never on the seal, never in the logo.
   Motion rule: only transform and opacity animate. Without script or with reduced motion every section is complete
   and in normal flow.

   Added here because base.css does not have them (home page only): .sec__head--short, .seal, .seal--20, .art,
   .facts, .founder__av. */

/* ---------- 0. Small pieces ---------- */
.sec__head--short { margin-bottom: var(--md-s-6); }
.seal { width: 16px; height: 16px; fill: var(--md-approval); flex: none; }
/* The site uses the 20px master only (BRAND 2.9) */
.seal--20 { width: 20px; height: 20px; }

/* Scenes: plain SVG. Every moon is art/moon.svg (an exact circle with regular facets), every light is a gradient that
   reaches zero inside its own shape, so nothing draws a box. Night grounds are CSS gradients with a star tile */
.art { display: block; overflow: visible; max-width: none; }
/* The straight edge that closes each part of a cut moon, in the line of its skeleton */
.art__edge { fill: none; stroke: var(--md-moon-line, #A9A498); stroke-width: var(--md-moon-width, 1.5px); stroke-linecap: round; }
.art text { font: 400 14px var(--md-font-mono); fill: var(--md-x-silver); }
@media (prefers-reduced-motion: no-preference) {
  .js .hx__art .art__halo { animation: md-halo 1.6s .4s var(--md-ease) both; }
  @keyframes md-halo { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- 1. Hero: the night sky ---------- */
/* Under the stage the hero is Nocturne, so the sticky sky never ends in a step */
.hx { position: relative; overflow: clip; background: var(--md-x-nocturne); }
.hx::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgb(230 232 238 / .34) 12%, rgb(230 232 238 / .34) 88%, transparent); }   /* the night ends on the level line */
.hx__stage { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; z-index: 0;
  background: url("../art/stars.e855ac1edc8e.svg") 0 0 / 1600px 1000px, url("../art/stars.e855ac1edc8e.svg") 517px 263px / 1130px 706px, var(--md-x-sky);
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
/* --r: the moon's radius. The art's viewBox is 10.4 radii wide and 5.2 tall, centred on the moon */
.hx__art { --r: min(21svh, 13.5vw); position: absolute; width: calc(var(--r) * 10.4); height: calc(var(--r) * 5.2); left: calc(69% - var(--r) * 5.2); top: calc(50% - var(--r) * 2.6); }
.hx__content { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--md-nav-h) + clamp(40px, 10vh, 128px)); padding-bottom: var(--md-s-5); }
.hx__copy { max-width: 620px; }
.hx__eyebrow { margin-bottom: var(--md-s-4); }
.hx__title { font-size: var(--md-text-hero); color: var(--md-fg); max-width: 7.2em; text-wrap: balance; }
.hx__lede { margin-top: var(--md-s-5); max-width: 24em; font-size: var(--md-text-lede); line-height: 1.5; letter-spacing: -0.005em; color: var(--md-fg-2); }
.hx__ctas { margin-top: var(--md-s-6); display: flex; flex-wrap: wrap; gap: var(--md-s-3); }
/* Phones, tablets and portrait screens: the scene crowns the screen and plays once, the words sit under the moon.
   Matches the stacked test in landing.js */
@media (max-width: 1099px), (max-aspect-ratio: 23/20) {
  /* the section carries the sky, the stage only the stars and the art */
  .hx { background-image: linear-gradient(180deg, var(--md-ink) 0, var(--md-ink) 20svh, var(--md-x-nocturne) 72svh, var(--md-x-nocturne)); }
  .hx__stage { position: absolute; inset: 0; height: auto; margin-bottom: 0; background: url("../art/stars.e855ac1edc8e.svg") 0 0 / 1600px 1000px;
    -webkit-mask-image: none; mask-image: none; }
  .hx__art { --r: min(13vw, 9svh); left: calc(50% - var(--r) * 5.2); top: calc(var(--md-nav-h) + 15svh - var(--r) * 2.6); }
  .hx__content { min-height: 0; justify-content: flex-start; padding-top: calc(var(--md-nav-h) + 25svh); }
  .hx__lede { max-width: 34em; }
}
@media (max-width: 767px) {
  .hx__ctas .btn { width: 100%; }
}


/* ---------- 2. Built for ---------- */
.built { position: relative; z-index: 2; background: var(--md-bg); }
.built__row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); }
.built__label { padding: var(--md-s-4) 0 var(--md-s-2); }
.built__list { display: grid; grid-template-columns: 1fr 1fr; }
.built__list li { padding: var(--md-s-3) var(--md-s-3) var(--md-s-3) 0; font: 500 var(--md-text-ui)/1.3 var(--md-font-display); letter-spacing: -0.005em; }
@media (min-width: 1024px) {
  .built__row { grid-template-columns: 1fr 5fr; }
  .built__label { padding: var(--md-s-5) 0; }
  .built__list { grid-template-columns: repeat(4, 1fr); }
  .built__list li { padding: var(--md-s-5) var(--md-s-4); border-left: 1px solid var(--md-line); font-size: 1.0625rem; }
}

/* ---------- 3. The question and the problem ---------- */
.ask__h { max-width: 14em; margin-bottom: var(--md-s-8); }
.ask__cols { row-gap: var(--md-s-8); }
.ask__col { padding-top: var(--md-s-2); padding-bottom: var(--md-s-2); }
.ask__col .h3 { max-width: 13.5em; }
/* Sourced facts: the figure, what it measures, and its source on the same card */
.facts { margin-top: var(--md-s-6); border-top: 1px solid var(--md-line); }
.facts li { display: grid; grid-template-columns: 8.5rem 1fr; column-gap: var(--md-s-4); row-gap: var(--md-s-1); align-items: baseline;
  padding: var(--md-s-4) 0; border-bottom: 1px solid var(--md-line); }
.facts__n { grid-row: 1 / span 2; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; color: var(--md-fg); }
.facts li p { color: var(--md-fg-2); font-size: var(--md-text-ui); max-width: 28em; }
.facts li .md-index { display: block; margin: 0; line-height: 1.5; grid-column: 2; }
.ask__close { margin-top: var(--md-s-8); max-width: 22em; font: 500 var(--md-text-h3)/1.25 var(--md-font-display); letter-spacing: -0.015em; text-wrap: balance; }
@media (max-width: 479px) {
  .facts li { grid-template-columns: 1fr; }
  .facts__n { grid-row: auto; }
  .facts li .md-index { grid-column: 1; }
}

.problem { padding-top: 0; }
.problem__h, .how__h { max-width: 18em; margin-bottom: var(--md-s-8); }
.problem .col, .built-how .col { padding-top: var(--md-s-2); padding-bottom: var(--md-s-2); }

/* ---------- 4. The method ---------- */
.method { background: var(--md-bg-raised); border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); }
.method__h { max-width: 17em; margin-bottom: var(--md-s-8); }
/* Default: a plain numbered list in normal flow, one card per step with its frame */
.steps { display: grid; gap: var(--md-s-5); position: relative; }
.step { border: 1px solid var(--md-line); border-radius: var(--md-r-md); background: var(--md-bg); padding: var(--md-s-5); }
.step__text .md-index { display: block; margin-bottom: var(--md-s-3); }
.step__text .h3 { margin-bottom: var(--md-s-2); }
.step__text p { color: var(--md-fg-2); max-width: 34em; }
.step__visual { margin-top: var(--md-s-5); }
.step__visual .frame--phone { max-width: 220px; }
/* The record line under each frame. The seal marks the two human approvals only, always with the word and the version */
.mk__status { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5em; row-gap: 2px; margin-top: var(--md-s-3); font: 500 var(--md-text-small)/1.4 var(--md-font-sans); color: var(--md-fg); }
.mk__status .ic { width: 16px; height: 16px; }
.mk__sub { font-weight: 400; color: var(--md-fg-3); }
.mk__sub::before { content: "\00B7"; margin-right: .5em; }
.has-seal .mk__st { color: var(--md-approval-text); }
@media (max-width: 767px) {
  .mk__sub { flex-basis: 100%; padding-left: calc(20px + .5em); }
  .mk__status:not(.has-seal):not(:has(.ic)) .mk__sub { padding-left: 0; }
  .mk__status:has(.ic) .mk__sub { padding-left: calc(16px + .5em); }
  .mk__sub::before { content: none; }
}
.method__door { margin-top: var(--md-s-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--md-s-2) var(--md-s-5); }
.method__note { line-height: 1.5; }

/* ---------- 5. Night chapter: the two answers ----------
   Ink under the crisis answer, then the generations section eases ink to Nocturne. CSS grounds with a star tile */
.night { position: relative; overflow: clip; background: var(--md-ink); background-image: none; }
.stress { position: relative; background: url("../art/stars.e855ac1edc8e.svg") 0 0 / 1600px 1000px, var(--md-ink); }
.night .sec__head { border-top-color: var(--md-line); }
.night .lede-sm { color: var(--md-fg-2); }
.night .md-colrule { background: var(--md-line); }
/* The stress moon: one whole moon off the left edge, carried 80px by scroll. The viewport edge crops it, never a box */
.stress__art { position: absolute; inset: 0; pointer-events: none; overflow: clip; }
.stress__still { position: absolute; top: 38%; left: 0; width: min(66svh, 600px); aspect-ratio: 1; margin-top: calc(min(66svh, 600px) / -2); translate: -30% 0; }
.stress__still::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgb(212 182 140 / .08) 55%, rgb(212 182 140 / 0)); }
.stress__moon { position: relative; display: block; width: 100%; height: 100%; }
.stress__body { grid-column: 1 / -1; position: relative; }
.stress__body .h2 { margin-bottom: var(--md-s-5); }
.crises { margin-top: var(--md-s-8); }
.crises table { width: 100%; border-collapse: collapse; }
.crises th, .crises td { text-align: left; font-weight: 400; vertical-align: top; padding: var(--md-s-3) var(--md-s-3) var(--md-s-3) var(--md-s-4); border-left: 1px solid var(--md-line); }
.crises thead th { padding-bottom: var(--md-s-4); vertical-align: top; }
.crises thead td, .crises tbody th { border-left: 0; padding-left: 0; }
.crises tbody tr { border-top: 1px solid var(--md-line); }
.crises thead .md-index { display: block; margin-bottom: var(--md-s-2); }
.crises__name { font: 500 var(--md-text-ui)/1.3 var(--md-font-display); color: var(--md-fg); }
.crises tbody th { font: 400 var(--md-text-small)/1.3 var(--md-font-sans); color: var(--md-fg-2); width: 22%; padding-top: calc(var(--md-s-3) + .75rem); }
.crises .md-figure { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.1; color: var(--md-fg); white-space: nowrap; }
/* Past the line: as legible as the figure it flags. Words and a dashed rule, no colour */
.past__tag { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 500 var(--md-text-small)/1.3 var(--md-font-sans); color: var(--md-fg); white-space: nowrap; }
.past__tag::before { content: ""; width: 16px; height: 0; border-top: 1px dashed currentColor; flex: none; }
.crises__line { margin-top: var(--md-s-5); display: flex; align-items: center; gap: var(--md-s-3); font-size: var(--md-text-small); color: var(--md-fg-2); }
.crises__dash { width: 32px; border-top: 1px dashed var(--md-fg-2); flex: none; }
.crises > .md-index { margin-top: var(--md-s-3); display: block; line-height: 1.5; }
.stress__notes { margin-top: var(--md-s-8); }
.stress__notes .col { padding-top: var(--md-s-2); padding-bottom: var(--md-s-2); }
@media (min-width: 1024px) { .stress__body { grid-column: 6 / span 7; } }
@media (max-width: 1023px) {
  .stress__art { position: relative; inset: auto; height: auto; margin: 0 0 var(--md-s-6); overflow: visible; }
  .stress__still { position: relative; top: auto; left: auto; width: clamp(120px, 26vw, 220px); margin: 0 0 0 var(--md-margin); translate: none; }
}
@media (max-width: 767px) {
  .crises { overflow-x: auto; margin-inline: calc(var(--md-margin) * -1); padding-inline: var(--md-margin); }
  .crises table { min-width: 340px; }
  .crises th, .crises td { padding-left: var(--md-s-2); padding-right: var(--md-s-2); }
  .crises .md-figure { font-size: 1.25rem; }
  .crises tbody th { width: auto; padding-top: calc(var(--md-s-3) + .2rem); }
  .crises__name { font-size: var(--md-text-small); }
  .past__tag { white-space: normal; }
  .stress__art { margin-bottom: var(--md-s-5); }
}

.heirs { padding-top: 0; background: url("../art/stars.e855ac1edc8e.svg") 517px 263px / 1130px 706px, linear-gradient(180deg, var(--md-ink), var(--md-x-nocturne) 340px, var(--md-x-nocturne)); }
.heirs > .wrap { position: relative; z-index: 1; }
.heirs__top { row-gap: var(--md-s-5); }
.heirs__h, .heirs__p { grid-column: 1 / -1; }
@media (min-width: 1024px) { .heirs__h { grid-column: 1 / span 6; } .heirs__p { grid-column: 8 / span 5; padding-top: .4em; } }
/* The record: one policy, three versions. Rings in a halo's order, line only. The legend carries the words */
.record { position: relative; margin: var(--md-s-8) 0 var(--md-s-7); --lx: 63vw; }
.record__scene { position: relative; height: clamp(340px, 31vw, 460px); margin-inline: calc(50% - 50vw); overflow: clip; }
.record__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.record__legend { position: absolute; top: calc(clamp(340px, 31vw, 460px) / 2); left: calc(var(--lx, 60vw) - (50vw - 50%) + 16px); transform: translateY(-50%); display: grid; gap: var(--md-s-3); font: 400 var(--md-text-small)/1.4 var(--md-font-sans); color: var(--md-fg-2); }
.record__legend li { display: grid; grid-template-columns: 2.5em auto; align-items: baseline; }
.record__legend .md-index { color: var(--md-fg); }
.record__cap { display: block; margin-top: var(--md-s-4); line-height: 1.5; }
@media (max-width: 1023px) {
  .record__scene { height: 320px; }
  .record__legend { position: static; transform: none; margin-top: var(--md-s-5); }
}
@media (max-width: 767px) {
  .record { margin-top: var(--md-s-6); }
  .record__scene { height: auto; aspect-ratio: 16 / 10; }
  /* the art keeps the scene's height and is centred on the moon, the screen edges crop the outer orbits */
  .record__art { left: 50%; right: auto; width: auto; aspect-ratio: 1120 / 340; translate: -34.8% 0; }
  .record__legend { margin-top: 16px; }
}
.heirs__pillars .col { padding-top: var(--md-s-2); padding-bottom: var(--md-s-2); }

/* ---------- 6. The family's page ---------- */
.family { position: relative; background: var(--md-bg-raised); border-bottom: 1px solid var(--md-line); overflow: clip; }
.family > .wrap { position: relative; z-index: 1; }
.family__text { grid-column: 1 / -1; }
.family__text .h2 { margin-bottom: var(--md-s-5); }
.family__doors { margin-top: var(--md-s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--md-s-3) var(--md-s-5); }
.family__art { grid-column: 1 / -1; position: relative; margin-top: var(--md-s-8); padding-bottom: 12%; }
.family__desk { margin-left: 12%; position: relative; z-index: 1; }
.family__phone { position: absolute; left: 0; bottom: 0; width: 26%; z-index: 2; }
.family__phone .frame { box-shadow: var(--md-shadow-float); }
.family__note { position: absolute; right: 0; bottom: -4px; }
@media (max-width: 767px) {
  .family__art { padding-bottom: 0; }
  .family__desk { display: none; }
  .family__phone { position: relative; width: 70%; margin: 0 auto; }
  .family__note { position: static; display: block; text-align: center; margin-top: var(--md-s-4); }
}
@media (min-width: 1024px) {
  .family__text { grid-column: 1 / span 4; align-self: center; }
  .family__art { grid-column: 6 / span 7; margin-top: 0; }
}

/* ---------- 7. The figures: the number lock ---------- */
/* The mechanism, not a big number: the report sentence, a hairline to the engine row, the check result */
.lock { margin: var(--md-s-9) 0 0; border: 1px solid var(--md-line); border-radius: var(--md-r-md); background: var(--md-bg-raised); padding: var(--md-s-6) var(--md-s-5) var(--md-s-5); }
.lock__pair { display: grid; grid-template-columns: 1fr; row-gap: var(--md-s-2); }
.lock__side .md-label { margin-bottom: var(--md-s-3); }
.lock__sentence { font: 400 clamp(1.1875rem, 1rem + .55vw, 1.4375rem)/1.45 var(--md-font-sans); letter-spacing: -0.01em; color: var(--md-fg-2); max-width: 24em; }
.lock__hit { color: var(--md-fg); font-weight: 500; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--md-fg); }
.lock__wire { position: relative; width: 1px; height: 48px; margin-left: 24px; }
.lock__line { position: absolute; inset: 0; background: var(--md-fg); transform-origin: 50% 0; }
.lock__dot { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--md-bg-raised); border: 1px solid var(--md-fg); }
.lock__dot--end { top: auto; bottom: -3px; }
.lock__engine { overflow-x: auto; }
.lock__table { width: 100%; border-collapse: collapse; font: 400 13px/1.3 var(--md-font-mono); font-variant-numeric: tabular-nums; }
.lock__table th { text-align: left; font-weight: 400; color: var(--md-fg-3); padding: 0 var(--md-s-3) var(--md-s-2) 0; border-bottom: 1px solid var(--md-line); white-space: nowrap; }
.lock__table td { padding: var(--md-s-3) var(--md-s-3) var(--md-s-3) 0; color: var(--md-fg-2); white-space: nowrap; }
.lock__val { color: var(--md-fg) !important; font-weight: 500; }
.lock__val::after { content: ""; display: block; height: 1px; background: var(--md-fg); margin-top: 2px; }
.lock__foot { margin-top: var(--md-s-6); padding-top: var(--md-s-4); border-top: 1px solid var(--md-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--md-s-3) var(--md-s-5); }
.lock__ok { display: inline-flex; align-items: center; gap: var(--md-s-2); font: 500 var(--md-text-small)/1.3 var(--md-font-sans); color: var(--md-fg); }
.lock__ok .ic { width: 16px; height: 16px; }
.lock__tags { display: flex; flex-wrap: wrap; gap: var(--md-s-2) var(--md-s-5); }
@media (min-width: 900px) {
  .lock { padding: var(--md-s-7) var(--md-s-7) var(--md-s-6); }
  .lock__pair { grid-template-columns: minmax(0, 23em) minmax(56px, 1fr) minmax(0, 30em); align-items: end; column-gap: var(--md-s-4); }
  .lock__wire { width: auto; height: 1px; margin: 0 0 calc(var(--md-s-3) + .65em) 0; }
  .lock__line { transform-origin: 0 50%; }
  .lock__dot--end { bottom: auto; top: -3px; left: auto; right: -3px; }
}

/* ---------- 8. Trust ledger: four facts, two by two ---------- */
.trust { background: var(--md-bg-raised); border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); }
.trust__head, .ledger { grid-column: 1 / -1; }
.trust .h2 { margin-bottom: var(--md-s-5); }
.trust__head { margin-bottom: var(--md-s-7); }
.trust__more { margin-top: var(--md-s-2); }
.ledger { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--md-line); }
.ledger li { padding: var(--md-s-5) 0 var(--md-s-6); border-bottom: 1px solid var(--md-line); display: grid; grid-template-columns: 24px 1fr; column-gap: var(--md-s-4); row-gap: var(--md-s-2); align-content: start; }
.ledger li:last-child { border-bottom: 0; }
.ledger .ic { grid-row: 1 / span 2; color: var(--md-fg-2); }
.ledger h3 { font: 500 1.0625rem/1.3 var(--md-font-display); letter-spacing: -0.01em; }
.ledger p { color: var(--md-fg-2); font-size: var(--md-text-ui); }
@media (min-width: 768px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger li { padding: var(--md-s-6) var(--md-s-5) var(--md-s-7); border-left: 1px solid var(--md-line); }
  .ledger li:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .ledger li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 1024px) {
  .trust__head { grid-column: 1 / span 4; margin-bottom: 0; }
  .ledger { grid-column: 6 / span 7; }
}

/* ---------- 9. Founders, investors, questions ---------- */
.founding__text, .founders__list, .faq__head, .faq__list { grid-column: 1 / -1; }
.founders__list { margin-top: var(--md-s-6); row-gap: var(--md-s-7); }
.founder { display: flex; flex-direction: column; align-items: flex-start; gap: var(--md-s-3); padding-top: var(--md-s-2); padding-bottom: var(--md-s-2); }
.founder p:not(.md-label) { color: var(--md-fg-2); max-width: 26em; }
.founder .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; }
/* Initials, no photograph: a hairline circle */
.founder__av { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--md-s-2); border: 1px solid var(--md-line-strong); border-radius: 50%;
  font: 500 var(--md-text-small)/1 var(--md-font-mono); letter-spacing: .04em; color: var(--md-fg-2); }
.faq { background: var(--md-bg-raised); border-top: 1px solid var(--md-line); }
.faq__list { border-top: 1px solid var(--md-line); margin-top: var(--md-s-6); }
@media (min-width: 1024px) {
  .founding__text { grid-column: 1 / span 4; }
  .founders__list { grid-column: 6 / span 7; margin-top: 0; }
  .faq__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: 112px; }
  .faq__list { grid-column: 6 / span 7; margin-top: 0; }
}
.faq details { border-bottom: 1px solid var(--md-line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--md-s-5); min-height: 64px; padding: var(--md-s-4) 0;
  font: 500 1.1875rem/1.3 var(--md-font-display); letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform var(--md-dur-ui) var(--md-ease); color: var(--md-fg-3); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 var(--md-s-8) var(--md-s-5) 0; color: var(--md-fg-2); max-width: 40em; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: md-rise var(--md-dur-ui) var(--md-ease) both; } }

/* ---------- 10. The doors ----------
   The night bookend: the page opens and closes at night. The moon sets low on the level line, the doors hang beneath
   it with paper buttons on ink. The scene fades into the sky on every side, so no edge shows */
.doors { --scene-h: clamp(240px, 28vw, 400px); overflow: clip; padding-top: 0;
  background: url("../art/stars.e855ac1edc8e.svg") 0 0 / 1600px 1000px, linear-gradient(180deg, var(--md-ink) 0, var(--md-ink) calc(var(--scene-h) * .25), var(--md-x-nocturne) calc(var(--scene-h) * .84), var(--md-x-nocturne) 100%); }
.doors__scene { position: relative; height: var(--scene-h); }   /* no clip: every glow fades to zero on its own, a box would cut it */
.doors__art { position: absolute; left: 50%; top: 0; height: 100%; width: auto; aspect-ratio: 1120 / 340; translate: -50% 0; }
.doors > .wrap { position: relative; z-index: 1; }
.doors__head { margin-top: var(--md-s-5); }
.doors__h { max-width: 16em; }
/* The closing band: a heading, one sentence, one action */
.closing__p { margin-top: var(--md-s-4); }
.closing__act { margin-top: var(--md-s-6); display: flex; flex-wrap: wrap; gap: var(--md-s-3); }
@media (max-width: 767px) { .closing__act .btn { width: 100%; } }

/* ---------- 11. One rhythm, one grid per section, the lead forms ----------
   Rhythm, three steps: --home-y between sections, --home-gap from a heading to its content, --md-s-5 inside a group.
   Every section uses them, so no band is longer than another. Tighter on phones through the clamps. */
.home { --home-y: clamp(48px, 2rem + 3.2vw, 88px); --home-gap: clamp(28px, 1.25rem + 1.8vw, 48px); }
.home .sec { padding-block: var(--home-y); }
.home .sec__head { margin-bottom: var(--md-s-6); }
.home .doors { padding-top: 0; }
.ask__h, .problem__h, .how__h { margin-bottom: var(--home-gap); }
.problem { padding-top: var(--home-y); }
.heirs { padding-top: var(--home-y); }
.ask__close { margin-top: var(--home-gap); }
.crises, .stress__notes, .lock { margin-top: var(--home-gap); }
.stress__body .h2 { margin-bottom: 0; }
.record { margin: var(--home-gap) 0; }
.family__art { margin-top: var(--home-gap); }
.trust__head { margin-bottom: var(--home-gap); }
.sec__act { margin-top: var(--home-gap); display: flex; flex-wrap: wrap; gap: var(--md-s-3); }
@media (min-width: 1024px) { .family__art, .trust__head { margin-top: 0; margin-bottom: 0; } }
@media (max-width: 767px) { .sec__act .btn { width: 100%; } }

/* Hero: headline, lede, two buttons and the proof strip on the first screen beside the moon */
/* the block sits in the middle of the first screen, the strip directly under the buttons: no empty band */
.hx__content { justify-content: center; padding-top: calc(var(--md-nav-h) + var(--md-s-5)); padding-bottom: var(--md-s-7); }
.hx__title { font-size: min(var(--md-text-hero), 11svh); }
/* The French headline runs to three lines: a smaller size keeps the buttons on the first screen */
.hx__title:lang(fr) { font-size: min(clamp(2.5rem, 1rem + 3.9vw, 4.75rem), 8.4svh); }
.hx__lede { margin-top: var(--md-s-5); }
.hx__ctas { margin-top: var(--md-s-6); }
@media (max-width: 1099px), (max-aspect-ratio: 23/20) {
  .hx__art { --r: min(13vw, 8svh); top: calc(var(--md-nav-h) + 12svh - var(--r) * 2.6); }
  .hx__content { padding-top: calc(var(--md-nav-h) + 22svh); }
}
@media (max-width: 767px) {
  .hx__ctas { margin-top: var(--md-s-5); gap: var(--md-s-2); }
}

/* 01 The question: one grid. Two columns, each a heading and three sourced facts, every row in line across both */
.ask__grid { display: grid; grid-template-columns: 1fr; }
.ask__col, .ask__col .facts { display: contents; }
.ask__head { padding-bottom: var(--md-s-5); }
.ask__head .md-index { display: block; margin-bottom: var(--md-s-3); }
.ask__head .h3 { max-width: 14em; }
.ask__col + .ask__col .ask__head { margin-top: var(--home-gap); }
.facts li { grid-template-columns: 9.5rem 1fr; column-gap: var(--md-s-4); padding: var(--md-s-4) 0; border-top: 1px solid var(--md-line); border-bottom: 0; }
.facts li:last-child { border-bottom: 1px solid var(--md-line); }
@media (min-width: 768px) {
  .ask__grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: calc(var(--md-gutter) * 2); }
  .ask__col + .ask__col .ask__head { margin-top: 0; }
}
@media (max-width: 1023px) { .facts li { grid-template-columns: 6.5rem 1fr; } }
@media (max-width: 479px) { .facts li { grid-template-columns: 1fr; } }

/* 03 The method without the pin: six equal cards, the frames on one line */
.method__head { margin-bottom: var(--home-gap); }
.method__h { margin-bottom: 0; }
.steps { gap: var(--md-s-5); grid-template-columns: 1fr; }
.step { display: flex; flex-direction: column; padding: var(--md-s-5); }
.step__text .h3 { margin-bottom: 0; font-size: 1.25rem; }
.step__visual { margin-top: auto; padding-top: var(--md-s-5); }
.step__visual .frame { max-width: none; aspect-ratio: 1696 / 1076; }
.step__visual .frame img { height: 100%; object-fit: cover; object-position: top; }
.step__visual .frame--phone { max-width: none; width: 46%; aspect-ratio: .725; margin-inline: auto; }
.step__visual .mk__status { max-width: none; min-height: 2.8em; align-content: start; }
.method__door { margin-top: var(--home-gap); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--md-gutter); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Phones: a slim bar with the one primary action, after the hero buttons have gone and until the doors arrive.
   Fixed, so nothing shifts. landing.js shows it, the visitor can dismiss it */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; gap: var(--md-s-2);
  padding: 8px var(--md-margin) calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--md-bg); border-top: 1px solid var(--md-line);
  transform: translateY(110%); visibility: hidden; transition: transform var(--md-dur-ui) var(--md-ease), visibility 0s linear var(--md-dur-ui); }
.sticky-cta .btn { flex: 1; min-height: 44px; }
@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  .sticky-cta.is-on { transform: none; visibility: visible; transition: transform var(--md-dur-ui) var(--md-ease); }
  /* the back to top button steps above the bar while it shows */
  .has-sticky-cta .to-top { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* 03 The method as a stepper (landing.js adds .is-stepper on wide screens). The visitor changes the step: by a click,
   by the arrow keys, by Previous and Next. Nothing is pinned and nothing follows the scroll.
   Default, without script or below 900px: the tab list is not shown and the six cards stand in a grid. */
.family__note { margin-top: var(--md-s-3); }
.stepper__list, .stepper__nav { display: none; }
/* Stepper layout: the heading and the six steps on the left, the stage on the right, centred on each other.
   landing.js puts .is-stepper-on on the block and .is-stepper on the stepper inside it */
.method__walk.is-stepper-on { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: var(--md-gutter); align-content: center; }
.is-stepper-on .method__head { grid-column: 1 / span 5; grid-row: 1; margin-bottom: var(--md-s-6); }
.is-stepper-on .stepper { display: contents; }
.is-stepper .stepper__list { display: block; grid-column: 1 / span 5; grid-row: 2; align-self: start; border-bottom: 1px solid var(--md-line); }
.is-stepper .stepper__stage { grid-column: 7 / span 6; grid-row: 1 / span 2; align-self: center; --mk-h: clamp(92px, 14svh, 140px); }
.stepper__tab { position: relative; display: grid; grid-template-columns: 3em 1fr; column-gap: var(--md-s-3); row-gap: 4px; align-items: baseline; width: 100%;
  min-height: 48px; padding: var(--md-s-3) 0; border: 0; border-top: 1px solid var(--md-line); background: none; color: var(--md-fg-3); text-align: left; cursor: pointer;
  font: inherit; transition: color var(--md-dur-ui) var(--md-ease); }
.stepper__tab .md-index { color: inherit; }
.stepper__title { font: 500 1.1875rem/1.25 var(--md-font-display); letter-spacing: -0.012em; color: var(--md-fg-2); transition: color var(--md-dur-ui) var(--md-ease); }
.stepper__tab:hover .stepper__title { color: var(--md-fg); }
/* The active step: an ink rule drawn over the hairline, the title in ink and its status line under it. Not colour alone */
.stepper__tab::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--md-fg); transform: scaleX(0); transform-origin: left;
  transition: transform var(--md-dur-panel) var(--md-ease); }
.stepper__tab[aria-selected="true"] { color: var(--md-fg); }
.stepper__tab[aria-selected="true"]::before { transform: scaleX(1); }
.stepper__tab[aria-selected="true"] .stepper__title { color: var(--md-fg); }
/* the status line of the active step: one running line that wraps as text, the seal or the tick set in it */
.stepper__tab .mk__status { display: none; grid-column: 2; margin-top: 2px; }
/* two lines are kept for it, so the list has one height whichever step is active */
.stepper__tab[aria-selected="true"] .mk__status { display: block; min-height: 2.8em; }
.stepper__tab .mk__status .seal, .stepper__tab .mk__status .ic { display: inline-block; vertical-align: -4px; margin-right: .4em; }
.stepper__tab .mk__sub { padding-left: 0; }
.stepper__tab .mk__sub::before { content: "\00B7"; margin: 0 .5em; }
.stepper__tab:focus-visible { outline: 2px solid var(--md-focus-ring); outline-offset: 2px; border-radius: 2px; }
/* The stage keeps one aspect ratio, so nothing below it moves when the step changes. Panels share one cell and cross-fade */
/* its height also gives way to the screen, so the whole block (heading, list, graphic, frame, controls) fits under the nav */
.is-stepper .steps { display: grid; grid-template-columns: 1fr; gap: 0; width: 100%; aspect-ratio: 1696 / 1200; max-height: calc(100svh - var(--md-nav-h) - var(--mk-h) - 228px); min-height: 180px; }
.is-stepper .step { grid-area: 1 / 1; display: block; padding: 0; border: 0; border-radius: 0; background: none; min-height: 0;
  opacity: 0; visibility: hidden; transition: opacity 280ms var(--md-ease), visibility 0s linear 280ms; }
.is-stepper .step.is-active { opacity: 1; visibility: visible; transition: opacity 280ms var(--md-ease); }
.is-stepper .step.is-off { display: none; }   /* after the fade: out of the layout, so its frame is not fetched before it is asked for */
.is-stepper .step__text, .is-stepper .step .mk__status { display: none; }
.is-stepper .step__visual { margin: 0; padding: 0; height: 100%; display: grid; place-items: center; }
.is-stepper .step__visual .frame { width: 100%; height: 100%; aspect-ratio: auto; }
.is-stepper .step__visual .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.is-stepper .step__visual .frame--phone { width: auto; height: 100%; aspect-ratio: 780 / 1320; margin: 0; }
.is-stepper .step__visual .frame--phone img { height: 100%; width: 100%; object-fit: cover; }
.is-stepper .stepper__nav { display: flex; align-items: center; gap: var(--md-s-3); margin-top: var(--md-s-3); }
.stepper__nav .btn[disabled] { opacity: .4; cursor: default; }
.stepper__back { transform: rotate(180deg); }
.stepper__nav .btn .ic { width: 16px; height: 16px; }
.stepper__count { min-width: 5em; text-align: center; }
.stepper__tag { margin-left: auto; }
/* Shorter screens (laptops at 720 to 820px): a smaller heading and tighter rows, so the list ends above the fold too */
@media (max-height: 820px) {
  .is-stepper-on .method__head { margin-bottom: var(--md-s-4); }
  .is-stepper-on .method__h { font-size: clamp(1.625rem, 1.1rem + 1.1vw, 2.125rem); }
  .is-stepper-on .method__head .sec__head { margin-bottom: var(--md-s-4); }
  .is-stepper .stepper__tab { min-height: 40px; padding: var(--md-s-2) 0; }
  .is-stepper .stepper__title { font-size: 1.0625rem; }
  .is-stepper .stepper__tab[aria-selected="true"] .mk__status { min-height: 2.6em; font-size: 13px; }
}
/* The progress graphic above the frame (stepper only). A construction drawing on the level line with the faceted moon
   as a still (BRAND.md 7.4): line only, an exact circle, and a still, so it does not turn once it is cut.
   Driven by custom properties that landing.js sets on .walkmark:
   --p1..--p3 the three members, --br the bracket, --mo the moon, --cu the cut, --sl the sliver's step,
   --gl the one moment of light, --rail how far along the six steps (0 to 1) */
.walkmark { display: none; --p1: 1; --p2: 1; --p3: 1; --br: 0; --mo: 0; --cu: 0; --sl: 0; --gl: 0; --rail: 0; }
.is-stepper .walkmark { display: block; margin-bottom: var(--md-s-3); }
.mk { position: relative; height: var(--mk-h, 120px); aspect-ratio: 640 / 180; max-width: 100%; color: var(--md-fg); }
.mk__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mk__lines line, .mk__lines path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk__level { stroke: var(--md-line-strong); }
.mk__pt { opacity: var(--pt-o); transform: translate(calc(var(--x) * 1px), calc((120 - (1 - var(--pt-o)) * 12) * 1px)); }
.mk__pt:nth-child(1) { --pt-o: var(--p1); } .mk__pt:nth-child(2) { --pt-o: var(--p2); } .mk__pt:nth-child(3) { --pt-o: var(--p3); }
.mk__pt circle { fill: var(--md-fg); }
.mk__br { stroke: var(--md-fg-3); opacity: var(--br); }
.mk__lim { opacity: var(--mo); }
.mk__lim line { stroke: var(--md-fg); }
.mk__lim text { font: 400 11px/1 var(--md-font-mono); fill: var(--md-fg-3); text-anchor: start; }
/* the moon: r 56 in the drawing around (440, 120). The drawing's box is 640 by 180, starting at y 50 */
.mk__moon { position: absolute; left: calc((440 - 58.33) / 640 * 100%); top: calc((120 - 50 - 58.33) / 180 * 100%); width: calc(116.67 / 640 * 100%); aspect-ratio: 1;
  opacity: var(--mo); transform: scale(calc(.96 + .04 * var(--mo))); }
.mk__body, .mk__sl, .mk__gap, .mk__cut { position: absolute; }
.mk__body, .mk__sl { inset: 0; }
.mk__body img, .mk__sl img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk__body { clip-path: inset(0 16.4% 0 0); }
.mk__sl { clip-path: inset(0 0 0 83.6%); transform: translateX(calc(var(--sl) * 14.4%)); }
.mk__cut { left: calc(83.6% - 1px); top: 15.6%; height: 68.8%; width: 1px; background: var(--md-fg-3); transform-origin: 50% 0; transform: scaleY(var(--cu)); }
.mk__sl::before { content: ""; position: absolute; left: 83.6%; top: 15.6%; height: 68.8%; width: 1px; background: var(--md-fg-3); opacity: var(--cu); }
.mk__gap { left: 83.6%; width: 14.4%; top: 17%; height: 66%; opacity: calc(var(--gl) * .62);
  background: linear-gradient(90deg, var(--md-x-r2), var(--md-x-r3) 38%, var(--md-x-r4) 64%, var(--md-x-r5));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); }
/* the rail: six stations on a hairline. The ink line fills with the scroll, the station on screen is marked */
.rail { position: relative; margin-top: var(--md-s-2); padding-top: 9px; }
.rail::before, .rail__fill { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--md-line-strong); }
.rail__fill { height: 2px; top: 3px; background: var(--md-fg); transform-origin: 0 50%; transform: scaleX(var(--rail)); }
.rail ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rail li { position: relative; padding-top: 6px; color: var(--md-fg-3); }
.rail__dot { position: absolute; left: 0; top: -9px; width: 9px; height: 9px; border-radius: 50%; background: var(--md-bg-raised); border: 1px solid var(--md-line-strong); }
.rail li.is-done .rail__dot, .rail li.is-now .rail__dot { background: var(--md-fg); border-color: var(--md-fg); }
.rail li.is-now .rail__dot { box-shadow: 0 0 0 3px var(--md-bg-raised), 0 0 0 4px var(--md-fg); }
.rail li .md-index { color: inherit; }
.rail li.is-now .md-index { color: var(--md-fg); font-weight: 500; }
/* While the scroll walks the steps (landing.js adds .js-walk and pins the block) the block is exactly what is on
   screen under the nav: the section's own padding above it is taken by the pin's place */
.js-walk .method { padding-top: 0; }
.js-walk .method__walk { padding-top: var(--md-s-5); padding-bottom: var(--md-s-4); }
/* One gentle hint when the section first comes into view: the Next arrow nudges once. Nothing advances by itself */
@media (prefers-reduced-motion: no-preference) {
  .stepper__nav.is-hint [data-stepper-next] .ic { animation: stepper-hint 900ms var(--md-ease) 2; }
  @keyframes stepper-hint { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }
}
@media (prefers-reduced-motion: reduce) {
  .is-stepper .step, .is-stepper .step.is-active, .stepper__tab::before { transition: none; }
}

/* ---------- 12. Reduced motion: a static, complete page ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx__stage { position: absolute; inset: 0 0 auto 0; margin-bottom: 0; }
  .stress__still { transform: none !important; }
}
