/* Soulair web. One stylesheet, one small script, no framework.
   Concept: the night of the app icon (#0E1D3E), the arch of eight as the window onto each world.
   The world art is never tinted, scrimmed or blurred: text lives beside the art on solid ground,
   and the UI carries the colour (each quality's accent and deep tone). */

/* Self-hosted fonts (SIL OFL 1.1, licences in /licenses/). Latin subset. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin.90490460ba.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.c3d27bf15d.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.6219bc4bfd.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin.d7f07f8a30.woff2") format("woff2");
}

:root {
  --night: #0B1733;
  --night-2: #0E1D3E;   /* the app icon's ground */
  --surface: #13244A;
  --line: #2A3C66;
  --ink: #F3EADB;       /* cream */
  --muted: #B6BED4;
  --faint: #8F9AB8;
  --focus: #F2A877;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Unbounded", var(--sans);
  --gutter: 16px;
  --measure: 66ch;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* the eight qualities: accent (text-safe on night), muted (the icon's stripe) and deep (UI ground) */
.q-stillness { --accent: #E0907F; --m: #D59484; --deep: #4A1F1A; }
.q-flow      { --accent: #F2A877; --m: #E3A67E; --deep: #4A2612; }
.q-fire      { --accent: #E8C653; --m: #DCBE62; --deep: #3A2E0C; }
.q-openness  { --accent: #8FCB9C; --m: #96C29B; --deep: #1C3824; }
.q-courage   { --accent: #86BCE0; --m: #8FB6D0; --deep: #132D44; }
.q-clarity   { --accent: #9AA3E3; --m: #9FA2D2; --deep: #1C2150; }
.q-wonder    { --accent: #C3A1DE; --m: #BFA1CE; --deep: #2A1838; }
.q-rest      { --accent: #9DB2CB; --m: #A1AEBF; --deep: #121A28; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night) url("/assets/grain.c8731fe00e.png") repeat;
  background-size: 160px 160px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink); text-decoration-color: color-mix(in oklab, var(--ink) 45%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
em { font-style: italic; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--ink); color: var(--night); padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0.5rem; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.1rem;
}

/* ---- draft banner (only when built with DRAFT=true) ---- */
.draft-banner { background: #FFE9A8; color: #3A2E0C; text-align: center; font-size: 0.9rem; font-weight: 600; padding: 0.55rem var(--gutter); }
.todo { background: #FFE9A8; color: #3A2E0C; padding: 0 0.25em; border-radius: 4px; }
.draft-note { background: #FFE9A8; color: #3A2E0C; border-radius: 14px; padding: 0.9rem 1.1rem; margin: 0 0 1.75rem; max-width: var(--measure); font-size: 0.95rem; }
.draft-note a { color: inherit; }

/* ---- the mark and the sill (the eight colours as a threshold line) ---- */
.mark { width: 1.3rem; height: auto; flex: none; }
.mark-lg { width: 2rem; }
.sill { display: flex; height: 6px; }
.sill i { flex: 1; background: var(--m); }

/* ---- header ---- */
.site-head { padding-block: 1.1rem; position: relative; z-index: 2; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); padding-block: 0.35rem; }
.word { font-family: var(--brand); font-weight: 500; font-size: 1.06rem; letter-spacing: 0.02em; }
.nav { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 0.5rem; display: inline-block; transition: color 0.3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .wide { display: none; }
.head-right { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.6rem); }

/* pause motion (WCAG 2.2.2): JS only, and pointless under reduced motion (nothing moves there) */
.motion {
  display: none; align-items: center; gap: 0.5rem; font: inherit; font-size: 0.82rem; font-weight: 500; color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem 0.4rem 0.65rem; cursor: pointer;
  min-height: 2rem; transition: color 0.3s, border-color 0.3s;
}
.js .motion { display: inline-flex; }
.motion:hover { color: var(--ink); border-color: var(--muted); }
.motion-icon { width: 0.6rem; height: 0.7rem; flex: none; border-left: 0.2rem solid currentColor; border-right: 0.2rem solid currentColor; }
.motion[aria-pressed="true"] { color: var(--ink); }
.motion[aria-pressed="true"] .motion-icon { border: 0; border-left: 0.6rem solid currentColor; border-top: 0.35rem solid transparent; border-bottom: 0.35rem solid transparent; width: 0; height: 0; }
.motion-head { padding: 0; width: 2rem; height: 2rem; justify-content: center; }
.motion-head .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 760px) {
  .motion-head { width: auto; height: auto; padding: 0.4rem 0.8rem 0.4rem 0.65rem; }
  .motion-head .motion-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
.foot-motion { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .js .motion, .foot-motion { display: none; } }
.motion-paused .playhead i { animation: none; opacity: 0; }

/* hero: one picture per traveller; boot.js sets html.trav-m before first paint */
.tv-m { display: none; }
.trav-m .tv-m { display: block; }
.trav-m .tv-f { display: none; }
@media (min-width: 760px) { .nav .wide { display: list-item; } }

/* ---- arch windows onto the worlds ---- */
.win, .arch {
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  aspect-ratio: 9 / 14; border-radius: 100vmax 100vmax 0 0;
  background: var(--deep, var(--surface));
}
.win img, .win video, .arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.win video { opacity: 0; transition: opacity 1.4s var(--ease); }
.win video.on { opacity: 1; }

/* ---- availability ---- */
.soon {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1.05rem 0.6rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in oklab, var(--surface) 70%, transparent);
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
}
.soon-mark {
  width: 0.8rem; height: 0.95rem; border-radius: 100vmax 100vmax 0 0; flex: none;
  background: linear-gradient(90deg, #D59484 0 12.5%, #E3A67E 0 25%, #DCBE62 0 37.5%, #96C29B 0 50%, #8FB6D0 0 62.5%, #9FA2D2 0 75%, #BFA1CE 0 87.5%, #A1AEBF 0);
}
.go { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; padding-block: 0.35rem; border-bottom: 1px solid color-mix(in oklab, var(--ink) 35%, transparent); }
.go::after { content: "\2192"; transition: transform 0.4s var(--ease); }
.go:hover::after { transform: translateX(4px); }
.go[href="#worlds"]::after { content: "\2193"; }
.go[href="#worlds"]:hover::after { transform: translateY(3px); }

/* ================= HERO ================= */
.hero { padding-block: 1rem 4.5rem; }
.hero-grid { display: grid; gap: 2rem; justify-items: center; text-align: center; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(3.3rem, 16vw, 5rem); line-height: 0.95; letter-spacing: -0.012em;
}
.hero h1 em { color: #F2A877; }
.hero-art { width: min(100%, 25rem, calc(60svh * 9 / 14.5)); }
.hero-win { aspect-ratio: 9 / 14.5; }
.hero-sill { margin-top: 0; }
.hero-right { display: grid; gap: 1.1rem; justify-items: center; max-width: 30rem; }
.hero-right .lead { font-family: var(--serif); font-size: 1.65rem; line-height: 1.2; }
.hero-right p:not(.lead):not(.soon):not(.hero-cta) { color: var(--muted); }
.hero-cta { margin-top: 0.4rem; }

@media (min-width: 1000px) {
  .hero { padding-block: 0.5rem 6rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 4.5vw, 5rem);
    min-height: calc(100svh - 5.5rem); text-align: left; justify-items: stretch;
  }
  .hero-left { justify-self: end; text-align: right; }
  .hero h1 { font-size: clamp(4.4rem, 6.4vw, 7.4rem); line-height: 0.92; white-space: nowrap; }
  .hero h1 span:first-child { display: block; }
  .hero h1 em, .hero h1 em + span { white-space: nowrap; }
  .hero-art { width: clamp(20rem, calc((100svh - 9rem) * 0.62), 33rem); }
  .hero-right { justify-items: start; max-width: 25rem; }
  .hero-right .lead { font-size: clamp(1.7rem, 2.3vw, 2.2rem); }
}

/* entrance: calm, once */
@media (prefers-reduced-motion: no-preference) {
  .hero-win { animation: arrive 2.2s var(--ease) both; }
  .hero-sill i { animation: sill 1.2s var(--ease) both; transform-origin: 50% 100%; }
  .hero-sill i:nth-child(2) { animation-delay: 0.08s; } .hero-sill i:nth-child(3) { animation-delay: 0.16s; }
  .hero-sill i:nth-child(4) { animation-delay: 0.24s; } .hero-sill i:nth-child(5) { animation-delay: 0.32s; }
  .hero-sill i:nth-child(6) { animation-delay: 0.40s; } .hero-sill i:nth-child(7) { animation-delay: 0.48s; }
  .hero-sill i:nth-child(8) { animation-delay: 0.56s; }
  .hero-left, .hero-right { animation: rise 1.6s 0.3s var(--ease) both; }
  .hero-right { animation-delay: 0.55s; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes sill { from { transform: scaleY(0); } }

.statement { font-family: var(--serif); font-size: clamp(2.6rem, 10vw, 5.2rem); line-height: 1; max-width: 16ch; margin-inline: auto; letter-spacing: -0.01em; }

/* ================= WORLDS ================= */
.worlds { --deep: #4A1F1A; padding-block: 5rem 0; position: relative; }
.worlds-head { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.worlds-head h2 { font-family: var(--serif); font-size: clamp(2.3rem, 8.6vw, 4.4rem); line-height: 1; max-width: 14ch; letter-spacing: -0.01em; }
.worlds-aside { display: grid; gap: 1.2rem; align-content: end; max-width: 26rem; }
.worlds-aside p { color: var(--muted); }

.trav { display: none; align-items: center; gap: 0.25rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 999px; justify-self: start; background: color-mix(in oklab, var(--night) 70%, transparent); }
.js .trav { display: inline-flex; }
.trav-stage { display: none; }
.trav-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 0 0.6rem 0 0.7rem; }
.trav button {
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 0.45rem 1rem; border-radius: 999px; transition: background-color 0.4s, color 0.4s; min-height: 2.25rem;
}
.trav button[aria-pressed="true"] { background: var(--ink); color: var(--night); }
.trav button:hover:not([aria-pressed="true"]) { color: var(--ink); }

.stage { display: none; }
.chapters { display: grid; }
.chapter {
  display: grid; gap: 1.6rem; padding: 2.5rem var(--gutter) 3.5rem; margin-inline: calc(-1 * var(--gutter));
  background: color-mix(in oklab, var(--deep) 66%, var(--night));
}
.chapter-win { width: min(100%, 24rem); justify-self: center; }
.chapter-text { display: grid; gap: 0.55rem; max-width: 34rem; }
.num { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.num span { color: var(--faint); }
.chapter h3 { font-family: var(--serif); font-size: clamp(3.6rem, 17vw, 5rem); line-height: 0.95; color: var(--accent); letter-spacing: -0.01em; }
.who { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.who span { color: var(--accent); }
.line { font-family: var(--serif); font-size: 1.6rem; line-height: 1.22; margin-top: 0.5rem; }
.scene { color: var(--muted); }

@media (min-width: 760px) {
  .worlds-head { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .chapter { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: center; gap: 3rem; padding-block: 3.5rem; }
}

/* Desktop with JS: one sticky arch, the ground takes each world's deep tone as you read. */
@media (min-width: 1000px) {
  .js .worlds { background: color-mix(in oklab, var(--deep) 62%, var(--night)); transition: background-color 1.4s var(--ease); padding-bottom: 4rem; }
  .js .worlds[data-active="stillness"] { --deep: #4A1F1A; }
  .js .worlds[data-active="flow"] { --deep: #4A2612; }
  .js .worlds[data-active="fire"] { --deep: #3A2E0C; }
  .js .worlds[data-active="openness"] { --deep: #1C3824; }
  .js .worlds[data-active="courage"] { --deep: #132D44; }
  .js .worlds[data-active="clarity"] { --deep: #1C2150; }
  .js .worlds[data-active="wonder"] { --deep: #2A1838; }
  .js .worlds[data-active="rest"] { --deep: #121A28; }
  .js .worlds-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 7vw, 8rem); }
  .js .stage {
    --h: min(78vh, 46rem);
    display: grid; justify-items: center; gap: 1.1rem;
    position: sticky; top: calc((100vh - var(--h)) / 2); height: var(--h); align-self: start;
  }
  .js .stage-frame { position: relative; height: calc(var(--h) - 6rem); aspect-ratio: 9 / 14; }
  .js .stage-win { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); background: transparent; }
  .js .stage-win.is-active { opacity: 1; }
  .js .stage-index { width: calc((var(--h) - 6rem) * 9 / 14); }
  .js .worlds-aside .trav { display: none; }
  .js .stage-controls { justify-self: center; }
  .js .trav-stage { display: inline-flex; }
  .js .stage-index ol { display: flex; list-style: none; margin: 0; padding: 0; height: 1.3rem; align-items: flex-end; }
  .js .stage-index li { flex: 1; }
  .js .stage-index a { display: flex; align-items: flex-end; height: 1.3rem; }
  .js .stage-index a::before { content: ""; display: block; width: 100%; height: 5px; background: var(--m); border-radius: 100vmax 100vmax 0 0; transition: height 0.6s var(--ease); }
  .js .stage-index li.is-active a::before { height: 1.3rem; }
  .js .stage-index a:hover::before { height: 0.8rem; }
  .js .chapter { background: none; margin: 0; padding: 0; grid-template-columns: 1fr; min-height: 84vh; align-content: center; }
  .js .chapter-win { display: none; }
  .js .chapter h3 { font-size: clamp(5rem, 8.4vw, 8.75rem); }
  .js .line { font-size: clamp(1.7rem, 2.2vw, 2.2rem); max-width: 22ch; }
  .js .chapter-text { gap: 0.8rem; }
  .js .chapter-text > * { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .js .worlds[data-active="stillness"] #w-stillness .chapter-text > *,
  .js .worlds[data-active="flow"] #w-flow .chapter-text > *,
  .js .worlds[data-active="fire"] #w-fire .chapter-text > *,
  .js .worlds[data-active="openness"] #w-openness .chapter-text > *,
  .js .worlds[data-active="courage"] #w-courage .chapter-text > *,
  .js .worlds[data-active="clarity"] #w-clarity .chapter-text > *,
  .js .worlds[data-active="wonder"] #w-wonder .chapter-text > *,
  .js .worlds[data-active="rest"] #w-rest .chapter-text > * { opacity: 1; transform: none; }
  .js .worlds.is-live .chapter-text > * { opacity: 0.22; transform: translateY(10px); }
}

/* ================= SESSION ================= */
.session { padding-block: 3rem 5.5rem; }
.session-head { text-align: center; margin-bottom: 2.6rem; }
.session-head p { max-width: 38rem; margin: 1.5rem auto 0; color: var(--muted); font-size: 1.1rem; }
.grow-text h2, .close-text h2 { font-family: var(--serif); font-size: clamp(2.6rem, 9.5vw, 5rem); line-height: 0.98; letter-spacing: -0.01em; }
.session h2 em { color: #E8C653; }

.score { margin: 0; padding: 1.3rem 0.85rem 1.2rem; background: var(--night-2); border: 1px solid var(--line); border-radius: 22px; }
.score-grid { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 0.6rem; row-gap: 0.35rem; position: relative; }
.phases { grid-column: 2; grid-row: 1; display: grid; margin-bottom: 0.4rem; } /* columns: generated from the real blocks (build.mjs) */
.phases span { border-left: 1px solid var(--line); padding-left: 0.25rem; font-size: 0.55rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); white-space: nowrap; line-height: 1.5; }
/* phone: two tiers, so each label may run over its narrow neighbour; the last one hangs to the left of the end */
.phases span:nth-child(even) { grid-row: 2; }
.phases span:nth-child(odd) { grid-row: 1; }
.phases span:last-child { border-left: 0; border-right: 1px solid var(--line); padding: 0 0.3rem 0 0; direction: rtl; text-align: right; }
.r2 { grid-row: 2; } .r3 { grid-row: 3; } .r4 { grid-row: 4; } .r5 { grid-row: 5; }
.lane-name { grid-column: 1; align-self: center; font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.lane-art { grid-column: 2; width: 100%; height: 3.2rem; border-radius: 8px; background: color-mix(in oklab, var(--ink) 3%, transparent); overflow: visible; }
.l-voice { stroke: var(--ink); stroke-width: 4px; stroke-linecap: round; fill: none; }
.l-breath { stroke: #86BCE0; stroke-width: 2.25px; fill: none; stroke-linejoin: round; }
.l-music { stroke: #E8C653; stroke-width: 1.5px; fill: none; stroke-linecap: round; }
.l-beat { stroke-opacity: 0.55; stroke-width: 1px; display: none; }
.l-soft { stroke-opacity: 0.45; }
.l-nature { fill: #8FCB9C; fill-opacity: 0.5; }
.playhead { grid-column: 2; grid-row: 2 / 6; position: relative; overflow: hidden; pointer-events: none; }
.playhead i { position: absolute; inset: -2px 0; border-right: 1.5px solid var(--ink); transform: translateX(-100%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .playhead i { opacity: 0.85; animation: play 32s linear infinite; }
}
@keyframes play { to { transform: translateX(0); } }
/* the player: once a session has been started or seeked, the playhead is the audio's position (site.js sets --pos) */
.score.has-pos .playhead i { animation: none; opacity: 1; border-right-width: 2px; transform: translateX(calc(var(--pos, 0) * 100% - 100%)); }
.score.is-playing .playhead i { border-right-color: #E8C653; }
.seek-zone { grid-column: 2; grid-row: 2 / 6; position: relative; z-index: 1; display: none; }
.js .seek-zone { display: block; cursor: pointer; touch-action: pan-y; border-radius: 8px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.seek-zone:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.score-bar { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.score-cap { flex: 1 1 12rem; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.cap-sep { display: none; }
.score-cap strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); display: block; line-height: 1.1; margin-bottom: 0.15rem; }
.score-error { flex-basis: 100%; font-size: 0.85rem; color: #E0907F; }
.score-error:empty { display: none; }
.score-time { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; display: none; }
.js .score-time { display: inline; }
.play {
  display: none; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: var(--night);
  place-items: center; transition: transform 0.3s var(--ease), background-color 0.3s;
}
.js .play { display: grid; }
@media (hover: hover) { .play:hover { background: #fff; transform: scale(1.04); } }
.play-icon { width: 0; height: 0; border-left: 0.9rem solid currentColor; border-top: 0.56rem solid transparent; border-bottom: 0.56rem solid transparent; margin-left: 0.2rem; }
.score.is-playing .play-icon { width: 0.8rem; height: 0.95rem; border: 0; border-left: 0.26rem solid currentColor; border-right: 0.26rem solid currentColor; margin: 0; }
.score.is-loading .play { animation: listen-wait 1.2s ease-in-out infinite; }
@keyframes listen-wait { 50% { transform: scale(0.94); } }
.score audio { width: 100%; margin-top: 1rem; }
.js .score audio { display: none; }
.score-notes { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }

.layers { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
.layer { border-top: 2px solid var(--c); padding-top: 1.1rem; display: grid; gap: 0.5rem; }
.layer h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.layer p { color: var(--muted); }
.l-voice.layer { --c: var(--ink); } .l-breath.layer { --c: #86BCE0; } .l-music.layer { --c: #E8C653; } .l-nature.layer { --c: #8FCB9C; }
@media (min-width: 760px) {
  .score { padding: 2rem 2rem 1.5rem; }
  .score-grid { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1.2rem; row-gap: 0.5rem; }
  .lane-art { height: 4rem; }
  .phases span { font-size: 0.7rem; padding-left: 0.5rem; letter-spacing: 0.1em; }
  .phases span:nth-child(even) { grid-row: 1; }
  .phases span:last-child { border-right: 0; border-left: 1px solid var(--line); padding: 0 0 0 0.5rem; direction: ltr; text-align: left; }
  .l-beat { display: inline; }
  .l-voice { stroke-width: 7px; }
  .score-bar { margin-bottom: 1.6rem; }
  .layers { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
}
@media (min-width: 1100px) {
  .layers { grid-template-columns: repeat(4, 1fr); }
}

/* ================= LANDSCAPE ================= */
.grow-sec { padding-block: 5rem; }
.grow-grid { display: grid; gap: 3rem; align-items: center; }
.grow-art { width: min(70%, 22rem); justify-self: center; }
.grow-text { display: grid; gap: 1.3rem; max-width: 36rem; }
.grow-text h2 em { color: #8FCB9C; }
.grow-text > p { color: var(--muted); font-size: 1.1rem; }
.landscape { width: 100%; height: auto; overflow: visible; }
.landscape .ghost { fill: var(--m); opacity: 0.07; }
.landscape .grow { fill: var(--m); transform-box: fill-box; transform-origin: 50% 100%; }
.landscape .ls-line { fill: none; stroke: color-mix(in oklab, var(--ink) 40%, transparent); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.js .landscape .grow { transition: transform 2.2s var(--ease); }
.js .landscape.pre .grow { transform: scaleY(0); }
.landscape .grow:nth-of-type(2) { transition-delay: 0.12s; } .landscape .grow:nth-of-type(3) { transition-delay: 0.24s; }
.landscape .grow:nth-of-type(4) { transition-delay: 0.36s; } .landscape .grow:nth-of-type(5) { transition-delay: 0.48s; }
.landscape .grow:nth-of-type(6) { transition-delay: 0.6s; } .landscape .grow:nth-of-type(7) { transition-delay: 0.72s; }
.landscape .grow:nth-of-type(8) { transition-delay: 0.84s; }
.extras { display: grid; gap: 1.25rem; margin: 0.8rem 0 0; }
.extras div { border-left: 2px solid var(--line); padding-left: 1.1rem; }
.extras dt { font-weight: 600; margin-bottom: 0.2rem; }
.extras dd { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .grow-sec { padding-block: 7rem; }
  .grow-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 8rem); }
  .grow-art { width: min(100%, 27rem); }
}

/* ================= WAITLIST FORM ================= */
.wl { display: grid; gap: 0.7rem; width: 100%; max-width: 28rem; text-align: left; }
.wl-t { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--ink); }
.wl-row {
  display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.35rem; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, transparent); transition: border-color 0.3s;
}
.wl-row:focus-within { border-color: var(--muted); }
.wl input[type="email"] {
  flex: 1 1 10rem; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0;
  padding: 0.55rem 0.4rem 0.55rem 0.9rem; border-radius: 999px; min-height: 2.75rem;
}
.wl input[type="email"]::placeholder { color: var(--faint); }
.wl input[type="email"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.wl button {
  flex: 0 0 auto; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--night); background: var(--ink); border: 0; cursor: pointer;
  padding: 0.65rem 1.2rem; border-radius: 999px; min-height: 2.75rem; transition: background-color 0.3s;
}
.wl button:hover { background: #fff; }
.wl-c { font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
.wl-c a { color: var(--ink); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 380px) { .wl-row { border-radius: 22px; } .wl button { flex: 1 1 100%; } }
.hero-right .wl { margin-top: 0.4rem; }
.hero-right .wl, .close-text .wl { text-align: center; justify-self: center; }
@media (min-width: 1000px) { .hero-right .wl { text-align: left; justify-self: start; } }
@media (min-width: 900px) { .close-text .wl { text-align: left; justify-self: start; } }
.hero-right .wl-c { max-width: 26rem; }
.close-text .wl { margin-top: 0.3rem; }

/* ================= CARE ================= */
.care { padding-block: 2rem 5rem; }
.panel-care h2 { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1.02; }
.care-body { display: grid; gap: 0.9rem; max-width: 40rem; }
@media (min-width: 900px) { .panel-care { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.75rem 1.5rem; display: grid; gap: 0.9rem; align-content: start; }
.panel h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.panel p { color: var(--muted); }
.panel p:has(> .go) { margin-top: 0.3rem; }
.panel .go { color: var(--ink); }
@media (min-width: 900px) { .panel { padding: 2.8rem 2.8rem 2.6rem; } }

/* ================= CLOSING ================= */
.closing { padding-block: 3rem 6rem; }
.close-grid { display: grid; gap: 2.5rem; justify-items: center; text-align: center; }
.close-art { width: min(80%, 20rem); }
.close-text { display: grid; gap: 1.2rem; justify-items: center; max-width: 34rem; }
.close-text h2 em { color: #C3A1DE; }
.close-text .note { color: var(--muted); }
@media (min-width: 900px) {
  .close-grid { grid-template-columns: minmax(0, 1fr) auto; text-align: left; justify-items: start; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
  .close-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: center; }
  .close-text { justify-items: start; order: -1; justify-self: start; }
  .close-text h2 { font-size: clamp(3.6rem, 6vw, 6rem); }
  .close-art { width: clamp(18rem, 26vw, 24rem); }
}

/* ---- reveals (site.js adds .pre only to what starts below the fold) ---- */
.reveal { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(16px); }

/* ================= FOOTER ================= */
.site-foot { padding-block: 0 3rem; font-size: 0.95rem; color: var(--muted); background: var(--night); }
.foot-sill { margin-bottom: 3rem; height: 4px; }
.site-foot .cols { display: grid; gap: 2rem; }
.site-foot h2 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.8rem; font-family: var(--sans); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.site-foot ul a { display: inline-block; padding-block: 0.2rem; }
.foot-brand { display: grid; gap: 0.6rem; max-width: 24rem; }
.foot-word { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.foot-word .word { font-size: 1.35rem; }
.site-foot .tag { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.site-foot .fine { grid-column: 1 / -1; font-size: 0.84rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 0.5rem; }
.site-foot .fine a { color: var(--muted); }
@media (min-width: 760px) { .site-foot .cols { grid-template-columns: 1.6fr 1fr 1fr; } }

/* waitlist status pages */
.note-page { max-width: 760px; padding-block: 3rem 6rem; }
.note-sill { width: 6rem; margin-bottom: 2.2rem; }
.note-page h1 em { color: #F2A877; }
.note-page .prose { margin-bottom: 1.6rem; }
.wl-confirm { margin-bottom: 1.2rem; }
.wl-confirm button { justify-self: start; padding-inline: 1.6rem; }
.note-page .prose h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin-top: 2.2rem; }

/* ================= DOCUMENT PAGES (support, safety, privacy, terms) ================= */
.doc { padding-block: 2rem 5rem; max-width: 980px; }
.doc > h1, .safety-hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 10vw, 4.8rem); line-height: 1; max-width: 16ch; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.doc .sub { color: var(--muted); margin: 0 0 2.25rem; max-width: var(--measure); font-size: 1.12rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin: 3rem 0 0.9rem; font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.1; scroll-margin-top: 1rem; }
.prose h3 { margin: 1.9rem 0 0.5rem; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.prose p { margin: 0 0 1rem; color: color-mix(in oklab, var(--ink) 88%, var(--muted)); }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h3 + p, .prose h3 + ul { margin-top: 0; }
.prose a { overflow-wrap: anywhere; }
.prose blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--line); }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.toc a { display: inline-block; padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.95rem; }
.toc a:hover { border-color: var(--muted); }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #E0907F; border-radius: 16px; padding: 1.1rem 1.25rem; margin: 0 0 2.25rem; max-width: var(--measure); }
.callout h2 { font-weight: 600; font-size: 1rem; margin-bottom: 0.35rem; }
.callout p { color: var(--muted); }

.contacts { display: grid; gap: 0.75rem; margin: 0 0 2.5rem; padding: 0; list-style: none; max-width: var(--measure); }
.contacts li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0.85rem 1.1rem; display: grid; gap: 0.1rem; }
.contacts .for { font-size: 0.9rem; color: var(--muted); }
.contacts a { font-weight: 600; }

.notes { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 1rem; max-width: var(--measure); counter-reset: note; }
.notes li { counter-increment: note; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; margin: 0; }
.notes li::before { content: counter(note); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #E8C653; color: #3A2E0C; font-family: var(--serif); font-size: 1.3rem; }
.notes strong { display: block; font-size: 1.05rem; margin-bottom: 0.15rem; }
.notes span { display: block; color: var(--muted); }

.safety-hero { display: grid; gap: 2rem; align-items: end; margin-bottom: 1rem; }
.safety-hero .eyebrow { margin-bottom: 1rem; }
.safety-hero .arch { width: min(60%, 13rem); }
@media (min-width: 720px) { .safety-hero { grid-template-columns: 1fr 13rem; } .safety-hero .arch { width: 100%; } }

.lost { text-align: center; padding-block: 3rem 6rem; display: grid; justify-items: center; gap: 1.25rem; }
.lost .arch { width: min(70%, 15rem); }
.lost h1 { font-family: var(--serif); font-size: clamp(2.8rem, 10vw, 4.4rem); line-height: 1; }
.lost p { max-width: 28rem; color: var(--muted); }
.btn { display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px; background: var(--ink); color: var(--night); font-weight: 600; text-decoration: none; }
.btn:hover { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

@media print {
  .site-head, .site-foot, .draft-banner, .toc, .stage, .win video { display: none; }
  body { background: #fff; color: #000; }
}

/* generated by build.mjs from web/data/score-clarity-drive.json: the score header follows the real blocks */
.phases { grid-template-columns: minmax(0, 33fr) minmax(0, 36fr) minmax(0, 30fr) minmax(0, 42fr) minmax(0, 60fr) minmax(0, 60fr) minmax(0, 24fr); }
.phases span:nth-child(1) { grid-column: 1; }
.phases span:nth-child(2) { grid-column: 2; }
.phases span:nth-child(3) { grid-column: 3; }
.phases span:nth-child(4) { grid-column: 4; }
.phases span:nth-child(5) { grid-column: 5; }
.phases span:nth-child(6) { grid-column: 6; }
.phases span:nth-child(7) { grid-column: 7; }
