/* ============================================================
   T's Studios School of Dance — styles
   Theme: black + gold marquee luxe
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0d;
  --panel: #15140f;
  --panel-2: #1b1a13;
  --line: rgba(201, 162, 39, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);

  --gold-1: #f2d680;
  --gold-2: #e8c25a;
  --gold-3: #c9962e;
  --gold-deep: #9a7421;
  --gold-grad: linear-gradient(135deg, #f6e3a1 0%, #e8c25a 38%, #c9962e 72%, #9a7421 100%);

  --cream: #f3ecdd;
  --white: #fdfdfb;
  --muted: #b7b1a3;
  --muted-2: #8b8678;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow,
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 1rem;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
}

.lead { font-size: 1.12rem; color: var(--cream); margin-bottom: 1.1rem; }
.section p { color: var(--muted); margin-bottom: 1rem; }
.section p.lead { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-grad);
  color: #1a1407;
  box-shadow: 0 8px 26px -10px rgba(232, 194, 90, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(232, 194, 90, 0.75); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 236, 221, 0.28);
}
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-1); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-logo { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cream);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s;
}
.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-grad);
  transition: width 0.3s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--gold-1); }
.nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 132px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(201, 150, 46, 0.12), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(232, 194, 90, 0.07), transparent 60%),
    var(--bg);
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -120px; top: 40px;
  background: radial-gradient(circle, rgba(232, 194, 90, 0.16), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.03;
  color: var(--white);
  letter-spacing: -0.015em;
  margin: 0.6rem 0 1.3rem;
}
.hero-title span { display: block; }

/* Hero logo (replaces the text headline) */
.hero-logo-wrap { margin: 0.4rem 0 1.4rem; line-height: 0; }
.hero-logo {
  width: clamp(320px, 48vw, 600px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.55));
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.7rem; }
.hero-meta {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

/* Phone-style portrait video frame (fits 9:16 video natively) */
.hero-media { position: relative; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: min(320px, 78%);
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  padding: 9px;
  background: linear-gradient(160deg, rgba(246, 227, 161, 0.55), rgba(154, 116, 33, 0.35));
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(232, 194, 90, 0.25),
    0 0 60px -20px rgba(232, 194, 90, 0.35);
  border: 0;
  cursor: pointer;
  display: block;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.phone-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 48px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(232, 194, 90, 0.4),
    0 0 80px -18px rgba(232, 194, 90, 0.5);
}
.hero-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 10, 9, 0.55);
  border: 1px solid rgba(243, 236, 221, 0.6);
  color: var(--white);
  backdrop-filter: blur(2px);
  padding-left: 4px;
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.phone-frame:hover .hero-play {
  background: var(--gold-grad);
  color: #1a1407;
  border-color: transparent;
  transform: translate(-50%, -50%) scale(1.08);
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  background: #000;
}
.media-badge {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 10, 9, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.media-badge-star { color: var(--gold-2); }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 1.05rem 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  animation: scroll-x 34s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
}
.marquee-track .dot { color: var(--gold-2); font-size: 0.9rem; font-style: normal; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-intro { font-size: 1.08rem; color: var(--muted); }

/* ---------- Welcome ---------- */
.welcome { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.welcome-media { position: relative; }
.welcome-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.welcome-media-frame {
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold-3);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}

/* ---------- Values ---------- */
.values-section { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value {
  padding: 2rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.value:hover { transform: translateY(-6px); border-color: var(--line); }
.value-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-2);
  font-style: italic;
}
.value h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--white); margin: 0.6rem 0 0.5rem; }
.value p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---------- Classes ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.class-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.class-card:hover { transform: translateY(-6px); border-color: var(--gold-3); }
.class-card-img {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.class-card:hover .class-card-img { transform: scale(1.06); }
.class-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,9,0) 30%, rgba(10,10,9,0.55) 60%, rgba(8,8,7,0.96) 100%);
}
.class-card-body { position: relative; z-index: 2; padding: 1.4rem; }
.class-card-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--white); margin-bottom: 0.35rem; }
.class-card-body p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.classes-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
}
.classes-note strong { color: var(--gold-1); font-weight: 600; }

/* ---------- Ages ---------- */
.ages { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.age-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.age-card {
  text-align: center;
  padding: 1.8rem 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.age-card:hover { transform: translateY(-6px); border-color: var(--gold-3); background: var(--panel-2); }
.age-band { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--white); }
.age-range { display: block; margin-top: 0.3rem; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Gallery ---------- */
/* Auto-scrolling carousel — 3 larger images at a time */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius);
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 1rem; }
.c-item {
  flex: 0 0 calc((100% - 2rem) / 3);
  margin: 0;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.c-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.c-item:hover img { transform: scale(1.05); }
.c-item::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(232, 194, 90, 0);
  transition: box-shadow 0.3s;
  pointer-events: none;
}
.c-item:hover::after { box-shadow: inset 0 0 0 2px rgba(232, 194, 90, 0.7); }

.carousel-arrow {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 19, 14, 0.7);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.carousel-arrow:hover {
  background: var(--gold-grad);
  color: #1a1407;
  border-color: transparent;
  transform: scale(1.08);
}
.carousel-prev { padding-right: 3px; }
.carousel-next { padding-left: 3px; }

/* ---------- Meet the Team ---------- */
.team { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.teacher {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 3.5rem;
}
.teacher:last-child { margin-bottom: 0; }
.teacher-reverse { grid-template-columns: 1.2fr 0.8fr; }
.teacher-reverse .teacher-photo { order: 2; }
.teacher-photo { position: relative; }
.teacher-photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}
.teacher-photo::after {
  content: '\2726';
  position: absolute;
  top: -14px; right: -14px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-grad);
  color: #1a1407;
  border-radius: 50%;
  font-size: 1.1rem;
}
.teacher-role {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.teacher-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.teacher-bio p { color: var(--muted); margin-bottom: 0.9rem; }
.teacher-bio p:last-child { margin-bottom: 0; }
.teacher-bio em { color: var(--cream); font-style: italic; }

/* ---------- Little Stars ---------- */
.littles { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.littles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.little-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  border: 1px solid var(--line-soft);
}
.little-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.little-item:hover img { transform: scale(1.06); }

/* ---------- Uniform ---------- */
.uniform { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.uniform-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.tick-list { list-style: none; margin: 0 0 1.6rem; }
.tick-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--cream);
}
.tick-list li::before {
  content: '\2726';
  position: absolute; left: 0; top: 0;
  color: var(--gold-2);
}
.fine { font-size: 0.8rem; color: var(--muted-2); margin-top: 1rem; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; padding: clamp(4rem, 8vw, 6rem) 0; overflow: hidden; text-align: center; }
.cta-banner-bg {
  position: absolute; inset: 0;
  background: url('assets/perf-sparkler-group.jpg') center/cover;
}
.cta-banner-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,7,0.82), rgba(8,8,7,0.9));
}
.cta-inner { position: relative; z-index: 2; }
.cta-banner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--white); margin-bottom: 0.8rem; }
.cta-banner p { color: var(--cream); font-size: 1.1rem; margin-bottom: 1.8rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact-list { list-style: none; margin: 1.6rem 0; }
.contact-list li { display: flex; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-label {
  flex: 0 0 90px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  padding-top: 0.2rem;
  font-weight: 600;
}
.contact-list a:hover { color: var(--gold-1); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.contact-form-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--white); margin-bottom: 1.2rem; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold-2); }
.contact-form textarea { resize: vertical; }
.form-hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.9rem; text-align: center; }

.map-wrap {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
}
.footer-brand img { height: 46px; margin-bottom: 0.9rem; }
.footer-brand p { font-family: var(--font-display); font-style: italic; color: var(--gold-1); }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a, .footer-contact a, .footer-contact span { font-size: 0.92rem; color: var(--muted); transition: color 0.25s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-1); }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); transition: color 0.25s; }
.footer-bottom a:hover { color: var(--gold-1); }
.footer-sep { margin: 0 0.5rem; opacity: 0.5; }

/* ============================================================
   LEGAL / TERMS PAGE
   ============================================================ */
.legal-page { padding: 130px 0 5rem; }
.legal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  color: var(--white);
  margin: 0.4rem 0 1rem;
}
.legal-intro { font-size: 1.08rem; color: var(--muted); max-width: 48rem; margin-bottom: 2.5rem; }
.legal-block {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-bottom: 1.4rem;
}
.legal-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold-1);
  margin-bottom: 1rem;
}
.legal-block h3 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 1.1rem 0 0.4rem;
}
.legal-block p { color: var(--muted); margin-bottom: 0.7rem; }
.legal-block ul { list-style: none; margin: 0; }
.legal-block li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
}
.legal-block li::before { content: '\2726'; position: absolute; left: 0; top: 0; color: var(--gold-3); font-size: 0.8rem; }
.legal-contact { color: var(--muted); margin: 2rem 0 1.6rem; }
.legal-contact a { color: var(--gold-1); }
.legal-back { margin-top: 0.5rem; }

/* ============================================================
   STUDIO PAGE
   ============================================================ */
.studio-hero { padding: 130px 0 1rem; }
.studio-hero .legal-title { margin-bottom: 1rem; }
.studio-feature { padding-top: 2.5rem; }
.studio-feature-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}
.studio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.studio-item {
  flex: 0 1 calc((100% - 2rem) / 3);
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--line-soft);
}
.studio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.studio-item:hover img { transform: scale(1.05); }

@media (max-width: 1024px) {
  .studio-item { flex-basis: calc((100% - 1rem) / 2); }
}
@media (max-width: 560px) {
  .studio-item { flex-basis: 100%; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 5, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 92vw;
}
.lightbox-stage img {
  max-width: 86vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.lightbox-stage img.is-loaded { opacity: 1; transform: none; }
.lightbox-caption {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 46rem;
}

.lightbox-close {
  position: absolute;
  top: 22px; right: 30px;
  font-size: 2.4rem;
  line-height: 1;
  background: none; border: 0;
  color: var(--cream);
  cursor: pointer;
  z-index: 2;
}
.lightbox-close:hover { color: var(--gold-1); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  line-height: 1;
  background: rgba(20, 19, 14, 0.6);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(20, 19, 14, 0.9); color: var(--gold-1); border-color: var(--gold-3); }
.lightbox-prev { left: 24px; padding-right: 4px; }
.lightbox-next { right: 24px; padding-left: 4px; }

.lightbox-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

/* ---- Video pop-up ---- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 5, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.video-lightbox.open { opacity: 1; pointer-events: auto; }
.video-lightbox-media {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}

@media (max-width: 560px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.7rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-stage img { max-width: 94vw; max-height: 74vh; }
}

/* ============================================================
   REVEAL ANIMATIONS (below-the-fold only — hero is visible on first paint)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .c-item { flex-basis: calc((100% - 1rem) / 2); }
  .age-grid { grid-template-columns: repeat(3, 1fr); }
  .littles-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 9, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.6rem;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin: 0.9rem 0 0; }
  .nav-toggle { display: flex; }

  .hero { padding: 116px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-logo { width: clamp(280px, 72vw, 460px); }
  .hero-actions { justify-content: center; }
  .hero-glow { opacity: 0.6; }

  .two-col { grid-template-columns: 1fr; }
  .welcome .two-col > div:first-child { order: 2; }
  .welcome-media { order: 1; }
  .welcome-media-frame { inset: 10px -10px -10px 10px; }
  .uniform-media { order: 2; }

  .teacher,
  .teacher-reverse { grid-template-columns: 1fr; gap: 1.4rem; }
  .teacher-photo,
  .teacher-reverse .teacher-photo { order: 1; }
  .teacher-photo img { aspect-ratio: 16 / 11; }
}

@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .c-item { flex-basis: 100%; }
  .age-grid { grid-template-columns: repeat(2, 1fr); }
  .littles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .phone-frame { width: min(280px, 86%); }
  .contact-list li { flex-direction: column; gap: 0.2rem; }
  .contact-label { flex-basis: auto; }
  .btn { width: 100%; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
}
