/* Sanctuary Yoga Studio — stylesheet
   Design tokens ported from the Claude Design handoff (Sanctuary Yoga design system). */

@import url('../tokens-type.css');

/* Self-hosted type (latin subsets, woff2). Poppins ships as static weights only --
   there is no variable release -- so the four weights the site uses are listed.
   Source Serif 4 is a single variable file (wght 200-900). */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../assets/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --- Base palette --- */
  --color-black:  #1A1613;
  --color-ember:  #7A1E12;
  --color-burnt:  #C43A1B;
  --color-orange: #E8631F;
  --color-amber:  #F2A93C;
  --color-brown:  #4A3A38;

  --color-amber-soft:  #F7C778;
  --color-amber-pale:  #FBE9D2;
  --color-burnt-dark:  #A62E13;
  --color-ember-dark:  #5E160D;
  --color-black-80:    #3A322D;

  /* --- Semantic aliases --- */
  --surface-page:  var(--color-amber-pale);
  --surface-warm:  var(--color-amber);
  --surface-card:  #FFFFFF;
  --surface-dark:  var(--color-black);
  --surface-muted: var(--color-brown);

  --text-strong:  var(--color-black);
  --text-body:    var(--color-black-80);
  --text-muted:   var(--color-brown);
  --text-on-dark: var(--color-amber-pale);
  --text-on-warm: var(--color-black);
  --text-heading: var(--color-black);
  --text-eyebrow: var(--color-ember);

  --accent:        var(--color-orange);
  --accent-strong: var(--color-burnt);

  --link:       var(--color-ember);
  --link-hover: var(--color-burnt);

  --cta-bg:        var(--color-burnt);
  --cta-bg-hover:  var(--color-orange);
  --cta-bg-active: var(--color-burnt-dark);
  --cta-text:      var(--color-amber-pale);

  --border-subtle: rgba(74, 58, 56, 0.18);
  --border-strong: rgba(74, 58, 56, 0.38);
  --divider:       var(--color-ember);

  /* --- Typography --- */
  --font-heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* headings + UI */
  --font-body:    'Source Serif 4', Georgia, serif;                              /* prose */

  --weight-body:     400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    800;

  /* Type sizes live in ../tokens-type.css (--fs-display/h2/h3/body/small). */

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.6;

  --tracking-eyebrow: 0.14em;
  --tracking-tight:   -0.01em;

  /* --- Spacing / layout --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --section-y: var(--space-9);
  --container: 1120px;
  --gutter:    var(--space-5);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  /* --- Effects --- */
  --shadow-sm: 0 1px 2px rgba(26, 22, 19, 0.06), 0 2px 6px rgba(26, 22, 19, 0.06);
  --shadow-md: 0 6px 18px rgba(26, 22, 19, 0.10), 0 2px 6px rgba(26, 22, 19, 0.06);
  --shadow-lg: 0 18px 48px rgba(26, 22, 19, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 180ms var(--ease);
  --transition-slow: 320ms var(--ease);

  --gradient-ember: linear-gradient(135deg, var(--color-burnt) 0%, var(--color-orange) 100%);
  --overlay-dark: linear-gradient(180deg, rgba(26,22,19,0.15) 0%, rgba(26,22,19,0.72) 100%);
  --hero-overlay: linear-gradient(90deg, rgba(26,22,19,0.8) 0%, rgba(26,22,19,0.62) 45%, rgba(26,22,19,0.22) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
}

/* Type roles. Poppins carries structure and controls; the serif carries reading text.
   The serif must never reach a UI control. */
h1, h2, h3, h4, h5, h6,
nav, button, .btn, .label, .eyebrow, .badge { font-family: var(--font-heading); }
p, li, blockquote, input, select, textarea { font-family: var(--font-body); }

img { max-width: 100%; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

::selection { background: var(--accent); color: var(--text-on-warm); }

/* Skip link: first focusable element; hidden off-canvas until it receives focus. */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 3px solid var(--color-amber); outline-offset: 2px; }

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

/* ===== Wordmark ===== */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  font-size: var(--fs-h3);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-black);
}
.wordmark--light { color: var(--color-amber-pale); }
.wordmark__dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: var(--radius-pill);
  background: var(--gradient-ember);
  flex-shrink: 0;
}
.wordmark__accent { font-weight: var(--weight-medium); color: var(--color-orange); }

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  line-height: 1;
}
.badge--orange { background: var(--color-orange); color: var(--color-black); }
.badge--soft   { background: var(--color-amber-soft); color: var(--color-ember-dark); }
.badge--ember  { background: var(--color-ember); color: var(--color-amber-pale); }

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 0.5rem 1rem; font-size: var(--fs-small); }
.btn--lg { padding: 1rem 2.25rem; font-size: var(--fs-body); }

.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}
.btn--primary:hover { background: var(--cta-bg-hover); color: var(--cta-text); }
.btn--primary:active { background: var(--cta-bg-active); }

.btn--secondary {
  background: transparent;
  color: var(--color-ember);
  border-color: var(--color-ember);
}
.btn--secondary:hover { background: var(--color-ember); color: var(--cta-text); }

.btn--ghost {
  background: transparent;
  color: var(--color-ember);
}
.btn--ghost:hover { color: var(--link-hover); }

.hero-secondary.btn--secondary {
  color: var(--color-amber-pale);
  border-color: var(--color-amber-pale);
}
.hero-secondary.btn--secondary:hover {
  color: var(--cta-text);
  background: var(--color-amber-pale);
  border-color: var(--color-amber-pale);
}

/* ===== Card ===== */
.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-card);
  color: var(--text-body);
}
.card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Form fields ===== */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-small);
  color: var(--text-strong);
}
.field__optional {
  font-weight: var(--weight-body);
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-strong);
  background: #FFFFFF;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field textarea { resize: vertical; }
.field select { appearance: auto; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-ember);
  box-shadow: 0 0 0 3px rgba(122, 30, 18, 0.14);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 233, 210, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: var(--space-5); }
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--text-strong);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-ember); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero__content {
  position: relative;
  width: 100%;
}
.hero__copy { max-width: 620px; }
.hero__copy h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 1.05;
  color: var(--color-amber-pale);
  margin: 18px 0 16px;
}
.hero__copy p {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  line-height: 1.55;
  color: rgba(251,233,210,0.9);
  margin: 0 0 30px;
  max-width: 500px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 3D perspective card (ported from Lightswind's 3D Perspective Card):
   js/tilt-card.js tilts it toward the cursor; a slow float runs regardless. */
.hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
}
.hero__visual {
  perspective: 900px;
  flex-shrink: 0;
}
@keyframes sy-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.tilt-card {
  position: relative;
  width: 300px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  will-change: transform;
  animation: sy-float 6s ease-in-out infinite;
}
.tilt-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 22, 19, 0.05) 30%, rgba(26, 22, 19, 0.72) 100%);
}
.tilt-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
}
.tilt-card__content h2 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  color: var(--color-amber-pale);
  margin: 10px 0 4px;
}
.tilt-card__content p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: rgba(251, 233, 210, 0.85);
  margin: 0;
}
.tilt-card__content .badge { align-self: flex-start; }
.tilt-card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero__visual { display: none; }
}
/* Card artwork lives here, not in the markup: below 901px the card is display:none,
   so declaring the image inside this block means phones never request it. */
@media (min-width: 901px) {
  .tilt-card { background: url("../assets/images/nature-sunset-800.webp") center / cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt-card { animation: none; }
}

/* ===== Section headings ===== */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
  margin: 0 0 14px;
}
.eyebrow--on-dark { color: var(--color-orange); }
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--text-heading);
  margin: 0;
}
.section-title--on-dark { color: var(--color-amber-pale); }

/* ===== About ===== */
.about {
  background: var(--surface-page);
  padding: var(--section-y) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/5;
}
/* Split image grid (ported from Lightswind's Split Image Grid): the plain
   img above is the no-JS fallback; js/split-grid.js replaces it with a
   staggered tile grid that pops in and drifts per column on scroll. */
.about__image.split-grid--active {
  overflow: visible;
  box-shadow: none;
  border-radius: 0;
}
.split-grid__canvas {
  position: relative;
  transform-origin: top left;
}
.split-grid__tile {
  position: absolute;
  border: 4px solid var(--color-amber-pale);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(80px) scale(0.8);
  transition:
    opacity 700ms var(--ease),
    transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 350ms var(--ease);
}
.split-grid__tile.in-view {
  opacity: 1;
  transform: translateY(var(--parallax-y, 0)) scale(1);
}
.split-grid__tile.in-view:hover {
  transform: translateY(var(--parallax-y, 0)) scale(1.08);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}
@media (prefers-reduced-motion: reduce) {
  .split-grid__tile {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-timeline__fill { height: 100% !important; }
  .scroll-timeline__dot { transition: none !important; }
}
.about h2 { margin-bottom: 20px; }
.about p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 16px;
}
.about__badges { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: 24px; }

/* ===== Classes ===== */
.classes { background: var(--color-black); padding: var(--section-y) 0; }
.classes__heading { max-width: 560px; margin-bottom: var(--space-7); }

/* Seasonal hover cards (ported from Lightswind's Seasonal Hover Cards):
   the hovered class expands while the others make room; its description
   slides up into view. */
.classes__row {
  display: flex;
  gap: var(--space-5);
  align-items: stretch;
}
.season-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  cursor: pointer;
}
/* Higher specificity than .reveal-left so the entrance transition and the
   flex-grow hover transition can coexist. */
.classes__row > .season-card {
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease),
    flex-grow 500ms var(--ease);
}
.classes__row > .season-card:hover { flex-grow: 2.2; }
.season-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.season-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 22, 19, 0.2) 0%, rgba(26, 22, 19, 0.78) 100%);
}
.season-card__label { position: relative; z-index: 1; }
.season-card__label .badge { margin-bottom: 10px; }
.season-card__label h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  color: var(--color-amber-pale);
  margin: 0 0 4px;
}
.season-card__time {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-small);
  color: var(--color-amber-soft);
  margin: 0;
}
.season-card__desc {
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), max-height 500ms var(--ease), margin-top 500ms var(--ease);
}
.season-card:hover .season-card__desc {
  max-height: 120px;
  opacity: 1;
  transform: none;
  margin-top: 12px;
}
.season-card__desc p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: rgba(251, 233, 210, 0.92);
  margin: 0;
}

/* ===== Contact ===== */
.contact {
  /* Dark ground so the fire shader glows; the radial ember gradient is the
     static fallback when WebGL is unavailable or motion is reduced. */
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(122, 30, 18, 0.55) 0%, transparent 70%),
    var(--color-black);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
.contact__fire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
/* Lab layout: a single centered booking card floating over the fire. */
.contact__wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.contact__form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
}
.contact__form h2 { margin: 0 0 22px; }
.contact__form form { display: flex; flex-direction: column; gap: var(--space-5); }
.contact__form .btn { margin-top: 4px; align-self: flex-start; }
.contact__success {
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ember);
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer { background: var(--color-black); padding: var(--space-8) 0 var(--space-6); }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer__brand { max-width: 320px; }
.site-footer__brand p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(251,233,210,0.7);
  margin: 14px 0 0;
}
.site-footer__links { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.site-footer__links h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-orange);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer__links p {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(251,233,210,0.8);
  margin: 0;
}
.foot-social { display: flex; flex-direction: column; gap: var(--space-2); }
.foot-social a {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  color: rgba(251,233,210,0.8);
  transition: color var(--transition);
}
.foot-social a:hover { color: var(--color-orange); }
.site-footer__bottom {
  margin: var(--space-6) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(251,233,210,0.14);
}
.site-footer__bottom p {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(251,233,210,0.5);
  margin: 0;
}

/* ===== Booking modal ===== */
@keyframes sy-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sy-pop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26,22,19,0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: sy-fade 220ms var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  padding: var(--space-7);
  animation: sy-pop 260ms var(--ease);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-heading);
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: var(--color-burnt); background: rgba(122,30,18,0.08); }
.modal h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--text-heading);
  margin: 0 0 12px;
}
.modal p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 26px;
}
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Story ===== */
.story { background: var(--surface-card); padding: var(--section-y) 0; }
.story__heading {
  max-width: 640px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.story__intro {
  max-width: 680px;
  margin: 0 auto var(--space-7);
}
.story__intro p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-body);
  text-align: center;
  margin: 0;
}

/* Scroll timeline (ported from Lightswind's Scroll Timeline): a center track
   with a gradient fill and glowing comet head driven by scroll, and milestone
   cards alternating left/right of the line. */
.scroll-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-4) 0;
}
.scroll-timeline__track,
.scroll-timeline__fill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  border-radius: var(--radius-pill);
}
.scroll-timeline__track {
  height: 100%;
  background: var(--color-amber-soft);
  opacity: 0.55;
}
.scroll-timeline__fill {
  height: 0;
  background: linear-gradient(to bottom, var(--color-ember), var(--color-orange), var(--color-amber-soft));
  box-shadow: 0 0 15px rgba(232, 99, 31, 0.5), 0 0 25px rgba(242, 169, 60, 0.3);
  z-index: 1;
}
@keyframes sy-comet {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.3); }
}
.scroll-timeline__comet {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(247, 199, 120, 0.95) 0%, rgba(232, 99, 31, 0.55) 40%, rgba(122, 30, 18, 0) 70%);
  box-shadow:
    0 0 15px 4px rgba(242, 169, 60, 0.6),
    0 0 25px 8px rgba(232, 99, 31, 0.4),
    0 0 40px 15px rgba(196, 58, 27, 0.2);
  animation: sy-comet 2s ease-in-out infinite;
}
.scroll-timeline__events {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}
.scroll-timeline__event {
  position: relative;
  display: flex;
  margin-bottom: var(--space-6);
}
.scroll-timeline__event:last-child { margin-bottom: 0; }
.scroll-timeline__event:nth-child(odd) { justify-content: flex-start; }
.scroll-timeline__event:nth-child(even) { justify-content: flex-end; }
.scroll-timeline__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 3px solid var(--color-amber-soft);
  z-index: 3;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}
.scroll-timeline__event.is-active .scroll-timeline__dot {
  border-color: var(--color-orange);
  box-shadow: 0 0 12px rgba(232, 99, 31, 0.6);
}
.scroll-timeline__card {
  width: calc(50% - 40px);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.scroll-timeline__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.scroll-timeline__year {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ember);
}
.scroll-timeline__card h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  color: var(--text-heading);
  margin: 6px 0;
}
.scroll-timeline__card p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}
/* ===== Teachers ===== */
.teachers { background: var(--surface-page); padding: var(--section-y) 0; }
.teachers__heading { max-width: 560px; margin-bottom: var(--space-7); }
.teachers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
.teachers__grid > .reveal-left {
  display: flex;
  flex-direction: column;
}
/* Focus cards (ported from Lightswind's Focus Cards, lab styling): image-only
   cards; hovering reveals the name overlay while siblings blur and dim. */
.focus-card {
  position: relative;
  /* flex-basis must stay auto: a 0% basis overrides the height in the column
     wrapper and collapses the card (all its content is absolutely positioned) */
  flex: 1 0 auto;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: filter 500ms var(--ease), opacity 500ms var(--ease), transform 500ms var(--ease);
}
.focus-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.focus-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 19, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.focus-card:hover .focus-card__overlay { opacity: 1; }
.focus-card__overlay h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  color: var(--color-amber-pale);
  margin: 0 0 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.focus-card__overlay p {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-amber-soft);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.teachers__grid:has(.focus-card:hover) .focus-card:not(:hover) {
  filter: blur(4px);
  opacity: 0.4;
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .teachers__grid:has(.focus-card:hover) .focus-card:not(:hover) {
    filter: none;
    transform: none;
    opacity: 0.55;
    transition: none;
  }
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--color-ember);
  padding: var(--section-y) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.testimonials > .container { width: 100%; }
.testimonials__heading { max-width: 560px; margin-bottom: var(--space-7); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
/* Glow effect (ported from Lightswind's Glowing Cards): quiet borders that
   ignite with an amber glow on hover. */
.testimonial {
  margin: 0;
  background: var(--color-ember-dark);
  border: 1px solid rgba(251, 233, 210, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease), transform 400ms var(--ease);
}
.testimonial:hover {
  border-color: rgba(247, 199, 120, 0.65);
  box-shadow:
    0 0 22px rgba(242, 169, 60, 0.28),
    0 0 44px rgba(232, 99, 31, 0.16),
    inset 0 0 18px rgba(242, 169, 60, 0.07);
  transform: translateY(-4px);
}
.testimonial blockquote {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-amber-pale);
  margin: 0;
  flex: 1;
}
.testimonial figcaption {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--fs-small);
  color: var(--color-amber-soft);
}
.testimonial figcaption span {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  color: rgba(251, 233, 210, 0.7);
}

/* ===== Pricing ===== */
.pricing { background: var(--surface-page); padding: var(--section-y) 0; }
.pricing__heading { max-width: 560px; margin-bottom: var(--space-7); }
.pricing__note {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  margin: 16px 0 0;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
.pricing__grid > .reveal-left {
  display: flex;
  flex-direction: column;
}
.price-card {
  flex: 1;
  padding: var(--space-6);
  gap: 0;
  transition: transform 340ms var(--ease), box-shadow 340ms var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.price-card .badge { align-self: flex-start; margin-bottom: 14px; }
/* Border beam (ported from Lightswind's Border Beam): an ember beam
   travels around the featured card's border. Browsers without @property
   fall back to the static reduced-motion border below. */
@property --sy-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes sy-beam {
  to { --sy-beam-angle: 360deg; }
}
.price-card--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface-card), var(--surface-card)) padding-box,
    conic-gradient(
      from var(--sy-beam-angle),
      rgba(232, 99, 31, 0.25) 0%,
      rgba(232, 99, 31, 0.25) 70%,
      var(--color-orange) 82%,
      var(--color-amber-soft) 90%,
      rgba(232, 99, 31, 0.25) 100%
    ) border-box;
  animation: sy-beam 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .price-card--featured {
    animation: none;
    background: var(--surface-card);
    border-color: var(--color-orange);
  }
  .price-card { transition: none; }
  .testimonial { transition: none; }
}
.price-card h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  color: var(--text-heading);
  margin: 0 0 8px;
}
.price-card__price {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--color-ember);
  margin: 0 0 18px;
}
.price-card__price span {
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  font-size: 1rem;
  color: var(--text-muted);
}
.price-card ul {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1;
}
.price-card li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-body);
  padding-left: 26px;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-amber-soft);
}
.price-card .btn { align-self: flex-start; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-56px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(56px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}
.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view { opacity: 1; transform: none; }
.reveal-left:nth-child(2),
.reveal-right:nth-child(2) { transition-delay: 90ms; }
.reveal-left:nth-child(3),
.reveal-right:nth-child(3) { transition-delay: 180ms; }
.reveal-left:nth-child(4),
.reveal-right:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .season-card, .season-card__desc, .focus-card, .focus-card__overlay { transition: none !important; }
  .scroll-timeline__comet { animation: none !important; }
}

@media (max-width: 760px) {
  .nav-links { display: none !important; }
  .about-grid { grid-template-columns: 1fr !important; }

  /* Seasonal cards stack; descriptions always visible (no hover on touch) */
  .classes__row { flex-direction: column; }
  .season-card { height: 320px; }
  .season-card__desc {
    max-height: 120px;
    opacity: 1;
    transform: none;
    margin-top: 12px;
  }

  /* Scroll timeline: line moves to the left edge, cards go full width */
  .scroll-timeline__track,
  .scroll-timeline__fill { left: 8px; transform: none; }
  .scroll-timeline__comet { left: 1px; transform: none; }
  .scroll-timeline__event,
  .scroll-timeline__event:nth-child(even) { justify-content: flex-start; }
  .scroll-timeline__dot { left: 9px; }
  .scroll-timeline__card {
    width: 100%;
    margin-left: 32px;
  }

  .focus-card { height: 320px; }
}

/* ===== Custom cursor =====
   Progressive enhancement only: the page keeps its native cursor until
   cursor.js has confirmed it's safe (fine pointer, enough cores) and adds
   .has-custom-cursor to <html>. Never hide the native cursor globally. */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  transition: opacity var(--transition);
}
.cursor-dot--hidden { opacity: 0; }

.cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-amber-pale);
  box-shadow: 0 0 0 1px rgba(26, 22, 19, 0.35);
  transition: width var(--transition), height var(--transition), border-radius var(--transition);
}
.cursor-ring--hover {
  width: 58px;
  height: 58px;
}
.cursor-ring--text {
  width: 2px;
  height: 26px;
  border-radius: 2px;
  box-shadow: none;
}

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    transition: none !important;
  }
}

/* Role guard: labels stay Poppins even inside section-level p rules (.about p, .modal p ...).
   Same specificity as those rules (0,1,1); wins by source order. */
p.eyebrow, p.label, p.badge { font-family: var(--font-heading); }
