/* Doors of Therapy · site styles
   Built on the Doors of Harmony site system (Figtree + JetBrains Mono, split headers,
   pill controls, 1200 px column with guide lines). Copied, not imported: this repo stands alone.
   Therapy layer: a black and white frame. Colour lives only inside the thin-film panels and photos. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2-variations"), url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbmono.woff2") format("woff2-variations"), url("/fonts/jbmono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --font: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section: clamp(88px, 10vw, 152px);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --r-sm: 6px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* dark (default): pure black, no hue anywhere outside panels and photos */
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-2: #121212;
  --line: #2c2c2c;
  --line-soft: #1c1c1c;
  --line-strong: #3a3a3a;
  --text: #f5f5f5;
  --text-2: #c8c8c8;
  --muted: #a3a3a3;
  --faint: #8f8f8f;
  --solid-bg: #f5f5f5;
  --solid-fg: #000000;
  --guide: rgb(245 245 245 / 0.06);
  --focus: #f5f5f5;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafafa;
  --panel: #f0f0f0;
  --panel-2: #e8e8e8;
  --line: #d4d4d4;
  --line-soft: #e6e6e6;
  --line-strong: #bdbdbd;
  --text: #0a0a0a;
  --text-2: #2e2e2e;
  --muted: #555555;
  --faint: #666666;
  --solid-bg: #0a0a0a;
  --solid-fg: #fafafa;
  --guide: rgb(10 10 10 / 0.07);
  --focus: #0a0a0a;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafafa;
    --panel: #f0f0f0;
    --panel-2: #e8e8e8;
    --line: #d4d4d4;
    --line-soft: #e6e6e6;
    --line-strong: #bdbdbd;
    --text: #0a0a0a;
    --text-2: #2e2e2e;
    --muted: #555555;
    --faint: #666666;
    --solid-bg: #0a0a0a;
    --solid-fg: #fafafa;
    --guide: rgb(10 10 10 / 0.07);
    --focus: #0a0a0a;
    color-scheme: light;
  }
}

/* Dark islands: film panels, photos and app screens stay dark in both themes, like the app itself. */
.island {
  --text: #f5f5f5; --text-2: #c8c8c8; --muted: #a3a3a3; --faint: #8f8f8f;
  --line: #2c2c2c; --line-strong: #3a3a3a; --panel: #0a0a0a; --bg: #000;
  color: var(--text);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overscroll-behavior: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior: none; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: normal; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 0.8em; letter-spacing: 0; }
.caps { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.skip { min-height: 44px; display: inline-flex; align-items: center; position: absolute; left: var(--space-md); top: -100px; z-index: 100; background: var(--solid-bg); color: var(--solid-fg); padding: var(--space-xs) var(--space-md); border-radius: 99px; text-decoration: none; }
.skip:focus { top: var(--space-md); }

/* page column with guide lines (as on doorsofharmony.com) */
.wrap { position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; }
main::before, main::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--guide); pointer-events: none; }
main::before { left: max(8px, calc(50% - var(--maxw) / 2)); }
main::after { right: max(8px, calc(50% - var(--maxw) / 2)); }

/* ---------- type ---------- */
.h1 { font-weight: 300; font-size: clamp(2.7rem, 1.4rem + 4.8vw, 5.4rem); line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-weight: 300; font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.5rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.h2--xl { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.4rem); }
.h3 { font-weight: 500; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.6; color: var(--muted); max-width: 52ch; }
.chip-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; margin-bottom: var(--space-lg); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip-label .dot { background: var(--text); }

/* ---------- quiet controls ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font-weight: 400; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.pill:hover { border-color: var(--text); }
.pill .arr { transition: transform .25s var(--ease); }
.pill:hover .arr { transform: translateX(3px); }
.textlink { color: var(--muted); text-decoration: none; font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.textlink:hover { color: var(--text); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; gap: var(--space-xl); min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; min-height: 44px; }
.wordmark svg, .wordmark img { width: 26px; height: 26px; flex: none; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; padding: 10px 12px; border-radius: 99px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.nav__parent { font-size: 0.875rem; }
.theme { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.theme .fill { fill: currentColor; stroke: none; }

/* ---------- split header ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-xl) var(--space-3xl); align-items: end; }
.split__side { display: grid; gap: var(--space-lg); justify-items: start; }
.split--head { margin-bottom: var(--space-3xl); align-items: start; }
.split--head .split__side { max-width: 46ch; padding-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 96px); padding-bottom: var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.hero__copy { display: grid; justify-items: start; gap: var(--space-lg); }
.hero__copy .chip-label { margin-bottom: 0; }
.lede--hero { color: var(--text-2); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); }
.hero__note { color: var(--faint); font-size: 0.875rem; }

/* the thin-film window: the only colour in the hero */
.film { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid #2c2c2c; isolation: isolate; aspect-ratio: 984 / 968; }
.film video, .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__mark { position: absolute; left: 50%; top: 50%; width: 34%; height: auto; transform: translate(-50%, -50%); color: #f5f5f5; opacity: .92; z-index: 1; mix-blend-mode: normal; }
.film__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; color: #c8c8c8; background: linear-gradient(to top, rgb(0 0 0 / .66), transparent); }
.film__cap .caps { color: #c8c8c8; }

/* ---------- sections ---------- */
.section { padding-block: var(--section) 0; }

/* steps: hairline timeline with mono labels */
.steps { display: grid; position: relative; max-width: 880px; margin-left: auto; }
.steps::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.step { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 32px; padding-block: 22px; position: relative; }
.step::before { content: ""; position: absolute; left: 88px; top: 31px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); }
.step--end::before { background: var(--text); }
.step__n { color: var(--faint); padding-top: 5px; text-align: right; white-space: nowrap; }
.step p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.step__quote { display: inline-block; margin-top: 12px !important; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2) !important; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; }

/* ---------- app screens (always dark, demo content) ---------- */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: clamp(16px, 4vw, 56px); }
.phone { position: relative; border-radius: 34px; padding: 10px; background: #0a0a0a; border: 1px solid #2c2c2c; }
.phone__screen { position: relative; overflow: hidden; border-radius: 26px; background: #000; color: #f5f5f5; aspect-ratio: 390 / 760; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.screens__cap { text-align: center; color: var(--faint); font-size: 0.8125rem; margin-top: var(--space-lg); }

/* set screen */
.a-head { position: relative; height: 38%; flex: none; }
.a-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .4), rgb(0 0 0 / .55) 55%, #000); }
.a-top { position: absolute; z-index: 1; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; align-items: center; color: #c8c8c8; }
.a-top svg { width: 20px; height: 20px; }
.a-title { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 10px; display: flex; gap: 14px; align-items: flex-end; }
.a-cover { width: 74px; height: 74px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid rgb(255 255 255 / .12); }
.a-cover img { width: 100%; height: 100%; object-fit: cover; }
.a-title b { display: block; font-weight: 300; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.a-title .caps { color: #a3a3a3; font-size: 9.5px; display: block; margin-bottom: 6px; }
.a-meta { color: #8f8f8f; font-size: 11.5px; margin-top: 4px; }
.a-pills { display: flex; gap: 8px; padding: 10px 16px 6px; }
.a-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid #3a3a3a; border-radius: 99px; font-size: 12px; color: #c8c8c8; white-space: nowrap; }
.a-pill svg { width: 12px; height: 12px; }
.a-rows { flex: 1; padding: 4px 0 0; overflow: hidden; }
.a-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 16px; min-height: 48px; }
.a-thumb { width: 34px; height: 34px; border-radius: 3px; overflow: hidden; background: #121212; }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-row b { display: block; font-weight: 400; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-row em { display: block; color: #8f8f8f; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-row .mono { color: #8f8f8f; font-size: 10.5px; text-align: right; white-space: nowrap; }
.a-row.is-on b { font-weight: 600; }
.a-row.is-on .a-thumb { outline: 1px solid #f5f5f5; outline-offset: 1px; }
.a-join { display: flex; align-items: center; gap: 8px; padding: 0 16px 0 62px; color: #8f8f8f; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; height: 16px; }
.a-join::before { content: ""; width: 14px; height: 1px; background: #3a3a3a; }
.a-row--bridge .a-thumb { display: grid; place-items: center; background: #000; border: 1px dashed #3a3a3a; }
.a-row--bridge .a-thumb svg { width: 16px; height: 16px; color: #a3a3a3; }
.a-row--bridge b { color: #c8c8c8; }
.a-mini { flex: none; margin: 8px; border-radius: 8px; background: #0a0a0a; border: 1px solid #1c1c1c; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 10px; position: relative; }
.a-mini b { display: block; font-size: 12.5px; font-weight: 500; }
.a-mini em { display: block; color: #8f8f8f; font-size: 10.5px; }
.a-mini__prog { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: #2c2c2c; }
.a-mini__prog i { display: block; height: 100%; width: 38%; background: #f5f5f5; }
.ring { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #f5f5f5; display: grid; place-items: center; }
.ring svg { width: 12px; height: 12px; }

/* session screen: pure black, for a dark room */
.s-screen { justify-content: space-between; padding: 22px 22px 26px; }
.s-top { display: flex; justify-content: space-between; color: #8f8f8f; }
.s-mid { display: grid; gap: 14px; }
.s-phase { font-weight: 300; font-size: 34px; letter-spacing: -0.025em; line-height: 1; }
.s-time { display: flex; gap: 18px; color: #a3a3a3; font-family: var(--mono); font-size: 11px; }
.s-strip { display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr 1.6fr; gap: 4px; margin-top: 8px; }
.s-strip i { height: 2px; background: #2c2c2c; position: relative; }
.s-strip i.done { background: #8f8f8f; }
.s-strip--one { grid-template-columns: 1fr; }
.s-strip i.now { background: linear-gradient(to right, #f5f5f5 0 27%, #2c2c2c 0); }
.s-labels { display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr 1.6fr; gap: 4px; color: #7a7a7a; font-size: 9px; }
.s-song { color: #8f8f8f; font-size: 12px; }
.s-song b { color: #c8c8c8; font-weight: 400; }
.s-ctrl { display: grid; justify-items: center; gap: 12px; }
.s-soft { width: 92px; height: 92px; border-radius: 50%; border: 1px solid #f5f5f5; display: grid; place-items: center; position: relative; }
.s-soft::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid #2c2c2c; }
.s-soft::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid transparent; border-top-color: #f5f5f5; transform: rotate(40deg); }
.s-soft span { font-size: 12.5px; color: #f5f5f5; }
.s-hint { color: #8f8f8f; font-size: 9px; }
.s-row { display: flex; gap: 30px; color: #8f8f8f; }
.s-row svg { width: 18px; height: 18px; }

/* ---------- features: thin-film panels, colour only inside ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); }
.card { grid-column: span 2; border: 1px solid var(--line); border-radius: var(--r); padding: var(--space-lg); display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--bg); transition: border-color .3s; }
.card:hover { border-color: var(--line-strong); }
.card p { color: var(--muted); font-size: 0.9375rem; }
.card--big { grid-column: span 3; }
.card__art { position: relative; overflow: hidden; height: 220px; border-radius: 10px; margin-bottom: var(--space-md); background: #000; isolation: isolate; display: grid; place-items: center; }
.card--big .card__art { height: 280px; }
.card__art > img.film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.card__glyph { width: 100%; height: 132px; margin-bottom: var(--space-md); color: var(--text); }
.card__glyph svg { width: auto; height: 100%; }
.card .caps { color: var(--faint); }

/* overlays inside panels */
.u-float { position: relative; z-index: 1; width: min(86%, 320px); display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: rgb(0 0 0 / .72); color: #f5f5f5; border: 1px solid rgb(255 255 255 / .1); font-size: 0.875rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.u-float .caps { color: #a3a3a3; font-size: 0.625rem; }
.u-float b { font-weight: 500; }
.u-float--list span { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.u-float--list span:last-child { border: 0; }
.u-float--list b { white-space: nowrap; }
.u-float--list em { white-space: nowrap; color: #c8c8c8; font-family: var(--mono); font-size: 0.75rem; }
.wheel { height: 92%; width: auto; max-width: 92%; color: #f5f5f5; position: relative; z-index: 1; }
.wheel text { font-family: var(--mono); font-size: 9px; fill: #a3a3a3; text-anchor: middle; dominant-baseline: middle; }
.wheel .t-on { fill: #f5f5f5; }

/* ---------- photo band ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md); }
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: #000; isolation: isolate; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgb(0 0 0 / .82), rgb(0 0 0 / .45) 30%, transparent 60%); }
.ph figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1; color: #f5f5f5; display: grid; gap: 4px; }
.ph figcaption .caps { color: #a3a3a3; }
.ph figcaption b { font-weight: 300; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; }
@media (hover: hover) { .ph:hover img { transform: scale(1.025); } }
.ph--wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.ph--tall { grid-column: span 4; }

/* ---------- privacy list ---------- */
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-3xl); }
.plist li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-lg); padding-block: 18px; border-top: 1px solid var(--line); }
.plist .caps { color: var(--faint); padding-top: 5px; }
.plist p { color: var(--text-2); }

/* ---------- FAQ ---------- */
.split--faq { align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); font-size: 1.125rem; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; font-weight: 300; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 60ch; }

/* ---------- early access ---------- */
.access { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); border: 1px solid #2c2c2c; background: #000; min-height: 460px; display: grid; align-content: end; padding: clamp(24px, 5vw, 64px); }
.access > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.access::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #000 8%, rgb(0 0 0 / .55) 55%, rgb(0 0 0 / .35)); }
.access__copy { display: grid; gap: var(--space-lg); justify-items: start; max-width: 640px; }
.access__copy .chip-label { margin: 0; border-color: rgb(255 255 255 / .25); }
.access .lede { color: #c8c8c8; }
.access .pill { border-color: rgb(255 255 255 / .45); }
.access .pill:hover { border-color: #f5f5f5; background: rgb(255 255 255 / .06); }
.access__mail { color: #8f8f8f; font-size: 0.875rem; }
.access__mail a { color: #c8c8c8; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); margin-top: var(--section); padding-block: var(--space-3xl) calc(var(--space-xl) + env(safe-area-inset-bottom)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.foot__brand { display: grid; gap: var(--space-sm); align-content: start; }
.foot__brand p { color: var(--muted); font-size: 0.9375rem; max-width: 40ch; }
.foot nav { display: grid; align-content: start; }
.foot__h { font-size: 0.875rem; color: var(--faint); font-weight: 400; margin-bottom: 6px; }
.foot nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--muted); }
.foot__credits { margin-top: var(--space-2xl); color: var(--faint); font-size: 0.75rem; max-width: 90ch; }
.foot__credits a { color: var(--muted); }
.foot__bottom { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 0.8125rem; }
.foot__bottom a { color: var(--faint); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal]:not(.is-in) { animation: reveal-fallback 0s 3s forwards; }
}
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav__links { display: none; }
}
@media (max-width: 900px) {
  .hero__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .split--head { margin-bottom: var(--space-2xl); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card, .card--big { grid-column: auto; }
  .ph--wide, .ph--tall { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .screens { grid-template-columns: minmax(0, 320px); }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .steps::before { left: 6px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-left: 30px; }
  .step::before { left: 2px; top: 30px; }
  .step__n { text-align: left; padding-top: 0; }
  .plist li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .card__art, .card--big .card__art { height: 220px; }
  .foot__bottom { flex-direction: column; gap: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}

/* the fine-web cymatic mark, drawn in the current text colour */
.mark { display: inline-block; flex: none; width: 26px; height: 26px; background: currentColor; -webkit-mask: url("/img/mark.svg") center / contain no-repeat; mask: url("/img/mark.svg") center / contain no-repeat; }
.mark--fine { -webkit-mask-image: url("/img/mark-fine.svg"); mask-image: url("/img/mark-fine.svg"); width: 34%; height: auto; aspect-ratio: 1; }
.film .film__mark { width: 62%; }

/* ---------- 18 Nov: smaller hero headline ---------- */
.h1--hero { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.06; max-width: 18ch; }

/* ---------- music is medicine: cited voices ---------- */
.voices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); }
.voice { grid-column: span 2; border: 1px solid var(--line); border-radius: var(--r); padding: var(--space-lg); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.voice--wide { grid-column: span 3; }
.voice blockquote { margin: 0; font-weight: 300; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--text); }
.voice p { color: var(--muted); font-size: 0.9375rem; }
.voice__who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: grid; gap: 2px; font-size: 0.875rem; }
.voice__who b { font-weight: 500; }
.voice__who a { color: var(--muted); font-size: 0.8125rem; text-underline-offset: 3px; overflow-wrap: anywhere; }
.voice__who a:hover { color: var(--text); }
.voice .caps { color: var(--faint); }
.voices__note { color: var(--faint); font-size: 0.8125rem; margin-top: var(--space-lg); max-width: 70ch; }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.how__step { border: 1px solid var(--line); border-radius: var(--r); padding: var(--space-lg); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.how__step--wide { grid-column: 1 / -1; }
.how__step p:not(.caps) { color: var(--muted); font-size: 0.9375rem; max-width: 62ch; }
.how__n { color: var(--faint); margin-top: 4px; }
.how__art { position: relative; overflow: hidden; height: 240px; border-radius: 10px; margin-bottom: var(--space-md); background: #000; isolation: isolate; display: grid; place-items: center; }
.how__art > img.film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.how__art--arc { height: auto; min-height: 300px; padding: clamp(16px, 3vw, 32px); }
.wave { width: 100%; height: 34px; color: #c8c8c8; }
.tags, .ctrls { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i, .ctrls i { font-style: normal; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .04em; padding: 4px 9px; border: 1px solid rgb(255 255 255 / .18); border-radius: 99px; color: #e6e6e6; white-space: nowrap; }
.flow { display: flex; gap: 2px; height: 22px; align-items: center; }
.flow i { height: 10px; background: #e6e6e6; border-radius: 2px; }
.flow i.br { height: 4px; background: #8f8f8f; }
.flow i.tail { height: 4px; background: repeating-linear-gradient(to right, #8f8f8f 0 3px, transparent 3px 6px); }

.arcpanel { position: relative; z-index: 1; width: 100%; max-width: 860px; padding: 18px 20px 14px; border-radius: 12px; background: rgb(0 0 0 / .72); border: 1px solid rgb(255 255 255 / .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f5f5f5; display: grid; gap: 12px; }
.arcpanel__head { display: flex; gap: 14px; align-items: center; }
.arcpanel__head .caps { color: #a3a3a3; font-size: .625rem; display: block; }
.arcpanel__head b { font-weight: 400; font-size: 1.0625rem; }
.arcpanel__mol { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .16); border-radius: 8px; padding: 6px; }
.arcpanel__mol img { width: 100%; height: 100%; object-fit: contain; }
.arc { width: 100%; height: 130px; color: #f5f5f5; }
.arc .arc__line { vector-effect: non-scaling-stroke; }
.arcpanel__stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: #a3a3a3; }
.arcpanel__stages span { text-align: center; }

/* ---------- session arcs: medicine cards (colour only inside the panel) ---------- */
.arcs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-md); }
.arcard { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.arcard__art { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; isolation: isolate; display: grid; place-items: center; }
.arcard__art > img.film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.arcard__art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .6), transparent 45%); }
.arcard__name { position: absolute; left: 14px; bottom: 10px; font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; color: #f5f5f5; }
.arcard__body { padding: 14px 16px 18px; display: grid; gap: 10px; }
.arcard__body .caps { color: var(--faint); }
.arcard__curve { width: 100%; height: 44px; color: var(--text); }
.arcard__body p { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

/* demo cover with molecule on the set screen */
.a-cover--mol { position: relative; }
.a-cover--mol .a-cover__mol { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }

@media (max-width: 1060px) {
  .arcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .voices { grid-template-columns: minmax(0, 1fr); }
  .voice, .voice--wide { grid-column: auto; }
  .how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .arcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcard__name { font-size: 1.125rem; }
  .how__art { height: 220px; }
  .arcpanel { padding: 14px 12px 10px; }
  .arc { height: 96px; }
  .arcpanel__stages { font-size: .5625rem; letter-spacing: .04em; }
}

/* ---------- arc plots drawn from data (scripts/arc_curves.py) ---------- */
.arcplot { position: relative; padding-bottom: 16px; }
.arcplot__svg { width: 100%; height: 64px; color: var(--text); overflow: visible; }
.arcplot__line { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.arcplot__area { fill: currentColor; fill-opacity: .07; stroke: none; }
.arcplot__base { stroke: currentColor; stroke-opacity: .25; vector-effect: non-scaling-stroke; }
.arcplot__mark { stroke: currentColor; stroke-opacity: .28; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.arcplot__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; font-family: var(--mono); font-size: 9px; color: var(--faint); }
.arcplot__ticks span { position: absolute; transform: translateX(-50%); }
.arcplot__ticks span:first-child { transform: none; }
.arcplot__ticks span:nth-last-child(2) { transform: translateX(-100%); }
.arcplot__ticks em { display: none; }
.arcplot__marks, .arcard__body .arcplot__marks { font-family: var(--mono); font-size: 0.625rem; letter-spacing: .04em; color: var(--faint) !important; line-height: 1.5 !important; }
.arcpanel .arcplot__svg { height: 140px; color: #f5f5f5; }
.arcpanel .arcplot__ticks { font-size: 10px; color: #a3a3a3; }
.arcpanel p.arcplot__marks, .how__step .arcpanel p.arcplot__marks { color: #a3a3a3 !important; font-size: .6875rem; }
@media (max-width: 560px) { .arcpanel .arcplot__svg { height: 100px; } }
.arcs__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.arcs__legend span { display: inline-flex; align-items: center; gap: 8px; }
.arcs__legend i { display: inline-block; width: 22px; height: 10px; flex: none; }
.arcs__legend .lg-area { background: var(--text); opacity: .14; border-bottom: 1px solid var(--muted); }
.arcs__legend .lg-line { height: 1.6px; background: var(--text); }
