/**
 * Bảng màu Nhận diện Thương hiệu Trường Nguyễn Siêu (Nguyen Sieu Brand Guideline - Trang 35 & 36)
 *
 * Màu chủ đạo (Primary):
 * - Navy Blue:  #1C3D74 (RGB 28, 61, 116)
 * - Gold:       #B18F41 (Pantone 10127 C - RGB 179, 146, 66)
 * - Sky Cyan:   #16BDEF (RGB 34, 191, 240)
 * - Light Grey: #D0D0D0 (RGB 208, 208, 209)
 *
 * Màu bổ trợ (Supporting):
 * - White:      #FFFEFF / #FFFFFF
 * - Light Cyan: #76CFF5 (RGB 118, 208, 245)
 * - Creme:      #F4F1E2 (PMS 9064 CREME - RGB 245, 245, 228)
 * - Soft Pink:  #FCE8F1 (RGB 253, 233, 241)
 * - Ink Black:  #231F20 (RGB 0, 0, 0)
 * - Green:      #8ABE6D, #A7CC8D
 * - Teal/Blue:  #20BECB, #3BA5DD, #79B9E5
 */
:root {
  --navy: #1c3d74;
  --navy-deep: #122950;
  --navy-soft: #16325f;
  --gold: #b18f41;
  --gold-light: #d4b465;
  --gold-ink: #6e5722;
  --cyan: #16bdef;
  --cyan-light: #76cff5;
  --teal: #20becb;
  --azure: #3ba5dd;
  --periwinkle: #79b9e5;
  --green: #8abe6d;
  --pink-soft: #fce8f1;
  --cream: #f4f1e2;
  --cream-dark: #e6e0c8;
  --ink: #231f20;
  --muted: #4b5362;
  --line: #d0d0d0;
  --white: #ffffff;
  --header: 5.35rem;
  --shadow: 0 14px 36px rgba(28, 61, 116, 0.11);
  --shadow-lg: 0 22px 48px rgba(18, 41, 80, 0.18);
  --font: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-display: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.22;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  z-index: 60;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 46;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 4px 20px rgba(28, 61, 116, 0.07);
}

.nav-desktop-slot {
  display: none;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  min-height: var(--header);
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand-logo {
  height: 2.75rem;
  width: auto;
  aspect-ratio: 114 / 118;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  flex: 0 0 auto;
}

.brand-divider {
  width: 1.5px;
  height: 2.2rem;
  background: var(--line);
  flex: 0 0 auto;
}

.brand-logo-35 {
  height: 2.85rem;
  width: auto;
  aspect-ratio: 1024 / 795;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(28, 61, 116, 0.14));
  animation: logoBreathe 6.5s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-school {
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand-section {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-ink);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 52;
  position: relative;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 41, 80, 0.48);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-backdrop[hidden] {
  display: none;
}

.nav-backdrop.is-visible[hidden] {
  display: block;
}

/* Mobile sidebar drawer — sibling of header so backdrop-filter
   on .site-header cannot clip position:fixed. */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 51;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(20.5rem, 86vw);
  height: 100%;
  margin: 0;
  padding: calc(0.85rem + env(safe-area-inset-top)) 1.05rem calc(1.35rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  border-left: 3px solid var(--navy);
  box-shadow: -18px 0 40px rgba(18, 41, 80, 0.18);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

.nav-drawer.is-open .nav-panel {
  transform: translateX(0);
}

.nav-panel-top {
  display: block;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(28, 61, 116, 0.12);
  flex: 0 0 auto;
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  padding: 0.1rem 0;
  width: 100%;
  min-width: 0;
}

/* Close sits outside the panel (over dimmed area) so brand text has full width */
.nav-drawer-close {
  position: absolute;
  top: calc(0.85rem + env(safe-area-inset-top));
  right: calc(min(20.5rem, 86vw) + 0.55rem);
  z-index: 2;
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(18, 41, 80, 0.22);
  cursor: pointer;
  color: var(--navy);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.nav-drawer.is-open .nav-drawer-close {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-drawer-close:hover,
.nav-drawer-close:focus-visible {
  border-color: var(--navy);
  background: var(--white);
}

.nav-drawer-close-icon,
.nav-drawer-close-icon::before,
.nav-drawer-close-icon::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-drawer-close-icon {
  background: transparent;
}

.nav-drawer-close-icon::before,
.nav-drawer-close-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.nav-drawer-close-icon::before {
  transform: rotate(45deg);
}

.nav-drawer-close-icon::after {
  transform: rotate(-45deg);
}

.nav-drawer-logo {
  height: 2.55rem;
  width: auto;
  aspect-ratio: 114 / 118;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-drawer-logo-35 {
  height: 2.65rem;
  width: auto;
  aspect-ratio: 1024 / 795;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 5px rgba(28, 61, 116, 0.12));
}

.nav-drawer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.25;
}

.nav-drawer-school {
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.nav-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-ink);
}

.nav-drawer-years,
.nav-drawer-tagline {
  display: block;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
}

body.nav-open {
  overflow: hidden;
}

.site-nav a:not(.btn) {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 0.55rem 0.45rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 0.45rem;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.site-nav a:not(.btn)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 7rem at var(--nav-light-x, 50%) var(--nav-light-y, 50%),
    rgba(255, 248, 228, 0.78) 0%,
    rgba(212, 180, 101, 0.4) 30%,
    rgba(212, 180, 101, 0.1) 52%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--navy);
  background: rgba(28, 61, 116, 0.06);
  transform: translateY(-1px);
}

.site-nav a:not(.btn):hover::before,
.site-nav a:not(.btn):focus-visible::before,
.site-nav a:not(.btn).is-lit::before {
  opacity: 1;
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after,
.site-nav a:not(.btn).is-active::after {
  transform: scaleX(1);
}

.site-nav a:not(.btn).is-active {
  color: var(--navy);
  background: rgba(28, 61, 116, 0.08);
  box-shadow: inset 0 0 0 1px rgba(177, 143, 65, 0.28);
}

.site-nav a:not(.btn).is-active::before {
  opacity: 0.42;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0.35rem 0;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  align-self: flex-start;
}

.lang-btn {
  min-width: 2.35rem;
  min-height: 1.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--navy);
  color: var(--white);
}

.nav-cta {
  margin-top: 0.35rem;
  align-self: flex-start;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(177, 143, 65, 0.28);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.18) 46%,
    rgba(255, 248, 228, 0.55) 50%,
    rgba(255, 255, 255, 0.18) 54%,
    transparent 58%,
    transparent 100%
  );
  background-size: 280% 100%;
  background-position: 100% 0;
  animation: titleLightSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-light);
  color: var(--ink);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(28, 61, 116, 0.22);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 241, 226, 0.55);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover,
.btn-outline-navy:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* ================= SECTIONS & BANDS ================= */
section {
  scroll-margin-top: calc(var(--header) + 0.5rem);
  padding: 4rem 0;
}

.band-cream {
  background: var(--cream);
}

.band-night {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #193b70 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.eyebrow-light {
  color: var(--gold-light);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 46rem;
}

.band-night .lead {
  color: #e4e8f0;
}

.section-intro {
  margin-bottom: 2.25rem;
}

/* ================= 1. HERO SECTION ================= */
.hero-section {
  position: relative;
  padding: 2.75rem 0 3.5rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(22, 189, 239, 0.24) 0%, rgba(22, 189, 239, 0) 46%),
    radial-gradient(circle at 14% 85%, rgba(177, 143, 65, 0.22) 0%, rgba(177, 143, 65, 0) 48%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 58%, #1a4789 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  will-change: transform, opacity;
}

.hero-orb-cyan {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  right: -4rem;
  background: radial-gradient(circle, rgba(22, 189, 239, 0.45) 0%, rgba(22, 189, 239, 0) 70%);
  animation: orbDriftA 14s ease-in-out infinite;
}

.hero-orb-gold {
  width: 18rem;
  height: 18rem;
  bottom: -5rem;
  left: -3rem;
  background: radial-gradient(circle, rgba(177, 143, 65, 0.42) 0%, rgba(177, 143, 65, 0) 70%);
  animation: orbDriftB 16s ease-in-out infinite;
}

.hero-orb-soft {
  width: 12rem;
  height: 12rem;
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(244, 241, 226, 0.18) 0%, rgba(244, 241, 226, 0) 70%);
  animation: orbPulse 9s ease-in-out infinite;
}

.hero-sky-flamingo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero-sky-flamingo svg {
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-spirit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.spirit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(22, 189, 239, 0.16);
  border: 1px solid rgba(118, 207, 245, 0.45);
  color: var(--cyan-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: normal;
  max-width: 100%;
  line-height: 1.35;
  animation: spiritGlow 3.8s ease-in-out infinite;
}

.spirit-text {
  margin: 0 0 0.35rem;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 600;
  color: var(--cyan-light);
  line-height: 1.4;
  text-wrap: pretty;
}

.hero-spirit-text,
.hero-school-kicker {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  padding: 0.12em 0.04em 0.14em;
  background-size: 280% 100%;
  background-repeat: no-repeat;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: titleLightSweep 3.5s ease-in-out infinite;
  will-change: background-position;
}

.hero-spirit-text {
  margin: 0 0 0.35rem;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
  background-image: linear-gradient(
    100deg,
    #76cff5 0%,
    #76cff5 38%,
    #e8f7ff 44%,
    #d4b465 50%,
    #e8f7ff 56%,
    #76cff5 62%,
    #76cff5 100%
  );
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.hero-school-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
  margin: 0;
  font-size: clamp(0.82rem, 1.5vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  background-image: linear-gradient(
    100deg,
    #b18f41 0%,
    #d4b465 38%,
    #fff6d8 44%,
    #fffdf5 50%,
    #fff6d8 56%,
    #d4b465 62%,
    #b18f41 100%
  );
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.hero-school-name,
.hero-school-meta {
  white-space: nowrap;
}

.hero-school-meta::before {
  content: "·";
  margin-right: 0.45rem;
}

.hero-copy {
  min-width: 0;
  overflow-wrap: break-word;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--white);
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: break-word;
  overflow: visible;
}

.hero-title-line {
  display: inline-block;
  overflow: visible;
}

/* Tham khảo bộ nhận diện chủ đề: sans đậm + serif nghiêng vàng */
.hero-title-lead {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: normal;
  font-size: clamp(1.15rem, 2.55vw, 2.35rem);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: 1.28;
  padding: 0.18em 0.06em 0.02em;
  margin-left: -0.06em;
  white-space: nowrap;
  overflow: visible;
  background-image: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 38%,
    #fff6d8 44%,
    #d4b465 50%,
    #fff6d8 56%,
    #ffffff 62%,
    #ffffff 100%
  );
  background-size: 280% 100%;
  background-repeat: no-repeat;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
  animation: titleLightSweep 3.5s ease-in-out infinite;
  will-change: background-position;
}

.hero-title-accent {
  display: inline-block;
  margin-top: 0.12rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.35rem, 3.1vw, 2.55rem);
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.28;
  padding: 0.04em 0.06em 0.18em;
  margin-left: -0.06em;
  white-space: nowrap;
  overflow: visible;
  background-image: linear-gradient(
    100deg,
    #8f7330 0%,
    #a8873a 34%,
    #d4b465 44%,
    #fffdf5 50%,
    #d4b465 56%,
    #a8873a 66%,
    #8f7330 100%
  );
  background-size: 280% 100%;
  background-repeat: no-repeat;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
  animation: titleLightSweep 3.5s ease-in-out infinite;
  will-change: background-position;
}

@keyframes titleLightSweep {
  0%, 12% { background-position: 100% center; }
  88%, 100% { background-position: 0% center; }
}

@media (min-width: 900px) {
  .hero-actions .btn {
    flex: 0 1 auto;
    white-space: nowrap;
  }
}

.hero-subtitle-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  color: var(--cyan-light);
  margin-bottom: 1.15rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-poem {
  margin: 0 0 1.4rem;
  padding: 0.95rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 0.85rem 0.85rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--cream);
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.hero-poem p {
  margin: 0;
}

.hero-poem p + p {
  margin-top: 0.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.hero-actions .btn {
  flex: 1 1 14rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-badges li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(244, 241, 226, 0.11);
  border: 1px solid rgba(244, 241, 226, 0.22);
  color: var(--cream);
}

.partner-strip {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(244, 241, 226, 0.18);
}

.partner-strip-card {
  margin-top: 1.35rem;
  padding: 0.95rem 1.1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(244, 241, 226, 0.94);
  border: 1px solid rgba(177, 143, 65, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(177, 143, 65, 0.35);
}

.partner-strip-label {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.partner-strip-label-ink {
  color: var(--gold-ink);
  margin-bottom: 0.65rem;
}

.partner-strip-label-dark {
  color: var(--gold-ink);
  text-align: center;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
}

.partner-logos-light {
  justify-content: center;
}

.partner-logo {
  display: block;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.partner-logo:hover {
  transform: translateY(-3px) scale(1.03);
}

.partner-logo-cambridge {
  height: 2.85rem;
}

.partner-logo-hpl {
  height: 3.1rem;
}

.partner-divider {
  width: 1px;
  height: 2.2rem;
  background: rgba(244, 241, 226, 0.28);
}

.partner-divider-dark {
  background: var(--line);
}

.footer-partners {
  padding: 1.75rem 0 0.15rem;
  margin-bottom: 0;
}

.footer-partners-lead {
  text-align: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 700px) {
  .partner-logo-cambridge {
    height: 3.35rem;
  }

  .partner-logo-hpl {
    height: 3.6rem;
  }

  .footer-partner-logo.partner-logo-cambridge {
    height: 2.55rem;
  }

  .footer-partner-logo.partner-logo-hpl {
    height: 2.85rem;
  }
}

/* Hero Visual – Documentary clip */
.hero-visual-wrap {
  position: relative;
  animation: heroEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.28s;
}

.hero-figure {
  position: relative;
  margin: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  background: var(--navy-deep);
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(177, 143, 65, 0.45);
  box-shadow: var(--shadow-lg);
}

.hero-figure-video {
  background: #0b1a33;
}

.hero-video {
  position: absolute;
  inset: 0;
}

.hero-video-el,
.hero-video-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: #0b1a33;
}

.hero-video.is-playing .hero-video-el {
  object-fit: contain;
  background: #000;
}

.hero-video-play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 1.5px solid rgba(212, 180, 101, 0.75);
  border-radius: 50%;
  background: rgba(14, 32, 64, 0.82);
  color: var(--gold-light);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hero-video-play:hover,
.hero-video-play:focus-visible {
  transform: translate(-50%, -52%) scale(1.06);
  background: rgba(28, 61, 116, 0.95);
  color: var(--cream);
}

.hero-video.is-playing .hero-video-play,
.hero-video.is-embed .hero-video-play {
  display: none;
}

.hero-video.is-playing .hero-figure-caption {
  opacity: 0;
  pointer-events: none;
}

.hero-figure-sky-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 189, 239, 0.34) 0%,
    rgba(28, 61, 116, 0.12) 45%,
    rgba(18, 41, 80, 0.78) 100%
  );
  pointer-events: none;
}

.hero-flamingo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: flamingoGlide 8s ease-in-out infinite;
}

.hero-flamingo-overlay path {
  transform-origin: center;
  transform-box: fill-box;
}

.hero-flamingo-overlay g:nth-of-type(1) path:nth-child(1) { animation: wingFlutter 2.6s ease-in-out infinite; }
.hero-flamingo-overlay g:nth-of-type(1) path:nth-child(2) { animation: wingFlutter 3.1s ease-in-out infinite 0.2s; }
.hero-flamingo-overlay g:nth-of-type(1) path:nth-child(3) { animation: wingFlutter 2.9s ease-in-out infinite 0.35s reverse; }
.hero-flamingo-overlay g:nth-of-type(2) path:nth-child(1) { animation: wingFlutter 3.3s ease-in-out infinite 0.15s; }
.hero-flamingo-overlay g:nth-of-type(2) path:nth-child(2) { animation: wingFlutter 2.7s ease-in-out infinite 0.4s reverse; }

@keyframes flamingoGlide {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  40% { transform: translateY(-10px) translateX(8px) scale(1.02); }
  70% { transform: translateY(-4px) translateX(14px) scale(1.01); }
}

@keyframes wingFlutter {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.92; }
  50% { transform: translateY(-3px) rotate(1.5deg); opacity: 1; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes logoBreathe {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28)); }
  50% { transform: translateY(-4px) scale(1.035); filter: drop-shadow(0 10px 18px rgba(177, 143, 65, 0.35)); }
}

@keyframes orbDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-28px, 22px) scale(1.12); opacity: 0.75; }
}

@keyframes orbDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate(24px, -18px) scale(1.15); opacity: 0.7; }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

@keyframes spiritGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 189, 239, 0); border-color: rgba(118, 207, 245, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(22, 189, 239, 0.12); border-color: rgba(118, 207, 245, 0.85); }
}

.hero-crest-card {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.95rem;
  background: rgba(14, 32, 64, 0.88);
  border: 1.5px solid rgba(212, 180, 101, 0.72);
  backdrop-filter: blur(12px);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  animation: crestFloat 6s ease-in-out infinite;
}

@keyframes crestFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-crest-logo {
  height: 3.35rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.hero-top-emblem {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-top-emblem img {
  height: 4.25rem;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.32));
  animation: logoBreathe 5.5s ease-in-out infinite;
}

.hero-top-emblem > div {
  min-width: 0;
  flex: 1;
}

.hero-figure-caption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(18, 41, 80, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 0.8rem;
  line-height: 1.4;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* Countdown strip inside Hero */
.countdown-bar {
  position: relative;
  z-index: 2;
  margin-top: 2.25rem;
  padding: 1.1rem 1.35rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(177, 143, 65, 0.42);
  backdrop-filter: blur(12px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: heroEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.42s;
}

.countdown-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.countdown-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(22, 189, 239, 0.22);
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(22, 189, 239, 0.18); }
  50% { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(22, 189, 239, 0.08); }
}

.countdown-cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.1rem, auto));
  gap: 0.6rem;
}

.countdown-cell {
  text-align: center;
  padding: 0.4rem 0.65rem;
  border-radius: 0.7rem;
  background: rgba(18, 41, 80, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.countdown-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  transition: transform 0.25s ease, color 0.25s ease;
}

.countdown-num.is-ticking {
  animation: tickPop 0.35s ease;
}

@keyframes tickPop {
  0% { transform: translateY(4px) scale(0.92); opacity: 0.5; }
  60% { transform: translateY(-2px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.countdown-unit {
  font-size: 0.72rem;
  color: var(--line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ================= 2. JOURNEY & TIMELINE SECTION ================= */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.stat-card {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 4px solid var(--navy);
  border-radius: 1rem;
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 252, 255, 0.62) 8%,
    rgba(232, 240, 255, 0.28) 16%,
    rgba(240, 215, 138, 0.36) 36%,
    rgba(177, 143, 65, 0.14) 58%,
    rgba(177, 143, 65, 0.05) 76%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-position: 50% 42%;
  background-size: 36% 36%;
  opacity: 0;
  transition:
    opacity 0.28s ease,
    background-size 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card:hover::before,
.stat-card:focus-within::before {
  opacity: 1;
  background-size: 280% 280%;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(177, 143, 65, 0.45);
}

.stat-card:nth-child(2),
.stat-card:nth-child(4) {
  border-top-color: var(--gold);
}

.stat-value {
  margin-bottom: 0.3rem;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-card:nth-child(2) .stat-value {
  color: var(--gold-ink);
}

.stat-card h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.stat-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Interactive Visual Timeline */
.timeline-track {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-left: 1.65rem;
  margin-bottom: 2.75rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--gold) 55%, var(--cyan) 100%);
  border-radius: 99px;
}

.milestone-card {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 1.1rem;
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.milestone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 252, 255, 0.65) 7%,
    rgba(232, 240, 255, 0.3) 15%,
    rgba(240, 215, 138, 0.4) 34%,
    rgba(177, 143, 65, 0.16) 56%,
    rgba(177, 143, 65, 0.05) 74%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-position: 50% 42%;
  background-size: 34% 34%;
  opacity: 0;
  transition:
    opacity 0.28s ease,
    background-size 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.milestone-card:hover::before,
.milestone-card:focus-within::before {
  opacity: 1;
  background-size: 290% 290%;
}

.milestone-card > * {
  position: relative;
  z-index: 1;
}

.milestone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.milestone-card.is-highlight::before {
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(236, 244, 255, 0.22) 8%,
    rgba(212, 180, 101, 0.28) 30%,
    rgba(22, 189, 239, 0.1) 54%,
    rgba(177, 143, 65, 0.08) 74%,
    transparent 100%
  );
}

.milestone-dot {
  position: absolute;
  left: -1.62rem;
  top: 1.5rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--navy);
}

.milestone-card.is-highlight {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-color: var(--gold);
}

.milestone-card.is-highlight::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(177, 143, 65, 0.55);
  animation: highlightGlow 2.8s ease-in-out infinite;
}

.milestone-card.is-highlight .milestone-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold);
}

.milestone-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.milestone-date {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.milestone-card.is-highlight .milestone-date {
  background: var(--gold);
  color: var(--ink);
}

.milestone-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-ink);
  background: var(--cream);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.milestone-card.is-highlight .milestone-badge {
  background: rgba(22, 189, 239, 0.2);
  color: var(--cyan-light);
}

.milestone-card h3 {
  font-size: 1.16rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.milestone-card.is-highlight h3 {
  color: var(--gold-light);
}

.milestone-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.milestone-card.is-highlight p {
  color: #e4e8f0;
}

/* Documentary Video Callout Banner */
.video-callout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 65%, #19488a 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(177, 143, 65, 0.45);
}

.video-callout h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.video-callout p {
  color: #e3e8f2;
  margin-bottom: 1.15rem;
}

.video-preview-box {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(177, 143, 65, 0.55);
  background: var(--navy-deep);
  cursor: pointer;
}

.video-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.video-preview-box:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.video-play-pill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: radial-gradient(circle, rgba(18, 41, 80, 0.25) 0%, rgba(18, 41, 80, 0.65) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
}

.play-circle {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(177, 143, 65, 0.28);
  transition: transform 0.25s ease;
  animation: playPulse 2.4s ease-in-out infinite;
}

.video-preview-box:hover .play-circle {
  transform: scale(1.1);
  animation: none;
}

@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(177, 143, 65, 0.22); transform: scale(1); }
  50% { box-shadow: 0 0 0 16px rgba(177, 143, 65, 0.08); transform: scale(1.05); }
}

/* ================= 3. CHUỖI HẠT LẤP LÁNH (ACTIVITIES) ================= */
.activities-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.activity-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn.is-active {
  background: var(--navy);
  color: var(--white);
}

.activity-group {
  margin-bottom: 2.5rem;
}

.activity-group:last-child {
  margin-bottom: 0;
}

.activity-group-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 0.95rem;
  margin-bottom: 1.25rem;
}

.activity-group-banner.is-past {
  background: var(--cream);
  border-left: 5px solid var(--gold);
}

.activity-group-banner.is-upcoming {
  background: linear-gradient(90deg, var(--navy) 0%, #1d4d91 100%);
  color: var(--white);
  border-left: 5px solid var(--cyan);
}

.activity-group-banner h3 {
  margin: 0;
  font-size: 1.15rem;
}

.activity-group-banner p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.88;
}

.pearl-grid {
  display: grid;
  gap: 1.25rem;
}

.pearl-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pearl-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}

.pearl-card.is-featured {
  position: relative;
  border: 2px solid var(--gold);
}

.pearl-card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 32%,
    rgba(177, 143, 65, 0.1) 42%,
    rgba(255, 236, 170, 0.26) 50%,
    rgba(177, 143, 65, 0.12) 58%,
    transparent 68%
  );
  background-size: 240% 100%;
  background-repeat: no-repeat;
  background-position: 200% 0;
  animation: pearlShine 4.8s linear infinite;
  z-index: 1;
}

.pearl-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  overflow: hidden;
}

.pearl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.pearl-card:hover .pearl-media img {
  transform: scale(1.05);
}

.pearl-date-pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid rgba(177, 143, 65, 0.65);
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.pearl-status-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pearl-status-pill.is-past {
  background: rgba(244, 241, 226, 0.94);
  color: var(--gold-ink);
}

.pearl-status-pill.is-upcoming {
  background: var(--cyan);
  color: var(--navy-deep);
}

.pearl-status-pill.is-featured {
  background: var(--gold);
  color: var(--ink);
}

.pearl-body {
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pearl-subtitle {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-ink);
  margin-bottom: 0.35rem;
}

.pearl-body h4 {
  font-size: 1.14rem;
  color: var(--navy);
  margin: 0 0 0.55rem;
  line-height: 1.3;
}

.pearl-desc {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

.pearl-meta {
  list-style: none;
  padding: 0.75rem 0 0;
  margin: 0;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.pearl-meta li {
  padding-left: 0.65rem;
  border-left: 2px solid var(--gold);
}

.pearl-action {
  margin-top: 0.95rem;
}

.pearl-select-btn {
  width: 100%;
  padding: 0.55rem 0.95rem;
  border-radius: 0.7rem;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pearl-select-btn:hover,
.pearl-select-btn:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.pearl-select-btn.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ================= 4. TÌM VỀ TỔ ẤM (REGISTER FORM & TRIBUTE WALL) ================= */
.register-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.register-highlights {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.register-highlight-item {
  padding: 0.95rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--gold);
}

.register-highlight-item h3 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.register-highlight-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #dce3ee;
}

/* Tribute Wall */
.tribute-wall {
  background: rgba(18, 41, 80, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.15rem;
  padding: 1.35rem;
}

.tribute-wall h3 {
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.tribute-wall-sub {
  font-size: 0.88rem;
  color: var(--line);
  margin-bottom: 1rem;
}

.tribute-list {
  display: grid;
  gap: 0.85rem;
}

.tribute-item {
  padding: 0.95rem 1.05rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 241, 226, 0.14);
}

.tribute-item.is-user {
  border-color: var(--gold);
  background: rgba(177, 143, 65, 0.15);
}

.tribute-quote {
  margin: 0 0 0.55rem;
  font-style: italic;
  color: var(--cream);
  font-size: 0.92rem;
}

.tribute-author {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
}

.tribute-author span {
  font-weight: 400;
  color: var(--line);
}

/* Interactive Form Card */
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 1.35rem;
  padding: 1.65rem 1.45rem;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--gold);
}

.form-card h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.form-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.role-tab {
  padding: 0.6rem 0.85rem;
  border-radius: 0.7rem;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.role-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row-2 {
  display: grid;
  gap: 0.85rem;
}

.field-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 0.68rem 0.88rem;
  border-radius: 0.65rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28, 61, 116, 0.14);
}

.field-textarea {
  min-height: 6.2rem;
  resize: vertical;
}

.event-checkbox-list {
  display: grid;
  gap: 0.6rem;
}

.event-check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.event-check-card:hover {
  border-color: var(--navy);
}

.event-check-card:has(input:checked) {
  border-color: var(--navy);
  background: rgba(28, 61, 116, 0.06);
}

.event-check-card input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.event-check-title {
  display: block;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy);
}

.event-check-time {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.form-error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  background: var(--pink-soft);
  border: 1px solid #e5a4be;
  color: #7d1d3f;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-actions .btn {
  width: 100%;
}

.form-success {
  padding: 1.35rem;
  border-radius: 1rem;
  background: var(--cream);
  border: 2px solid var(--gold);
  text-align: left;
}

.form-success h4 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
}

.form-success p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.form-summary-box {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--cream-dark);
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.form-summary-box p {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

/* ================= 5. FOOTER ================= */
#site-footer {
  background: var(--cream);
  color: var(--ink);
  border-top: 4px solid var(--gold);
}

.footer-quote-band {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 2.35rem 0;
  border-bottom: 1px solid rgba(177, 143, 65, 0.35);
}

.footer-quote-inner {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.footer-quote-inner blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 2.1vw, 1.48rem);
  line-height: 1.55;
  color: var(--gold-light);
}

.footer-main {
  display: grid;
  gap: 1.75rem;
  padding: 1.35rem 0 1.75rem;
  border-top: 1px solid var(--cream-dark);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 0.35rem;
}

.footer-brand-row img.footer-logo-school {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.footer-brand-row img.footer-logo-35 {
  height: 3.4rem;
  width: auto;
  object-fit: contain;
}

.footer-partner-logo.partner-logo-cambridge {
  height: 2.2rem;
}

.footer-partner-logo.partner-logo-hpl {
  height: 2.45rem;
}

.footer-school-title {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--navy);
  margin: 0;
}

.footer-accreditation {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-contact-list li {
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ink);
}

.footer-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--gold);
}

.footer-contact-list strong {
  color: var(--muted);
  font-weight: 700;
}

.footer-contact-list a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--gold-ink);
  text-decoration: underline;
}

.footer-bottom {
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--cream-dark);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ================= MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 41, 80, 0.82);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: min(760px, 100%);
  background: var(--white);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: var(--white);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.35rem;
}

.modal-video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--navy-deep);
  margin-bottom: 1rem;
  position: relative;
}

.modal-video-frame iframe,
.modal-video-frame video,
.modal-video-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

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

.reveal.is-settled {
  transition: none;
}

.reveal-left {
  transform: translateX(-16px);
}

.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(16px);
}

.reveal-right.is-visible {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(18px);
  }

  .reveal-left.is-visible,
  .reveal-right.is-visible {
    transform: translateY(0);
  }
}

.reveal-scale {
  transform: scale(0.94) translateY(16px);
}

.reveal-scale.is-visible {
  transform: scale(1) translateY(0);
}

@keyframes highlightGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(177, 143, 65, 0); }
  50% { box-shadow: 0 0 0 8px rgba(177, 143, 65, 0.12); }
}

@keyframes pearlShine {
  0% { background-position: 200% 0; }
  70% { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

.hero-stagger > *:nth-child(1) { animation: heroEnter 0.7s ease both; animation-delay: 0.05s; }
.hero-stagger > *:nth-child(2) { animation: heroEnter 0.7s ease both; animation-delay: 0.14s; }
.hero-stagger > *:nth-child(3) { animation: heroEnter 0.7s ease both; animation-delay: 0.22s; }
.hero-stagger > *:nth-child(4) { animation: heroEnter 0.7s ease both; animation-delay: 0.3s; }
.hero-stagger > *:nth-child(5) { animation: heroEnter 0.7s ease both; animation-delay: 0.38s; }
.hero-stagger > *:nth-child(6) { animation: heroEnter 0.7s ease both; animation-delay: 0.46s; }

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-track.is-active::before {
  animation: lineGrow 1.2s ease forwards;
}

@keyframes lineGrow {
  from { transform: scaleY(0); transform-origin: top; }
  to { transform: scaleY(1); transform-origin: top; }
}

.stat-card.is-visible {
  animation: cardRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.noscript {
  margin: 0;
  padding: 1rem;
  background: #fff4d6;
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 767px) {
  :root {
    --header: 4.4rem;
  }

  .container {
    width: min(1160px, calc(100% - 1.6rem));
  }

  .header-inner {
    min-height: var(--header);
    padding-block: 0.55rem;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    gap: 0.45rem 0.65rem;
  }

  .brand {
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-logo {
    height: 2.45rem;
    width: auto;
  }

  .brand-divider {
    height: 1.85rem;
  }

  .brand-logo-35 {
    height: 2.55rem;
    width: auto;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-school {
    font-size: 0.8rem;
  }

  .brand-section {
    font-size: 0.68rem;
  }

  .nav-toggle {
    width: 2.55rem;
    height: 2.55rem;
    flex-shrink: 0;
  }

  .site-nav a:not(.btn) {
    padding: 0.78rem 0.85rem;
    font-size: 0.98rem;
  }

  .lang-switch {
    width: 100%;
    justify-content: stretch;
    margin: 0.65rem 0 0.35rem;
    align-self: stretch;
  }

  .lang-switch .lang-btn {
    flex: 1;
    min-height: 2.25rem;
  }

  .nav-cta {
    width: 100%;
    margin: 0.55rem 0 0;
    align-self: stretch;
  }

  .nav-cta .btn {
    width: 100%;
  }

  section {
    padding: 2.35rem 0;
  }

  .hero-section {
    padding: 1.45rem 0 2rem;
  }

  .hero-grid {
    gap: 1.35rem;
  }

  .hero-orb-cyan,
  .hero-orb-gold {
    width: 11rem;
    height: 11rem;
    opacity: 0.4;
  }

  .hero-spirit-bar {
    margin-bottom: 0.75rem;
  }

  .hero-copy h1 {
    align-items: center;
    text-align: center;
    font-size: clamp(1.35rem, 6.5vw, 1.9rem);
    line-height: 1.18;
    margin-bottom: 0.5rem;
  }

  .hero-title-lead {
    font-size: clamp(1.08rem, 5.2vw, 1.42rem);
    letter-spacing: 0.02em;
    line-height: 1.28;
    padding-bottom: 0.04em;
    margin-left: 0;
    white-space: normal;
    text-wrap: balance;
    text-align: center;
  }

  .hero-title-accent {
    display: block;
    width: 100%;
    font-size: clamp(1.22rem, 5.6vw, 1.65rem);
    line-height: 1.25;
    margin-left: 0;
    white-space: normal;
    text-wrap: balance;
    text-align: center;
  }

  .hero-school-kicker {
    font-size: clamp(0.74rem, 3.4vw, 0.9rem);
    letter-spacing: 0.05em;
  }

  .hero-poem {
    margin-bottom: 1rem;
  }

  .hero-poem p {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 2.85rem;
  }

  .countdown-bar {
    margin-top: 1.25rem;
    padding: 0.9rem 0.8rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .countdown-title {
    font-size: 0.86rem;
  }

  .countdown-cells {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .countdown-cell {
    padding: 0.4rem 0.15rem;
  }

  .countdown-num {
    font-size: clamp(1.05rem, 5vw, 1.25rem);
  }

  .countdown-unit {
    font-size: 0.6rem;
  }

  .section-intro {
    margin-bottom: 1.45rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .stat-grid {
    gap: 0.7rem;
    margin-bottom: 1.75rem;
  }

  .stat-card {
    padding: 0.95rem 0.85rem;
  }

  .stat-value {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .stat-card h3 {
    font-size: 0.92rem;
  }

  .stat-card p {
    font-size: 0.8rem;
  }

  .timeline-track {
    padding-left: 1.35rem;
    gap: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .milestone-card {
    padding: 1.05rem 0.95rem;
  }

  .milestone-card h3 {
    font-size: 1.05rem;
  }

  .milestone-card p {
    font-size: 0.88rem;
  }

  .video-callout {
    padding: 1.15rem;
    gap: 1.1rem;
  }

  .activities-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
  }

  .activity-filters {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 999px;
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .activity-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    padding: 0.62rem 0.9rem;
    min-height: 2.55rem;
  }

  .activity-group {
    margin-bottom: 1.75rem;
  }

  .activity-group-banner {
    padding: 0.8rem 0.95rem;
    gap: 0.55rem;
  }

  .activity-group-banner h3 {
    font-size: 1.02rem;
  }

  .pearl-grid {
    gap: 1rem;
  }

  .pearl-body {
    padding: 0.95rem 0.95rem 1.05rem;
  }

  .pearl-body h4 {
    font-size: 1.02rem;
  }

  .register-layout {
    gap: 1.45rem;
  }

  .register-highlights {
    margin: 1.1rem 0 1.35rem;
  }

  .tribute-wall {
    padding: 1.05rem;
  }

  .form-card {
    padding: 1.2rem 0.95rem;
    border-radius: 1.1rem;
  }

  .form-card h3 {
    font-size: 1.18rem;
  }

  .role-tab {
    padding: 0.72rem 0.85rem;
    font-size: 0.9rem;
    min-height: 2.75rem;
  }

  .field-input,
  .field-textarea {
    font-size: 1rem;
    padding: 0.75rem 0.85rem;
  }

  .event-check-card {
    padding: 0.7rem 0.75rem;
  }

  .form-actions .btn {
    min-height: 2.9rem;
  }

  .footer-quote-band {
    padding: 1.65rem 0;
  }

  .footer-quote-inner blockquote {
    font-size: 1.05rem;
  }

  .footer-main {
    padding: 1.15rem 0 1.35rem;
    gap: 1.25rem;
  }

  .footer-school-title {
    font-size: 0.98rem;
  }

  .footer-accreditation {
    font-size: 0.72rem;
    line-height: 1.35;
    max-width: 100%;
    white-space: normal;
  }

  .footer-brand-row {
    gap: 0.55rem 0.7rem;
  }

  .footer-brand-row img.footer-logo-school {
    width: 2.6rem;
    height: 2.6rem;
  }

  .footer-brand-row img.footer-logo-35 {
    height: 2.6rem;
  }

  .footer-partner-logo.partner-logo-cambridge {
    height: 1.75rem;
  }

  .footer-partner-logo.partner-logo-hpl {
    height: 1.95rem;
  }

  .footer-contact-list li {
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-bottom: calc(1.15rem + env(safe-area-inset-bottom));
  }

  .modal-backdrop {
    padding: 0.65rem;
    align-items: end;
  }

  .modal-dialog {
    max-height: calc(100dvh - 1.25rem);
    overflow: auto;
  }

  .pearl-card:hover,
  .milestone-card:hover,
  .stat-card:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand-text {
    display: none;
  }

  .brand-divider {
    display: none;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .spirit-pill {
    font-size: 0.7rem;
    padding: 0.28rem 0.65rem;
  }

  .hero-figure-caption {
    font-size: 0.82rem;
  }

  .milestone-date,
  .milestone-badge {
    font-size: 0.74rem;
  }

  .nav-panel {
    width: min(19.5rem, 88vw);
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }

  .nav-drawer-close {
    width: 2.4rem;
    height: 2.4rem;
    right: calc(min(19.5rem, 88vw) + 0.45rem);
  }

  .nav-drawer-school {
    font-size: 0.8rem;
  }

  .nav-drawer-section {
    font-size: 0.66rem;
  }

  .site-nav a:not(.btn) {
    border-radius: 0.65rem;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 2.35rem;
    width: auto;
  }

  .brand-logo-35 {
    height: 2.45rem;
    width: auto;
  }

  .countdown-unit {
    letter-spacing: 0.02em;
  }

  .hero-top-emblem {
    gap: 0.55rem;
  }

  .hero-top-emblem img {
    height: 3.4rem;
    width: auto;
  }
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (min-width: 680px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .role-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .pearl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
  }

  .timeline-track::before,
  .milestone-dot {
    display: none;
  }
}

@media (min-width: 840px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-callout {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2rem;
  }

  .footer-main {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .nav-toggle,
  .nav-backdrop,
  .nav-drawer {
    display: none !important;
  }

  body.nav-open {
    overflow: visible;
  }

  .nav-desktop-slot {
    display: block;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    min-height: 0;
  }

  .site-nav a:not(.btn) {
    padding: 0.55rem 0.8rem;
  }

  .site-nav a:not(.btn)::after {
    left: 0.8rem;
    right: 0.8rem;
  }

  .site-nav a:not(.btn).is-active {
    background: rgba(28, 61, 116, 0.07);
  }

  .lang-switch {
    margin: 0 0.55rem 0 0.75rem;
    align-self: center;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 0.15rem;
    align-self: center;
  }

  .hero-grid {
    grid-template-columns: 1.22fr 0.78fr;
  }

  .timeline-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .register-layout {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2.5rem;
  }

  .form-card {
    padding: 2rem 1.85rem;
  }
}

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

  .hero-flamingo-overlay,
  .hero-flamingo-overlay path,
  .hero-visual-wrap,
  .countdown-bar,
  .hero-stagger > *,
  .hero-top-emblem img,
  .brand-logo-35,
  .hero-crest-card,
  .hero-orb,
  .spirit-pill,
  .countdown-dot,
  .countdown-num.is-ticking,
  .btn-gold::after,
  .hero-title-lead,
  .hero-title-accent,
  .hero-spirit-text,
  .hero-school-kicker,
  .play-circle,
  .milestone-card.is-highlight::after,
  .pearl-card.is-featured::before,
  .timeline-track.is-active::before,
  .stat-card.is-visible {
    animation: none !important;
  }

  .hero-title-lead {
    background: none;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    filter: none;
  }

  .hero-title-accent,
  .hero-school-kicker {
    background: none;
    color: var(--gold-light);
    -webkit-text-fill-color: var(--gold-light);
    filter: none;
  }

  .hero-spirit-text {
    background: none;
    color: var(--cyan-light);
    -webkit-text-fill-color: var(--cyan-light);
    filter: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .pearl-card,
  .milestone-card,
  .pearl-media img,
  .hero-figure img,
  .countdown-num {
    transition: none !important;
  }

  .btn:hover,
  .btn:focus-visible,
  .pearl-card:hover,
  .milestone-card:hover,
  .event-card:hover,
  .hero-figure:hover img,
  .site-nav a:not(.btn):hover,
  .site-nav a:not(.btn):focus-visible {
    transform: none;
  }

  .site-nav a:not(.btn)::before,
  .site-nav a:not(.btn)::after {
    transition: none;
  }

  .site-nav a:not(.btn).is-active::before,
  .site-nav a:not(.btn):hover::before,
  .site-nav a:not(.btn):focus-visible::before,
  .site-nav a:not(.btn).is-lit::before,
  .stat-card::before,
  .stat-card:hover::before,
  .milestone-card::before,
  .milestone-card:hover::before {
    opacity: 0;
    background-size: 26% 26%;
    transition: none;
  }
}
