:root {
  --ink: #123654;
  --ink-deep: #082d49;
  --muted: #637284;
  --line: #e5e8eb;
  --paper: #ffffff;
  --canvas: #fbfaf8;
  --cream: #fff5ea;
  --cream-strong: #f5dfc5;
  --orange: #c75208;
  --orange-dark: #b84805;
  --orange-soft: #fff0e2;
  --blue: #2868c7;
  --blue-dark: #174e9d;
  --blue-soft: #edf4ff;
  --mint: #2f847c;
  --shadow: 0 22px 60px rgba(20, 54, 83, 0.11);
  --shadow-soft: 0 12px 34px rgba(20, 54, 83, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Noto Sans KR", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  letter-spacing: -0.014em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 5px;
  z-index: 100;
  background: linear-gradient(90deg, var(--orange) 0 50%, var(--blue) 50% 100%);
}

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

figure {
  margin: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(40, 104, 199, 0.32);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(229, 232, 235, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 26px rgba(8, 45, 73, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 11px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: inset -10px 0 0 var(--orange);
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  background: #f8f9fb;
  border-radius: 12px;
}

.nav a {
  min-height: 40px;
  padding: 8px 16px;
  display: grid;
  place-items: center;
  color: #42576b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.nav a[aria-current="page"] {
  color: #fff;
  background: var(--ink-deep);
  box-shadow: 0 6px 16px rgba(8, 45, 73, 0.17);
}

.header-cta {
  min-height: 42px;
  padding: 9px 17px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.hero {
  position: relative;
  padding-block: 82px 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 68px;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -220px;
  top: 40px;
  border: 1px solid #f0c9a8;
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(239, 117, 24, 0.025), 0 0 0 92px rgba(40, 104, 199, 0.02);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-role {
  max-width: 660px;
  margin: -2px 0 17px;
  color: var(--ink-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.eyebrow.blue {
  color: var(--blue-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink-deep);
  line-height: 1.22;
  letter-spacing: -0.05em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5.1vw, 70px);
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 850;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.82;
}

.hero .lead {
  max-width: 640px;
  margin-bottom: 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 50px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(239, 117, 24, 0.22);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline {
  color: var(--ink-deep);
  border-color: #cad4dc;
  background: #fff;
}

.btn-blue {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(40, 104, 199, 0.2);
}

.hero-chips,
.chip-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips span,
.chip {
  padding: 7px 12px;
  color: #52667a;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid #f0d3bd;
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 45, 73, 0.55));
  pointer-events: none;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}

.hero-caption strong {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.hero-caption span {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.dual-note {
  position: absolute;
  right: -20px;
  top: -24px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.dual-note span {
  min-width: 98px;
  padding: 13px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.dual-note span:first-child {
  background: var(--blue);
}

.dual-note span:last-child {
  background: var(--orange);
}

.metric-strip {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #fff;
}

.metric {
  min-height: 112px;
  padding: 25px 24px;
  display: grid;
  align-content: center;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric b {
  color: var(--orange-dark);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.metric span {
  margin-top: 5px;
  color: var(--ink-deep);
  font-size: 15px;
  font-weight: 800;
}

.section {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
  padding-block: 100px;
}

.section-compact {
  padding-block: 72px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-bottom: 0;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.subject-card {
  position: relative;
  min-height: 410px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.subject-card::after {
  content: attr(data-letter);
  position: absolute;
  right: -10px;
  bottom: -54px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 190px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.subject-card.english {
  background: var(--blue-soft);
  border-color: #cfe0f8;
}

.subject-card.math {
  background: var(--orange-soft);
  border-color: #f0d7c0;
}

.subject-label {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 7px 12px;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.english .subject-label {
  background: var(--blue);
}

.math .subject-label {
  background: var(--orange);
}

.subject-card h3 {
  max-width: 460px;
  font-size: clamp(27px, 3vw, 39px);
}

.subject-card p {
  position: relative;
  z-index: 1;
  max-width: 510px;
  color: #52677b;
}

.diagnosis-line {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.diagnosis-line span {
  padding: 6px 10px;
  border: 1px solid rgba(18, 54, 84, 0.13);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.process-band {
  background: var(--cream-strong);
}

.process-band .section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 74px;
  align-items: start;
}

.process-intro {
  position: sticky;
  top: 118px;
}

.process-intro h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.process-list {
  counter-reset: process;
  display: grid;
}

.process-item {
  counter-increment: process;
  min-height: 142px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid rgba(18, 54, 84, 0.16);
}

.process-item:first-child {
  border-top: 1px solid rgba(18, 54, 84, 0.16);
}

.process-item::before {
  content: counter(process, decimal-leading-zero);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.process-item h3 {
  margin-bottom: 7px;
}

.process-item p {
  margin-bottom: 0;
  color: #5e6873;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  grid-column: span 4;
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.bento-card.wide {
  grid-column: span 8;
  color: #fff;
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}

.bento-card.wide h3,
.bento-card.wide p {
  color: #fff;
}

.bento-card .index {
  display: block;
  margin-bottom: 38px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.bento-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 66px;
  align-items: center;
}

.story-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy .lead {
  margin-bottom: 30px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-list div {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
}

.record-list b {
  color: var(--orange-dark);
  font-size: 12px;
}

.record-list span {
  color: #41576a;
  font-weight: 750;
}

.grade-grid,
.guide-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grade-card,
.guide-card,
.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: #efc5a2;
  box-shadow: var(--shadow-soft);
}

.grade-card strong,
.guide-card .tag,
.contact-card .tag {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.grade-card p,
.guide-card p,
.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide-card .arrow,
.contact-card .arrow {
  width: 36px;
  height: 36px;
  margin-top: 28px;
  display: grid;
  place-items: center;
  color: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}

.faq-list summary {
  position: relative;
  padding: 21px 54px 21px 22px;
  color: var(--ink-deep);
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--orange-dark);
  font-size: 24px;
  font-weight: 500;
  transform: translateY(-50%);
}

/* Legacy malformed marker kept out of the CSS parser.
.faq-list details[open] summary::after {
  content: "−";
}

*/
.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.cta-section {
  padding-block: 40px 100px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 68px;
  color: #fff;
  background: var(--ink-deep);
  border-radius: var(--radius-xl);
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-panel::before {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -150px;
  border: 44px solid rgba(239, 117, 24, 0.9);
}

.cta-panel::after {
  width: 180px;
  height: 180px;
  right: 100px;
  bottom: -130px;
  border: 32px solid rgba(40, 104, 199, 0.75);
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2,
.cta-panel .lead {
  max-width: 760px;
  color: #fff;
}

.cta-panel .eyebrow {
  color: #ffb47b;
}

.site-footer {
  padding: 42px 0 110px;
  color: #718091;
  border-top: 1px solid var(--line);
  background: #f4f5f6;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-deep);
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.floating-actions {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  width: 86px;
  padding: 7px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.floating-actions a {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f3f6f8;
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 900;
}

.floating-actions a:first-child {
  color: #fff;
  background: var(--orange);
}

/* Inner pages */
.page-hero {
  position: relative;
  width: min(calc(100% - 40px), 980px);
  margin-inline: auto;
  padding-block: 86px 70px;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 27px;
  display: flex;
  justify-content: center;
  gap: 9px;
  color: #7a8793;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--blue-dark);
}

.page-hero h1 {
  font-size: clamp(39px, 5vw, 66px);
}

.page-hero .lead {
  max-width: 760px;
  margin: 0 auto;
}

.anchor-nav {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.anchor-nav a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #52677b;
  font-size: 13px;
  font-weight: 850;
}

.anchor-nav a:hover {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.guide-track {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 52px;
  align-items: start;
}

.track-intro {
  position: sticky;
  top: 112px;
}

.track-intro h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.track-cards {
  display: grid;
  gap: 12px;
}

.track-card {
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}

.track-card .step {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.track-card h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.track-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.info-band {
  background: var(--ink-deep);
}

.info-band .section-head h2,
.info-band .section-head .lead {
  color: #fff;
}

.info-band .eyebrow {
  color: #ffb47b;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-card {
  padding: 28px;
  color: #dce8f1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.info-card h3 {
  color: #fff;
}

.info-card p {
  margin-bottom: 0;
}

.check-panel {
  padding: 38px;
  border: 1px solid #f0d6bf;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.check-panel ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.check-panel li {
  position: relative;
  padding: 15px 16px 15px 44px;
  border: 1px solid rgba(203, 86, 7, 0.16);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  font-weight: 700;
}

.check-panel li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--orange-dark);
  font-weight: 900;
}

.contact-hero-card {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.contact-hero-copy {
  padding: 54px;
  align-self: center;
}

.contact-hero-copy h2 {
  font-size: clamp(32px, 3.7vw, 50px);
}

.contact-hero-media {
  min-height: 460px;
}

.contact-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.channel-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
}

.channel-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-deep);
  font-size: 21px;
}

.channel-card p {
  min-height: 58px;
  color: var(--muted);
}

.channel-card .btn {
  width: 100%;
}

.notice {
  margin-top: 18px;
  color: #7a8793;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .header-cta {
    display: none;
  }

  .hero,
  .story,
  .contact-hero-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    width: min(100%, 760px);
  }

  .process-band .section,
  .faq-layout,
  .guide-track {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .process-intro,
  .track-intro {
    position: static;
  }

  .bento-card {
    grid-column: span 6;
  }

  .bento-card.wide {
    grid-column: span 12;
  }

  .story-media {
    width: min(100%, 620px);
    aspect-ratio: 16 / 10;
  }

  .contact-hero-media {
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 72px;
  }

  .shell,
  .section,
  .metric-strip,
  .anchor-nav,
  .contact-hero-card,
  .page-hero {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: auto;
    padding-block: 13px 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand {
    justify-self: center;
  }

  .brand-mark {
    width: 38px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .nav a {
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 12px;
  }

  .hero {
    padding-block: 54px 56px;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  h1,
  .page-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(35px, 10vw, 47px);
  }

  h2 {
    font-size: clamp(29px, 8vw, 39px);
  }

  h3 {
    font-size: 19px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.78;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-image-frame {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .hero-caption {
    right: 15px;
    bottom: 14px;
    left: 15px;
    display: grid;
    gap: 2px;
  }

  .hero-caption span {
    text-align: left;
  }

  .dual-note {
    right: 10px;
    top: -18px;
  }

  .dual-note span {
    min-width: 78px;
    padding: 10px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric {
    min-height: 96px;
    padding: 19px 16px;
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(n + 3) {
    border-bottom: 0;
  }

  .section {
    padding-block: 70px;
  }

  .section-compact {
    padding-block: 54px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .subject-grid,
  .grade-grid,
  .guide-grid,
  .contact-grid,
  .info-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    min-height: 360px;
    padding: 30px 24px;
  }

  .subject-card::after {
    font-size: 150px;
  }

  .subject-label {
    margin-bottom: 26px;
  }

  .process-band .section {
    gap: 26px;
  }

  .process-item {
    min-height: auto;
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .process-item::before {
    width: 40px;
    height: 40px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.wide {
    grid-column: auto;
    min-height: 190px;
    padding: 25px;
  }

  .bento-card .index {
    margin-bottom: 25px;
  }

  .story {
    gap: 35px;
  }

  .story-media {
    aspect-ratio: 4 / 5;
    border-radius: 20px;
  }

  .grade-card,
  .guide-card,
  .contact-card {
    padding: 25px 22px;
  }

  .faq-layout {
    gap: 25px;
  }

  .cta-section {
    padding-block: 20px 70px;
  }

  .cta-panel {
    padding: 42px 24px;
    border-radius: 20px;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .floating-actions {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    padding: 6px;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 13px;
  }

  .floating-actions a {
    min-height: 46px;
  }

  .page-hero {
    padding-block: 54px 48px;
  }

  .breadcrumb {
    margin-bottom: 22px;
  }

  .anchor-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-card {
    padding: 22px 18px;
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .track-card .step {
    width: 36px;
    height: 36px;
  }

  .check-panel {
    padding: 27px 20px;
  }

  .check-panel ul {
    grid-template-columns: 1fr;
  }

  .contact-hero-copy {
    padding: 34px 23px;
  }

  .contact-hero-media {
    min-height: 300px;
  }

  .channel-card p {
    min-height: auto;
  }
}

@media (max-width: 390px) {
  .brand-copy small {
    display: none;
  }

  .hero-chips span,
  .chip {
    font-size: 11px;
  }

  .metric span {
    font-size: 13px;
  }

  .anchor-nav a {
    font-size: 12px;
  }
}

@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;
  }

  html.motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Subject academy hubs and locality articles */
.academy-hero {
  position: relative;
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
  padding-block: 76px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  gap: 52px;
  align-items: end;
}

.academy-hero::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 20px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(239, 117, 24, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(40, 104, 199, 0.025);
  pointer-events: none;
}

.academy-hero-copy,
.academy-hero-aside {
  position: relative;
  z-index: 1;
}

.academy-hero h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 68px);
}

.academy-hero .lead {
  max-width: 820px;
  margin-bottom: 0;
}

.academy-hero-aside {
  padding: 28px;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.academy-hero-aside strong {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.1;
}

.academy-hero-aside span {
  color: #d4e2ec;
  font-size: 14px;
}

.academy-breadcrumb {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  color: #778696;
  font-size: 13px;
  font-weight: 750;
}

.academy-breadcrumb a {
  color: var(--blue-dark);
}

.academy-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.academy-category-card {
  position: relative;
  min-height: 260px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 17px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.academy-category-card:nth-child(odd) {
  border-top: 4px solid var(--blue);
}

.academy-category-card:nth-child(even) {
  border-top: 4px solid var(--orange);
}

.academy-category-card:hover {
  transform: translateY(-4px);
  border-color: #efc8a7;
}

.academy-category-card .tag {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.academy-category-card h2,
.academy-category-card h3 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 36px);
}

.academy-category-card p {
  max-width: 540px;
  margin-bottom: 28px;
  color: var(--muted);
}

.academy-category-card .arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 50%;
  font-weight: 900;
}

.academy-directory {
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.academy-directory-head {
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.55fr);
  gap: 24px;
  align-items: end;
}

.academy-directory-head h2 {
  margin-bottom: 8px;
  font-size: clamp(29px, 3.5vw, 43px);
}

.academy-directory-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.academy-search-label {
  display: grid;
  gap: 7px;
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 900;
}

.academy-search-input {
  min-height: 48px;
  width: 100%;
  padding: 11px 15px;
  color: var(--ink-deep);
  border: 1px solid #cbd5de;
  background: #fff;
  border-radius: 9px;
}

.academy-search-input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(40, 104, 199, 0.12);
}

.academy-directory-tools {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.academy-directory-tools button,
.academy-region-chip {
  min-height: 37px;
  padding: 8px 12px;
  color: #486075;
  border: 1px solid var(--line);
  background: #f7f9fa;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.academy-result-count {
  margin-left: auto;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.academy-region-list {
  display: grid;
  gap: 10px;
}

.academy-region-group {
  border: 1px solid var(--line);
  background: #fbfcfd;
  border-radius: 12px;
}

.academy-region-group[hidden],
.academy-local-link[hidden],
.academy-city-group[hidden] {
  display: none !important;
}

.academy-region-group > summary {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.academy-region-group > summary::-webkit-details-marker {
  display: none;
}

.academy-region-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.academy-region-heading strong {
  color: var(--ink-deep);
  font-size: 21px;
}

.academy-region-heading small {
  color: var(--muted);
}

.academy-region-toggle {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  border: 1px solid #f1d2b9;
  background: var(--orange-soft);
  border-radius: 50%;
}

.academy-region-toggle::before {
  content: "+";
}

.academy-region-group[open] .academy-region-toggle::before {
  content: "-";
}

.academy-region-content {
  padding: 0 20px 22px;
  display: grid;
  gap: 20px;
}

.academy-city-group {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.academy-city-title {
  margin-bottom: 12px;
  font-size: 17px;
}

.academy-local-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.academy-local-link {
  min-height: 50px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-deep);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.academy-local-link::after {
  content: "→";
  color: var(--orange-dark);
}

.academy-local-link:hover {
  border-color: #efbe97;
  background: var(--orange-soft);
}

.academy-media-section,
.academy-content-wrap,
.academy-related {
  width: min(calc(100% - 40px), 980px);
  margin-inline: auto;
}

.academy-media-section {
  margin-bottom: 52px;
}

.academy-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 15px;
}

.academy-main-media,
.academy-map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.academy-main-media img,
.academy-map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-main-media {
  min-height: 440px;
}

.academy-map-card {
  min-height: 440px;
}

.academy-main-media figcaption,
.academy-map-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(8, 45, 73, 0.86);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.academy-content-wrap {
  display: grid;
  gap: 24px;
  padding-bottom: 88px;
}

.academy-summary,
.academy-facts,
.academy-article,
.academy-faq,
.academy-cases,
.academy-related-panel {
  padding: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.academy-summary {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 30px;
  color: #fff;
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}

.academy-summary h2,
.academy-summary p {
  color: #fff;
}

.academy-summary h2 {
  margin-bottom: 0;
  font-size: 29px;
}

.academy-summary p {
  margin-bottom: 0;
  color: #dbe6ee;
}

.academy-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.academy-fact-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: #f8fafb;
  border-radius: 11px;
}

.academy-fact-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--orange-dark);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.academy-fact-card span,
.academy-fact-card p {
  margin-bottom: 0;
  color: #425b70;
  font-weight: 700;
}

.academy-school-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.academy-school-tags span {
  padding: 6px 10px;
  color: #49647a;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.academy-fee-link {
  margin-top: 18px;
}

.academy-article > .lead {
  padding: 24px;
  color: #314f67;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

.academy-article-section {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.academy-article-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.academy-article-section h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3.3vw, 36px);
}

.academy-article-section p {
  color: #465e72;
  font-size: 16px;
  line-height: 1.9;
}

.academy-article-section p:last-child {
  margin-bottom: 0;
}

.academy-faq .faq-list {
  margin-top: 24px;
}

.academy-case-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.academy-case-card {
  margin: 0;
  padding: 22px;
  color: #425d72;
  border: 1px solid #efd5bd;
  background: var(--cream);
  border-radius: 11px;
}

.academy-case-note {
  color: #778493;
  font-size: 13px;
}

.academy-related {
  padding-bottom: 100px;
}

.academy-related-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.academy-related-grid a {
  min-height: 58px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-deep);
  border: 1px solid var(--line);
  background: #f8fafb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
}

.academy-related-grid a::after {
  content: "→";
  color: var(--orange-dark);
}

@media (max-width: 900px) {
  .academy-hero,
  .academy-directory-head,
  .academy-summary {
    grid-template-columns: 1fr;
  }

  .academy-hero {
    gap: 26px;
  }

  .academy-hero-aside {
    width: min(100%, 480px);
  }

  .academy-local-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .academy-media-grid {
    grid-template-columns: 1fr;
  }

  .academy-main-media,
  .academy-map-card {
    min-height: 0;
  }

  .academy-main-media img,
  .academy-map-card img {
    height: auto;
  }
}

@media (max-width: 720px) {
  .academy-hero,
  .academy-media-section,
  .academy-content-wrap,
  .academy-related {
    width: min(calc(100% - 28px), var(--shell));
  }

  .academy-hero {
    padding-block: 52px 42px;
  }

  .academy-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .academy-hero-aside {
    padding: 23px;
  }

  .academy-category-grid,
  .academy-fact-grid,
  .academy-related-grid {
    grid-template-columns: 1fr;
  }

  .academy-category-card {
    min-height: 230px;
    padding: 27px 23px;
  }

  .academy-directory {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .academy-directory-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .academy-directory-tools button {
    width: 100%;
  }

  .academy-result-count {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: center;
  }

  .academy-region-group > summary {
    padding: 17px 15px;
  }

  .academy-region-heading {
    display: grid;
    gap: 1px;
  }

  .academy-region-content {
    padding: 0 13px 16px;
  }

  .academy-local-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-local-link {
    min-height: 53px;
    padding: 11px;
    font-size: 12px;
  }

  .academy-media-section {
    margin-bottom: 32px;
  }

  .academy-main-media,
  .academy-map-card {
    border-radius: 14px;
  }

  .academy-summary,
  .academy-facts,
  .academy-article,
  .academy-faq,
  .academy-cases,
  .academy-related-panel {
    padding: 25px 19px;
    border-radius: 15px;
  }

  .academy-summary {
    gap: 13px;
  }

  .academy-summary h2 {
    font-size: 25px;
  }

  .academy-article > .lead {
    padding: 19px 17px;
  }

  .academy-article-section {
    padding-block: 25px;
  }

  .academy-article-section p {
    font-size: 15px;
    line-height: 1.85;
  }
}

@media (max-width: 390px) {
  .nav a {
    padding-inline: 3px;
    font-size: 11px;
  }

  .academy-local-grid {
    grid-template-columns: 1fr;
  }
}

.not-found-page {
  min-height: 100vh;
}

.not-found-main {
  min-height: calc(100svh - 250px);
  padding: 84px 0 100px;
  display: grid;
  place-items: center;
}

.not-found-card {
  position: relative;
  overflow: hidden;
  padding: 70px clamp(24px, 7vw, 86px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #fff 0 67%, var(--orange-soft) 100%);
  box-shadow: var(--shadow);
}

.not-found-card::after {
  content: "";
  position: absolute;
  width: 230px;
  aspect-ratio: 1;
  right: -105px;
  bottom: -115px;
  border: 1px solid rgba(40, 104, 199, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.not-found-code {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: clamp(60px, 12vw, 118px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
}

.not-found-card h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.not-found-card .lead {
  max-width: 760px;
  margin-inline: auto;
}

.not-found-card .actions {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  justify-content: center;
}

@media (max-width: 720px) {
  .hero-role {
    margin-bottom: 15px;
    font-size: 14px;
  }

  .not-found-main {
    min-height: auto;
    padding: 42px 0 70px;
  }

  .not-found-card {
    padding: 42px 22px;
    border-radius: 20px;
  }

  .not-found-card .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
