:root {
  --purple: #45236f;
  --purple-deep: #2d154d;
  --purple-soft: #eee8f6;
  --orange: #ed824b;
  --gold: #f6b744;
  --cream: #fff8ed;
  --ink: #251e2d;
  --muted: #6f6877;
  --white: #ffffff;
  --line: rgba(69, 35, 111, .13);
  --shadow: 0 24px 70px rgba(45, 21, 77, .13);
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fffdf9;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 110px 0; scroll-margin-top: 84px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(255,253,249,.95); border-color: var(--line); box-shadow: 0 7px 25px rgba(39,21,58,.06); backdrop-filter: blur(14px); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 250px; height: auto; filter: drop-shadow(0 2px 7px rgba(0,0,0,.22)); }
.site-header.scrolled .brand img { filter: none; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: white; text-decoration: none; font-size: .92rem; font-weight: 700; letter-spacing: .01em; }
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-cta { padding: 10px 19px; border: 1px solid rgba(255,255,255,.65); border-radius: 100px; }
.site-header.scrolled .site-nav .nav-cta { color: white; border-color: var(--purple); background: var(--purple); }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: #fff; transition: .2s ease; }
.site-header.scrolled .menu-button span:not(.sr-only) { background: var(--purple); }

.hero { position: relative; min-height: 760px; height: 94vh; display: flex; align-items: center; color: white; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background-image: url("assets/gallery-3.webp"); background-position: center 43%; background-size: cover; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,12,47,.92) 0%, rgba(45,21,77,.73) 43%, rgba(45,21,77,.18) 77%), linear-gradient(0deg, rgba(19,8,31,.3), transparent 40%); }
.hero-content { position: relative; padding-top: 60px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .76rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.purple { color: var(--purple); }
.eyebrow.orange { color: #d9642c; }
.eyebrow.cream { color: #ffdca1; }
.hero h1 { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7vw, 6.6rem); line-height: .98; letter-spacing: -.05em; text-wrap: balance; }
.hero-copy { max-width: 580px; margin: 28px 0 0; color: rgba(255,255,255,.87); font-size: 1.18rem; }
.hero-actions { display: flex; gap: 13px; margin-top: 38px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 100px; text-decoration: none; font-size: .92rem; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: white; }
.button-primary:hover { background: #dc6f39; }
.button-ghost { border: 1px solid rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.08); }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: white; text-decoration: none; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(6px); } }

.about-section { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--purple-deep); font-size: clamp(2.5rem, 4.4vw, 4.35rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.about-copy > p { margin: 0 0 20px; font-size: 1.08rem; color: #514a58; }
.highlights { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--line); }
.highlights strong, .highlights span { display: block; }
.highlights strong { color: var(--purple); font-family: Georgia, serif; font-size: 1.4rem; }
.highlights span { margin-top: 2px; color: var(--muted); font-size: .8rem; }

.programs-section { background: white; }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading > p:last-child { max-width: 630px; margin: 22px 0 0; color: var(--muted); font-size: 1.06rem; }
.program-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.program-card { position: relative; min-height: 335px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: #fffdf9; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.program-card:hover { transform: translateY(-5px); border-color: rgba(69,35,111,.3); box-shadow: var(--shadow); }
.program-card.featured { color: white; border-color: var(--purple); background: var(--purple); }
.program-number { position: absolute; right: 24px; top: 18px; color: rgba(69,35,111,.22); font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; }
.program-card.featured .program-number { color: rgba(255,255,255,.16); }
.program-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 42px; border-radius: 15px; color: var(--purple); background: var(--purple-soft); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 800; }
.featured .program-icon { color: #fff; background: rgba(255,255,255,.14); }
.program-card h3 { margin: 0 0 11px; color: var(--purple-deep); font-family: Georgia, serif; font-size: 1.45rem; }
.program-card.featured h3 { color: white; }
.program-card p { margin: 0 0 25px; color: var(--muted); font-size: .94rem; }
.program-card.featured p { color: rgba(255,255,255,.74); }
.program-meta { position: absolute; left: 34px; bottom: 27px; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.program-card.featured .program-meta { color: #ffd89a; }

.schedule-section { color: white; background: var(--purple-deep); }
.schedule-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px,8vw,110px); align-items: center; }
.schedule-intro h2 { color: white; }
.schedule-intro > p:last-child { max-width: 510px; margin: 23px 0 0; color: rgba(255,255,255,.7); }
.timeline { border-top: 1px solid rgba(255,255,255,.17); }
.timeline-item { display: grid; grid-template-columns: 105px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.time { color: var(--gold); font-family: Georgia, serif; font-size: 1.8rem; }
.timeline h3 { margin: 0 0 3px; font-family: Georgia, serif; font-size: 1.28rem; }
.timeline p { margin: 0; color: rgba(255,255,255,.6); font-size: .9rem; }

.gallery-section { background: #f7f3fa; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr .7fr; gap: 50px; align-items: end; }
.split-heading > p:last-child { margin: 0; }
.gallery-grid { display: grid; grid-template-columns: 1fr .72fr 1fr; grid-auto-rows: 285px; gap: 14px; }
.gallery-item { margin: 0; border-radius: 18px; overflow: hidden; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.calendar-section { background: white; }
.calendar-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(45px,7vw,90px); align-items: center; }
.calendar-grid p:not(.eyebrow) { max-width: 430px; margin: 22px 0; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--purple); text-decoration: none; font-weight: 800; }
.text-link span { color: var(--orange); }
.calendar-preview { max-height: 600px; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.calendar-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.contact-section { padding-bottom: 55px; background: #fffdf9; }
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; padding: clamp(40px,6vw,75px); border-radius: 30px; color: white; background: linear-gradient(135deg, var(--purple-deep), var(--purple)); box-shadow: var(--shadow); }
.contact-intro h2 { color: white; }
.contact-intro > p:last-child { max-width: 430px; color: rgba(255,255,255,.7); }
.contact-details { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.contact-details > * { min-width: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); text-decoration: none; }
.contact-details a:hover strong { color: var(--gold); }
.contact-label { display: block; margin-bottom: 8px; color: #ffdca1; font-size: .69rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.contact-details strong { display: block; font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; transition: color .2s ease; }

.site-footer { padding: 28px 0 38px; background: #fffdf9; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-inner img { width: 175px; }
.footer-inner a { color: var(--purple); text-decoration: none; font-weight: 800; }

.inner-page { padding-top: 84px; }
.inner-hero { padding: 110px 0 100px; color: white; background: linear-gradient(135deg, var(--purple-deep), var(--purple)); }
.inner-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3.5rem,7vw,6.7rem); line-height: 1; letter-spacing: -.05em; }
.inner-hero > .shell > p:last-child { max-width: 620px; margin: 25px 0 0; color: rgba(255,255,255,.72); font-size: 1.1rem; }
.team-section { background: #f7f3fa; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.teacher-card { display: grid; grid-template-columns: minmax(220px, 28%) 1fr; border-radius: 22px; background: white; overflow: hidden; box-shadow: 0 13px 40px rgba(45,21,77,.08); }
.teacher-card img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center top; }
.teacher-card > div { padding: 34px 38px; }
.teacher-card span { color: var(--orange); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.teacher-card h2 { margin: 7px 0 13px; font-size: 1.55rem; }
.teacher-card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.75; }
.teacher-card p + p { margin-top: 1rem; }
.join-section { background: white; }
.join-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: clamp(40px,6vw,75px); border-radius: 30px; color: white; background: var(--purple-deep); }
.join-card h2 { color: white; }
.join-card p { margin: 0 0 28px; color: rgba(255,255,255,.72); }

@media (max-width: 900px) {
  .section { padding: 85px 0; }
  .menu-button { display: block; position: relative; z-index: 3; }
  .site-nav { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 28px; background: var(--purple-deep); transform: translateX(100%); transition: transform .3s ease; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a, .site-header.scrolled .site-nav a { color: white; font-family: Georgia, serif; font-size: 1.7rem; }
  .site-header.scrolled .site-nav .nav-cta { background: var(--orange); border-color: var(--orange); }
  .menu-button.open span:not(.sr-only) { background: white; }
  .menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button.open span:nth-child(2) { opacity: 0; }
  .menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about-grid, .schedule-grid, .calendar-grid, .contact-card { grid-template-columns: 1fr; }
  .teacher-card { grid-template-columns: minmax(190px, 32%) 1fr; }
  .join-card { grid-template-columns: 1fr; gap: 35px; }
  .program-grid { grid-template-columns: repeat(2,1fr); }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 245px; }
  .gallery-tall { grid-row: span 1; }
  .contact-card { gap: 45px; }
}

@media (max-width: 600px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { height: 72px; }
  .brand img { width: 205px; }
  .hero { min-height: 690px; height: 92svh; }
  .hero-content { padding-top: 40px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero-copy { font-size: 1rem; }
  .button { width: 100%; }
  .highlights { grid-template-columns: 1fr; gap: 15px; }
  .highlights div { display: flex; justify-content: space-between; align-items: center; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 315px; }
  .timeline-item { grid-template-columns: 80px 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 270px; }
  .gallery-wide { grid-column: span 1; }
  .contact-details { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .inner-page { padding-top: 72px; }
  .teacher-card { grid-template-columns: 1fr; }
  .teacher-card img { height: auto; min-height: 0; aspect-ratio: 5/4.2; }
  .teacher-card > div { padding: 26px 24px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
