/* Laya website: the shared system (every page).
   Look: "Direction A, colour chapters" (owner's pick, 2026-10-20). Every chapter is one flat field
   of a Laya colour, edge to edge; the header takes the ink of the chapter under it.
   One container, one gutter, one spacing scale, one set of motion tokens. No px value outside :root
   except hairlines (1px) and the SVG geometry of the mark. */

/* Fonts are self-hosted (Latin subsets of the two variable families, SIL OFL; licences beside them),
   so no third party sees a visitor. The fallbacks are metric-matched to the real faces (measured with
   canvas text metrics against Arial, 2026-10-24), so nothing jumps when the font arrives. */
@font-face { font-family: "Jost"; src: url("fonts/jost-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 99.84%; ascent-override: 107.17%; descent-override: 38.06%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 100.72%; ascent-override: 99.28%; descent-override: 29.79%; line-gap-override: 0%; }

:root {
  /* Grounds and their inks */
  --night: #161A2C; --night-ink: #F3F3F1; --night-soft: #C3C7D6; --night-pale: #AEB8FF;
  --paper: #F6F6F4; --paper-ink: #141518; --paper-soft: #4A4D54; --paper-step: #EAEAE6; --paper-step2: #E0E0DB;
  --green: #6ED3A3; --green-ink: #0D231A; --green-soft: #1F4535; --green-step: #5CBF90;
  --lilac: #B4BEF5; --lilac-ink: #15161A; --lilac-soft: #2E3352; --lilac-step: #A6B1F0;
  --graphite: #15161A; --graphite-ink: #F3F3F1; --graphite-soft: #B6B8BE; --card: #212226; --raised: #2A2B2F;
  --ember: #FFA75F; --ember-ink: #1C1006; --ember-soft: #4A2A10; --ember-step: #F39A50;
  --pink: #FF9AC4; --pink-ink: #24101A; --pink-soft: #4D2236; --pink-step: #F68DB9;
  --accent: #4A57CC; --accent-ink: #FFFFFF;
  /* App data colours (inside data pieces only) */
  --sleep: #9DA9FF; --deep: #7380F0; --rem: #C9AAFF; --awake: #FFB27A; --recovery: #6ED3A3; --move: #FFA75F; --period: #FF9AC4;

  /* Type */
  --font-display: "Jost", "Jost Fallback", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif;
  --t-hero: clamp(2.5rem, 6.9vw, 7.25rem);
  --t-h1: clamp(2.75rem, 6.4vw, 6rem);
  --t-h2: clamp(2.25rem, 4.6vw, 4.5rem);
  --t-h3: clamp(1.375rem, 2vw, 1.875rem);
  --t-lead: clamp(1.0625rem, 1.35vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  /* Space: one scale, used everywhere */
  --s1: 0.25rem;  /* 4 */
  --s2: 0.5rem;   /* 8 */
  --s3: 0.75rem;  /* 12 */
  --s4: 1rem;     /* 16 */
  --s5: 1.5rem;   /* 24 */
  --s6: 2rem;     /* 32 */
  --s7: 3rem;     /* 48 */
  --s8: 4rem;     /* 64 */
  --s9: 6rem;     /* 96 */
  --s10: 8rem;    /* 128 */
  --s11: 10rem;   /* 160 */

  /* Layout: one container, one gutter, one column gap */
  --gutter: clamp(1rem, 2.6vw, 2.5rem);
  --max: 90rem;
  --col-gap: clamp(var(--s3), 1.6vw, var(--s5));
  --ch-pad: clamp(var(--s9), 11vw, var(--s11));
  --head-h: 4.5rem;

  /* Shape */
  --r-s: 0.875rem; --r: 1.375rem; --r-l: 1.75rem; --r-pill: 999px;

  /* Motion: one token set (Emil Kowalski; taste-skill). Enter with a strong ease-out, move with
     ease-in-out, never ease-in. UI under 300 ms; story moves 600 to 900 ms. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --d-ui: 180ms; --d-press: 140ms; --d-enter: 700ms; --d-move: 900ms;

  color-scheme: light dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--s4)); scrollbar-color: #4A4D54 var(--graphite); }
body { margin: 0; background: var(--night); color: var(--night-ink); font: 400 var(--t-lead)/1.55 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--lilac); color: var(--lilac-ink); }
.ch--lilac ::selection, .card ::selection, .dk ::selection { background: var(--lilac-ink); color: var(--lilac); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: var(--s1); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
.num, time { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: calc(-1 * var(--s8)); z-index: 50; background: var(--paper); color: var(--paper-ink); padding: var(--s3) var(--s4); border-radius: var(--r-pill); }
.skip:focus { top: var(--s3); }

/* ---------------------------------------------------------------- layout */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------------------------------------------------------------- chapters: flat fields, no dividers */
.ch { position: relative; padding-block: var(--ch-pad); background: var(--bg); color: var(--ink); }
.ch--night    { --bg: var(--night);    --ink: var(--night-ink);    --soft: var(--night-soft);    --hair: rgba(243, 243, 241, 0.16); --step: #20253A; }
.ch--paper    { --bg: var(--paper);    --ink: var(--paper-ink);    --soft: var(--paper-soft);    --hair: rgba(20, 21, 24, 0.12);    --step: var(--paper-step); }
.ch--paper2   { --bg: var(--paper-step); --ink: var(--paper-ink);  --soft: var(--paper-soft);    --hair: rgba(20, 21, 24, 0.14);    --step: var(--paper-step2); }
.ch--green    { --bg: var(--green);    --ink: var(--green-ink);    --soft: var(--green-soft);    --hair: rgba(13, 35, 26, 0.18);    --step: var(--green-step); }
.ch--lilac    { --bg: var(--lilac);    --ink: var(--lilac-ink);    --soft: var(--lilac-soft);    --hair: rgba(21, 22, 26, 0.16);    --step: var(--lilac-step); }
.ch--graphite { --bg: var(--graphite); --ink: var(--graphite-ink); --soft: var(--graphite-soft); --hair: rgba(243, 243, 241, 0.14); --step: var(--card); }
.ch--ember    { --bg: var(--ember);    --ink: var(--ember-ink);    --soft: var(--ember-soft);    --hair: rgba(28, 16, 6, 0.18);     --step: var(--ember-step); }
.ch--pink     { --bg: var(--pink);     --ink: var(--pink-ink);     --soft: var(--pink-soft);     --hair: rgba(36, 16, 26, 0.18);    --step: var(--pink-step); }
/* Native controls follow the ground they sit on, never the visitor's OS theme. */
.ch--paper, .ch--paper2, .ch--green, .ch--lilac, .ch--ember, .ch--pink, .start { color-scheme: light; }
.ch--night, .ch--graphite, .foot { color-scheme: dark; }
.ch :focus-visible { outline-color: var(--ink); }
.soft { color: var(--soft); }

/* ---------------------------------------------------------------- type */
.t-hero { font-size: var(--t-hero); line-height: 0.9; letter-spacing: -0.035em; }
.h1 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; }
.h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; }
.h3 { font-size: var(--t-h3); line-height: 1.18; letter-spacing: -0.012em; }
.lead { font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; }
.lead + .lead { margin-top: var(--s4); }
.small { font-size: var(--t-small); line-height: 1.5; }
.fine { font-size: var(--t-small); line-height: 1.5; color: var(--soft); }
.tag { display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s1) var(--s3); border-radius: var(--r-pill); border: 1px solid currentColor; font: 600 var(--t-micro)/1.3 var(--font-text); letter-spacing: 0.01em; white-space: nowrap; }

/* ---------------------------------------------------------------- the one button: round, flat, one fill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--s7); padding: 0 var(--s5); border-radius: var(--r-pill); border: 0; background: var(--ink, var(--night-ink)); color: var(--bg, var(--night)); font: 600 var(--t-body)/1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--d-press) var(--ease-out), background-color var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn .apple-logo { width: 1rem; height: 1rem; margin-top: -0.125rem; }
.btn[aria-disabled="true"] .apple-logo { display: none; }
/* Hover: the fill steps a little towards the ground and the button lifts by a pixel. */
@media (hover: hover) and (pointer: fine) {
  .btn:not([aria-disabled="true"]):not(:disabled):hover { background: color-mix(in srgb, var(--ink, var(--night-ink)) 86%, var(--bg, var(--night))); transform: translateY(-1px); }
  .head .btn:not([aria-disabled="true"]):hover { background: color-mix(in srgb, var(--hd-ink, var(--night-ink)) 86%, var(--hd-bg, var(--night))); }
  .btn:not([aria-disabled="true"]):not(:disabled):active { transform: scale(0.97); }
}
/* Until the store listing exists, the action is a status, not a button that does nothing. */
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; cursor: default; transform: none; }
.textlink { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.textlink svg { width: 0.875rem; height: 0.875rem; flex: none; transition: transform var(--d-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink[href]:hover svg { transform: translateX(3px); } }
/* A status that is not a link yet: no underline, no arrow. */
.textlink[aria-disabled="true"] { text-decoration: none; font-weight: 500; }
.textlink[aria-disabled="true"] svg { display: none; }
.go-line { margin-top: var(--s8); font-size: var(--t-lead); }
/* Copy an email address (added by site.js where the clipboard works). */
.copy-btn { margin-left: var(--s3); min-height: var(--s6); padding: 0 var(--s3); border-radius: var(--r-pill); border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; font: 600 var(--t-micro)/1 var(--font-text); cursor: pointer; vertical-align: middle; opacity: 0.8; transition: opacity var(--d-ui) var(--ease-out), transform var(--d-press) var(--ease-out); }
.copy-btn:hover { opacity: 1; }
.copy-btn:active { transform: scale(0.96); }
.copy-btn[data-done] { opacity: 1; box-shadow: inset 0 0 0 1.5px transparent; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: auto; }
.copy-row > a { margin-top: 0 !important; }
.copy-row .copy-btn { margin-left: 0; }

/* ---------------------------------------------------------------- header: wordmark, links, one action */
.head { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--head-h); background: var(--hd-bg, var(--night)); color: var(--hd-ink, var(--night-ink)); transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out); }
.head-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; font: 500 1.5rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand .mark { width: 2.4rem; height: 1.5rem; overflow: visible; }
.head nav { display: flex; align-items: center; gap: clamp(var(--s3), 2vw, var(--s6)); font-size: var(--t-body); font-weight: 500; }
.head nav a:not(.btn) { text-decoration: none; padding: var(--s3) 0; }
.head nav a:not(.btn):hover, .head nav a[aria-current="page"] { text-decoration: underline; }
.head .btn { min-height: 2.625rem; padding: 0 var(--s4); font-size: var(--t-small); background: var(--hd-ink, var(--night-ink)); color: var(--hd-bg, var(--night)); }
.head .btn[aria-disabled="true"] { background: transparent; color: inherit; }
.head :focus-visible { outline-color: var(--hd-ink, var(--night-ink)); }
/* On a phone: every page link stays while there is no store link. Once the store button is a real
   link it shows, and the links marked hide-live-sm make room for it (all of them are in every footer). */
@media (max-width: 45rem) {
  .head .hide-sm, .head .btn[aria-disabled="true"], .head .btn:not([href]) { display: none; }
  .head nav { gap: var(--s4); }
  .play-live .head .hide-live-sm { display: none; }
  .head .btn { padding: 0 var(--s3); }
}

/* The settling wave, always gently moving: a pulse of light travels the line and the dot answers.
   Still under reduced motion. */
.mark path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark .mark-dot { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .mark .mark-base { opacity: 0.5; }
  .mark .mark-pulse { stroke-dasharray: 38 100; stroke-dashoffset: 38; animation: mark-pulse 3.6s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
  .mark .mark-dot { transform-box: fill-box; transform-origin: center; animation: mark-dot 3.6s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
  @keyframes mark-pulse { 0% { stroke-dashoffset: 38; } 70%, 100% { stroke-dashoffset: -100; } }
  @keyframes mark-dot { 0%, 58% { opacity: 0.5; transform: scale(1); } 72% { opacity: 1; transform: scale(1.22); } 100% { opacity: 0.5; transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) { .mark .mark-pulse { display: none; } }

/* ---------------------------------------------------------------- footer: a footer of tiles */
.foot { background: var(--graphite); color: var(--graphite-ink); padding: var(--s2); --bg: var(--graphite); --ink: var(--graphite-ink); --soft: var(--graphite-soft); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s2); }
.foot-grid > * { background: var(--card); border-radius: var(--r); padding: var(--s5); min-height: 13.75rem; display: flex; flex-direction: column; }
.f-say { grid-column: 1 / 5; }
.f-say p:first-child { font: 500 clamp(1.25rem, 1.8vw, 1.625rem)/1.3 var(--font-display); max-width: 26ch; }
.f-say .fine { margin-top: auto; padding-top: var(--s4); }
.f-say .fine + .fine { margin-top: var(--s2); padding-top: 0; }
.f-nav { grid-column: 5 / 8; }
.f-nav a { display: block; text-decoration: none; padding: var(--s1) 0; font-size: var(--t-body); }
.f-nav a:hover { text-decoration: underline; }
.f-about { grid-column: 8 / 10; }
.f-about p, .f-mail p { font-size: var(--t-body); color: var(--graphite-soft); }
.f-about a { margin-top: auto; font-weight: 600; }
.f-mail { grid-column: 10 / 13; }
.f-mail a { margin-top: auto; font: 500 clamp(1.125rem, 1.5vw, 1.375rem)/1.2 var(--font-display); overflow-wrap: anywhere; }
.f-mark { grid-column: 1 / -1; min-height: 18.75rem; background: var(--night-ink); color: var(--graphite); align-items: center; justify-content: center; flex-direction: row; gap: 0.25em; font: 500 clamp(4rem, 9vw, 9.375rem)/1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; }
.f-mark .mark { width: 1.5em; height: auto; }
.f-mark:focus-visible { outline-color: var(--night-ink); }
.f-tm { grid-column: 1 / -1; min-height: 0; background: transparent; padding: var(--s3) var(--s5) var(--s4); }
.f-tm p { font-size: var(--t-micro); color: var(--graphite-soft); max-width: 68ch; }
@media (max-width: 54rem) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .f-mark { grid-column: 1 / -1; min-height: 10rem; }
  .f-say { grid-column: 1 / -1; min-height: 0; }
  .f-nav, .f-mail, .f-about { grid-column: span 1; min-height: 0; }
  .f-say .fine:first-of-type { padding-top: var(--s5); }
}
@media (max-width: 26.25rem) { .f-nav, .f-mail, .f-about { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- reveal: once, from an already-visible layout */
@media (prefers-reduced-motion: no-preference) {
  .js [data-r] { opacity: 0; transform: translateY(var(--s5)); transition: opacity var(--d-enter) var(--ease-out), transform var(--d-move) var(--ease-out); }
  .js [data-r].in { opacity: 1; transform: none; }
  .js [data-r="2"] { transition-delay: 80ms; }
  .js [data-r="3"] { transition-delay: 160ms; }
  .js [data-r="4"] { transition-delay: 240ms; }
}

/* ================================================================ inner pages ================ */

/* The opening of an inner page: a night field with one big title. */
.page-hero { padding-top: calc(var(--head-h) + var(--s10)); padding-bottom: var(--s9); }
.page-hero .h1 { max-width: 14ch; }
.page-hero .h1 .pale { color: var(--night-pale); }
.page-hero .lead { margin-top: var(--s5); color: var(--ink); max-width: 52ch; }
.page-hero .meta { margin-top: var(--s4); }
.page-hero .actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }

/* Long reading: legal and support. One measure, roomy rhythm, more space above a heading than below. */
.reading { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.reading > .side { grid-column: 1 / 5; position: sticky; top: calc(var(--head-h) + var(--s6)); }
.reading > .body { grid-column: 5 / 12; min-width: 0; }
@media (max-width: 60rem) { .reading > .side, .reading > .body { grid-column: 1 / -1; position: static; } .reading > .side { margin-bottom: var(--s7); } }

.reading-ch { padding-block: var(--s9) var(--ch-pad); }
@media (min-width: 60rem) { .reading > .side { max-height: calc(100svh - var(--head-h) - var(--s7)); overflow-y: auto; scrollbar-width: thin; } }
.side-toc { margin-top: var(--s6); }
.summary-box { background: var(--step); border-radius: var(--r); padding: var(--s6); margin-bottom: var(--s8); }
.tiers-note { margin-top: var(--s6); max-width: 60ch; }
.start-act { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.start-act .btn { background: var(--ember-ink); color: var(--ember); }
.start-act .btn[aria-disabled="true"] { background: transparent; color: var(--ember-ink); }
.start-act .fine { color: var(--ember-soft); }
.thanks .h1 { max-width: 16ch; }
.thanks .lead { margin-top: var(--s5); }
.thanks-fine { margin-top: var(--s2); max-width: 52ch; }
.thanks a { font-weight: 600; }
.summary-box h2 { font-size: var(--t-h3); line-height: 1.2; }
.summary-box ul { margin-top: var(--s4); padding-left: var(--s5); display: grid; gap: var(--s3); font-size: var(--t-body); }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); font-size: var(--t-small); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: inline-flex; gap: var(--s3); text-decoration: none; padding: var(--s1) 0; color: var(--soft); }
.toc a::before { content: counter(toc); min-width: 1.5em; font-variant-numeric: tabular-nums; color: var(--soft); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.side .toc-title { font: 600 var(--t-small)/1.4 var(--font-text); margin-bottom: var(--s3); }

.prose { font-size: var(--t-body); line-height: 1.65; max-width: 60ch; }
.prose h2 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.012em; margin: var(--s8) 0 var(--s4); scroll-margin-top: calc(var(--head-h) + var(--s5)); }
.prose > h2:first-child, .prose > .support-group:first-child h2 { margin-top: 0; }
.prose h3 { font: 600 var(--t-body)/1.4 var(--font-text); margin: var(--s6) 0 var(--s2); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s4); }
.prose ul, .prose ol { padding-left: var(--s5); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--soft); }
.prose a { font-weight: 500; }
.prose .note { padding: var(--s4) var(--s5); border-radius: var(--r-s); background: var(--step); }
.path { font-weight: 600; white-space: normal; }
.path i { font-style: normal; padding: 0 0.3em; color: var(--soft); font-weight: 400; }
.table-scroll { overflow-x: auto; margin: 0 0 var(--s5); border-radius: var(--r-s); border: 1px solid var(--hair); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; min-width: 36rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--hair); }
.prose th { font-weight: 600; background: var(--step); }
.prose tr:last-child td { border-bottom: 0; }

/* Questions: details, one hairline each */
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; font: 500 var(--t-lead)/1.35 var(--font-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: var(--s3); height: var(--s3); border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform var(--d-ui) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq .answer { padding: 0 0 var(--s5); max-width: 64ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover::after { transform: translateY(-5%) rotate(45deg); } .faq details[open] summary:hover::after { transform: translateY(5%) rotate(-135deg); } }
/* Opening a question: the answer unfolds (where the browser can animate to auto) and fades in. */
@media (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  .faq details[open] .answer { animation: answer-in 260ms var(--ease-out); }
  @keyframes answer-in { from { opacity: 0; transform: translateY(calc(-1 * var(--s2))); } }
}
.faq .answer p, .faq .answer ol, .faq .answer ul { margin: 0 0 var(--s3); }
.support-group + .support-group { margin-top: var(--s8); }
.support-group h2 { margin: 0 0 var(--s4); }
.closing-note { margin-top: var(--s7); }

/* Contact: two tiles */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.contact > div { background: var(--step); border-radius: var(--r); padding: var(--s6); min-height: 12rem; display: flex; flex-direction: column; gap: var(--s3); }
.contact .addr { margin-top: auto; font: 500 clamp(1.25rem, 2vw, 1.75rem)/1.2 var(--font-display); overflow-wrap: anywhere; }
.contact--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 45rem) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* About */
.say-lines { display: grid; gap: var(--s3); }
.say-lines p { font: 500 clamp(1.5rem, 2.6vw, 2.5rem)/1.2 var(--font-display); letter-spacing: -0.015em; }
.principles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.principles li { background: var(--step); border-radius: var(--r); padding: var(--s6) var(--s5); min-height: 15rem; }
.principles h3 { font-size: var(--t-h3); line-height: 1.15; margin-bottom: var(--s3); }
.principles p { font-size: var(--t-body); color: var(--soft); }
@media (max-width: 60rem) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 37.5rem) { .principles { grid-template-columns: minmax(0, 1fr); } .principles li { min-height: 0; } }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.facts > div { background: var(--step); border-radius: var(--r); padding: var(--s6) var(--s5); }
.facts dt { font: 500 var(--t-h3)/1.1 var(--font-display); margin-bottom: var(--s3); }
.facts dt em { font-style: normal; color: var(--soft); }
.facts dd { margin: 0; font-size: var(--t-body); }
@media (max-width: 54rem) { .facts { grid-template-columns: minmax(0, 1fr); } }
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s5); margin-bottom: var(--s8); align-items: end; }
.split-head .h2 { grid-column: 1 / 7; }
.split-head .copy { grid-column: 8 / 13; }
@media (max-width: 54rem) { .split-head .h2, .split-head .copy { grid-column: 1 / -1; } }

/* Start: one word is the button (ember). The store link inside stretches over the whole block once it
   is live; until then the block is a calm status: no arrow, no hover, nothing that looks clickable. */
.start { display: block; position: relative; text-decoration: none; background: var(--ember); color: var(--ember-ink); transition: background-color var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-out); --bg: var(--ember); --ink: var(--ember-ink); --soft: var(--ember-soft); }
.start:has(.start-link[href]:hover), .start:has(.start-link[href]:focus-visible) { background: var(--ember-ink); color: var(--ember); }
.start-link { font-weight: 600; }
.start-link[href]::after { content: ""; position: absolute; inset: 0; }
.start-link[href]:focus-visible { outline: none; }
.start:has(.start-link[href]:focus-visible) { outline: 3px solid var(--ember); outline-offset: calc(-1 * var(--s2)); }
.start-link[aria-disabled="true"] { text-decoration: none; }
.start:not(:has(.start-link[href])) .arrow { display: none; }
.start-in { min-height: 64svh; padding-block: var(--s10) var(--s7); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; }
.start h2 { font-size: clamp(1.625rem, 2.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.start .sub { font-size: var(--t-lead); max-width: 46ch; margin-top: var(--s3); }
.start .arrow { grid-column: 2; grid-row: 1; width: clamp(2rem, 4vw, 3.5rem); height: auto; }
.start .word { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s7); padding-bottom: 0.06em; font: 600 clamp(6rem, 24vw, 23.75rem)/0.92 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; }

/* 404 and thanks */
.lost { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--head-h) + var(--s8)); }
.lost .h1 { margin-top: var(--s6); }
.lost .lead { margin-top: var(--s5); }
.lost .actions { margin-top: var(--s7); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; }
.lost .big-mark { width: clamp(6rem, 14vw, 12rem); height: auto; color: var(--night-pale); }

.timeline { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; gap: 0; max-width: 34rem; }
.timeline li { display: grid; grid-template-columns: var(--s6) minmax(0, 1fr); column-gap: var(--s4); }
.timeline .node { display: flex; flex-direction: column; align-items: center; }
.timeline .dot { width: var(--s6); height: var(--s6); border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 var(--t-micro)/1 var(--font-text); }
.timeline .dot svg { width: var(--s3); height: var(--s3); }
.timeline .line { flex: 1; width: 2px; min-height: var(--s5); background: var(--hair); margin: var(--s1) 0; }
.timeline .copy { padding: var(--s1) 0 var(--s6); display: grid; gap: var(--s1); font-size: var(--t-body); }
.timeline .copy b { font-weight: 600; }
.timeline .copy > span { color: var(--soft); }
.timeline .em { color: var(--ink); }

@media print { .head, .foot, .skip { display: none; } .ch { padding-block: var(--s6); } .js [data-r] { opacity: 1 !important; transform: none !important; } }

/* About: what is coming, as calm tiles (no stacking, no pinning) */
.coming { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.coming li { background: var(--step); border-radius: var(--r); padding: var(--s6) var(--s5); display: grid; grid-template-rows: auto 1fr auto; gap: var(--s3); justify-items: start; }
.coming h3 { font-size: var(--t-h3); line-height: 1.15; }
.coming p { font-size: var(--t-body); color: var(--soft); max-width: 46ch; }
@media (max-width: 45rem) { .coming { grid-template-columns: minmax(0, 1fr); } }

/* Thanks: the arrival. The settling-wave mark draws itself once and the dot lands. */
.arrive { display: block; width: clamp(4.5rem, 8vw, 6.5rem); height: auto; margin-bottom: var(--s6); overflow: visible; }
.arrive path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.arrive circle { fill: currentColor; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .arrive path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: arrive-draw 600ms var(--ease-out) 150ms forwards; }
  .arrive circle { opacity: 0; transform: scale(0.4); animation: arrive-dot 320ms var(--ease-out) 700ms forwards; }
  @keyframes arrive-draw { to { stroke-dashoffset: 0; } }
  @keyframes arrive-dot { to { opacity: 1; transform: none; } }
}
.timeline .dot--wait { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.thanks .lead a { font-weight: 600; }
