/* ==========================================================================
   Yoga in the North — app.css
   Base + components + page styles. Native document scroll:
   no overflow-x on html/body; overflow-x:clip lives on the .page wrapper only.
   Motion is additive and opt-in: content is visible with no JS.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;          /* no smooth-scroll hijack */
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t-3) var(--e-out), color var(--t-3) var(--e-out);
}

.page { overflow-x: clip; position: relative; }  /* clip on the wrapper; hidden on the root would trap scrolling */

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:where(input, select, textarea, button):focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
::selection { background: color-mix(in oklab, var(--clay) 26%, transparent); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
section { position: relative; }
.section { padding-block: clamp(3.4rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(2.4rem, 5vw, 4rem); }
.band { background: var(--surface); }
.band-2 { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.9rem;
}
.eyebrow.sage { color: var(--sage-deep); }
.title { font-size: var(--fs-h2); }
.title-3 { font-size: var(--fs-h3); }
.title em, .lead em, h1 em, h2 em, h3 em { font-style: italic; color: var(--clay); font-weight: 400; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.6; }
.prose { color: var(--ink-soft); }
.prose p { margin-bottom: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }
.max-60 { max-width: 60ch; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 500; font-size: .96rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; text-align: center;
  transition: transform var(--t-1) var(--e-out), background var(--t-2), color var(--t-2), border-color var(--t-2), box-shadow var(--t-2);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: var(--on-clay); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--clay-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn-quiet { color: var(--ink-soft); padding-inline: .5rem; }
.btn-quiet:hover { color: var(--clay); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform var(--t-2) var(--e-out); }
.btn:hover .arrow { transform: translateX(3px); }

.linklike { color: var(--clay); font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.linklike:hover { color: var(--clay-deep); }
.linklike .arrow { transition: transform var(--t-2) var(--e-out); }
.linklike:hover .arrow { transform: translateX(3px); }

/* ---------- pills / tags / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .34rem .7rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface);
}
.pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage); }
.pill.clay .dot { background: var(--clay); }
.pill.gold .dot { background: var(--gold); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 7px; border: 1px solid var(--line-soft);
  color: var(--muted); background: var(--surface-2);
}
.badge.live { color: var(--sage-deep); border-color: color-mix(in oklab, var(--sage) 40%, var(--line)); }
.badge.demo { color: var(--clay); border-color: color-mix(in oklab, var(--clay) 34%, var(--line)); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(1.3rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-1);
}
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.card h3, .card h4 { margin-bottom: .5rem; }
.kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: .6rem; }

/* value cards */
.value { padding-block: .2rem; }
.value h4 { font-size: var(--fs-h5); font-family: var(--sans); font-weight: 600; margin-bottom: .4rem; }
.value .num { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-bottom: .55rem; display: block; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-3), background var(--t-3);
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1; }
.brand .bt b { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .bt span { font-family: var(--mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a.navlink { padding: .5rem .7rem; border-radius: var(--radius-pill); color: var(--ink-soft); font-size: .93rem; transition: color var(--t-1), background var(--t-1); }
.nav a.navlink:hover, .nav a.navlink[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-cta { display: flex; align-items: center; gap: .55rem; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft);
  background: var(--surface); transition: border-color var(--t-2), color var(--t-2), transform var(--t-2);
}
.theme-toggle:hover { border-color: var(--clay); color: var(--clay); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.6px; background: var(--ink); transition: transform var(--t-2), opacity var(--t-2); }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 19px; } .burger span:nth-child(3) { top: 24px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: var(--paper);
  padding: calc(var(--header-h) + env(safe-area-inset-top)) clamp(1.15rem,5vw,2rem) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mm-close { position: absolute; top: 16px; right: clamp(1.15rem,5vw,2rem); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.3rem; color: var(--ink); }
.mobile-menu a { display: block; font-family: var(--serif); font-size: 1.75rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mobile-menu .mm-actions { margin-top: 1.6rem; display: grid; gap: .7rem; }

@media (max-width: 920px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .header-cta { gap: .4rem; }
}

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(2.6rem, 5vw, 4rem); }
.footer .grid-foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .footer .grid-foot { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer h5 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.footer a.fl { display: block; color: var(--ink-soft); padding: .28rem 0; font-size: .95rem; }
.footer a.fl:hover { color: var(--clay); }
.footer .foot-brand p { color: var(--muted); max-width: 42ch; margin-top: .8rem; }
.footer .foot-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.socials { display: flex; gap: .55rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: color var(--t-2), border-color var(--t-2); }
.socials a:hover { color: var(--clay); border-color: var(--clay); }

/* ---------- reveal (visible by default; JS opts in via html.reveal-ready) ---------- */
.reveal { opacity: 1; transform: none; }
html.reveal-ready.anim .reveal { opacity: 0; transform: translateY(18px); }
html.reveal-ready.anim .reveal.in { opacity: 1; transform: none; transition: opacity var(--t-4) var(--e-out), transform var(--t-4) var(--e-out); }
html.reveal-ready.anim .reveal.d1 { transition-delay: .08s; }
html.reveal-ready.anim .reveal.d2 { transition-delay: .16s; }
html.reveal-ready.anim .reveal.d3 { transition-delay: .24s; }
html.reveal-ready.anim .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html .reveal, html.reveal-ready.anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .breath-canvas { display: none !important; }
  .breath-fallback { display: block !important; }
  * { scroll-behavior: auto !important; }
}

/* ---------- hero + breath ---------- */
.hero { position: relative; padding-block: clamp(3.4rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--fs-display); letter-spacing: -0.02em; }
.hero .lead { margin-top: 1.3rem; max-width: 46ch; }
.hero .hero-actions { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
/* de-scoped from .hero: this pair also appears in the Supper section, where the
   .hero-prefixed rules never matched and the label ran into its value */
.hero-meta { margin-top: 2.1rem; display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); }
.hero-meta .hm b { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; display: block; }
.hero-meta .hm span { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }

.breath { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; }
.breath-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.breath-fallback { position: absolute; inset: 0; display: none; }
html:not(.anim) .breath-fallback { display: block; }
.breath .breath-word { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.breath .breath-word span { font-family: var(--mono); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.breath .breath-word b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.4rem; color: var(--ink-soft); display: block; margin-top: .3rem; transition: opacity var(--t-3); }

/* soft ambient glow behind hero */
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -8%; top: -12%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--gold) 30%, transparent), transparent 62%);
  opacity: .5; pointer-events: none;
}
:root[data-theme="dark"] .hero::before { opacity: .32; }

/* ---------- grain overlay ---------- */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .grain { mix-blend-mode: screen; }

/* ---------- schedule ---------- */
.schedule { display: grid; gap: 1rem; }
.slot {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.15rem 1.35rem; transition: border-color var(--t-2), transform var(--t-2), box-shadow var(--t-2);
}
.slot:hover { border-color: color-mix(in oklab, var(--clay) 40%, var(--line)); box-shadow: var(--shadow-1); }
.slot .day { font-family: var(--serif); font-size: 1.35rem; min-width: 5.5rem; }
.slot .day small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.slot .about h4 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; margin-bottom: .2rem; }
.slot .about p { color: var(--muted); font-size: .9rem; margin: 0; }
.slot .time { font-family: var(--mono); font-size: .92rem; color: var(--ink-soft); text-align: right; }
@media (max-width: 620px) {
  .slot { grid-template-columns: 1fr; gap: .55rem; }
  .slot .time { text-align: left; }
}

/* ---------- passes / pricing ---------- */
.passes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1000px) { .passes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .passes { grid-template-columns: 1fr; } }
.pass { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem 1.4rem; position: relative; transition: transform var(--t-2), box-shadow var(--t-2), border-color var(--t-2); }
.pass:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pass.featured { border-color: color-mix(in oklab, var(--clay) 55%, var(--line)); }
/* The label used to live in CSS content:, where no translation tool can see
   it and assistive tech reads it inconsistently. It is a real element now. */
.pass .pass-badge { position: absolute; top: -11px; left: 1.4rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; background: var(--clay); color: var(--on-clay); padding: .25rem .55rem; border-radius: 6px; }
.pass .pname { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .2rem; }
.pass .psub { color: var(--muted); font-size: .84rem; min-height: 2.4em; }
.pass .price { font-family: var(--serif); font-size: 2.1rem; margin: .8rem 0 .2rem; }
.pass .price small { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.pass .per { color: var(--muted); font-size: .82rem; margin-bottom: 1rem; }
.pass ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .5rem; }
.pass ul li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: .92rem; }
.pass ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.pass .btn { margin-top: auto; }

/* ---------- circle / tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.4rem; text-align: center; }
.tier .glyph { width: 46px; height: 46px; margin: 0 auto .8rem; color: var(--sage-deep); }
.tier h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .25rem; }
.tier .req { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.tier p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- visit / contact ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }
.visit .addr { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.visit .info-row { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.visit .info-row .ic { color: var(--clay); flex: none; margin-top: 2px; }
.visit .info-row b { display: block; font-size: .95rem; }
.visit .info-row span { color: var(--muted); font-size: .9rem; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9); }

/* ---------- callout / cta band ---------- */
.cta-band { background: linear-gradient(155deg, color-mix(in oklab, var(--clay) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(2rem, 5vw, 3.4rem); text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: .8rem; }
.cta-band .btn { margin-top: 1.4rem; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 1rem; }
.field > label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.input, .select, textarea.input {
  width: 100%; font-family: var(--sans); font-size: 16px; /* under 16px, iOS zooms the page on focus */
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: .8rem .9rem; line-height: 1.4;
  transition: border-color var(--t-2), box-shadow var(--t-2);
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in oklab, var(--clay) 18%, transparent); outline: none; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23877D6C' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.4rem; }
textarea.input { resize: vertical; min-height: 96px; }
.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--clay); flex: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); }
.err { color: var(--clay-deep); font-size: .82rem; margin-top: .35rem; }

/* ---------- booking stepper ---------- */
.stepper { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stepper .step { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--muted); }
.stepper .step .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .78rem; }
.stepper .step.active { color: var(--ink); }
.stepper .step.active .n { background: var(--clay); color: var(--on-clay); border-color: var(--clay); }
.stepper .step.done .n { background: var(--sage); color: var(--on-clay); border-color: var(--sage); }
.stepper .bar { flex: 1; min-width: 14px; height: 1px; background: var(--line); }

.book-grid { display: grid; grid-template-columns: 1.5fr .95fr; gap: clamp(1.5rem,4vw,2.5rem); align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.summary .srow { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .94rem; }
.summary .srow.total { border-bottom: 0; margin-top: .5rem; padding-top: .9rem; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; }
.summary .srow .lbl { color: var(--muted); }

.choice { display: grid; gap: .7rem; }
.choice label {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; transition: border-color var(--t-2), background var(--t-2);
}
.choice label:hover { border-color: color-mix(in oklab, var(--clay) 40%, var(--line)); }
.choice input { accent-color: var(--clay); width: 18px; height: 18px; flex: none; }
.choice label.sel { border-color: var(--clay); background: color-mix(in oklab, var(--clay) 7%, var(--surface)); }
.choice .c-main { flex: 1; }
.choice .c-main b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.choice .c-main span { color: var(--muted); font-size: .86rem; }
.choice .c-price { font-family: var(--serif); font-size: 1.2rem; }

.confirm-card { text-align: center; max-width: 560px; margin-inline: auto; }
.confirm-card .tick { width: 66px; height: 66px; margin: 0 auto 1.2rem; color: var(--sage); }
.confirm-card .ref { font-family: var(--mono); letter-spacing: .1em; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .5rem .8rem; display: inline-block; margin: .6rem 0 1.2rem; }

/* ---------- auth / gate ---------- */
.gate { max-width: 460px; margin-inline: auto; }
.tabs { display: flex; gap: .4rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .3rem; margin-bottom: 1.6rem; }
.tabs button { flex: 1; padding: .6rem; border-radius: var(--radius-pill); font-size: .9rem; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- portal / dashboard shell ---------- */
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.app-head .who { display: flex; align-items: center; gap: .9rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: color-mix(in oklab, var(--clay) 22%, var(--surface)); color: var(--clay-deep); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.25rem; flex: none; }
.avatar.sage { background: color-mix(in oklab, var(--sage) 24%, var(--surface)); color: var(--sage-deep); }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.stat .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 2rem; margin-top: .35rem; }
.stat .v small { font-family: var(--sans); font-size: .8rem; color: var(--muted); }

/* progress */
.progress { height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; margin: .6rem 0; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--gold)); border-radius: inherit; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
table.data th { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
.tag-s { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-soft); }
.tag-s.paid { color: var(--sage-deep); border-color: color-mix(in oklab, var(--sage) 40%, var(--line)); }
.tag-s.pending { color: var(--clay); border-color: color-mix(in oklab, var(--clay) 34%, var(--line)); }

.side-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; }
.side-tabs button { padding: .7rem .95rem; border-radius: var(--radius-s) var(--radius-s) 0 0; color: var(--muted); font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.side-tabs button.on { color: var(--ink); border-bottom-color: var(--clay); }

.panel { display: none; }
.panel.on { display: block; }

/* empty state */
.empty { text-align: center; padding: 2.6rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Yoga Buddy ---------- */
.ask-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 65;
  width: 56px; height: 56px; border-radius: 50%; background: var(--clay); color: var(--on-clay);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2);
  transition: transform var(--t-2); }
.ask-fab:hover { transform: scale(1.06); }
.ask-panel {
  position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 66;
  width: min(360px, calc(100vw - 36px));
  height: min(70dvh, 540px);
  max-height: 70vh; /* fallback above dvh line */
  max-height: 70dvh;
  display: none; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.ask-panel.open { display: flex; }
.ask-head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ask-head b { font-family: var(--serif); font-size: 1.05rem; }
.ask-head span { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; }
.ask-log { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.msg { max-width: 88%; padding: .65rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--line-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--clay); color: var(--on-clay); align-self: flex-end; border-bottom-right-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1.1rem 1rem; }
.chip { font-size: .8rem; padding: .4rem .7rem; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface); transition: border-color var(--t-2), color var(--t-2); }
.chip:hover { border-color: var(--clay); color: var(--clay); }
.ask-input { display: flex; gap: .5rem; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ask-input input { flex: 1; font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .6rem .9rem; background: var(--surface-2); color: var(--ink); }
.ask-input button { width: 40px; height: 40px; border-radius: 50%; background: var(--clay); color: var(--on-clay); flex: none; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 1rem 1.15rem; display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
  max-width: 640px; margin-inline: auto;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: .86rem; color: var(--ink-soft); flex: 1; min-width: 220px; }
.cookie .cbtns { display: flex; gap: .5rem; }

/* ---------- misc ---------- */
.hr-dot { display: flex; align-items: center; gap: 1rem; color: var(--muted); }
.hr-dot::before, .hr-dot::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { background: color-mix(in oklab, var(--gold) 12%, var(--surface)); border: 1px solid color-mix(in oklab, var(--gold) 34%, var(--line)); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .9rem; color: var(--ink-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.kv dt { color: var(--muted); font-size: .86rem; }
.kv dd { margin: 0; font-size: .94rem; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--clay); color: var(--on-clay); padding: .6rem 1rem; border-radius: 0 0 8px 8px; z-index: 100; transition: top var(--t-2); }
.skip-link:focus { top: 0; }

@media print { .header, .footer, .ask-fab, .ask-panel, .cookie, .grain, .breath-canvas { display: none !important; } }

/* ==========================================================================
   Media — photography and ambient video
   Motion is additive: loops only autoplay when the visitor has not
   asked for reduced motion; otherwise the poster frame stands in.
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media.portrait { aspect-ratio: 2 / 3; }
.media.landscape { aspect-ratio: 3 / 2; }

/* a soft warm veil so photography never fights the cream ground */
.media.veil::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(26,23,18,0) 45%, rgba(26,23,18,.30) 100%);
  pointer-events: none;
}
[data-theme="dark"] .media { border-color: rgba(245,238,223,.14); }
[data-theme="dark"] .media img,
[data-theme="dark"] .media video { filter: brightness(.92); }

.media figcaption,
.media-cap {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .7rem;
}

/* caption laid over the bottom of a veiled plate */
.media .overlay {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: .9rem;
  /* the veil is dark in both themes, so this stays a fixed light value
     rather than var(--paper), which flips to near-black in dusk mode */
  color: #EAF1F1;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
}

/* full-width ambient band */
.filmband { position: relative; overflow: hidden; }
.filmband .media { border-radius: 0; border-left: 0; border-right: 0; }
@media (max-width: 720px) {
  .media.landscape { aspect-ratio: 4 / 3; }
}

/* language switch — a plain link, styled to sit with the theme toggle */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-decoration: none;
  transition: color var(--t-1) var(--e-out), border-color var(--t-1) var(--e-out);
}
.lang-switch:hover { color: var(--clay); border-color: var(--clay); }
.lang-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 520px) { .lang-switch { min-width: 34px; height: 34px; font-size: .62rem; } }

/* first-visit language hint */
.lang-hint {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(140%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: calc(100vw - 2rem);
  padding: .7rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: .86rem;
  transition: transform .5s var(--e-out);
}
.lang-hint.show { transform: translateX(-50%) translateY(0); }
.lang-hint a { color: var(--clay); font-weight: 500; white-space: nowrap; }
.lang-hint button {
  border: 0; background: none; color: var(--muted);
  font-size: 1.1rem; line-height: 1; cursor: pointer; padding: .2rem;
}

/* attendance mode — segmented choice on booking step one */
.mode-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin: 1.2rem 0 .4rem;
}
.mode-opt {
  text-align: left;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t-1) var(--e-out), background var(--t-1) var(--e-out);
}
.mode-opt b { display: block; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); }
.mode-opt span { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; line-height: 1.35; }
.mode-opt.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--surface)); }
.mode-opt.on b { color: var(--accent); }
.mode-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 560px) { .mode-seg { grid-template-columns: 1fr; } }

/* small mode tag in tables */
.tag-m {
  display: inline-block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  border-radius: 6px;
  padding: .12rem .4rem;
  margin-left: .45rem;
  vertical-align: 2px;
}

/* trial strip + yearly band + online duo (membership) */
.trial-strip, .yearly-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid color-mix(in oklab, var(--warm) 40%, var(--line));
  border-left: 4px solid var(--warm);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--warm) 6%, var(--surface));
  margin-bottom: 2.2rem;
}
.yearly-band {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  border-left-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
  margin-bottom: 0;
}
.ts-title { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; margin: .3rem 0 .35rem; }
.ts-title b { color: var(--warm); }
.yearly-band .ts-title b { color: var(--accent); }
.yb-per { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.ts-sub { font-size: .92rem; color: var(--muted); max-width: 46ch; line-height: 1.5; }
.passes.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
@media (max-width: 860px) {
  .trial-strip, .yearly-band { flex-direction: column; align-items: flex-start; }
  .passes.duo { grid-template-columns: 1fr; }
}

/* online strip (classes) */
.online-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.online-ctas { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 860px) { .online-strip { flex-direction: column; align-items: flex-start; } }

/* strapline — the studio's one-line signature under the display heading */
.strapline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  color: var(--warm);
  margin: 1.1rem 0 0;
}

/* studio credit in the footer bottom row */
.footer .foot-credit { color: var(--muted); }
.footer .foot-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer .foot-credit a:hover { color: var(--ink); }

/* ---------- very small phones (360px and under) ----------
   At 320 the two-line brand pushes the header past 130px and the wordmark
   wraps mid-phrase. The sub-line is the first thing to go: the mark and the
   name still identify the studio, and the header stays one row. */
@media (max-width: 360px) {
  .brand { gap: .5rem; }
  .brand .mark { width: 28px; height: 28px; }
  .brand .bt b { font-size: .98rem; }
  .brand .bt span { display: none; }
  .header .wrap { gap: .5rem; }
  .header-cta { gap: .35rem; }
  .ask-fab { width: 48px; height: 48px; right: 12px; bottom: 12px; }
  .cookie { left: 10px; right: 10px; }
}
