:root {
  --yellow: #ffd400;
  --yellow-2: #ffea62;
  --orange: #ff9f1c;
  --ink: #171717;
  --ink-2: #393939;
  --muted: #6e6e6e;
  --paper: #fffdf7;
  --cream: #fff7d5;
  --line: rgba(23,23,23,.11);
  --white: #fff;
  --blue: #2d75ff;
  --teal: #18a999;
  --purple: #8c55df;
  --shadow-sm: 0 10px 30px rgba(31,26,10,.08);
  --shadow-lg: 0 28px 80px rgba(31,26,10,.16);
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 40px;
  --container: 1200px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding: 112px 0; position: relative; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #a46c00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--yellow); }
.section-heading { margin-bottom: 54px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.3vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.section-heading p { margin: 18px 0 0; max-width: 760px; color: var(--muted); font-size: 18px; }
.section-heading.center { text-align: center; max-width: 900px; margin-inline: auto; margin-bottom: 54px; }
.section-heading.center p { margin-inline: auto; }
.split-heading { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 50px; }
.split-heading p { margin: 0; }

.btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(45,117,255,.35); outline-offset: 3px; }
.btn-primary { background: var(--yellow); color: #111; box-shadow: 0 10px 28px rgba(255,212,0,.28); }
.btn-primary:hover { background: #ffe13e; box-shadow: 0 14px 34px rgba(255,212,0,.38); }
.btn-ghost { background: rgba(255,255,255,.72); border: 1px solid rgba(23,23,23,.12); backdrop-filter: blur(10px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: #151515; }
.btn-lg { min-height: 56px; padding-inline: 28px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,253,247,.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(30,25,10,.08); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { width: 175px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 700; color: #444; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px; border-radius: 3px; background: var(--yellow); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.header-cta { min-height: 44px; padding-inline: 19px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: #111; transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: 820px; padding-top: calc(var(--header-h) + 74px); overflow: hidden; background: linear-gradient(135deg, #fffdf7 0%, #fff8d8 58%, #fffdf7 100%); }
.hero::before { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(to top, rgba(255,255,255,.92), transparent); pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .5; }
.hero-blob-a { width: 520px; height: 520px; background: rgba(255,212,0,.25); right: -180px; top: 70px; }
.hero-blob-b { width: 380px; height: 380px; background: rgba(45,117,255,.09); left: -160px; bottom: 10px; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 62px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(23,23,23,.1); background: rgba(255,255,255,.75); border-radius: 999px; font-size: 14px; font-weight: 800; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,212,0,.2); }
.hero h1 { margin: 24px 0 22px; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.06; letter-spacing: -.06em; }
.hero-nowrap { white-space: nowrap; }
.hero h1 span { position: relative; z-index: 1; }
.hero h1 span::after { content: ""; position: absolute; left: -4px; right: -8px; bottom: 7px; height: 17px; background: var(--yellow); border-radius: 4px; z-index: -1; transform: rotate(-1deg); }
.hero-lead { margin: 0; max-width: 650px; font-size: 18px; color: #565656; }
.hero-lead strong { color: #161616; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 38px; }
.hero-metrics div { padding: 14px 8px; border-top: 1px solid rgba(23,23,23,.13); }
.hero-metrics strong { display: block; font-size: 24px; line-height: 1.1; }
.hero-metrics span { display: block; margin-top: 6px; color: #777; font-size: 12px; }
.hero-visual { position: relative; min-height: 590px; }
.hero-card { margin: 0; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-photo { position: absolute; inset: 46px 0 42px 16%; }
.hero-main-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 48%); pointer-events: none; }
.hero-main-photo figcaption { position: absolute; z-index: 2; left: 28px; bottom: 24px; color: white; font-size: 14px; }
.hero-main-photo figcaption span { display: block; width: fit-content; margin-bottom: 5px; padding: 4px 9px; border-radius: 999px; background: var(--yellow); color: #111; font-weight: 800; }
.hero-kids-photo { position: absolute; left: 0; top: 0; width: 39%; height: 43%; border: 8px solid var(--paper); transform: rotate(-3deg); }
.hero-class-photo { position: absolute; right: -2%; bottom: 0; width: 44%; height: 34%; border: 8px solid var(--paper); transform: rotate(2deg); }
.hero-mascot { position: absolute; width: 118px; height: auto; aspect-ratio: 638 / 900; object-fit: contain; right: 4.5%; top: 18px; z-index: 12; filter: drop-shadow(0 14px 14px rgba(0,0,0,.17)); pointer-events: none; }
.hero-note { position: absolute; left: 7%; bottom: 18px; z-index: 5; padding: 13px 18px; border-radius: 14px; background: #171717; color: #fff; box-shadow: var(--shadow-sm); }
.hero-note strong { display: block; font-size: 13px; color: var(--yellow); }
.hero-note span { font-size: 12px; }

.values-strip { position: relative; z-index: 5; background: #141414; color: #fff; }
.values-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.values-row > div { position: relative; padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.12); }
.values-row > div:last-child { border-right: 0; }
.values-row span { position: absolute; right: 18px; top: 16px; color: rgba(255,255,255,.14); font-size: 44px; font-weight: 900; }
.values-row strong { display: block; font-size: 20px; }
.values-row small { color: #aaa; }

.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; align-items: stretch; }
.card-soft { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(150deg, #fffdf8, #fff4ba); box-shadow: var(--shadow-sm); }
.about-story { position: relative; min-height: 590px; padding: 48px; overflow: hidden; }
.big-quote { position: absolute; top: -24px; left: 24px; font-size: 160px; line-height: 1; color: rgba(255,212,0,.4); font-family: Georgia, serif; }
.about-story h3 { position: relative; margin: 30px 0 22px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.04em; }
.about-story p { max-width: 530px; color: #565656; font-size: 17px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.about-tags span { padding: 8px 12px; background: rgba(255,255,255,.72); border: 1px solid rgba(23,23,23,.08); border-radius: 999px; font-size: 13px; font-weight: 700; }
.about-story img { position: absolute; width: 270px; right: -20px; bottom: -30px; }
.history { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.history article { display: grid; grid-template-columns: 130px 1fr; gap: 20px; min-height: 93px; padding: 22px 30px; border-bottom: 1px solid var(--line); transition: background .2s ease, transform .2s ease; }
.history article:last-child { border-bottom: 0; }
.history article:hover { background: #fffaf0; transform: translateX(5px); }
.history article.active { background: #171717; color: #fff; }
.history time { color: #a97700; font-size: 21px; font-weight: 900; }
.history article.active time { color: var(--yellow); }
.history h3 { margin: 0 0 4px; font-size: 17px; }
.history p { margin: 0; color: #777; font-size: 14px; }
.history article.active p { color: #bbb; }

.m10-section { overflow: hidden; background: #f7f8fb; }
.m10-section::before { content: "M10"; position: absolute; left: -40px; top: 60px; color: rgba(23,23,23,.025); font-size: 300px; font-weight: 900; line-height: 1; }
.m10-section .section-heading.center { max-width: 1120px; }
.m10-section .section-heading h2 { font-size: clamp(30px, 4vw, 56px); white-space: nowrap; }
.m10-shell { position: relative; padding: 36px; border: 1px solid rgba(23,23,23,.1); border-radius: 44px; background: #fff; box-shadow: var(--shadow-lg); }
.m10-intro { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 2px 6px 28px; border-bottom: 1px solid var(--line); }
.m10-mark { grid-row: span 2; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 28px; background: var(--yellow); font-size: 34px; font-weight: 1000; transform: rotate(-3deg); }
.m10-intro h3 { margin: 0; font-size: 28px; }
.m10-intro p { margin: 2px 0 0; color: var(--muted); }
.m10-flow { display: grid; grid-template-columns: repeat(9, auto); align-items: center; justify-content: space-between; gap: 8px; padding: 34px 4px; }
.m10-flow article { width: 160px; min-height: 210px; padding: 18px 15px; text-align: center; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #fff, #fbfbfb); }
.m10-flow article span { color: #aaa; font-size: 11px; font-weight: 800; }
.m10-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 9px auto 12px; border-radius: 18px; background: var(--yellow); font-weight: 900; font-size: 22px; }
.m10-flow article:nth-of-type(2) .m10-icon { background: #dfeaff; color: #195fdd; }
.m10-flow article:nth-of-type(3) .m10-icon { background: #fff0b3; color: #9e6b00; }
.m10-flow article:nth-of-type(4) .m10-icon { background: #ffe2c3; color: #b75600; }
.m10-flow article:nth-of-type(5) .m10-icon { background: #d7f5e8; color: #087f5b; }
.m10-flow h4 { margin: 0; font-size: 16px; }
.m10-flow p { margin: 7px 0 0; color: #777; font-size: 12px; line-height: 1.55; }
.m10-flow > i { color: #bbb; font-size: 22px; font-style: normal; }
.m10-support { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.m10-support span { padding: 9px 14px; border-radius: 999px; background: #f2ecff; color: #6437a8; font-size: 13px; font-weight: 800; }
.theory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.theory-grid article { position: relative; padding: 28px; min-height: 210px; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff; }
.theory-grid b { position: absolute; right: 18px; top: 5px; color: rgba(23,23,23,.05); font-size: 72px; line-height: 1; }
.theory-grid h3 { margin: 10px 0 10px; font-size: 21px; }
.theory-grid p { margin: 0; color: var(--muted); }
.theory-grid article::before { content: ""; display: block; width: 40px; height: 6px; border-radius: 5px; background: var(--yellow); }

.programs { background: #fffdf7; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card { overflow: hidden; border: 1px solid rgba(23,23,23,.08); border-radius: 34px; background: linear-gradient(180deg, #fff, #fffdf8); box-shadow: 0 18px 42px rgba(22,22,22,.07); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 28px 72px rgba(22,22,22,.12); border-color: rgba(255,212,0,.38); }
.program-photo { position: relative; height: 250px; overflow: hidden; }
.program-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.program-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.program-card:hover .program-photo img { transform: scale(1.04); }
.program-photo span { position: absolute; z-index: 2; left: 20px; bottom: 18px; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 900; }
.program-body { padding: 28px; position: relative; }
.program-index { color: #9a6d00; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.program-body h3 { margin: 6px 0 9px; font-size: 31px; }
.program-body > p { margin: 0; color: #666; min-height: 82px; }
.program-body ul { list-style: none; margin: 22px 0; padding: 0; }
.program-body li { position: relative; padding: 7px 0 7px 23px; border-bottom: 1px dashed rgba(23,23,23,.1); font-size: 14px; }
.program-body li::before { content: "✓"; position: absolute; left: 0; color: #00865f; font-weight: 900; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 5px 9px; border-radius: 999px; background: #f3f3f3; font-size: 11px; color: #666; }
.text-link { display: inline-flex; gap: 8px; margin-top: 24px; padding: 0; border: 0; background: transparent; font-weight: 900; cursor: pointer; }
.program-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.program-actions .text-link { margin-top: 20px; }
.text-link-muted { color: #777; }
.text-link-muted:hover { color: #111; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.kindergarten { --accent: var(--yellow); }
.primary { --accent: var(--blue); }
.junior { --accent: var(--teal); }
.program-card::before { content: ""; display: block; height: 7px; background: var(--accent); }
.detail-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.detail-link-card { display: block; padding: 22px 22px 20px; border-radius: 26px; border: 1px solid rgba(23,23,23,.08); background: linear-gradient(180deg, #fff, #fffdf8); box-shadow: 0 18px 38px rgba(22,22,22,.06); transition: transform .22s ease, box-shadow .22s ease; }
.detail-link-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(22,22,22,.11); }
.detail-link-card small { display: inline-block; margin-bottom: 10px; color: #9a6d00; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.detail-link-card strong { display: block; font-size: 24px; line-height: 1.2; }
.detail-link-card span { display: block; margin-top: 8px; color: #666; font-size: 14px; }
.detail-k { background: linear-gradient(180deg, #fffdf2, #fff); }
.detail-p { background: linear-gradient(180deg, #f6faff, #fff); }
.detail-j { background: linear-gradient(180deg, #f6fffc, #fff); }

.book-system { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 42px; margin-top: 72px; padding: 52px; border-radius: 38px; background: #171717; color: #fff; }
.book-copy h3 { margin: 0 0 18px; max-width: 620px; font-size: clamp(26px, 2.9vw, 42px); line-height: 1.18; }
.book-copy p { margin: 0; max-width: 620px; color: #c9c9c9; font-size: 18px; }
.book-copy-note { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.book-copy-note span { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #f3f3f3; font-size: 12px; font-weight: 800; }
.book-system .section-kicker { color: var(--yellow); }
.book-stack { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.book-stack figure { margin: 0; text-align: center; }
.book-stack img { width: 100%; aspect-ratio: 3/4; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.25); transition: transform .25s ease; }
.book-stack figure:nth-child(2n) img { transform: translateY(-18px) rotate(1.5deg); }
.book-stack figure:nth-child(2n+1) img { transform: rotate(-1deg); }
.book-stack figure:hover img { transform: translateY(-10px) scale(1.05); }
.book-stack figcaption { margin-top: 9px; color: #aaa; font-size: 11px; }

.classroom { background: linear-gradient(180deg, #f7f8fb 0%, #fbfbfd 100%); }
.classroom .section-heading.center { max-width: 1120px; }
.classroom .section-heading p { max-width: 1120px; white-space: nowrap; }
.method-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 46px; }
.method-grid article { min-height: 230px; padding: 20px 17px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.method-grid img { width: 86px; height: 98px; object-fit: contain; margin: 0 auto 9px; }
.method-grid h3 { margin: 0 0 7px; font-size: 17px; }
.method-grid p { margin: 0; color: #777; font-size: 13px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 16px; }
.gallery-item { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: #ddd; cursor: zoom-in; }
.gallery-item::after { content: "+"; position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 22px; opacity: 0; transform: scale(.7); transition: .2s ease; }
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.tall, .gallery-item.wide { grid-row: auto; grid-column: auto; }

.learning-loop { background: #fff; }
.loop-list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.loop-list li { position: relative; min-height: 170px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.loop-list li::after { content: "→"; position: absolute; right: -11px; top: 50%; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); font-size: 12px; transform: translateY(-50%); }
.loop-list li:last-child::after { display: none; }
.loop-list b { display: block; color: #b4b4b4; font-size: 12px; }
.loop-list strong { display: block; margin-top: 24px; font-size: 17px; }
.loop-list span { display: block; margin-top: 8px; color: #777; font-size: 12px; }
.loop-list li:nth-child(4), .loop-list li:nth-child(8) { background: #171717; color: #fff; }
.loop-list li:nth-child(4) span, .loop-list li:nth-child(8) span { color: #bbb; }

.outcomes { background: var(--yellow); overflow: hidden; }
.outcomes::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -240px; border: 80px solid rgba(255,255,255,.22); border-radius: 50%; }
.outcomes-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; position: relative; z-index: 2; }
.outcomes-copy h2 { margin: 0 0 20px; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -.05em; }
.outcomes-copy p { max-width: 540px; margin: 0 0 28px; color: #514700; font-size: 17px; }
.outcomes .section-kicker { color: #4d4300; }
.outcomes .section-kicker::before { background: #171717; }
.outcome-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.outcome-cards article { position: relative; min-height: 215px; padding: 28px; border-radius: 28px; background: rgba(255,255,255,.86); box-shadow: 0 14px 28px rgba(83,68,0,.08); }
.outcome-cards article:nth-child(4) { background: #171717; color: #fff; }
.outcome-cards span { color: #b59800; font-size: 12px; font-weight: 900; }
.outcome-cards h3 { margin: 28px 0 10px; font-size: 25px; }
.outcome-cards p { margin: 0; color: #676767; font-size: 14px; }
.outcome-cards article:nth-child(4) p { color: #bbb; }

.campus { background: #fffdf7; }
.campus-gallery { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 14px; }
.campus-gallery figure { position: relative; margin: 0; height: 430px; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow-sm); }
.campus-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.campus-gallery figure:hover img { transform: scale(1.03); }
.campus-gallery figcaption { position: absolute; inset: auto 16px 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.campus-gallery strong, .campus-gallery span { display: block; }
.campus-gallery span { color: #777; font-size: 12px; }
.campus-note { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.campus-note strong { font-size: 18px; }
.campus-note span { color: #777; }

.faq { background: #f7f8fb; overflow: hidden; }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.faq-title { position: sticky; top: calc(var(--header-h) + 36px); }
.faq-title h2 { margin: 0 0 18px; font-size: clamp(38px, 4vw, 56px); }
.faq-title p { margin: 0; max-width: 430px; color: #666; }
.faq-title img { width: 250px; margin: 36px auto 0; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion article { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.accordion button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border: 0; background: transparent; text-align: left; font-weight: 900; cursor: pointer; }
.accordion button i { position: relative; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); }
.accordion button i::before, .accordion button i::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2px; background: #111; transition: transform .2s ease; }
.accordion button i::after { transform: rotate(90deg); }
.accordion article.open button i::after { transform: rotate(0); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.accordion-panel > p { overflow: hidden; margin: 0; padding: 0 26px; color: #666; }
.accordion article.open .accordion-panel { grid-template-rows: 1fr; }
.accordion article.open .accordion-panel > p { padding-bottom: 24px; }

.final-cta { padding: 72px 0; background: #171717; color: #fff; overflow: hidden; }
.final-cta-inner { position: relative; min-height: 260px; display: flex; align-items: center; gap: 48px; padding: 48px 240px 48px 52px; border: 1px solid rgba(255,255,255,.12); border-radius: 36px; background: linear-gradient(135deg, #252525, #111); }
.final-cta-inner > div { min-width: 0; }
.final-cta span { color: var(--yellow); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.final-cta h2 { margin: 7px 0 10px; font-size: clamp(24px, 2.7vw, 40px); line-height: 1.15; white-space: nowrap; }
.final-cta p { margin: 0; max-width: 670px; color: #aaa; }
.final-cta .btn { flex: 0 0 auto; margin-left: auto; }
.final-cta img { position: absolute; width: 175px; right: 32px; bottom: -24px; }

.site-footer { padding: 74px 0 26px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; }
.footer-brand img { width: 180px; }
.footer-brand p { color: #777; }
.site-footer h3 { margin: 0 0 16px; font-size: 15px; }
.site-footer a, .site-footer p { display: block; margin: 8px 0; color: #777; font-size: 14px; }
.site-footer a:hover { color: #111; }
.footer-consult { padding: 0; border: 0; background: transparent; font-weight: 900; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); color: #999; font-size: 12px; }

.floating-consult { position: fixed; z-index: 900; right: 22px; bottom: 28px; width: 74px; height: 74px; border: 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 14px 35px rgba(0,0,0,.2); cursor: pointer; }
.floating-consult span, .floating-consult small { display: block; }
.floating-consult span { font-weight: 900; }
.floating-consult small { margin-top: 2px; font-size: 10px; }
.back-top { position: fixed; z-index: 800; right: 38px; bottom: 114px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; cursor: pointer; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.consult-dialog, .lightbox { border: 0; padding: 0; border-radius: 30px; box-shadow: 0 30px 120px rgba(0,0,0,.3); }
.consult-dialog { width: min(980px, calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: auto; }
.consult-dialog::backdrop, .lightbox::backdrop { background: rgba(0,0,0,.64); backdrop-filter: blur(4px); }
.dialog-close, .lightbox-close { position: absolute; z-index: 4; right: 14px; top: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 28px; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: .88fr 1.12fr; }
.dialog-brand { position: relative; min-height: 620px; padding: 54px 44px; overflow: hidden; background: var(--yellow); }
.dialog-brand > span { font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.dialog-brand h2 { margin: 12px 0 14px; font-size: 42px; line-height: 1.08; }
.dialog-brand p { color: #5b5000; }
.dialog-brand > div { margin-top: 32px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.58); }
.dialog-brand ul { margin: 8px 0 0; padding-left: 20px; }
.dialog-brand img { position: absolute; width: 230px; right: -20px; bottom: -40px; }
.consult-form { display: flex; flex-direction: column; gap: 15px; padding: 48px; background: #fff; }
.consult-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.consult-form input, .consult-form select, .consult-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d8d8d8; border-radius: 12px; background: #fff; color: #171717; outline: 0; }
.consult-form input:focus, .consult-form select:focus, .consult-form textarea:focus { border-color: #a88500; box-shadow: 0 0 0 4px rgba(255,212,0,.17); }
.consult-form textarea { resize: vertical; }
.consult-form .privacy { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; color: #777; font-weight: 400; }
.privacy input { width: auto; }
.form-tip { margin: -4px 0 0; color: #999; font-size: 11px; line-height: 1.5; }
.form-tip code { padding: 2px 5px; border-radius: 4px; background: #f1f1f1; }
.form-status { min-height: 22px; color: #087f5b; font-size: 13px; font-weight: 700; }
.lightbox { width: min(1100px, calc(100% - 30px)); background: transparent; }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 22px; }

[data-reveal] { opacity: 1; transform: none; }
.reveal-enabled [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0ms); }
.reveal-enabled [data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .m10-flow { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .m10-flow > i { display: none; }
  .m10-flow article { width: auto; }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .loop-list { grid-template-columns: repeat(4, 1fr); }
  .loop-list li:nth-child(4)::after { display: none; }
  .book-system { grid-template-columns: 1fr; }
  .book-copy p { max-width: none; }
}

@media (max-width: 900px) {
  .m10-section .section-heading h2, .classroom .section-heading p { white-space: normal; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .gallery-item:nth-child(n) { grid-area: auto; }
  .gallery-item.tall, .gallery-item.wide { grid-row: auto; grid-column: auto; }
  :root { --header-h: 68px; }
  .section-pad { padding: 82px 0; }
  .menu-toggle { display: block; }
  .site-header { background: #fffdf7; backdrop-filter: none; }
  .site-nav { position: absolute; top: 100%; left: 0; width: 100vw; height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 24px 22px; overflow-y: auto; background: #fffdf7; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .22s ease; }
  body.menu-open .site-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { width: 100%; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { width: 160px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 52px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 570px; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
  .values-row > div:nth-child(2) { border-right: 0; }
  .values-row > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .about-grid, .outcomes-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-title { position: static; }
  .faq-title img { display: none; }
  .program-grid { grid-template-columns: 1fr; }
  .detail-links { grid-template-columns: 1fr; }
  .program-card { display: grid; grid-template-columns: .88fr 1.12fr; }
  .program-card::before { display: none; }
  .program-photo { height: 100%; min-height: 430px; border-top: 7px solid var(--accent); }
  .program-body > p { min-height: 0; }
  .book-stack { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .campus-gallery { grid-template-columns: 1fr 1fr; }
  .campus-gallery figure:first-child { grid-column: span 2; }
  .final-cta-inner { display: block; padding: 42px 210px 42px 38px; }
  .final-cta .btn { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, var(--container)); }
  .section-pad { padding: 66px 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading p, .hero-lead { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 42px); }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: 46px; line-height: 1.04; }
  .hero-mascot { width: 92px; height: auto; right: 2%; top: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-metrics { gap: 4px; }
  .hero-metrics div { padding-inline: 4px; }
  .hero-visual { min-height: 470px; }
  .hero-main-photo { inset: 48px 2% 42px 9%; }
  .hero-kids-photo { width: 40%; height: 38%; }
  .hero-class-photo { width: 47%; height: 31%; right: 0; }
  .hero-mascot { width: 92px; height: auto; right: 2%; top: 14px; }
  .hero-note { left: 4%; bottom: 8px; }
  .values-row > div { padding: 22px 14px; }
  .values-row strong { font-size: 17px; }
  .values-row span { font-size: 36px; }
  .about-story { min-height: 540px; padding: 34px 28px; }
  .about-story img { width: 220px; }
  .history article { grid-template-columns: 84px 1fr; padding: 20px 18px; }
  .m10-shell { padding: 22px 16px; border-radius: 28px; }
  .m10-intro { grid-template-columns: 70px 1fr; }
  .m10-mark { width: 68px; height: 68px; border-radius: 18px; font-size: 24px; }
  .m10-flow { display: grid; grid-template-columns: 1fr 1fr; }
  .m10-flow article:last-of-type { grid-column: span 2; }
  .theory-grid { grid-template-columns: 1fr; }
  .program-card { display: block; }
  .program-photo { height: 240px; min-height: 0; }
  .book-system { padding: 34px 20px; }
  .detail-link-card strong { font-size: 21px; }
  .book-copy h3 { font-size: 22px; max-width: none; }
  .final-cta h2 { font-size: 22px; }
  .book-stack { gap: 8px; }
  .book-stack figcaption { display: none; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.wide { grid-column: auto; }
  .loop-list { grid-template-columns: repeat(2, 1fr); }
  .loop-list li:nth-child(2n)::after { display: none; }
  .outcomes-grid { gap: 38px; }
  .outcome-cards { grid-template-columns: 1fr; }
  .campus-gallery { grid-template-columns: 1fr; }
  .campus-gallery figure:first-child { grid-column: auto; }
  .campus-gallery figure { height: 300px; }
  .campus-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .final-cta-inner { min-height: 440px; padding: 36px 28px 180px; }
  .final-cta img { width: 170px; right: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .floating-consult, .back-top { display: none; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-brand { min-height: 300px; padding: 36px 28px; }
  .dialog-brand img { width: 145px; }
  .dialog-brand > div { display: none; }
  .consult-form { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== 2026 premium refresh ===== */
.site-header { background: rgba(255,253,247,.78); box-shadow: 0 1px 0 rgba(23,23,23,.04); }
.hero {
  background:
    radial-gradient(circle at 8% 78%, rgba(45,117,255,.08), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(255,212,0,.26), transparent 26%),
    linear-gradient(135deg, #fffef8 0%, #fff7d5 54%, #fffdf7 100%);
}
.section-heading h2 { text-wrap: balance; }
.card-soft,
.program-card,
.theory-grid article,
.history,
.m10-shell,
.loop-list li,
.method-grid article,
.campus-gallery figure,
.outcome-cards article,
.faq-accordion article {
  box-shadow: 0 18px 50px rgba(31,26,10,.08);
}
.program-card { border-color: rgba(23,23,23,.08); }
.program-card:hover { transform: translateY(-8px); }
.program-body { background: linear-gradient(180deg, #fff, #fffef9); }
.program-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.program-actions .text-link { margin-top: 0; }
.program-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(23,23,23,.06);
  border: 1px solid rgba(23,23,23,.08);
  font-size: 14px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}
.program-detail-link:hover { transform: translateY(-2px); background: rgba(255,212,0,.26); }
.book-system {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 14% 18%, rgba(255,212,0,.14), transparent 30%),
    linear-gradient(135deg, #181818, #101010 52%, #171717 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
}
.book-system::after {
  content: "";
  position: absolute;
  inset: auto auto -90px -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,.18), transparent 70%);
  pointer-events: none;
}
.book-copy h3 { white-space: normal; max-width: 16ch; }
.book-copy p { max-width: 40ch; }
.book-stack { gap: 14px; }
.book-stack figure {
  padding: 10px 8px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.book-stack img { box-shadow: 0 18px 34px rgba(0,0,0,.28); }
.hero-note,
.final-cta-inner,
.about-story,
.book-system { backdrop-filter: blur(8px); }
.final-cta-inner {
  box-shadow: 0 28px 80px rgba(0,0,0,.26);
  background: linear-gradient(135deg, #222 0%, #101010 62%, #171717 100%);
}

/* ===== detail pages ===== */
.inner-page main { padding-top: var(--header-h); }
.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 70px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,212,0,.22), transparent 22%),
    radial-gradient(circle at 10% 88%, rgba(45,117,255,.08), transparent 22%),
    linear-gradient(135deg, #fffef8 0%, #fff9e4 50%, #fffdf7 100%);
}
.inner-hero::before {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,212,0,.18);
  filter: blur(2px);
}
.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(23,23,23,.08);
  color: #666;
  font-size: 13px;
  font-weight: 700;
}
.detail-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 56px; }
.detail-hero-copy h1 { margin: 0 0 16px; font-size: clamp(40px, 4.8vw, 66px); line-height: 1.06; letter-spacing: -.05em; }
.detail-hero-copy p { margin: 0; max-width: 720px; color: #5f5f5f; font-size: 18px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.detail-meta span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(23,23,23,.08);
  font-size: 13px;
  font-weight: 800;
}
.detail-hero-visual {
  position: relative;
  min-height: 440px;
}
.detail-hero-photo,
.detail-hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(31,26,10,.14);
  background: #fff;
}
.detail-hero-photo img,
.detail-hero-card img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-photo { inset: 24px 20px 0 90px; }
.detail-hero-card.top { width: 40%; height: 42%; left: 0; top: 0; border: 8px solid var(--paper); transform: rotate(-3deg); }
.detail-hero-card.bottom { width: 43%; height: 32%; right: 0; bottom: 8px; border: 8px solid var(--paper); transform: rotate(3deg); }
.detail-hero-mascot { position: absolute; width: 104px; height: auto; right: 6px; top: -12px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.18)); }
.detail-main { background: #fff; }
.detail-layout { display: grid; grid-template-columns: 1.04fr .96fr; gap: 22px; }
.detail-card {
  padding: 28px;
  border: 1px solid rgba(23,23,23,.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31,26,10,.06);
}
.detail-card h2, .detail-card h3 { margin: 0 0 14px; line-height: 1.15; }
.detail-card p { margin: 0; color: #666; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-strip article {
  padding: 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf4, #fff);
  border: 1px solid rgba(23,23,23,.06);
}
.metric-strip strong { display: block; font-size: 26px; line-height: 1.1; }
.metric-strip span { display: block; margin-top: 6px; color: #777; font-size: 13px; }
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { position: relative; padding: 9px 0 9px 24px; color: #555; border-bottom: 1px dashed rgba(23,23,23,.1); }
.list-check li:last-child { border-bottom: 0; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: #00865f; font-weight: 900; }
.stage-grid { display: grid; gap: 16px; }
.stage-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fffef8);
  border: 1px solid rgba(23,23,23,.08);
}
.stage-card header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.stage-card h3 { margin: 0; font-size: 24px; }
.stage-card .stage-age { color: #9a6d00; font-size: 13px; font-weight: 900; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stage-tags span,
.material-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  font-size: 12px;
  color: #555;
}
.material-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.path-table { display: grid; gap: 12px; }
.path-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf5, #fff);
  border: 1px solid rgba(23,23,23,.08);
}
.path-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 14px;
}
.path-row p { margin: 0; }
.split-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-cta-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1d1d1d, #0f0f0f);
}
.detail-cta-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,212,0,.18);
}
.detail-cta-card p { color: #bdbdbd; }
.detail-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.detail-mini-note { color: #8b8b8b; font-size: 13px; }

@media (max-width: 1120px) {
  .detail-hero-grid,
  .detail-layout { grid-template-columns: 1fr; }
  .detail-hero-copy p { max-width: none; }
}

@media (max-width: 680px) {
  .program-actions { gap: 10px; }
  .program-detail-link { width: 100%; justify-content: center; }
  .inner-hero { padding: 60px 0 46px; }
  .detail-hero-visual { min-height: 360px; }
  .detail-hero-photo { inset: 34px 14px 0 58px; }
  .detail-hero-card.top { width: 42%; height: 36%; }
  .detail-hero-card.bottom { width: 46%; height: 29%; }
  .detail-hero-mascot { width: 86px; top: 2px; }
  .detail-card { padding: 22px; border-radius: 24px; }
  .metric-strip,
  .split-pair { grid-template-columns: 1fr; }
  .path-row { grid-template-columns: 1fr; }
}

/* ===== 2026 refined visual optimization ===== */
html { scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { letter-spacing: -.03em; }
p, li { line-height: 1.78; }
.site-nav a,
.footer-grid a,
.text-link,
.program-detail-link { line-height: 1.4; }
.section-heading,
.split-heading { gap: 18px; }
.section-heading p,
.hero-lead,
.about-story p,
.book-copy p,
.outcomes-copy p,
.faq-title p,
.detail-hero-copy p,
.detail-card p,
.detail-card li,
.accordion-panel p,
.final-cta p {
  max-width: 62ch;
}
.section-heading.center p { margin-inline: auto; }
.about-story p,
.program-body p,
.book-copy p,
.final-cta p,
.detail-card p { color: #636363; }
.hero-card,
.gallery-item,
.program-photo,
.campus-gallery figure,
.detail-hero-photo,
.detail-hero-card,
.zone-image,
.teacher-photo {
  overflow: hidden;
}
.hero-card img,
.program-photo img,
.campus-gallery img,
.detail-hero-photo img,
.detail-hero-card img,
.zone-image,
.teacher-photo img,
.campus-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-main-photo { border-radius: 32px; }
.hero-kids-photo,
.hero-class-photo,
.detail-hero-card.top,
.detail-hero-card.bottom { box-shadow: 0 20px 60px rgba(20, 20, 20, .16); }
.program-grid { align-items: stretch; }
.program-card { height: 100%; }
.program-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.program-body ul { margin: 0 0 auto; }
.program-body li + li { margin-top: 4px; }
.program-photo { aspect-ratio: 16 / 10; }
.program-photo img { transition: transform .45s ease; }
.program-card:hover .program-photo img { transform: scale(1.04); }
.book-system {
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
}
.book-copy h3 {
  max-width: 14ch;
  margin-bottom: 14px;
}
.book-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.book-stack figure {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}
.book-stack img {
  aspect-ratio: 3 / 4.2;
  object-fit: contain;
}
.book-stack figcaption {
  margin-top: 10px;
  min-height: 34px;
  line-height: 1.35;
}
.gallery {
  grid-auto-rows: 210px;
  gap: 18px;
}
.gallery-item { border-radius: 26px; }
.campus-gallery {
  align-items: stretch;
  gap: 18px;
}
.campus-gallery figure {
  height: auto;
  aspect-ratio: 4 / 3;
}
.campus-gallery figure:first-child { aspect-ratio: 1.08 / 1; }
.campus-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(23,23,23,.08);
  border-radius: 22px;
  background: #fff;
}
.campus-note strong { font-size: 16px; }
.campus-note span { color: #666; }
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.footer-grid { align-items: start; }
.footer-grid h3 { margin: 0 0 14px; }
.footer-grid a,
.footer-grid p { margin: 8px 0; color: #666; }
.footer-grid a:hover { color: #111; }
.final-cta-inner { align-items: center; }
.final-cta h2 {
  max-width: 18ch;
}
.detail-hero-copy p { font-size: 17px; }
.detail-card h2 { font-size: clamp(28px, 3.1vw, 38px); }
.detail-card h3 { font-size: 22px; }
.metric-strip article,
.stage-card,
.path-row,
.teacher-card,
.campus-zones .detail-card,
.campus-detail-gallery figure,
.teacher-photo {
  box-shadow: 0 14px 36px rgba(31, 26, 10, .06);
}
.material-tags span,
.stage-tags span {
  background: #f7f7f7;
  border: 1px solid rgba(23,23,23,.06);
}
.campus-zones,
.teacher-grid,
.teacher-showcase,
.campus-detail-gallery {
  display: grid;
  gap: 18px;
}
.campus-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zone-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  margin-bottom: 18px;
}
.campus-detail-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.campus-detail-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}
.campus-detail-gallery img { aspect-ratio: 4 / 3; }
.campus-detail-gallery figcaption {
  padding: 14px 16px 18px;
  color: #555;
}
.teacher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teacher-card {
  padding: 26px 22px;
  border: 1px solid rgba(23,23,23,.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fffef8);
}
.teacher-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #171717;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.teacher-card h3 { margin: 0 0 10px; }
.teacher-card p { margin: 0; color: #666; }
.teacher-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.teacher-photo {
  margin: 0;
  border-radius: 24px;
  background: #fff;
}
.teacher-photo img { aspect-ratio: 4 / 3; }
.teacher-photo figcaption {
  padding: 16px 18px 18px;
}
.teacher-photo strong { display: block; margin-bottom: 6px; }
.teacher-photo span { color: #666; }

@media (max-width: 1120px) {
  .book-system { grid-template-columns: 1fr; }
  .book-copy h3,
  .final-cta h2 { max-width: none; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campus-zones,
  .campus-detail-gallery,
  .teacher-showcase { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(42px, 9vw, 60px); }
  .hero-lead,
  .detail-hero-copy p { font-size: 16px; }
  .section-heading h2,
  .detail-hero-copy h1,
  .detail-card h2 { line-height: 1.1; }
  .book-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .campus-gallery { grid-template-columns: 1fr; }
  .campus-gallery figure,
  .campus-gallery figure:first-child { aspect-ratio: 4 / 3; }
  .teacher-grid { grid-template-columns: 1fr 1fr; }
  .section-actions .btn { min-width: 0; }
}

@media (max-width: 680px) {
  p, li { line-height: 1.68; }
  .section-heading p,
  .hero-lead,
  .about-story p,
  .book-copy p,
  .outcomes-copy p,
  .faq-title p,
  .detail-hero-copy p,
  .detail-card p,
  .detail-card li,
  .accordion-panel p,
  .final-cta p { max-width: none; }
  .hero-main-photo { border-radius: 24px; }
  .section-actions,
  .detail-cta-actions { gap: 10px; }
  .section-actions .btn,
  .detail-cta-actions .btn { width: 100%; justify-content: center; }
  .book-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-stack figcaption { min-height: 0; }
  .gallery { grid-auto-rows: 220px; }
  .campus-zones,
  .campus-detail-gallery,
  .teacher-showcase,
  .teacher-grid { grid-template-columns: 1fr; }
  .zone-image,
  .campus-detail-gallery img,
  .teacher-photo img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .final-cta h2 { white-space: normal; }
}

@media (max-width: 480px) {
  .book-system,
  .detail-card,
  .stage-card,
  .path-row,
  .teacher-card,
  .campus-note { border-radius: 20px; }
  .book-copy h3 { font-size: 26px; }
  .book-stack { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .teacher-photo figcaption,
  .campus-detail-gallery figcaption { padding: 14px 14px 16px; }
}

/* ===== critical layout corrections after visual audit ===== */
.hero-title {
  margin: 24px 0 22px;
  font-size: clamp(50px, 5.15vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero-title .hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.hero-title .hero-line + .hero-line { margin-top: .12em; }
.hero-title span::after { content: none; }
.hero-title .hero-emphasis { position: relative; z-index: 1; }
.hero-title .hero-emphasis::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.05em;
  right: -.08em;
  bottom: .05em;
  height: .18em;
  border-radius: .05em;
  background: var(--yellow);
  transform: rotate(-.6deg);
}
.program-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.program-detail-link {
  min-height: 46px;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  background: #171717;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}
.program-detail-link:hover { background: #000; color: #fff; transform: translateY(-2px); }
.program-actions .text-link { margin: 0; white-space: nowrap; }
.course-detail-hub {
  margin-top: 34px;
  padding: 30px;
  border-radius: 30px;
  color: #fff;
  background: radial-gradient(circle at 92% 18%, rgba(255,212,0,.18), transparent 24%), linear-gradient(135deg, #1f1f1f 0%, #101010 74%);
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
}
.course-detail-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.course-detail-head .section-kicker { color: var(--yellow); }
.course-detail-head h3 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; }
.course-detail-head p { margin: 0; max-width: 54ch; color: #bdbdbd; }
.course-detail-hub .detail-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.course-detail-hub .detail-link-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: #fff;
  box-shadow: none;
}
.course-detail-hub .detail-link-card:hover { border-color: rgba(255,212,0,.7); background: rgba(255,255,255,.11); }
.course-detail-hub .detail-link-card small { color: var(--yellow); }
.course-detail-hub .detail-link-card span { color: #cfcfcf; }
.course-detail-hub .detail-link-card b { display: block; margin-top: 14px; color: #fff; font-size: 13px; }
.book-title { max-width: none !important; font-size: clamp(29px, 2.75vw, 42px) !important; line-height: 1.18 !important; }
.book-title span { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.book-title span + span { margin-top: .18em; }
.campus-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.campus-gallery figure,
.campus-gallery figure:first-child { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 28px; }
.campus-gallery figcaption {
  inset: auto 14px 14px;
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.campus-footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(23,23,23,.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31,26,10,.05);
}
.campus-footer-panel .campus-note { display: block; flex: 1 1 auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.campus-footer-panel .campus-note strong { display: block; margin-bottom: 5px; font-size: 17px; }
.campus-footer-panel .campus-note span { display: block; color: #666; }
.campus-actions { display: flex; flex: 0 0 auto; gap: 10px; align-items: center; }
.campus-actions .btn { min-height: 46px; }
@media (max-width: 1120px) {
  .course-detail-head { grid-template-columns: 1fr; gap: 12px; }
  .course-detail-head p { max-width: 64ch; }
  .course-detail-hub .detail-links { grid-template-columns: 1fr 1fr 1fr; }
  .book-title { font-size: clamp(30px, 4.2vw, 40px) !important; }
}
@media (max-width: 900px) {
  .hero-title { font-size: clamp(46px, 8vw, 62px); }
  .program-actions { grid-template-columns: 1fr; }
  .program-actions .text-link { justify-content: center; }
  .course-detail-hub .detail-links { grid-template-columns: 1fr; }
  .course-detail-hub .detail-link-card { min-height: 0; }
  .campus-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .campus-gallery figure,
  .campus-gallery figure:first-child { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .hero-title { font-size: clamp(38px, 10.4vw, 48px); line-height: 1; letter-spacing: -.055em; }
  .course-detail-hub { padding: 24px 20px; border-radius: 24px; }
  .course-detail-head { padding-bottom: 18px; }
  .book-title { font-size: clamp(25px, 7.2vw, 32px) !important; }
  .campus-gallery { grid-template-columns: 1fr; }
  .campus-footer-panel { align-items: stretch; flex-direction: column; gap: 16px; }
  .campus-actions { width: 100%; }
  .campus-actions .btn { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(36px, 10.2vw, 42px); }
  .book-title { font-size: 22px !important; }
  .campus-actions { flex-direction: column; }
  .campus-actions .btn { width: 100%; }
}

/* ===== course level hierarchy corrections ===== */
.level-order-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(23,23,23,.08);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7cc, #fff);
  box-shadow: 0 12px 30px rgba(31,26,10,.05);
}
.level-order-note strong { margin-right: 4px; }
.level-order-note span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.level-order-note i { color: #b68400; font-style: normal; font-weight: 900; }
.level-row.level-highest,
.level-card.level-highest {
  border-color: rgba(255,184,0,.46);
  background: linear-gradient(135deg, #fff9dc, #fff);
}
.level-pill {
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  line-height: 1.1;
}
.level-pill small {
  font-size: 10px;
  font-weight: 700;
  color: #ffd400;
}
.level-row p strong { color: #171717; }
@media (max-width: 680px) {
  .level-order-note { align-items: flex-start; padding: 14px; }
  .level-order-note strong { width: 100%; }
  .level-order-note i { display: none; }
  .level-order-note span { font-size: 12px; }
}
