/* ==========================================================================
   The New Chapter Pilates Studio
   Palette and logo from TheNewChapter_Logo Set.ai; accents from the studio renders.
   ========================================================================== */
:root {
  --cream: #F7F2EC;
  --paper: #FBF8F4;
  --sand: #EFE6DC;
  --blush: #EADAD4;
  --rose: #AD8781;
  --rose-deep: #8C6862;
  --espresso: #402E27;
  --ink: #402E27;
  --ink-soft: #6E5A52;
  --terracotta: #B9694F;
  --oak: #D8BE98;
  --glow: #F6DFAE;
  --line: rgba(64, 46, 39, .14);
  --line-light: rgba(247, 242, 236, .2);

  --f-display: "Forum", "Bellefair", Georgia, serif;
  --f-accent: "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --w: 1240px;
  --gut: clamp(20px, 4.5vw, 64px);
  --sec: clamp(80px, 11vw, 168px);
  --hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.65 var(--f-body); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--rose); color: var(--cream); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* first-paint cover so nothing flashes before the page-turn overlay mounts */
html.js:not(.ready) body::before { content: ""; position: fixed; inset: 0; background: var(--cream); z-index: 999; }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: 0; text-wrap: balance; }
h1, .h1 { font-size: clamp(46px, 7.4vw, 112px); }
h2, .h2 { font-size: clamp(36px, 5vw, 72px); }
h3, .h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
em, .it { font-family: var(--f-accent); font-style: italic; font-weight: 500; color: var(--rose); letter-spacing: 0; font-size: 1.08em; }
.on-dark em { color: var(--blush); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.eyebrow { font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--rose-deep); font-weight: 500; }
.small { font-size: 14px; color: var(--ink-soft); }
p { text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap { width: min(100% - var(--gut) * 2, var(--w)); margin-inline: auto; }
.sec { padding-block: var(--sec); position: relative; }
.sec-tight { padding-block: calc(var(--sec) * .6); }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--sand); }
.on-dark { background: var(--espresso); color: var(--cream); }
.on-dark .lede, .on-dark .small { color: rgba(247, 242, 236, .72); }
.on-dark .eyebrow { color: var(--rose); }
.on-rose { background: var(--rose); color: var(--cream); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stack > * + * { margin-top: 1.4em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* chapter marker — the site reads as a book */
.chap { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
.chap-n { font-family: var(--f-accent); font-style: italic; font-size: 20px; color: var(--rose); white-space: nowrap; }
.chap-line { height: 1px; width: 72px; background: currentColor; opacity: .3; transform-origin: left; }
.chap-t { font-size: 12px; letter-spacing: 0; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .lede { max-width: 26em; }

/* arch — the studio's doorway motif */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; position: relative; background: var(--sand); }
.arch img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame { border-radius: 22px; overflow: hidden; position: relative; background: var(--sand); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--espresso); --fg: var(--cream); --fill: var(--rose);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  font: 500 13px/1 var(--f-body); letter-spacing: 0; text-transform: uppercase; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  border-radius: 999px; transform: translateY(102%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --fill: var(--espresso); border: 1px solid var(--ink); padding: 16px 29px; }
.btn-ghost:hover { color: var(--cream); }
.btn-light { --bg: var(--cream); --fg: var(--espresso); --fill: var(--blush); }
.btn-rose { --bg: var(--rose-deep); --fg: var(--cream); --fill: var(--espresso); }
.on-dark .btn-ghost { --fg: var(--cream); --fill: var(--cream); border-color: var(--line-light); }
.on-dark .btn-ghost:hover { color: var(--espresso); }
.btn-sm { padding: 13px 22px; font-size: 12px; }
.btn-ghost.btn-sm { padding: 12px 21px; }
.arr { width: 14px; height: 14px; flex: none; transition: transform .5s var(--ease); }
.link-u { white-space: nowrap; }
.link-u:hover .arr { transform: translate(3px, -3px); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-u { position: relative; font-size: 13px; letter-spacing: 0; text-transform: uppercase; font-weight: 500; padding-bottom: 5px; display: inline-flex; gap: 10px; align-items: center; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.link-u:hover::after { transform: scaleX(0); }
.mb-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.mb-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.on-dark .mb-note { color: rgba(247, 242, 236, .65); }

/* ---------- announcement + header ---------- */
.bar { background: var(--espresso); color: var(--cream); font-size: 12px; letter-spacing: 0; text-transform: uppercase; text-align: center; padding: 10px var(--gut); position: relative; z-index: 60; }
.bar a { border-bottom: 1px solid var(--line-light); margin-left: 10px; }
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; transition: background .4s, transform .5s var(--ease), box-shadow .4s; }
.hdr.is-solid { background: rgba(247, 242, 236, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - var(--gut) * 2, 1440px); margin-inline: auto; }
.hdr-logo { color: var(--rose); display: block; flex: none; }
.hdr-logo svg { height: 34px; width: auto; }
.hdr-nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.hdr-nav a { font-size: 12.5px; letter-spacing: 0; text-transform: uppercase; font-weight: 500; position: relative; padding: 8px 0; }
.hdr-nav a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease); }
.hdr-nav a:hover::after, .hdr-nav a[aria-current]::after { transform: translateX(-50%) scale(1); }
.hdr-cta { display: flex; align-items: center; gap: 22px; }
.hdr-burger { display: none; width: 44px; height: 44px; position: relative; }
.hdr-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.hdr-burger span:first-child { top: 17px; } .hdr-burger span:last-child { top: 26px; }
.menu-open .hdr-burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .hdr-burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--cream); padding: calc(var(--hdr) + 56px) var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s .8s; overflow-y: auto; }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-io); }
.menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--f-display); font-size: clamp(34px, 9vw, 56px); line-height: 1.25; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu-links a svg { width: 22px; height: 15px; flex: none; color: var(--rose); transition: transform .4s var(--ease); }
.menu-links a:hover svg { transform: translateX(6px); }
.menu-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .05s); }
.menu-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.menu-open { overflow: hidden; }

/* ---------- loader + page turn ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--cream); display: grid; place-items: center; color: var(--rose); transition: transform 1s var(--ease-io); }
.loader.is-out { transform: translateY(-100%); }
.loader-in { width: min(62vw, 340px); text-align: center; }
.loader .nc-logo { width: 100%; }
.loader .nc-logo path { opacity: 0; animation: ld-fade .9s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .018s); }
.loader-line { height: 1px; background: var(--rose); margin: 26px auto 0; width: 0; animation: ld-line 1.5s var(--ease-io) .2s forwards; opacity: .5; }
@keyframes ld-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ld-line { to { width: 100%; } }
.turn { position: fixed; inset: 0; z-index: 998; background: var(--rose); transform: translateY(100%); pointer-events: none; display: grid; place-items: center; color: var(--cream); }
.turn .nc-mark { width: 120px; opacity: .9; }
.turn.is-cover { transform: translateY(0); }
.turn.is-in { transition: transform .6s var(--ease-io); transform: translateY(0); pointer-events: auto; }
.turn.is-out { transition: transform .8s var(--ease-io); transform: translateY(-100%); }

/* ---------- reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), clip-path 1.3s var(--ease-io); transition-delay: calc(var(--d, 0) * 90ms); will-change: transform, opacity; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="rise"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
.js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="rise"].is-in { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
.js [data-reveal="wipe"].is-in { clip-path: inset(0); }
.js [data-reveal="rise"] img, .js [data-reveal="wipe"] img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.js [data-reveal].is-in img { transform: scale(1); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--base, 0ms)); }
.split.is-in .w > span { transform: none; }

/* swoosh mark draw */
.nc-mark .sw { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-io); }
.nc-mark .sw-b { transition-delay: .35s; }
.nc-mark .sw-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1) 1.1s; }
.is-in .nc-mark .sw, .nc-mark.is-in .sw, html:not(.js) .nc-mark .sw { clip-path: inset(0); }
.is-in .nc-mark .sw-dot, .nc-mark.is-in .sw-dot, html:not(.js) .nc-mark .sw-dot { transform: scale(1); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 72px) 0 clamp(72px, 9vw, 130px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 26px 0 30px; }
.hero-copy .btn-row { margin-top: 40px; }
.hero-meta { display: flex; gap: 36px; margin-top: clamp(40px, 6vw, 84px); padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta b { display: block; font: 400 26px/1.1 var(--f-display); margin-bottom: 4px; }
.hero-meta span { font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--ink-soft); }
.hero-vis { position: relative; aspect-ratio: 5 / 6; }
.hero-sun { position: absolute; right: -8%; top: 4%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0, rgba(246, 223, 174, 0) 68%); animation: breathe 7s ease-in-out infinite; }
.hero-arch { position: absolute; right: 0; top: 0; width: 76%; height: 100%; }
.hero-arch img { object-position: 38% 50%; }
.hero-arch-2 { position: absolute; left: 0; bottom: -6%; width: 40%; aspect-ratio: 3 / 4.2; border: 8px solid var(--cream); border-bottom: 0; }
.hero-arch-2 img { object-position: 12% 50%; }
.hero-mark { position: absolute; left: -12%; top: 6%; width: 64%; color: var(--rose); opacity: .5; z-index: 3; pointer-events: none; }
.badge { position: absolute; right: 60%; top: 8%; width: clamp(96px, 10vw, 138px); aspect-ratio: 1; z-index: 4; display: grid; place-items: center; color: var(--espresso); background: var(--cream); border-radius: 50%; box-shadow: 0 10px 40px rgba(64, 46, 39, .12); transition: transform .6s var(--ease); }
.badge:hover { transform: scale(1.08); }
.badge svg.ring { position: absolute; inset: 6%; width: 88%; height: 88%; animation: spin 18s linear infinite; }
.badge svg.ring text { font: 500 8.4px var(--f-body); letter-spacing: 0; text-transform: uppercase; fill: currentColor; }
.badge .arr { width: 22%; height: auto; color: var(--terracotta); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
.scroll-cue { position: absolute; left: var(--gut); bottom: 28px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--rose-deep); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* page hero (inner pages) */
.phero { padding: clamp(36px, 6vw, 90px) 0 clamp(48px, 6vw, 88px); }
.phero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.phero h1 { font-size: clamp(44px, 6.6vw, 98px); margin-top: 22px; }
.phero .lede { margin-top: 26px; }
.phero-img { aspect-ratio: 4 / 3.3; }
.phero-plain { text-align: center; max-width: 880px; margin-inline: auto; }
.phero-plain .lede { margin-inline: auto; }
.crumb { display: flex; gap: 10px; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--ink-soft); }
.crumb a:hover { color: var(--rose-deep); }
.phero-plain .crumb { justify-content: center; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; display: flex; user-select: none; }
.marquee-track { display: flex; flex: none; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 400 clamp(22px, 2.6vw, 36px)/1 var(--f-display); padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.marquee span:nth-child(even) { font-family: var(--f-accent); font-style: italic; color: var(--rose-deep); font-size: clamp(25px, 2.9vw, 40px); }
.on-dark .marquee { border-color: var(--line-light); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- manifesto ---------- */
.manifesto { font: 400 clamp(30px, 4.3vw, 64px)/1.16 var(--f-display); letter-spacing: 0; max-width: 18em; }
.manifesto .mw { opacity: .16; transition: opacity .5s linear; }
.manifesto .mw.on { opacity: 1; }
.manifesto-grid { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: clamp(32px, 6vw, 96px); align-items: end; }
.manifesto-side .arch { aspect-ratio: 3 / 4; margin-bottom: 26px; }

/* ---------- practice list ---------- */
.practice { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.practice-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .6s var(--ease), color .4s; cursor: pointer; }
.practice-row:first-child { border-top: 1px solid var(--line); }
.practice-row i { font: italic 500 17px var(--f-accent); color: var(--rose); }
.practice-row h3 { transition: transform .6s var(--ease); }
.practice-row .tag { opacity: .7; }
.practice-row p { grid-column: 2 / -1; max-height: 0; overflow: hidden; opacity: 0; color: var(--ink-soft); transition: max-height .7s var(--ease), opacity .5s, margin .7s var(--ease); max-width: 34em; }
.practice-row.is-on p { max-height: 120px; opacity: 1; margin-top: 4px; }
.practice-row.is-on h3 { transform: translateX(10px); color: var(--rose-deep); }
.practice-vis { position: sticky; top: calc(var(--hdr) + 28px); aspect-ratio: 4 / 5; }
.practice-vis img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.practice-vis img.is-on { opacity: 1; transform: scale(1); }
.tag { display: inline-flex; align-items: center; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.on-dark .tag { border-color: var(--line-light); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- studio tour (drag gallery) ---------- */
.tour { overflow-x: auto; scrollbar-width: none; cursor: grab; padding-inline: max(var(--gut), calc((100vw - var(--w)) / 2)); -webkit-overflow-scrolling: touch; }
.tour::-webkit-scrollbar { display: none; }
.tour.is-drag { cursor: grabbing; }
.tour-track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; align-items: flex-end; }
.tour-item { width: clamp(260px, 30vw, 440px); flex: none; }
.tour-item:nth-child(odd) .arch { aspect-ratio: 4 / 5; }
.tour-item:nth-child(even) .arch { aspect-ratio: 4 / 4.2; border-radius: 22px; }
.tour-item img { pointer-events: none; transition: transform 1.4s var(--ease); }
.tour-item:hover img { transform: scale(1.05); }
.tour-cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; gap: 12px; }
.tour-cap b { font: 400 21px var(--f-display); }
.tour-cap span { font: italic 500 16px var(--f-accent); color: var(--rose); }
.tour-bar { height: 1px; background: var(--line-light); margin-top: 44px; position: relative; }
.tour-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--rose); border-radius: 3px; }
.tour-hint { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; letter-spacing: 0; text-transform: uppercase; opacity: .6; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); counter-reset: s; }
.step { background: var(--paper); border-radius: 22px; padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden; transition: transform .7s var(--ease), background .5s; }
.step:hover { transform: translateY(-8px); background: #fff; }
.step::before { counter-increment: s; content: "0" counter(s); font: italic 500 54px/1 var(--f-accent); color: var(--rose); display: block; margin-bottom: 44px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: 16px; }
.step::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--line); transition: transform .9s var(--ease); }
.step:hover::after { transform: scale(1.5); }

/* ---------- feature / amenity cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.card { border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 2.6vw, 36px); transition: background .5s, border-color .5s, transform .7s var(--ease); }
.card:hover { background: var(--paper); border-color: transparent; transform: translateY(-6px); }
.card .ico { width: 44px; height: 44px; color: var(--rose-deep); margin-bottom: 30px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.on-dark .card { border-color: var(--line-light); }
.on-dark .card:hover { background: rgba(247, 242, 236, .06); }
.on-dark .card p { color: rgba(247, 242, 236, .7); }
.on-dark .card .ico { color: var(--rose); }

/* alternating room rows */
.room { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 100px); align-items: center; }
.room + .room { margin-top: clamp(64px, 9vw, 140px); }
.room:nth-child(even) .room-img { order: 2; }
.room-img { aspect-ratio: 16 / 11; }
.room-img.arch { aspect-ratio: 4 / 4.4; max-width: 520px; width: 100%; }
.room:nth-child(even) .room-img.arch { margin-left: auto; }
.room-copy .num { font: italic 500 22px var(--f-accent); color: var(--rose); display: block; margin-bottom: 16px; }
.room-copy h2 { font-size: clamp(32px, 3.8vw, 54px); margin-bottom: 20px; }
.room-copy p { color: var(--ink-soft); max-width: 30em; }
.room-copy .tags { margin-top: 26px; }
[data-parallax] { will-change: transform; }
img.pimg { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }

/* ---------- class cards ---------- */
.class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.class-card { display: grid; grid-template-columns: 210px 1fr; gap: 28px; padding: 22px; border-radius: 26px; background: var(--paper); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.class-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -30px rgba(64, 46, 39, .35); }
.class-card .arch { aspect-ratio: 3 / 4; }
.class-card:hover .arch img { transform: scale(1.07); }
.class-card .arch img { transition: transform 1.4s var(--ease); }
.class-card-body { display: flex; flex-direction: column; padding: 10px 6px 6px 0; }
.class-card h3 { margin: 14px 0 10px; }
.class-card p { color: var(--ink-soft); font-size: 16px; }
.class-card ul { margin: 16px 0 22px; display: grid; gap: 6px; font-size: 15px; }
.class-card li { display: flex; gap: 10px; align-items: center; }
.class-card li::before { content: ""; width: 14px; height: 1px; background: var(--rose); }
.class-card .btn-row { margin-top: auto; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.levels > div { padding: 34px 28px 10px 0; }
.levels > div + div { border-left: 1px solid var(--line-light); padding-left: 28px; }
.levels h3 { margin-bottom: 10px; }
.levels p { color: rgba(247, 242, 236, .7); font-size: 16px; }
.dots { display: flex; gap: 6px; margin-bottom: 22px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--rose); }
.dots i.f { background: var(--rose); }

/* ---------- pricing ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(36px, 5vw, 64px); }
.pill { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; letter-spacing: 0; text-transform: uppercase; font-weight: 500; transition: background .4s, color .4s, border-color .4s; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(26px, 2.6vw, 38px); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity .5s, scale .5s var(--ease); }
.plan:hover { transform: translateY(-8px); box-shadow: 0 30px 70px -36px rgba(64, 46, 39, .4); }
.plan.is-hide { display: none; }
.plan.is-enter { animation: plan-in .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes plan-in { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.plan-cat { font-size: 11.5px; letter-spacing: 0; text-transform: uppercase; color: var(--rose-deep); }
.plan h3 { font-size: 30px; margin: 14px 0 4px; }
.plan-sub { font: italic 500 19px var(--f-accent); color: var(--ink-soft); }
.plan-price { font: 400 clamp(38px, 3.6vw, 52px)/1 var(--f-display); margin: 30px 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price small { font: 400 15px var(--f-body); color: var(--ink-soft); letter-spacing: 0; }
.plan ul { display: grid; gap: 11px; margin-bottom: 32px; font-size: 16px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 16px; height: 16px; margin-top: 6px; color: var(--rose); }
.plan .btn, .plan healcode-widget a { margin-top: auto; justify-content: center; }
.plan healcode-widget { margin-top: auto; display: grid; }
.plan.is-feat { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.plan.is-feat .plan-cat, .plan.is-feat .plan-sub, .plan.is-feat .plan-price small { color: var(--blush); }
.plan.is-feat .plan-price { border-color: var(--line-light); }
.plan.is-feat .btn { --bg: var(--cream); --fg: var(--espresso); --fill: var(--rose); }
.plan.is-feat .btn:hover { color: var(--cream); }
.plan.is-feat::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(173, 135, 129, .5), transparent 70%); pointer-events: none; }
.plan-flag { position: absolute; top: 22px; right: 22px; font-size: 10.5px; letter-spacing: 0; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--rose); color: var(--cream); z-index: 1; }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 48px; margin-top: 40px; font-size: 15px; color: var(--ink-soft); }
.notes li { display: flex; gap: 12px; }
.notes li::before { content: ":"; color: var(--rose); font-weight: 600; }

/* trial spotlight card */
.spot { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--paper); border-radius: 32px; overflow: hidden; border: 1px solid var(--line); }
.spot-img { position: relative; min-height: 420px; overflow: hidden; }
.spot-body { padding: clamp(30px, 4.6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.spot-price { display: flex; align-items: baseline; gap: 12px; font: 400 clamp(52px, 6vw, 88px)/1 var(--f-display); margin: 22px 0 8px; }
.spot-price small { font: 400 16px var(--f-body); color: var(--ink-soft); }
.spot ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin: 28px 0 36px; font-size: 16px; }
.spot li { display: flex; gap: 10px; }
.spot li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); margin-top: 11px; }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px) clamp(16px, 2.4vw, 32px); }
.prod-tile { aspect-ratio: 4 / 4.6; display: grid; place-items: center; background: var(--sand); position: relative; transition: background .6s; }
.prod-tile::before { content: ""; position: absolute; left: 50%; top: 14%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 68%); transform: translateX(-50%); }
.prod-art { width: 74%; position: relative; transition: transform .9s var(--ease); --p2: color-mix(in srgb, var(--p) 80%, #2a1c17); filter: drop-shadow(0 18px 20px rgba(64, 46, 39, .14)); }
.prod-art * { transition: fill .6s var(--ease), stroke .6s var(--ease); }
.prod:hover .prod-art { transform: translateY(-10px) rotate(-3deg); }
.prod-tag { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 10.5px; letter-spacing: 0; text-transform: uppercase; background: var(--cream); padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.prod-info { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin-top: 20px; align-items: baseline; }
.prod-info h3 { font-size: 24px; }
.prod-price { font: 400 21px var(--f-display); }
.prod-var { font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--ink-soft); grid-column: 1 / -1; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.swatches { display: flex; gap: 9px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 1px solid rgba(64, 46, 39, .18); position: relative; transition: transform .4s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.swatch[aria-pressed="true"]::after { opacity: 1; transform: none; }
.swatch:hover { transform: scale(1.12); }
.handoff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.handoff > div { padding: 28px 30px; display: flex; gap: 18px; align-items: flex-start; }
.handoff > div + div { border-left: 1px solid var(--line); }
.handoff b { font: 400 20px var(--f-display); display: block; margin-bottom: 4px; }
.handoff p { font-size: 15px; color: var(--ink-soft); }
.handoff i { font: italic 500 26px/1 var(--f-accent); color: var(--rose); }

/* ---------- timetable ---------- */
.tt-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; }
.tt-day { flex: 1; min-width: 78px; padding: 16px 10px; border-radius: 18px; border: 1px solid var(--line); text-align: center; transition: background .4s, color .4s, border-color .4s; }
.tt-day b { display: block; font: 400 24px var(--f-display); }
.tt-day span { font-size: 11px; letter-spacing: 0; text-transform: uppercase; opacity: .7; }
.tt-day[aria-pressed="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.tt-row { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); animation: plan-in .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.tt-row:first-child { border-top: 1px solid var(--line); }
.tt-time { font: 400 26px var(--f-display); }
.tt-row h3 { font-size: 23px; }
.tt-row .small { margin-top: 2px; }
.tt-sample { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: 0; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--blush); color: var(--espresso); margin-bottom: 26px; }
.tt-live { background: var(--paper); border-radius: 26px; padding: clamp(18px, 3vw, 40px); border: 1px solid var(--line); min-height: 320px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; text-align: left; font: 400 clamp(20px, 2vw, 27px)/1.25 var(--f-display); transition: color .4s; }
.faq-q:hover { color: var(--rose-deep); }
.faq-q i { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .4s, transform .6s var(--ease); }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-q i { background: var(--espresso); color: var(--cream); transform: rotate(180deg); }
.faq-item.is-open .faq-q i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 60px 30px 0; color: var(--ink-soft); max-width: 44em; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: 0; text-transform: uppercase; opacity: .75; }
.field input, .field select, .field textarea { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: 10px 0 12px; border-radius: 0; outline: 0; transition: border-color .4s; opacity: .95; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); box-shadow: 0 1px 0 var(--rose); }
.field input::placeholder, .field textarea::placeholder { color: currentColor; opacity: .4; }

/* contact */
.info { display: grid; gap: 30px; }
.info h3 { font-size: 13px; font-family: var(--f-body); letter-spacing: 0; text-transform: uppercase; font-weight: 500; color: var(--rose-deep); margin-bottom: 8px; }
.info p, .info a { font: 400 clamp(20px, 2vw, 26px)/1.35 var(--f-display); }
.info a:hover { color: var(--rose-deep); }
.hours { display: grid; grid-template-columns: auto auto; gap: 6px 28px; justify-content: start; font-size: 17px; }
.hours span:nth-child(odd) { color: var(--ink-soft); }

/* ---------- CTA band + footer ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(90px, 12vw, 180px); }
.cta .nc-mark { position: absolute; left: 50%; top: 50%; width: min(120%, 1500px); transform: translate(-50%, -50%); color: var(--rose); opacity: .16; pointer-events: none; }
.cta > .wrap { position: relative; }
.cta h2 { font-size: clamp(40px, 6.4vw, 98px); margin: 22px auto 28px; max-width: 12em; }
.cta .btn-row { justify-content: center; margin-top: 40px; }
.cta .mb-note { margin-top: 26px; }
.quote { font: 400 clamp(28px, 4.4vw, 62px)/1.14 var(--f-display); max-width: 16em; margin-inline: auto; text-align: center; }
.quote-by { margin-top: 28px; text-align: center; }

.ftr { background: var(--espresso); color: var(--cream); padding: clamp(64px, 8vw, 110px) 0 28px; position: relative; overflow: hidden; }
.ftr-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.ftr-logo { color: var(--rose); width: min(100%, 250px); }
.ftr p { color: rgba(247, 242, 236, .68); font-size: 15.5px; }
.ftr-top > div:first-child p { margin-top: 22px; max-width: 22em; }
.ftr h4 { font: 500 12px var(--f-body); letter-spacing: 0; text-transform: uppercase; color: var(--rose); margin-bottom: 20px; }
.ftr li + li { margin-top: 10px; }
.ftr li a { position: relative; transition: color .3s, padding .5s var(--ease); }
.ftr li a:hover { color: var(--blush); padding-left: 10px; }
.ftr-word { font: 400 min(11vw, 146px)/.9 var(--f-display); white-space: nowrap; text-align: center; color: rgba(173, 135, 129, .18); margin: clamp(48px, 7vw, 96px) 0 24px; letter-spacing: 0; }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(247, 242, 236, .55); }

/* sticky mobile book bar + toast */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; transform: translateY(140%); transition: transform .7s var(--ease); }
.dock.is-on { transform: none; }
.dock .btn { width: 100%; justify-content: center; box-shadow: 0 14px 40px -10px rgba(64, 46, 39, .5); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 900; transform: translate(-50%, 160%); background: var(--espresso); color: var(--cream); padding: 15px 22px 15px 18px; border-radius: 999px; font-size: 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 50px -14px rgba(64, 46, 39, .55); transition: transform .7s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast .nc-mark { width: 34px; color: var(--rose); flex: none; }
.toast .nc-mark .sw, .toast .nc-mark .sw-dot { clip-path: none; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1220px) {
  .hdr-nav, .hdr-cta .link-u { display: none; }
  .hdr-burger { display: block; }
}
@media (max-width: 1080px) {
  .plans, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --hdr: 66px; }
  body { font-size: 16px; }
  .hdr-logo svg { height: 26px; }
  .hdr-cta .btn { display: none; }
  .hero-grid, .phero-grid, .grid-2, .practice, .manifesto-grid, .room, .spot { grid-template-columns: 1fr; }
  .hero-vis { aspect-ratio: 1 / 1.08; max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-meta { gap: 22px; }
  .scroll-cue { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .practice-vis { display: none; }
  .practice-row { grid-template-columns: 30px 1fr; }
  .practice-row .tag { display: none; }
  .steps, .cards-3, .levels, .handoff { grid-template-columns: 1fr; }
  .levels > div + div, .handoff > div + div { border-left: 0; border-top: 1px solid var(--line-light); padding-left: 0; }
  .handoff > div + div { border-color: var(--line); padding-left: 30px; }
  .room:nth-child(even) .room-img { order: 0; }
  .room-img.arch { max-width: 420px; }
  .manifesto-side { max-width: 300px; }
  .spot-img { min-height: 280px; }
  .spot ul, .notes, .form { grid-template-columns: 1fr; }
  .tt-row { grid-template-columns: 76px 1fr; }
  .tt-row .tag { display: none; }
  .tt-row .btn { grid-column: 2; justify-self: start; }
  .dock { display: block; }
  .ftr { padding-bottom: 96px; }
  .toast { bottom: 84px; border-radius: 20px; }
}
@media (max-width: 600px) {
  .plans, .shop-grid, .cards-4, .ftr-top { grid-template-columns: 1fr; }
  .class-card { grid-template-columns: 1fr; }
  .class-card .arch { aspect-ratio: 4 / 3.4; }
  .btn { padding: 16px 24px; }
  .faq-a p { padding-right: 0; }
  .bar { font-size: 10.5px; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .split .w > span, .manifesto .mw { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .nc-mark .sw, .nc-mark .sw-dot { clip-path: none; transform: none; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   ROSE-PRIMARY THEME
   Dusty rose leads with cream type on top, as on the primary logo card.
   Every page opens on rose; cream carries the reading sections; espresso is
   kept for body text, the announcement strip and the footer.
   To deepen buttons for stronger text contrast, set --btn to var(--rose-deep).
   ========================================================================== */
:root { --btn: var(--rose); --line-light: rgba(247, 242, 236, .36); }
::selection { background: var(--espresso); color: var(--cream); }
html.js:not(.ready) body::before { background: var(--rose); }
.loader { background: var(--rose); color: var(--cream); }
.loader-line { background: var(--cream); }

/* rose sections */
.on-dark { background: var(--rose); color: var(--cream); }
.on-dark .lede, .on-dark .small, .on-dark .card p, .on-dark .levels p, .on-dark .eyebrow, .on-dark .chap-n,
.on-dark .card .ico, .on-dark .tour-cap span, .on-dark .mb-note, .on-dark .crumb, .on-dark .hero-meta span, .on-dark .scroll-cue { color: var(--cream); }
.on-dark .lede { font-weight: 500; }
.on-dark em { color: var(--espresso); }
.on-dark .crumb a:hover { color: var(--espresso); }
.on-dark .mb-note::before, .on-dark .tour-bar i, .on-dark .dots i.f, .on-dark .marquee span::after, .on-dark .scroll-cue i::after { background: var(--cream); }
.on-dark .dots i, .on-dark .tag { border-color: rgba(247, 242, 236, .6); }
.on-dark .card:hover { background: rgba(247, 242, 236, .12); }
.on-dark .hero-meta { border-color: var(--line-light); }
.on-dark .scroll-cue i { background: var(--line-light); }
.on-dark .hero-mark { color: var(--cream); opacity: .6; }
.on-dark .hero-arch-2 { border-color: var(--rose); }
.on-dark .hero-sun { background: radial-gradient(circle, rgba(247, 242, 236, .55) 0, rgba(247, 242, 236, 0) 68%); }
.cta.on-dark .nc-mark { color: var(--cream); opacity: .14; }
.on-dark .field input:focus, .on-dark .field select:focus, .on-dark .field textarea:focus { border-color: var(--espresso); box-shadow: 0 1px 0 var(--espresso); }

/* buttons */
.btn { --bg: var(--btn); --fg: var(--cream); --fill: var(--espresso); font-weight: 600; }
.btn-ghost { --bg: transparent; --fg: var(--rose-deep); --fill: var(--rose); border-color: var(--rose); }
.btn-ghost:hover { color: var(--cream); }
.btn-light, .on-dark .btn { --bg: var(--cream); --fg: var(--espresso); --fill: var(--espresso); }
.btn-light:hover, .on-dark .btn:hover { color: var(--cream); }
.on-dark .btn-ghost { --bg: transparent; --fg: var(--cream); --fill: var(--cream); border-color: rgba(247, 242, 236, .65); }
.on-dark .btn-ghost:hover { color: var(--espresso); }
.dock .btn { border: 1px solid rgba(247, 242, 236, .55); }

/* selected + featured states */
.pill[aria-pressed="true"], .tt-day[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--cream); }
.faq-item.is-open .faq-q i { background: var(--rose); border-color: var(--rose); color: var(--cream); }
.plan.is-feat { background: var(--rose); border-color: var(--rose); color: var(--cream); }
.plan.is-feat .plan-cat, .plan.is-feat .plan-sub, .plan.is-feat .plan-price small, .plan.is-feat li svg { color: var(--cream); }
.plan.is-feat .plan-price { border-color: var(--line-light); }
.plan.is-feat .btn { --bg: var(--cream); --fg: var(--espresso); --fill: var(--espresso); }
.plan.is-feat::after { background: radial-gradient(circle, rgba(247, 242, 236, .32), transparent 70%); }
.plan-flag { background: var(--cream); color: var(--rose-deep); }

/* header rides on the rose hero until the page scrolls */
.hero, .phero { margin-top: calc(-1 * var(--hdr)); padding-top: calc(var(--hdr) + clamp(28px, 5vw, 72px)); }
.hdr:not(.is-solid) { color: var(--cream); }
.hdr:not(.is-solid) .hdr-logo { color: var(--cream); }
.hdr:not(.is-solid) .hdr-burger span, .hdr:not(.is-solid) .hdr-nav a::after { background: var(--cream); }
.hdr:not(.is-solid) .btn { --bg: var(--cream); --fg: var(--espresso); }
.hdr:not(.is-solid) .btn:hover { color: var(--cream); }
.hdr-logo, .hdr-burger span { transition: color .4s, background .4s, transform .5s var(--ease), top .5s var(--ease); }
.menu-open .hdr { color: var(--ink); background: var(--cream); }
.menu-open .hdr .hdr-logo { color: var(--rose); }
.menu-open .hdr .hdr-burger span { background: var(--ink); }

/* long chapter labels wrap on phones instead of pushing the page wide */
@media (max-width: 600px) {
  .chap { gap: 12px; }
  .chap-line { width: 36px; flex: none; }
  .chap-t { white-space: normal; letter-spacing: 0; }
}

