@font-face {
  font-family: Inter;
  src: url('../fonts/Inter.woff2') format('woff2'),
       url('../fonts/Inter.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay.woff2') format('woff2'),
       url('../fonts/PlayfairDisplay.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --navy: #081d38;
  --navy-dark: #06172d;
  --ink: #10253a;
  --muted: #506171;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --gold: #edc88c;
  --coral: #a94536;
  --line: #d9d9ce;
  --serif: 'Playfair Display', Georgia, 'Songti SC', SimSun, serif;
  --sans: Inter, ui-sans-serif, system-ui, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --content-width: 1320px;
  --gutter: clamp(20px, 4.2vw, 72px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.75 var(--sans);
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.16; font-weight: 600; }
h1 {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 82px);
  letter-spacing: -.047em;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(35px, 3.75vw, 56px);
  letter-spacing: -.038em;
}
h3 {
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 35px);
  letter-spacing: -.022em;
}
html[lang='zh-CN'] :is(h1, h2, h3) {
  font-family: var(--sans);
  line-height: 1.3;
  letter-spacing: -.025em;
}
html[lang='zh-CN'] h1 { font-size: clamp(37px, 4.2vw, 68px); }
html[lang='zh-CN'] h2 { font-size: clamp(29px, 3.15vw, 46px); }
html[lang='zh-CN'] h3 { font-size: clamp(22px, 2.3vw, 31px); }
::selection { color: var(--navy); background: var(--gold); }
:focus-visible { outline: 3px solid #c5873f; outline-offset: 4px; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 150;
  padding: 10px 18px;
  color: var(--navy);
  background: var(--paper);
}
.container {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.section { padding-block: clamp(54px, 7vw, 105px); }
.navy { color: white; background: var(--navy); }
.cream { background: var(--cream); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: white;
  background: var(--navy);
  border-bottom: 1px solid #ffffff25;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px #06172d23; }
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
  min-height: 86px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-emblem { --emblem-size: 57px; position: relative; display: block; width: var(--emblem-size); height: var(--emblem-size); flex: 0 0 var(--emblem-size); color: var(--gold); border: 1.5px solid currentColor; border-radius: 50%; }
.emblem-book { position: absolute; inset: 25% 10% 23%; }
.emblem-book::before,
.emblem-book::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border: 1.3px solid #d6b778;
  background-color: #edddb5;
  background-image:
    repeating-linear-gradient(7deg, #8f6c350a 0 .5px, #fff8df20 .5px 1.5px, transparent 1.5px 3px),
    radial-gradient(ellipse at 28% 30%, #fff8de80, transparent 70%),
    linear-gradient(90deg, #dfc591, #f2e5c4 55%, #d1b17a);
  box-shadow: inset 0 0 4px #8b65232b;
}
.emblem-book::before { left: 0; transform: skewY(14deg); border-radius: 3px 0 0 2px; }
.emblem-book::after {
  right: 0;
  transform: skewY(-14deg);
  border-radius: 0 3px 2px 0;
  background-image:
    repeating-linear-gradient(-7deg, #8f6c350a 0 .5px, #fff8df20 .5px 1.5px, transparent 1.5px 3px),
    radial-gradient(ellipse at 72% 30%, #fff8de80, transparent 70%),
    linear-gradient(90deg, #d1b17a, #f2e5c4 45%, #dfc591);
}
.emblem-fold { position: absolute; left: 50%; top: 14%; bottom: -11%; z-index: 2; width: 1px; background: #916b3c70; }
.brand-logo { position: absolute; left: 50%; top: 49%; width: 68%; height: 43%; object-fit: contain; transform: translate(-50%, -50%); }
.brand-english { display: grid; line-height: 1; }
.brand-english strong { font: 600 29px/1 var(--serif); letter-spacing: -.027em; }
.brand-english small { margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brand-name-zh { font-size: 21px; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.25vw, 34px); margin-left: auto; }
.site-nav a { position: relative; padding-block: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--gold); }
.site-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
}
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.language-select {
  color: white;
  background: var(--navy);
  color-scheme: dark;
  border: 1px solid #ffffff44;
  border-radius: 3px;
  padding: 5px 6px;
  min-height: 34px;
  font-size: 12px;
  cursor: pointer;
}
.menu-toggle { display: none; }

.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.button {
  min-height: 52px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background .2s ease;
}
.button,
.site-nav .nav-cta,
.menu-toggle {
  color: var(--navy);
  background: var(--gold);
}
.button:hover,
.site-nav .nav-cta:hover,
.menu-toggle:hover {
  color: var(--navy);
  background: #f8dda9;
}
.link-arrow { font-size: 1.24em; font-weight: 400; line-height: 1; }
.text-link { margin-top: 23px; padding-bottom: 5px; border-bottom: 1px solid #a1814b; }
.text-link:hover { color: var(--coral); border-color: currentColor; }
.navy .text-link, .page-hero .text-link { color: var(--gold); }
.navy .text-link:hover, .page-hero .text-link:hover { color: #ffedc7; }

.home-hero, .page-hero { color: white; background: var(--navy); }
.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 700px;
}
.home-hero-image,
.home-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-hero-image { object-fit: cover; object-position: center 54%; }
.home-hero::before {
  z-index: 1;
  background: linear-gradient(90deg, #051223e0, #0512239e 27%, #05122342 42%, transparent 58%);
  content: '';
}
.home-hero-content { position: relative; z-index: 2; padding-block: 62px; }
.home-hero h1 {
  max-width: 100%;
  color: #f6bf45;
  font-size: clamp(58px, 5.8vw, 88px);
  line-height: 1.06;
  text-shadow: 0 2px 3px #04152280, 0 0 18px #04152250;
}
html[lang='zh-CN'] .home-hero h1 { font-size: clamp(38px, 4.2vw, 66px); }
.school-name-line { display: block; }
.hero-label { margin-bottom: 15px; font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; }
.hero-intro { max-width: 52ch; margin-top: 22px; }
.hero-label, .hero-intro { text-shadow: 0 1px 4px #06172d; }
.home-hero .button { min-height: 56px; margin-top: 29px; }
.home-hero .button .link-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgb(8 29 56 / 35%);
  border-radius: 50%;
}
.no-wrap { white-space: nowrap; }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  align-items: stretch;
  gap: clamp(27px, 4.3vw, 66px);
}
.page-hero-grid { padding-block: clamp(32px, 4.5vw, 64px); }
.page-hero h1 { font-size: clamp(41px, 4.8vw, 71px); }
.page-hero .photo { min-height: clamp(340px, 34vw, 475px); }
.page-lead { max-width: 56ch; margin-top: 22px; color: #e8edf1; line-height: 1.8; }
.page-intro { align-self: center; padding-block: 10px; }
.philosophy-vision {
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid #ffffff35;
}
.page-hero .philosophy-vision h2 { color: var(--gold); font-size: clamp(23px, 2.15vw, 32px); }
.philosophy-vision .page-lead { margin-top: 9px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 23px;
  color: #cbd6e0;
  font-size: 12px;
}
.breadcrumb a:hover { color: var(--gold); }

.photo { position: relative; overflow: hidden; background: #cbd3cd; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .photo img { position: absolute; inset: 0; }
.photo figcaption {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 5px 10px;
  color: white;
  background: #081d38e8;
  font-size: 12px;
  line-height: 1.5;
}
.photo-wide { aspect-ratio: 1.55; }
.photo-wide img { object-position: center; }
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
}
.section-copy { max-width: 62ch; }
.section-copy p { margin-top: 17px; color: var(--muted); }
.copy-wide { max-width: 77ch; }
.navy .section-copy h2 { color: var(--gold); }
.pathway-preview { margin: 24px 0 3px; padding: 0; list-style: none; }
.pathway-preview li { padding: 12px 0; border-top: 1px solid #ffffff3d; font-size: 15px; }
.pathway-preview li:last-child { border-bottom: 1px solid #ffffff3d; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: 32px; }
.gallery-photo { aspect-ratio: 1.27; }
.gallery-photo img { object-position: center; }
.gallery-photo figcaption { right: auto; left: 13px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.course-activities-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-activities-gallery .gallery-photo { aspect-ratio: auto; align-self: start; }
.course-activities-gallery img { height: auto; }
.course-photo-wide { grid-column: 1 / -1; width: min(100%, 980px); justify-self: center; }

.campus-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "main intro"
    "main photos"
    "outdoors outdoors";
  column-gap: clamp(28px, 6vw, 92px);
  row-gap: clamp(18px, 2vw, 30px);
}
.campus-intro { grid-area: intro; align-self: end; }
.campus-main-photo { grid-area: main; align-self: center; }
.campus-photos {
  grid-area: photos;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 22px);
}
.campus-outdoor-photos { grid-area: outdoors; margin-top: 0; }

.school-life-section > .container,
.community-life-section > .container,
.campus-showcase > .container { max-width: 1100px; }
.school-life-group { margin-top: clamp(30px, 4vw, 56px); }
.school-life-group:first-of-type { margin-top: clamp(22px, 2.6vw, 36px); }
.school-life-group > .photo-grid { margin-top: clamp(14px, 2vw, 24px); }
.campus-environment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.campus-environment-heading .text-link { margin-top: 0; }
.campus-environment-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.campus-environment-lead {
  grid-column: span 2;
  grid-row: span 2;
  align-self: center;
}
.campus-environment-gallery img { height: auto; }
.campus-video-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.3vw, 28px);
  max-width: 450px;
  margin: clamp(20px, 2.8vw, 36px) auto 0;
}
.campus-video-player { position: relative; }
.campus-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.campus-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
}
.campus-video figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}

.community-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 28px);
  margin-top: 32px;
}
.community-photo img { height: auto; }
.community-photo figcaption { right: auto; left: 13px; padding: 7px 12px; font-size: .875rem; font-weight: 600; }
.community-photo-portrait { grid-column: 4; grid-row: 1 / span 2; align-self: center; }

.showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}
.showcase-category {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: .875rem;
  font-weight: 700;
}
.showcase-story h3,
html[lang='zh-CN'] .showcase-story h3 {
  font-size: clamp(1.375rem, 2.15vw, 2rem);
  line-height: 1.5;
  letter-spacing: -.02em;
}
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(28px, 4vw, 52px);
}
.showcase-photo { aspect-ratio: 4 / 3; }
.showcase-photo a { display: block; width: 100%; height: 100%; }
.showcase-photo a:focus-visible { outline-offset: -5px; }
.showcase-photo-portrait img { object-position: center 80%; }
.showcase-gallery-hint { margin-top: 16px; color: var(--muted); font-size: .875rem; }

@media (min-width: 901px) {
  .campus-environment-gallery,
  .showcase-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.welcome-section { position: relative; display: grid; align-items: center; min-height: 360px; overflow: hidden; }
.welcome-section .photo, .welcome-section::after { position: absolute; inset: 0; }
.welcome-section .photo img { object-position: 50% 56%; }
.welcome-section::after { content: ''; background: linear-gradient(90deg, #081a2eec, #081a2eaf 60%, #081a2e36); }
.welcome-copy { position: relative; z-index: 1; padding-block: 65px; }
.welcome-copy p { max-width: 32ch; font: 500 clamp(24px, 2.9vw, 40px)/1.4 var(--serif); }
html[lang='zh-CN'] .welcome-copy p { max-width: 27ch; font-family: var(--sans); }
.welcome-copy .button { margin-top: 24px; }

.values-section { padding-top: 0; }
.values-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 23px 0 0;
  list-style: none;
  column-gap: 22px;
}
.values-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.values-photo img { height: auto; }
.campus-address-section address { margin-top: 19px; font-size: 17px; font-style: normal; }
.campus-map { width: 100%; min-height: 325px; padding: 0; border: 1px solid #d3d4ca; background: #e5e8df; }

.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 42px); }
.route-card { padding: clamp(25px, 3vw, 46px); border-top: 3px solid #bc914e; background: var(--cream); }
.route-card p { margin-top: 19px; color: var(--muted); }

.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  margin-top: 32px;
}
.destination-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(20px, 2.4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.destination-logo {
  flex: 0 0 auto;
  width: clamp(64px, 6.6vw, 88px);
  height: clamp(64px, 6.6vw, 88px);
  object-fit: contain;
}
.destination-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.destination-card .destination-info h3 {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.destination-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.destination-link:hover,
.destination-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 45px 0 22px; color: #e5ecf2; background: var(--navy-dark); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-name { color: white; font: 500 clamp(20px, 2vw, 28px)/1.25 var(--serif); }
html[lang='zh-CN'] .footer-name { font-family: var(--sans); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 23px; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid #ffffff29; color: #c2cfdc; font-size: 12px; }

@media (min-width: 1441px) {
  .header-inner {
    width: auto;
    margin-inline-start: max(3.2vw, calc((100% - 1410px) / 2));
    margin-inline-end: max(var(--gutter), calc((100% - var(--content-width)) / 2));
  }
  .header-actions { margin-left: clamp(0px, (100vw - 1440px) / 5, 44px); }
}

@media (1441px <= width <= 1600px) {
  .site-nav:has(.nav-cta) { gap: 14px; }
  .site-nav:has(.nav-cta) a:not(.nav-cta) { font-size: 13px; }
  .site-nav .nav-cta { gap: 10px; padding-inline: 14px; font-size: 14px; }
}

@media (max-width: 1440px) {
  .header-inner { min-height: 76px; }
  .brand-emblem { --emblem-size: 52px; }
  .js .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
  }
  .menu-lines { position: relative; display: block; width: 15px; height: 10px; border-block: 1px solid currentColor; }
  .menu-lines::after { content: ''; position: absolute; inset: 50% 0 auto; border-top: 1px solid currentColor; }
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    padding: 14px var(--gutter) 20px;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    background: var(--navy);
    border-block: 1px solid #ffffff25;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav { flex-wrap: wrap; }
  .js .site-nav.is-open { display: grid; gap: 0; }
  .js .site-nav a { padding: 11px 2px; }
  .js .site-nav .nav-cta { margin-top: 8px; padding: 12px 20px; }
  .js .site-nav a.active::after { display: none; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
  .home-hero { min-height: 550px; }
  .home-hero::before { background: linear-gradient(90deg, #051223d9, #05122390 75%, #05122350); }
  .home-hero-content { padding-block: 53px; }
  .home-hero h1 { font-size: clamp(40px, 10vw, 66px); }
  html[lang='zh-CN'] .home-hero h1 { font-size: clamp(32px, 9vw, 54px); }
  .page-hero-grid, .split, .route-grid, .destination-grid, .showcase-heading { grid-template-columns: minmax(0, 1fr); }
  .page-hero h1 { max-width: 20ch; }
  .hero-intro, .page-lead { margin-top: 15px; }
  .page-hero .photo { min-height: 0; aspect-ratio: 1.43; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .campus-environment-lead { grid-column: 1 / -1; grid-row: auto; }
  .campus-video-gallery { grid-template-columns: minmax(0, 1fr); }
  .community-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-photo-portrait { grid-column: 2; grid-row: 2 / span 2; }
  .split > .photo:first-child { order: 1; }
  .campus-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "main" "photos" "outdoors";
  }
  .campus-map { min-height: 270px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .header-inner { min-height: 69px; gap: 9px; }
  .brand { gap: 8px; }
  .brand-emblem { --emblem-size: 40px; }
  .brand-english strong { font-size: 22px; }
  .brand-english small { font-size: 7px; letter-spacing: .08em; }
  .brand-name-zh { font-size: 16px; }
  .header-actions { gap: 6px; }
  .language-select { padding-inline: 4px; }
  .js .menu-toggle { gap: 5px; padding-inline: 7px; }
  .js .menu-toggle .menu-lines { width: 12px; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .school-life-group > .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-gallery { grid-template-columns: minmax(0, 1fr); }
  .community-photo-portrait { grid-column: auto; grid-row: auto; }
  .gallery-photo { aspect-ratio: 1.5; }
  .welcome-copy { padding-block: 50px; }
  .welcome-section::after { background: #081a2eb9; }
}
@media (max-width: 350px) {
  .header-inner { width: calc(100% - 24px); }
  .js .menu-toggle .menu-lines { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

