/* Breathe — design system v3
   Tokens → base → layout → components → practice dialog → motion/responsive. No remote assets. */
:root {
  color-scheme: light;
  --paper: #f3f6f2; --paper-2: #e8efe9; --surface: #fbfdfb; --sunken: #dde8e1;
  --ink: #14302a; --ink-2: #34504a; --muted: #4f665c; --faint: #566a60;
  --line: rgba(20,48,42,.14); --line-strong: rgba(20,48,42,.28);
  --action: #1d6255; --action-hover: #154a40; --action-ink: #f4fbf7;
  --inhale: #4b9a93; --hold: #cf9a6c; --exhale: #1d6255;
  --stage: #dfece5; --ring: rgba(20,48,42,.22);
  --heart: #a8484f;
  --radius: 14px; --radius-sm: 8px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --wrap: min(1240px, calc(100% - 80px));
  --nav-h: 68px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1e1b; --paper-2: #14272a; --surface: #182c27; --sunken: #1e3832;
  --ink: #e8f2ed; --ink-2: #c6d8cf; --muted: #a1b9ae; --faint: #8aa498;
  --line: rgba(226,243,234,.13); --line-strong: rgba(226,243,234,.28);
  --action: #9bcdbb; --action-hover: #b4decd; --action-ink: #0f241e;
  --inhale: #6fb8ae; --hold: #d9a578; --exhale: #9bcdbb;
  --stage: #173129; --ring: rgba(226,243,234,.24);
  --heart: #e08a92;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; letter-spacing: -.015em; }
p { text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--action) 70%, transparent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 99; padding: 10px 14px; background: var(--action); color: var(--action-ink); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); background: var(--action); color: var(--action-ink); font-weight: 600; font-size: 15px; transition: background-color .16s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; background: transparent; color: var(--ink-2); border-color: var(--line-strong); min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 999px; font-weight: 500; }
.btn-quiet .icon { width: 16px; height: 16px; }
.btn-quiet[aria-pressed="true"] { color: var(--action); border-color: var(--action); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-grid; place-items: center; transition: background-color .16s ease, transform .16s var(--ease-out); }
.icon-btn:active { transform: scale(.95); }
.btn:disabled, .btn-quiet:disabled { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--action-hover); }
  .btn-quiet:hover, .icon-btn:hover { background: var(--paper-2); }
}

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-inner { width: var(--wrap); height: var(--nav-h); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; min-height: 44px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-radius: var(--radius-sm); }
.menu-toggle { display: none; margin-left: auto; }
@media (hover: hover) { .nav-links a:hover { color: var(--action); background: var(--paper-2); } }

/* Hero */
.hero { width: var(--wrap); margin-inline: auto; min-height: min(calc(100svh - var(--nav-h)), 860px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 16px 0 56px; }
.hero-copy { max-width: 520px; }
.kicker { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.5rem); line-height: 1.04; margin: 0 0 22px; min-height: 3.12em; }
.hero-lede { color: var(--ink-2); font-size: 18px; max-width: 440px; margin: 0 0 30px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.intro-controls { display: none; flex-wrap: wrap; gap: 8px; }
.intro-controls.visible { display: flex; }
.intro-progress { display: none; width: min(100%, 320px); margin-top: 22px; }
.intro-progress.visible { display: block; }
.progress-track { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-value { height: 100%; width: 0; background: var(--action); }
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 44px; color: var(--muted); font-size: 14px; font-weight: 500; }
.scroll-cue .icon { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
@media (hover: hover) { .scroll-cue:hover { color: var(--action); } .scroll-cue:hover .icon { transform: translateY(3px); } }

/* Guide: orb, rings, readout, trace (shared by hero + practice) */
.guide { --d: min(46vh, 34vw, 440px); display: grid; justify-items: center; align-content: center; gap: 22px; text-align: center; min-width: 0; }
.orb { position: relative; width: var(--d); aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; left: 50%; top: 50%; translate: -50% -50%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ring); }
.ring-in { width: calc(var(--d) * .857); }
.ring-out { width: calc(var(--d) * .7); border-style: dashed; }
.orb-body { width: 100%; --breath: .5; transform: scale(calc(.9 + .2 * var(--breath))); transition: transform .9s var(--ease-out); will-change: transform; }
.guide[data-live="true"] .orb-body { transition: none; }
.orb-body svg { width: 100%; height: auto; overflow: visible; }
.readout strong { display: block; font: 400 clamp(24px, 2.4vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; }
.readout span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.trace { width: min(400px, 88%); height: auto; overflow: visible; }
.trace path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trace .t-inhale { stroke: var(--inhale); } .trace .t-hold { stroke: var(--hold); } .trace .t-exhale { stroke: var(--exhale); } .trace .t-rest { stroke: var(--faint); stroke-dasharray: 2 5; }
.trace .t-seg { opacity: .42; }
.trace .t-done { stroke: var(--ink); opacity: .9; }
.trace .t-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.orb-caption { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.hero-art { padding: 0 0 8px; }

/* Sections */
.section { padding: 104px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-head h2, .help-heading h2, .note-layout h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.06; margin: 0; max-width: 620px; }
.section-head p { color: var(--muted); max-width: 360px; margin: 0; }
.tinted { background: var(--paper-2); }

/* Intentions: hairline index, no cards */
.intent-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.intent { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); transition: background-color .16s ease; }
.intent:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.intent-trace { width: 100%; max-width: 180px; height: 44px; margin-bottom: 14px; }
.intent-trace path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke: var(--exhale); }
.intent-trace .t-inhale { stroke: var(--inhale); } .intent-trace .t-hold { stroke: var(--hold); } .intent-trace .t-rest { stroke: var(--faint); stroke-dasharray: 2 5; }
.intent h3 { font-size: 26px; line-height: 1.1; margin: 0; }
.intent p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 280px; }
.intent .count { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.intent .name { color: var(--muted); font-size: 14px; }
@media (hover: hover) { .intent:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); } .intent:hover h3 { color: var(--action); } }

/* Library */
.library-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
.filter-rail { position: sticky; top: calc(var(--nav-h) + 20px); }
.filter-rail h3 { font: 600 14px/1 var(--sans); color: var(--muted); margin: 0 0 12px; letter-spacing: 0; }
.filter-list { display: grid; gap: 2px; }
.filter-divider { height: 1px; background: var(--line); margin: 8px 0; }
.filter-btn { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; font-size: 15px; color: var(--ink-2); transition: background-color .16s ease; }
.filter-btn[aria-pressed="true"] { background: var(--paper-2); color: var(--action); font-weight: 600; box-shadow: inset 3px 0 0 var(--action); }
.filter-btn .n { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .filter-btn:hover { background: var(--paper-2); } }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search-box { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.search-box:focus-within { border-color: var(--action); outline: 3px solid color-mix(in srgb, var(--action) 30%, transparent); }
.search-box .icon { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-box input::placeholder { color: var(--faint); }
.result-count { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exercise-list { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .8fr) 92px auto auto; align-items: center; gap: 8px 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.row-name { font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; margin: 0 0 2px; }
.row-desc { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.row-use { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.row-shape { display: grid; gap: 4px; justify-items: start; }
.row-shape svg { width: 104px; height: 28px; overflow: visible; }
.row-shape path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.row-shape .t-inhale { stroke: var(--inhale); } .row-shape .t-hold { stroke: var(--hold); } .row-shape .t-exhale { stroke: var(--exhale); } .row-shape .t-rest { stroke: var(--faint); stroke-dasharray: 2 5; }
.row-pattern { font-size: 13px; color: var(--muted); }
.row-tag { font-size: 13px; color: var(--muted); }
.fav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--muted); transition: background-color .16s ease, color .16s ease, transform .16s var(--ease-out); }
.fav:active { transform: scale(.92); }
.fav[aria-pressed="true"] { color: var(--heart); border-color: color-mix(in srgb, var(--heart) 50%, var(--line)); }
@media (hover: hover) { .fav:hover { color: var(--heart); background: color-mix(in srgb, var(--heart) 8%, transparent); } }
.row-open { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--action); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color .16s ease, transform .16s var(--ease-out); }
.row-open:active { transform: scale(.97); }
@media (hover: hover) { .row-open:hover { background: var(--paper-2); border-color: var(--action); } }
.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 22px; }
.data-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.data-tools div { display: flex; gap: 8px; flex-wrap: wrap; }

/* Note, help, footer */
.note-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; padding: 72px 0; }
.note-copy { max-width: 660px; color: var(--ink-2); } .note-copy p:last-child { margin: 0; }
.help-section { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 100px); padding: 96px 0; }
.help-heading p { color: var(--muted); max-width: 380px; margin: 14px 0 0; }
.help-list { border-top: 1px solid var(--line-strong); }
.help-list details { border-bottom: 1px solid var(--line); }
.help-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 14px 2px; font-weight: 600; }
.help-list summary::-webkit-details-marker { display: none; }
.help-list summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--action); }
.help-list details[open] summary::after { content: "\2212"; }
.help-list details p { max-width: 640px; margin: 0 28px 20px 2px; color: var(--muted); font-size: 15px; }
.closing { border-top: 1px solid var(--line); padding: 64px 0 36px; }
.closing-inner { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); line-height: 1; margin: 0 0 12px; }
.closing p { margin: 0; color: var(--muted); max-width: 400px; }
.closing-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: 14px; color: var(--muted); }
.closing-links a { min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .closing-links a:hover { color: var(--action); } }
.legal-line { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; color: var(--faint); font-size: 13px; }

/* Practice dialog */
.practice { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.practice::backdrop { background: var(--paper); }
.practice[open] { animation: screen-in .28s var(--ease-out) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.practice-top { width: min(1240px, calc(100% - 64px)); height: 72px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 0; }
.practice-grid { width: min(1160px, calc(100% - 64px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "head stage" "body stage"; grid-template-rows: auto 1fr; column-gap: 56px; padding: 12px 0 64px; align-items: start; }
.practice-head { grid-area: head; }
.practice-body { grid-area: body; max-width: 440px; }
.practice-category { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.practice-head h2 { font-size: clamp(2.4rem, 1.4rem + 3vw, 3.8rem); line-height: 1.02; margin: 0 0 14px; }
.practice-head > p { color: var(--ink-2); margin: 0 0 18px; max-width: 440px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { font-size: 13px; padding: 6px 11px; color: var(--ink-2); background: var(--sunken); border-radius: 999px; }
.block { border-top: 1px solid var(--line-strong); padding: 16px 0; }
.block h3 { font: 600 14px/1 var(--sans); color: var(--muted); margin: 0 0 10px; letter-spacing: 0; }
.block p { margin: 0; color: var(--ink-2); font-size: 15px; }
.pattern-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.pattern-step { background: var(--sunken); border-left: 3px solid var(--inhale); border-radius: 4px 8px 8px 4px; padding: 7px 11px; font-size: 14px; }
.pattern-step[data-type="hold"] { border-left-color: var(--hold); } .pattern-step[data-type="exhale"] { border-left-color: var(--exhale); } .pattern-step[data-type="rest"] { border-left-color: var(--faint); }
.pattern-step small { display: block; color: var(--muted); font-size: 13px; }
.caution { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.field { display: grid; gap: 6px; margin: 4px 0 0; max-width: 360px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.select { min-height: 46px; width: 100%; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background-color: var(--surface); color: var(--ink); }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 14px; }
.check { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--action); }
.options .note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.stage { grid-area: stage; position: relative; min-height: 600px; border-radius: 28px; background: var(--stage); display: grid; overflow: hidden; --d: min(52vh, 36vw, 400px); }
.stage .guide { padding: 64px 24px 128px; }
.session-top { position: absolute; z-index: 2; top: 24px; left: 28px; right: 28px; display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stage-bottom { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 24px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.stage-active, .stage-ready { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.stage-active { display: none; }
.stage[data-state="active"] .stage-active, .stage[data-state="paused"] .stage-active { display: flex; }
.stage[data-state="active"] .stage-ready, .stage[data-state="paused"] .stage-ready, .stage[data-state="complete"] .stage-ready, .stage[data-state="complete"] .stage-active { display: none; }
.stage .icon-btn { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.stage .icon-btn.main { width: 52px; height: 52px; background: var(--action); color: var(--action-ink); border-color: transparent; }
.stage .btn-quiet { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.duration { min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background-color: var(--surface); color: var(--ink); font-size: 14px; }
.done { display: none; position: absolute; z-index: 5; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 28px; text-align: center; background: color-mix(in srgb, var(--stage) 94%, transparent); }
.stage[data-state="complete"] .done { display: flex; }
.done h3 { font-size: 34px; margin: 0 0 6px; } .done p { color: var(--muted); max-width: 330px; margin: 0 0 20px; }
.done .row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stage:fullscreen { border-radius: 0; min-height: 100%; --d: min(56vh, 56vw, 520px); }
.stage:-webkit-full-screen { border-radius: 0; min-height: 100%; --d: min(56vh, 56vw, 520px); }

/* Responsive */
@media (max-width: 1050px) {
  :root { --wrap: min(100% - 52px, 920px); }
  .row { grid-template-columns: minmax(0, 1.4fr) minmax(110px, .8fr) auto auto; } .row-tag { display: none; }
  .practice-grid { column-gap: 32px; }
}
@media (max-width: 900px) {
  .library-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .filter-rail { min-width: 0; }
  .filter-rail { position: static; }
  .filter-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .filter-divider { display: none; }
  .filter-btn { flex: none; border: 1px solid var(--line); border-radius: 999px; scroll-snap-align: start; }
  .filter-btn[aria-pressed="true"] { box-shadow: none; border-color: var(--action); }
  .filter-btn .n { display: none; }
}
@media (max-width: 760px) {
  :root { --wrap: calc(100% - 40px); --nav-h: 60px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--paper); border-bottom: 1px solid var(--line); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0; min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .topbar-inner { gap: 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 8px; padding: 12px 0 64px; }
  .hero h1 { min-height: 0; font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-lede { font-size: 17px; }
  .scroll-cue { margin-top: 20px; }
  .guide { --d: min(72vw, 360px); }
  .section { padding: 72px 0; }
  .section-head { display: block; margin-bottom: 28px; } .section-head p { margin-top: 14px; }
  .intent-grid { grid-template-columns: 1fr; }
  .intent, .intent:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
  .intent-trace { height: 38px; margin-bottom: 8px; }
  .row { grid-template-columns: minmax(0, 1fr) auto auto; padding: 16px 0; }
  .row-shape { grid-column: 1; grid-row: 2; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .row-open { grid-column: 3; grid-row: 1 / span 2; padding: 0 12px; }
  .fav { grid-column: 2; grid-row: 1 / span 2; }
  .note-layout { grid-template-columns: 1fr; gap: 18px; padding: 56px 0; }
  .help-section { grid-template-columns: 1fr; gap: 24px; padding: 64px 0; }
  .practice-top { width: calc(100% - 40px); height: 60px; }
  .practice-grid { width: calc(100% - 40px); grid-template-columns: 1fr; grid-template-areas: "head" "stage" "body"; row-gap: 20px; padding-bottom: 48px; }
  .practice-head h2 { font-size: 2.6rem; } .practice-head > p { margin-bottom: 12px; } .meta-chips { margin-bottom: 0; }
  .practice-body { max-width: none; }
  .stage { min-height: 520px; border-radius: 22px; --d: min(64vw, 300px); }
  .stage .guide { padding: 56px 16px 148px; }
  .session-top { top: 18px; left: 18px; right: 18px; }
}
@media (max-width: 420px) { .search-row { flex-wrap: wrap; } .result-count { order: 3; } .hero-facts { gap: 4px 16px; } }
@media (max-height: 560px) and (orientation: landscape) { .hero { min-height: auto; } .guide { --d: 52vh; } }

/* Entrance: one orchestrated moment on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; } .hero-copy > :nth-child(3) { animation-delay: .14s; } .hero-copy > :nth-child(4) { animation-delay: .21s; } .hero-copy > :nth-child(n+5) { animation-delay: .28s; }
  .hero-art .orb { animation: orb-in 1.1s var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes orb-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
}
/* Reduced motion: keep the breathing cue (it is the content) at a gentler amplitude; drop everything decorative. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .orb-body { transform: scale(calc(.96 + .08 * var(--breath))); }
}
@media (forced-colors: active) { .btn, .row-open, .filter-btn[aria-pressed="true"] { border: 1px solid CanvasText; } }
