:root {
  --navy: #071d38;
  --navy-soft: #0c2c4f;
  --ink: #10253f;
  --gold: #b89357;
  --gold-light: #d7c29c;
  --ivory: #f8f5ef;
  --ivory-deep: #f1ece3;
  --paper: #fffdfa;
  --white: #ffffff;
  --muted: #69717a;
  --line: rgba(35, 45, 57, 0.15);
  --serif: "Noto Serif KR", Georgia, serif;
  --sans: "Noto Sans KR", Arial, sans-serif;
  --page: min(1180px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 92px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  height: 78px;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(7, 29, 56, 0.06);
}
.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { width: 250px; flex: 0 0 auto; transition: width 0.25s ease; }
.site-header.is-scrolled .brand { width: 215px; }
.brand img { width: 100%; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.25vw, 35px); }
.primary-nav > a {
  position: relative;
  color: #303945;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.primary-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.primary-nav > a:hover::after,
.primary-nav > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.primary-nav .student-link { color: var(--gold); }
.primary-nav .nav-cta {
  padding: 11px 20px;
  color: var(--navy);
  border: 1px solid var(--gold);
  transition: color 0.2s ease, background 0.2s ease;
}
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible { color: var(--white); background: var(--navy); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  height: clamp(500px, 52vh, 540px);
  min-height: 0;
  display: block;
  overflow: hidden;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(55%, 1060px);
  height: 100%;
  min-width: 0;
  padding: clamp(52px, 5vw, 76px) clamp(34px, 4vw, 72px) 44px clamp(48px, 6vw, 112px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 17px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.hero h1,
.section-heading h2,
.center-heading h2,
.system-copy h2,
.philosophy h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}
.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 3.3vw, 54px);
  line-height: 1.4;
}
.hero h1 strong { font-weight: 600; }
.hero-copy > .eyebrow,
.hero-actions,
.hero-caption { display: none; }
.gold-rule { display: block; width: 38px; height: 1px; margin: 26px 0; background: var(--gold); }
.hero-lead { margin: 0; color: #4f565e; font-size: 17px; line-height: 1.9; }
.hero-actions { display: none; align-items: center; gap: 29px; margin-top: 35px; }
.button {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy); border: 1px solid var(--navy); }
.button-primary:hover, .button-primary:focus-visible { color: var(--navy); background: transparent; border-color: var(--gold); }
.text-link { color: var(--navy); font-size: 14px; font-weight: 600; }
.text-link span { margin-left: 8px; color: var(--gold); }
.hero-facts {
  width: min(100%, 650px);
  margin: 38px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-facts div { padding: 0 22px; border-left: 1px solid rgba(184, 147, 87, 0.45); }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { color: var(--navy); font-family: var(--serif); font-size: 18px; font-weight: 600; white-space: nowrap; }
.hero-facts dd { margin: 2px 0 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.hero-media {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 34%;
  min-height: 0;
  overflow: hidden;
}
.hero-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--ivory) 0%,
    rgba(248, 245, 239, 0.98) 18%,
    rgba(248, 245, 239, 0.92) 38%,
    rgba(248, 245, 239, 0.68) 62%,
    rgba(248, 245, 239, 0) 100%
  );
}
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }
.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(380px, 76%);
  padding: 18px 28px;
  color: var(--white);
  background: rgba(7, 29, 56, 0.88);
  backdrop-filter: blur(9px);
}
.hero-caption span { display: block; color: var(--gold-light); font-size: 9px; letter-spacing: 0.16em; }
.hero-caption strong { font-family: var(--serif); font-size: 14px; font-weight: 400; }

.section { padding: 112px 0; }
.section-inner { width: var(--page); margin: 0 auto; }
.approach { background: var(--ivory); }
.approach-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  align-items: start;
  gap: 80px;
}
@media (min-width: 821px) {
  .section-heading h2,
  .system-copy h2 {
    white-space: nowrap;
  }
}
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(36px, 3.2vw, 50px); line-height: 1.5; }
.process-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.process-item { min-height: 290px; padding: 12px 34px 20px; border-left: 1px solid var(--line); }
.process-item:first-child { border-left: 0; }
.process-number { display: block; margin-bottom: 45px; color: var(--gold); font-family: Georgia, serif; font-size: 31px; }
.process-number::after { content: ""; display: block; width: 30px; height: 1px; margin-top: 16px; background: var(--gold); }
.process-item h3 { margin: 0 0 16px; color: var(--navy); font-family: var(--serif); font-size: 22px; font-weight: 500; }
.process-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

.programs { background: var(--paper); }
.center-heading { margin-bottom: 58px; text-align: center; }
.center-heading h2 { margin: 0; color: var(--navy); font-size: clamp(32px, 3vw, 43px); }
.center-heading .gold-rule { margin: 22px auto 0; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.program-card { position: relative; padding: 13px 60px 8px; text-align: center; border-left: 1px solid var(--line); }
.program-card:first-child { border-left: 0; }
.program-index { margin: 0 0 25px; color: var(--gold); font-family: Georgia, serif; font-size: 14px; letter-spacing: 0.12em; }
.program-card h3 { margin: 0 0 18px; color: var(--navy); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.program-card h3::after { content: ""; display: block; width: 26px; height: 1px; margin: 16px auto 0; background: var(--gold); }
.program-card p:not(.program-index) { min-height: 58px; margin: 0 auto 24px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.program-card a { color: var(--navy); font-size: 13px; font-weight: 600; }
.program-card a span { margin-left: 10px; color: var(--gold); transition: margin-left 0.2s ease; }
.program-card a:hover span { margin-left: 16px; }

.learning-system { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(118deg, #05172d 0%, #08294a 100%); }
.learning-system::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -220px;
  top: -230px;
  border: 1px solid rgba(184, 147, 87, 0.13);
  border-radius: 50%;
}
.system-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: center; gap: 74px; }
.eyebrow-light { color: var(--gold-light); }
.system-copy h2 { margin: 0; color: var(--white); font-size: clamp(36px, 3.5vw, 52px); line-height: 1.48; }
.system-copy > p:not(.eyebrow) { margin: 0; color: #c7d1db; font-size: 15px; }
.system-benefits { margin: 34px 0 0; padding: 0; display: grid; gap: 16px; list-style: none; color: #e9edf2; font-size: 14px; }
.system-benefits li { display: flex; align-items: center; gap: 13px; }
.benefit-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  color: var(--gold-light);
  border: 1px solid rgba(215, 194, 156, 0.55);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 10px;
}
.platform-wrap { position: relative; padding-bottom: 28px; }
.platform-wrap::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 24px;
  background: linear-gradient(180deg, #d3d5d7, #777d83 48%, #1a1e23 52%, #aeb2b5 100%);
  border-radius: 4px 4px 45% 45%;
  box-shadow: 0 15px 24px rgba(0, 0, 0, 0.3);
}
.platform-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #08213f;
  background: #f5f7f9;
  border: 9px solid #1e2328;
  border-bottom-width: 14px;
  border-radius: 18px 18px 5px 5px;
  box-shadow: 0 28px 55px rgba(0,0,0,0.35);
}
.portal-topbar {
  height: 54px;
  display: grid;
  grid-template-columns: 23% 1fr auto;
  align-items: stretch;
  color: var(--white);
  background: #071f3a;
}
.portal-brand {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  line-height: 1.05;
}
.portal-brand strong { font-size: 10px; letter-spacing: -0.02em; }
.portal-brand strong em { color: var(--gold-light); font-family: Georgia, serif; font-size: 11px; }
.portal-brand span { margin-top: 5px; color: #f3b843; font-size: 6px; font-weight: 700; letter-spacing: 0.14em; }
.portal-nav { padding: 0 15px; display: flex; align-items: stretch; gap: 18px; }
.portal-nav span { position: relative; display: flex; align-items: center; font-size: 7px; font-weight: 700; white-space: nowrap; }
.portal-nav span.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #c4923c; }
.portal-account { padding: 0 13px 0 5px; display: flex; align-items: center; gap: 10px; font-size: 6px; font-weight: 700; white-space: nowrap; }
.portal-account span + span { padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.2); }
.platform-body { min-height: 390px; display: grid; grid-template-columns: 23% 77%; }
.portal-sidebar { padding: 9px 7px; background: #f1f4f6; border-right: 1px solid #c8d1d9; }
.portal-welcome,
.portal-overview { background: var(--white); border: 1px solid #c8d1d9; border-radius: 3px; }
.portal-welcome { position: relative; padding: 9px 10px; }
.portal-welcome small { display: block; color: #657486; font-size: 5px; font-weight: 700; letter-spacing: 0.12em; }
.portal-welcome strong { display: block; margin-top: 1px; font-size: 12px; line-height: 1.2; }
.portal-user-icon { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; display: grid; place-items: center; color: #0b3156; background: #f1f4f6; border: 1px solid #c8d1d9; border-radius: 2px; font-size: 7px; }
.portal-overview { margin-top: 7px; }
.portal-overview h4 { margin: 0; padding: 8px 10px; border-bottom: 1px solid #d8dfe5; font-size: 6px; letter-spacing: 0.1em; }
.portal-session { padding: 9px 10px; border-bottom: 1px solid #d8dfe5; }
.portal-session > small { display: block; color: #657486; font-size: 5px; font-weight: 700; letter-spacing: 0.08em; }
.portal-session > strong { display: block; margin: 5px 0; font-size: 9px; }
.portal-session p { margin: 0 0 6px; display: flex; justify-content: space-between; color: #3f5368; font-size: 5px; }
.portal-session p b { color: #0c477e; }
.portal-progress { height: 4px; overflow: hidden; background: #e2e7eb; border-radius: 4px; }
.portal-progress i { display: block; width: 25%; height: 100%; background: #bd8937; border-radius: inherit; }
.portal-session em { display: block; margin-top: 4px; color: #738092; text-align: right; font-size: 5px; font-style: normal; }
.portal-tasks { padding: 8px 10px; border-bottom: 1px solid #d8dfe5; }
.portal-tasks > p { margin: 0 0 6px; display: flex; justify-content: space-between; font-size: 5px; }
.portal-tasks > p span { color: #0c477e; }
.portal-tasks > div { margin-top: 4px; padding: 5px; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 3px; border: 1px solid #d8dfe5; border-radius: 2px; font-size: 5px; white-space: nowrap; }
.portal-tasks > div i { width: 10px; height: 10px; display: grid; place-items: center; color: white; background: #38866f; border-radius: 50%; font-size: 6px; font-style: normal; }
.portal-tasks > div > span { overflow: hidden; text-overflow: ellipsis; }
.portal-tasks > div b { padding: 2px 4px; color: #276e59; background: #eaf4f0; border: 1px solid #cde2da; border-radius: 2px; font-size: 4px; }
.portal-league { padding: 8px 10px; }
.portal-league h5 { margin: 0 0 5px; font-size: 5px; letter-spacing: 0.08em; }
.portal-league p { margin: 4px 0 0; padding: 5px 6px; display: flex; align-items: center; justify-content: space-between; background: #fafbfc; border: 1px solid #d8dfe5; border-radius: 2px; font-size: 5px; }
.portal-league p strong { font-size: 9px; }
.portal-league p strong small { font-size: 4px; font-weight: 400; }
.portal-content { min-width: 0; padding: 12px 12px 13px; }
.portal-calendar-head { min-height: 37px; display: flex; align-items: flex-start; gap: 8px; }
.portal-calendar-head > button { width: 22px; height: 22px; padding: 0; color: #08213f; background: white; border: 1px solid #c8d1d9; border-radius: 2px; font-family: Arial, sans-serif; font-size: 15px; line-height: 1; }
.portal-calendar-head > div:nth-of-type(1) { min-width: 118px; }
.portal-calendar-head strong { display: block; margin-top: -2px; font-size: 14px; line-height: 1.2; }
.portal-calendar-head p { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; color: #4f5e70; font-size: 5px; line-height: 1; }
.portal-calendar-head p span { font-weight: 700; letter-spacing: 0.08em; }
.portal-calendar-head p i { width: 13px; height: 1px; background: #aeb8c1; }
.portal-calendar-head p small { font-size: inherit; }
.portal-legend { margin: 5px 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 8px; color: #566476; font-size: 4px; }
.portal-legend span::before { content: ""; width: 4px; height: 4px; margin-right: 3px; display: inline-block; border-radius: 50%; vertical-align: 1px; background: currentColor; }
.portal-legend .vocabulary { color: #28785e; }
.portal-legend .reading { color: #2867a1; }
.portal-legend .dictation { color: #b44f38; }
.portal-legend .pattern { color: #76558d; }
.portal-legend .listening { color: #777728; }
.portal-legend .translation { color: #297b7e; }
.portal-legend .review { color: #b6781f; }
.portal-calendar { overflow: hidden; background: white; border: 1px solid #c8d1d9; border-radius: 3px; }
.portal-weekdays { height: 22px; display: grid; grid-template-columns: repeat(7, 1fr); background: #edf1f4; border-bottom: 1px solid #c8d1d9; }
.portal-weekdays span { display: grid; place-items: center; border-left: 1px solid #c8d1d9; font-size: 5px; font-weight: 700; }
.portal-weekdays span:first-child { border-left: 0; }
.portal-calendar-grid { height: 315px; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(5, 1fr); }
.portal-day { min-width: 0; padding: 3px 4px; overflow: hidden; border-left: 1px solid #d6dde3; border-top: 1px solid #d6dde3; }
.portal-day:nth-child(-n+7) { border-top: 0; }
.portal-day:nth-child(7n+1) { border-left: 0; }
.portal-day.is-empty { background: #fafbfc; }
.portal-day.is-today { outline: 1.5px solid #cf9639; outline-offset: -1px; background: #fffdf8; }
.portal-day-number { display: block; margin-bottom: 3px; font-size: 6px; font-weight: 700; line-height: 1; }
.portal-day.is-today .portal-day-number { color: #b6781f; }
.portal-event { margin-top: 2px; padding: 1px 1px 1px 4px; display: flex; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; border-left: 1.5px solid currentColor; color: #526174; font-size: 4px; line-height: 1.45; white-space: nowrap; }
.portal-event span { overflow: hidden; text-overflow: ellipsis; }
.portal-event b { flex: 0 0 auto; color: #718094; font-size: 3.5px; font-weight: 500; }
.portal-event.vocabulary { border-left-color: #28785e; }
.portal-event.reading { border-left-color: #2867a1; }
.portal-event.dictation { border-left-color: #d14832; }
.portal-event.review { border-left-color: #bd7f20; }

.philosophy { padding-bottom: 80px; background: var(--ivory); }
.philosophy-grid { display: grid; grid-template-columns: 0.95fr 1.2fr; align-items: center; gap: 100px; margin-bottom: 82px; }
.philosophy h2 { margin: 0; color: var(--navy); font-size: clamp(34px, 3.2vw, 48px); line-height: 1.5; }
.philosophy-copy { padding-left: 70px; border-left: 1px solid rgba(184, 147, 87, 0.45); }
.philosophy-copy p { margin: 0 0 9px; color: #666d74; font-size: 15px; }
.cta-panel {
  position: relative;
  min-height: 330px;
  padding: 48px 55px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(184, 147, 87, 0.75);
}
.cta-panel > div { position: relative; z-index: 2; }
.cta-panel h2 { margin: 0 0 16px; font-size: clamp(30px, 3vw, 42px); }
.cta-panel p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.button-outline { color: var(--navy); background: transparent; border: 1px solid var(--gold); }
.button-outline:hover, .button-outline:focus-visible { color: var(--white); background: var(--navy); border-color: var(--navy); }
.cta-panel > img { position: absolute; right: -6%; bottom: -28%; width: 48%; opacity: 0.08; filter: grayscale(1) sepia(0.3); mix-blend-mode: multiply; }

.site-footer { padding: 42px 0; color: #dce2e8; background: #05172d; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 0.7fr; align-items: start; gap: 40px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--white); font-family: Georgia, serif; font-size: 17px; letter-spacing: 0.08em; }
.footer-brand span { margin-top: 4px; color: var(--gold-light); font-family: Georgia, serif; font-size: 12px; }
.footer-details { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.footer-details p { margin: 0; color: #aab5c1; font-size: 12px; }
.footer-links { display: flex; justify-content: flex-end; gap: 23px; color: #d4dbe2; font-size: 12px; }
.footer-links a:hover { color: var(--gold-light); }
.copyright { grid-column: 1 / -1; margin: 25px 0 0; padding-top: 20px; color: #778694; border-top: 1px solid rgba(255,255,255,0.1); font-size: 10px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1060px) {
  :root { --page: min(100% - 48px, 960px); }
  .brand { width: 230px; }
  .site-header.is-scrolled .brand { width: 205px; }
  .primary-nav { gap: 18px; }
  .primary-nav > a { font-size: 12px; }
  .primary-nav .student-link { display: none; }
  .hero { height: 560px; }
  .hero-copy { width: 58%; padding-left: 40px; padding-right: 38px; }
  .hero-media { left: 30%; }
  .hero-media::before { width: 46%; }
  .hero-facts div { padding: 0 12px; }
  .hero-facts dt { font-size: 15px; }
  .approach-grid { gap: 40px; }
  .process-item { padding-left: 22px; padding-right: 22px; }
  .program-card { padding-left: 35px; padding-right: 35px; }
  .system-grid { grid-template-columns: 0.7fr 1.3fr; gap: 40px; }
}

@media (max-width: 820px) {
  :root { --page: calc(100% - 40px); }
  html { scroll-padding-top: 72px; }
  .site-header, .site-header.is-scrolled { height: 72px; }
  .brand, .site-header.is-scrolled .brand { width: 206px; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span { width: 23px; height: 1px; background: var(--navy); transition: transform 0.25s ease, opacity 0.25s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    inset: 72px 0 auto;
    height: calc(100vh - 72px);
    padding: 45px 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    background: var(--paper);
    transform: translateY(-12px);
    transition: visibility 0.25s, opacity 0.25s, transform 0.25s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .primary-nav > a { padding: 15px 4px; display: block; font-size: 16px; border-bottom: 1px solid var(--line); }
  .primary-nav .student-link { display: block; color: var(--navy); }
  .primary-nav .nav-cta { margin-top: 25px; text-align: center; border: 1px solid var(--gold); }
  .hero { height: auto; min-height: auto; display: flex; flex-direction: column; overflow: visible; }
  .hero-copy { width: 100%; height: auto; padding: 78px 24px 60px; }
  .hero-media { position: relative; inset: auto; height: 480px; min-height: 480px; order: -1; }
  .hero-media::before { display: none; }
  .hero h1 { font-size: clamp(39px, 8vw, 58px); }
  .hero-facts { max-width: 560px; }
  .section { padding: 85px 0; }
  .approach-grid, .system-grid, .philosophy-grid { grid-template-columns: 1fr; }
  .approach-grid { gap: 35px; }
  .process-list { grid-template-columns: 1fr; }
  .process-item { min-height: auto; padding: 28px 0; display: grid; grid-template-columns: 90px 1fr; gap: 15px; border-left: 0; border-top: 1px solid var(--line); }
  .process-item:first-child { border-top: 1px solid var(--line); }
  .process-number { margin: 0; }
  .process-number::after { margin-top: 10px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { padding: 37px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .program-card:first-child { border-top: 0; }
  .program-card p:not(.program-index) { min-height: auto; }
  .system-grid { gap: 58px; }
  .platform-window { border-width: 7px; border-bottom-width: 12px; }
  .philosophy-grid { gap: 35px; }
  .philosophy-copy { padding: 30px 0 0; border-left: 0; border-top: 1px solid rgba(184, 147, 87, 0.45); }
  .cta-panel { padding: 45px 38px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 32px); }
  body { font-size: 15px; }
  .brand, .site-header.is-scrolled .brand { width: 174px; }
  .hero-media { height: 340px; min-height: 340px; }
  .hero-media > img { object-position: 63% center; }
  .hero-caption { display: none; }
  .hero-copy { padding: 56px 20px 48px; }
  .hero h1 { font-size: 37px; line-height: 1.48; }
  .hero-lead br, .system-copy > p br { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .button-primary { align-self: flex-start; }
  .hero-facts { margin-top: 43px; grid-template-columns: 1fr; gap: 0; }
  .hero-facts div, .hero-facts div:first-child { padding: 13px 0; border-left: 0; border-top: 1px solid rgba(184, 147, 87, 0.35); }
  .hero-facts dt, .hero-facts dd { display: inline; }
  .hero-facts dd { margin-left: 12px; }
  .section { padding: 70px 0; }
  .section-heading h2, .system-copy h2, .philosophy h2 { font-size: 34px; }
  .process-item { grid-template-columns: 68px 1fr; }
  .program-card { padding-left: 6px; padding-right: 6px; }
  .system-grid { gap: 45px; }
  .system-benefits { font-size: 13px; }
  .platform-window { border-width: 5px; border-bottom-width: 9px; }
  .portal-topbar { height: 39px; grid-template-columns: 31% 1fr; }
  .portal-brand { padding: 7px 8px; }
  .portal-brand strong { font-size: 7px; }
  .portal-brand strong em { font-size: 8px; }
  .portal-brand span { margin-top: 3px; font-size: 4px; }
  .portal-nav { padding: 0 8px; gap: 10px; }
  .portal-nav span { font-size: 5px; }
  .portal-nav span:nth-child(n+3) { display: none; }
  .portal-account { display: none; }
  .platform-body { min-height: 255px; grid-template-columns: 31% 69%; }
  .portal-sidebar { padding: 5px 4px; }
  .portal-welcome { padding: 6px; }
  .portal-welcome small { font-size: 3.5px; }
  .portal-welcome strong { font-size: 8px; }
  .portal-user-icon { top: 6px; right: 6px; width: 15px; height: 15px; font-size: 4px; }
  .portal-overview { margin-top: 4px; }
  .portal-overview h4 { padding: 5px 6px; font-size: 4px; }
  .portal-session { padding: 6px; }
  .portal-session > small, .portal-session p, .portal-session em { font-size: 3.5px; }
  .portal-session > strong { margin: 3px 0; font-size: 6px; }
  .portal-tasks { padding: 5px 6px; }
  .portal-tasks > p { margin-bottom: 3px; font-size: 3.5px; }
  .portal-tasks > div { margin-top: 3px; padding: 3px; grid-template-columns: 8px 1fr; font-size: 3.5px; }
  .portal-tasks > div i { width: 7px; height: 7px; font-size: 4px; }
  .portal-tasks > div b { display: none; }
  .portal-league { padding: 5px 6px; }
  .portal-league h5 { margin-bottom: 3px; font-size: 4px; }
  .portal-league p { margin-top: 2px; padding: 3px 4px; font-size: 3.5px; }
  .portal-league p strong { font-size: 6px; }
  .portal-content { padding: 7px 6px; }
  .portal-calendar-head { min-height: 29px; gap: 4px; }
  .portal-calendar-head > button { width: 16px; height: 16px; font-size: 10px; }
  .portal-calendar-head > div:nth-of-type(1) { min-width: 82px; }
  .portal-calendar-head strong { font-size: 8px; }
  .portal-calendar-head p { gap: 3px; font-size: 3px; }
  .portal-calendar-head p small, .portal-legend { display: none; }
  .portal-weekdays { height: 16px; }
  .portal-weekdays span { font-size: 3.5px; }
  .portal-calendar-grid { height: 201px; }
  .portal-day { padding: 2px; }
  .portal-day-number { margin-bottom: 2px; font-size: 4px; }
  .portal-event { margin-top: 1px; padding-left: 2px; font-size: 3px; }
  .portal-event b { display: none; }
  .platform-wrap::after { height: 14px; }
  .cta-panel { min-height: 370px; padding: 38px 24px; align-items: flex-start; }
  .cta-panel h2 { font-size: 29px; }
  .cta-panel > img { right: -22%; bottom: -4%; width: 90%; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-links { order: 3; }
  .copyright { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (min-width: 1061px) {
  .header-inner {
    width: auto;
    margin-left: 40px;
    margin-right: 40px;
  }
}
