:root {
  --ink: #182d24;
  --green: #123529;
  --dark: #102820;
  --paper: #faf8f0;
  --soft: #eeeadd;
  --gold: #ffcf57;
  --sub: #506058;
  --rule: #d7d9c9;
  --bar: 86px;
  --heading: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body { margin: 0; font-size: 1rem; line-height: 1.7; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.2; font-weight: 650; }
h2 { font-size: clamp(2.05rem, 4.1vw, 4.15rem); letter-spacing: -.075em; }
:focus-visible { outline: 3px solid #b47e00; outline-offset: 4px; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.section-pad { padding-block: clamp(64px, 8vw, 116px); }
.skip { position: fixed; top: 12px; left: 12px; padding: .5rem 1rem; background: white; z-index: 50; translate: 0 -160%; }
.skip:focus { translate: 0; }

.header { position: sticky; z-index: 20; top: 0; background: var(--paper); border-bottom: 1px solid #18332916; }
.nav { min-height: var(--bar); display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { display: inline-block; width: 132px; }
.brand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.links { display: flex; gap: clamp(17px, 3vw, 49px); }
.links a { text-decoration: none; font-size: .94rem; font-weight: 550; }
.links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.button { min-height: 47px; padding: .62rem 1.28rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 2px; text-decoration: none; font-weight: 620; font-size: .94rem; transition: background-color .2s, color .2s, border-color .2s; }
.nav-cta { justify-self: end; color: white; background: var(--green); min-height: 42px; }
.nav-cta:hover { background: #245040; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: clamp(625px, calc(100svh - var(--bar)), 1000px); color: var(--paper); background: #0b2018; overflow: clip; }
.hero-media, .hero::before { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 44%; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg,#091810a8 0%,#07140e51 37%, transparent 73%), linear-gradient(0deg,#04120eb8,transparent 22%); }
.hero-content { padding-block: 75px 115px; }
.eyebrow { font-size: .88rem; letter-spacing: .13em; font-weight: 650; display: flex; gap: .75rem; align-items: center; color: #426050; margin-bottom: 20px; }
.eyebrow span { width: 25px; height: 2px; display: block; flex: none; background: #a57817; }
.eyebrow.light { color: #faedcc; }
.eyebrow.light span { background: var(--gold); }
.hero h1 { font-size: clamp(3.2rem, 6.15vw, 7rem); line-height: 1.13; letter-spacing: -.085em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-summary { color: #f1eddf; margin-top: 25px; font-size: clamp(.95rem, 1.43vw, 1.19rem); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.yellow { background: var(--gold); color: #243114; }
.yellow:hover { background: #ffe18b; }
.outline { border-color: #ffffff75; color: #fff; background: #12251a38; }
.outline:hover { border-color: white; background: #ffffff16; }
.hero-bottom { position: absolute; inset-inline: 0; bottom: 24px; display: flex; align-items: center; justify-content: space-between; color: #f6eddc; gap: 20px; }
.hero-bottom small { font-size: .79rem; }
.hero-tools { display: flex; align-items: center; justify-content: end; gap: clamp(8px, 2vw, 21px); }
.opening-sound {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; min-width: 91px; padding: 0 9px;
  border: 1px solid #faedcc73; background: #091a13b8; color: #fff2d4;
  text-decoration: none; font-size: .85rem; line-height: 1.2; white-space: nowrap;
  transition: color .22s, background-color .22s, border-color .22s;
}
.opening-sound[hidden] { display: none; }
.opening-sound:is(:hover, [data-playing]) { border-color: var(--gold); color: var(--gold); background: #0c2a1d; }
.sound-bars { width: 13px; height: 14px; display: flex; justify-content: center; align-items: center; gap: 2px; color: var(--gold); }
.sound-bars i { width: 2px; height: 6px; border-radius: 1px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 11px; }
.sound-bars i:nth-child(3) { height: 8px; }
.opening-sound[data-playing] .sound-bars i { animation: sound-meter .6s ease-in-out infinite alternate; }
.opening-sound[data-playing] .sound-bars i:nth-child(2) { animation-delay: -.38s; }
.opening-sound[data-playing] .sound-bars i:nth-child(3) { animation-delay: -.2s; }
@keyframes sound-meter { from { transform: scaleY(.65); } to { transform: scaleY(1.22); } }
.scroll-link { display: flex; align-items: center; gap: 11px; color: inherit; font-size: .88rem; text-decoration: none; }
.scroll-link:hover { text-decoration: underline; }
.scroll-link i { width: 14px; height: 22px; border: 1px solid #f6eddc9b; border-radius: 20px; position: relative; }
.scroll-link i::after { content: ""; width: 2px; height: 6px; background: var(--gold); position: absolute; top: 4px; left: 5px; border-radius: 5px; }

.split-heading { display: grid; grid-template-columns: 1.33fr .67fr; align-items: end; gap: 48px; }
.split-heading > p, .plans-layout > div:first-child > p:last-child { color: var(--sub); max-width: 31ch; font-size: 1.08rem; line-height: 1.95; }
.course-intro { border-bottom: 1px solid #142d231f; }
.story-pin { position: relative; }
.chapter { position: relative; overflow: clip; background: var(--scene); color: var(--type); }
.chapter-start { --scene: #ebbd4f; --type: #1d3525; --marks: #193f3360; }
.chapter-build { --scene: #15382c; --type: #fff4d4; --marks: #f9df9163; }
.chapter-stage { --scene: #eadfca; --type: #243e2d; --marks: #50685169; }
.chapter-layout { display: grid; grid-template-columns: 1fr .95fr; min-height: 440px; height: 100%; align-items: center; gap: clamp(24px, 5vw, 82px); padding: 54px 0; }
.chapter-copy { position: relative; z-index: 1; }
.chapter .eyebrow { color: var(--type); }
.chapter .eyebrow span { background: var(--type); }
.chapter h3 { font-size: clamp(2.55rem, 6.8vw, 7.1rem); font-weight: 650; letter-spacing: -.105em; }
.chapter-copy > p:not(.eyebrow) { margin-top: 23px; max-width: 30ch; font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.85; }
.chapter ul { margin-top: 25px; padding: 0; display: flex; gap: .55rem; flex-wrap: wrap; list-style: none; }
.chapter li { border: 1px solid var(--marks); border-radius: 2rem; padding: .2rem .72rem; font-size: .86rem; }
.chapter-art { position: relative; isolation: isolate; display: grid; place-items: center; width: min(100%, 475px, 47svh); margin: auto; aspect-ratio: 1; }
.chapter-art i { position: absolute; width: 100%; height: 67%; border: 1px solid var(--marks); border-radius: 50%; rotate: -35deg; }
.chapter-art i:nth-child(2) { rotate: 35deg; }
.chapter-art i:nth-child(3) { rotate: 90deg; }
.chapter-build .chapter-art i { scale: .9; border-radius: 4%; width: 81%; height: 81%; }
.chapter-stage .chapter-art i { border-radius: 0; width: 95%; height: 95%; border-radius: 50% 50% 0 0; rotate: 0deg; }
.chapter-stage .chapter-art i:nth-child(2) { scale: .86; }
.chapter-stage .chapter-art i:nth-child(3) { scale: .72; }
.chapter-art strong { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-weight: 800; font-size: clamp(5rem, min(16vw, 28svh), 17rem); line-height: 1; transform: translateY(-.035em); }
.story.is-horizontal .story-pin { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); display: grid; grid-template-rows: minmax(0,1fr) auto; background: var(--dark); }
.is-horizontal .story-window { overflow: clip; }
.is-horizontal .story-track { display: flex; height: 100%; will-change: transform; }
.is-horizontal .chapter { flex: 0 0 100%; }
.story-controls { min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 4vw, 55px); color: #fff2d4; }
.story-controls[hidden] { display: none; }
.story-choices { display: flex; gap: 22px; }
.story-choices button { padding: 12px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: #dedfd2; font-size: .91rem; white-space: nowrap; }
.story-choices button[aria-current] { color: var(--gold); border-color: var(--gold); }
.story-progress { height: 2px; background: #ffffff33; }
.story-progress::before { content: ""; display: block; height: 100%; width: calc(var(--progress, 0) * 100%); background: var(--gold); }
.story-hint { font-size: .85rem; }

.plans { background: var(--soft); }
.plans-layout { display: grid; grid-template-columns: .78fr 1fr; gap: clamp(34px, 7vw, 112px); align-items: start; }
.plans-layout > div:first-child > p:last-child { margin-top: 19px; }
.plan-list { border-top: 1px solid #304c3541; }
.plan-row { display: grid; grid-template-columns: minmax(77px,.22fr) 1fr; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid #304c3541; }
.plan-row h3 { font-size: 1rem; }
.plan-row > div { display: flex; gap: 7px; flex-wrap: wrap; }
.plan-row a { background: #ffffff80; min-height: 44px; display: inline-flex; align-items: center; font-size: .91rem; padding: .25rem .72rem; border: 1px solid #314a3b2b; text-decoration: none; }
.plan-row a:hover { background: var(--green); color: #fff; }
.teacher-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 29px 18px; margin-top: 45px; }
.teacher { border-bottom: 1px solid var(--rule); }
.teacher img { width: 100%; aspect-ratio: 5/6; object-fit: cover; object-position: center 25%; background: #e3dfd1; height: auto; }
.teacher > div { display: flex; min-height: 64px; gap: 4px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 8px; }
.teacher h3 { font-size: clamp(.98rem, 2vw, 1.23rem); }
.teacher a { color: #426050; font-size: .88rem; text-underline-offset: 4px; padding-block: .5rem; }

.about { background: var(--green); color: var(--paper); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
.about h2 { font-size: clamp(3rem, 7.2vw, 7rem); }
.about-copy { color: #f0eedf; font-size: 1.07rem; line-height: 1.95; }
.about-copy > p + p { margin-top: 16px; }
.about-facts { display: flex; gap: clamp(20px, 5vw, 88px); border-top: 1px solid #f4edcb4a; margin-top: 30px; padding-top: 22px; }
.about-facts p { display: grid; }
.about-facts strong { color: var(--gold); font-size: clamp(2rem, 4.8vw, 4.7rem); letter-spacing: -.07em; line-height: 1; }
.about-facts strong span { font-size: .65em; }
.campus-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.campus-grid article { display: flex; flex-direction: column; background: #f2efe4; border-top: 3px solid #4c644f; }
.campus-photo { position: relative; overflow: hidden; margin: 0; background: #303b2b; }
.campus-photo img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .55s cubic-bezier(.2,.72,.24,1); }
.campus-photo figcaption {
  position: absolute; bottom: 10px; right: 10px; padding: 3px 7px;
  background: #101b14eb; color: #fff4d6; font-size: .79rem;
}
.campus-card-copy { flex: 1; display: flex; flex-direction: column; align-items: start; gap: 13px; padding: clamp(16px, 2.6vw, 35px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .campus-grid article:hover .campus-photo img { transform: scale(1.045); }
}
.campus-grid h3 { font-size: 1.33rem; }
.campus-grid p { color: var(--sub); margin-bottom: 10px; }
.campus-grid .button { margin-top: auto; }
.outline-dark { border-color: #355541; }
.outline-dark:hover { background: var(--green); color: #fff; }
footer { border-top: 1px solid var(--rule); }
footer .shell { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--sub); font-size: .86rem; }
footer .brand { width: 110px; }

@media (max-width: 1000px) {
  :root { --bar: 75px; }
  .shell { width: calc(100% - 64px); }
  .hero { min-height: clamp(560px, calc(86svh - var(--bar)), 810px); }
  .chapter-layout { min-height: 330px; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 42px); }
  .nav { grid-template-columns: auto 1fr auto; gap: 11px; }
  .brand { width: 112px; }
  .menu-toggle { grid-column: 3; grid-row: 1; display: grid; place-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); }
  .menu-icon { width: 20px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .nav-cta { grid-column: 2; grid-row: 1; font-size: .82rem; min-height: 40px; padding-inline: .65rem; }
  .links { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; padding: 4px 21px 12px; background: var(--paper); box-shadow: 0 12px 20px #182d2414; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .links.open, body:not(.js) .links:focus-within { opacity: 1; visibility: visible; transform: translateY(0); }
  .links a { padding: 10px 0; border-top: 1px solid var(--rule); }
  body:not(.js) .menu-toggle { display: none; }
  body:not(.js) .links { position: static; grid-column: 1 / -1; visibility: visible; opacity: 1; transform: none; box-shadow: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
  .split-heading, .plans-layout, .about-layout { grid-template-columns: 1fr; gap: 24px; }
  .teacher-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .campus-grid { grid-template-columns: 1fr; margin-top: 30px; }
}
@media (max-width: 640px) {
  .hero { min-height: max(650px, calc(100svh - var(--bar))); justify-content: end; }
  .hero-media img { object-position: center 26%; height: 63%; }
  .hero::before { background: linear-gradient(0deg,#0b2018 42%,#0b2018f8 47%,#0b201879 62%,transparent 77%), linear-gradient(90deg,#05170c4f,transparent 60%); }
  .hero-content { padding: 250px 0 83px; }
  .hero h1 { font-size: clamp(2.6rem, 10.3vw, 4rem); }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-summary { margin-top: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 22px; }
  .hero-bottom { bottom: 18px; gap: 9px; }
  .opening-sound { min-width: 76px; min-height: 44px; padding-inline: 6px; }
  .chapter-layout { grid-template-columns: minmax(0,1fr) minmax(78px,.54fr); min-height: auto; padding-block: 43px; gap: 12px; }
  .chapter h3 { font-size: clamp(1.95rem, 7.4vw, 2.7rem); }
  .chapter .eyebrow { letter-spacing: 0; gap: .45rem; font-size: .82rem; margin-bottom: 12px; }
  .chapter .eyebrow span { width: 12px; }
  .chapter-copy > p:not(.eyebrow) { margin-top: 15px; }
  .chapter ul { margin-top: 16px; gap: .35rem; }
  .chapter li { font-size: .81rem; padding-inline: .45rem; }
  .chapter-art strong { font-size: clamp(3.1rem, 13vw, 5rem); }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 31px; }
  footer .brand { width: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

/* Shared navigation and inner pages */
.header { border-bottom: 0; box-shadow: 0 1px #18332916; }
.header .brand { width: clamp(152px, 14vw, 190px); }
.links a[aria-current] { text-decoration: underline; text-decoration-color: #a57817; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.text-link { display: inline-block; width: fit-content; margin-top: 10px; font-weight: 620; text-underline-offset: .25em; }
.text-link:hover { text-decoration-thickness: 2px; }
.about .text-link { color: var(--gold); }
.site-footer .shell { min-height: 110px; }
.site-footer .brand { flex: none; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px clamp(12px, 2.5vw, 34px); }
.site-footer nav a { text-underline-offset: 4px; }
.site-footer p { flex: none; }

.sub-hero { isolation: isolate; overflow: clip; background: var(--green); color: var(--paper); }
.sub-hero .shell { padding-block: 26px clamp(42px, 6.2vw, 85px); position: relative; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(25px, 4.5vw, 62px); font-size: .88rem; color: #e4e8dd; }
.crumbs a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--gold); }
.mast-layout { display: flex; justify-content: space-between; align-items: center; position: relative; }
.sub-hero h1 { position: relative; z-index: 1; font-size: clamp(2.45rem, 5.85vw, 5.75rem); letter-spacing: -.078em; line-height: 1.13; margin-right: .08em; }
.sub-hero p:not(.eyebrow) { position: relative; z-index: 1; color: #eceee1; max-width: 47ch; margin-top: 20px; font-size: clamp(1.03rem, 1.6vw, 1.23rem); line-height: 1.85; }
.mast-mark { position: absolute; right: 5%; z-index: -1; inset-block-start: 50%; translate: 0 -50%; width: clamp(105px, 22vw, 285px); aspect-ratio: 1; border: 1px solid #eac56a63; border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
.mast-mark::before, .mast-mark::after { content: ""; position: absolute; inset: 9% -6%; border: 1px solid #eac56a63; border-radius: 50%; rotate: 39deg; }
.mast-mark::after { rotate: -39deg; }
.mast-mark span { font: 700 clamp(3rem, 11vw, 9rem)/1 "Songti SC", "Noto Serif CJK SC", "SimSun", serif; }
.catalog { display: grid; gap: clamp(34px, 4.6vw, 65px); padding-block: clamp(40px, 6vw, 88px); }
.catalog-group { display: grid; gap: 18px; }
.catalog-group h2 { font-size: clamp(1.48rem, 2.8vw, 2.1rem); letter-spacing: -.045em; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.catalog-link { display: flex; flex-direction: column; gap: 12px; min-height: 180px; text-decoration: none; background: #f1efe4; border-top: 2px solid #81937a; padding: clamp(16px, 2vw, 27px); transition: background .2s, color .2s; }
.catalog-link:hover { background: var(--green); color: #fff8e6; }
.catalog-link h3 { font-size: clamp(1.35rem, 2.6vw, 2.1rem); letter-spacing: -.04em; }
.catalog-link p { color: var(--sub); }
.catalog-link:hover p { color: #f2efdd; }
.catalog-link span { margin-top: auto; width: fit-content; text-decoration: underline; text-underline-offset: 5px; color: #345845; font-size: .92rem; font-weight: 620; }
.catalog-link:hover span { color: var(--gold); }
.site-cta { background: var(--green); color: var(--paper); padding-block: clamp(30px, 5.4vw, 66px); }
.site-cta .shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-cta h2 { font-size: clamp(1.5rem, 3.6vw, 3.15rem); }
.site-cta p { margin-top: 10px; color: #e1e8df; }
.site-cta a { flex: none; }

.course-hero .eyebrow { margin-bottom: 14px; }
.course-layout { display: grid; grid-template-columns: minmax(188px,.28fr) minmax(0,1fr); gap: clamp(25px, 5vw, 80px); padding-block: clamp(32px, 5.2vw, 76px); align-items: start; }
.course-aside { position: sticky; top: calc(var(--bar) + 25px); display: grid; gap: 24px; padding: 22px; background: #eeeee2; border: 1px solid #293d251a; }
.course-aside > a { margin-top: 0; color: #304e3c; font-size: .9rem; }
.course-jumps h2 { margin-bottom: 10px; font-size: 1rem; letter-spacing: 0; }
.course-jumps > div { display: flex; flex-wrap: wrap; gap: 6px; }
.course-jumps a { display: inline-flex; align-items: center; min-height: 36px; padding: 3px 10px; border: 1px solid #24432a32; background: var(--paper); font-size: .89rem; line-height: 1.2; text-decoration: none; }
.course-jumps a:hover, .course-jumps a[aria-current] { background: var(--green); color: #fff; }
.course-calendar { display: grid; gap: clamp(26px, 4vw, 53px); }
.month-section { scroll-margin-top: 18px; }
.month-title { display: flex; align-items: center; gap: 14px; background: #eaeede; border-top: 2px solid #5e785b; padding: 13px 14px; }
.month-section:target .month-title { border-color: #9a6811; background: #f8edc8; }
.month-title span { white-space: nowrap; display: inline-grid; place-items: center; min-width: 61px; min-height: 39px; padding-inline: 5px; font-size: 1rem; font-weight: 650; color: #fff; background: var(--green); }
.month-title h2 { font-size: clamp(1.26rem, 2.5vw, 1.8rem); letter-spacing: -.03em; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: grid; grid-template-columns: minmax(62px,.18fr) minmax(146px,.55fr) minmax(0,1fr); align-items: baseline; gap: 14px; padding: 17px 13px; border-bottom: 1px solid var(--rule); }
.lesson-list h3 { font-size: 1rem; line-height: 1.6; font-weight: 650; }
.lesson-list p { color: var(--sub); line-height: 1.7; }
.lesson-number { font-size: .88rem; color: #3f5c4c; white-space: nowrap; }

.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px, 3.8vw, 52px); padding-block: clamp(39px, 6.5vw, 87px); align-items: start; }
.teacher-profile { display: grid; grid-template-columns: 34% 1fr; align-items: start; gap: clamp(12px, 1.6vw, 24px); padding-block: 18px; border-top: 2px solid #5e785b; scroll-margin-top: 18px; }
.teacher-profile:target { background: #f8edc8; }
.teacher-profile img { width: 100%; height: auto; }
.teacher-profile h2 { font-size: clamp(1.25rem, 2.3vw, 1.8rem); letter-spacing: 0; margin-bottom: 12px; }
.teacher-profile ul { padding-left: 1.2em; color: var(--sub); }
.teacher-profile li + li { margin-top: 6px; }
.teacher-profile .text-link { font-size: .9rem; }
.about-editorial { display: grid; grid-template-columns: .8fr 1fr; align-items: start; gap: clamp(22px, 6.5vw, 100px); }
.editorial-copy { color: var(--sub); font-size: 1.06rem; line-height: 1.95; }
.editorial-copy p + p { margin-top: .8rem; }
.pillars { background: var(--soft); }
.pillars .catalog-grid { margin-top: 28px; }
.pillars article { border-top: 2px solid #5e785b; padding: 19px 12px; background: #faf8f084; }
.pillars article h3 { margin-bottom: 14px; font-size: 1.3rem; }
.pillars article p { color: var(--sub); }
.campus-directory h2 { font-size: clamp(1.6rem, 3.8vw, 2.8rem); }

@media (max-width: 1000px) {
  .mast-mark { right: 3%; }
  .teacher-profile { grid-template-columns: 1fr; }
  .teacher-profile img { max-width: 260px; aspect-ratio: 5/6; object-fit: cover; object-position: center 24%; }
  .lesson-list li { grid-template-columns: 75px minmax(0,1fr); gap: 6px 12px; }
  .lesson-list p { grid-column: 2; }
}
@media (max-width: 780px) {
  :root { --bar: 70px; }
  .header .brand { width: 140px; }
  .site-footer .shell { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding-block: 18px; }
  .site-footer nav { grid-column: 1/-1; grid-row: 2; justify-content: start; }
  .mast-mark { opacity: .28; right: 0; }
  .course-layout { grid-template-columns: minmax(0,1fr); }
  .course-aside { position: static; gap: 16px; }
  .course-jumps a { min-height: 40px; }
  .about-editorial { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .catalog-grid, .profile-grid { grid-template-columns: 1fr; }
  .catalog-link { min-height: 0; }
  .teacher-profile img { max-width: 235px; aspect-ratio: auto; }
  .site-cta .shell { align-items: start; flex-direction: column; }
  .lesson-list li { padding-inline: 8px; grid-template-columns: minmax(0,1fr); gap: 4px; }
  .lesson-list p { grid-column: auto; }
}
@media (max-width: 352px) {
  .nav { width: calc(100% - 24px); gap: 7px; }
  .header .brand { width: 128px; }
}

/* Page transitions, scroll entrances, and control feedback */
:root {
  --motion-ease: cubic-bezier(.2,.72,.24,1);
  --motion-fast: 220ms;
}
.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  pointer-events: none;
  background: #b58931;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
}
.links a { position: relative; }
.links a:hover, .links a[aria-current] { text-decoration: none; }
.links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -5px;
  height: 2px;
  background: #a57817;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-fast) var(--motion-ease);
}
.links a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
.button, .story-choices button, .plan-row a, .course-jumps a {
  transition: background-color var(--motion-fast), border-color var(--motion-fast),
              color var(--motion-fast), transform var(--motion-fast) var(--motion-ease);
}
:is(.button, .story-choices button, .plan-row a, .course-jumps a, .catalog-link):active {
  transform: translateY(1px) scale(.98);
}
.catalog-link {
  transition: background-color var(--motion-fast), color var(--motion-fast),
              transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast);
}
.catalog-link p, .catalog-link span { transition: color var(--motion-fast); }
.month-title, .teacher-profile { transition: background-color .45s var(--motion-ease), border-color .45s var(--motion-ease); }
.story-choices { position: relative; }
.story-choices::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--step-width, 0px);
  height: 2px;
  background: var(--gold);
  pointer-events: none;
  transform: translateX(var(--step-offset, 0px));
  transition: transform 350ms var(--motion-ease), width 350ms var(--motion-ease);
}
.story-choices button[aria-current] { border-color: transparent; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover:not(:active) { transform: translateY(-2px); }
  .catalog-link:hover:not(:active) { transform: translateY(-4px); box-shadow: 0 12px 26px #142d231c; }
}
@media (max-width: 780px) {
  .js .links {
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-12px);
    transition: clip-path .34s var(--motion-ease), opacity .25s,
                transform .34s var(--motion-ease), visibility 0s linear .34s;
  }
  .js .links.open {
    pointer-events: auto;
    clip-path: inset(0 0 -28px 0);
    transform: translateY(0);
    transition-delay: 0s;
  }
  .js .links a {
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity .18s, transform .26s var(--motion-ease);
  }
  .js .links.open a { opacity: 1; transform: translateY(0); }
  .js .links.open a:nth-child(2) { transition-delay: 35ms; }
  .js .links.open a:nth-child(3) { transition-delay: 70ms; }
  .js .links.open a:nth-child(4) { transition-delay: 105ms; }
  .links a::after { width: 24px; inset: auto auto 4px 0; }
  .menu-icon { transition: transform 280ms var(--motion-ease); }
  .menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .header { view-transition-name: site-header; }
  ::view-transition-group(root) { animation-duration: 390ms; }
  ::view-transition-old(root) { animation: 260ms ease-out both page-exit; }
  ::view-transition-new(root) { animation: 390ms var(--motion-ease) both page-enter; }
  ::view-transition-group(site-header) { z-index: 1; animation-duration: 220ms; }
  ::view-transition { pointer-events: none; }

  @keyframes page-exit { to { opacity: 0; transform: translateY(-9px); } }
  @keyframes page-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes text-enter { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
  @keyframes stage-focus { from { scale: 1.056; } to { scale: 1.016; } }
  @keyframes scroll-cue { from { translate: 0 0; opacity: .85; } to { translate: 0 5px; opacity: .45; } }

  .hero-media { transform: translate3d(0, var(--hero-drift, 0px), 0); }
  .hero-media img { scale: 1.016; animation: 1.25s var(--motion-ease) both stage-focus; }
  .hero-content > *, .hero-bottom, .sub-hero .crumbs, .sub-hero h1, .sub-hero p {
    animation: .65s var(--motion-ease) both text-enter;
  }
  .hero-content h1, .sub-hero h1 { animation-delay: 70ms; }
  .hero-content .hero-summary, .sub-hero p:not(.eyebrow) { animation-delay: 140ms; }
  .hero-actions { animation-delay: 210ms; }
  .hero-bottom { animation-delay: 255ms; }
  .scroll-link i::after { animation: 780ms 3 alternate ease-in-out scroll-cue; }
  :active-view-transition :is(.hero-media img, .hero-content > *, .hero-bottom, .sub-hero .crumbs, .sub-hero h1, .sub-hero p) {
    animation: none;
  }

  .scroll-reveal {
    transition: opacity .55s var(--motion-ease) var(--reveal-delay, 0s),
                translate .55s var(--motion-ease) var(--reveal-delay, 0s);
  }
  .scroll-reveal:not(.has-entered, :focus-within) { opacity: .10; translate: 0 22px; }
  .catalog-link.scroll-reveal {
    transition: opacity .55s var(--motion-ease) var(--reveal-delay, 0s),
                translate .55s var(--motion-ease) var(--reveal-delay, 0s),
                background-color var(--motion-fast), color var(--motion-fast),
                transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast);
  }
  .month-title.scroll-reveal, .teacher-profile.scroll-reveal {
    transition: opacity .55s var(--motion-ease) var(--reveal-delay, 0s),
                translate .55s var(--motion-ease) var(--reveal-delay, 0s),
                background-color .45s var(--motion-ease), border-color .45s var(--motion-ease);
  }
  .is-horizontal .chapter-copy {
    opacity: var(--chapter-opacity, 1);
    transform: translate3d(var(--chapter-offset, 0px), 0, 0);
    translate: none;
    transition: none;
  }
  .is-horizontal .chapter-art {
    opacity: var(--chapter-opacity, 1);
    transform: translate3d(var(--chapter-art-offset, 0px), 0, 0);
    translate: none;
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header::after { display: none; }
  *, *::before, *::after { transition-delay: 0s !important; animation: none !important; }
}
