:root {
  --bg: #f6f7f2;
  --paper: #fffefa;
  --paper-soft: #eef3ea;
  --ink: #20312a;
  --muted: #66746d;
  --accent: #2f6b55;
  --accent-dark: #214c3f;
  --line: #d8ded6;
  --shadow: 0 20px 44px rgba(36, 55, 47, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: #fff;
  padding: 10px 14px;
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid rgba(216, 222, 214, 0.8);
  background: rgba(246, 247, 242, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--accent-dark);
  background: rgba(47, 107, 85, 0.09);
}

.site-nav a:active,
.button:active,
.nav-toggle:active,
.back-top:active,
.image-button:active {
  transform: translateY(1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 32px 0 24px;
  background:
    linear-gradient(90deg, rgba(246, 247, 242, 1) 0%, rgba(246, 247, 242, 0.92) 45%, rgba(238, 243, 234, 0.86) 100%),
    url("assets/images/school-gate-hero.jpg") center / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 455px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: 56px;
}

.hero-copy {
  padding-top: 28px;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: #40514a;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid rgba(47, 107, 85, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-dark);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--accent);
  background: var(--paper);
}

.hero-media {
  position: relative;
  padding: 18px 18px 72px;
}

.hero-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image img,
.strip-image img,
.life-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(330px, 72%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.88);
  box-shadow: 0 18px 34px rgba(36, 55, 47, 0.12);
  padding: 18px;
}

.hero-note span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-note strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.45;
}

.section {
  padding: 92px 0;
}

.section-inner,
.contact-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  align-items: end;
  gap: 44px;
  margin-bottom: 38px;
}

.section-header.narrow {
  display: block;
  max-width: 760px;
}

.section h2,
.contact h2 {
  font-size: 40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 48px;
  align-items: start;
}

.overview {
  padding-top: 56px;
}

.overview-copy {
  max-width: 710px;
  font-size: 18px;
}

.overview-copy p {
  margin: 0 0 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.fact-panel {
  display: grid;
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.fact strong {
  font-size: 31px;
  line-height: 1;
}

.fact span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.campus-strip {
  margin-top: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.strip-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

.strip-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.strip-copy h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.strip-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.philosophy {
  background: var(--paper);
}

.principle-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.principle-lead {
  border-top: 4px solid var(--accent);
  padding-top: 28px;
}

.section-label,
.principle-list span,
.contact-lines span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.principle-lead p {
  margin: 14px 0 0;
  font-size: 36px;
  font-weight: 850;
  line-height: 1.2;
}

.principle-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.principle-list p {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
}

.achievements {
  background: #f3eee6;
}

.achievement-showcase {
  display: grid;
  gap: 36px;
}

.achievement-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(460px, 1.22fr);
  gap: 34px;
  align-items: start;
}

.achievement-copy p:not(.eyebrow) {
  color: #44544d;
  font-size: 17px;
}

.achievement-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.featured-result {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 0.45fr);
  overflow: hidden;
  border: 1px solid rgba(128, 54, 42, 0.18);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(92, 52, 37, 0.13);
}

.poster-button,
.featured-poster,
.exam-card .image-button,
.life-card .image-button,
.image-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.featured-poster {
  display: grid;
  place-items: center;
  min-height: 520px;
  background: #a21818;
}

.featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.featured-copy span,
.exam-card span {
  color: #9a3d2b;
  font-size: 13px;
  font-weight: 850;
}

.featured-copy h3 {
  margin: 12px 0 14px;
  font-size: 31px;
  line-height: 1.18;
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
}

.exam-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(128, 54, 42, 0.18);
  border-bottom: 1px solid rgba(128, 54, 42, 0.18);
}

.exam-stats article {
  padding: 22px 24px;
}

.exam-stats article + article {
  border-left: 1px solid rgba(128, 54, 42, 0.18);
}

.exam-stats strong {
  display: block;
  color: #8d2f21;
  font-size: 34px;
  line-height: 1;
}

.exam-stats span {
  display: block;
  margin-top: 10px;
  color: #53625b;
  font-size: 14px;
}

.exam-year-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 16px;
}

.exam-year-strip article {
  border-top: 3px solid rgba(154, 61, 43, 0.48);
  padding-top: 16px;
}

.exam-year-strip time {
  color: #8d2f21;
  font-size: 22px;
  font-weight: 850;
}

.exam-year-strip p {
  margin: 8px 0 0;
  color: #44544d;
  font-size: 14px;
}

.exam-gallery-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  border-top: 1px solid rgba(128, 54, 42, 0.18);
  padding-top: 34px;
}

.exam-gallery-header h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
}

.exam-gallery-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

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

.exam-card {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid rgba(128, 54, 42, 0.16);
  border-radius: var(--radius);
  background: var(--paper);
}

.exam-card.is-large {
  grid-column: span 3;
}

.exam-card .image-button {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #9c1717;
}

.exam-card.is-large .image-button {
  aspect-ratio: 4 / 5;
}

.exam-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.exam-card:hover img {
  transform: scale(1.025);
}

.exam-card div {
  padding: 18px;
}

.exam-card h4 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.22;
}

.exam-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.poster-button {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(36, 55, 47, 0.14);
}

.poster-button img {
  width: 100%;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(47, 107, 85, 0.25);
}

.timeline article {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  border-bottom: 1px solid rgba(47, 107, 85, 0.25);
  padding: 19px 0;
}

.timeline time {
  color: var(--accent-dark);
  font-weight: 850;
  line-height: 1.4;
}

.timeline p {
  margin: 0;
  color: #3f5048;
}

.life {
  padding: 72px 0 76px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.82), rgba(238, 243, 234, 0.48)),
    var(--bg);
}

.life-header {
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.5fr);
  align-items: start;
  gap: 34px;
  margin-bottom: 28px;
}

.section-intro {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  align-items: stretch;
}

.life-card {
  grid-column: span 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 214, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.92);
}

.life-card.wide {
  grid-column: span 7;
  grid-template-columns: minmax(0, 1.1fr) minmax(210px, 0.58fr);
}

.life-card.tall {
  grid-row: span 2;
}

.life-card.alumni {
  grid-column: span 4;
}

.life-card.harvest-card {
  grid-column: span 8;
  grid-template-columns: minmax(0, 1.36fr) minmax(190px, 0.42fr);
  align-items: stretch;
}

.life-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.life-card.alumni .life-copy {
  justify-content: flex-start;
}

.life-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  border-top: 2px solid rgba(47, 107, 85, 0.34);
  padding-top: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.life-card .image-button {
  overflow: hidden;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.life-card.wide .image-button {
  aspect-ratio: 16 / 10;
}

.life-card.alumni .image-button {
  aspect-ratio: 4 / 3;
}

.life-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

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

.harvest-gallery {
  display: grid;
  height: 100%;
  min-height: 440px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.harvest-gallery .image-button {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 6px;
}

.harvest-gallery img {
  object-fit: cover;
  object-position: center top;
}

.campus-gallery-intro {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 0.72fr);
  gap: 28px;
  align-items: start;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.campus-gallery-intro h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.26;
  letter-spacing: 0;
}

.campus-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  margin-top: 24px;
}

.campus-shot {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.campus-shot.is-wide {
  grid-column: span 3;
}

.campus-shot.is-tall {
  grid-row: span 2;
}

.campus-shot .image-button {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.campus-shot.is-wide .image-button {
  aspect-ratio: 16 / 9;
}

.campus-shot.is-tall .image-button {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}

.campus-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.campus-shot:hover img {
  transform: scale(1.025);
}

.campus-shot span {
  display: block;
  padding: 12px 14px 14px;
  color: #3f5048;
  font-size: 14px;
  font-weight: 760;
}

.contact {
  padding: 84px 0;
  background: var(--accent-dark);
  color: #fff;
}

.contact .eyebrow,
.contact-lines span {
  color: #bcd8ca;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 56px;
  align-items: start;
}

.contact-lines {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-lines p {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 19px 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  padding: 28px 0;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 162px;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(47, 107, 85, 0.22);
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 12px 28px rgba(36, 55, 47, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top span {
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--accent-dark);
  border-left: 2px solid var(--accent-dark);
  transform: translateY(3px) rotate(45deg);
}

.mascot-call {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
  color: var(--ink);
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-call:hover,
.mascot-call:focus-visible {
  transform: translateY(-3px);
}

.mascot-call:active {
  transform: translateY(1px);
}

.mascot-bubble {
  position: relative;
  max-width: 188px;
  margin-bottom: 18px;
  border: 1px solid rgba(47, 107, 85, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 16px 34px rgba(36, 55, 47, 0.15);
  padding: 12px 14px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  backdrop-filter: blur(14px);
}

.mascot-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 22px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(47, 107, 85, 0.18);
  border-right: 1px solid rgba(47, 107, 85, 0.18);
  background: rgba(255, 254, 250, 0.94);
  transform: rotate(45deg);
}

.mascot-figure {
  display: grid;
  place-items: end center;
  width: 108px;
  height: 126px;
  filter: drop-shadow(0 12px 18px rgba(36, 55, 47, 0.22));
}

.mascot-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 100%;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-call:hover .mascot-figure img,
.mascot-call:focus-visible .mascot-figure img {
  transform: rotate(-2deg) scale(1.03);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 28px 80px rgba(24, 36, 31, 0.34);
}

.lightbox::backdrop {
  background: rgba(22, 34, 29, 0.72);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 112px);
  object-fit: contain;
  background: #111915;
}

.lightbox figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(24, 36, 31, 0.72);
  color: #fff;
}

.lightbox-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.lightbox-close span:first-child {
  transform: rotate(45deg);
}

.lightbox-close span:last-child {
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .overview-grid,
  .principle-layout,
  .achievement-layout,
  .achievement-hero,
  .featured-result,
  .exam-gallery-header,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .achievement-poster {
    position: static;
    max-width: 460px;
  }

  .featured-poster {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

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

  .exam-stats article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(128, 54, 42, 0.18);
  }

  .exam-stats article:nth-child(4) {
    border-top: 1px solid rgba(128, 54, 42, 0.18);
  }

  .exam-year-strip {
    overflow-x: auto;
    padding-bottom: 8px;
  }

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

  .exam-card,
  .exam-card.is-large {
    grid-column: span 1;
  }

  .campus-strip,
  .life-grid,
  .campus-gallery-intro {
    grid-template-columns: 1fr;
  }

  .life-header {
    grid-template-columns: 1fr;
  }

  .life-card,
  .life-card.wide,
  .life-card.alumni,
  .life-card.harvest-card {
    grid-column: 1 / -1;
  }

  .life-card.harvest-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  }

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

  .campus-shot,
  .campus-shot.is-wide,
  .campus-shot.is-tall {
    grid-column: span 1;
    grid-row: auto;
  }

  .campus-shot.is-wide .image-button,
  .campus-shot.is-tall .image-button {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .section-inner,
  .contact-inner,
  .site-footer,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    display: grid;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    padding: 10px 14px 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 10px;
  }

  .hero {
    padding: 34px 0 24px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-inner {
    gap: 26px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
  }

  .button {
    width: auto;
  }

  .hero-media {
    padding: 0;
  }

  .hero-note {
    position: static;
    width: auto;
    margin-top: -1px;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 13px 14px;
  }

  .hero-image {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .section {
    padding: 60px 0;
  }

  .life {
    padding: 52px 0 58px;
  }

  .overview {
    padding-top: 34px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 26px;
  }

  .life-header {
    margin-bottom: 20px;
  }

  .section-intro {
    margin: 0;
    font-size: 15px;
  }

  .section h2,
  .contact h2 {
    font-size: 30px;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fact strong {
    font-size: 28px;
  }

  .fact span {
    text-align: left;
  }

  .campus-strip {
    margin-top: 42px;
  }

  .strip-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }

  .principle-lead p {
    font-size: 30px;
  }

  .principle-list article,
  .timeline article,
  .life-card,
  .life-card.wide,
  .life-card.harvest-card {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    padding: 22px;
  }

  .featured-copy h3 {
    font-size: 26px;
  }

  .exam-stats {
    grid-template-columns: 1fr;
  }

  .exam-stats article,
  .exam-stats article:nth-child(3),
  .exam-stats article:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(128, 54, 42, 0.18);
    padding: 18px 0;
  }

  .exam-stats article:first-child {
    border-top: 0;
  }

  .exam-year-strip {
    grid-template-columns: repeat(6, minmax(220px, 1fr));
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .exam-gallery-header {
    gap: 12px;
  }

  .exam-gallery-header h3 {
    font-size: 28px;
  }

  .exam-gallery {
    grid-template-columns: 1fr;
  }

  .exam-card .image-button,
  .exam-card.is-large .image-button {
    aspect-ratio: 4 / 5;
  }

  .life-card.tall {
    grid-row: auto;
  }

  .life-card .image-button,
  .life-card.tall .image-button,
  .life-card.alumni .image-button {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .life-copy {
    padding: 18px;
  }

  .life-card.harvest-card {
    grid-template-columns: 1fr;
  }

  .harvest-gallery {
    min-height: 0;
    padding: 8px;
  }

  .harvest-gallery .image-button {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .campus-gallery-intro {
    gap: 10px;
    margin-top: 30px;
    padding-top: 26px;
  }

  .campus-gallery-intro h3 {
    font-size: 24px;
  }

  .campus-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact {
    padding: 60px 0;
  }

  .site-footer {
    display: grid;
  }

  .mascot-call {
    right: 12px;
    bottom: 12px;
    gap: 7px;
    max-width: calc(100vw - 24px);
  }

  .mascot-bubble {
    max-width: 142px;
    margin-bottom: 13px;
    padding: 10px 11px;
    font-size: 12px;
    line-height: 1.4;
  }

  .mascot-bubble::after {
    right: -6px;
    bottom: 18px;
    width: 10px;
    height: 10px;
  }

  .mascot-figure {
    width: 78px;
    height: 92px;
  }

  .back-top {
    right: 14px;
    bottom: 120px;
  }
}
