.classes .class-rail{display:block;overflow:visible;margin:0;padding:0;scroll-snap-type:none}
.classes .class-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:24px;padding:24px;max-width:760px}
.classes .class-visual{width:auto;height:auto;min-height:190px;flex-direction:column;align-items:center;padding:16px 8px}
.classes .class-visual span{align-self:center;font-size:10px;letter-spacing:.1em}
.classes .class-visual strong{font-size:64px;line-height:1;letter-spacing:-.07em;margin-bottom:6px}
.classes .class-copy{flex-direction:column;align-items:flex-start;justify-content:space-between;padding:0;gap:12px}
.classes .class-copy p{font-size:16px;max-width:none;line-height:1.7}
.classes .class-copy .class-count{color:var(--sage-dark);font-weight:600;margin:0 0 8px}
.classes .class-copy .class-booking-link{display:inline-flex;gap:12px;align-items:center;justify-content:flex-start;width:auto;height:auto;min-height:44px;border-radius:0;background:none;color:var(--sage-dark);font:500 15px/1.6 var(--sans);border-bottom:1px solid var(--rose);padding:4px 0}
.classes .class-booking-link span{font:22px/1 'DM Sans',sans-serif}
.class-review-highlights{margin-top:36px}
.class-review-highlights h3{font:500 27px/1.45 var(--serif);margin:0 0 18px}
.class-review-quotes{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.class-review-quote{display:flex;flex-direction:column;margin:0;padding:24px;background:#e6eee8;border:1px solid #d3e1d7;border-radius:15px;min-width:0}
.class-review-stars{color:#b8955a;font:20px/1.3 'DM Sans',sans-serif;letter-spacing:.07em;margin:0 0 14px}
.class-review-quote blockquote{font:500 20px/1.75 var(--serif);margin:0 0 22px}
.class-review-quote figcaption{border-top:1px solid #c3d5c8;padding-top:14px;margin-top:auto;font-size:13px;overflow-wrap:anywhere}
.class-review-quote figcaption strong{display:block;font-weight:600}
.class-review-quote figcaption span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
@media(max-width:600px){
  .classes .class-card{grid-template-columns:71px minmax(0,1fr);gap:15px;padding:17px 15px}
  .classes .class-visual{min-height:182px;padding:13px 5px}
  .classes .class-visual span{font-size:8px;letter-spacing:.08em}
  .classes .class-visual strong{font-size:44px}
  .classes .class-copy h3{font-size:24px}
  .classes .class-copy .class-booking-link{font-size:14px;gap:8px}
  .class-review-quotes{grid-template-columns:1fr}
  .class-review-quote{padding:21px 20px}
  .class-review-quote blockquote{font-size:19px}
}

/* Second branch, shown below the Westville location for existing students. */
.branch-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .9rem; line-height: 1.7; opacity: .9; }
.branch-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Teaching team: who teaches and whose certificates are shown. */
.team-cards { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: 1.25rem; background: #fff; border: 1px solid #d8e4dc; }
.team-card h3 { margin: 0; font-size: 1.15rem; }
.team-card p { margin: .35rem 0 0; line-height: 1.6; color: #49554d; }
.team-role { font-size: .85rem; font-weight: 600; color: #5f7366 !important; }
.team-initial { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: #e3ece6; color: #5f7366; font-weight: 700; font-size: 1.25rem; }
.certificate-owner { margin: 0 0 .75rem; font-weight: 600; color: #5f7366; }

/* Photos 7-13 stay folded until the visitor scrolls past photo 6, then unfold
   one by one. They open below the screen edge, so nothing on screen moves. */
.story-more-trigger { height: 1px; }
.story-gallery-more { margin-top: 12px; }
.js-reveal .story-gallery-more.is-folded { display: none; }
.js-reveal .story-gallery-more.is-opening .story-gallery-card { opacity: 0; animation: story-rise .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes story-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js-reveal .story-gallery-more.is-opening .story-gallery-card { animation: none; opacity: 1; } }

/* Certificates about 30% larger so the names on them are readable on phones. */
.certificate-marquee .certificate { flex-basis: 180px; width: 180px; }
.certificate-marquee .certificate img { height: 120px; }
.certificate-marquee .certificate span { font-size: 11px; }
@media (min-width: 900px) {
  .certificate-marquee .certificate { flex-basis: 220px; width: 220px; }
  .certificate-marquee .certificate img { height: 148px; }
  .certificate-marquee .certificate span { font-size: 12px; }
}

/* Private Room 1:1 — what makes our 1:1 different, plus the Merrithew note. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mobile-only { display: none; }
.hero-formula { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 16px; border-radius: 999px; background: #e3ece6; color: var(--sage-dark); font-weight: 600; font-size: 15px; }
.hero-formula i { font-style: normal; opacity: .5; }
.hero h1 { white-space: normal; }
.private-room-section { padding-block: 100px; background: #fafcfb; border-block: 1px solid var(--line); }
.compare { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; }
.compare-head > span, .compare-row > span { padding: 18px 22px; }
.compare-head { font-family: 'DM Sans', var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.compare-row { border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: #77716b; }
.compare-label { font-weight: 600; color: var(--ink); }
.compare .compare-ours { background: #eef3ef; color: var(--ink); }
.compare-head .compare-ours { background: var(--sage); color: #fff; }
.compare-ours b { color: var(--sage-dark); }
.room-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.room-benefits article { background: #edf3ef; border-radius: 16px; padding: 26px 24px; }
.room-benefits span { font: 600 13px 'DM Sans', sans-serif; letter-spacing: .15em; color: var(--rose); }
.room-benefits h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin: 10px 0 8px; }
.room-benefits p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.merrithew-note { margin-top: 28px; padding: 30px 32px; border-radius: 18px; background: #384c3e; color: #f5f8f6; }
.merrithew-note .eyebrow { color: #d6e4da; margin-bottom: 8px; }
.merrithew-note h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 10px; }
.merrithew-note p:last-child { margin: 0; color: #d8e5dc; font-size: 15px; line-height: 1.8; max-width: 760px; }
@media (max-width: 800px) {
  .private-room-section { padding-block: 70px; }
  .room-benefits { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .mobile-only { display: inline; }
  .hero-formula { font-size: 14px; padding: 6px 14px; margin-bottom: 14px; }
  .private-room-section { padding-block: 56px; }
  .compare-head { grid-template-columns: 1fr 1fr; }
  .compare-head > span:first-child { display: none; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-label { grid-column: 1 / -1; padding: 14px 16px 4px !important; font-size: 14px; }
  .compare-head > span, .compare-row > span { padding: 10px 14px 14px; font-size: 13px; }
  .compare-head > span { padding: 12px 14px; font-size: 12px; }
  .room-benefits article { padding: 20px 18px; }
  .room-benefits h3 { font-size: 20px; }
  .merrithew-note { padding: 24px 20px; }
  .merrithew-note p:last-child { font-size: 14px; }
}
@media (max-width: 600px) { .hero h1 { font-size: clamp(28px, 8.2vw, 44px); } }
/* Benefit-bar icons: Tabler outline (MIT) door / heart-handshake / award. */
.benefit-icon svg { display: block; width: 36px; height: 36px; color: var(--sage); }
.nowrap { white-space: nowrap; }
@media (max-width: 800px) { .benefit-icon svg { width: 30px; height: 30px; margin-bottom: 4px; } }

/* Pricing: trial highlight, single class, Private packages (mirrors lib/package-catalog.ts). */
.pricing-section { padding-block: 100px; }
.price-trial { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; padding: 30px 34px; border-radius: 18px; background: #384c3e; color: #f5f8f6; }
.price-trial .eyebrow { color: #d6e4da; margin-bottom: 6px; }
.price-trial h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.3vw, 32px); margin: 0 0 6px; }
.price-trial p:last-child { margin: 0; color: #d8e5dc; font-size: 15px; max-width: 440px; }
.price-trial-price { text-align: right; white-space: nowrap; }
.price-trial-price s { display: block; color: #b9cbbf; font-size: 15px; }
.price-trial-price strong { font: 500 52px/1.1 'DM Sans', var(--sans); letter-spacing: -.04em; }
.price-trial-price small { font-family: var(--sans); font-size: 18px; letter-spacing: 0; }
.price-single { display: flex; align-items: baseline; gap: 10px; margin: 26px 2px 14px; color: var(--muted); font-size: 15px; }
.price-single b { color: var(--ink); font-size: 20px; }
.price-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.price-card { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; }
.price-card.is-best { border: 2px solid var(--sage); }
.price-card.is-popular { border: 2px solid #b5704f; }
.price-card.is-popular .price-tag { background: #b5704f; }
.price-tag { position: absolute; top: -12px; left: 16px; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--sage); color: #fff; font-size: 12px; font-weight: 600; }
.price-card h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 8px; }
.price-total { font: 500 30px/1.2 'DM Sans', var(--sans); letter-spacing: -.03em; margin: 0; }
.price-total small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }
.price-per { margin: 6px 0 0; color: var(--sage-dark); font-size: 14px; }
.price-per b { font-size: 16px; }
.price-meta { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.price-note { margin: 18px 2px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .pricing-section { padding-block: 70px; }
  .price-trial { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .price-trial-price { text-align: left; }
  .price-trial .button { justify-self: start; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
  .pricing-section { padding-block: 56px; }
  .price-trial-price strong { font-size: 44px; }
  .price-card { padding: 18px 14px; }
  .price-card h3 { font-size: 19px; }
  .price-total { font-size: 24px; }
  .price-per { font-size: 13px; }
  .price-meta { font-size: 12px; }
  .price-tag { font-size: 11px; left: 10px; }
}
@media (max-width: 800px) { .price-card.is-best { grid-column: 1 / -1; } }
.price-meta b { color: var(--ink); font-weight: 600; }

/* Sixth card: follow the branch LINE for promotions. */
.price-card.price-line { display: flex; flex-direction: column; background: #384c3e; border-color: #384c3e; color: #f5f8f6; }
.price-line-text { margin: 0 0 14px; color: #d8e5dc; font-size: 14px; line-height: 1.6; }
.price-line-button { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #06c755; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) {
  .price-grid { gap: 10px; }
  .price-card { padding: 14px 12px; border-radius: 13px; }
  .price-card h3 { font-size: 16px; margin-bottom: 4px; }
  .price-total { font-size: 20px; }
  .price-total small { font-size: 12px; }
  .price-per { font-size: 12px; margin-top: 3px; }
  .price-per b { font-size: 13px; }
  .price-meta { font-size: 11px; margin-top: 6px; padding-top: 6px; }
  .price-tag { top: -10px; padding: 2px 8px; font-size: 10px; }
  .price-line-text { font-size: 12px; margin-bottom: 10px; }
  .price-line-button { padding: 7px 10px; font-size: 12px; }
}

/* Trial offer up front: 999 vs the usual 1,980 sits right above the main button. */
.hero-trial { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 22px; padding: 9px 16px; border-radius: 12px; background: #e3ece6; color: var(--sage-dark); font-size: 16px; }
.hero-trial strong { font-size: 22px; font-weight: 700; color: var(--sage-dark); }
.hero-trial s { color: #8a8f8b; font-size: .9em; }
.hero-trial-note { color: var(--muted); font-size: 14px; }
.hero-trial-note::before { content: "· "; }
@media (max-width: 1240px) { .hero-trial-note { flex-basis: 100%; } .hero-trial-note::before { content: none; } }
.hero-subnote { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.preopen-note { color: var(--sage-dark); font-weight: 600; }
.location-copy > p.location-open { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #e3ece6; font-size: 14px; line-height: 1.6; }
.location-inner.no-photo { grid-template-columns: 1fr; }
.location-inner.no-photo .location-copy { max-width: 720px; }
@media (max-width: 600px) {
  .hero-trial { font-size: 14px; padding: 8px 14px; margin-bottom: 16px; }
  .hero-trial strong { font-size: 19px; }
  .hero-trial-note { font-size: 12px; }
  .hero-subnote { font-size: 12.5px; }
  .hero .eyebrow { letter-spacing: .14em; }
  .price-trial .button { gap: 12px; }
}

/* Floating LINE button: shows the 999 offer, steps aside while another booking
   button is on screen, and also appears on tablets where the header button is hidden. */
.mobile-booking { transition: transform .25s ease, opacity .25s ease, visibility 0s linear 0s; }
.mobile-booking.is-hidden { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
@media (min-width: 801px) and (max-width: 1200px) {
  .mobile-booking { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 30; right: 24px; bottom: 24px; padding: 12px 22px; color: #fff; border-radius: 999px; font-weight: 600; font-size: 15px; }
  .mobile-booking span:last-child { font: 20px/1 'DM Sans', sans-serif; }
}
@media (prefers-reduced-motion: reduce) { .mobile-booking { transition: none; } }

/* Pricing on phones: a touch more readable, and the popular package stands out. */
.price-card.is-popular { background: #fdf6f1; box-shadow: 0 10px 28px rgba(181,112,79,.12); }
@media (max-width: 600px) {
  .price-per { font-size: 13px; }
  .price-per b { font-size: 14px; }
  .price-meta { font-size: 12px; }
  .price-tag { font-size: 11px; }
  .price-line-text { font-size: 12.5px; }
  .price-line-button { min-height: 40px; font-size: 13px; }
}

/* Easier tapping on the menu button and footer links. */
@media (max-width: 800px) { .menu-toggle { width: 44px; height: 44px; } }
.footer-inner > div a { padding: 11px 0; }

/* Studio section shows the owner's map of both branches (portrait), whole and tappable. */
.studio-picture.is-map { margin: 0; text-align: center; }
.studio-picture.is-map a { display: inline-block; max-width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(48,63,52,.08); }
.studio-picture.is-map img { width: auto; max-width: 100%; height: auto; max-height: 640px; object-fit: contain; border-radius: 0; }
.studio-picture.is-map figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .studio-picture.is-map img { max-height: 560px; } }

/* Studio standards: every teacher BASI-certified, Merrithew equipment. */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #c8dbce; color: var(--sage-dark); font-size: 15px; font-weight: 600; }
.trust-badges li span { color: var(--sage); font-weight: 700; }
@media (max-width: 600px) { .trust-badges { gap: 8px; margin-bottom: 16px; } .trust-badges li { font-size: 13px; padding: 7px 12px; } }

/* Readability: darker tones where small text sat on pale or bright backgrounds. */
.hero-trial s { color: #636a66; }
.hero-trial-note { color: #5c5550; }
.room-benefits span { color: #557060; }
.price-card.is-popular { border-color: #9a5a3d; }
.price-card.is-popular .price-tag { background: #9a5a3d; }
.price-line-button { background: #047a35; }
