/* Concept site template: rose and espresso palette.
   Palette:
     Deep Espresso   #30231F  (primary dark background / text on light)
     Muted Rose Brown#8E6B63  (secondary surfaces)
     Dusty Rose      #D8B9AD  (accent / primary buttons)
     Warm Cream      #F5EEE8  (light background / text on dark)
   This is a visual redesign only: HTML structure and app.js behaviour are
   preserved. Only presentation changes. */

:root {
  /* ---- Core palette ---- */
  --espresso: #30231F;
  --espresso-deep: #271C18;
  --espresso-soft: #4A3631;
  --rose-brown: #8E6B63;
  --rose-brown-soft: #A18D83;
  --dusty-rose: #D8B9AD;
  --dusty-rose-light: #EAD4CA;
  --dusty-rose-soft: #E5D7CE;
  --warm-cream: #F5EEE8;
  --warm-cream-soft: #EFE6DD;
  --white: #FFFFFF;

  /* ---- Semantic colours ---- */
  --bg-dark: var(--espresso);
  --bg-light: var(--warm-cream);
  --bg-rose: var(--rose-brown);
  --bg-accent: var(--dusty-rose);

  --text-dark: var(--espresso);
  --text-cream: var(--warm-cream);
  --text-soft: var(--rose-brown-soft);     /* secondary text on dark surfaces */
  --text-secondary-light: var(--espresso-soft); /* secondary text on light surfaces (AA) */
  --text-on-dark: var(--warm-cream);
  --text-on-dark-soft: rgba(245, 238, 232, 0.78);

  --border: var(--dusty-rose-soft);
  --border-dark: rgba(216, 185, 173, 0.35);
  --border-light: rgba(48, 35, 31, 0.10);

  /* ---- Typography ---- */
  --serif: "Cormorant Garamond", "Playfair Display", "Iowan Old Style", Garamond, Georgia, serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --max: 1280px;
  --pad: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--warm-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--dusty-rose); outline-offset: 4px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible, .space :focus-visible, .final :focus-visible, .about :focus-visible, .nav:not(.solid) :focus-visible {
  outline-color: var(--warm-cream);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--espresso); color: var(--warm-cream); padding: 10px 14px; z-index: 99; border-radius: var(--radius); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.italic { font-style: italic; }

/* ---- Layout ---- */
.container { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.intro-grid, .space-grid, .new-grid, .visit-grid, .faq-grid, .final-body, .schedule-cta, .foot, .copy, .section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
}
section { padding: 120px 0; }

/* ---- Type scale ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: inherit; }
h1 { font-size: clamp(42px, 9vw, 110px); line-height: .98; letter-spacing: -.015em; }
h2 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.01em; max-width: 18ch; }
h3 { font-size: 30px; line-height: 1.15; }
p { max-width: 62ch; }
.body { color: var(--text-dark); font-size: 18px; line-height: 1.75; }
.on-dark .body, .space .body, .about .body, .final .body { color: var(--text-on-dark-soft); }
.lead { color: var(--text-secondary-light); font-size: 18px; margin-top: 16px; }
.on-dark .lead, .space .lead, .about .lead, .final .lead { color: var(--text-on-dark-soft); }
.eyebrow {
  font-size: 12px; line-height: 1.4; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--text-secondary-light);
  margin-bottom: 20px;
}
.on-dark .eyebrow, .space .eyebrow, .about .eyebrow, .final .eyebrow { color: var(--dusty-rose-light); }
.section-head { row-gap: 0; margin-bottom: 64px; }
.section-head > * { grid-column: 1 / -1; }
.section-head h2 { margin-top: 0; }

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 15px/1 var(--sans);
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 250ms var(--ease), box-shadow 300ms var(--ease);
  isolation: isolate;
}
/* Sliding fill used by primary buttons: sits behind the label and wipes in from the left on hover. */
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--espresso);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 420ms var(--ease);
}
.btn .arr { display: inline-block; transition: transform 250ms var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-nav { min-height: 48px; padding: 12px 22px; font-size: 14px; }

/* Primary: dusty rose background, espresso text, subtle lift on hover */
.btn-primary { background: var(--dusty-rose); color: var(--espresso); border-color: var(--dusty-rose); box-shadow: 0 2px 8px rgba(48, 35, 31, 0.10); transition: color 320ms var(--ease) 130ms, border-color 320ms var(--ease) 130ms, box-shadow 300ms var(--ease), transform 250ms var(--ease); }
.btn-primary:hover { color: var(--warm-cream); border-color: var(--espresso); }
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary .arr { transition: transform 420ms var(--ease) 90ms; }
/* On dark sections the wipe is cream and the label turns espresso, so the hovered button stays visible. */
.hero .btn-primary::before, .nav:not(.solid) .btn-primary::before, .final .btn-primary::before, .on-dark .btn-primary::before { background: var(--warm-cream); }
@media (hover: hover) {
  .hero .btn-primary:hover, .nav:not(.solid) .btn-primary:hover, .final .btn-primary:hover, .on-dark .btn-primary:hover { color: var(--espresso); border-color: var(--warm-cream); }
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:focus-visible { outline-color: var(--espresso); }

/* Secondary: transparent, border matches section */
.btn-secondary { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-secondary::before { background: rgba(48, 35, 31, 0.08); transform: scaleY(0); transform-origin: center bottom; }
.btn-secondary:hover::before { transform: scaleY(1); }
.btn-secondary:focus-visible { outline-color: var(--espresso); }
.btn-secondary:active { background: rgba(48, 35, 31, 0.12); transform: translateY(0) scale(0.98); }

.on-dark .btn-secondary, .hero .btn-secondary, .final .btn-secondary, .about .btn-secondary, .space .btn-secondary {
  color: var(--warm-cream); border-color: var(--warm-cream);
}
.on-dark .btn-secondary:hover, .hero .btn-secondary:hover, .final .btn-secondary:hover, .about .btn-secondary:hover, .space .btn-secondary:hover {
  color: var(--warm-cream);
}
.on-dark .btn-secondary::before, .hero .btn-secondary::before, .final .btn-secondary::before, .about .btn-secondary::before, .space .btn-secondary::before {
  background: rgba(245, 238, 232, 0.12);
}

/* Light button: cream background, espresso text */
.btn-light { background: var(--warm-cream); color: var(--espresso); border-color: var(--warm-cream); box-shadow: 0 2px 8px rgba(48, 35, 31, 0.06); }
.btn-light:hover { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.btn-light:active { transform: translateY(0) scale(0.98); }

/* ---- Text links ---- */
.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-weight: 600; letter-spacing: .02em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size 400ms var(--ease), color 250ms var(--ease);
  padding-bottom: 4px;
}
.text-link:hover { background-size: 100% 1px; }
.text-link::after { content: "→"; display: inline-block; transition: transform 250ms var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.on-dark .text-link, .hero .text-link, .final .text-link, .about .text-link, .space .text-link { color: var(--warm-cream); }

/* ---- Load error ---- */
.load-error {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--espresso); color: var(--warm-cream); padding: 14px 18px; border-radius: var(--radius); font-size: 15px;
  border: 1px solid var(--border-dark);
}
.load-error[hidden] { display: none; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad);
  color: var(--text-cream);
  transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid var(--border-dark);
  background: var(--espresso);
}
.nav.solid {
  background: var(--warm-cream); color: var(--espresso);
  border-bottom-color: var(--border);
}
.nav .wordmark { color: inherit; }
.wordmark {
  font-family: "Cormorant Garamond", var(--serif); font-weight: 500; font-size: 28px; line-height: 1;
  letter-spacing: .03em; font-style: normal; font-optical-sizing: auto;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) {
  position: relative; font-size: 14px; font-weight: 500; letter-spacing: .02em;
  padding: 8px 0; min-height: 48px; display: inline-flex; align-items: center;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 500ms var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn):focus-visible::after { transform: scaleX(1); }

.burger {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 48px; height: 48px; position: relative;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1px; background: currentColor;
  transition: transform 600ms var(--ease), opacity 300ms;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px 0 96px;
  color: var(--text-cream); overflow: hidden; isolation: isolate;
  background: var(--espresso);
}
.hero-media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background: var(--espresso) url("hero-video-poster.jpg") 50% 30% / cover no-repeat; /* static poster, shown until the video plays */
  animation: heroScale 2400ms var(--ease) both;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%; /* portrait footage, cropped to the subject */
  opacity: 0; transition: opacity 1400ms var(--ease);
}
.hero-video.is-ready { opacity: 1; }
.hero-placeholder, .final-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(142, 107, 99, 0.30), transparent 70%),
    linear-gradient(170deg, #4A3631 0%, #30231F 55%, #271C18 100%);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(39, 28, 24, 0.80) 0%, rgba(39, 28, 24, 0.52) 42%, rgba(39, 28, 24, 0.16) 100%),
    linear-gradient(to top, rgba(39, 28, 24, 0.55) 0%, transparent 45%);
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
@keyframes heroScale { from { transform: scale(1.04); } to { transform: scale(1); } }

.hero-title span { display: block; overflow: visible; }
.hero-title i { display: block; font-style: normal; }
.hero-title span + span i { color: var(--dusty-rose); } /* dusty rose highlight */
.hero-title .italic { font-style: italic; }
/* Each word rises in turn; --w is the word's position in the headline. */
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(0.4em); animation: wordIn 1000ms var(--ease) forwards; animation-delay: calc(360ms + var(--w) * 110ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dusty-rose-light);
  margin: 0 0 24px; opacity: 0; animation: fadeIn 900ms var(--ease) 120ms forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  margin-top: 40px;
}
.hero-sub { font-size: 18px; color: var(--text-on-dark-soft); max-width: 44ch; opacity: 0; animation: fadeUp 1000ms var(--ease) 1000ms forwards; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 16px; opacity: 0; animation: fadeUp 1000ms var(--ease) 1200ms forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- INTRO ---- */
.intro { background: var(--warm-cream); }
.intro-grid { align-items: start; }
.intro-grid h2 { grid-column: 1 / span 6; color: var(--text-dark); }
.intro-grid .body { grid-column: 8 / span 5; margin-top: 8px; color: var(--text-dark); }

/* ---- CLASSES ---- */
.classes { background: var(--warm-cream); }
.classes .container { max-width: calc(1440px + var(--pad) * 2); }
.collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.collection > li {
  display: flex; flex-direction: column; min-width: 0; overflow: visible; position: relative; z-index: 0;
  background: var(--warm-cream-soft); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  /* The reveal transition is kept here, since this rule overrides .reveal; scale is a separate property for hover. */
  transition: opacity 800ms var(--ease) var(--d, 0ms), transform 800ms var(--ease) var(--d, 0ms),
              scale 600ms var(--ease), border-color 600ms var(--ease);
}
/* The shadow sits on its own layer and fades in, so the browser never repaints it frame by frame. */
.collection > li::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: var(--radius-lg); box-shadow: 0 24px 48px -24px rgba(48, 35, 31, 0.45);
  opacity: 0; transition: opacity 600ms var(--ease);
}
/* Hover or keyboard focus: the whole card zooms in so the text reads larger. */
.collection > li.in:hover,
.collection > li.in:has(.text-link:focus-visible) {
  scale: 1.05; z-index: 2; border-color: var(--dusty-rose);
}
.collection > li.in:hover::after,
.collection > li.in:has(.text-link:focus-visible)::after { opacity: 1; }

.class-media {
  position: relative; overflow: hidden; aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* the card no longer clips, so the photo carries the top corners */
  background: linear-gradient(160deg, #A18D83 0%, #8E6B63 45%, #6B524B 100%);
}
.class-media .media-inner {
  width: 100%; height: 100%;
  transition: transform 900ms var(--ease);
}
.class-media .class-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease);
}
.class-copy { display: grid; gap: 18px; align-content: start; flex: 1; padding: 36px 36px 40px; }
.class-copy h3 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1.1; color: var(--text-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--text-secondary-light); }
.class-copy p { color: var(--text-dark); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; }
.class-copy .text-link { justify-self: start; color: var(--espresso); }
.collection .text-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.collection > li { cursor: pointer; }
.collection .text-link:focus-visible { outline: none; }
.collection > li:has(.text-link:focus-visible) { outline: 2px solid var(--espresso); outline-offset: 4px; }
/* The featured class: the card border takes the accent colour, nothing more. */
.collection > li.is-featured { border-color: var(--dusty-rose); }

/* ---- SPACE (muted rose surface) ---- */
.space { background: var(--rose-brown); color: var(--text-cream); }
.space-grid { align-items: center; }
.slideshow { grid-column: 1 / span 7; position: relative; }
.slides { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(245,238,232,0.25); }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 800ms ease-in-out;
}
.slide.active { opacity: 1; }
.slide .slide-art { width: 100%; height: 100%; position: relative; }
.slide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide--a .slide-art { background: linear-gradient(165deg, #6B524B 0%, #4A3631 50%, #271C18 100%); }
.slide--b .slide-art { background: linear-gradient(200deg, #A18D83 0%, #8E6B63 55%, #6B524B 100%); }
.pause {
  margin-top: 20px; min-height: 48px; padding: 12px 20px;
  background: transparent; color: var(--warm-cream); border: 1px solid rgba(245,238,232,0.35); border-radius: var(--radius);
  font: 600 14px/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  transition: border-color 250ms var(--ease), background-color 250ms var(--ease), color 250ms var(--ease);
}
.slide-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; }
.slide-caption { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--warm-cream); }
/* Dots are short bars: the current photo's bar is longer and brighter, and it extends smoothly. */
.dots { display: flex; gap: 4px; }
.dot {
  width: 32px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.dot::before {
  content: ""; display: block; width: 24px; height: 2px; border-radius: 2px;
  background: rgba(245, 238, 232, 0.35);
  transition: width 500ms var(--ease), background-color 300ms var(--ease);
}
.dot:hover::before { background: rgba(245, 238, 232, 0.65); }
.dot[aria-pressed="true"]::before { width: 48px; background: var(--dusty-rose); }
.dot:focus-visible { outline-color: var(--warm-cream); }
.space-copy { grid-column: 9 / span 4; display: grid; gap: 24px; }
.space-copy p { color: var(--text-on-dark-soft); }
.space-copy .text-link { justify-self: start; color: var(--warm-cream); }

/* ---- SCHEDULE ---- */
.schedule { background: var(--warm-cream); }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 4px 32px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.filter {
  min-height: 48px; padding: 12px 0; background: none; border: 0; cursor: pointer;
  font: 500 15px/1 var(--sans); letter-spacing: .02em; color: var(--text-secondary-light);
  transition: color 250ms var(--ease);
}
.filter:hover { color: var(--espresso); }
.filter[aria-pressed="true"] { color: var(--rose-brown); font-weight: 600; }
.filter-indicator {
  position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: var(--dusty-rose);
  transition: left 500ms var(--ease), width 500ms var(--ease);
}
.schedule-list { margin-top: 8px; }
.schedule-item {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.schedule-item h3 { grid-column: 1 / span 4; font-size: 30px; line-height: 1.15; color: var(--text-dark); }
.schedule-item .tags { grid-column: 5 / span 3; }
.schedule-item p { grid-column: 8 / span 4; color: var(--text-dark); font-size: 16px; }
.schedule-item .text-link { grid-column: 12; justify-self: end; color: var(--espresso); }
.schedule-item.is-out { opacity: 0; transform: translateY(8px); pointer-events: none; position: absolute; visibility: hidden; }
.schedule-cta { margin-top: 56px; }
.schedule-cta .btn { grid-column: 1 / span 4; justify-self: start; }

/* ---- OFFERS ---- */
.offers { background: var(--warm-cream); }
/* Offers: four price panels in a two-by-two grid. Each panel is flat, with a rose rule along its top edge
   that marks the group. Equal heights keep the grid even. */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; align-items: stretch; }
.ledger-group {
  display: flex; flex-direction: column; padding: 28px 0 0; border-top: 2px solid var(--rose-brown);
}
.ledger-group h3 { font-size: 30px; line-height: 1.15; color: var(--text-dark); margin: 0 0 12px; }
.ledger-group .rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n p" "d d";
  gap: 6px 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--border);
}
.row:first-child { border-top: 0; }
.row .n { grid-area: n; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--text-dark); }
.row .d { grid-area: d; color: var(--text-secondary-light); font-size: 15px; line-height: 1.6; }
.row .p { grid-area: p; font-family: var(--serif); font-size: 26px; font-weight: 500; white-space: nowrap; color: var(--espresso); font-variant-numeric: lining-nums tabular-nums; }
/* Rolling figures: each digit is a short strip 0-9, shifted into place once. */
.roll { display: inline-flex; align-items: flex-start; line-height: 1; white-space: pre; }
.roll-col { display: inline-block; height: 1em; overflow: hidden; }
.roll-strip { display: block; transform: translateY(0); transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0ms); }
.roll-strip span { display: block; height: 1em; line-height: 1; }
.roll-static { display: inline-block; height: 1em; line-height: 1; }
.is-rolling .roll-strip { transform: translateY(calc(var(--to) * 1em)); }
.is-reset .roll-strip { transition: none; }
/* The featured offer is marked by a rose bar on its left, not a filled box. */
.row.feat { position: relative; padding-left: 20px; }
.row.feat::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--dusty-rose);
}
.row.feat .p { color: var(--rose-brown); }
.ledger-note, .offers .lead { color: var(--text-secondary-light); }

/* ---- NEW HERE ---- */
.new { background: var(--warm-cream); }
.new-grid { align-items: start; }
.new-grid > div { grid-column: 1 / span 8; }
.steps { margin: 48px 0 48px; counter-reset: s; max-width: 640px; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 64px 1fr; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--border); color: var(--text-dark);
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before {
  content: counter(s); font-family: var(--serif); font-size: 36px; line-height: 1; font-style: italic; color: var(--dusty-rose);
}

/* ---- FAQ ---- */
.faq { background: var(--warm-cream); padding-top: 0; }
.faq-grid { align-items: start; }
.faq-grid h2 { grid-column: 1 / span 5; color: var(--text-dark); }
.faq-list { grid-column: 7 / span 6; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 18px/1.4 var(--sans); color: var(--text-dark);
  transition: color 250ms var(--ease);
}
.faq-q:hover { color: var(--dusty-rose); }
.faq-q .plus {
  flex: none; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--rose-brown-soft);
  transition: transform 500ms var(--ease), color 250ms var(--ease);
}
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); color: var(--dusty-rose); }
.faq-a { height: 0; overflow: hidden; transition: height 600ms var(--ease); }
.faq-a p { color: var(--text-secondary-light); padding-bottom: 24px; }

/* ---- ABOUT ---- */
.about { background: var(--espresso); color: var(--text-cream); padding: 160px 0; }
.about .pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(44px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.01em;
  max-width: 16ch;
}
.about-lead { margin-top: 40px; font-size: 18px; color: var(--text-on-dark-soft); max-width: 56ch; }

/* ---- VISIT ---- */
.visit { background: var(--warm-cream); }
.visit-grid { align-items: stretch; }
.visit-info { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.visit-media { grid-column: 8 / span 5; display: flex; }
.visit .address { font-size: 18px; line-height: 1.6; margin-top: 20px; max-width: 36ch; color: var(--text-dark); }
.directions { margin-top: 36px; align-self: flex-start; }
/* Hours and contact sit on a soft panel so the left column carries the same weight as the photo. */
.visit-facts {
  margin-top: 56px; padding: 36px 40px 40px; border-radius: var(--radius-lg);
  background: var(--warm-cream-soft); border: 1px solid var(--border-light);
  display: grid; gap: 40px;
}
.visit-facts .fact { min-width: 0; }
.sub-h { font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--text-secondary-light); margin: 0 0 16px; }
.hours { border-top: 1px solid var(--border); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.hours .time { font-weight: 600; color: var(--text-dark); }
.contact { display: grid; gap: 4px; }
.contact a {
  display: inline-flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); width: 100%; font-size: 16px;
  color: var(--text-dark);
}
.contact a:hover { color: var(--dusty-rose); border-color: var(--dusty-rose); }
.visit-photo { display: block; width: 100%; height: 100%; min-height: 520px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border-light); }

/* ---- FINAL ---- */
.final {
  position: relative; isolation: isolate; min-height: 80vh; min-height: 80svh;
  display: flex; align-items: flex-end; padding: 160px 0; color: var(--text-cream); overflow: hidden;
  background: var(--espresso);
}
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.final-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(39, 28, 24, 0.90) 0%, rgba(39, 28, 24, 0.35) 70%);
}
.final-body { align-items: end; }
.final-body > * { grid-column: 1 / span 8; }
.final h2 { font-size: clamp(48px, 7.6vw, 104px); line-height: 1; max-width: 14ch; }
.final p { margin-top: 24px; color: var(--text-on-dark-soft); font-size: 18px; }
.final .btn { margin-top: 40px; justify-self: start; }
.final-body .btn { grid-column: 1; }

/* ---- FOOTER ---- */
footer { background: var(--warm-cream-soft); border-top: 1px solid var(--border); padding: 72px 0 32px; color: var(--text-secondary-light); font-size: 15px; }
.foot { align-items: start; padding-bottom: 40px; }
.foot > div { grid-column: 1 / span 6; display: grid; gap: 16px; }
.foot .wordmark { color: var(--espresso); font-size: 28px; }
.foot-addr { color: var(--text-dark); }
.foot-links { grid-column: 9 / span 4; display: grid; gap: 4px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; color: var(--text-dark); }
.foot-links a:hover { color: var(--dusty-rose); }
.copy { padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary-light); }
.copy > span:first-child { grid-column: 1 / span 6; }
.copy > span:last-child { grid-column: 7 / span 6; justify-self: end; }

/* ---- STICKY MOBILE BAR ---- */
.sticky { display: none; }

/* ---- REVEALS ---- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 800ms var(--ease) var(--d, 0ms), transform 800ms var(--ease) var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .intro-grid h2, .intro-grid .body { grid-column: 1 / -1; }
  .intro-grid .body { margin-top: 24px; }
  .slideshow { grid-column: 1 / span 6; }
  .space-copy { grid-column: 8 / span 5; }
  .ledger-group h3 { grid-column: 1 / -1; }
  .ledger-group .rows { grid-column: 1 / -1; }
  .schedule-item h3 { grid-column: 1 / span 6; }
  .schedule-item .tags { grid-column: 7 / span 6; }
  .schedule-item p { grid-column: 1 / span 9; }
  .schedule-item .text-link { grid-column: 10 / span 3; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 49;
    background: var(--warm-cream); color: var(--espresso);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 20px; padding: 96px var(--pad) 48px;
    opacity: 0; transform: translateY(-12px);
    transition: opacity 500ms var(--ease), transform 600ms var(--ease), visibility 600ms;
    visibility: hidden;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a:not(.btn) { font-family: var(--serif); font-size: 36px; min-height: 48px; color: var(--espresso); }
  .nav-links .btn { font-family: var(--sans); font-size: 15px; }
  .nav .nav-cta { margin-top: 16px; }
  .nav.solid .burger, .nav .burger { color: inherit; }
  .slideshow, .space-copy { grid-column: 1 / -1; }
  .space-copy { margin-top: 48px; }
  .faq-grid h2, .faq-list { grid-column: 1 / -1; }
  .faq-list { margin-top: 32px; }
  .visit-info, .visit-media { grid-column: 1 / -1; }
  .visit-media { margin-top: 56px; }
  .visit-photo { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .visit-facts { padding: 28px 24px 32px; gap: 32px; }
  .new-grid > div { grid-column: 1 / -1; }
  .foot > div, .foot-links { grid-column: 1 / -1; }
  .foot-links { margin-top: 24px; }
  .copy > span:first-child, .copy > span:last-child { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .about { padding: 96px 0; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  h2 { font-size: clamp(32px, 9vw, 44px); }
  .hero { padding-top: 128px; padding-bottom: 72px; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-foot .btn { width: 100%; }
  .section-head { margin-bottom: 40px; }
  .schedule-item { gap: 12px; padding: 24px 0; }
  .schedule-item h3, .schedule-item .tags, .schedule-item p, .schedule-item .text-link { grid-column: 1 / -1; justify-self: start; }
  .schedule-cta .btn { grid-column: 1 / -1; width: 100%; }
  .row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .row .d { grid-column: 1 / -1; order: 3; }
  .ledger-group { padding-top: 40px; }
  .final { min-height: 72svh; padding: 120px 0 96px; }
  .final-body .btn { width: 100%; }
  .sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--warm-cream); border-top: 1px solid var(--border);
  }
  .sticky .btn { flex: 1; background: var(--dusty-rose); color: var(--espresso); border-color: var(--dusty-rose); }
  .sticky .btn:hover { background: var(--dusty-rose-light); transform: none; }
  .sticky .sticky-call { background: transparent; color: var(--espresso); border-color: var(--espresso); }
  body { padding-bottom: 88px; }
}

/* Touch screens: no sticky hover state after a tap; the pressed state carries the feedback instead. */
@media (hover: none) {
  .btn-primary:hover { color: var(--espresso); border-color: var(--dusty-rose); transform: none; }
  .btn-primary:hover::before { transform: scaleX(0); }
  .btn-primary:active { color: var(--warm-cream); border-color: var(--espresso); }
  .btn-primary:active::before { transform: scaleX(1); }
  .btn-secondary:hover::before { transform: scaleY(0); }
  .btn-secondary:active::before { transform: scaleY(1); }
  .collection > li.in:hover { scale: 1; z-index: 0; }
  .collection > li.in:hover::after { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .class-media:hover .class-photo { transform: none; }
  .btn::before { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-media { animation: none; }
  .hero-title .w, .hero-eyebrow, .hero-sub, .hero-actions { animation-delay: 0ms !important; }
  .slide { transition: none; }
  .collection > li.in:hover, .collection > li.in:has(.text-link:focus-visible) { scale: 1; }
  .collection > li.in:hover::after, .collection > li.in:has(.text-link:focus-visible)::after { opacity: 0; }
  .btn:hover { transform: none; }
}

/* Offers: one column below 760px. Placed last so it overrides the earlier breakpoints. */
@media (max-width: 760px) {
  .ledger { grid-template-columns: 1fr; gap: 48px; }
  .ledger-group h3, .schedule-item h3 { font-size: 28px; }
}

/* Hero on phones: the text sits at the bottom, so the shade runs upward and the CTAs stack full width. */
@media (max-width: 760px) {
  .hero-shade {
    background: linear-gradient(to top, rgba(39, 28, 24, 0.92) 0%, rgba(39, 28, 24, 0.6) 50%, rgba(39, 28, 24, 0.25) 100%);
  }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ---- TABLET AND PHONE PASS ---- */
/* Below 900px the links live in a full-screen panel. Let it leave the flow so the burger sits at the header's right edge. */
@media (max-width: 900px) {
  .nav > nav { display: contents; }
}


/* Phone (≤640px): tighter rhythm so the page reads in fewer scrolls. */
@media (max-width: 640px) {
  .row .n { font-size: 21px; }
  .row .p { font-size: 22px; }
  .sticky-call { font-size: 15px; }
}

/* Phone bar: hidden while the hero's own buttons are on screen, slides up once the visitor has scrolled past them. */
@media (max-width: 640px) {
  .sticky { transform: translateY(0); transition: transform 500ms var(--ease), visibility 0s; }
  /* Hidden means fully off-screen, invisible and untappable, so no sliver or ghost bar can show or catch a tap. */
  body:not(.past-hero) .sticky {
    transform: translateY(130%); visibility: hidden; pointer-events: none;
    transition: transform 500ms var(--ease), visibility 0s linear 500ms;
  }
  .sticky a { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky { transition: none; }
}

/* Phone and tablet menu panel: serif links separated by hairlines, one full-width booking button at the foot. */
@media (max-width: 900px) {
  .nav-links { align-items: stretch; gap: 0; padding: 112px var(--pad) 40px; }
  .nav-links a:not(.btn) { width: 100%; min-height: 0; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 34px; line-height: 1.1; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav .nav-cta { margin-top: 32px; }
  .nav .nav-cta .btn-nav { width: 100%; min-height: 56px; justify-content: center; font-size: 15px; box-shadow: none; }
  /* The phone bar must not sit on top of the open menu. */
  body:has(.nav-links.open) .sticky {
    transform: translateY(130%); visibility: hidden; pointer-events: none;
    transition: transform 500ms var(--ease), visibility 0s linear 500ms;
  }
}
/* With the menu open, the wordmark and the close icon stay on top of the panel, in espresso. */
@media (max-width: 900px) {
  .nav .wordmark, .nav .burger { position: relative; z-index: 60; }
  .nav:has(.nav-links.open) { color: var(--espresso); }
  .nav:has(.nav-links.open) .burger { color: var(--espresso); }
}

/* ---- PHONE: one button per line, even vertical rhythm, left-aligned ---- */
@media (max-width: 640px) {
  section, .about, .final { padding: 80px 0; }
  .hero { padding: 128px 0 72px; }
  .section-head { margin-bottom: 40px; }
  .intro-grid { gap: 24px; }
  .intro-grid .body { margin-top: 0; }
  .schedule-cta, .new-grid .btn, .final-body .btn { width: 100%; }
  .schedule-cta .btn, .new-grid .btn { justify-self: stretch; text-align: center; justify-content: center; }
  /* Bottom bar: the booking button on its own line, the phone number as a plain link beneath it. */
  .sticky { flex-direction: column; align-items: stretch; gap: 4px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px)); }
  .sticky .btn { width: 100%; min-height: 52px; justify-content: center; }
  .sticky .sticky-call { display: flex; align-items: center; justify-content: center; min-height: 36px; border: 0; background: none; color: var(--espresso); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
}

/* Closing section on phones: its text and button span the full width. The desktop rule put the button in a single narrow column. */
@media (max-width: 640px) {
  .final-body > * { grid-column: 1 / -1; }
  .final .btn { justify-self: stretch; width: 100%; }
}
@media (max-width: 640px) {
  .final-body .btn { grid-column: 1 / -1; }
}

/* Phone bar: "Call us" as a quiet secondary action with a phone glyph and a rose underline. */
@media (max-width: 640px) {
  .sticky .sticky-call {
    gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--rose-brown);
    text-decoration: none; border-bottom: 1px solid var(--dusty-rose); padding: 0 4px 2px; min-height: 40px;
    justify-self: center; align-self: center; width: auto;
  }
  .sticky .sticky-call svg { flex: none; color: var(--rose-brown); }
}

/* ---- CLASSES: card grid responsive ---- */
/* Tablet and small laptop: two cards per row. */
@media (min-width: 641px) and (max-width: 1100px) {
  .collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
/* Phone: one card per row, photo above copy. */
@media (max-width: 640px) {
  .collection { grid-template-columns: 1fr; gap: 20px; }
  .class-copy { padding: 26px 24px 30px; }
  .class-copy h3 { font-size: 30px; }
  .class-copy p { font-size: 17px; }
}

/* ---- SCHEDULE FILTERS: one scrollable row on phones ---- */
/* Wrapping broke the single underline, which sits on the bottom edge, away from the active filter on the top row. */
@media (max-width: 640px) {
  .filters {
    flex-wrap: nowrap; gap: 4px 24px; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; white-space: nowrap; }
}

/* ---- OFFERS: hover on rows (mouse only, skipped for reduced motion) ---- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .row { position: relative; transition: border-color 500ms var(--ease); }
  /* A thin rose line draws down the left edge of the row. */
  .row::after {
    content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 2px;
    background: var(--rose-brown); transform: scaleY(0); transform-origin: top;
    transition: transform 600ms var(--ease);
  }
  .row:hover::after { transform: scaleY(1); }
  .row .n, .row .p { transition: transform 500ms var(--ease), color 400ms var(--ease); }
  .row:hover .n { transform: translateX(6px); }
  .row:hover .p { color: var(--rose-brown); transform: translateX(-4px); }
  .row.feat::after { left: -16px; }
}

/* ---- PHONE MENU: a finished panel, not a plain list ---- */
/* Desktop never shows the footer block. */
.menu-foot { display: none; }
@media (max-width: 900px) {
  .nav-links {
    background: linear-gradient(180deg, var(--warm-cream) 0%, var(--warm-cream-soft) 100%);
    justify-content: flex-start;
  }
  /* Each link, the booking button and the footer rise in one after another when the menu opens. */
  .nav-links li { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(1) { transition-delay: 160ms; }
  .nav-links.open li:nth-child(2) { transition-delay: 210ms; }
  .nav-links.open li:nth-child(3) { transition-delay: 260ms; }
  .nav-links.open li:nth-child(4) { transition-delay: 310ms; }
  .nav-links.open li:nth-child(5) { transition-delay: 360ms; }
  .nav-links.open li:nth-child(6) { transition-delay: 410ms; }
  .nav-links.open li:nth-child(7) { transition-delay: 460ms; }
  .nav-links.open li:nth-child(8) { transition-delay: 510ms; }
  /* Links: a rose tint on press, since phones have no hover. */
  .nav-links a:not(.btn) { border-bottom-color: var(--border-light); transition: color 300ms var(--ease), padding-left 400ms var(--ease); }
  .nav-links a:not(.btn):active { color: var(--rose-brown); padding-left: 8px; }
  .nav-links .nav-cta { margin-top: 32px; }
  /* Footer block: address and contact, pinned to the foot of the panel. */
  .menu-foot {
    display: block; margin-top: auto; padding-top: 40px;
    border-top: 1px solid var(--border);
  }
  .menu-address { font-size: 14px; line-height: 1.6; color: var(--text-secondary-light); margin: 0 0 14px; }
  .menu-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
  .menu-contact a { color: var(--espresso); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; min-height: 36px; display: inline-flex; align-items: center; }
  /* With reduced motion, the menu shows its contents at once. */
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav-links li { transition: none; transform: none; opacity: 1; }
}

.row .roll-plain { display: inline-flex; line-height: 1; white-space: pre; }

/* ---- SCROLLBAR: thin, in the site palette ---- */
/* Firefox and Chromium 121+ */
html {
  scrollbar-width: thin;
  scrollbar-color: #8E6B63 #F5EEE8;
}
/* Safari and older Chromium */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F5EEE8; }
::-webkit-scrollbar-thumb {
  background: #C9AFA5; border-radius: 10px; border: 2px solid #F5EEE8;
}
::-webkit-scrollbar-thumb:hover { background: #8E6B63; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: #F5EEE8; }

