/* =====================================================================
   Yoga Master — redesign
   60 / 30 / 10:  mist canvas  /  forest structure  /  gold accent
   ===================================================================== */
:root {
  /* 60 — dominant canvas */
  --canvas:      #EEF1EA;
  --canvas-2:    #E4E9DF;
  --ink:         #1B2A21;
  --ink-soft:    #4A5A50;
  --line:        rgba(31, 51, 40, .14);
  /* 30 — secondary structure */
  --forest:      #1F3328;
  --forest-deep: #14221A;
  --on-forest:   #EEF1EA;
  --on-forest-soft: #B9C6BC;
  --forest-line: rgba(230, 201, 135, .18);
  /* 10 — accent, CTAs and focal points only */
  --gold:        #C9A24B;
  --gold-soft:   #E6C987;
  --on-gold:     #14221A;

  --font-display: 'Marcellus', 'Optima', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-scale: 1;

  --r-lg: 28px;
  --r-md: 16px;
  --r-pill: 999px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(20, 34, 26, .06), 0 12px 32px -12px rgba(20, 34, 26, .22);
}

/* Moon mode: the canvas goes dark, the proportions stay the same */
:root[data-theme="moon"] {
  --canvas:      #14221A;
  --canvas-2:    #192A20;
  --ink:         #EEF1EA;
  --ink-soft:    #B9C6BC;
  --line:        rgba(230, 201, 135, .16);
  --forest:      #22392C;
  --forest-deep: #0E1812;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(17px * var(--font-scale));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.measure { max-width: 34em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: 10px 16px; z-index: 999; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* Inline links on the canvas: ink text, gold rule (the 10% at work) */
.text-link { color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); transition: box-shadow .3s var(--ease); }
.text-link:hover { box-shadow: inset 0 -.5em 0 rgba(201, 162, 75, .35); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 22px -10px rgba(201, 162, 75, .9); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn--line { border-color: var(--line); color: var(--ink); background: transparent; border-color: currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn--line:hover { border-color: currentColor; }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- header (30%) */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--forest); color: var(--on-forest);
  transition: box-shadow .4s var(--ease), background-color .6s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img { width: 42px; height: 42px; }
.logo span { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .14em; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .55em .95em; border-radius: var(--r-pill); text-decoration: none; color: var(--on-forest-soft); font-weight: 500; transition: color .25s, background-color .25s; }
.main-nav a:hover { color: var(--on-forest); background: rgba(238, 241, 234, .07); }
.main-nav a[aria-current="page"] { color: var(--on-forest); background: rgba(238, 241, 234, .1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(238, 241, 234, .08); border: 0; color: var(--gold-soft); cursor: pointer;
  transition: background-color .25s, transform .5s var(--ease);
}
.icon-btn:hover { background: rgba(238, 241, 234, .16); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="moon"] .theme-toggle .sun { display: block; }
:root[data-theme="moon"] .theme-toggle .moon { display: none; }
.theme-toggle:active { transform: rotate(-30deg); }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; margin: 0; background: var(--forest);
    padding: 12px 24px 28px; border-top: 1px solid var(--forest-line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: 1.2rem; padding: .8em 0; border-radius: 0; border-bottom: 1px solid var(--forest-line); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: none; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) { .logo span { font-size: 1.05rem; letter-spacing: .1em; } .site-header__inner { gap: 12px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin-bottom: .35em; }
.hero h1 .line { display: block; }
.hero__lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 2em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 2.6em 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .95rem; }
.hero__meta strong { color: var(--ink); font-weight: 600; }

/* Breathing mark */
.breath { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; }
.breath__halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgba(201, 162, 75, .22), transparent 62%); transition: transform 4s ease-in-out, opacity 4s; }
.breath__disc { position: absolute; inset: 7%; border-radius: 50%; background: var(--forest); box-shadow: var(--shadow), inset 0 0 0 1px var(--forest-line); }
.breath__ripple { position: absolute; inset: 7%; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; pointer-events: none; }
.breath svg.mark { position: relative; width: 74%; height: auto; overflow: visible; }
.mark .ring { transform-box: view-box; transform-origin: 100px 190px; transition: transform 4s cubic-bezier(.45, 0, .55, 1); }
.mark .lotus { transform-box: view-box; transform-origin: 100px 150px; transition: transform 4s cubic-bezier(.45, 0, .55, 1); }
.mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards; }
.mark .ring.draw:nth-child(1) { animation-delay: .05s; }
.mark .ring.draw:nth-child(2) { animation-delay: .15s; }
.mark .ring.draw:nth-child(3) { animation-delay: .25s; }
.mark .ring.draw:nth-child(4) { animation-delay: .35s; }
.mark .ring.draw:nth-child(5) { animation-delay: .45s; }
.mark .lotus .draw { animation-duration: 2.8s; animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* inhale: rings spread upward from the base, lotus lifts */
.breath.is-in .ring:nth-child(1), .breath.is-hold .ring:nth-child(1) { transform: scale(1.02); }
.breath.is-in .ring:nth-child(2), .breath.is-hold .ring:nth-child(2) { transform: scale(1.045); }
.breath.is-in .ring:nth-child(3), .breath.is-hold .ring:nth-child(3) { transform: scale(1.07); }
.breath.is-in .ring:nth-child(4), .breath.is-hold .ring:nth-child(4) { transform: scale(1.095); }
.breath.is-in .ring:nth-child(5), .breath.is-hold .ring:nth-child(5) { transform: scale(1.06); }
.breath.is-in .lotus, .breath.is-hold .lotus { transform: scale(1.07); }
.breath.is-in .breath__halo, .breath.is-hold .breath__halo { transform: scale(1.12); }
.breath.is-out .ring, .breath.is-out .lotus { transition-duration: 6s; }
.breath.is-out .breath__halo { transition-duration: 6s; }
.breath.is-deep .ring:nth-child(4) { transform: scale(1.14); }
.breath.is-deep.is-out .ring:nth-child(4) { transform: none; }
.breath.is-ripple .breath__ripple { animation: ripple 2.2s var(--ease); }
@keyframes ripple { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

.breath__caption {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px; box-shadow: var(--shadow);
}
.breath__word { font-family: var(--font-display); font-size: 1.1rem; min-width: 7.2em; transition: opacity .4s; }
.breath__word.is-swapping { opacity: 0; }
.breath__progress { width: 34px; height: 34px; }
.breath__progress circle { fill: none; stroke-width: 3; }
.breath__progress .track { stroke: var(--line); }
.breath__progress .fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .5s linear; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; margin: 0 auto; width: 100%; }
}

/* ---------------------------------------------------------------- sections */
section[id] { scroll-margin-top: 76px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--sand { background: var(--canvas-2); transition: background-color .6s var(--ease); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; max-width: 14em; }
.section-head p { margin: 0; max-width: 28em; color: var(--ink-soft); }

/* Forest panel (30%) */
.panel {
  background: var(--forest); color: var(--on-forest); border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden;
  transition: background-color .6s var(--ease);
}
.panel p { color: var(--on-forest-soft); }
.panel .btn--line { color: var(--on-forest); }
.panel__rings { position: absolute; right: -140px; top: -140px; width: 460px; opacity: .22; pointer-events: none; }

/* ---------------------------------------------------------------- quiz */
.quiz { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); position: relative; }
.quiz__intro h2 { color: var(--on-forest); }
.quiz__steps { display: flex; gap: 8px; margin: 1.8em 0 0; padding: 0; list-style: none; }
.quiz__steps li { width: 34px; height: 4px; border-radius: 4px; background: rgba(238, 241, 234, .18); transition: background-color .4s; }
.quiz__steps li.is-done { background: var(--gold); }
.quiz__stage { position: relative; min-height: 320px; }
.quiz__q { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.quiz__q[hidden] { display: none; }
.quiz__q.is-leaving { opacity: 0; transform: translateX(-24px); }
.quiz__q.is-entering { opacity: 0; transform: translateX(24px); }
.quiz__q legend { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1em; padding: 0; color: var(--on-forest); }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__count { font-size: .9rem; color: var(--on-forest-soft); margin-bottom: .6em; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: var(--r-md); cursor: pointer;
  background: rgba(238, 241, 234, .05); border: 1px solid var(--forest-line); color: var(--on-forest);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.choice:hover { background: rgba(238, 241, 234, .1); border-color: rgba(230, 201, 135, .45); transform: translateY(-2px); }
.choice svg { width: 34px; height: 34px; flex: none; color: var(--gold-soft); }
.choice strong { display: block; font-weight: 600; }
.choice small { color: var(--on-forest-soft); font-size: .88rem; }
.quiz__back { margin-top: 18px; background: none; border: 0; color: var(--on-forest-soft); cursor: pointer; padding: 6px 0; font-size: .92rem; }
.quiz__back:hover { color: var(--on-forest); }
.quiz__result { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; }
.quiz__result .arch { width: 140px; }
.quiz__result h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--on-forest); margin-bottom: .3em; }
.quiz__result .next { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 1.4em; color: var(--on-forest-soft); font-size: .95rem; }
.quiz__result .next b { color: var(--on-forest); font-weight: 600; }
.quiz__result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .quiz { grid-template-columns: 1fr; } .quiz__stage { min-height: 0; } }
@media (max-width: 520px) { .quiz__result { grid-template-columns: 1fr; } .quiz__result .arch { width: 110px; } }

/* ---------------------------------------------------------------- program arches */
.arches { display: flex; gap: 14px; height: 540px; }
.arch-card {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 240px 240px var(--r-lg) var(--r-lg);
  overflow: hidden; cursor: pointer; border: 0; padding: 0; text-align: left;
  background: var(--forest); color: var(--on-forest);
  transition: flex-grow .7s var(--ease), box-shadow .4s;
}
.arch-card__toggle { position: absolute; inset: 0; z-index: 1; background: none; border: 0; padding: 0; cursor: pointer; border-radius: inherit; }
.arch-card__toggle:focus-visible { outline-offset: -4px; }
.arch-card:not(.is-open):hover .drift { transform: translateY(-6px); }
.arch-card__body { z-index: 2; pointer-events: none; }
.arch-card__more a { pointer-events: auto; }
.arch-card.is-open { flex-grow: 2.6; box-shadow: var(--shadow); }
.arch-card__art { position: absolute; inset: 0; }
.arch-card__art svg { width: 100%; height: 100%; }
.arch-card__art svg .drift { transition: transform 1.2s var(--ease); }
.arch-card.is-open .drift { transform: translateY(-14px); }
.arch-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 28px;
  background: linear-gradient(to top, rgba(20, 34, 26, .96) 40%, rgba(20, 34, 26, 0));
}
.arch-card__level { font-size: .85rem; color: var(--gold-soft); font-weight: 600; }
.arch-card h3 { margin: .25em 0 0; font-size: 1.5rem; color: var(--on-forest); }
.arch-card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease), opacity .4s; opacity: 0; }
.arch-card__more > div { overflow: hidden; }
.arch-card.is-open .arch-card__more { grid-template-rows: 1fr; opacity: 1; }
.arch-card__more p { color: var(--on-forest-soft); margin: .8em 0 1em; max-width: 30em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.1em; padding: 0; list-style: none; }
.facts li { padding: .3em .8em; border-radius: var(--r-pill); background: rgba(238, 241, 234, .08); font-size: .85rem; color: var(--on-forest); }
.intensity { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 4px; }
.intensity i { width: 7px; height: 7px; border-radius: 50%; background: rgba(238, 241, 234, .25); }
.intensity i.on { background: var(--gold-soft); }
@media (max-width: 900px) {
  .arches { flex-direction: column; height: auto; }
  .arch-card { flex: none; height: 150px; border-radius: 120px 120px var(--r-lg) var(--r-lg); transition: height .7s var(--ease); }
  .arch-card.is-open { height: 460px; }
}

/* ---------------------------------------------------------------- timetable */
.timetable { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.day-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 100px; }
.day-tab {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md); border: 1px solid transparent; background: none; cursor: pointer; text-align: left;
  color: var(--ink-soft); transition: background-color .25s, color .25s, border-color .25s;
}
.day-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--forest) 6%, transparent); }
.day-tab[aria-selected="true"] { background: var(--forest); color: var(--on-forest); }
.day-tab small { font-size: .8rem; opacity: .8; }
.day-tab .today { font-size: .72rem; padding: .15em .6em; border-radius: var(--r-pill); background: var(--gold); color: var(--on-gold); font-weight: 700; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: .45em 1em; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: .9rem; color: var(--ink-soft); transition: all .25s;
}
.chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.class-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.class-row {
  display: grid; grid-template-columns: 92px 1fr auto auto; align-items: center; gap: 18px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  animation: rowIn .5s var(--ease) both;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.class-row time { font-family: var(--font-display); font-size: 1.35rem; }
.class-row h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 0; }
.class-row .who { font-size: .92rem; color: var(--ink-soft); }
.spots { font-size: .88rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.spots__bar { width: 54px; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.spots__bar i { display: block; height: 100%; background: var(--forest); border-radius: 5px; transition: width .6s var(--ease); }
:root[data-theme="moon"] .spots__bar i { background: var(--gold-soft); }
.spots.is-low { color: var(--ink); font-weight: 600; }
.class-row.is-booked .btn { pointer-events: none; }
.empty-state { padding: 40px 4px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .timetable { grid-template-columns: 1fr; }
  .day-tabs { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .day-tabs::-webkit-scrollbar { display: none; }
  .day-tab { flex: none; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 84px; scroll-snap-align: start; border-color: var(--line); }
  .class-row { grid-template-columns: 70px 1fr; row-gap: 10px; }
  .class-row .spots { grid-column: 2; }
  .class-row .btn { grid-column: 2; justify-self: start; }
}

/* ---------------------------------------------------------------- first visit (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--gold); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 22px; background: var(--canvas-2);
  position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--ink-soft); max-width: 22em; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps li { padding: 0 0 0 72px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .steps li::after { top: 48px; left: 24px; right: auto; width: 1px; height: calc(100% - 12px); }
}

/* ---------------------------------------------------------------- journal */
.journal { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.journal__side { display: grid; gap: 20px; }
.story {
  position: relative; display: flex; flex-direction: column; text-align: left; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--canvas); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), background-color .6s;
}
.section--sand .story { background: var(--canvas); }
.story:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); transform: translateY(-3px); }
.story__art { aspect-ratio: 16 / 9; background: var(--forest); }
.story__art svg { width: 100%; height: 100%; }
.story__body { padding: 24px 26px 28px; }
.story__meta { display: flex; gap: 14px; font-size: .86rem; color: var(--ink-soft); margin-bottom: .6em; }
.story__meta .cat { color: var(--ink); font-weight: 600; }
.story h3 { font-size: 1.5rem; margin-bottom: .4em; }
.story__open { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; line-height: inherit; }
.story__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.story__open:focus-visible { outline: none; }
.story:has(.story__open:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.story .save-btn { position: relative; z-index: 1; }
.story[hidden] { display: none; }
.story p { color: var(--ink-soft); margin: 0; }
.story--row { flex-direction: row; }
.story--row .story__art { aspect-ratio: auto; width: 38%; flex: none; }
.story--row h3 { font-size: 1.25rem; }
.story--row p { display: none; }
.story--lead h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
@media (max-width: 860px) {
  .journal { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .story--row { flex-direction: column; }
  .story--row .story__art { width: 100%; aspect-ratio: 16 / 9; }
}
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-grid .story--lead { grid-column: span 2; flex-direction: row; }
.story-grid .story--lead .story__art { aspect-ratio: auto; width: 50%; flex: none; min-height: 320px; }
.story-grid .story--lead .story__body { align-self: center; padding: 36px; }
@media (max-width: 980px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .story--lead { grid-column: auto; flex-direction: column; }
  .story-grid .story--lead .story__art { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .story-grid .story--lead .story__body { padding: 24px 26px 28px; }
}
.save-btn { margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-soft); display: inline-flex; }
.save-btn svg { width: 18px; height: 18px; }
.save-btn[aria-pressed="true"] { color: var(--gold); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------------------------------------------------------------- quote */
.voices { text-align: center; max-width: 860px; margin: 0 auto; }
.voices blockquote { margin: 0; min-height: 11em; display: grid; place-items: center; }
.voices blockquote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.3; margin: 0 0 .8em; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.voices cite { font-style: normal; color: var(--ink-soft); display: block; transition: opacity .5s; }
.voices.is-swapping blockquote p { opacity: 0; transform: translateY(8px); }
.voices.is-swapping cite { opacity: 0; }
.voices__dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.voices__dots button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.voices__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background-color .3s, transform .3s; }
.voices__dots button[aria-current="true"]::before { background: var(--gold); transform: scale(1.3); }

/* ---------------------------------------------------------------- CTA band */
.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta-band h2 { color: var(--on-forest); margin-bottom: .3em; max-width: 16em; }
.cta-band p { margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- page heads */
.page-head { padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 12em; }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); max-width: 32em; }
.page-head__rings { position: absolute; right: -80px; top: 50%; width: 420px; transform: translateY(-50%); opacity: .5; pointer-events: none; }
@media (max-width: 760px) { .page-head__rings { width: 260px; right: -110px; opacity: .3; } }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--forest); color: var(--on-forest); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); }
.info-card h2 { font-size: 1.6rem; color: var(--on-forest); }
.info-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--on-forest-soft); }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--gold-soft); margin-top: 2px; }
.info-list a { color: var(--on-forest); text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--gold-soft); }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; padding: .35em .9em; border-radius: var(--r-pill); background: rgba(238, 241, 234, .08); margin-bottom: 14px; color: var(--on-forest); }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-forest-soft); }
.open-now.is-open i { background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 162, 75, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(201, 162, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0); } }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--forest-line); color: var(--on-forest-soft); }
.hours td:last-child { text-align: right; color: var(--on-forest); }
.hours tr.is-today td { color: var(--gold-soft); }
.hours tr.is-today td:last-child { color: var(--gold-soft); font-weight: 600; }
.map { margin-top: 20px; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--forest-deep); }
.map svg { width: 100%; height: auto; }
.map .btn { position: absolute; right: 14px; bottom: 14px; }
.map .pin { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }

.form { display: grid; gap: 18px; }
.form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.field .req { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--canvas);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .25s, box-shadow .25s, background-color .6s;
}
.section--sand .field input, .section--sand .field textarea { background: var(--canvas); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
:root[data-theme="moon"] .field input:focus, :root[data-theme="moon"] .field textarea:focus { border-color: var(--gold-soft); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B4523E; }
.field .error { display: none; color: #9C3F2D; font-size: .88rem; margin-top: 6px; }
:root[data-theme="moon"] .field .error { color: #F0A58F; }
.field.is-invalid .error { display: block; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: .55em 1.05em; border-radius: var(--r-pill); border: 1.5px solid var(--line); cursor: pointer; font-size: .93rem; color: var(--ink-soft); transition: all .25s; user-select: none; }
.pick span:hover { color: var(--ink); border-color: var(--ink-soft); }
.pick input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; accent-color: var(--forest); margin: 3px 0 0; flex: none; }
.demo-note { font-size: .88rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.demo-note svg { width: 16px; height: 16px; flex: none; }

.success { text-align: center; padding: clamp(28px, 5vw, 56px) 12px; }
.success[hidden] { display: none; }
.success svg { width: 150px; margin: 0 auto 18px; overflow: visible; }
.success svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s var(--ease) forwards; }
.success svg .draw:nth-child(2) { animation-delay: .2s; } .success svg .draw:nth-child(3) { animation-delay: .35s; }
.success svg .draw:nth-child(4) { animation-delay: .5s; } .success svg .draw:nth-child(5) { animation-delay: .65s; }
.success h2, .success h3 { font-size: 1.9rem; }
.success p { color: var(--ink-soft); max-width: 26em; margin-inline: auto; }

/* ---------------------------------------------------------------- privacy */
.legal { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal nav { position: sticky; top: 100px; }
.legal nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal nav a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; text-decoration: none; color: var(--ink-soft); border-left: 2px solid transparent; transition: color .25s, border-color .25s; }
.legal nav a:hover { color: var(--ink); }
.legal nav a.is-active { color: var(--ink); border-left-color: var(--gold); }
.prose { max-width: 40em; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; } }

/* ---------------------------------------------------------------- footer (30%) */
.site-footer { background: var(--forest-deep); color: var(--on-forest-soft); padding: 72px 0 32px; transition: background-color .6s var(--ease); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: var(--on-forest); margin-bottom: 18px; }
.footer-blurb { max-width: 24em; }
.site-footer h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--on-forest); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-forest); text-decoration: none; transition: color .25s; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-soft); text-decoration: none; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--forest-line); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; }
.footer-bottom .credit a { color: #fff; }
.footer-bottom .credit a:hover, .footer-bottom .credit a:focus-visible { color: var(--gold-soft); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-bottom { flex-direction: column; } }

/* ---------------------------------------------------------------- drawers + overlays */
.scrim { position: fixed; inset: 0; background: rgba(14, 24, 18, .5); backdrop-filter: blur(3px); z-index: 105; opacity: 0; transition: opacity .4s var(--ease); }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 110;
  background: var(--canvas); color: var(--ink); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .4);
  transform: translateX(100%); transition: transform .55s var(--ease); display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer--wide { width: min(720px, 100%); }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; margin: 0; font-family: var(--font-body); font-weight: 600; }
.drawer__close { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.drawer__close:hover { border-color: var(--ink-soft); }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__body { padding: 26px 26px 40px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.booking-summary { background: var(--forest); color: var(--on-forest); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 24px; }
.booking-summary h3 { font-size: 1.6rem; margin-bottom: .2em; color: var(--on-forest); }
.booking-summary p { margin: 0; color: var(--on-forest-soft); }
.reader__art { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 24px; background: var(--forest); }
.reader__art svg { width: 100%; height: 100%; }
.reader h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.reader .prose p { font-size: 1.06rem; line-height: 1.75; }
.reader .prose h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; margin: 1.6em 0 .5em; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 140%);
  background: var(--forest-deep); color: var(--on-forest); border-radius: var(--r-pill); padding: 12px 20px 12px 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease); max-width: calc(100% - 32px); font-size: .95rem;
}
.toast.is-open { transform: translate(-50%, 0); }
.toast svg { width: 28px; height: 28px; flex: none; }
.drawer[hidden], .scrim[hidden], .cookie-panel[hidden], .access-panel[hidden] { display: none; }

/* ---------------------------------------------------------------- cookie + access panels */
.cookie-panel {
  position: fixed; left: 20px; bottom: 20px; z-index: 100; width: min(400px, calc(100% - 40px));
  background: var(--canvas); color: var(--ink); border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0, 0, 0, .45);
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.cookie-panel.is-open { transform: none; opacity: 1; }
.cookie-panel h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; margin: 0; }
.cookie-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cookie-panel p { font-size: .92rem; color: var(--ink-soft); }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.cookie-option strong { display: block; font-size: .95rem; }
.cookie-option span { font-size: .84rem; color: var(--ink-soft); }
.cookie-panel__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cookie-panel__actions .btn--full { grid-column: 1 / -1; }
.cookie-panel__links { font-size: .85rem; margin: 10px 0 0; }
.cookie-panel__links a { color: var(--ink); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 26px; background: var(--line); transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--forest); }
:root[data-theme="moon"] .switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch--locked { opacity: .6; }
.panel-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); }
.panel-close:hover { color: var(--ink); }

.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--forest); color: var(--gold-soft); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55); transition: transform .35s var(--ease); }
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 22px; height: 22px; }
.fab[hidden] { display: none; }
.access-panel {
  position: fixed; right: 78px; bottom: 18px; z-index: 100; width: min(290px, calc(100% - 96px));
  background: var(--canvas); color: var(--ink); border-radius: var(--r-lg); padding: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.access-panel h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 0; }
.access-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.access-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left; font-size: .95rem; }
.access-option:hover { background: var(--canvas-2); }
.access-option svg { width: 20px; height: 20px; color: var(--ink-soft); }
.access-option[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); }
.access-option[aria-pressed="true"] svg { color: var(--gold-soft); }

/* accessibility states */
html.is-high-contrast { --ink-soft: var(--ink); --line: rgba(0, 0, 0, .5); --on-forest-soft: #fff; }
html.is-high-contrast[data-theme="moon"] { --line: rgba(255, 255, 255, .5); }
html.is-underline-links a { text-decoration: underline !important; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mark .draw, .success svg .draw { stroke-dashoffset: 0; }
}
