/* ============================================================
   RENNER DANCE — DESIGN SYSTEM
   Premium dance studio website
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Colors */
  --white:       #FAFAF9;
  --off-white:   #F5F4F1;
  --ink:         #0A0A0A;
  --ink-soft:    #3D3D3D;
  --ink-muted:   #6B6B6B;
  --blue:        #0F3D6B;
  --blue-dark:   #0A2A4A;
  --blue-light:  #1A5499;
  --gold:        #C9A84C;
  --gold-light:  #E8CC85;
  --gold-dark:   #A07830;
  --surface:     #F5F4F1;
  --surface-2:   #EDECE8;
  --border:      rgba(0, 0, 0, 0.08);
  --border-dark: rgba(0, 0, 0, 0.15);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:   0 24px 64px rgba(0,0,0,0.16);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10:  128px;

  /* Container */
  --max-w:     1200px;
  --max-w-sm:  800px;

  /* Transitions */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;
  --dur-xslow: 700ms;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-sm {
  width: 100%;
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---- Typography ---- */
.display-1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 7vw, 6rem); line-height: 1.05; letter-spacing: -0.02em; }
.display-2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; }
.heading-1  { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.015em; }
.heading-2  { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; }
.heading-3  { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; }
.overline   { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.lead       { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--ink-soft); font-weight: 300; }
.body-lg    { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.caption    { font-size: 0.8rem; color: var(--ink-muted); letter-spacing: 0.02em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(15,61,107,0.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 20px rgba(15,61,107,0.35);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }

/* ---- Navigation ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              padding var(--dur-base) var(--ease);
}
#navbar.transparent { background: transparent; padding: 20px 0; }
#navbar.scrolled {
  background: rgba(250, 250, 249, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 2px 16px rgba(0,0,0,0.06);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color var(--dur-fast);
}
.nav-logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}
#navbar.transparent .nav-logo-name { color: var(--white); }
#navbar.transparent .nav-logo-sub { color: var(--gold-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
#navbar.transparent .nav-link { color: rgba(255,255,255,0.85); }
#navbar.transparent .nav-link:hover { color: white; }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) 0;
  padding-top: calc(var(--space-3) + 12px); /* bridge gap */
  margin-top: 0;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
/* Invisible bridge so cursor doesn't lose hover when moving to dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--dur-fast);
}
.nav-dropdown-item:hover {
  color: var(--blue);
  background: var(--surface);
  padding-left: 24px;
}
.nav-dropdown-group-label {
  padding: 10px 20px 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  pointer-events: none;
  user-select: none;
}
.nav-dropdown-group-label:first-child { padding-top: 4px; }
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}
/* Summer Camps link in dropdown — give it a subtle gold accent */
.nav-dropdown-item--camps {
  color: var(--blue);
  font-weight: 600;
}
.nav-dropdown-item--camps:hover { color: var(--gold-dark); }
.nav-cta {
  margin-left: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.btn-portal {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 0.72rem;
  padding: 8px 14px;
  letter-spacing: 0.04em;
}
.btn-portal:hover {
  background: var(--blue);
  color: white;
}
#navbar.transparent .btn-portal {
  border-color: rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9);
}
#navbar.transparent .btn-portal:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
}

/* Mobile Nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--dur-base) var(--ease);
  transform-origin: center;
}
#navbar.transparent .hamburger span { background: white; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  padding: 80px var(--space-6) var(--space-6);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: var(--space-5); }
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-4);
  transition: color var(--dur-fast);
}
.mobile-nav-link:hover { color: var(--blue); }
.mobile-nav-sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0 6px var(--space-4);
  display: block;
  border-left: 2px solid var(--border);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.mobile-nav-sub:hover { color: var(--blue); border-color: var(--blue); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-dancer.jpg');
  background-size: cover;
  background-position: center 20%;
  opacity: 0.45;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,42,74,0.92) 0%,
    rgba(10,42,74,0.75) 40%,
    rgba(10,42,74,0.3) 70%,
    rgba(10,42,74,0.1) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  max-width: 660px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease) 0.2s;
}
.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero-eyebrow-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s var(--ease) 0.35s;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: var(--space-7);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.9s var(--ease) 0.5s;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.9s var(--ease) 0.65s;
}
.hero.loaded .hero-eyebrow,
.hero.loaded .hero-title,
.hero.loaded .hero-subtitle,
.hero.loaded .hero-actions {
  opacity: 1;
  transform: translateY(0);
}
.hero-scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.8); }
}

/* ---- Section Structure ---- */
.section { padding: var(--space-10) 0; }
.section-sm { padding: var(--space-8) 0; }
.section-lg { padding: 140px 0; }
.section-dark { background: var(--blue-dark); color: white; }
.section-surface { background: var(--surface); }
.section-surface-2 { background: var(--surface-2); }

.section-header { text-align: center; max-width: 600px; margin: 0 auto var(--space-9); }
.section-header .overline { margin-bottom: var(--space-3); }
.section-header .heading-1 { margin-bottom: var(--space-4); }
.section-header .lead { margin: 0 auto; }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--blue);
  padding: var(--space-7) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-item {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  background: var(--blue);
  transition: background var(--dur-base);
}
.stat-item:hover { background: var(--blue-light); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: white;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-number span { color: var(--gold-light); }
.stat-number--text span {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ---- Why Renner ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.why-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.why-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.why-image-wrap:hover img { transform: scale(1.03); }
.why-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: var(--gold);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}
.why-content { padding: var(--space-4) 0; }
.why-content .overline { margin-bottom: var(--space-4); }
.why-content .heading-1 { margin-bottom: var(--space-5); }
.why-content .lead { margin-bottom: var(--space-6); }
.trust-items { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 1.1rem;
}
.trust-text-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.trust-text-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.unc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.unc-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- Programs ---- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.program-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--dur-slow) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.program-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.program-card:hover .program-card-img img { transform: scale(1.05); }
.program-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.program-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.program-card-desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  flex: 1;
}
.program-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.program-card-detail {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.program-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur-fast);
}
.program-card-link:hover { gap: 8px; }

/* ---- Testimonials ---- */
.testimonials { background: var(--blue-dark); position: relative; overflow: hidden; }
.testimonials::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 400px;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testimonials-slider { position: relative; }
.testimonial-track { overflow: hidden; }
.testimonials-inner {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 var(--space-5);
  display: flex;
  justify-content: center;
}
.testimonial-card {
  max-width: 680px;
  text-align: center;
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-5);
}
.testimonial-star { color: var(--gold); font-size: 1rem; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: white;
  line-height: 1.55;
  margin-bottom: var(--space-6);
}
.testimonial-author { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 4px; }
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-base);
  font-size: 1rem;
}
.slider-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.slider-dots { display: flex; gap: var(--space-2); }
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--dur-base);
}
.slider-dot.active { background: var(--gold); width: 24px; border-radius: 3px; }

/* ---- About / Story ---- */
.story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-10);
  align-items: start;
}
.story-image-wrap {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.story-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.story-content { padding-top: var(--space-4); }
.story-content .overline { margin-bottom: var(--space-4); }
.story-content .heading-1 { margin-bottom: var(--space-4); color: var(--ink); }
.story-content p { color: var(--ink-soft); line-height: 1.8; margin-bottom: var(--space-5); font-size: 1rem; }
.story-quote {
  border-left: 3px solid var(--gold);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-7) 0;
}
.story-quote-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.story-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.story-value {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.story-value-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- Faculty ---- */
.faculty-founder {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}
.faculty-founder-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3/4;
}
.faculty-founder-img img { width: 100%; height: 100%; object-fit: cover; }
.faculty-founder-content .overline { margin-bottom: var(--space-3); }
.faculty-founder-content .heading-2 { margin-bottom: 4px; color: var(--ink); }
.faculty-founder-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-5);
}
.faculty-founder-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}
.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.credential-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.faculty-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.faculty-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.faculty-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--dur-slow) var(--ease);
  background: var(--white);
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.faculty-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}
.faculty-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.faculty-card:hover .faculty-card-img img { transform: scale(1.04); }
.faculty-card-body { padding: var(--space-4) var(--space-4); }
.faculty-card-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.faculty-card-role { font-size: 0.75rem; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.faculty-card-styles { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: 4px; }
.faculty-style-tag {
  font-size: 0.7rem;
  color: var(--ink-muted);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-weight: 500;
}

/* ---- Alumni ---- */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.alumni-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-6);
  transition: all var(--dur-slow) var(--ease);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.alumni-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-slow) var(--ease);
}
.alumni-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.alumni-card:hover::before { transform: scaleY(1); }
.alumni-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.alumni-achievement {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}
.alumni-desc { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.6; }

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
  padding: var(--space-10) 0;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/competitive-team.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.cta-content { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-content .overline { margin-bottom: var(--space-4); color: var(--gold-light); }
.cta-content .heading-1 { color: white; margin-bottom: var(--space-4); }
.cta-content .lead { color: rgba(255,255,255,0.7); margin-bottom: var(--space-7); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---- Company Programs ---- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
  font-size: 0.875rem;
}
.company-table th {
  background: var(--blue);
  color: white;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.company-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.company-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.company-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: middle;
}
.company-table tr:hover td { background: var(--surface); }
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
}
.level-dot { width: 8px; height: 8px; border-radius: 50%; }
.level-dot-excel   { background: #22c55e; }
.level-dot-extreme { background: #f59e0b; }
.level-dot-edge    { background: #ef4444; }
.level-dot-elite   { background: var(--gold); }

/* ---- Level Cards ---- */
.level-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.level-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease);
}
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.level-card-header { padding: var(--space-6); background: var(--surface); border-bottom: 1px solid var(--border); border-top: 5px solid transparent; }
/* Per-level color accents — equal visual weight, no single team elevated */
#excel   .level-card-header { border-top-color: #4ade80; }   /* fresh green   */
#extreme .level-card-header { border-top-color: #f59e0b; }   /* warm amber    */
#edge    .level-card-header { border-top-color: #38bdf8; }   /* sky blue      */
#elite   .level-card-header { border-top-color: #c9a84c; border-top-color: var(--gold); }  /* gold */
.level-card-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.level-card-sub { font-size: 0.8rem; color: var(--ink-muted); font-weight: 500; }
.level-card-body { padding: var(--space-6); }
.level-card-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.level-card-icon { color: var(--gold); font-size: 0.9rem; margin-top: 1px; flex-shrink: 0; }
.level-card-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.level-invite { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- Company Photo Carousel ---- */
.company-carousel-section {
  background: #0a0a0a;
  line-height: 0; /* remove inline-block gap */
}
.company-carousel {
  position: relative;
  width: 100%;
  height: 56vw;     /* 16:7 ratio */
  max-height: 580px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .company-carousel { height: 75vw; max-height: none; } /* closer to 4:3 on mobile */
}
@media (max-width: 480px) {
  .company-carousel { height: 90vw; }
}
.carousel-track {
  display: flex;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.carousel-btn:hover { background: rgba(0,0,0,0.8); border-color: rgba(255,255,255,0.4); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
@media (max-width: 480px) {
  .carousel-btn { width: 36px; height: 36px; font-size: 1.2rem; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
}
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}
.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ---- Ballet Academy ---- */
.ballet-hero {
  background: var(--blue-dark);
  padding: 160px 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
.ballet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/ballet-academy.jpg');
  background-size: cover;
  background-position: center 20%;
  opacity: 0.2;
}
.ballet-hero-content { position: relative; z-index: 1; text-align: center; }
.ballet-hero-content .heading-1 { color: white; margin-bottom: var(--space-4); }
.ballet-hero-content .lead { color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto var(--space-7); }

/* ---- Accomplishments ---- */
.accomplishment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.accomplishment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--dur-slow) var(--ease);
}
.accomplishment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.accomplishment-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}
.accomplishment-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.accomplishment-card-items { display: flex; flex-direction: column; gap: var(--space-2); }
.accomplishment-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.accomplishment-item::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.contact-info { padding: var(--space-4) 0; }
.contact-info .heading-2 { margin-bottom: var(--space-3); }
.contact-info .lead { margin-bottom: var(--space-7); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15,61,107,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ---- File Upload ---- */
.form-file-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 16px;
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.form-file-label:hover {
  border-color: var(--blue);
  background: rgba(15,61,107,0.04);
}
.form-file-label svg { flex-shrink: 0; color: var(--ink-muted); }
.form-file-input { display: none; }
.form-file-name {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: var(--space-2);
  display: none;
}
.form-file-name.visible { display: block; }
.form-hint { font-size: 0.78rem; color: var(--ink-muted); margin-top: var(--space-2); }

/* ---- Checkbox Group ---- */
.form-check-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-2);
}
.form-check-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: 4px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- Page Headers ---- */
.page-header {
  background: var(--blue-dark);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.12) 0%, transparent 60%);
}
.page-header-content { position: relative; z-index: 1; }
.page-header-content .overline { margin-bottom: var(--space-3); color: var(--gold-light); }
.page-header-content .display-2 { color: white; margin-bottom: var(--space-4); }
.page-header-content .lead { color: rgba(255,255,255,0.7); max-width: 560px; }

/* ---- Trial Class Form ---- */
.trial-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}
.trial-section .heading-2 { margin-bottom: var(--space-2); }
.trial-section .lead { margin-bottom: var(--space-7); }

/* ---- Footer ---- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: var(--space-10) 0 var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-9);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  margin-bottom: 4px;
}
.footer-brand-sub { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-4); }
.footer-brand-desc { font-size: 0.85rem; line-height: 1.65; max-width: 280px; }
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--dur-fast);
}
.footer-link:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-socials { display: flex; gap: var(--space-3); }
.footer-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: all var(--dur-fast);
}
.footer-social:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-white { color: white; }
.text-muted { color: var(--ink-muted); }
.divider { height: 1px; background: var(--border); margin: var(--space-8) 0; }
.gold-line { width: 48px; height: 2px; background: var(--gold); margin-bottom: var(--space-5); }
.gold-line-center { margin: 0 auto var(--space-5); }


/* ============================================================
   RESPONSIVE — MOBILE FIRST
   Breakpoints: 1024px (tablet landscape) | 768px (tablet portrait) | 480px (phone)
   ============================================================ */

/* ---- 1024px: Tablet landscape ---- */
@media (max-width: 1024px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  /* Layout */
  .story-grid { grid-template-columns: 1fr; }
  .story-image-wrap { position: relative; top: 0; max-height: 420px; }
  .faculty-founder { grid-template-columns: 1fr; }
  .faculty-founder-img { max-height: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Inline 2-col grids → single column on tablet */
  .grid-2col { grid-template-columns: 1fr !important; }
  .grid-3col { grid-template-columns: 1fr 1fr !important; }

  /* Spacing */
  .section-lg { padding: var(--space-10) 0; }
  .ballet-hero { padding: 100px 0 var(--space-9); }
  .page-header { padding: 110px 0 60px; }
}

/* ---- 768px: Tablet portrait ---- */
@media (max-width: 768px) {
  /* Container */
  .container, .container-sm { padding: 0 var(--space-5); }

  /* Typography */
  .display-1 { font-size: clamp(2.25rem, 8vw, 3.5rem); }
  .display-2 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
  .heading-1  { font-size: clamp(1.65rem, 5vw, 2.25rem); }

  /* Sections */
  .section    { padding: var(--space-8) 0; }
  .section-sm { padding: var(--space-7) 0; }
  .section-lg { padding: var(--space-9) 0; }
  .section-header { margin-bottom: var(--space-7); }
  .page-header { padding: 100px 0 52px; }
  .ballet-hero { padding: 90px 0 var(--space-8); }
  .hero-content { padding: 110px 0 60px; max-width: 100%; }
  .hero-subtitle { max-width: 100%; }

  /* Editorial layout: disable sticky on mobile */
  .editorial-sidebar { position: relative !important; top: auto !important; }

  /* Reduce heavy padding-bottom/padding-top on editorial grid sections */
  [style*="padding-bottom:var(--space-10)"] { padding-bottom: var(--space-7) !important; }
  [style*="padding-top:var(--space-10)"]    { padding-top:    var(--space-7) !important; }
  [style*="padding-bottom:var(--space-9)"]  { padding-bottom: var(--space-6) !important; }
  [style*="padding-top:var(--space-9)"]     { padding-top:    var(--space-6) !important; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(3, 1fr); }

  /* Grids */
  .why-grid          { grid-template-columns: 1fr; }
  .programs-grid     { grid-template-columns: 1fr; }
  .faculty-grid      { grid-template-columns: 1fr 1fr; }
  .alumni-grid       { grid-template-columns: 1fr; }
  .level-cards       { grid-template-columns: 1fr; }
  .accomplishment-grid { grid-template-columns: 1fr; }
  .story-values      { grid-template-columns: 1fr; }

  /* Inline grids: force single column */
  .grid-2col  { grid-template-columns: 1fr !important; }
  .grid-3col  { grid-template-columns: 1fr !important; }

  /* Universal inline-grid collapse for any remaining inline style grids */
  [style*="grid-template-columns"]:not(.keep-grid) {
    grid-template-columns: 1fr !important;
  }
  /* When a parent grid collapses, grid-column:span instructions become irrelevant */
  [style*="grid-column:1/-1"] {
    grid-column: auto !important;
  }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--space-5); }
  .form-check-group { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }

  /* Tables: horizontal scroll */
  .company-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  /* CTA buttons: stack nicely */
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions  { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: auto; min-width: 240px; justify-content: center; }
}

/* ---- 480px: Phone ---- */
@media (max-width: 480px) {
  /* Container */
  .container, .container-sm { padding: 0 var(--space-4); }

  /* Spacing tokens */
  :root {
    --space-6: 20px;
    --space-7: 36px;
    --space-8: 48px;
    --space-9: 64px;
    --space-10: 80px;
  }

  /* Sections */
  .section    { padding: var(--space-7) 0; }
  .section-sm { padding: var(--space-6) 0; }
  .page-header { padding: 90px 0 44px; }
  .hero-content { padding: 96px 0 48px; }
  .ballet-hero  { padding: 80px 0 var(--space-7); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { padding: var(--space-4) var(--space-3); }
  .stat-number { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .stat-number--text span { font-size: clamp(1.1rem, 4vw, 1.5rem); }
  .stat-label { font-size: 0.65rem; }

  /* Faculty */
  .faculty-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Buttons: full-width only in hero & CTA, not globally */
  .cta-actions .btn { min-width: 0; width: 100%; max-width: 320px; }

  /* Cards */
  .program-card-body { padding: var(--space-4); }
  .level-card-header { padding: var(--space-4) var(--space-5); }
  .level-card-body   { padding: var(--space-4) var(--space-5); }
  .accomplishment-card { padding: var(--space-4); }
  .contact-form-wrap { padding: var(--space-4); border-radius: var(--radius-lg); }

  /* Trust items */
  .trust-icon { width: 36px; height: 36px; }

  /* Mobile nav link size */
  .mobile-nav-link { font-size: 1.5rem; }

  /* Ensure touch targets */
  .btn { min-height: 44px; }
  .nav-dropdown-item { min-height: 44px; display: flex; align-items: center; }
  .slider-btn { width: 44px; height: 44px; }
}

/* ---- Mobile-specific overrides ---- */
@media (max-width: 768px) {
  /* Hero: vertical gradient so text is readable at full width */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10,42,74,0.85) 0%,
      rgba(10,42,74,0.7) 50%,
      rgba(10,42,74,0.5) 100%
    );
  }
  /* Reduce hero min-height on small screens */
  .hero { min-height: 90vh; }

  /* Section header: full width on mobile */
  .section-header { max-width: 100%; }

  /* Page header content: full width */
  .page-header-content .lead { max-width: 100%; }

  /* Stat callout: remove fixed layouts */
  .stat-callout { padding: var(--space-6); }

  /* Image aspect ratios: less tall on mobile */
  .why-image-wrap { aspect-ratio: 3/2; }
  .faculty-founder-img { aspect-ratio: 4/3; }

  /* Story image: normal flow */
  .story-image-wrap { max-height: 300px; }

  /* Bump up gap reduction for inline-gap-heavy layouts */
  [style*="gap:var(--space-10)"] { gap: var(--space-6) !important; }
  [style*="gap:var(--space-8)"]  { gap: var(--space-5) !important; }

  /* Wider buttons on mobile forms */
  .contact-form-wrap .btn,
  .trial-section .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  /* Hero: max readable text */
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(2.25rem, 9vw, 3rem); }

  /* Gap reduction on phones */
  [style*="gap:var(--space-10)"] { gap: var(--space-5) !important; }
  [style*="gap:var(--space-8)"]  { gap: var(--space-4) !important; }
  [style*="gap:var(--space-7)"]  { gap: var(--space-4) !important; }

  /* Stats bar compact */
  .stats-bar { padding: var(--space-5) 0; }

  /* Footer compact */
  footer { padding: var(--space-7) 0 var(--space-5); }

  /* Full-width CTA button blocks */
  .page-header-content .hero-actions,
  .cta-section .cta-actions { gap: var(--space-3); }
}
