/* Ferne Studio — tokens */
:root {
  --paper: #fbf7f9;
  --ink: #2b1a2e;
  --plum: #5b3a63;
  --orchid: #c8a2d0;
  --blush: #f2dce3;
  --pistachio: #dce8b9;
  --muted: #6c5a70;
  --line: rgba(43, 26, 46, 0.14);

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Anchored sections clear the sticky header */
section[id] { scroll-margin-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Bodoni Moda thins its hairlines as optical size grows; pin a sturdier cut for legibility */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

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

/* Buttons and links */
/* Hover: a fill glides in from the left like a reformer carriage on its rails */
.btn {
  --fill: var(--plum);
  --fill-text: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem;
  border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  background: var(--fill);
  transform: translateX(-101%);
  transition: transform 0.8s var(--ease);
}
@media (hover: hover) {
  .btn:hover { color: var(--fill-text); border-color: var(--fill); }
  .btn:hover::before { transform: none; }
}
.btn:focus-visible::before { transform: none; }
.btn:focus-visible { color: var(--fill-text); }
.btn:active { transform: scale(0.98); }
.btn--small { min-height: 42px; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn--light { --fill: var(--paper); --fill-text: var(--ink); background: var(--pistachio); color: var(--ink); border-color: var(--pistachio); }
.btn--outline { --fill: var(--ink); --fill-text: var(--paper); background: transparent; color: var(--ink); }

.link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--orchid);
  transition: text-decoration-color 0.3s, text-underline-offset 0.3s var(--ease);
}
.link:hover { text-decoration-color: var(--ink); text-underline-offset: 0.5em; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 249, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex; align-items: center; gap: 2rem;
  height: 76px;
}
.logo {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 600; font-style: italic;
  letter-spacing: -0.02em; line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  text-decoration: none; font-weight: 500; font-size: 0.9688rem;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  position: relative; cursor: pointer; margin-right: -10px;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Absolute, not fixed: the nav's backdrop-filter makes it the containing block */
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  overflow-y: auto;
  background: var(--paper);
  padding: 2rem var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.25;
  text-decoration: none; padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { align-self: stretch; }
.mobile-menu__meta { color: var(--muted); font-size: 0.9375rem; margin-top: auto; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Fine paper grain */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .23 0 0 0 0 .39 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  --title: clamp(4.4rem, 15.5vw, 14.5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(1rem, 2vw, 1.5rem);
  min-height: calc(100svh - 76px);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
}

.hero__title {
  grid-column: 1 / -1; grid-row: 1;
  position: relative; z-index: 3;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--title);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 28;
  margin-left: -0.06em;
  pointer-events: none;
}
.hero__line { display: block; }
.hero__line--2 {
  font-style: italic;
  font-weight: 400;
  color: var(--plum);
  letter-spacing: -0.04em;
  text-shadow: 0 0 2px rgba(251, 247, 249, 0.7), 0 0 28px rgba(251, 247, 249, 0.6);
  padding-left: 1.1em;
}
@keyframes unhurried {
  to { letter-spacing: -0.005em; }
}

.hero__text {
  grid-column: 1 / 7; grid-row: 2;
  align-self: start;
  position: relative; z-index: 3;
  padding-top: clamp(2.25rem, 4.5vw, 4rem);
  max-width: 32rem;
}
.hero__lead {
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.78;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem 2rem; margin-top: clamp(2rem, 3.5vw, 2.75rem);
}
.hero__note {
  margin-top: 1.1rem;
  max-width: 26rem;
  font-size: 0.875rem; line-height: 1.5;
  color: var(--muted);
}
.hero__proof {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--muted);
}
.hero__proof strong { color: var(--ink); font-weight: 600; }
.stars { display: flex; gap: 2px; color: var(--plum); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* Primary hero call to action with the intro price built in */
.btn--hero {
  min-height: 66px;
  padding: 0 0.5625rem 0 2rem;
  gap: 1.5rem;
  font-size: 1.0625rem;
  box-shadow: 0 22px 44px -20px rgba(43, 26, 46, 0.6);
}
.btn__price {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 50px; padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--pistachio); color: var(--ink);
  font-family: var(--serif); font-size: 1.375rem; font-weight: 600;
  letter-spacing: -0.01em;
  transition: padding 0.45s var(--ease);
}
.btn__price s {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  opacity: 0.55;
}
.btn--hero:hover .btn__price { padding: 0 1.45rem; }

/* Arched photo */
.hero__visual {
  grid-column: 8 / -1; grid-row: 1 / 3;
  align-self: start;
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
  margin-top: calc(var(--title) * 0.5);
  margin-right: clamp(0rem, 2vw, 1.5rem);
}
.arch {
  border-radius: 999px 999px 28px 28px;
  aspect-ratio: 47 / 64;
  width: 100%;
}
.arch--photo {
  position: relative; z-index: 1;
  overflow: hidden;
  background: var(--blush);
  margin: 0;
}
.arch--photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.arch--back {
  position: absolute; inset: 0; z-index: 0;
  background: var(--blush);
  transform: translate(-9%, 7%);
}
.arch--line {
  position: absolute; inset: 0; z-index: 2;
  border: 1px solid var(--orchid);
  pointer-events: none;
  transform: translate(5%, -4%);
}

/* Breathing badge: 4 counts in, 4 counts out */
.breath {
  position: absolute; z-index: 3;
  top: 9%; right: -6%;
  width: clamp(92px, 9vw, 124px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -18px rgba(91, 58, 99, 0.45);
}
.breath__core {
  grid-area: 1 / 1;
  width: 74%; height: 74%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ead8ef, var(--orchid) 72%);
  animation: breathe 8s ease-in-out infinite;
}
.breath__word {
  grid-area: 1 / 1;
  position: relative;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  color: var(--ink);
}
.breath__word--in { animation: word-in 8s ease-in-out infinite; }
.breath__word--out { animation: word-out 8s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(0.72); }
  50% { transform: scale(1); }
}
@keyframes word-in {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes word-out {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* Next open class card */
.next-class {
  position: absolute; z-index: 4;
  left: -16%; bottom: 7%;
  width: 272px;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 22px;
  background: rgba(251, 247, 249, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 60px -28px rgba(91, 58, 99, 0.5);
}
.next-class__when { font-size: 0.8125rem; color: var(--muted); }
.next-class__name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em;
  margin-top: 0.2rem;
}
.seats { display: flex; gap: 4px; margin-top: 1rem; }
.seats i {
  flex: 1; height: 7px; border-radius: 4px;
  background: var(--plum);
}
.seats i.is-free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--plum); }
.next-class__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: 0.85rem;
  font-size: 0.875rem; color: var(--muted);
}
.next-class__foot .btn { min-height: 44px; padding: 0 1rem; font-size: 0.875rem; }

/* Hero load sequence */
.hero__line--1, .hero__line--2, .hero__lead, .hero__actions, .hero__note, .hero__proof,
.arch--back, .arch--line, .breath, .next-class, .facts {
  opacity: 0;
}
.hero__line--1 { animation: rise 1.1s var(--ease) 0.1s forwards; }
.hero__line--2 { animation: rise 1.1s var(--ease) 0.25s forwards, unhurried 3s var(--ease) 0.6s forwards; }
.hero__lead { animation: rise 1s var(--ease) 0.55s forwards; }
.hero__actions { animation: rise 1s var(--ease) 0.7s forwards; }
.hero__note { animation: rise 1s var(--ease) 0.8s forwards; }
.hero__proof { animation: rise 1s var(--ease) 0.9s forwards; }
.arch--photo { animation: unveil 1.6s var(--ease) 0.15s both; }
.arch--photo img { animation: settle 2.6s var(--ease) 0.15s both; }
.arch--back { animation: drift-back 1.8s var(--ease) 0.45s forwards; }
.arch--line { animation: drift-line 1.8s var(--ease) 0.6s forwards; }
.next-class { animation: rise-card 1.2s var(--ease) 1.1s forwards; }
.breath { animation: fade 1.2s var(--ease) 1.35s forwards; }
.facts { animation: fade 1.2s var(--ease) 1.2s forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-card {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { to { opacity: 1; } }
@keyframes unveil {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes settle {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}
@keyframes drift-back {
  from { opacity: 0; transform: translate(-2%, 2%); }
  to { opacity: 1; transform: translate(-9%, 7%); }
}
@keyframes drift-line {
  from { opacity: 0; transform: translate(0, 0); }
  to { opacity: 1; transform: translate(5%, -4%); }
}

.facts {
  grid-column: 1 / -1; grid-row: 3;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 1.5rem 1.5rem 0 0;
}
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1;
  letter-spacing: -0.02em;
}
.facts span { color: var(--muted); font-size: 0.9688rem; line-height: 1.35; }

/* Section heads */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { color: var(--muted); max-width: 32rem; }

/* Timetable */
.timetable { padding-block: var(--section); }

.tt__days {
  display: flex; gap: 0.5rem;
  overflow-x: auto; scrollbar-width: none;
  padding: 0.25rem 0;
}
.tt__days::-webkit-scrollbar { display: none; }
/* Day tabs use the studio's arch shape */
.tt__days button {
  flex: 1 0 0; min-width: 72px; min-height: 76px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px 999px 18px 18px;
  background: transparent; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tt__days button:hover { border-color: var(--ink); }
.tt__dow { font-size: 0.875rem; color: var(--muted); transition: color 0.35s; }
.tt__date { font-family: var(--serif); font-size: 1.5rem; line-height: 1; font-weight: 500; }
.tt__days button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tt__days button[aria-selected="true"] .tt__dow { color: rgba(251, 247, 249, 0.75); }

.tt__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 1.75rem; }
.chip {
  min-height: 44px; padding: 0 1.15rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--pistachio); border-color: var(--pistachio); }

.tt__list { border-top: 1px solid var(--ink); }
.tt__slot {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto 8.5rem 10rem;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.tt__time {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em;
}
.tt__info { display: flex; flex-direction: column; min-width: 0; }
.tt__name { font-weight: 600; }
.tt__meta { font-size: 0.9375rem; color: var(--muted); }
.tt__spots { font-size: 0.9375rem; }
.tt__slot.is-full .tt__spots { color: var(--muted); }
.tt__action { justify-self: end; }
.tt__action .btn { min-height: 44px; }
.tt__more { padding: 0.75rem 0 0; }
.tt__empty {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
button.link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }

/* One-to-one coaching */
.coaching { padding-block: var(--section); }

.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  --stagger: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: var(--stagger);
}
/* Stagger the middle card for an editorial rhythm */
.coach-card:nth-child(2) { transform: translateY(var(--stagger)); }

.coach-card {
  display: flex; flex-direction: column;
  padding: 0.75rem;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -50px rgba(91, 58, 99, 0.35);
}
.coach-card__media {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: 999px 999px 20px 20px;
  overflow: hidden;
  background: var(--blush);
}
.coach-card__media--pistachio { background: var(--pistachio); }
.coach-card__media--orchid { background: #ead8ef; }
.coach-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.coach-card:hover .coach-card__media img { transform: scale(1.045); }
.coach-card__tag {
  position: absolute; left: 0.875rem; bottom: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(251, 247, 249, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8125rem; font-weight: 600;
}

.coach-card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.6rem 1.1rem 0.85rem;
}
.coach-card__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  line-height: 1.1; letter-spacing: -0.015em;
}
.coach-card__desc { color: var(--muted); margin-top: 0.75rem; }
.coach-card__list {
  display: grid; gap: 0.55rem;
  margin: 1.4rem 0 1.75rem;
  font-size: 0.9688rem;
}
.coach-card__list li { position: relative; padding-left: 1.4rem; }
.coach-card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orchid);
}
.coach-card__foot {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 1.1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.coach-card__price { display: flex; align-items: baseline; gap: 0.6rem; line-height: 1.2; }
.coach-card__foot .btn { min-height: 48px; }
.coach-card__price strong {
  font-family: var(--serif); font-weight: 500;
  font-size: 2rem; letter-spacing: -0.02em;
}
.coach-card__price span { font-size: 0.875rem; color: var(--muted); }
.coach-hint { display: none; margin-top: 0.25rem; font-size: 0.9375rem; color: var(--muted); }

/* Classes: dark interactive list with a sticky arched photo */
.classes {
  --on-dark: rgba(251, 247, 249, 0.72);
  --line-dark: rgba(251, 247, 249, 0.14);
  --dot: var(--pistachio);
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-block: var(--section);
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}
.classes::before {
  content: ""; position: absolute; pointer-events: none;
  width: 70vw; max-width: 900px; aspect-ratio: 1;
  left: -30vw; bottom: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 208, 0.16), transparent 65%);
}
.classes .section-head p { color: var(--on-dark); }

.class-browser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.class-list { border-top: 1px solid rgba(251, 247, 249, 0.3); }
.cls {
  border-bottom: 1px solid var(--line-dark);
  transition: opacity 0.45s var(--ease);
}
@media (hover: hover) {
  .class-list:hover .cls:not(:hover):not(.is-open) { opacity: 0.45; }
}
.cls h3 { font: inherit; }
.cls__btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 2.4vw, 1.85rem) 0;
  border: 0; background: transparent; color: inherit;
  text-align: left; cursor: pointer;
}
.cls__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.015em;
  transition: transform 0.6s var(--ease), color 0.4s var(--ease);
}
.cls__btn:hover .cls__name { transform: translateX(0.4rem); }
.cls.is-open .cls__name { font-style: italic; color: #e7d3ec; }
.cls__meta {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.875rem; color: var(--on-dark);
  white-space: nowrap;
}
.cls__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(251, 247, 249, 0.28);
  position: relative;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.cls__icon::before, .cls__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease), background 0.3s;
}
.cls__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.cls__btn:hover .cls__icon { border-color: var(--paper); }
.cls.is-open .cls__icon { background: var(--pistachio); border-color: var(--pistachio); transform: rotate(180deg); }
.cls.is-open .cls__icon::before, .cls.is-open .cls__icon::after { background: var(--ink); }
.cls.is-open .cls__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.cls__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.cls__panel > div { overflow: hidden; }
.cls__panel > div > * { opacity: 0; transition: opacity 0.4s var(--ease); }
.cls.is-open .cls__panel { grid-template-rows: 1fr; }
.cls.is-open .cls__panel > div > * { opacity: 1; transition-delay: 0.12s; }

.cls__thumb { display: none; }
.cls__desc { color: var(--on-dark); max-width: 34rem; }
.cls__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: 1.5rem 0 1.6rem;
  max-width: 34rem;
}
.cls__facts dt { font-size: 0.8125rem; color: var(--on-dark); }
.cls__facts dd { margin: 0.2rem 0 0; font-size: 0.9688rem; }
.cls__panel .link { margin-bottom: 1.75rem; }
.link--light { color: var(--paper); text-decoration-color: var(--orchid); }
.link--light:hover { text-decoration-color: var(--pistachio); }

.legend {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.875rem; color: var(--on-dark);
}
.legend .dots i { border: 0; background: var(--dot); }
.legend .dots i:nth-child(1) { opacity: 0.2; }
.legend .dots i:nth-child(2) { opacity: 0.4; }
.legend .dots i:nth-child(3) { opacity: 0.6; }
.legend .dots i:nth-child(4) { opacity: 0.8; }

/* Sticky arched photo that follows the chosen class */
.class-visual {
  position: sticky; top: 110px;
}
.class-visual::before {
  content: ""; position: absolute; inset: 0 0 auto 0;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  border: 1px solid rgba(200, 162, 208, 0.45);
  transform: translate(5%, -4%);
  pointer-events: none;
}
.class-visual__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  background: var(--plum);
}
.class-visual__arch img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease);
}
.class-visual__arch img.is-active { opacity: 1; transform: none; }
.class-visual__caption {
  margin-top: 1.25rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.375rem; color: #e7d3ec;
}

.dots { display: inline-flex; gap: 5px; }
.dots i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--dot, var(--plum));
}
.dots[data-level="1"] i:nth-child(-n+1),
.dots[data-level="2"] i:nth-child(-n+2),
.dots[data-level="3"] i:nth-child(-n+3),
.dots[data-level="4"] i:nth-child(-n+4),
.dots[data-level="5"] i:nth-child(-n+5) { background: var(--dot, var(--plum)); }
.dots--custom i { border-style: dashed; }

/* Testimonials */
.stories {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blush);
  padding-block: var(--section);
}
/* Two fine concentric rings, echoing the breathing circle */
.stories::before,
.stories::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%;
  aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(91, 58, 99, 0.12);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stories::before { width: min(78rem, 150vw); }
.stories::after { width: min(56rem, 115vw); border-color: rgba(91, 58, 99, 0.09); }

.stories__inner { text-align: center; }
.stories__title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-style: italic; font-weight: 400;
  letter-spacing: 0;
  color: var(--plum);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.slider { position: relative; max-width: 56rem; margin: 0 auto; }
.stories__mark {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(11rem, 20vw, 18rem);
  line-height: 0.8;
  color: var(--orchid);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.slider__track {
  position: relative;
  display: grid;
  padding-top: clamp(5.5rem, 10vw, 8.5rem);
}
.quote { grid-area: 1 / 1; }
.quote[hidden] { display: block; visibility: hidden; }
.quote blockquote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.625rem, 3.4vw, 2.875rem);
  line-height: 1.24; letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote figcaption {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  text-align: left;
}
.quote__mono {
  flex: none;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--orchid);
  font-family: var(--serif); font-style: italic; font-size: 1.0625rem;
  color: var(--plum);
}
.quote__who { display: flex; flex-direction: column; font-size: 0.9688rem; line-height: 1.4; }
.quote__who span { color: var(--muted); }

.quote blockquote, .quote figcaption {
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
}
.quote figcaption { transition-delay: 0.08s; }
.quote:not(.is-active) blockquote,
.quote:not(.is-active) figcaption { opacity: 0; transform: translateY(16px); filter: blur(6px); }

.slider__controls {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 4.5vw, 3.5rem);
}
.slider__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(43, 26, 46, 0.25); background: transparent;
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s;
}
.slider__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--blush); }
.slider__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.story-tabs { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.story-tabs button {
  position: relative;
  padding: 0.6rem 0.1rem;
  border: 0; background: transparent; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
}
.story-tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem;
  height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.story-tabs button:hover,
.story-tabs button[aria-selected="true"] { color: var(--ink); }
.story-tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.stories__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 56rem;
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  border-top: 1px solid rgba(91, 58, 99, 0.2);
}
.stories__stats li {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.75rem 1.25rem 0;
}
.stories__stats li + li { border-left: 1px solid rgba(91, 58, 99, 0.2); }
.stories__stats strong {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.25rem, 3.6vw, 3rem); line-height: 1;
  letter-spacing: -0.02em;
}
.stories__stats span { font-size: 0.9375rem; color: var(--muted); }

/* Pricing */
.pricing { padding-block: var(--section); }

.intro-offer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem; flex-wrap: wrap;
  background: var(--ink); color: var(--paper);
  border-radius: 28px;
  padding: 1rem 1rem 1rem 2rem;
  margin-bottom: 2.5rem;
}
.intro-offer p { max-width: 46rem; }
.intro-offer strong { font-weight: 600; color: var(--pistachio); }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}
.plan--featured {
  background: var(--plum); color: var(--paper);
  border-color: var(--plum);
  border-radius: 28px 28px 28px 120px;
}
.plan { position: relative; }
.plan__badge {
  position: absolute; top: -0.85rem; left: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 0 0 4px var(--paper);
  font-size: 0.8125rem; font-weight: 600;
  background: var(--pistachio); color: var(--ink);
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.plan__name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.875rem; letter-spacing: -0.01em; line-height: 1.1;
}
.plan__fit { color: var(--muted); margin-top: 0.6rem; min-height: 3.2em; }
.plan--featured .plan__fit { color: rgba(251, 247, 249, 0.78); }
.plan__price {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  margin: 1.75rem 0;
  padding-bottom: 1.75rem; border-bottom: 1px solid var(--line);
}
.plan--featured .plan__price { border-color: rgba(251, 247, 249, 0.22); }
.plan__amount {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em;
}
.plan__per { color: var(--muted); font-size: 0.9375rem; }
.plan--featured .plan__per { color: rgba(251, 247, 249, 0.78); }
.plan__list { display: grid; gap: 0.75rem; align-content: start; margin-bottom: 2.25rem; flex: 1; }
.plan__list li { position: relative; padding-left: 1.6rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orchid);
}
.plan--featured .plan__list li::before { background: var(--pistachio); }
.plan .btn { align-self: stretch; }

/* FAQ */
.faq { padding-block: 0 var(--section); }
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq__head { position: sticky; top: 110px; }
.faq__head h2 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); }
.faq__head p { color: var(--muted); margin-top: 1.25rem; max-width: 26rem; }
.faq__head a { color: var(--ink); text-decoration-color: var(--orchid); text-underline-offset: 0.25em; }

.accordion { border-top: 1px solid var(--ink); }
.acc { border-bottom: 1px solid var(--line); }
.acc h3 { font-size: inherit; font-weight: inherit; }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; border: 0; background: transparent; cursor: pointer;
  text-align: left;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500;
  line-height: 1.3; letter-spacing: -0.005em;
}
.acc__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); position: relative;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn:hover .acc__icon { border-color: var(--ink); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--pistachio); border-color: var(--pistachio); transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  color: var(--muted); max-width: 40rem;
  padding-bottom: 1.6rem; padding-right: 3.5rem;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc.is-open .acc__panel p { opacity: 1; transition-delay: 0.1s; }

/* CTA */
.cta {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute;
  width: 46vw; max-width: 640px; aspect-ratio: 1;
  right: -12vw; top: -18vw;
  border-radius: 50%;
  border: 1px solid rgba(200, 162, 208, 0.35);
  box-shadow: 0 0 0 5vw rgba(200, 162, 208, 0.06), 0 0 0 10vw rgba(200, 162, 208, 0.04);
}
.cta__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.cta__title {
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.cta__lead { color: rgba(251, 247, 249, 0.78); max-width: 26rem; }

/* What the visitor chose, carried over from whichever button they pressed */
.booking-pick {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 0.1rem 1rem;
  padding: 0.9rem 1.1rem 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(251, 247, 249, 0.2);
  border-radius: 20px;
  background: rgba(251, 247, 249, 0.05);
}
.booking-pick__label { grid-column: 1; font-size: 0.875rem; color: rgba(251, 247, 249, 0.62); }
.booking-pick__value {
  grid-column: 1;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.3;
  color: var(--paper);
}
.booking-pick__change {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--pistachio);
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1.5px;
  text-align: right;
}

/* Where and when, right next to the booking form */
.visit {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(251, 247, 249, 0.14);
}
.visit dt { font-size: 0.875rem; color: rgba(251, 247, 249, 0.6); margin-bottom: 0.4rem; }
.visit dd { margin: 0; font-size: 0.9688rem; line-height: 1.6; color: rgba(251, 247, 249, 0.85); }
.visit__today { display: block; font-weight: 600; color: var(--pistachio); }
.visit__today[hidden] { display: none; }

.cta__form {
  display: flex; gap: 0.5rem; margin-top: 1.5rem;
  background: rgba(251, 247, 249, 0.08);
  border: 1px solid rgba(251, 247, 249, 0.2);
  border-radius: 999px; padding: 6px;
}
.cta__form:focus-within { border-color: var(--orchid); }
.cta__form input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; color: var(--paper);
  font: inherit; padding: 0 1rem;
}
.cta__form input::placeholder { color: rgba(251, 247, 249, 0.5); }
.cta__form input:focus { outline: none; }
.cta__form .btn { min-height: 46px; padding: 0 1.25rem; }
.cta__msg { min-height: 1.6em; margin-top: 0.85rem; font-size: 0.9375rem; color: var(--pistachio); }
.cta__msg.is-error { color: #f2b8c6; }

/* Footer */
.footer { background: var(--ink); color: rgba(251, 247, 249, 0.72); padding-bottom: 2rem; font-size: 0.9375rem; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3.5rem; padding-bottom: 3rem;
  border-top: 1px solid rgba(251, 247, 249, 0.14);
}
.footer h3 { font-size: 0.9375rem; font-weight: 600; color: var(--paper); margin-bottom: 0.6rem; }
.footer a { text-decoration-color: rgba(251, 247, 249, 0.3); text-underline-offset: 0.2em; }
.footer a:hover { color: var(--paper); }
.logo--footer { color: var(--paper); display: inline-block; margin-bottom: 0.75rem; font-size: 2.4rem; }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.875rem; color: rgba(251, 247, 249, 0.55);
}

/* Tablet */
@media (max-width: 1024px) {
  .class-browser { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; }
  .cls__btn { gap: 1rem; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--featured { grid-column: 1 / -1; grid-row: 1; border-radius: 28px 28px 28px 90px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { height: 68px; }

  .hero__inner {
    --title: clamp(4rem, 22vw, 9rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    min-height: 0;
    padding-top: 2.25rem;
  }
  .hero__title, .hero__text, .hero__visual, .facts { grid-column: 1; grid-row: auto; }
  .hero__line--2 { padding-left: 0.55em; }
  .hero__text { padding-top: 2rem; max-width: none; }
  .hero__visual {
    width: min(calc(100% - 1.75rem), 420px);
    margin: 3.5rem 0 2.5rem;
  }
  .next-class { left: -1.75rem; bottom: -2.25rem; width: min(268px, 88%); }
  .breath { right: -0.5rem; top: 7%; }
  .facts { grid-template-columns: 1fr; margin-top: 3rem; }
  .facts li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .facts li + li { padding-left: 0; border-left: 0; }

  .section-head { grid-template-columns: 1fr; }

  .coach-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 0; }
  .coach-card:nth-child(2) { transform: none; }

  .class-browser { grid-template-columns: minmax(0, 1fr); }
  .class-visual { display: none; }
  .cls__btn { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name icon" "meta icon"; row-gap: 0.6rem; }
  .cls__name { grid-area: name; }
  .cls__meta { grid-area: meta; }
  .cls__icon { grid-area: icon; }
  .cls__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; margin-bottom: 1.25rem; background: var(--plum); }
  .cls__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cls__facts { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }

  .stories__stats { grid-template-columns: minmax(0, 1fr); }
  .stories__stats li { padding: 1.25rem 0; }
  .stories__stats li + li { border-left: 0; border-top: 1px solid rgba(91, 58, 99, 0.2); }

  .intro-offer { border-radius: 24px; padding: 1.5rem; }
  .intro-offer .btn { width: 100%; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { grid-column: auto; border-radius: 28px 28px 28px 80px; }
  .plan__fit { min-height: 0; }

  .faq__inner { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .acc__panel p { padding-right: 0; }

  .cta__inner { grid-template-columns: 1fr; }
  .cta::before { width: 90vw; right: -40vw; top: -30vw; }
  .cta__form { flex-direction: column; border-radius: 24px; padding: 8px; }
  .cta__form input { min-height: 48px; }
  .cta__form .btn { width: 100%; min-height: 50px; }
}

@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__actions { justify-content: flex-start; }
  .btn--hero { padding-left: 1.4rem; gap: 0.75rem; font-size: 1rem; }
  .btn__price { padding: 0 0.95rem; font-size: 1.25rem; }
}

/* Phone refinements: readable text, 44px+ tap targets, less vertical crowding */
@media (max-width: 860px) {
  body { line-height: 1.65; }

  /* Tap targets */
  .logo { padding-block: 6px; }
  .story-tabs { gap: 0.25rem; }
  .story-tabs button { min-height: 44px; min-width: 44px; padding: 0.6rem 0.65rem; font-size: 1rem; }
  .story-tabs button::after { left: 0.65rem; right: 0.65rem; }
  .footer p a,
  .footer__base a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer p:has(a) { line-height: 1.2; }

  /* Small text gets a size bump */
  .hero__note { font-size: 0.9375rem; }
  .coach-card__tag,
  .plan__badge,
  .next-class__when { font-size: 0.875rem; }
  .cls__facts dt { font-size: 0.875rem; }
  .cls__facts dd,
  .coach-card__list,
  .plan__list { font-size: 1rem; }
  .quote__who { font-size: 1rem; }

  /* Hero: give the stacked CTA group room to breathe */
  .hero__actions { gap: 0.75rem; }
  .hero__note { margin-top: 0.75rem; }
  .hero__proof { margin-top: 2rem; }

  /* Coaching: a swipeable row instead of three tall stacked cards */
  .coach-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 360px);
    gap: 0.875rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 1.5rem;
    scrollbar-width: none;
  }
  .coach-grid::-webkit-scrollbar { display: none; }
  .coach-card { scroll-snap-align: start; }
  .coach-card__media { aspect-ratio: 4 / 3.3; border-radius: 160px 160px 18px 18px; }
  .coach-card__body { padding: 1.35rem 0.75rem 0.5rem; }
  .coach-card__list { margin: 1.1rem 0 1.4rem; }
  .coach-hint { display: flex; }

  /* Classes */
  .cls__btn { padding: 1.35rem 0; }
  .cls__name { font-size: clamp(1.75rem, 8vw, 2.25rem); }

  /* Member figures: compact rows instead of a tall centred stack */
  .stories__stats li {
    display: grid; grid-template-columns: 6.5rem minmax(0, 1fr);
    align-items: center; gap: 1rem;
    text-align: left;
  }
  .stories__stats strong { font-size: 2.25rem; }

  /* Pricing */
  .plan { padding: 1.75rem 1.4rem; }
  .intro-offer p { font-size: 1rem; }

  /* FAQ */
  .acc__btn { padding: 1.35rem 0; min-height: 64px; }
}

/* Phone: keep booking one tap away, and fit the timetable to a narrow screen */
@media (max-width: 860px) {
  .nav__inner { gap: 0.5rem; }
  section[id] { scroll-margin-top: 68px; }
  .nav__cta { display: inline-flex; min-height: 44px; padding: 0 1.1rem; margin-right: 0.25rem; }

  .tt__days {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }
  .tt__days button { flex: 0 0 auto; min-width: 66px; scroll-snap-align: start; }
  .tt__filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .tt__filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  /* Time on the left; class on top; spots and button share the line below */
  .tt__slot {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    grid-template-areas: "time info" "time foot";
    row-gap: 0.6rem;
  }
  .tt__time { grid-area: time; align-self: start; padding-top: 0.2rem; font-size: 1.375rem; }
  .tt__info { grid-area: info; }
  .tt__spots { grid-area: foot; justify-self: start; align-self: center; font-size: 0.9375rem; color: var(--muted); }
  .tt__action { grid-area: foot; justify-self: end; }
  .tt__slot .dots { display: none; }

  .booking-pick { grid-template-columns: minmax(0, 1fr); }
  .booking-pick__change { grid-column: 1; grid-row: auto; justify-self: start; }
  .visit { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .nav__cta-extra { display: none; }
}

@media (max-width: 360px) {
  .hero__inner { --title: 3.6rem; }
  .btn--hero { padding-left: 1.1rem; font-size: 0.9375rem; }
  .btn__price s, .btn__price .sr-only { display: none; }
  .story-tabs button { padding-inline: 0.45rem; }
  .slider__controls { gap: 0.5rem; }
  .coach-card__foot .btn { white-space: normal; text-align: center; padding: 0.5rem 1rem; }
  .next-class { padding-inline: 1rem; }
  .next-class__foot .btn { padding: 0 0.85rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__line--2 { letter-spacing: -0.005em; }
  .breath__core { transform: scale(0.9); }
  .breath__word--out { display: none; }
  .breath__word--in { opacity: 1; }
}
