/* ============================================================
   Wisdom High School — site framework
   Palette: cream / ink / navy / gold
   Type: Source Serif 4 (display) + Inter (UI & body)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #14110c;
  --ink-2: #3b352b;
  --muted: #6f6759;
  --line: rgba(20, 17, 12, .14);
  --line-soft: rgba(20, 17, 12, .08);
  --cream: #faf7f0;
  --cream-2: #f2ebdd;
  --navy: #0f2740;
  --navy-2: #0a1b2e;
  --gold: #b28e52;
  --gold-2: #96753d;

  --serif: "EB Garamond Variable", "EB Garamond", Garamond, "Source Serif 4 Variable", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --pad: clamp(20px, 4.5vw, 64px);
  --maxw: 1280px;
  --header-h: 132px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--cream); padding: 12px 18px; z-index: 300; }
.skip:focus { left: 12px; top: 12px; }

/* ---------------- eyebrow ---------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--light { color: var(--gold); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border: 1px solid transparent;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.link:hover { color: var(--gold-2); border-color: var(--gold-2); }
.link .ar { transition: transform .25s var(--ease); }
.link:hover .ar { transform: translateX(4px); }

/* ---------------- header ---------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s;
}
.header.is-solid {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  height: var(--header-h)
}
.header .top_box{
  text-align: right;
  padding:5px 0;
  max-width: var(--maxw);
  margin-inline: auto;
  font-size: 14px;
  /*background:#f3f5fa;*/
  color: #333;
  border-bottom:1px solid #ccc;
  padding-inline: var(--pad);
}
.header .wrap {
  /*height: var(--header-h);*/
  display: grid;
  grid-template-columns: 226px 1fr;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position:relative;
}
.brand { justify-self: start; }
.header .brand { position: absolute; left: clamp(16px, 2vw, 30px); /*top: 0; height: var(--header-h);*/ z-index: 101; }
.header .wrap > nav { grid-column: 3; justify-self: start; }
.burger { grid-column: 3; }
.nav { justify-self: center; }
.burger { justify-self: end; }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; flex: 0 0 auto; }
.brand__crest { width: 80px; height: auto; flex: none; display: block; }
.brand__name {
  font-family: var(--sans); font-size: 1.125rem; font-weight: 500;
  line-height: 1.1; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; /*text-align: center;*/
}
.brand__sub {
  display: block;
  font-family: "STXingkai", "华文行楷", "KaiTi", "STKaiti", "Kaiti SC", var(--sans);
  font-size: 2rem; font-weight: 400;
  letter-spacing: .08em; text-transform: none; opacity: .92; margin-top: 10px;
}

.nav { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 36px 0;
  font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: inherit; position: relative; white-space: nowrap;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 28px; height: 1px;
  background: var(--gold); transition: right .3s var(--ease);
}
.nav > li > a:hover::after, .nav > li.is-active > a::after { right: 0; }

.menu {
  position: absolute; top: 100%; left: -20px; min-width: 268px;
  background: var(--cream); color: var(--ink);
  border-top: 2px solid var(--gold);
  box-shadow: 0 30px 60px rgba(10, 20, 30, .14);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav > li:hover > .menu,
.nav > li:focus-within > .menu,
.nav > li.is-open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  display: block; padding: 10px 22px;
  font-size: .8125rem; letter-spacing: .01em; color: var(--ink-2);
}
.menu a:hover { background: var(--cream-2); color: var(--gold-2); }

.burger {
  display: none; width: 46px; height: 46px; background: transparent;
  border: 1px solid currentColor; color: inherit; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 1px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  display: none; position: fixed; inset: var(--header-h) 0 auto 0; bottom: 0;
  background: var(--cream); z-index: 95; overflow-y: auto; padding: 8px 0 40px;
}
.drawer.is-open { display: block; }
.drawer details { border-bottom: 1px solid var(--line-soft); }
.drawer summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad); font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
  list-style: none; cursor: pointer;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--gold-2); font-size: 1rem; }
.drawer details[open] summary::after { content: "–"; }
.drawer .sub { padding: 0 0 14px; }
.drawer .sub a { display: block; padding: 9px var(--pad) 9px calc(var(--pad) + 18px); font-size: .9375rem; color: var(--muted); }
.drawer > a {
  display: block; padding: 16px var(--pad); font-family: var(--serif); font-size: 1.25rem;
  color: var(--ink); border-bottom: 1px solid var(--line-soft);
}

/* ---------------- hero ---------------- */
.hero {
  text-align: left;
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
  justify-content: flex-start;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: none;
}
.hero__inner { position: relative; z-index: 2; width: 100%; margin-top: clamp(20px, 8vh, 90px); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 22ch;
  margin: 0 0 38px;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px rgba(8, 14, 22, .58);
  text-shadow: 0 2px 10px rgba(8, 14, 22, .25);
}
.hero__actions { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.hero .btn--navy { border-color: rgba(255, 255, 255, .32); }

/* ---------------- photo placeholders ---------------- */
.ph { position: relative; overflow: hidden; background: var(--cream-2); isolation: isolate; }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 15% 5%, rgba(255, 250, 240, .55), transparent 55%),
    radial-gradient(90% 90% at 85% 95%, rgba(15, 39, 64, .55), transparent 62%),
    linear-gradient(158deg, #d9c8ab 0%, #b39269 52%, #7d5a3f 100%);
}
.ph::after {
  content: ""; position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .2; mix-blend-mode: multiply;
}
.ph--dark::before {
  background:
    radial-gradient(90% 80% at 62% 22%, rgba(226, 196, 150, .42), transparent 58%),
    radial-gradient(110% 100% at 20% 88%, rgba(10, 22, 34, .86), transparent 68%),
    linear-gradient(172deg, #23303c 0%, #2a2a25 46%, #131a1f 100%);
}
.ph--sage::before {
  background:
    radial-gradient(120% 100% at 20% 10%, rgba(250, 246, 236, .45), transparent 55%),
    radial-gradient(80% 80% at 85% 92%, rgba(20, 30, 24, .55), transparent 60%),
    linear-gradient(150deg, #c3c4ad 0%, #86907a 45%, #3d4f42 100%);
}
.ph--cool::before {
  background:
    radial-gradient(120% 100% at 25% 8%, rgba(245, 244, 238, .42), transparent 55%),
    radial-gradient(90% 90% at 80% 95%, rgba(18, 24, 34, .55), transparent 60%),
    linear-gradient(160deg, #c9cdcd 0%, #8a949b 48%, #45505a 100%);
}
.ph--gold::before {
  background:
    radial-gradient(110% 90% at 30% 10%, rgba(255, 246, 226, .55), transparent 55%),
    radial-gradient(90% 90% at 80% 92%, rgba(60, 40, 16, .5), transparent 62%),
    linear-gradient(155deg, #d8bd8e 0%, #b08b55 48%, #6d4f2c 100%);
}
.ph__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: .5rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 250, 240, .72); display: flex; align-items: center; gap: 8px;
}
.ph__cap::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .7; }

/* ---------------- generic section ---------------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tint { background: var(--cream-2); }

.sec-head {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
  margin-bottom: clamp(40px, 5vw, 68px);
}
.sec-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.5rem); line-height: 1.02; letter-spacing: -.025em; }
.sec-head p { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.sec-head .eyebrow { margin-bottom: 20px; }

/* ---------------- heads / welcome ---------------- */
.heads { display: grid; grid-template-columns: .64fr 1.36fr; gap: clamp(32px, 5vw, 84px); align-items: start; }
.heads__figure { margin: 0; }
.heads__figure { display: flex; flex-direction: column; }
.heads__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 420px; object-fit: cover; object-position: 50% 6%; display: block; mix-blend-mode: multiply; }
.heads__figure figcaption { margin-top: 12px; font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.heads h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.06; margin-bottom: 26px; }
.heads p { font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.62; color: var(--ink-2); margin-bottom: 1.05em; max-width: 58ch; }
.heads__sig { margin: 30px 0 26px; display: flex; align-items: center; gap: 14px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.heads__sig::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* ---------------- pillars ---------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
.pillar { padding-top: 22px; border-top: 1px solid var(--line); }
.pillar__n { display: block; font-family: var(--serif); font-size: .8125rem; letter-spacing: .1em; color: var(--gold-2); margin-bottom: 18px; }
.pillar h3 { font-size: 1.375rem; margin-bottom: 12px; }
.pillar p { font-size: .9375rem; line-height: 1.62; color: var(--ink-2); }

/* ---------------- values carousel ---------------- */
.values { background: var(--navy); color: #fff; }
.values__head { text-align: center; padding: clamp(56px, 7vw, 92px) 0 clamp(30px, 4vw, 48px); }
.values__head h2 {
  color: #fff; font-size: clamp(2rem, 3.4vw, 3.15rem);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.values__head .sub { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--gold); }

.values__stage { position: relative; height: min(56.25vw, 840px); overflow: hidden; }
.value { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease); pointer-events: none; }
.value.is-active { opacity: 1; pointer-events: auto; }
.value__media { position: absolute; inset: 0 3vw; background: var(--navy); }
.value__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 34, .55) 0%, rgba(10, 22, 34, .18) 55%, rgba(10, 22, 34, 0) 100%);
}
.value__card {
  position: absolute; left: clamp(16px, 4vw, 72px); top: clamp(44px, 12%, 150px);
  width: min(520px, 44vw); color: var(--ink);
  background: #fff;
  padding: clamp(28px, 3vw, 44px) clamp(26px, 3vw, 44px) clamp(22px, 2.4vw, 30px);
  box-shadow: 0 26px 64px rgba(4, 12, 22, .28);
  display: flex; flex-direction: column;
  min-height: clamp(400px, 44vh, 540px);
}
.value__card::before {
  content: ""; position: absolute; inset: -11px;
  border: 1px solid rgba(255, 255, 255, .55); pointer-events: none;
}
.value__badge {
  position: absolute; top: -20px; right: 26px;
  width: 44px; height: 52px;
}
.value__badge svg { width: 100%; height: 100%; display: block; }
.value__card h3 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1; margin-bottom: 18px; }
.value__card p { font-size: .9375rem; line-height: 1.72; color: var(--ink-2); }
.value__nav {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: clamp(28px, 4vw, 48px);
}
.value__count {
  margin-left: auto; font-size: .625rem; letter-spacing: .2em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.vbtn {
  background: #fff; border: 1px solid var(--navy); color: var(--navy);
  padding: 14px 30px; font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.vbtn:hover { background: var(--navy); color: #fff; }
.vbtn--solid { background: var(--navy); color: #fff; }
.vbtn--solid:hover { background: var(--navy-2); border-color: var(--navy-2); }

/* ---------------- news ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.news-card { position: relative; display: block; overflow: hidden; background: var(--cream-2); }
.news-card .ph { aspect-ratio: 16 / 11; transition: transform .7s var(--ease); }
.news-card:hover .ph { transform: scale(1.04); }
.news-card__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(15, 39, 64, .93);
  color: #fff; padding: 20px 22px; min-height: 104px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.news-card__bar h3 {
  color: #fff; font-family: var(--sans); font-size: .8125rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1.5;
}
.news-card__ic { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.news-more { margin-top: 44px; text-align: center; }

/* ---------------- inner page ---------------- */
.page-hero { padding: calc(var(--header-h) + 76px) 0 clamp(48px, 6vw, 76px); background: var(--cream-2); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.025em; }
.page-hero .lead { margin-top: 20px; max-width: 62ch; color: var(--ink-2); font-size: 1.0625rem; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(250, 247, 240, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 9px 16px; border: 1px solid var(--line);
  font-size: .75rem; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.subnav a:hover { border-color: var(--ink); }
.subnav a.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

.block-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.block-head .num { font-family: var(--serif); font-size: .8125rem; letter-spacing: .12em; color: var(--gold-2); }
.block-head h2 { font-size: clamp(1.75rem, 2.7vw, 2.4rem); line-height: 1.1; }

.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.two-col .ph { aspect-ratio: 5 / 4; }

.prose { max-width: 66ch; }
.prose p { font-size: 1.0625rem; line-height: 1.72; margin-bottom: 1.1em; }
.prose h3 { font-size: 1.25rem; margin: 34px 0 10px; }

.todo { border: 1px dashed rgba(20, 17, 12, .28); background: rgba(255, 255, 255, .45); padding: 26px 30px; }
.todo__label { font-size: .5625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.todo__note { margin: 0; font-size: .9375rem; color: var(--muted); max-width: 64ch; }

.quote { border-left: 2px solid var(--gold); padding-left: 30px; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.4; color: var(--ink); max-width: 40ch; }

/* ---------------- footer ---------------- */
.footer { background: var(--navy); color: rgba(250, 247, 240, .7); padding: clamp(56px, 7vw, 84px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) auto; gap: clamp(24px, 3vw, 48px); padding-bottom: 44px; }
.footer__logos { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.footer__logos img { display: block; width: auto; height: auto; }
.footer__logos img:nth-child(1) { width: 130px; }
.footer__logos img:nth-child(2) { width: 146px; }
.footer__logos img:nth-child(3) { width: 134px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__logos { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.footer .brand { color: var(--cream); }
.footer .brand__crest { width: 74px; }
.footer .brand__sub { opacity: .5; }
.footer p { font-size: .875rem; line-height: 1.7; }
.footer h4 { font-family: var(--sans); font-size: .5625rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(250, 247, 240, .45); font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: .875rem; color: rgba(250, 247, 240, .7); transition: color .2s; }
.footer li a:hover { color: var(--gold); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .6875rem; color: rgba(250, 247, 240, .45);
}

/* ---------------- reveal ---------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------------- responsive ---------------- */
@media (max-width: 1260px) {
  .nav { gap: 16px; }
  .nav > li > a { font-size: .625rem; letter-spacing: .1em; }
}

@media (max-width: 1120px) {
  :root { --header-h: 84px; }
  /*.burger { grid-column: 2; }*/
  .nav { display: none; }
  .burger { display: flex; }
  .hero { min-height: min(78vh, 760px); }
  .sec-head, .heads, .two-col { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .value__card { width: min(480px, 60vw); }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .brand__name { font-size: 1rem; }
  .brand__crest { width: 56px; height: auto; }
  .brand__sub { font-size: 1.25rem; }
  .hero { min-height: min(72vh, 620px); padding-top: calc(var(--header-h) + 24px); }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.8rem); margin-bottom: 30px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .pillars { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card:last-child { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }

  .values__stage { height: auto; }
  .value { position: relative; display: none; }
  .value.is-active { display: block; }
  .value__media { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .value__media::after { background: linear-gradient(180deg, rgba(10,22,34,0) 40%, rgba(10,22,34,.35) 100%); }
  .value__card { position: relative; left: auto; top: auto; transform: none; width: 100%; box-shadow: none; min-height: 0; }
  .value__badge { width: 34px; height: 40px; top: -14px; right: 18px; }
  .subnav { top: var(--header-h); }
}

/* ---------------- tiles / steps / value list ---------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.tile { border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 30px); background: rgba(255, 255, 255, .55); }
.tile h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tile p { font-size: .9375rem; color: var(--muted); line-height: 1.6; }
.tile .ph { aspect-ratio: 4 / 3; margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.step { padding-top: 18px; border-top: 1px solid var(--line); }
.step span { font-family: var(--serif); font-size: .8125rem; letter-spacing: .12em; color: var(--gold-2); }
.step h3 { font-size: 1.0625rem; margin: 10px 0 8px; }
.step p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 56px); margin-top: 48px; }
.value-item { padding-top: 18px; border-top: 1px solid var(--line); }
.value-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value-item p { font-size: .9375rem; color: var(--muted); line-height: 1.62; }

@media (max-width: 1260px) {
  .nav { gap: 16px; }
  .nav > li > a { font-size: .625rem; letter-spacing: .1em; }
}

@media (max-width: 1120px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
}

/* centered section head (values / news) */
.sec-head--center { display: block; text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head--center h2 {
  text-transform: uppercase; letter-spacing: .16em; font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.2;
}
.sec-head--center .sub {
  margin-top: 12px; font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--gold-2);
}
@media (max-width: 1120px) {
  .header .wrap { grid-template-columns: 1fr auto; }
}

/* the Heads' letter */
.heads p strong { font-weight: 600; color: var(--ink); }
.heads__close {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.7;
  color: var(--ink-2);
}
.heads__close strong { font-weight: 600; color: var(--ink); }


/* hero: italic 'for' */
.hero h1 em { font-style: italic; }


/* values: photographic backgrounds */
.value__media img { width: 100%; height: 100%; object-fit: contain; display: block; }


/* visible education: question line + closing line */
.pillar__q {
  font-family: var(--serif); font-style: italic; font-size: .9375rem;
  color: var(--gold-2); margin: -2px 0 12px; line-height: 1.4;
}
.pillars__close {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6; color: var(--ink-2); max-width: 78ch;
}




/* homepage: every student has a plan */
.plan-feature {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.plan-feature h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.06;
  margin-bottom: 22px;
}
.plan-feature__lead {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 30px;
  max-width: 46ch;
}
.plan-feature__media { margin: 0; }
.plan-feature__media a { display: block; }
.plan-feature__media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(10, 20, 30, .12);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.plan-feature__media a:hover img {
  box-shadow: 0 30px 70px rgba(10, 20, 30, .18);
  transform: translateY(-3px);
}
.plan-feature__media figcaption {
  margin-top: 14px;
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .plan-feature { grid-template-columns: 1fr; }
}


/* academic pathways list */
.pathways {
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 4vw, 56px);
}
.pathway {
  display: grid;
  grid-template-columns: 46px minmax(200px, 300px) 1fr;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.pathway__n {
  font-family: var(--serif); font-size: .8125rem; letter-spacing: .1em;
  color: var(--gold-2); padding-top: 3px;
}
.pathway h3 {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 600; color: var(--ink); margin: 0; padding-top: 1px;
  line-height: 1.3;
}
.pathway p {
  font-size: .9375rem; line-height: 1.66; color: var(--ink-2);
  margin: 0; max-width: 70ch;
}

@media (max-width: 900px) {
  .pathway { grid-template-columns: 34px 1fr; row-gap: 10px; }
  .pathway p { grid-column: 1 / -1; }
}


/* about: mission photo */
.mission-figure { margin: 0; }
.mission-figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
}


/* photo figures inside two-column blocks */
.photo-figure { margin: 0; }
.photo-figure img,
.two-col figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
}


/* ---------------- leadership & teachers ---------------- */
.leaders {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.2vw, 48px);
  margin-bottom: clamp(56px, 7vw, 90px);
}
.leader__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  display: block; background: var(--cream-2);
}
.leader h3 { font-size: 1.125rem; margin: 16px 0 4px; line-height: 1.25; }
.leader__role {
  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 10px; line-height: 1.5;
}
.leader__bio {
  font-size: .875rem; line-height: 1.6; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 11;
  line-clamp: 11; overflow: hidden;
}
.leader.is-open .leader__bio {
  display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible;
}
.leader__more {
  margin-top: 10px; padding: 0 0 2px; background: none; border: 0;
  border-bottom: 1px solid rgba(20, 17, 12, .25);
  font-family: var(--sans); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); cursor: pointer;
}
.leader__more:hover { border-bottom-color: var(--gold-2); }
.leader__more[hidden] { display: none; }

.teachers { border-top: 1px solid var(--line); padding-top: clamp(36px, 4vw, 56px); }
.teachers__head h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.teachers__tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--muted);
  letter-spacing: 0; white-space: nowrap;
}

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 clamp(28px, 3vw, 40px); }
.tab {
  padding: 13px 24px; border: 1px solid var(--line); background: transparent;
  font-family: var(--sans); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 2.6vw, 32px) clamp(16px, 1.8vw, 24px); }
.teacher-grid[hidden] { display: none; }
.teacher__photo {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; object-position: 50% 18%;
  background: linear-gradient(155deg, #f2ece0, #e3d9c9);
  border: 1px solid var(--line-soft);
  display: block; margin-bottom: 16px;
}
.teacher h3 { font-size: 1rem; margin: 12px 0 3px; line-height: 1.3; }
.teacher__role {
  font-size: .5625rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 8px;
}
.teacher__bio {
  font-size: .8125rem; line-height: 1.6; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  line-clamp: 3; overflow: hidden;
}
.teacher.is-open .teacher__bio {
  display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible;
}
.teacher__more {
  margin-top: 8px; padding: 0 0 2px; background: none; border: 0;
  border-bottom: 1px solid rgba(20, 17, 12, .25);
  font-family: var(--sans); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); cursor: pointer;
}
.teacher__more:hover { border-bottom-color: var(--gold-2); }
.teacher__more[hidden] { display: none; }

@media (max-width: 1080px) {
  .leaders { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .leaders { grid-template-columns: 1fr; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}


/* slim page header (learning) */
.page-hero--slim { padding: calc(var(--header-h) + 34px) 0 30px; }


/* first block after a sub-nav sits closer to it */
.subnav + .section { padding-top: clamp(44px, 5vw, 68px); }


/* inline link row inside prose */
.page-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }


/* student support: wider text, smaller image */
#support .two-col { grid-template-columns: 1.18fr .82fr; }


/* credential list under a head's name */
.leader__bio--facts {
  font-size: .8125rem; line-height: 1.5;
  display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible;
}


/* two-up image row under a text block */
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(32px, 4vw, 52px); }
.figure-row .photo-figure { margin: 0; }
@media (max-width: 760px) { .figure-row { grid-template-columns: 1fr; } }


/* stacked photos beside a text column */
.figure-col { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.figure-col .photo-figure { margin: 0; }
#chinese .two-col { grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 3.4vw, 56px); }


/* ---------------- photo band behind inner page titles ---------------- */
.page-hero--photo {
  position: relative; isolation: isolate;
  background-image: url("../img/hero-band.jpg");   /* default band for pages without their own photo */
  background-size: cover; background-position: 50% 42%;
  min-height: clamp(380px, 40vw, 560px);
  display: flex; align-items: flex-start;
  padding-bottom: clamp(72px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(250,247,240,.93) 0%, rgba(250,247,240,.86) 26%,
                    rgba(250,247,240,.58) 44%, rgba(250,247,240,.16) 66%, rgba(250,247,240,0) 84%),
    linear-gradient(180deg, rgba(250,247,240,.28) 0%, rgba(250,247,240,0) 22%),
    linear-gradient(0deg, rgba(250,247,240,.9) 0%, rgba(250,247,240,0) 12%);
}
.page-hero--photo .wrap { position: relative; }


/* per-page title bands — drop a new file in assets/img/hero-<page>.jpg and it takes over */
.page-about .page-hero--photo { background-image: url("../img/hero-about.jpg"); }
.page-student-life .page-hero--photo { background-image: url("../img/hero-student-life.jpg"); background-size: auto 100%; background-position: 100% 50%; }
.page-learning .page-hero--photo { background-image: url("../img/hero-learning.jpg"); background-position: 55% 55%; }
.page-international .page-hero--photo { background-image: url("../img/hero-international.jpg"); background-position: 50% 45%; }
/* hide the edge where the photo starts, so it looks like it emerges from the cream */
.page-student-life .page-hero--photo::before {
  background:
    linear-gradient(100deg, rgba(250,247,240,1) 0%, rgba(250,247,240,1) 28%, rgba(250,247,240,.62) 46%, rgba(250,247,240,.14) 68%, rgba(250,247,240,0) 86%),
    linear-gradient(180deg, rgba(250,247,240,.26) 0%, rgba(250,247,240,0) 22%),
    linear-gradient(0deg, rgba(250,247,240,.9) 0%, rgba(250,247,240,0) 12%);
}





/* ---------------- fee tables ---------------- */
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; margin-top: 8px; }
.fee-card { margin: 0; }
.fee-card a { display: block; border: 1px solid var(--line); background: #fff; }
.fee-card img { display: block; width: 100%; height: auto; }
.fee-card figcaption {
  font-family: var(--sans); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin-top: 14px;
}
.fee-note { font-size: .8125rem; color: var(--muted); margin-top: 22px; }
@media (max-width: 820px) { .fee-grid { grid-template-columns: 1fr; } }


/* lightbox for full-size tables and photos */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(10, 12, 16, .94);
      display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; cursor: zoom-out; }
.lb img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; display: block;
          box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb__close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4);
             background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
body.lb-open { overflow: hidden; }


/* small serif sub-heading inside a prose block */
.subhead { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.6rem);
           line-height: 1.25; letter-spacing: -.01em; margin: 0 0 14px; }
.inline-link { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.inline-link:hover { color: var(--navy); }


/*分页*/
#pages{margin-top:50px;text-align: center;}
#pages a { display:inline-block; height:30px; line-height:30px; background:#fff; border:1px solid #e3e3e3; text-align:center; color:#333; padding:0 10px}
#pages a.a1 { background:url("../../images/pages.png") no-repeat; width:60px; padding:0 }
#pages a:hover { background:#9C7935; color:#fff; text-decoration:none; }
#pages span { display:inline-block; height:30px;padding:0 10px; line-height:30px; background:#9C7935; border:1px solid #9C7935; color:#fff; text-align:center; }

/*内容*/
.show-content img{max-width:100%;height: auto !important;margin:0 auto;}

/* ---------------- home hero video ---------------- */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
  opacity: 0; transition: opacity .9s ease;
}
.hero.is-video .hero__video { opacity: 1; }
.hero.is-video .hero__media img { opacity: 0; }
.hero__media img { transition: opacity .9s ease; }

/* prev / next switch */
.hero__switch { position: absolute; right: clamp(16px, 2.4vw, 34px); bottom: clamp(18px, 3vw, 36px); z-index: 3;
                display: flex; gap: 10px; }
.hero__arrow {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(20, 17, 12, .18);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .2s, border-color .2s;
}
.hero__arrow:hover { background: rgba(255, 255, 255, .92); color: var(--ink); border-color: #fff; }
.hero__sound {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(20, 17, 12, .18);
  color: #fff; cursor: pointer; backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
}
.hero__sound:hover { background: rgba(255, 255, 255, .92); color: var(--ink); border-color: #fff; }
.hero__sound .wave { display: none; }
.hero__sound.is-on .wave { display: block; }
.hero__sound.is-on .cross { display: none; }

/* ---------------- Visible Education principles (2 x 2) ---------------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 54px) clamp(32px, 5vw, 76px); }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.125rem, 1.5vw, 1.375rem);
                margin: 0 0 10px; line-height: 1.25; letter-spacing: -.01em; }
.principle__q { display: block; font-family: var(--sans); font-style: normal; font-size: .6875rem;
                letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-top: 8px; }
.principle p { font-size: .9375rem; line-height: 1.72; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }