/* NEXTSTEP 수학과학학원 — design tokens + base resets */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root {
  /* brand */
  --navy-950: #06101f;
  --navy-900: #0a1633;
  --navy-800: #101d40;
  --navy-700: #182a55;
  --navy-600: #24397a;
  --lime-500: #c6f24e;
  --lime-600: #a9d92e;
  --lime-100: #eefdc9;
  --white: #ffffff;
  --ink-100: #f4f6fb;
  --ink-300: #c9cee0;
  --ink-500: #8992ad;
  --ink-700: #4b5372;

  /* semantic */
  --bg: var(--white);
  --bg-inverse: var(--navy-900);
  --text: var(--navy-900);
  --text-muted: #52597a;
  --text-inverse: var(--white);
  --text-inverse-muted: var(--ink-300);
  --accent: #5d7d18;      /* lime darkened for AA text contrast on white (4.76:1) */
  --accent-bg: var(--lime-500);
  --border: #e3e6ef;
  --border-inverse: rgba(255, 255, 255, 0.14);
  --focus: #1c4de0;

  --font-sans: "PretendardVariable", "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --font-num: "PretendardVariable", "Pretendard", sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --shadow-card: 0 1px 2px rgba(10, 22, 51, 0.04), 0 8px 24px rgba(10, 22, 51, 0.07);
  --shadow-card-hover: 0 4px 8px rgba(10, 22, 51, 0.06), 0 16px 36px rgba(10, 22, 51, 0.12);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus-visible {
  left: 0;
}

/* focus ring — everywhere, visible */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.timeline :focus-visible {
  outline-color: var(--lime-500);
}

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

section { position: relative; }

.section-pad {
  padding-block: clamp(64px, 9vw, 120px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--accent-bg);
  border-radius: 2px;
}
.on-dark .eyebrow { color: var(--lime-500); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 10px;
  line-height: 1.25;
}
.section-desc {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.on-dark .section-desc { color: var(--text-inverse-muted); }

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--ink-100);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.demo-tag::before { content: "●"; font-size: 0.55rem; color: var(--accent); }
.on-dark .demo-tag {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-inverse);
  color: var(--text-inverse-muted);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-bg);
  color: var(--navy-950);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(198, 242, 78, 0.35); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--navy-900); background: var(--ink-100); }
.on-dark .btn-ghost,
.hero .btn-ghost {
  border-color: var(--border-inverse);
  color: var(--white);
}
.on-dark .btn-ghost:hover,
.hero .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 22, 51, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--lime-500);
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
}
.brand-ko { color: var(--ink-300); font-weight: 500; font-size: 0.82rem; }
@media (max-width: 480px) {
  .brand-ko { display: none; }
}

.main-nav { display: none; }
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
.main-nav a {
  color: var(--ink-300);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 2px;
  position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--white); }
.main-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--lime-500);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-primary { padding: 10px 18px; font-size: 0.88rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: var(--white);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

/* mobile overlay nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  padding: 100px 28px 40px;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
  visibility: hidden;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav a {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .mobile-nav { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  padding-top: 132px;
  padding-bottom: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: grayscale(0.35) contrast(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(10,22,51,0.2) 0%, rgba(6,16,31,0.92) 62%, var(--navy-950) 100%),
    linear-gradient(180deg, rgba(6,16,31,0.55) 0%, rgba(6,16,31,0.94) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid svg { width: 100%; height: 100%; }

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: end;
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.hero-title mark {
  background: none;
  color: var(--lime-500);
  position: relative;
}
.hero-sub {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink-300);
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
@media (max-width: 560px) {
  .hero-kpis { grid-template-columns: 1fr; }
}
.kpi {
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  background: rgba(255,255,255,0.03);
}
.kpi-value {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--lime-500);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.kpi-label {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ink-300);
  line-height: 1.4;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 1.05rem; font-weight: 800; }
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-inverse);
  font-size: 0.92rem;
}
.hero-card-row:last-of-type { border-bottom: none; }
.hero-card-row .day { color: var(--ink-300); }
.slot-open { color: var(--lime-500); font-weight: 700; }
.slot-full { color: #8992ad; font-weight: 600; }
.hero-card .btn { margin-top: 18px; }

/* ============ DATA / CHARTS ============ */
.chart-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .chart-grid { grid-template-columns: 1fr 1fr; }
}
.chart-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.chart-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}
.chart-card .caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.chart-svg { margin-top: 18px; width: 100%; height: auto; }
.chart-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

/* draw-on svg */
.draw-path {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.is-visible .draw-path { stroke-dashoffset: 0; }
.grow-bar {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.85s var(--ease-out);
}
.is-visible .grow-bar { transform: scaleY(1); }
.fade-in-chart {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.is-visible .fade-in-chart { opacity: 1; transform: translateY(0); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ CURRICULUM TABS ============ */
.tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}
.tab-btn {
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.tab-btn:hover { border-color: var(--navy-700); color: var(--text); }
.tab-btn[aria-selected="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.tab-panel[hidden] { display: none; }
.course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
}
.course-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.course-card .subject {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.course-card h4 { font-size: 1.12rem; font-weight: 800; margin-top: 8px; }
.course-meta {
  margin-top: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.course-meta li { display: flex; gap: 8px; }
.course-meta b { color: var(--text); font-weight: 700; min-width: 66px; }

/* ============ PROCESS (sticky steps) ============ */
.process {
  background: var(--navy-950);
  color: var(--white);
}
.process-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .process-layout { grid-template-columns: 0.85fr 1.15fr; }
}
.process-sticky {
  position: relative;
}
@media (min-width: 960px) {
  .process-sticky { position: sticky; top: 110px; align-self: start; height: fit-content; }
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-block: 34px;
  border-top: 1px solid var(--border-inverse);
  opacity: 0.4;
  transition: opacity var(--dur-med) var(--ease-out);
}
.process-step:first-child { border-top: none; }
.process-step.is-active { opacity: 1; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-inverse);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink-300);
  transition: all var(--dur-med) var(--ease-out);
}
.process-step.is-active .step-num {
  background: var(--lime-500);
  color: var(--navy-950);
  border-color: transparent;
}
.step-body h3 { font-size: 1.2rem; font-weight: 800; }
.step-body p { margin-top: 8px; color: var(--ink-300); font-size: 0.96rem; }

.process-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-inverse);
  background: rgba(255,255,255,0.03);
  padding: 30px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-visual svg { width: 100%; height: auto; max-width: 340px; }

/* ============ TEACHERS ============ */
.teacher-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
  .teacher-grid { grid-template-columns: repeat(4, 1fr); }
}
.teacher-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.teacher-card:hover, .teacher-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.teacher-avatar {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lime-500), var(--navy-700));
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}
.teacher-card h4 { margin-top: 14px; font-size: 1.02rem; font-weight: 800; }
.teacher-role { font-size: 0.82rem; color: var(--accent); font-weight: 700; margin-top: 2px; }
.teacher-bio { margin-top: 10px; font-size: 0.86rem; color: var(--text-muted); }
.teacher-quote {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 600;
  position: relative;
}
.teacher-quote::before { content: ""; position: absolute; top: -1px; left: 0; width: 22px; height: 2px; background: var(--accent-bg); }

/* ============ TIMETABLE ============ */
.timetable-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.timetable-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}
table.timetable caption { text-align: left; padding: 14px 18px; font-weight: 700; color: var(--text-muted); font-size: 0.82rem; }
table.timetable th, table.timetable td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
table.timetable thead th {
  background: var(--ink-100);
  font-weight: 800;
  color: var(--text);
}
table.timetable td:first-child, table.timetable th:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.slot {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 4px;
  border-radius: 8px;
  transition: background var(--dur-fast), opacity var(--dur-fast);
  width: 100%;
}
.slot b { font-size: 0.84rem; }
.slot span { font-size: 0.72rem; color: var(--text-muted); }
.slot.is-dim { opacity: 0.28; }
.slot.is-match { background: var(--lime-100); }
.slot.is-empty { color: var(--ink-500); }

.timetable-cards { display: none; flex-direction: column; gap: 14px; }
.timetable-day-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.timetable-day-card h4 { font-size: 0.95rem; font-weight: 800; }
.timetable-day-card ul { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.timetable-day-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink-100);
}
.timetable-day-card li.is-match { background: var(--lime-100); }
.timetable-day-card li .time { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }

@media (max-width: 720px) {
  .timetable-wrap { display: none; }
  .timetable-cards { display: flex; }
}

/* ============ RESULTS ============ */
.results-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 780px) {
  .results-strip { grid-template-columns: repeat(4, 1fr); }
}
.result-stat {
  text-align: center;
  padding: 26px 14px;
  border-radius: var(--radius-md);
  background: var(--ink-100);
}
.result-stat .kpi-value { color: var(--navy-900); justify-content: center; }
.result-stat .kpi-label { color: var(--text-muted); margin-top: 8px; }

.school-list {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.school-chip {
  padding: 12px 14px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============ GALLERY / LIGHTBOX ============ */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  aspect-ratio: 4/3;
  background: var(--ink-100);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  font-size: 0.78rem;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(6,16,31,0.85));
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 16, 31, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { max-width: min(92vw, 1000px); }
.lightbox img { width: 100%; height: auto; border-radius: 10px; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { color: var(--ink-300); margin-top: 12px; font-size: 0.86rem; text-align: center; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  border-radius: 999px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; }

/* ============ TESTIMONIALS MARQUEE ============ */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track, .marquee-track:focus-within { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testi-card {
  width: min(360px, 82vw);
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.testi-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; }
.testi-text { margin-top: 12px; font-size: 0.94rem; color: var(--text); }
.testi-who { margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }
.marquee-controls { display: flex; gap: 10px; margin-top: 20px; }
.marquee-controls button {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.marquee-controls button svg { width: 18px; height: 18px; }

/* ============ CONTACT FORM ============ */
.contact-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; } }
.contact-info-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.contact-info-card h3 { font-size: 1.1rem; font-weight: 800; }
.contact-info-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.contact-info-list li { display: flex; gap: 12px; font-size: 0.92rem; color: var(--ink-300); }
.contact-info-list b { display: block; color: var(--white); font-size: 0.82rem; margin-bottom: 2px; }

.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--focus);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .err {
  font-size: 0.78rem;
  color: #b3261e;
  min-height: 1em;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #b3261e;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -4px;
}
.form-status {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--lime-100); color: #33530f; }
.form-status.is-error { background: #fdecea; color: #b3261e; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 4px;
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--ink-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq-item summary .plus::before { width: 12px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 12px; }
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-item .faq-body { padding: 0 20px 20px; color: var(--text-muted); font-size: 0.94rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-950);
  color: var(--ink-300);
  padding-block: 64px 28px;
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; }
}
.footer-brand p { margin-top: 14px; font-size: 0.88rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 800; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.86rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-inverse);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-500);
}
.footer-credits summary { cursor: pointer; color: var(--ink-500); font-size: 0.78rem; }
.footer-credits[open] summary { color: var(--ink-300); }
.footer-credits ul { margin-top: 8px; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-notice { width: 100%; font-size: 0.76rem; color: var(--ink-500); margin-top: 8px; }

/* ============ MISC ============ */
.on-dark { color: var(--white); }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw-path { stroke-dashoffset: 0; }
  .grow-bar { transform: scaleY(1); }
  .fade-in-chart { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .teacher-card:hover, .gallery-item:hover img { transform: none; }
}
