/* ==========================================================================
   The Flow Studio — design tokens
   ========================================================================== */

:root {
  --cream: #faf7f2;
  --cream-deep: #f3ebdd;
  --cream-line: #e8dcc5;
  --ink: #2a2520;
  --ink-soft: #6b6053;
  --gold: #bca07b;
  --gold-light: #d9c7a8;
  --gold-deep: #8f7654;
  --dark: #1c1814;
  --dark-2: #262019;
  --on-dark: #f5ede0;
  --on-dark-soft: #b8ab98;

  --font-display: "Fraunces", ui-serif, "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --fs-display-xl: clamp(2.75rem, 3rem + 6vw, 8.5rem);
  --fs-display-lg: clamp(2.25rem, 2rem + 4.5vw, 5.75rem);
  --fs-display-md: clamp(1.75rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-display-sm: clamp(1.4rem, 1.2rem + 1.2vw, 2rem);
  --fs-body-lg: clamp(1.05rem, 1rem + 0.4vw, 1.4rem);
  --fs-body: clamp(0.98rem, 0.94rem + 0.2vw, 1.125rem);
  --fs-small: 0.85rem;
  --fs-label: 0.78rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;
  --space-7: 10rem;

  --ease-flow: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1360px;
  --edge: clamp(1.25rem, 5vw, 5rem);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
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.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--gold); color: var(--dark); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
  perspective: 1400px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: var(--gold-deep);
}
section.dark .eyebrow,
section.dark .eyebrow::before { color: var(--gold-light); background: var(--gold-light); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-flow), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-solid {
  background: var(--ink);
  color: var(--cream);
}
.btn-solid:hover { transform: translateY(-2px); background: var(--gold-deep); }
.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { transform: translateY(-2px); background: var(--ink); color: var(--cream); }
section.dark .btn-outline { border-color: var(--on-dark); color: var(--on-dark); }
section.dark .btn-outline:hover { background: var(--on-dark); color: var(--dark); }
.btn-ghost-gold {
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.btn-ghost-gold:hover { background: var(--gold); color: var(--dark); }

/* ==========================================================================
   Flow thread — signature scroll-progress element (desktop only)
   ========================================================================== */

.flow-thread {
  position: fixed;
  top: 6vh;
  left: calc(var(--space-2) + 6px);
  height: 88vh;
  width: 13px;
  z-index: 60;
  display: none;
  pointer-events: none;
}
.flow-thread .thread-track,
.flow-thread .thread-fill {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 2px;
}
.flow-thread .thread-track { background: var(--cream-line); }
.flow-thread .thread-fill {
  background: linear-gradient(var(--gold-deep), var(--gold));
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
}
.flow-thread .thread-node {
  position: absolute;
  left: 50%;
  width: 6.4px;
  height: 6.4px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.4px solid var(--gold-deep);
  transform: translate(-50%, -50%);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-flow);
}
.flow-thread .thread-node.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.35);
}
.flow-thread .thread-node[data-node="hero"] { top: 0%; }
.flow-thread .thread-node[data-node="method"] { top: 11%; }
.flow-thread .thread-node[data-node="new-to-flow"] { top: 22%; }
.flow-thread .thread-node[data-node="testimonials"] { top: 33%; }
.flow-thread .thread-node[data-node="studios"] { top: 44%; }
.flow-thread .thread-node[data-node="class-types"] { top: 55%; }
.flow-thread .thread-node[data-node="promos"] { top: 66%; }
.flow-thread .thread-node[data-node="events"] { top: 77%; }
.flow-thread .thread-node[data-node="shop"] { top: 88%; }
.flow-thread .thread-node[data-node="connect"] { top: 100%; }

@media (min-width: 1180px) {
  .flow-thread { display: block; }
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.announce-bar {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.03em;
}
.announce-track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: var(--edge);
  text-align: center;
}
.announce-slide {
  display: none;
  align-items: center;
  gap: 0.9em;
}
.announce-slide.is-active { display: flex; }
.announce-slide strong { color: var(--gold-light); font-weight: 600; }
.announce-slide a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: opacity 0.3s ease;
}
.announce-slide a:hover { opacity: 0.75; }

/* ==========================================================================
   Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--cream-line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand img { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand small { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

.nav-primary {
  display: none;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-small);
  letter-spacing: 0.03em;
}
.nav-primary a { position: relative; padding-block: 0.3em; }
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-deep);
  transition: right 0.35s var(--ease-flow);
}
.nav-primary a:hover::after { right: 0; }
@media (min-width: 860px) { .nav-primary { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-actions .btn-solid { display: none; }
@media (min-width: 640px) { .nav-actions .btn-solid { display: inline-flex; } }
.nav-actions .btn-outline {
  background: var(--cream);
  border-width: 1.5px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
}
.menu-toggle span { width: 22px; height: 1px; background: var(--ink); transition: transform 0.35s var(--ease-flow), opacity 0.25s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Full-screen nav overlay
   ========================================================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--dark);
  color: var(--on-dark);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
}
.menu-open .nav-overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay-inner {
  min-height: 100%;
  padding: clamp(5.5rem, 12vh, 8rem) var(--edge) var(--space-6);
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .nav-overlay-inner { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
}
.nav-group h3 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}
.nav-group ul { display: flex; flex-direction: column; gap: 0.65rem; }
.nav-group a {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  transition: color 0.25s ease, padding-left 0.3s var(--ease-flow);
}
.nav-group a:hover { color: var(--gold); padding-left: 0.35em; }
.nav-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: var(--edge);
}

/* ==========================================================================
   Sections — shared chapter scaffolding
   ========================================================================== */

section { position: relative; }
.chapter {
  padding-block: var(--space-6);
}
section.dark { background: var(--dark); color: var(--on-dark); }
section.dark .ink-soft { color: var(--on-dark-soft); }
.ink-soft { color: var(--ink-soft); }

.pin-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* ---- Shader hosts (animated mesh-gradient canvases) --------------------- */

.shader-host {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.shader-host canvas { display: block; width: 100%; height: 100%; }

.testimonials .shader-host { opacity: 0.85; }
.testimonials .testi-stage { position: relative; z-index: 1; }

.nav-overlay .shader-host { opacity: 0.85; }
.nav-overlay-inner { position: relative; z-index: 1; }
.nav-overlay-close { z-index: 2; }

/* ---- Hero ------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
  perspective: 1600px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.12);
  background: var(--dark);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 24, 20, 0.55) 0%, rgba(28, 24, 20, 0.35) 42%, rgba(28, 24, 20, 0.88) 100%);
}
.hero-aurora {
  position: absolute;
  inset: -10%;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: blur(60px);
}
.hero-aurora span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -8%; top: 4%; background: radial-gradient(circle, rgba(217,199,168,0.9), transparent 70%); }
.hero-aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -6%; top: 18%; background: radial-gradient(circle, rgba(188,160,123,0.8), transparent 70%); }
.hero-aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 22%; bottom: -12%; background: radial-gradient(circle, rgba(143,118,84,0.75), transparent 70%); }

/* Shader variant: reuses .hero-aurora's position/z-index/blend/opacity/GSAP
   parallax targeting, but skips the CSS blur (the mesh gradient is already
   soft) and hides the fallback blob spans once it mounts successfully. */
.hero-aurora-shader { filter: none; transition: opacity 0.6s ease; }
.hero.is-shader-active .hero-aurora:not(.hero-aurora-shader) { display: none; }

/* Video scrub hand-off: while js/main.js's pinned ScrollTrigger is actively
   scrubbing the hero video toward its 11s frame, the shader stays hidden and
   the headline/CTAs stay hidden, so the video reads as a wordless prelude.
   The .is-scrubbing class is only ever added by JS inside a live GSAP branch
   (never present under no-JS or prefers-reduced-motion), so content and the
   shader default to fully visible unless JS explicitly starts the scrub.
   Targets .hero-content-inner (not .hero-content itself) because the exit
   parallax below sets .hero-content's opacity via GSAP inline styles, which
   would otherwise permanently outrank this class-based rule. */
.hero.is-scrubbing .hero-aurora-shader { opacity: 0; }
.hero.is-scrubbing .hero-content-inner {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-6) var(--space-5);
}
.hero-content-inner {
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}
.hero-kicker b { color: var(--on-dark); font-weight: 600; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: var(--fs-display-xl);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  margin-top: var(--space-3);
  max-width: 42ch;
  font-size: var(--fs-body-lg);
  color: var(--on-dark-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.hero-scroll-cue {
  position: absolute;
  right: var(--edge);
  bottom: var(--space-3);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.hero-scroll-cue .line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); }
@media (min-width: 860px) { .hero-scroll-cue { display: flex; } }

/* ---- Method (pinned word reveal) --------------------------------------- */

.method {
  background: var(--cream-deep);
}
.method-stage { text-align: center; }
.method-lede {
  max-width: 54ch;
  margin-inline: auto;
  font-size: var(--fs-body-lg);
  color: var(--ink-soft);
}
.method-lede strong { color: var(--ink); font-weight: 600; }
.method-words {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 2.2rem);
  flex-wrap: wrap;
}
.method-words {
  perspective: 900px;
}
.method-words span {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: var(--fs-display-lg);
  color: var(--gold-deep);
  opacity: 1;
  display: inline-block;
  transform: rotateX(0deg) translateZ(0);
  backface-visibility: hidden;
  transition: opacity 0.4s ease, transform 0.45s var(--ease-flow), color 0.4s ease;
}
.method-stage.is-scrubbing .method-words span { opacity: 0.16; transform: rotateX(-32deg) translateZ(-36px); }
.method-stage.is-scrubbing .method-words span.is-active {
  opacity: 1;
  color: var(--ink);
  transform: rotateX(0deg) translateZ(28px) scale(1.04);
}
.method-tail {
  margin-top: var(--space-4);
  font-size: var(--fs-body-lg);
  max-width: 46ch;
  margin-inline: auto;
  color: var(--ink-soft);
}

/* ---- New to Flow -------------------------------------------------------- */

.new-to-flow .grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 940px) {
  .new-to-flow .grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.new-to-flow figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.new-to-flow figure img { width: 100%; height: 100%; object-fit: cover; }
.new-to-flow h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 400;
  line-height: 1.08;
  margin-block: var(--space-2) var(--space-3);
}
.new-to-flow p {
  font-size: var(--fs-body-lg);
  color: var(--ink-soft);
  max-width: 48ch;
}
.new-to-flow p + p { margin-top: 1.1em; }
.new-to-flow a.inline-link {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  font-weight: 600;
}
.new-to-flow .btn { margin-top: var(--space-3); }

/* ---- Testimonials (dark pinned scrub) ----------------------------------- */

.testimonials { background: var(--dark); color: var(--on-dark); }
.testi-stage { max-width: 900px; margin-inline: auto; text-align: center; }
.testi-heading {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 380;
  margin-bottom: var(--space-5);
}
.testi-slide { position: relative; perspective: 1000px; }
.testi-slide blockquote {
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.testi-stage.is-scrubbing .testi-slide { min-height: 260px; }
.testi-stage.is-scrubbing .testi-slide blockquote {
  position: absolute;
  inset: 0;
  justify-content: center;
  margin: 0;
  opacity: 0;
  transform: translateZ(-140px) rotateX(8deg);
  backface-visibility: hidden;
  transition: opacity 0.6s var(--ease-flow), transform 0.6s var(--ease-flow);
}
.testi-stage.is-scrubbing .testi-slide blockquote.is-active {
  opacity: 1;
  position: relative;
  transform: translateZ(0) rotateX(0deg);
}
.testi-slide p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.3rem, 1.05rem + 1.6vw, 2.35rem);
  line-height: 1.32;
}
.testi-slide cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-4);
}
.testi-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dark-2);
  border: 1px solid var(--on-dark-soft);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.testi-dots button.is-active { background: var(--gold); transform: scale(1.3); border-color: var(--gold); }

/* ---- Our Studios (pinned horizontal) ------------------------------------ */

.studios { background: var(--cream); overflow: hidden; }
.studios-intro {
  max-width: 62ch;
  margin-bottom: var(--space-5);
}
.studios-intro h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 400;
  margin-block: var(--space-2) var(--space-3);
}
.studios-intro p { font-size: var(--fs-body-lg); color: var(--ink-soft); }
.studios-intro p + p { margin-top: 1em; }
.studios-intro .btn { margin-top: var(--space-3); }

.studio-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.studio-track-wrap.is-pinned { overflow: hidden; }
.studio-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding-right: var(--space-6);
  transform-style: preserve-3d;
}
.studio-card { scroll-snap-align: start; }
.studio-card {
  width: min(72vw, 320px);
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  background: var(--cream-deep);
  border: 1px solid var(--cream-line);
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  will-change: transform;
  box-shadow: 0 1px 2px rgba(42, 37, 32, 0.05);
  transition: border-color 0.4s ease, box-shadow 0.45s var(--ease-flow);
}
.studio-card:hover,
.studio-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 30px 60px -26px rgba(42, 37, 32, 0.38), 0 6px 20px -8px rgba(188, 160, 123, 0.4);
}

.studio-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-line);
}
.studio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-flow);
}
.studio-card:hover .studio-card-media img,
.studio-card:focus-visible .studio-card-media img { transform: scale(1.08); }
.studio-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 20, 0) 42%, rgba(28, 24, 20, 0.6) 100%);
  opacity: 0.75;
  transition: opacity 0.4s ease;
}
.studio-card:hover .studio-card-media::after,
.studio-card:focus-visible .studio-card-media::after { opacity: 0.45; }

.studio-card.is-coming-soon .studio-card-media { background: var(--dark); }
.studio-card.is-coming-soon .studio-card-media img {
  object-fit: contain;
  padding: 22%;
  opacity: 0.9;
}
.studio-card.is-coming-soon .studio-card-media::after { display: none; }

.studio-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding: var(--space-3);
}
.studio-card-body .num { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-deep); }
.studio-card-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 450;
  color: var(--ink);
}
.studio-card-addr { color: var(--ink-soft); font-size: var(--fs-small); }
.studio-card.is-coming-soon .studio-card-addr {
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--fs-label);
}
.studio-card-cta {
  margin-top: var(--space-1);
  padding-top: var(--space-2);
  border-top: 1px solid var(--cream-line);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.studio-card-cta .arrow { display: inline-block; transition: transform 0.35s var(--ease-flow); }
.studio-card:hover .studio-card-cta .arrow,
.studio-card:focus-visible .studio-card-cta .arrow { transform: translateX(5px); }

/* ---- Location detail overlay --------------------------------------- */

.loc-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  pointer-events: none;
}
html.loc-open .loc-overlay { visibility: visible; pointer-events: auto; }
html.loc-open { overflow: hidden; }

.loc-overlay-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(38, 32, 25, 0.92), rgba(20, 17, 13, 0.97));
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-flow);
}
html.loc-open .loc-overlay-scrim { opacity: 1; }

.loc-overlay-viewport {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none; /* only the panel itself should catch clicks — everything else lets the scrim through */
}
@media (min-width: 760px) {
  .loc-overlay-viewport { padding: var(--space-3); }
}

/* Mobile-first: the panel is a near-full-viewport sheet so "expand" reads as
   a genuine full expansion on phones, not a small box floating mid-screen.
   The min-width: 760px block below switches it to the centered modal. */
.loc-panel {
  position: relative;
  pointer-events: auto; /* re-enable clicks; .loc-overlay-viewport lets them pass through elsewhere */
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  background: var(--cream);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.4s var(--ease-flow), transform 0.4s var(--ease-flow);
}
/* Author rules always win over the UA stylesheet regardless of specificity,
   so an unconditional `display` on `.loc-panel` would silently defeat the
   native `[hidden] { display: none }` behavior — this rule's extra
   attribute selector keeps it authoritative instead. */
.loc-panel[hidden] { display: none; }
.loc-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (min-width: 760px) {
  .loc-panel {
    width: min(920px, 100%);
    height: auto;
    max-height: min(620px, 88vh);
    grid-template-columns: 0.95fr 1.05fr;
    grid-template-rows: none;
    border-radius: 26px;
  }
}

.loc-panel-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--on-dark);
  background: rgba(28, 24, 20, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.loc-panel-close:hover { background: var(--gold); color: var(--dark); transform: rotate(90deg); }

.loc-panel-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dark);
}
@media (min-width: 760px) {
  .loc-panel-media { aspect-ratio: auto; height: 100%; }
}
.loc-panel-media img { width: 100%; height: 100%; object-fit: cover; }
#loc-panel-holland-village .loc-panel-media,
#loc-panel-holland-village .loc-panel-media img { object-fit: contain; padding: 18%; }

.loc-panel-body {
  padding: var(--space-4) var(--space-3) var(--space-3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.loc-panel-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-deep); }
.loc-panel-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.5rem + 1.4vw, 2.5rem);
  font-weight: 450;
  color: var(--ink);
}
.loc-panel-addr { color: var(--ink-soft); font-size: var(--fs-body); }
.loc-panel-transport {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--cream-line);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.loc-transport-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: var(--fs-label);
}
.loc-panel-transport ul { display: flex; flex-direction: column; gap: 0.5em; }
.loc-panel-transport strong { color: var(--ink); }
.loc-panel-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---- Class types ---------------------------------------------------- */

.class-types { text-align: center; }
.class-types h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 380;
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.05;
}
.class-types p {
  margin-top: var(--space-3);
  font-size: var(--fs-body-lg);
  color: var(--ink-soft);
}
.class-types .btn { margin-top: var(--space-4); }

/* ---- Promos ----------------------------------------------------------- */

.promos { background: var(--cream-deep); }
.promo-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 800px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  backface-visibility: hidden;
  will-change: transform;
}
.promo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.promo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,24,20,0.1) 30%, rgba(28,24,20,0.86) 100%);
}
.promo-card .promo-body { position: relative; z-index: 1; padding: var(--space-4); }
.promo-card .eyebrow { color: var(--gold-light); }
.promo-card .eyebrow::before { background: var(--gold-light); }
.promo-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-display-sm);
  font-weight: 420;
  margin-block: 0.4em 1em;
}

/* ---- Events ------------------------------------------------------------ */

.events .events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.events h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 400;
}
.event-card {
  display: grid;
  gap: var(--space-4);
  background: var(--cream-deep);
  border-radius: 26px;
  overflow: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
@media (min-width: 780px) { .event-card { grid-template-columns: 0.9fr 1.1fr; } }
.event-card figure { margin: 0; aspect-ratio: 4/5; }
.event-card figure img { width: 100%; height: 100%; object-fit: cover; }
.event-card .event-body { padding: var(--space-4); align-self: center; }
.event-card h3 { font-family: var(--font-display); font-size: var(--fs-display-sm); font-weight: 440; margin-bottom: var(--space-2); }
.event-card .btn { margin-top: var(--space-3); }

/* ---- Shop --------------------------------------------------------------- */

.shop {
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}
.shop .grid {
  display: grid;
  align-items: center;
  gap: var(--space-4);
}
@media (min-width: 900px) { .shop .grid { grid-template-columns: 1fr 1fr; } }
.shop h2 { font-family: var(--font-display); font-size: var(--fs-display-lg); font-weight: 380; }
.shop p { margin-top: var(--space-2); font-size: var(--fs-body-lg); color: var(--on-dark-soft); }
.shop .btn { margin-top: var(--space-3); }
.shop figure { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; }
.shop figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Connect / app -------------------------------------------------------- */

.connect .grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) { .connect .grid { grid-template-columns: 1.1fr 0.9fr; } }
.connect h2 { font-family: var(--font-display); font-size: var(--fs-display-md); font-weight: 400; margin-bottom: var(--space-2); }
.connect .lead { font-size: var(--fs-body-lg); color: var(--ink-soft); max-width: 40ch; }
.connect-block { margin-top: var(--space-4); }
.connect-block h3 { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--space-2); }
.connect-block p { color: var(--ink-soft); margin-bottom: var(--space-2); }
.social-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75em 1.4em; border-radius: 999px;
  border: 1px solid var(--cream-line);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.social-row a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.app-badges { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.app-badges img { height: 44px; width: auto; }
.connect figure { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; }
.connect figure img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  padding-block: var(--space-5) var(--space-3);
}
.footer-top {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.1fr 1.4fr 0.9fr; } }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand p { margin-top: var(--space-2); max-width: 34ch; }
.footer-contact { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 0.4rem; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-locations h3, .footer-app h3 {
  font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--space-2);
}
.footer-locations ul { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .footer-locations ul { grid-template-columns: 1fr 1fr; } }
.footer-locations li a { display: block; }
.footer-locations .loc-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--on-dark); }
.footer-locations .loc-addr { font-size: var(--fs-small); }
.footer-locations li a:hover .loc-name { color: var(--gold-light); }
.footer-app .app-badges { margin-top: 0; }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(245, 237, 224, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--fs-small);
}
.footer-legal { display: flex; gap: var(--space-2); }
.footer-legal a:hover { color: var(--gold-light); }
.footer-signoff {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Reveal utility (base state; JS/GSAP animates in)
   ========================================================================== */

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .reveal { opacity: 0; transform: translateY(28px); }
}

/* SplitText output safety: lines/words/chars stay visible until JS explicitly
   hides them via gsap.set — if SplitText fails to load, text is unaffected. */
.split-line { overflow: hidden; }
.split-line, .split-word, .split-char { backface-visibility: hidden; }

/* ==========================================================================
   Reduced motion & no-js safety
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .flow-thread { display: none !important; }
}
