/* ============================================================
   J&M Dance Center — editorial-motion theme
   Palette: warm cream canvas · deep teal + magenta duo
   Type: Fraunces (display) + Hanken Grotesk (body)
   ============================================================ */

:root {
  --teal-900: #0a5b5c;
  --teal:     #0f8a8b;
  --teal-400: #16a9a6;
  --magenta:  #96248c;
  --magenta-700: #6d1a68;
  --pink:     #e05fb8;
  --cream:    #faf4ea;
  --cream-2:  #f2e8d8;
  --paper:    #fffdf9;
  --ink:      #241a2c;
  --muted:    #6a6072;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 22px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* faint dotted texture over cream */
  background-image: radial-gradient(rgba(150, 36, 140, .05) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--magenta); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; line-height: 1;
  padding: .95em 1.5em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn--solid { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(15,138,139,.9); }
.btn--solid:hover { background: var(--teal-900); transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(15,138,139,.9); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(36,26,44,.25); }
.btn--ghost:hover { border-color: var(--magenta); color: var(--magenta); transform: translateY(-3px); }
.btn--lg { padding: 1.1em 1.8em; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Shared typography ---------- */
.eyebrow {
  font-weight: 700; text-transform: uppercase; letter-spacing: .22em;
  font-size: .74rem; color: var(--magenta);
}
.eyebrow--center { text-align: center; }

.section { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); position: relative; }
.section__head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__title {
  font-family: var(--serif); font-weight: 500; line-height: 1.02;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -.02em;
  font-optical-sizing: auto; margin: .35rem 0 .9rem;
}
.section__sub { color: var(--muted); font-size: 1.08rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--magenta);
  margin-top: 1.5rem;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* decorative shapes */
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: 0; pointer-events: none; }
.blob--teal { width: 42vw; max-width: 520px; aspect-ratio: 1; background: radial-gradient(circle, var(--teal-400), transparent 68%); }
.blob--magenta { width: 38vw; max-width: 460px; aspect-ratio: 1; background: radial-gradient(circle, var(--pink), transparent 66%); opacity: .38; }
.dot { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; border: 2px dashed rgba(15,138,139,.3); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 244, 234, .78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-stuck { border-color: rgba(36,26,44,.08); box-shadow: 0 6px 24px -18px rgba(36,26,44,.8); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .85rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 1.9rem; margin-left: auto; }
.nav__links a { font-weight: 600; font-size: .96rem; position: relative; padding: .2rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--magenta); transition: width .28s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .3rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 auto 0; z-index: 99;
  background: var(--paper); border-bottom: 1px solid rgba(36,26,44,.1);
  padding: 1.2rem var(--pad) 2rem; box-shadow: 0 20px 40px -24px rgba(36,26,44,.5);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: .2rem; }
.mobile-menu a { padding: .85rem 0; font-weight: 600; font-size: 1.15rem; border-bottom: 1px solid rgba(36,26,44,.07); }
.mobile-menu a.btn { margin-top: 1rem; border: 0; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .blob--teal { top: -8%; right: -6%; }
.hero .blob--magenta { bottom: -14%; left: -8%; }
.hero .dot--1 { width: 14px; height: 14px; background: var(--magenta); top: 22%; left: 6%; animation: float 7s ease-in-out infinite; }
.hero .dot--2 { width: 22px; height: 22px; background: var(--teal); bottom: 16%; right: 4%; animation: float 9s ease-in-out infinite reverse; }
.hero .ring--1 { width: 120px; height: 120px; top: 12%; right: 32%; animation: spin 40s linear infinite; }

.hero__grid {
  max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(1.5rem, 4vw, 3.25rem); align-items: center;
}
.hero__copy { padding: 2rem 0; }
.hero__title {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5.4vw, 3.7rem); line-height: 1; letter-spacing: -.025em;
  margin: 1.1rem 0 1.4rem;
}
.hero__title span { display: block; }
.hero__title-accent { font-style: italic; color: var(--magenta); font-weight: 500; }
.hero__lede { font-size: 1.18rem; color: var(--muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.5rem; }
.hero__stats { display: flex; gap: clamp(1.4rem, 4vw, 3rem); flex-wrap: wrap; }
.hero__stats dt { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--teal); line-height: 1; }
.hero__stats dd { font-size: .84rem; color: var(--muted); margin-top: .35rem; max-width: 14ch; }

/* hero media */
.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(36,26,44,.55); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { border: 6px solid var(--paper); }
.hero__photo--main img { height: auto; object-fit: contain; }
.hero__photo--float {
  position: absolute; bottom: -28px; left: -34px; width: 46%; aspect-ratio: 3/4;
  border: 6px solid var(--paper); animation: float 8s ease-in-out infinite;
}
.hero__badge {
  position: absolute; top: -26px; right: -18px; width: 118px; height: 118px;
  display: grid; place-items: center; z-index: 3;
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge text { font-family: var(--sans); font-size: 7.6px; font-weight: 700; letter-spacing: .14em; fill: var(--magenta); text-transform: uppercase; }
.hero__badge-core {
  width: 66px; height: 66px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  box-shadow: 0 8px 20px -8px rgba(15,138,139,.9);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--magenta); color: var(--cream); overflow: hidden;
  padding: .9rem 0; border-block: 3px solid var(--ink);
}
.marquee__track {
  display: flex; align-items: center; gap: 1.4rem; width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; font-weight: 500;
}
.marquee__track span { white-space: nowrap; }
.marquee .mdot { color: var(--pink); font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   CLASSES
   ============================================================ */
.classes { background: var(--cream); }
.cards {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.card {
  background: var(--paper); border-radius: var(--radius); padding: 1.7rem 1.5rem 1.6rem;
  border: 1px solid rgba(36,26,44,.07); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--magenta)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -26px rgba(36,26,44,.5); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__num { font-family: var(--serif); font-size: .9rem; color: var(--teal); font-weight: 600; letter-spacing: .1em; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; line-height: 1.1; margin: .5rem 0 .6rem; }
.card p { font-size: .95rem; color: var(--muted); }
.card__tag {
  display: inline-block; margin-top: 1.1rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-900); background: var(--cream-2); padding: .4em .8em; border-radius: 999px;
}
.card__tag--light { background: rgba(255,255,255,.22); color: #fff; }
.card--feature { background: var(--ink); color: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.card--feature::before { background: linear-gradient(90deg, var(--pink), var(--teal-400)); transform: scaleX(1); height: 5px; }
.card--feature .card__num { color: var(--pink); }
.card--feature h3 { font-size: 1.7rem; color: #fff; }
.card--feature p { color: rgba(250,244,234,.75); font-size: 1rem; }
.classes__note {
  max-width: 640px; margin: 2.6rem auto 0; text-align: center; color: var(--muted);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}

/* ============================================================
   INSTAGRAM
   ============================================================ */
.instagram { background: var(--cream-2); }
.ig__head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.ig__head .btn { margin-top: 1.5rem; }
.btn__ig { width: 20px; height: 20px; }
.ig__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.ig__tile { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: block; box-shadow: 0 14px 30px -20px rgba(36,26,44,.6); }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.ig__tile:hover img { transform: scale(1.09); }
.ig__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15,138,139,.35), rgba(150,36,140,.6)); opacity: 0; transition: opacity .3s var(--ease); }
.ig__tile:hover::after { opacity: 1; }
.ig__ic { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(.65); transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 2; }
.ig__tile:hover .ig__ic { opacity: 1; transform: none; }
.ig__ic svg { width: 36px; height: 36px; }
.ig__embeds { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: start; }
.ig__frame { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -20px rgba(36,26,44,.6); }
.ig__post { position: absolute; top: -54px; left: 0; width: 100%; height: 640px; border: 0; }

/* ============================================================
   GALLERY (masonry + lightbox)
   ============================================================ */
.gallery { background: var(--cream); }
.gallery__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  grid-auto-rows: 8px; grid-auto-flow: row dense;
}
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--cream-2); box-shadow: 0 14px 30px -22px rgba(36,26,44,.6);
  grid-row-end: span 40; align-self: start;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; display: block; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(180deg, transparent 45%, rgba(36,26,44,.72));
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1rem 1.1rem; color: #fff; font-weight: 600; font-size: .95rem; text-align: left;
  letter-spacing: .01em; transform: translateY(8px); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__item:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

.lightbox[hidden], .bio-modal[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(23,16,30,.96); padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity .28s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__fig { margin: 0; max-width: min(92vw, 1100px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); background: #fff;
}
.lightbox__cap { color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; line-height: 1;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--magenta); transform: scale(1.08); }
.lightbox__close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); font-size: 2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__prev { left: clamp(.6rem,2vw,1.8rem); }
.lightbox__next { right: clamp(.6rem,2vw,1.8rem); }

/* ============================================================
   STORY
   ============================================================ */
.story { background: linear-gradient(180deg, var(--cream), var(--cream-2)); overflow: hidden; }
.story .dot--3 { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(224,95,184,.25), transparent 70%); top: 6%; right: -40px; filter: blur(20px); }
.story__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 2; }
.story__media { position: relative; }
.story__photo { border-radius: var(--radius); overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(36,26,44,.5); }
.story__photo img { width: 100%; height: auto; display: block; }
.story__stamp {
  position: absolute; bottom: -26px; right: -14px; background: var(--teal); color: #fff;
  border-radius: 50%; width: 128px; height: 128px; display: grid; place-content: center; text-align: center;
  box-shadow: 0 16px 32px -14px rgba(15,138,139,.9); transform: rotate(-8deg);
}
.story__stamp-year { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.story__stamp-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; margin-top: .3rem; }
.story__copy p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.story__copy .section__title { margin-top: .4rem; }
.story__wins { list-style: none; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.story__wins li { padding-left: 1.7rem; position: relative; font-size: 1rem; color: var(--ink); }
.story__wins li::before { content: "✦"; position: absolute; left: 0; color: var(--magenta); }
.story__wins strong { font-weight: 700; }

/* ============================================================
   FACULTY
   ============================================================ */
.faculty { background: var(--cream-2); }
.faculty__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.teacher { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(36,26,44,.07); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.teacher:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -26px rgba(36,26,44,.5); }
.teacher__photo { aspect-ratio: 4/5; overflow: hidden; background: var(--cream-2); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.teacher:hover .teacher__photo img { transform: scale(1.05); }
.teacher__photo--mono { display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--teal-400)); }
.teacher__photo--mono span { font-family: var(--serif); font-size: 5rem; color: #fff; font-weight: 600; }
.teacher__body { padding: 1.4rem 1.5rem 1.7rem; }
.teacher__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.teacher__role { color: var(--magenta); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: .3rem 0 .8rem; }
.teacher__bio { position: relative; transition: max-height .45s var(--ease); }
.teacher__bio p { color: var(--muted); font-size: .95rem; margin-bottom: .7rem; }
.teacher__bio p:last-child { margin-bottom: 0; }
.teacher__bio .teacher__quote { font-family: var(--serif); font-style: italic; color: var(--ink); margin-top: 1rem; }
.teacher__bio--clamp:not(.is-expanded) { max-height: 7.4em; overflow: hidden; }
.teacher__bio--clamp:not(.is-expanded)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6em;
  background: linear-gradient(transparent, var(--paper)); pointer-events: none;
}
.teacher__bio.is-expanded { max-height: 3000px; }
.teacher--lead { grid-column: span 3; display: grid; grid-template-columns: 300px 1fr; }
.teacher--lead .teacher__photo { aspect-ratio: auto; height: 100%; min-height: 340px; }
.teacher--lead .teacher__body { display: flex; flex-direction: column; justify-content: center; padding: 2.2rem; }
.teacher--lead h3 { font-size: 2rem; }
.teacher--lead .teacher__bio { max-width: 66ch; }
.teacher--lead .teacher__bio p { font-size: 1.04rem; }
.teacher__more {
  align-self: flex-start; margin-top: .9rem; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--magenta); letter-spacing: .01em;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.teacher__more:hover { color: var(--magenta-700); transform: translateX(3px); }

/* Instructor bio modal */
.bio-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(23,16,30,.72); padding: clamp(1rem, 4vw, 3rem); opacity: 0; transition: opacity .28s var(--ease);
}
.bio-modal.is-open { opacity: 1; }
.bio-modal__panel {
  position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.bio-modal__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.05; }
.bio-modal__role { color: var(--magenta); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: .4rem 0 1.4rem; }
.bio-modal__body p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.bio-modal__body p:last-child { margin-bottom: 0; }
.bio-modal__body .teacher__quote { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.1rem; margin-top: 1.4rem; }
.bio-modal__close {
  position: absolute; top: .8rem; right: .8rem; width: 42px; height: 42px; border: 0; border-radius: 999px;
  background: var(--cream-2); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.bio-modal__close:hover { background: var(--magenta); color: #fff; transform: scale(1.08); }

/* ============================================================
   SCHEDULE & TUITION
   ============================================================ */
.schedule { background: var(--cream); }
.schedule__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.schedule__intro p { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }
.schedule__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.tuition { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 2rem 2rem 1.8rem; box-shadow: 0 30px 60px -30px rgba(36,26,44,.7); }
.tuition__head h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: #fff; }
.tuition__head p { color: rgba(250,244,234,.6); font-size: .85rem; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: .08em; }
.tuition__list { list-style: none; }
.tuition__list li { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; border-bottom: 1px dashed rgba(250,244,234,.16); }
.tuition__list span { color: rgba(250,244,234,.82); }
.tuition__list b { font-family: var(--serif); font-size: 1.25rem; color: var(--pink); font-weight: 600; }
.tuition__cap b { color: var(--teal-400); }
.tuition__fine { font-size: .82rem; color: rgba(250,244,234,.6); margin-top: 1.1rem; line-height: 1.5; }

.chart { display: block; max-width: var(--maxw); margin: 2.6rem auto 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(36,26,44,.5); }
.chart img { width: 100%; transition: transform .6s var(--ease); }
.chart:hover img { transform: scale(1.02); }
.chart__label { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--magenta); color: #fff; font-weight: 700; padding: .7em 1.3em; border-radius: 999px; font-size: .9rem; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); white-space: nowrap; }

/* ============================================================
   VISIT
   ============================================================ */
.visit { background: linear-gradient(180deg, var(--cream), var(--cream-2)); overflow: hidden; }
.visit .blob--v { top: -30%; left: 50%; transform: translateX(-50%); width: 92vw; max-width: 1020px; opacity: .2; filter: blur(90px); }
.visit__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 2; }
.visit__lede { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 42ch; }
.visit__details { list-style: none; margin-top: 2.2rem; display: grid; gap: 1.6rem; }
.visit__details li { display: grid; }
.visit__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--magenta); margin-bottom: .35rem; }
.visit__details a { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); width: fit-content; transition: color .25s; }
.visit__details a:hover { color: var(--teal); }
.visit__meta { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.visit__social { display: flex; gap: 1.2rem; }
.visit__social a { font-size: 1.1rem; }

.visit__cta { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 2.4rem; box-shadow: 0 30px 60px -30px rgba(15,138,139,.9); }
.visit__cta h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.05; }
.visit__cta p { color: rgba(255,255,255,.85); margin: .8rem 0 1.6rem; }
.visit__cta .btn--solid { background: var(--paper); color: var(--teal-900); box-shadow: none; margin-bottom: .8rem; }
.visit__cta .btn--solid:hover { background: #fff; transform: translateY(-3px); }
.visit__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.visit__cta .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand img { height: 62px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { color: rgba(250,244,234,.62); font-size: .95rem; max-width: 34ch; }
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a, .footer__contact a { color: rgba(250,244,234,.8); transition: color .25s; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--pink); }
.footer__contact { display: grid; gap: .7rem; align-content: start; }
.footer__social { display: flex; gap: 1.1rem; margin-top: .3rem; }
.footer__base { max-width: var(--maxw); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(250,244,234,.14); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(250,244,234,.55); }
.footer__base a:hover { color: var(--pink); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.cards .card.reveal { transition-delay: calc(var(--i) * .07s); }

/* hero reveals fire on load */
.js .hero .reveal { opacity: 0; transform: translateY(26px); animation: heroIn .8s var(--ease) forwards; animation-delay: var(--d, 0s); }

@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .hero .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee__track, .hero__badge svg, .hero .dot--1, .hero .dot--2, .hero .ring--1, .hero__photo--float { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; margin: 1rem auto 0; }
  .story__grid, .schedule__grid, .visit__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .faculty__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .ig__embeds { grid-template-columns: repeat(2, 1fr); }
  .teacher--lead { grid-column: span 2; grid-template-columns: 240px 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .ig__embeds { grid-template-columns: 1fr; max-width: 380px; }
  .faculty__grid { grid-template-columns: 1fr; }
  .teacher--lead { grid-column: span 1; grid-template-columns: 1fr; }
  .teacher--lead .teacher__photo { min-height: 360px; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .marquee__track { font-size: 1.3rem; }
  .story__stamp { width: 104px; height: 104px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}
