/* ============================================================
   Bam & Bloom. Mahjong with Erin.
   v0.1 design pass. Mobile-first, token-driven.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Brand (docs/BRIEF.md) */
  --cream: #FEF9EE;
  --ink: #1A1A1A;
  --navy: #1C2A52;
  --blush: #F2CDD9;
  --gold: #C6A053;
  --gold-text: #8F6E22;

  /* Accents, used sparingly */
  --jade: #3E7A5A;
  --red: #B5332E;

  /* Derived tints */
  --cream-deep: #F8F0DC;       /* alternating section bands */
  --cream-card: #FFFDF8;       /* tile faces, cards */
  --blush-wash: #F9E6EC;       /* kids + contact bands: blush over cream, kept light */
  --ink-soft: #55514A;         /* secondary text, AA on cream */
  --line: rgba(26, 26, 26, .14);
  --line-strong: rgba(26, 26, 26, .32);
  --shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 10px 30px -14px rgba(28, 42, 82, .25);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --fs-eyebrow: .78rem;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2.1rem, 2.6vw + 1.2rem, 3.4rem);
  --fs-h1: clamp(2.9rem, 6vw + 1rem, 5.6rem);

  /* Layout */
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1180px;
  --section: clamp(4rem, 9vw, 8rem);
  --radius: 16px;
  --radius-sm: 10px;
  --tap: 44px;

  /* Tiles */
  /* Seven tiles + gaps must fit the narrowest phones (320px) */
  --tile-w: min(44px, calc((100vw - 32px - 36px - 12px) / 7));
  --tile-gap: 6px;

  /* Header */
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums; /* Cormorant's old-style figures make 101 read as "ioi" */
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.005em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--ink); }
strong { font-weight: 500; }
small { font-size: .875em; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: .6rem 1rem; border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: var(--section); position: relative; }
.section--deep { background: var(--cream-deep); --gold-text: #7A5C1B; } /* keeps AA on the deeper band */
.section--blush { background: var(--blush-wash); --gold-text: #7A5C1B; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .9rem;
}
.section__title {
  font-size: var(--fs-h2);
  max-width: 16ch;
}
.section__title em { font-style: italic; font-weight: 400; }
.section__lede {
  margin-top: 1.1rem;
  max-width: 52ch;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.1rem;
}
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__lede a { white-space: nowrap; padding-block: .6rem; } /* inline, so a trailing period stays with it; the padding makes a 44px target */

.code {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold-text);
  border: 1px solid rgba(143, 110, 34, .45);
  border-radius: 6px;
  padding: .05em .45em .02em;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--tap);
  padding: .7rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(28, 42, 82, .6); }
.btn--ghost:hover { background: rgba(26, 26, 26, .06); }
.btn--small { font-size: .95rem; padding: .55rem 1.15rem; }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-compact { border-bottom-color: var(--line); }

.site-header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: height .3s ease;
}
.site-header.is-compact .site-header__inner { height: 62px; }

.brand { display: inline-flex; align-items: center; border-radius: 50%; }
.brand { border-radius: 6px; }
.brand__mark {
  width: auto; height: 50px;
  transition: height .3s ease;
}
.site-header.is-compact .brand__mark { height: 40px; }

.nav { display: flex; align-items: center; }

.nav__toggle {
  width: var(--tap); height: var(--tap);
  display: inline-grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%;
  cursor: pointer; color: var(--ink);
  position: relative;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block; width: 22px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle-bar { position: relative; }
.nav__toggle-bar::before, .nav__toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav__panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.25rem;
  display: none;
  box-shadow: 0 24px 40px -24px rgba(26, 26, 26, .25);
}
.nav__panel.is-open { display: block; }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex; align-items: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__cta { margin-top: 1rem; width: 100%; }
/* Light scrim under the open menu (added by main.js); it sits below the sticky header */
.nav__scrim {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(26, 26, 26, .28);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav__scrim.is-open { opacity: 1; pointer-events: auto; }
.site-header.is-menu-open { background: var(--cream); }   /* the bar stays cream above the scrim */
@media (min-width: 880px) { .nav__scrim { display: none; } }

@media (min-width: 880px) {
  .nav__toggle { display: none; }
  .nav__panel {
    position: static;
    display: flex; align-items: center; gap: 1.75rem;
    background: transparent; border: 0; padding: 0; box-shadow: none;
  }
  .nav__list { flex-direction: row; gap: 1.6rem; }
  .nav__link {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .04em;
    border: 0;
    min-height: var(--tap);
    position: relative;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
  }
  .nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .nav__cta { margin: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  isolation: isolate;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: clamp(220px, 56vw, 320px);
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 18px 24px rgba(79, 72, 66, .10));
}
.hero__eyebrow { margin-bottom: .6rem; }
/* Phones: a touch bigger (it says what and where in the first second), tracking eased so it stays one line */
@media (max-width: 639px) { .hero__eyebrow { font-size: .84rem; letter-spacing: .14em; } }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: .98;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .28em;
}
.hero__word:nth-child(3) { font-style: italic; font-weight: 400; }
.hero__lede {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-soft);
}
@media (min-width: 640px) { .hero__lede { max-width: 46ch; font-size: 1.2rem; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.75rem;
  width: 100%;
}
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Petals: ambient, CSS only */
.hero__petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  top: -8%;
  left: var(--x, 50%);
  width: calc(26px * var(--s, 1));
  height: calc(26px * var(--s, 1));
  opacity: 0;
  animation: petal-drift var(--d, 20s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}
.petal use { transform-origin: 50% 50%; }
@keyframes petal-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .8; }
  50%  { transform: translate3d(-40px, 55vh, 0) rotate(160deg); }
  92%  { opacity: .6; }
  100% { transform: translate3d(30px, 112vh, 0) rotate(330deg); opacity: 0; }
}

/* ---------- Tiles ---------- */
.tile {
  position: relative;
  display: inline-block;
  width: var(--tile-w);
  aspect-ratio: 64 / 86;
  transform-style: preserve-3d;
  filter: drop-shadow(0 6px 10px rgba(26, 26, 26, .16));
}
.tile__face, .tile__back {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tile__back { transform: rotateY(180deg); }

.rack {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  perspective: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rack__tiles {
  display: flex;
  gap: var(--tile-gap);
  justify-content: center;
  padding: 0 6px 10px;
}
.rack__bar {
  width: min(100%, calc(7 * var(--tile-w) + 6 * var(--tile-gap) + 56px));
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2b2b2b, var(--ink));
  box-shadow: 0 10px 18px -8px rgba(26, 26, 26, .55);
  position: relative;
}
.rack__bar::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: -3px; height: 3px;
  background: var(--gold); opacity: .8; border-radius: 2px;
}
@media (min-width: 480px) { :root { --tile-w: 56px; --tile-gap: 9px; } }
@media (min-width: 880px) { :root { --tile-w: 70px; --tile-gap: 12px; } }

/* ---------- How it works ---------- */
.how__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 880px) {
  .how__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .how__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.steps {
  position: relative;
  padding-left: 72px;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 1.5rem;
  padding-bottom: 4.5rem;
}
.steps__stalk {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 48px;
}
.steps__line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px; height: 100%;
  transform: translateX(-50%);
  overflow: visible;
}
.steps__line line {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* Same width as the stalk, so they sit right on top of it and never cross the screen edge
   (the old 116px width was clamped to 48px by svg max-width, which left them 34px off the stalk) */
.steps__leaves {
  position: absolute;
  left: 0; top: -50px;
  width: 48px; height: 68px;
}
.steps__bloom {
  position: absolute;
  left: 50%; bottom: -26px;
  width: 76px; height: 76px;
  transform: translateX(-50%);
  overflow: visible;
}

.step { position: relative; }
.step__node {
  position: absolute;
  left: -72px; top: -2px;
  width: 48px; height: 30px;
  border-radius: 9px;
  background: var(--cream);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
}
.step__node::before, .step__node::after {
  content: ""; position: absolute; left: -2px; right: -2px; height: 2px; background: var(--ink); border-radius: 2px;
}
.step__node::before { top: -5px; }
.step__node::after { bottom: -5px; }
.step__title { font-size: var(--fs-h3); margin-bottom: .35rem; }
.step p { color: var(--ink-soft); max-width: 44ch; }

/* ---------- Lessons ---------- */
.lesson-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lesson {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow);
  perspective: 900px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.lesson:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 22px 40px -18px rgba(28, 42, 82, .35); }
.tile--card { --tile-w: 54px; margin-bottom: .2rem; }
.lesson__body { display: grid; gap: .5rem; flex: 1; align-content: start; }
.lesson__title { font-size: 1.7rem; }
.lesson__price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.lesson__amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}
.lesson__amount--text { font-size: 1.5rem; font-style: italic; font-weight: 400; }
.lesson__unit { font-size: var(--fs-small); color: var(--ink-soft); }
.lesson__desc { color: var(--ink-soft); }
.lesson__meta { font-size: var(--fs-small); color: var(--gold-text); }
.lesson__fine { font-size: .8125rem; color: var(--ink-soft); margin-top: .35rem; }
.lesson__cta { align-self: flex-start; }

.lesson-grid--inquire { margin-top: 1.25rem; }
@media (min-width: 640px) {
  .lesson-grid--inquire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson--inquire {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }
  .lesson--inquire .tile--card { grid-row: 1 / 3; margin-top: .25rem; }
  .lesson--inquire .lesson__body { grid-column: 2; }
  .lesson--inquire .lesson__cta { grid-column: 2; }
}

/* ---------- Mini Mahj ---------- */
.mini {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(242, 205, 217, .55), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(242, 205, 217, .4), transparent 70%),
    var(--cream);
}
.mini__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 880px) {
  .mini__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
}
.eyebrow--mini { color: var(--navy); }
.mini__facts {
  margin-top: 1.5rem;
  display: grid;
  gap: .55rem;
  color: var(--ink-soft);
}
.mini__facts li { display: flex; gap: .6rem; align-items: baseline; }
.mini__facts li::before {
  content: ""; width: 9px; height: 9px; flex: none;
  border-radius: 50%; background: var(--blush); border: 1.5px solid var(--navy);
  transform: translateY(-1px);
}
.mini__facts strong { color: var(--ink); font-weight: 500; }
.mini__intro .hero__actions { justify-content: flex-start; margin-top: 1.75rem; }

.mini__card {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mini__card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(242, 205, 217, .35), transparent 35%);
  pointer-events: none;
}
.mini__tiles {
  display: flex; gap: 10px;
  margin-bottom: 1.5rem;
  position: relative;
}
.tile--mini { --tile-w: 50px; }
.tile--mini .tile__face { position: relative; }
.mini__tiles .tile--mini { transform: rotate(-6deg); }
.mini__tiles .tile--mini:nth-child(2) { transform: rotate(3deg) translateY(4px); }
.mini__tiles .tile--mini:nth-child(3) { transform: rotate(8deg); }

.mini__h {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1.4rem 0 .8rem;
}
.mini__h:first-of-type { margin-top: 0; }
.dates { display: flex; gap: .75rem; flex-wrap: wrap; }
.date {
  display: grid;
  justify-items: center;
  min-width: 78px;
  padding: .55rem .6rem .5rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1.5px solid var(--navy);
  line-height: 1;
}
.date__dow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.date__day { font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin: .2rem 0 .1rem; }
.date__mon { font-size: .8rem; color: var(--ink-soft); }
.dates li:nth-child(1) { transform: rotate(-2deg); }
.dates li:nth-child(3) { transform: rotate(2deg); }

.includes { display: grid; gap: .4rem; }
@media (min-width: 480px) { .includes { grid-template-columns: 1fr 1fr; } }
.includes li { display: flex; gap: .55rem; align-items: baseline; }
.includes li > span { flex: 1 1 auto; min-width: 0; }
.includes li::before { content: "\2726"; color: var(--gold-text); font-size: .8rem; flex: none; }
.includes small { color: var(--ink-soft); }

.mini__past {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.mini__past-label {
  display: block;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: .25rem;
}

/* ---------- Booking (self-contained component) ---------- */
.booking__app {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-width: 840px;
  overflow: hidden;
  overflow: clip;   /* clips like hidden but isn't a scroll box, so the phone footer can stick */
}
.booking__fallback { padding: 1.75rem; display: grid; gap: .5rem; }

.bk { display: flex; flex-direction: column; min-height: 520px; }

.bk__stepper {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 .5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.bk__stepper::-webkit-scrollbar { display: none; }
.bk__step {
  flex: 1 0 auto;
  display: flex; align-items: center; gap: .5rem;
  padding: .9rem .75rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.bk__step-n {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  line-height: 1;
}
@media (max-width: 559px) {
  .bk__step:not(.is-active) .bk__step-label { display: none; }
  .bk__step { flex: 0 0 auto; padding-inline: .6rem; }
  .bk__step.is-active { flex: 1 0 auto; }
}
.bk__step.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.bk__step.is-done { color: var(--gold-text); }
.bk__step.is-done .bk__step-n { background: var(--gold-text); border-color: var(--gold-text); color: var(--cream); }

.bk__body { --bk-pad: clamp(1.25rem, 3.5vw, 2rem); padding: var(--bk-pad); flex: 1; display: flex; flex-direction: column; }
.bk__title { font-size: 1.75rem; margin-bottom: .3rem; }
.bk__hint { color: var(--ink-soft); font-size: var(--fs-small); margin-bottom: 1.25rem; }
.bk__summary-line {
  font-size: var(--fs-small);
  color: var(--gold-text);
  margin-bottom: 1rem;
  display: flex; flex-wrap: wrap; gap: .3rem .75rem;
}
.bk__summary-line span + span::before { content: "\00b7"; margin-right: .75rem; color: var(--line-strong); }

.bk__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.bk__footer .btn { min-width: 44px; }
.bk__footer { flex-wrap: wrap; }
/* Tapping a greyed-out Next says what's missing (js/booking.js) */
.bk__need { flex: 1 0 100%; order: -1; text-align: right; font-size: var(--fs-small); color: var(--ink); }
.bk__need:empty { display: none; }
/* Phones and small tablets: Back/Next ride along at the bottom of the screen while the card is in view */
@media (max-width: 879px) {
  .bk__footer {
    position: sticky; bottom: 0; z-index: 2;
    margin-inline: calc(var(--bk-pad) * -1);
    padding: .75rem var(--bk-pad);
    background: var(--cream-card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 18px -16px rgba(26, 26, 26, .3);
  }
  .bk__body > :nth-last-child(2) { margin-bottom: .75rem; }
}

/* Options (lesson choice, time slots) */
.bk__options { display: grid; gap: .65rem; }
@media (min-width: 560px) { .bk__options--lessons { grid-template-columns: 1fr 1fr; } }
.opt {
  width: 100%;
  text-align: left;
  display: grid;
  gap: .15rem;
  padding: .9rem 1rem;
  min-height: var(--tap);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-variant-numeric: lining-nums; /* buttons don't inherit it from body */
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Hover is a lighter cue than selected (the ink ring), and only where there is a real pointer,
   so a tap on a phone never leaves an option looking picked */
@media (hover: hover) { .opt:not([disabled]):not([aria-pressed="true"]):hover { border-color: var(--line-strong); background: #fff; } }
.opt[aria-pressed="true"] { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.opt__price { font-size: var(--fs-small); color: var(--gold-text); }
.opt__desc { font-size: var(--fs-small); color: var(--ink-soft); }
.opt--slot { grid-template-columns: 1fr auto; align-items: center; padding: .7rem 1rem; }
.opt--slot .opt__name { font-size: 1.2rem; }
.opt--slot[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.opt--slot[disabled]:hover { border-color: var(--line); }

/* Calendar */
.cal { display: grid; gap: .75rem; }
.cal__head { display: flex; align-items: center; justify-content: space-between; }
.cal__month { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.cal__nav {
  width: var(--tap); height: var(--tap);
  border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; font-size: 1.1rem;
}
.cal__nav:hover { border-color: var(--ink); }
.cal__nav[disabled] { opacity: .35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal__dow { text-align: center; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .25rem; }
.cal__day {
  aspect-ratio: 1;
  min-height: var(--tap);
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  display: grid; place-items: center;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.cal__day--empty { pointer-events: none; }
.cal__day[disabled] { color: rgba(26, 26, 26, .3); cursor: default; }
.cal__day.is-open { background: var(--cream); border-color: var(--line); font-weight: 500; }
.cal__day.is-open::after {
  content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
@media (hover: hover) { .cal__day.is-open:not([aria-pressed="true"]):hover { border-color: var(--line-strong); background: #fff; } }
.cal__day.is-today { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--gold); }
.cal__day[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cal__day[aria-pressed="true"]::after { background: var(--gold); }
.cal__legend { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 1rem; align-items: center; }
.cal__legend span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: .4rem; vertical-align: middle; }

/* Details form */
.bk__form { display: grid; gap: 1rem; }
@media (min-width: 560px) { .bk__form { grid-template-columns: 1fr 1fr; } .bk__field--wide { grid-column: 1 / -1; } }
.bk__field { display: grid; gap: .35rem; }
.bk__label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.bk__input {
  width: 100%;
  min-height: 48px;
  padding: .65rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.bk__input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(198, 160, 83, .35); }
.bk__input[aria-invalid="true"] { border-color: var(--red); }
textarea.bk__input { min-height: 96px; resize: vertical; }
select.bk__input {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238F6E22' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
.bk__error { font-size: .85rem; color: var(--red); }
.bk__fine { font-size: .85rem; color: var(--ink-soft); grid-column: 1 / -1; }

/* Confirmation */
.bk__confirm { display: grid; gap: 1.25rem; }
.bk__ticket {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--cream);
  position: relative;
}
.bk__ticket::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px;
  background: var(--gold); border-radius: 0 0 3px 3px;
}
.bk__ticket-rows { display: grid; gap: .45rem; }
.bk__ticket-row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-small); }
.bk__ticket-row dt { color: var(--ink-soft); }
.bk__ticket-row dd { margin: 0; text-align: right; font-weight: 500; }
.bk__ticket-total { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line-strong); font-size: 1rem; }
.bk__ticket-total dd { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.bk__notice {
  background: var(--blush-wash);
  border: 1px solid rgba(28, 42, 82, .12);
  border-radius: 14px;
  padding: 1.25rem 1.25rem;
  display: grid;
  gap: .6rem;
}
.bk__notice h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin: 0; }
.bk__notice p { color: var(--ink-soft); }
.bk__notice .btn { justify-self: start; margin-top: .25rem; }
.bk__phone { font-weight: 500; color: var(--ink); white-space: nowrap; }

/* Live booking (Phase 2): loading, alerts, done, honeypot */
.cal.is-loading .cal__grid { opacity: .55; }
.cal__status { font-size: var(--fs-small); color: var(--ink-soft); }
.cal__day.is-full { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.cal__legend .cal__legend-full::before { background: transparent; border: 1px solid var(--line-strong); }
.cal__legend .cal__legend-today { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--gold); }
.cal__legend .cal__legend-today::before { content: none; }
.cal__dates { font-size: var(--fs-small); color: var(--ink); }
.cal__dates span { white-space: nowrap; }
.bk__alert {
  background: var(--blush-wash);
  border: 1px solid rgba(181, 51, 46, .28);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  font-size: var(--fs-small);
  color: var(--ink);
  display: grid;
  gap: .6rem;
  justify-items: start;
}
.bk__optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.bk__notice--error { border-color: rgba(181, 51, 46, .3); }
.bk__notice--error:focus { outline: none; }
.bk__notice--error:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.bk__next { margin: 0; padding-left: 1.15rem; display: grid; gap: .35rem; color: var(--ink-soft); }
.bk__next li::marker { color: var(--gold); }
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
.bk__hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Shop ---------- */
.picks { display: grid; gap: 1rem; }
@media (min-width: 640px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: .4rem;
  align-content: start;
  box-shadow: var(--shadow);
  position: relative;
}
.pick::before {
  content: ""; position: absolute; top: 0; left: 1.5rem; width: 36px; height: 3px;
  background: var(--gold); border-radius: 0 0 3px 3px;
}
.pick__kind { font-size: var(--fs-eyebrow); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; }
.pick__name { font-size: 1.6rem; }
.pick__note { color: var(--ink-soft); font-size: var(--fs-small); }
.pick__link {
  margin-top: .75rem;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: var(--tap);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  align-self: start; justify-self: start;
}
.pick__link:hover { border-bottom-color: var(--ink); }
.pick__arrow { transition: transform .2s ease; display: inline-block; }
.pick__link:hover .pick__arrow { transform: translate(2px, -2px); }
.shop__note { margin-top: 1.5rem; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__bloom { width: 64px; height: 64px; margin-bottom: 1.25rem; overflow: visible; }
.contact .section__title { max-width: none; }
.contact__list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
}
@media (min-width: 640px) { .contact__list { grid-template-columns: 1fr 1fr; max-width: 640px; } }
.contact__list li {
  display: grid; gap: .2rem;
  padding: 1rem;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.1rem;
}
.contact__list a { text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
.contact__list a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.contact__list span:not(.contact__label) { min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
.contact__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.site-footer__mark { width: 84px; height: 84px; }
.site-footer__name { font-family: var(--font-display); font-size: 1.25rem; }
.site-footer__copy a { color: inherit; text-underline-offset: .2em; }

/* ---------- Privacy page ---------- */
.legal__inner { max-width: 44rem; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.15; margin: 2.2rem 0 .6rem; }
.legal p + p { margin-top: .8rem; }
.legal__lede { font-size: 1.15rem; margin-top: 1.1rem; }
.legal a { color: var(--navy); text-underline-offset: .2em; }
.legal__updated { margin-top: 2.5rem; font-size: var(--fs-small); color: var(--ink-soft); }
.site-footer__sep { color: var(--gold); margin: 0 .35rem; }
.site-footer__copy { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Motion ---------- */
/* Nothing is hidden by CSS. JS sets initial states only when it is ready to reveal them. */
@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; opacity: .5; top: auto; }
  .petal:nth-child(1) { top: 12%; } .petal:nth-child(2) { top: 40%; } .petal:nth-child(3) { top: 22%; }
  .petal:nth-child(4) { top: 55%; } .petal:nth-child(5) { top: 70%; } .petal:nth-child(6) { top: 32%; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Tables teaser (links to tables.html) ---------- */
.tables-teaser__inner {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.tables-teaser__media { display: block; max-width: 460px; margin-inline: auto; }
.tables-teaser__media img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 24px 30px rgba(28, 42, 82, .12));
  transition: transform .5s ease;
}
.tables-teaser__media:hover img { transform: translateY(-4px) rotate(-1deg); }
.tables-teaser__copy .btn { margin-top: .5rem; }
@media (min-width: 880px) {
  .tables-teaser__inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Lessons grid with four cards ---------- */
@media (min-width: 1024px) { .lesson-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .lesson-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Cards side by side share rows (subgrid): tile, title, price, description, extra line, button.
   The prices, descriptions and buttons line up across a row even when Mini Mahj's price note runs two lines. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .lesson-grid--four > .lesson { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: .5rem; }
    .lesson-grid--four .lesson__body { display: contents; }
    .lesson-grid--four .tile--card { margin-bottom: .8rem; }
    .lesson-grid--four .lesson__options { margin-top: 0; }
    .lesson-grid--four .lesson__cta { grid-row: 6; justify-self: start; align-self: end; margin-top: .6rem; }
  }
}

/* ---------- Strategy classes ---------- */
.strategy__grid { display: grid; gap: 1.25rem; }
@media (min-width: 880px) { .strategy__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.strategy__card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .03), 0 18px 40px -28px rgba(28, 42, 82, .35);
}
.strategy__card::before {
  content: ""; position: absolute; left: clamp(1.4rem, 3vw, 2.1rem); top: 0; width: 44px; height: 3px;
  background: var(--gold); border-radius: 0 0 3px 3px;
}
.strategy__when { font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; }
.strategy__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.05; }
.strategy__sub { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--navy); margin-top: -.2rem; }
.strategy__desc { color: var(--ink-soft); }
.strategy__list { margin: .2rem 0 .4rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.strategy__list li { position: relative; padding-left: 1.4rem; }
.strategy__list li::before {
  content: ""; position: absolute; left: .1rem; top: .62em; width: .55rem; height: .55rem;
  border-radius: 50%; background: var(--blush); box-shadow: inset 0 0 0 1.5px var(--gold);
}
.strategy__foot { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.strategy__price { color: var(--ink-soft); font-size: var(--fs-small); }
.strategy__price span { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); margin-right: .25rem; }
.strategy__note { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--ink-soft); text-align: center; }

/* ---------- Smooth scroll (Lenis 1.3.26, from its lenis.css) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; } /* Lenis does the smoothing; the native kind fights it */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* SplitText line masks on section titles */
.split-line { padding-bottom: .06em; margin-bottom: -.06em; } /* keep descenders inside the mask */

/* Strategy class card: the two class options listed under the price */
.lesson__options { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.lesson__options li { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.5; }
.lesson__option-name { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); line-height: 1.2; }

/* ---------- Mini Mahj heading: "No school? No problem!" (Erin, 10/8) ---------- */
.mini__title { font-size: clamp(2.7rem, 7.5vw, 4.6rem); line-height: .98; }
.mini__q, .mini__pop { display: block; }
.mini__pop {
  position: relative; width: max-content; max-width: 100%;
  font-style: italic; font-weight: 600; color: #B5476F;   /* rose, AA on cream; easy to swap */
  margin-top: .08em; isolation: isolate;
}
.mini__swash {
  position: absolute; left: -2%; right: -3%; bottom: .02em; width: 105%; height: .38em;
  z-index: -1; overflow: visible;
}
.mini__swash path {
  fill: none; stroke: #F2CDD9; stroke-width: 11; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.mini__subtitle {
  font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 500;
  color: var(--ink); margin: .9rem 0 .4rem; line-height: 1.15;
}

/* ---------- About Erin ---------- */
.about__inner { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.about__photo {
  position: relative; width: min(260px, 64vw); aspect-ratio: 1; margin-inline: auto; border-radius: 50%;
  box-shadow: 0 0 0 8px var(--cream), 0 0 0 9px rgba(198, 160, 83, .6), var(--shadow);
}
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about__bloom { position: absolute; width: 22%; height: 22%; right: 2%; bottom: 4%; overflow: visible; filter: drop-shadow(0 2px 4px rgba(26, 26, 26, .15)); }
.about__copy p:not(.eyebrow) { max-width: 34rem; }
.about__copy p + p { margin-top: .9rem; }
.about__copy .section__title + p { margin-top: 1.1rem; }
.about__name { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }
@media (min-width: 880px) {
  .about__inner { grid-template-columns: 2fr 3fr; align-items: start; }
  /* Erin's bio is long: the photo rides along beside it instead of floating mid-column. */
  .about__photo { position: sticky; top: calc(var(--header-h) + 3rem); }
}
