/*
 * Bootstrap is imported into its own cascade layer, so every rule in this file
 * (unlayered) wins over it regardless of specificity. We keep Bootstrap's
 * components and JS behaviours (offcanvas, modal, accordion, toast) and restyle them below.
 */
@layer bootstrap;
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css") layer(bootstrap);

:root {
  --bs-body-font-family: "DM Sans", sans-serif;
  --bs-link-color: inherit;
  --bs-link-hover-color: inherit;
  --bs-border-radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --navy: #071d3b;
  --navy-2: #0b2a54;
  --navy-3: #123c70;
  --gold: #ffc928;
  --gold-2: #e9ab00;
  --cream: #fbf8f0;
  --paper: #fff;
  --ink: #142238;
  --muted: #687588;
  --line: #e5e9ef;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(7, 29, 59, 0.11);
  /* Theme tokens — light values here, dark values in [data-theme="dark"] below */
  --bg: #fff;
  --surface: #fff;
  --heading: #071d3b;
  --text-2: #3c4a60;
  --subtle: #7c8797;
  --gold-text: #9a7100;
  --gold-soft: #fff1bc;
  --gold-line: #f3dd8c;
  --note-text: #6b5414;
  --on-gold: #071d3b;
  --header-glass: rgba(255, 255, 255, 0.9);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --navy: #10284a;
  --navy-3: #1b3c69;
  --cream: #0a1627;
  --bg: #06101d;
  --surface: #0d1b2f;
  --ink: #dbe3ef;
  --heading: #f2f5fa;
  --text-2: #bcc7d6;
  --muted: #93a3b8;
  --subtle: #7d8fa7;
  --line: rgba(255, 255, 255, 0.09);
  --gold-text: #f0c041;
  --gold-soft: rgba(255, 201, 40, 0.12);
  --gold-line: rgba(255, 201, 40, 0.35);
  --note-text: #f1dc9c;
  --header-glass: rgba(6, 16, 29, 0.86);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}
::selection {
  background: var(--gold);
  color: var(--on-gold);
}
site-header,
site-footer {
  display: contents;
}
button,
input,
select,
textarea {
  font: inherit;
}
.container {
  width: min(1160px, calc(100% - 48px));
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
}
.topbar {
  background: var(--cream);
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.topbar-inner,
.top-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.topbar-inner {
  min-height: 38px;
}
.topbar a:hover {
  color: var(--gold);
}
.top-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 9px 1px 0;
}
.top-links {
  gap: 22px;
}
.site-header {
  height: 88px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(7, 29, 59, 0.07);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  background: var(--header-glass);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 10px 30px rgba(7, 29, 59, 0.08);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 53px;
  height: 62px;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-copy strong {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--heading);
  font-weight: 800;
}
.brand-copy small {
  font-size: 8px;
  letter-spacing: 0.11em;
  font-weight: 700;
  margin-top: 5px;
  color: var(--subtle);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.main-nav > a:not(.nav-cta) {
  padding: 10px 0;
  position: relative;
}
.main-nav > a:not(.nav-cta):after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-2);
  transition: width 0.2s;
}
.main-nav > a:hover:after,
.main-nav > a.active:after {
  width: 100%;
}
.main-nav > a:not(.nav-cta):hover,
.main-nav > a.active {
  color: var(--heading);
}
.main-nav .nav-cta {
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 13px 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.main-nav .nav-cta:hover {
  background: var(--navy-3);
  transform: translateY(-1px);
}
.nav-cta span {
  color: var(--gold);
  margin-left: 8px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  margin: 5px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  min-height: 605px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 80% 30%,
      rgba(30, 77, 130, 0.7),
      transparent 43%
    ),
    linear-gradient(115deg, #06172f 0%, #08234a 62%, #061a35 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(
      135deg,
      transparent 48%,
      rgba(255, 255, 255, 0.15) 49%,
      transparent 50%
    ),
    linear-gradient(
      45deg,
      transparent 48%,
      rgba(255, 255, 255, 0.1) 49%,
      transparent 50%
    );
  background-size: 72px 72px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  min-height: 550px;
  gap: 35px;
  padding-top: 35px;
  padding-bottom: 50px;
}
.hero-copy {
  max-width: 610px;
  padding: 28px 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--gold-text);
  margin-bottom: 19px;
}
.eyebrow > span {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold-2);
}
.eyebrow.light {
  color: #e7edf6;
}
.eyebrow.light > span {
  background: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: inherit;
}
h1 {
  font-size: clamp(42px, 5vw, 65px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 23px;
}
h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lede {
  color: #d2dced;
  font-size: 15px;
  line-height: 1.9;
  max-width: 510px;
  margin-bottom: 29px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 14px 19px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-gold {
  background: var(--gold);
  color: var(--on-gold);
}
.button-gold:hover {
  background: #ffda61;
}
.button-outline {
  border-color: rgba(255, 255, 255, 0.34);
  color: white;
}
.button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}
.button-outline span {
  font-size: 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 40px;
}
.proof-icon {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 201, 40, 0.6);
  color: var(--gold);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
}
.hero-proof div:last-child {
  display: flex;
  flex-direction: column;
}
.hero-proof strong {
  font-size: 12px;
}
.hero-proof small {
  font-size: 10px;
  color: #aebed4;
  margin-top: 3px;
}
.hero-visual {
  position: relative;
  min-height: 435px;
  display: grid;
  place-items: center;
}
.visual-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(255, 201, 40, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 201, 40, 0.1),
    0 0 0 35px rgba(255, 255, 255, 0.025),
    0 0 0 72px rgba(255, 255, 255, 0.02);
}
.crest-frame {
  position: relative;
  width: min(355px, 85%);
  height: 385px;
  display: grid;
  place-items: center;
}
.crest-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.25));
}
.since-card {
  position: absolute;
  right: 0;
  bottom: 34px;
  background: var(--surface);
  color: var(--heading);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold);
}
.since-star {
  font-size: 24px;
  color: #dca100;
}
.since-card div {
  display: flex;
  flex-direction: column;
}
.since-card small {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--subtle);
  font-weight: 800;
}
.since-card strong {
  font-size: 13px;
  font-family: Manrope, sans-serif;
}
.visual-note {
  position: absolute;
  left: 0;
  bottom: 55px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #b5c5da;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.note-line {
  height: 40px;
  width: 1px;
  background: var(--gold);
}
.hero-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.12);
}
.hero-bottom-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 54px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #c5d0e0;
}
.hero-bottom i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-bottom a {
  margin-left: auto;
  color: var(--gold);
  font-size: 20px;
}
.section-pad {
  padding: 100px 0;
}
.welcome {
  background: var(--cream);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.section-intro h2,
.section-heading h2,
.story-copy h2,
.community-heading h2,
.contact-copy h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--heading);
}
.lead {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-2);
}
.section-intro > p:not(.lead) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 490px;
}
.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--heading);
  padding-bottom: 5px;
  border-bottom: 1px solid #d6b44e;
  margin-top: 12px;
}
.text-link span {
  color: var(--gold-text);
  font-size: 17px;
}
.welcome-side {
  padding: 22px 0;
}
.welcome-quote {
  position: relative;
  background: var(--navy);
  color: white;
  padding: 43px 35px 35px;
  min-height: 190px;
  overflow: hidden;
}
.welcome-quote:after {
  content: "✦";
  position: absolute;
  right: 16px;
  bottom: -60px;
  font-size: 170px;
  color: rgba(255, 255, 255, 0.05);
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 62px;
  line-height: 0.7;
  color: var(--gold);
}
.welcome-quote p {
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 4px;
  letter-spacing: -0.04em;
}
.welcome-quote small {
  font-size: 12px;
  color: #b9c8da;
}
.welcome-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0 0;
  gap: 15px;
}
.welcome-facts div {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
.welcome-facts div:last-child {
  border: 0;
}
.welcome-facts strong {
  font-family: Manrope, sans-serif;
  font-size: 19px;
  color: var(--heading);
}
.welcome-facts span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.values-strip {
  background: var(--navy);
  color: white;
  padding: 58px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, 1fr);
  gap: 20px;
}
.values-heading h2 {
  font-size: 24px;
  margin: 0;
}
.values-heading .eyebrow {
  margin-bottom: 9px;
}
.value-item {
  border-left: 1px solid rgba(255, 255, 255, 0.17);
  padding-left: 16px;
}
.value-number {
  font-size: 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.value-item h3 {
  font-size: 15px;
  margin: 10px 0 5px;
  letter-spacing: -0.02em;
}
.value-item p {
  font-size: 10px;
  color: #b8c7da;
  line-height: 1.7;
  margin: 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}
.story-art {
  position: relative;
  padding: 15px 35px 35px 0;
}
.story-image {
  background: linear-gradient(145deg, #f4e8bc, #e7eef7);
  min-height: 400px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.story-image:before,
.story-image:after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(7, 29, 59, 0.1);
  border-radius: 50%;
}
.story-image:after {
  width: 330px;
  height: 330px;
}
.story-image img {
  position: relative;
  z-index: 1;
  width: 60%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 15px 12px rgba(7, 29, 59, 0.15));
}
.image-caption {
  position: absolute;
  bottom: 17px;
  left: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #7a6b43;
}
.story-stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--gold);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-gold);
  box-shadow: 0 12px 25px #071d3b20;
}
.story-stamp strong {
  font-family: Manrope, sans-serif;
  font-size: 35px;
  line-height: 1;
}
.story-stamp span {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.story-copy p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
}
.button-navy {
  background: var(--navy);
  color: white;
}
.button-navy:hover {
  background: var(--navy-3);
}
.story-copy .button {
  margin-top: 12px;
}
.academics {
  background: var(--cream);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > p {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 4px;
}
.academic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.academic-card {
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
  min-width: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.academic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.academic-card.featured {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--subtle);
}
.featured .card-top {
  color: #b6c5d9;
}
.card-symbol {
  font-size: 20px;
  color: var(--gold-text);
}
.card-art {
  height: 155px;
  margin: 20px 0 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f4f0e5;
}
.featured .card-art {
  background: #0c2d59;
}
.junior-art:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid #e2d7b7;
  border-radius: 50%;
}
.book {
  position: absolute;
  width: 75px;
  height: 94px;
  border: 5px solid white;
  box-shadow: 4px 7px 0 #c7ad68;
}
.book-one {
  background: #c2d4e6;
  transform: rotate(-16deg) translate(-32px, 3px);
}
.book-two {
  background: #f5ce5a;
  transform: rotate(10deg) translate(24px, -5px);
}
.book-three {
  background: #183c68;
  transform: rotate(3deg) translate(0, 8px);
}
.senior-art .orbit {
  position: absolute;
  border: 1px solid rgba(255, 201, 40, 0.55);
  border-radius: 50%;
  width: 190px;
  height: 65px;
  transform: rotate(-28deg);
}
.senior-art .orbit-two {
  transform: rotate(32deg);
}
.senior-art .orbit-three {
  transform: rotate(90deg);
  width: 150px;
  height: 75px;
}
.senior-art > span {
  font-family: Manrope, sans-serif;
  font-size: 47px;
  font-weight: 800;
  color: var(--gold);
}
.skills-art {
  background: #e9f0e8;
}
.skill-leaf,
.skill-pencil,
.skill-gear {
  position: absolute;
  font-size: 60px;
  color: #23563a;
}
.skill-leaf {
  left: 18%;
  top: 10%;
}
.skill-pencil {
  right: 20%;
  top: 20%;
  color: #c08c00;
  font-size: 70px;
}
.skill-gear {
  bottom: 0;
  left: 44%;
  font-size: 60px;
  color: #173e6e;
}
.academic-card h3 {
  font-size: 22px;
  margin: 0 0 4px;
}
.academic-card > p:nth-of-type(1) {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-text);
}
.featured > p:nth-of-type(1) {
  color: var(--gold);
}
.card-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 65px;
}
.featured .card-description {
  color: #c4d1e2;
}
.academic-card .text-link {
  margin-top: 15px;
}
.featured .text-link {
  color: white;
  border-color: #6d83a2;
}
.fine-print {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 18px;
  line-height: 1.7;
}
.admissions {
  padding: 20px 0 100px;
  background: var(--cream);
}
.admissions-panel {
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.admissions-panel:before {
  content: "";
  position: absolute;
  right: 25%;
  top: -180px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.025),
    0 0 0 75px rgba(255, 255, 255, 0.02);
}
.admissions-copy {
  position: relative;
  z-index: 1;
  padding: 50px 55px;
}
.admissions-copy h2,
.alumni-panel h2 {
  font-size: clamp(33px, 4vw, 45px);
  line-height: 1.2;
  margin-bottom: 17px;
}
.admissions-copy > p,
.alumni-panel p {
  max-width: 470px;
  color: #c0cde0;
  font-size: 12px;
  line-height: 1.9;
}
.admission-points {
  display: grid;
  gap: 8px;
  margin: 20px 0 25px;
  font-size: 11px;
  color: #e3eaf3;
}
.admission-points b {
  color: var(--gold);
  margin-right: 8px;
}
.admissions-aside {
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  margin: 35px 0;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.admission-seal {
  width: 135px;
  height: 135px;
  border: 1px solid rgba(255, 201, 40, 0.6);
  outline: 1px solid rgba(255, 201, 40, 0.2);
  outline-offset: 8px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--gold);
}
.admission-seal span {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 47px;
  line-height: 1;
}
.admission-seal small {
  font-size: 7px;
  letter-spacing: 0.1em;
  margin-top: 8px;
}
.admission-aside-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admission-aside-text small {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #aebed4;
}
.admission-aside-text strong {
  font-family: Manrope, sans-serif;
  font-size: 20px;
}
.admission-aside-text span {
  font-size: 10px;
  color: #b6c5d9;
}
.aside-arrow {
  position: absolute;
  right: 28px;
  top: 28px;
  color: var(--gold);
  font-size: 25px;
}
.school-life {
  background: var(--surface);
}
.life-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
.life-card {
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.life-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.life-illustration {
  height: 205px;
  position: relative;
  overflow: hidden;
  background: #e9f0f8;
}
.campus-illustration {
  background: linear-gradient(#dfeaf4 0 65%, #b8cda8 65%);
}
.sun {
  position: absolute;
  right: 20%;
  top: 18%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffce50;
}
.school-building {
  position: absolute;
  bottom: 22%;
  left: 15%;
  width: 68%;
  height: 55%;
  background: #f8f5eb;
  border-top: 9px solid #173c68;
  box-shadow: inset 0 -7px #d3b15a;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.school-building:before {
  content: "";
  position: absolute;
  top: -27px;
  left: -4%;
  width: 108%;
  height: 20px;
  background: #173c68;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.school-building span {
  width: 15%;
  height: 35%;
  background: #8ba8c4;
  border: 3px solid #fff;
}
.school-building i {
  position: absolute;
  bottom: 0;
  width: 18%;
  height: 48%;
  background: #d9bd69;
}
.ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 22%;
  background: #7e9e68;
}
.book-illustration {
  background: #f6eed8;
}
.book-shape {
  width: 125px;
  height: 80px;
  position: absolute;
  top: 55px;
  left: calc(50% - 62px);
  background: linear-gradient(90deg, #173d6d 0 49%, #fff 49% 51%, #e7c15d 51%);
  transform: rotate(-8deg);
  box-shadow: 8px 9px 0 rgba(7, 29, 59, 0.1);
}
.book-shape:before,
.book-shape:after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 43%;
  border-top: 1px solid #c9d3df;
  border-bottom: 1px solid #c9d3df;
}
.book-shape:before {
  left: 5px;
}
.book-shape:after {
  right: 5px;
}
.spark {
  position: absolute;
  color: #b88a00;
  font-size: 30px;
}
.spark-a {
  top: 20px;
  right: 22%;
}
.spark-b {
  bottom: 24px;
  left: 18%;
}
.sports-illustration {
  background: #dbe8d6;
  display: grid;
  place-items: center;
}
.ball {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #f8f4e7;
  border: 6px solid #153e6e;
  position: absolute;
  top: 32px;
  left: calc(50% - 45px);
  box-shadow: 0 12px 0 rgba(7, 29, 59, 0.08);
}
.ball:before,
.ball:after {
  content: "";
  position: absolute;
  background: #153e6e;
}
.ball:before {
  width: 6px;
  height: 78px;
  left: 35px;
  top: 0;
  transform: rotate(35deg);
}
.ball:after {
  height: 6px;
  width: 78px;
  top: 35px;
  left: 0;
  transform: rotate(-25deg);
}
.field-line {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 1px;
  background: #a7c09f;
}
.sports-illustration > span {
  position: absolute;
  bottom: 27px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #315c3d;
}
.life-card-copy {
  padding: 20px 22px 23px;
}
.life-card-copy > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-text);
}
.life-card-copy h3 {
  font-size: 20px;
  margin: 8px 0;
}
.life-card-copy p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  min-height: 40px;
}
.life-card-copy b {
  font-size: 10px;
  color: var(--heading);
}
.gallery {
  background: var(--cream);
}
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.gallery-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gallery-tab {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 3px;
}
.gallery-tab.active,
.gallery-tab:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.gallery-tile {
  min-width: 0;
}
.gallery-art {
  height: 210px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tile-campus .gallery-art {
  background: linear-gradient(150deg, #e4edf5, #c4d6e8);
}
.tile-learning .gallery-art {
  background: linear-gradient(140deg, #f3e5b7, #fbf6e7);
}
.tile-events .gallery-art {
  background: linear-gradient(145deg, #0a2850, #174777);
}
.tile-activities .gallery-art {
  background: linear-gradient(145deg, #dce8d7, #b8d0af);
}
.mini-building {
  width: 65%;
  height: 80px;
  position: absolute;
  bottom: 42px;
  background: #f9f4e8;
  border-top: 8px solid #173c68;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.mini-building:before {
  content: "";
  position: absolute;
  top: -27px;
  left: -4%;
  width: 108%;
  height: 20px;
  background: #173c68;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.mini-building span {
  height: 32px;
  width: 15%;
  background: #94b1ce;
  border: 3px solid white;
}
.mini-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22%;
  background: #91ad80;
}
.open-book {
  width: 130px;
  height: 90px;
  display: flex;
  transform: rotate(-8deg);
  box-shadow: 7px 9px 0 rgba(7, 29, 59, 0.1);
}
.open-book i {
  display: block;
  width: 50%;
  background: #fff;
  border: 1px solid #d4dce6;
  border-top: 8px solid #163d6d;
}
.open-book i:first-child {
  border-radius: 6px 0 0 3px;
}
.open-book i:last-child {
  border-radius: 0 6px 3px 0;
  border-top-color: #d7ae38;
}
.art-label {
  position: absolute;
  bottom: 13px;
  left: 15px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--navy);
}
.tile-events .art-label {
  color: var(--gold);
}
.celebration-stars {
  font-size: 40px;
  line-height: 1.5;
  color: var(--gold);
  text-align: center;
  transform: rotate(-10deg);
}
.activity-ball {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 7px solid #183d69;
  background: #f9f5e8;
  position: relative;
}
.activity-ball:before,
.activity-ball:after {
  content: "";
  position: absolute;
  background: #183d69;
}
.activity-ball:before {
  height: 90px;
  width: 7px;
  left: 38px;
  top: -2px;
  transform: rotate(40deg);
}
.activity-ball:after {
  height: 7px;
  width: 90px;
  top: 39px;
  left: -2px;
  transform: rotate(-25deg);
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 2px;
  font-size: 11px;
  font-weight: 700;
}
.gallery-caption span:last-child {
  color: var(--gold-text);
}
.gallery-tile.is-hidden {
  display: none;
}
.video-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.video-icon {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-size: 12px;
  flex-shrink: 0;
}
.video-callout strong {
  font-family: Manrope, sans-serif;
  font-size: 14px;
}
.video-callout p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.coming-soon {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--gold-text);
  background: var(--gold-soft);
  padding: 8px 10px;
}
.community-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.community-heading {
  padding: 18px 20px 18px 0;
}
.community-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.community-card {
  padding: 30px;
  border: 1px solid var(--line);
  position: relative;
}
.alumni-card {
  background: var(--cream);
}
.community-icon {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 24px;
  margin-bottom: 22px;
}
.community-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-text);
}
.community-card h3 {
  font-size: 26px;
  margin: 7px 0 10px;
  color: var(--heading);
}
.community-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  min-height: 65px;
}
.community-card .text-link {
  font-size: 10px;
}
.alumni {
  padding-top: 0;
}
.alumni-panel {
  background: var(--navy);
  color: white;
  padding: 42px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  position: relative;
  overflow: hidden;
}
.alumni-panel:after {
  content: "✦";
  position: absolute;
  right: 25%;
  top: -65px;
  font-size: 210px;
  color: rgba(255, 255, 255, 0.04);
}
.alumni-panel > div,
.alumni-panel > .button {
  position: relative;
  z-index: 1;
}
.alumni-panel h2 {
  margin-bottom: 12px;
}
.alumni-panel p {
  margin: 0;
  max-width: 590px;
}
.alumni-panel .button {
  flex-shrink: 0;
}
.news {
  background: var(--cream);
}
.news-empty {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.news-empty-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-text);
  border-radius: 50%;
  font-size: 25px;
}
.news-empty h3 {
  font-size: 21px;
  margin: 7px 0;
}
.news-empty p {
  font-size: 11px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 5px;
}
.news-date {
  display: flex;
  flex-direction: column;
  text-align: right;
  color: var(--subtle);
}
.news-date strong {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  color: var(--heading);
}
.news-date span {
  font-size: 8px;
  letter-spacing: 0.14em;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}
.contact-copy > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 390px;
  margin-bottom: 25px;
}
.contact-method {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 22px 0;
}
.contact-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--gold-text);
  font-size: 17px;
}
.contact-method div {
  display: flex;
  flex-direction: column;
}
.contact-method small {
  font-size: 8px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--gold-text);
}
.contact-method strong {
  font-size: 12px;
  margin: 3px 0;
}
.contact-method p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.contact-method p a {
  color: var(--heading);
  font-weight: 700;
}
.contact-form-wrap {
  background: var(--cream);
  padding: 34px;
}
.form-heading > span {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  font-weight: 800;
}
.form-heading h3 {
  font-size: 27px;
  margin: 6px 0;
}
.form-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 25px;
}
.contact-form-wrap form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form-wrap label {
  display: grid;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-2);
}
.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  padding: 12px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  font-size: 11px;
  color: var(--ink);
  font-weight: 400;
}
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  border-color: #b98a0b;
  box-shadow: 0 0 0 3px rgba(255, 201, 40, 0.15);
}
.contact-form-wrap textarea {
  resize: vertical;
}
.form-submit {
  justify-self: start;
  cursor: pointer;
}
.form-note,
.form-feedback {
  font-size: 9px;
  color: var(--subtle);
  line-height: 1.6;
  margin: 0;
}
.form-feedback {
  color: #1e6a3b;
  font-weight: 700;
}
.site-footer {
  background: #04152d;
  color: #c1cde0;
}
.footer-main {
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 45px;
}
.brand-footer .brand-copy strong {
  color: white;
}
.brand-footer .brand-copy small {
  color: #9cabc0;
}
.brand-footer img {
  width: 48px;
  height: 55px;
}
.footer-brand > p {
  max-width: 270px;
  font-size: 11px;
  line-height: 1.9;
  color: #9daec5;
  margin-top: 18px;
}
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 10px;
}
.footer-links > strong,
.footer-contact > strong {
  color: white;
  font-size: 12px;
  margin-bottom: 7px;
}
.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom a:hover {
  color: var(--gold);
}
.footer-contact p {
  font-size: 10px;
  line-height: 1.8;
  color: #9daec5;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom-inner {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #8495ad;
}
.motto {
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 800;
}
@media (max-width: 1319px) {
  .main-nav {
    gap: 16px;
  }
  .main-nav > a:not(.nav-cta) {
    font-size: 11.5px;
  }
  .main-nav .nav-cta {
    padding: 11px 13px;
  }
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--cream);
    cursor: pointer;
    transition: background 0.2s;
  }
  .menu-toggle:hover {
    background: #f3ecd8;
  }
  .menu-toggle span {
    width: 20px;
    margin: 2.5px 0;
    border-radius: 2px;
  }
  .menu-toggle span:nth-child(2) {
    width: 14px;
    justify-self: end;
  }
}
@media (max-width: 1050px) {
  .welcome-grid,
  .story-grid {
    gap: 55px;
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }
  .values-heading {
    grid-column: span 3;
  }
  .value-item {
    min-height: 90px;
  }
  .contact-grid {
    gap: 45px;
  }
}
@media (max-width: 800px) {
  .container {
    width: min(100% - 34px, 650px);
  }
  .topbar-inner {
    min-height: 34px;
  }
  .topbar-inner > span {
    font-size: 10px;
  }
  .top-links {
    gap: 12px;
    font-size: 10px;
  }
  .site-header {
    height: 76px;
  }
  .brand img {
    width: 44px;
    height: 54px;
  }
  .brand-copy strong {
    font-size: 16px;
  }
  .brand-copy small {
    font-size: 7px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 35px;
    padding-bottom: 30px;
  }
  .hero-copy {
    padding: 18px 0 0;
  }
  .hero h1 {
    font-size: clamp(42px, 9vw, 60px);
  }
  .hero-lede {
    font-size: 13px;
  }
  .hero-proof {
    margin-top: 25px;
  }
  .hero-visual {
    min-height: 340px;
    margin-top: 0;
  }
  .visual-glow {
    width: 250px;
    height: 250px;
  }
  .crest-frame {
    height: 315px;
    width: 280px;
  }
  .since-card {
    right: 2%;
    bottom: 16px;
  }
  .visual-note {
    left: 4%;
    bottom: 35px;
  }
  .hero-bottom-inner {
    gap: 12px;
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  .section-pad {
    padding: 70px 0;
  }
  .welcome-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .welcome-side {
    padding: 0;
  }
  .welcome-facts {
    padding-top: 18px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-heading {
    grid-column: span 2;
  }
  .story-art {
    max-width: 500px;
    padding-right: 25px;
  }
  .story-image {
    min-height: 330px;
  }
  .story-image img {
    max-height: 260px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 28px;
  }
  .section-heading > p {
    margin: 0;
  }
  .academic-cards {
    grid-template-columns: 1fr;
  }
  .academic-card {
    padding: 22px;
  }
  .card-art {
    height: 140px;
  }
  .card-description {
    min-height: 0;
  }
  .admissions {
    padding: 0 0 70px;
  }
  .admissions-panel {
    grid-template-columns: 1fr;
  }
  .admissions-copy {
    padding: 35px 27px;
  }
  .admissions-aside {
    margin: 0 27px 30px;
    padding: 30px 15px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .life-grid {
    grid-template-columns: 1fr 1fr;
  }
  .life-large {
    grid-column: span 2;
  }
  .life-illustration {
    height: 180px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-art {
    height: 180px;
  }
  .community-grid {
    grid-template-columns: 1fr 1fr;
  }
  .community-heading {
    grid-column: span 2;
    padding: 0;
  }
  .community-card {
    padding: 22px;
  }
  .alumni-panel {
    padding: 32px 27px;
    align-items: flex-start;
    flex-direction: column;
  }
  .news-empty {
    grid-template-columns: 50px 1fr;
    gap: 17px;
    padding: 22px;
  }
  .news-date {
    grid-column: 2;
    text-align: left;
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  .contact-grid {
    gap: 25px;
  }
  .contact-form-wrap {
    padding: 25px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-bottom-inner {
    padding: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .footer-bottom-inner > span:first-child {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .topbar-inner > span {
    max-width: 55%;
    line-height: 1.4;
  }
  .top-links {
    gap: 8px;
  }
  .top-links a {
    font-size: 9px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }
  .hero-actions .button {
    justify-content: space-between;
  }
  .hero-visual {
    min-height: 290px;
  }
  .crest-frame {
    height: 270px;
    width: 240px;
  }
  .visual-glow {
    width: 205px;
    height: 205px;
  }
  .since-card {
    padding: 9px 11px;
  }
  .since-card strong {
    font-size: 11px;
  }
  .since-card small {
    font-size: 7px;
  }
  .visual-note {
    font-size: 7px;
  }
  .hero-bottom-inner {
    gap: 8px;
    min-height: 48px;
  }
  .hero-bottom-inner span:last-of-type {
    display: none;
  }
  .welcome-quote {
    padding: 30px 25px;
  }
  .welcome-quote p {
    font-size: 23px;
  }
  .welcome-facts strong {
    font-size: 16px;
  }
  .welcome-facts span {
    font-size: 9px;
  }
  .values-grid {
    gap: 22px 13px;
  }
  .value-item {
    padding-left: 11px;
  }
  .value-item h3 {
    font-size: 14px;
  }
  .value-item p {
    font-size: 9px;
  }
  .story-image {
    min-height: 270px;
  }
  .story-image img {
    width: 62%;
  }
  .story-stamp {
    padding: 15px 17px;
  }
  .story-stamp strong {
    font-size: 28px;
  }
  .life-grid {
    grid-template-columns: 1fr;
  }
  .life-large {
    grid-column: auto;
  }
  .life-illustration {
    height: 200px;
  }
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-grid {
    gap: 10px;
  }
  .gallery-art {
    height: 145px;
  }
  .gallery-caption {
    font-size: 10px;
  }
  .coming-soon {
    display: none;
  }
  .video-callout {
    padding: 15px;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
  .community-heading {
    grid-column: auto;
  }
  .community-card p {
    min-height: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrap {
    padding: 20px;
  }
  .footer-main {
    gap: 28px 18px;
  }
  .footer-links,
  .footer-contact {
    font-size: 9px;
  }
  .footer-contact a {
    overflow-wrap: anywhere;
  }
  .motto {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   MULTI-PAGE ADDITIONS
   ========================================================= */

@media (max-width: 1023px) {
  .menu-toggle {
    place-content: center;
  }
}

/* ---------- Mobile drawer (Bootstrap offcanvas) ---------- */
.site-drawer.offcanvas {
  --bs-offcanvas-width: min(360px, 86vw);
  --bs-offcanvas-transition: transform 0.45s var(--ease);
  background: var(--navy);
  color: white;
  border: 0 !important;
  overflow: hidden;
}
.site-drawer:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(30, 77, 130, 0.65), transparent 55%),
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.035) 49%, transparent 50%) 0 0 / 56px 56px;
  pointer-events: none;
}
.site-drawer.offcanvas-start {
  border-radius: 0 26px 26px 0;
}
.site-drawer.offcanvas-end {
  border-radius: 26px 0 0 26px;
}
.offcanvas-backdrop {
  background: #020b18;
  backdrop-filter: blur(3px);
}
.offcanvas-backdrop.show {
  opacity: 0.55;
}
.drawer-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-drawer img {
  width: 40px;
  height: 46px;
}
.brand-drawer .brand-copy strong {
  color: white;
  font-size: 16px;
}
.brand-drawer .brand-copy small {
  color: #9cabc0;
  font-size: 7px;
}
.drawer-close {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.drawer-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.drawer-close span + span {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}
.drawer-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
}
.drawer-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #7f93b0;
  margin-bottom: 6px;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #dbe5f3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s, padding 0.25s var(--ease);
}
.drawer-nav a small {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6f84a3;
  width: 18px;
}
.drawer-nav a span {
  margin-left: auto;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.drawer-nav a:hover,
.drawer-nav a.active {
  color: white;
  padding-left: 10px;
}
.drawer-nav a:hover span,
.drawer-nav a.active span {
  opacity: 1;
  transform: none;
}
.drawer-nav a.active small {
  color: var(--gold);
}
.site-drawer.showing .drawer-nav a,
.site-drawer.show .drawer-nav a {
  animation: drawerItem 0.55s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}
@keyframes drawerItem {
  from {
    opacity: 0;
    transform: translateX(var(--drawer-shift, 24px));
  }
}
.offcanvas-start .drawer-nav {
  --drawer-shift: -24px;
}
.drawer-cta {
  margin-top: 24px;
  justify-content: space-between;
  border: 0;
  cursor: pointer;
}
.drawer-contact {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #c1cde0;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.drawer-contact a span {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 201, 40, 0.12);
  color: var(--gold);
  font-size: 12px;
}
.drawer-contact a:hover {
  color: white;
}
.drawer-motto {
  margin: auto 0 0;
  padding-top: 26px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-align: center;
}

/* ---------- Buttons ---------- */
button.button {
  cursor: pointer;
}
.button span {
  transition: transform 0.25s var(--ease);
}
.button:hover span {
  transform: translateX(3px);
}
.button-outline:hover span {
  transform: none;
}
.button-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}
.button-ghost:hover {
  border-color: var(--navy);
  background: var(--surface);
}
.text-link span {
  transition: transform 0.25s var(--ease);
}
.text-link:hover span {
  transform: translateX(4px);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  padding: 78px 0 86px;
}
.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(30, 77, 130, 0.75), transparent 45%),
    linear-gradient(115deg, #06172f 0%, #08234a 62%, #061a35 100%);
}
.page-hero .hero-pattern {
  opacity: 0.12;
}
.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin-bottom: 18px;
  max-width: 720px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.page-hero .hero-lede {
  max-width: 560px;
  margin-bottom: 0;
}
.page-hero .hero-actions {
  margin-top: 28px;
}
.page-hero-crest {
  position: relative;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
}
.page-hero-crest:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 201, 40, 0.07);
  box-shadow:
    0 0 0 1px rgba(255, 201, 40, 0.12),
    0 0 0 28px rgba(255, 255, 255, 0.025),
    0 0 0 58px rgba(255, 255, 255, 0.018);
  animation: pulseRing 6s ease-in-out infinite;
}
.page-hero-crest img {
  position: relative;
  width: 78%;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.3));
  animation: floatY 7s ease-in-out infinite;
}
.page-hero-symbol {
  position: relative;
  font-family: Manrope, sans-serif;
  font-size: 92px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  animation: floatY 7s ease-in-out infinite;
}
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #9fb2cc;
  margin-bottom: 22px;
}
.breadcrumb-trail a:hover {
  color: var(--gold);
}
.breadcrumb-trail i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.breadcrumb-trail span {
  color: white;
}
@keyframes floatY {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulseRing {
  50% {
    transform: scale(1.05);
  }
}

/* Load-in animation for hero copy */
.hero-copy > *,
.page-hero-copy > * {
  animation: riseIn 0.9s var(--ease) both;
}
.hero-copy > :nth-child(2),
.page-hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3),
.page-hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4),
.page-hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > :nth-child(5),
.page-hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}
.hero-visual .crest-frame img {
  animation: floatY 8s ease-in-out infinite;
}
.hero-visual {
  animation: fadeIn 1.2s var(--ease) 0.2s both;
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* ---------- Scroll reveal ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-reveal [data-reveal="left"] {
  transform: translateX(-34px);
}
.js-reveal [data-reveal="right"] {
  transform: translateX(34px);
}
.js-reveal [data-reveal="zoom"] {
  transform: scale(0.94);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Shared section bits ---------- */
.section-white {
  background: var(--surface);
}
.section-cream {
  background: var(--cream);
}
.section-heading.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.section-heading.centered .eyebrow {
  justify-content: center;
}
.section-heading.centered > p {
  max-width: 560px;
}
.prose p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
}
.prose h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.2;
  color: var(--heading);
  margin-bottom: 20px;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 38px 26px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat strong {
  font-family: Manrope, sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--heading);
}
.stat strong sup {
  color: var(--gold-2);
  font-size: 0.5em;
  top: -0.8em;
}
.stat > span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Explore / feature cards ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.2s;
}
.explore-card:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.explore-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.explore-card:hover:after {
  transform: scaleX(1);
}
.explore-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 22px;
  margin-bottom: 8px;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.explore-card:hover .explore-icon {
  background: var(--navy);
  color: var(--gold);
  transform: rotate(-8deg);
}
.explore-card h3 {
  font-size: 20px;
  margin: 0;
  color: var(--heading);
}
.explore-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}
.explore-card b {
  font-size: 11px;
  color: var(--heading);
  margin-top: 6px;
}
.explore-card b span {
  color: var(--gold-text);
  margin-left: 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.feature-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.feature-card {
  position: relative;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.feature-card.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.feature-card .community-icon {
  border-radius: 14px;
  margin-bottom: 18px;
}
.feature-card.dark .community-icon {
  background: rgba(255, 201, 40, 0.14);
  color: var(--gold);
}
.feature-card h3 {
  font-size: 20px;
  margin: 6px 0 10px;
  color: var(--heading);
}
.feature-card.dark h3 {
  color: white;
}
.feature-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.feature-card.dark p {
  color: #c0cde0;
}
.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.feature-card li {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
}
.feature-card li:before {
  content: "✦";
  color: var(--gold-2);
  font-size: 10px;
  line-height: 1.9;
}
.feature-card.dark li {
  color: #dbe5f3;
}

/* ---------- Vision & mission ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.vision-card {
  position: relative;
  padding: 44px 40px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.vision-card.dark {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.vision-card:after {
  content: attr(data-mark);
  position: absolute;
  right: 22px;
  bottom: -40px;
  font-family: Manrope, sans-serif;
  font-size: 160px;
  font-weight: 800;
  color: rgba(7, 29, 59, 0.04);
  line-height: 1;
}
.vision-card.dark:after {
  color: rgba(255, 255, 255, 0.05);
}
.vision-card h3 {
  font-size: 28px;
  margin: 6px 0 14px;
  color: var(--heading);
}
.vision-card.dark h3 {
  color: white;
}
.vision-card p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.vision-card.dark p {
  color: #c9d5e5;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 860px;
  margin-inline: auto;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 120px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(233, 171, 0, 0.15));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 42px;
  padding: 0 0 38px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: 113px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--gold-2);
  box-shadow: 0 0 0 6px var(--cream);
}
.timeline-year {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--heading);
  padding-right: 18px;
  text-align: right;
  line-height: 1.6;
}
.timeline-year small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold-text);
}
.timeline-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.timeline-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--heading);
}
.timeline-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

/* ---------- Leadership cards ---------- */
.leader-card {
  text-align: center;
  padding: 34px 26px 30px;
}
.leader-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f4e8bc, #e7eef7);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--heading);
  outline: 1px solid rgba(233, 171, 0, 0.45);
  outline-offset: 6px;
}
.feature-card.dark .leader-avatar {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}
.leader-card .community-label {
  display: block;
}

/* ---------- Class level cards ---------- */
.level-card {
  position: relative;
  padding: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.level-card.dark {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.level-card h3 {
  font-size: 30px;
  margin: 8px 0 12px;
  color: var(--heading);
}
.level-card.dark h3 {
  color: white;
}
.level-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 440px;
}
.level-card.dark > p {
  color: #c4d1e2;
}
.class-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
}
.class-chips span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--gold-soft);
  color: var(--gold-text);
}
.level-card.dark .class-chips span {
  background: rgba(255, 201, 40, 0.14);
  color: var(--gold);
}
.level-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.level-card li {
  display: flex;
  gap: 12px;
  font-size: 13px;
}
.level-card li b {
  color: var(--gold-2);
}

/* ---------- Accordion (Bootstrap, restyled) ---------- */
.sc-accordion {
  --bs-accordion-bg: var(--surface);
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: 16px;
  --bs-accordion-inner-border-radius: 15px;
  --bs-accordion-btn-padding-x: 24px;
  --bs-accordion-btn-padding-y: 20px;
  --bs-accordion-body-padding-x: 24px;
  --bs-accordion-body-padding-y: 4px;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(255, 201, 40, 0.3);
  --bs-accordion-active-bg: var(--surface);
  --bs-accordion-active-color: var(--heading);
  --bs-accordion-btn-color: var(--heading);
  display: grid;
  gap: 12px;
}
.sc-accordion .accordion-item {
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.sc-accordion .accordion-item:has(.accordion-collapse.show) {
  border-color: rgba(233, 171, 0, 0.5) !important;
  box-shadow: 0 18px 40px rgba(7, 29, 59, 0.07);
}
.sc-accordion .accordion-button {
  gap: 16px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 16px !important;
  box-shadow: none;
}
.sc-accordion .accordion-button:not(.collapsed) {
  box-shadow: none;
}
.sc-accordion .accordion-button:after {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--cream);
  background-image: none;
  content: "+";
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-text);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.sc-accordion .accordion-button:not(.collapsed):after {
  background-color: var(--navy);
  color: var(--gold);
  transform: rotate(135deg);
}
.acc-index {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-text);
}
.sc-accordion .accordion-body {
  padding-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.sc-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.tag-list span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 38px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.step-number {
  font-family: Manrope, sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-2);
}
.step h3 {
  font-size: 18px;
  margin: 16px 0 8px;
  color: var(--heading);
}
.step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ---------- Checklist + note ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.checklist li:hover {
  transform: translateX(4px);
  border-color: rgba(233, 171, 0, 0.5);
}
.checklist li b {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--navy);
  color: var(--gold);
}
.checklist li small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.note-box {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-size: 12px;
  color: var(--note-text);
  line-height: 1.75;
}
.note-box b {
  font-size: 18px;
  line-height: 1;
  color: var(--gold-text);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  border-radius: 24px;
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.cta-band:before {
  content: "";
  position: absolute;
  right: 18%;
  top: -190px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.025),
    0 0 0 75px rgba(255, 255, 255, 0.02);
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.cta-band p {
  color: #c0cde0;
  font-size: 13px;
  max-width: 520px;
  margin: 0;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Facility tiles ---------- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.facility {
  position: relative;
  min-height: 200px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s;
}
.facility-glyph {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 44px;
  line-height: 1;
  color: #e9ddb5;
  transition: transform 0.5s var(--ease), color 0.35s;
}
.facility h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--heading);
  transition: color 0.35s;
}
.facility p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  transition: color 0.35s;
}
.facility:hover {
  background: var(--navy);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.facility:hover h3 {
  color: white;
}
.facility:hover p {
  color: #c0cde0;
}
.facility:hover .facility-glyph {
  color: var(--gold);
  transform: scale(1.15) rotate(-8deg);
}

/* ---------- Faith band ---------- */
.faith-band {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.faith-band:after {
  content: "✝";
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 340px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
}
.faith-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.faith-grid h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.2;
}
.faith-grid p {
  color: #c0cde0;
  font-size: 13px;
  line-height: 1.95;
}
.faith-points {
  display: grid;
  gap: 14px;
}
.faith-point {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.faith-point b {
  color: var(--gold);
  font-size: 22px;
  line-height: 1.2;
}
.faith-point strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  margin-bottom: 3px;
}
.faith-point span {
  font-size: 12px;
  color: #b8c7da;
}

/* ---------- Gallery upgrades ---------- */
.gallery-tile {
  cursor: zoom-in;
  border-radius: 14px;
  outline-offset: 4px;
}
.gallery-art {
  border-radius: 14px;
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.gallery-tile:hover .gallery-art,
.gallery-tile:focus-visible .gallery-art {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gallery-art:after {
  content: "⤢";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--heading);
  font-size: 14px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.gallery-tile:hover .gallery-art:after,
.gallery-tile:focus-visible .gallery-art:after {
  opacity: 1;
  transform: none;
}
.gallery-tile:not(.is-hidden) {
  animation: riseIn 0.5s var(--ease) both;
}
.gallery-tab {
  border-radius: 999px;
  padding: 9px 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gallery-grid.large {
  grid-template-columns: repeat(4, 1fr);
}
.tile-wide {
  grid-column: span 2;
}
.tile-crest .gallery-art {
  background: radial-gradient(circle at 50% 40%, #f8f1da, #e7eef7);
}
.tile-crest .gallery-art img {
  position: absolute;
  inset: 11% 0 13%;
  width: 100%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(7, 29, 59, 0.15));
}
.tile-crest.dark .gallery-art {
  background: radial-gradient(circle at 50% 40%, #174777, #071d3b);
}
.tile-crest.dark .art-label {
  color: var(--gold);
}
.tile-chapel .gallery-art {
  background: linear-gradient(160deg, #f5ecd2, #e2d3a8);
}
.art-cross {
  position: relative;
  width: 70px;
  height: 100px;
}
.art-cross:before,
.art-cross:after {
  content: "";
  position: absolute;
  background: var(--navy);
  border-radius: 3px;
}
.art-cross:before {
  left: 28px;
  width: 14px;
  height: 100px;
}
.art-cross:after {
  top: 24px;
  width: 70px;
  height: 14px;
}
.tile-lab .gallery-art {
  background: linear-gradient(145deg, #dfe9f4, #f6f1e1);
}
.art-flask {
  position: relative;
  width: 80px;
  height: 100px;
}
.art-flask:before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 20px;
  height: 40px;
  border: 4px solid var(--navy);
  border-bottom: 0;
}
.art-flask:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 64px;
  background:
    linear-gradient(transparent 45%, #f5ce5a 45%) padding-box,
    var(--navy) border-box;
  border: 5px solid transparent;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.tile-library .gallery-art {
  background: linear-gradient(145deg, #0f2f5b, #1c4b7d);
}
.tile-library .art-label {
  color: var(--gold);
}
.art-shelf {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding-bottom: 6px;
  border-bottom: 5px solid var(--gold);
}
.art-shelf i {
  display: block;
  width: 18px;
  height: 80px;
  border-radius: 3px 3px 0 0;
  background: #c2d4e6;
}
.art-shelf i:nth-child(2) {
  height: 96px;
  background: var(--gold);
}
.art-shelf i:nth-child(3) {
  height: 70px;
  background: #fff;
}
.art-shelf i:nth-child(4) {
  height: 88px;
  background: #e88f6a;
  transform: rotate(8deg);
  transform-origin: bottom left;
}

/* Lightbox modal */
.lightbox-modal .modal-content {
  background: transparent;
  border: 0;
}
.lightbox-modal .modal-backdrop,
.modal-backdrop {
  --bs-backdrop-bg: #020b18;
  --bs-backdrop-opacity: 0.7;
}
.lightbox-frame {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}
.lightbox-stage .gallery-art {
  height: min(56vh, 460px);
  border-radius: 0;
  transform: none !important;
  box-shadow: none !important;
}
.lightbox-stage .gallery-art:after {
  display: none;
}
.lightbox-stage .gallery-art > :not(.art-label):not(img) {
  scale: 1.6;
}
.lightbox-stage .gallery-art .mini-building,
.lightbox-stage .gallery-art .mini-ground {
  scale: 1;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.lightbox-title {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--heading);
}
.lightbox-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.lightbox-nav {
  display: flex;
  gap: 8px;
}
.lightbox-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-nav button:hover {
  background: var(--navy);
  color: var(--gold);
}
.lightbox-frame .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(7, 29, 59, 0.85);
}

/* ---------- Enquiry modal ---------- */
.modal.fade .modal-dialog {
  transform: translateY(30px) scale(0.97);
  transition: transform 0.45s var(--ease);
}
.modal.show .modal-dialog {
  transform: none;
}
.enquiry-modal .modal-content {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(2, 11, 24, 0.35);
}
.enquiry-aside {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.enquiry-aside:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0, rgba(30, 77, 130, 0.8), transparent 55%);
}
.enquiry-aside > * {
  position: relative;
}
.enquiry-aside img {
  width: 70px;
  margin-bottom: 8px;
}
.enquiry-aside .eyebrow {
  margin: 0;
}
.enquiry-aside p {
  font-size: 12px;
  color: #c0cde0;
  line-height: 1.85;
}
.enquiry-aside a {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 20px;
}
.enquiry-aside a small {
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #aebed4;
}
.enquiry-main {
  position: relative;
  padding: 36px 34px 30px;
  background: var(--surface);
}
.enquiry-main h3 {
  font-size: 28px;
  margin: 6px 0 20px;
  color: var(--heading);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--navy);
  border-color: var(--navy);
}
.form-kicker {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  font-weight: 800;
}
.sc-form {
  display: grid;
  gap: 14px;
}
.sc-form label {
  display: grid;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-2);
}
.sc-form input,
.sc-form select,
.sc-form textarea {
  width: 100%;
  padding: 12px 13px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 12px;
  color: var(--ink);
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.sc-form input:focus,
.sc-form select:focus,
.sc-form textarea:focus {
  background: var(--surface);
  border-color: #b98a0b;
  box-shadow: 0 0 0 3px rgba(255, 201, 40, 0.18);
}
.sc-form textarea {
  resize: vertical;
}
.enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.contact-form-wrap {
  border-radius: 20px;
}
.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  border-radius: 8px;
}

/* ---------- Toast ---------- */
.toast-container {
  z-index: 1090;
}
.sc-toast {
  display: none;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 360px;
  padding: 12px 12px 12px 14px;
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(2, 11, 24, 0.3);
  font-size: 12px;
}
.sc-toast.show,
.sc-toast.showing {
  display: flex;
}
.toast-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
}
.sc-toast .toast-body {
  padding: 0;
  flex: 1;
}
.toast-close {
  width: 30px;
  height: 30px;
}

/* ---------- Footer additions ---------- */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 52px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-cta h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  color: white;
  margin: 0;
  max-width: 560px;
}
.footer-cta .eyebrow {
  margin-bottom: 12px;
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #dbe5f3;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.footer-links a,
.footer-contact a {
  transition: color 0.2s, transform 0.25s var(--ease);
}
.footer-links a:hover {
  transform: translateX(3px);
}

/* ---------- News ---------- */
.news-preview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.news-empty {
  border-radius: 18px;
}

/* ---------- Map ---------- */
.map-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 420px;
  background: #e9eef4;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85);
}
.map-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 300px;
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold);
}
.map-card strong {
  display: block;
  font-family: Manrope, sans-serif;
  color: var(--heading);
  font-size: 15px;
}
.map-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 10px;
}

/* ---------- Not found ---------- */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.not-found strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: clamp(90px, 16vw, 160px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--heading);
}
.not-found h2 {
  color: var(--heading);
}
.not-found strong span {
  color: var(--gold-2);
}
.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Rounded refinements on existing pieces ---------- */
.academic-card,
.life-card,
.community-card,
.video-callout,
.contact-method .contact-icon {
  border-radius: 16px;
}
.contact-method .contact-icon {
  border-radius: 12px;
}
.academic-card .card-art,
.welcome-quote,
.story-image {
  border-radius: 14px;
}
.life-card {
  overflow: hidden;
}
.admissions-panel,
.alumni-panel {
  border-radius: 24px;
}
.button {
  border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .explore-grid,
  .facility-grid,
  .feature-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:nth-child(2):after {
    display: none;
  }
  .split-grid,
  .faith-grid {
    gap: 45px;
  }
  .cta-band {
    padding: 44px;
  }
}
@media (max-width: 800px) {
  .page-hero {
    padding: 56px 0 64px;
  }
  .page-hero-inner {
    grid-template-columns: 1fr;
  }
  .page-hero-crest {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 26px 18px;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .feature-grid,
  .feature-grid.cols-2,
  .vision-grid,
  .split-grid,
  .faith-grid,
  .news-preview-grid {
    grid-template-columns: 1fr;
  }
  .vision-card,
  .level-card {
    padding: 32px 26px;
  }
  .timeline:before {
    left: 7px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
  }
  .timeline-item:before {
    left: 0;
  }
  .timeline-year {
    text-align: left;
  }
  .cta-band,
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band {
    padding: 36px 27px;
  }
  .enquiry-modal .modal-content {
    grid-template-columns: 1fr;
  }
  .enquiry-aside {
    display: none;
  }
  .gallery-grid.large {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile-wide {
    grid-column: span 2;
  }
  .map-frame {
    height: 360px;
  }
}
@media (max-width: 480px) {
  .explore-grid,
  .facility-grid,
  .feature-grid.cols-4,
  .steps {
    grid-template-columns: 1fr;
  }
  .step:after {
    display: none;
  }
  .facility {
    min-height: 160px;
  }
  .enquiry-main {
    padding: 30px 22px 24px;
  }
  .lightbox-stage .gallery-art {
    height: 300px;
  }
  .lightbox-stage .gallery-art > :not(.art-label):not(img) {
    scale: 1.2;
  }
  .map-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .page-hero .hero-actions {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
figure.gallery-tile {
  margin: 0;
}
button.text-link {
  background: none;
  border: 0;
  border-bottom: 1px solid #d6b44e;
  padding: 0 0 5px;
  cursor: pointer;
}

/* =========================================================
   TOP BAR, THEME TOGGLE, DARK MODE
   ========================================================= */

/* ---------- Icons ---------- */
.icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Top bar ---------- */
.top-address,
.top-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.top-address .icon,
.top-links .icon {
  color: var(--gold);
}
.label-short {
  display: none;
}
@media (max-width: 800px) {
  .topbar-inner {
    min-height: 40px;
    gap: 12px;
  }
  .top-address {
    font-size: 11px;
    gap: 6px;
    white-space: nowrap;
  }
  .top-address .label-full,
  .top-links .label-full {
    display: none;
  }
  .label-short {
    display: inline;
  }
  .top-links {
    gap: 6px;
  }
  .top-links a {
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }
  .top-links a:hover {
    background: rgba(255, 201, 40, 0.14);
  }
  .top-links .icon {
    width: 13px;
    height: 13px;
  }
}
@media (max-width: 480px) {
  .topbar-inner > span.top-address {
    max-width: none;
  }
  .top-links a {
    font-size: 10.5px;
    padding: 5px 9px;
  }
}
@media (max-width: 360px) {
  .top-address .label-short {
    display: none;
  }
}

/* ---------- Nav actions + theme toggle ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  border-color: var(--gold-2);
  transform: translateY(-1px);
}
.theme-toggle .icon {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.theme-toggle .icon-sun {
  color: var(--gold-2);
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}
@media (max-width: 1023px) {
  .menu-toggle {
    margin: 0;
  }
}
@media (max-width: 480px) {
  .theme-toggle,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}

/* ---------- Dark mode adjustments ---------- */
:root[data-theme="dark"] body {
  background: var(--bg);
}
:root[data-theme="dark"] .site-header {
  border-bottom-color: var(--line);
}
:root[data-theme="dark"] .brand-copy small {
  color: #8798b0;
}
:root[data-theme="dark"] .main-nav {
  color: #aab7c9;
}
:root[data-theme="dark"] .menu-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .menu-toggle:hover {
  background: #13253d;
}
:root[data-theme="dark"] .button-navy,
:root[data-theme="dark"] .main-nav .nav-cta {
  background: #1d3d6b;
}
:root[data-theme="dark"] .button-navy:hover,
:root[data-theme="dark"] .main-nav .nav-cta:hover {
  background: #26508a;
}
:root[data-theme="dark"] .button-ghost {
  border-color: var(--line);
}
:root[data-theme="dark"] .button-ghost:hover {
  border-color: var(--gold);
  background: transparent;
}
:root[data-theme="dark"] .hero:before {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(30, 77, 130, 0.55), transparent 43%),
    linear-gradient(115deg, #040d1a 0%, #071a36 62%, #050f20 100%);
}
:root[data-theme="dark"] .values-strip,
:root[data-theme="dark"] .faith-band {
  background: #0b1f3b;
}
:root[data-theme="dark"] .stats-band {
  background: var(--bg);
}
:root[data-theme="dark"] .card-art,
:root[data-theme="dark"] .skills-art {
  background: rgba(255, 255, 255, 0.04);
}
:root[data-theme="dark"] .featured .card-art {
  background: rgba(0, 0, 0, 0.2);
}
:root[data-theme="dark"] .junior-art:before {
  border-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .story-image {
  background: radial-gradient(circle at 50% 45%, #15315a, #0b1a2e 70%);
}
:root[data-theme="dark"] .story-image:before,
:root[data-theme="dark"] .story-image:after {
  border-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .image-caption {
  color: #c9b27a;
}
:root[data-theme="dark"] .academic-card.featured,
:root[data-theme="dark"] .feature-card.dark,
:root[data-theme="dark"] .vision-card.dark,
:root[data-theme="dark"] .level-card.dark {
  background: #112b50;
  border-color: #1a3a66;
}
:root[data-theme="dark"] .leader-avatar {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}
:root[data-theme="dark"] .vision-card:after {
  color: rgba(255, 255, 255, 0.04);
}
:root[data-theme="dark"] .timeline-item:before {
  background: var(--bg);
}
:root[data-theme="dark"] .contact-icon {
  border-color: var(--line);
}
:root[data-theme="dark"] .sc-form input,
:root[data-theme="dark"] .sc-form select,
:root[data-theme="dark"] .sc-form textarea,
:root[data-theme="dark"] .contact-form-wrap input,
:root[data-theme="dark"] .contact-form-wrap select,
:root[data-theme="dark"] .contact-form-wrap textarea {
  background: #081424;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}
:root[data-theme="dark"] .sc-form label,
:root[data-theme="dark"] .contact-form-wrap label {
  color: var(--text-2);
}
:root[data-theme="dark"] .form-feedback {
  color: #6fd59a;
}
:root[data-theme="dark"] .enquiry-main,
:root[data-theme="dark"] .lightbox-frame {
  background: var(--surface);
}
:root[data-theme="dark"] .sc-accordion .accordion-button:after {
  background-color: rgba(255, 255, 255, 0.06);
}
:root[data-theme="dark"] .sc-accordion .accordion-button:not(.collapsed):after {
  background-color: var(--gold);
  color: var(--on-gold);
}
:root[data-theme="dark"] .tag-list span {
  background: rgba(255, 255, 255, 0.04);
}
:root[data-theme="dark"] .checklist li b {
  background: var(--gold);
  color: var(--on-gold);
}
:root[data-theme="dark"] .gallery-tab {
  color: var(--text-2);
}
:root[data-theme="dark"] .gallery-tab.active,
:root[data-theme="dark"] .gallery-tab:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}
:root[data-theme="dark"] .gallery-art:after,
:root[data-theme="dark"] .lightbox-nav button {
  background: var(--surface);
  border-color: var(--line);
}
:root[data-theme="dark"] .gallery-caption span:last-child,
:root[data-theme="dark"] .text-link span {
  color: var(--gold);
}
:root[data-theme="dark"] .explore-card:hover .explore-icon {
  background: var(--gold);
  color: var(--on-gold);
}
:root[data-theme="dark"] .facility:hover {
  background: #112b50;
}
:root[data-theme="dark"] .facility-glyph {
  color: rgba(255, 201, 40, 0.25);
}
:root[data-theme="dark"] .map-frame {
  background: var(--surface);
}
:root[data-theme="dark"] .map-frame iframe {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95);
}
:root[data-theme="dark"] .site-footer {
  background: #030a14;
}
:root[data-theme="dark"] .not-found strong {
  color: var(--heading);
}
:root[data-theme="dark"] .welcome-quote {
  background: #112b50;
}

/* =========================================================
   CONTENT COMPONENTS (round 3)
   ========================================================= */

/* ---------- Community dropdown ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nav-dropdown-toggle .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}
.nav-dropdown-toggle:after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-2);
  transition: width 0.2s;
}
.nav-dropdown.active .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  color: var(--heading);
}
.nav-dropdown.active .nav-dropdown-toggle:after,
.nav-dropdown-toggle:hover:after {
  width: calc(100% - 17px);
}
.nav-dropdown-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.sc-dropdown.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  min-width: 290px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sc-dropdown.dropdown-menu.show {
  display: grid;
  animation: dropIn 0.3s var(--ease) both;
}
.sc-dropdown:before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.sc-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--heading);
  white-space: normal;
  transition: background 0.2s;
}
.sc-dropdown .dropdown-item:hover,
.sc-dropdown .dropdown-item:focus,
.sc-dropdown .dropdown-item.active {
  background: var(--cream);
  color: var(--heading);
}
.dd-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}
.sc-dropdown .dropdown-item:hover .dd-icon,
.sc-dropdown .dropdown-item.active .dd-icon {
  background: var(--navy);
  color: var(--gold);
}
.sc-dropdown .dropdown-item strong {
  display: block;
  font-size: 13px;
}
.sc-dropdown .dropdown-item small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Drawer community group */
.drawer-group-label {
  margin-top: 22px;
}
.drawer-subnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.drawer-subnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe5f3;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}
.drawer-subnav a span {
  color: var(--gold);
}
.drawer-subnav a:hover,
.drawer-subnav a.active {
  background: rgba(255, 201, 40, 0.12);
  border-color: rgba(255, 201, 40, 0.35);
  color: white;
}
.site-drawer.show .drawer-subnav a {
  animation: drawerItem 0.55s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}

/* ---------- Welcome letter ---------- */
.letter-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.letter-card {
  position: relative;
  padding: 44px 46px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.letter-card:before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 30px;
  font-family: Georgia, serif;
  font-size: 140px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}
.letter-card p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-2);
}
.letter-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.letter-sign img {
  width: 46px;
}
.letter-sign strong {
  display: block;
  font-family: Manrope, sans-serif;
  color: var(--heading);
  font-size: 15px;
}
.letter-sign span {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Reasons grid ---------- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.reason {
  padding: 34px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.reason:hover {
  background: var(--surface);
}
.reason b {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  color: var(--gold-text);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.reason h3 {
  font-size: 19px;
  color: var(--heading);
  margin-bottom: 8px;
}
.reason p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

/* ---------- Tabs (Bootstrap nav-pills, restyled) ---------- */
.sc-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.sc-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
  background: transparent;
  transition: background 0.25s, color 0.25s;
}
.sc-tabs .nav-link:hover {
  color: var(--heading);
}
.sc-tabs .nav-link.active {
  background: var(--navy);
  color: white;
}
:root[data-theme="dark"] .sc-tabs .nav-link.active {
  background: var(--gold);
  color: var(--on-gold);
}
.tab-pane.fade {
  transition: opacity 0.35s ease;
}

/* ---------- Subject grid ---------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.subject {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.subject:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
}
.subject i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 15px;
}
.subject small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}
.stream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stream-card {
  padding: 28px 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stream-card h3 {
  font-size: 20px;
  color: var(--heading);
  margin: 10px 0 14px;
}
.stream-card .tag-list {
  margin: 0;
}
.core-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  font-size: 12px;
}
.core-strip strong {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-right: 6px;
}
.core-strip span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

/* ---------- Exam cards ---------- */
.exam-card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.exam-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.exam-card h3 {
  font-size: 17px;
  color: var(--heading);
  margin: 16px 0 6px;
}
.exam-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.exam-card .exam-when {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-text);
}

/* ---------- Term / calendar cards ---------- */
.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.term-card {
  position: relative;
  padding: 30px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.term-card:after {
  content: attr(data-term);
  position: absolute;
  right: 18px;
  top: 6px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 90px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.12;
}
.term-card .community-label {
  display: block;
}
.term-card h3 {
  font-size: 22px;
  color: var(--heading);
  margin: 8px 0 4px;
}
.term-months {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-text);
}
.term-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}
.term-card li {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.term-card li:before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-2);
}

/* ---------- A school day ---------- */
.day-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.day-flow:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 23px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(233, 171, 0, 0.15));
}
.day-step {
  position: relative;
  padding: 0 14px 0 0;
}
.day-step b {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 18px;
  box-shadow: 0 0 0 6px var(--bg);
  margin-bottom: 18px;
}
.section-cream .day-step b {
  box-shadow: 0 0 0 6px var(--cream);
}
.day-step h3 {
  font-size: 16px;
  color: var(--heading);
  margin-bottom: 6px;
}
.day-step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Events list ---------- */
.event-list {
  display: grid;
  gap: 12px;
}
.event-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px 22px 16px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.event-row:hover {
  transform: translateX(4px);
  border-color: var(--gold-line);
}
.event-date {
  height: 74px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.event-date strong {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  color: var(--gold);
}
.event-date span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #c0cde0;
}
.event-row h3 {
  font-size: 16px;
  color: var(--heading);
  margin: 0 0 4px;
}
.event-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.event-tag {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--gold-soft);
  color: var(--gold-text);
  white-space: nowrap;
}

/* ---------- Leadership structure ---------- */
.org-chart {
  display: grid;
  gap: 14px;
  justify-items: center;
}
.org-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  position: relative;
}
.org-node {
  min-width: 200px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.org-node strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  color: var(--heading);
}
.org-node span {
  font-size: 11px;
  color: var(--muted);
}
.org-node.top {
  background: var(--navy);
  border-color: var(--navy);
}
.org-node.top strong {
  color: white;
}
.org-node.top span {
  color: #c0cde0;
}
.org-link {
  width: 2px;
  height: 18px;
  background: var(--gold-line);
}

/* ---------- Info table (hours, contacts) ---------- */
.info-table {
  display: grid;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.info-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.info-table div:last-child {
  border-bottom: 0;
}
.info-table span {
  color: var(--muted);
}
.info-table strong {
  color: var(--heading);
  text-align: right;
}

/* ---------- Pill badge ---------- */
.confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- Responsive for round 3 ---------- */
@media (max-width: 1050px) {
  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .day-flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 34px;
  }
  .day-flow:before {
    display: none;
  }
  .letter-grid {
    gap: 45px;
  }
}
@media (max-width: 800px) {
  .letter-grid,
  .term-grid,
  .stream-grid {
    grid-template-columns: 1fr;
  }
  .reason-grid {
    grid-template-columns: 1fr 1fr;
  }
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .letter-card {
    padding: 34px 26px;
  }
  .day-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-row {
    grid-template-columns: 70px 1fr;
    padding: 14px;
    gap: 16px;
  }
  .event-date {
    height: 64px;
  }
  .event-tag {
    grid-column: 2;
    justify-self: start;
  }
  .sc-tabs {
    border-radius: 18px;
  }
}
@media (max-width: 480px) {
  .reason-grid,
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .reason {
    padding: 26px 22px;
  }
  .day-flow {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .day-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 16px;
    padding: 0;
  }
  .day-step b {
    grid-row: span 2;
    margin: 0;
  }
  .org-node {
    min-width: 0;
    flex: 1 1 140px;
  }
  .info-table div {
    flex-direction: column;
    gap: 2px;
  }
  .info-table strong {
    text-align: left;
  }
  .sc-tabs .nav-link {
    padding: 9px 14px;
  }
}
.feature-card.dark .exam-badge {
  background: var(--gold);
  color: var(--on-gold);
}
#clubs .org-node {
  min-width: 0;
  flex: 1 1 120px;
  padding: 14px 12px;
}
#clubs .org-chart {
  gap: 10px;
  margin-top: 6px;
}

/* ---------- School portal ---------- */
.portal-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.portal-group-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.2;
  color: var(--heading);
  margin: 0;
}
.portal-group-head > p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portal-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 28px 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.3s;
}
.portal-card:before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  box-shadow:
    0 0 0 22px rgba(255, 201, 40, 0.05),
    0 0 0 46px rgba(255, 201, 40, 0.03);
  transition: transform 0.6s var(--ease);
}
.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-line);
}
.portal-card:hover:before {
  transform: scale(1.15);
}
.portal-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  margin-bottom: 14px;
  transition: transform 0.4s var(--ease);
}
.portal-icon .icon {
  width: 24px;
  height: 24px;
}
.portal-card:hover .portal-icon {
  transform: rotate(-6deg) scale(1.05);
}
.portal-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}
.portal-card h3 {
  font-size: 22px;
  color: var(--heading);
  margin: 0;
}
.portal-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.portal-go {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--heading);
}
.portal-go i {
  font-style: normal;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--on-gold);
  transition: transform 0.3s var(--ease);
}
.portal-card:hover .portal-go i {
  transform: translate(2px, -2px) rotate(8deg);
}
.portal-card.featured {
  background: var(--navy);
  border-color: var(--navy);
}
.portal-card.featured h3,
.portal-card.featured .portal-go {
  color: white;
}
.portal-card.featured p {
  color: #c0cde0;
}
.portal-card.featured .portal-icon {
  background: var(--gold);
  color: var(--on-gold);
}
.portal-card.featured .portal-tag {
  color: var(--gold);
}
.portal-card.featured .portal-go {
  border-color: rgba(255, 255, 255, 0.12);
}
:root[data-theme="dark"] .portal-card.featured {
  background: #112b50;
  border-color: #1a3a66;
}
.drawer-portal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 201, 40, 0.35);
  color: white;
  font-weight: 800;
  font-size: 13px;
}
.drawer-portal .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.drawer-portal span {
  margin-left: auto;
  color: var(--gold);
}
.drawer-portal:hover {
  background: rgba(255, 201, 40, 0.1);
}
@media (max-width: 1050px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .portal-group-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .portal-grid,
  .portal-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .portal-card {
    padding: 26px 22px 22px;
  }
}

/* ---------- Navbar portal button ---------- */
.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--heading);
  font-size: 12px;
  font-weight: 800;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.portal-btn .icon {
  width: 16px;
  height: 16px;
  color: var(--gold-text);
}
.portal-btn:hover,
.portal-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
  transform: translateY(-1px);
}
.portal-btn:hover .icon,
.portal-btn.active .icon {
  color: var(--on-gold);
}
@media (max-width: 1280px) {
  .portal-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .portal-btn span {
    display: none;
  }
}
@media (max-width: 480px) {
  .nav-actions {
    gap: 8px;
  }
  .portal-btn {
    width: 42px;
    height: 42px;
  }
}

/* ---------- Floating back-to-top ---------- */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 14px 30px rgba(2, 11, 24, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.4s var(--ease),
    background 0.2s;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top:hover {
  background: var(--navy-3);
  transform: translateY(-3px);
}
.scroll-top > .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}
.scroll-top:hover > .icon {
  transform: translateY(-2px);
}
.scroll-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 3;
}
.scroll-ring circle {
  stroke: rgba(255, 255, 255, 0.12);
}
.scroll-ring .scroll-ring-progress {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: var(--offset, 138.23);
  transition: stroke-dashoffset 0.1s linear;
}
:root[data-theme="dark"] .scroll-top {
  background: #1d3d6b;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.toast-container {
  bottom: 84px;
}
@media (max-width: 480px) {
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .toast-container {
    bottom: 72px;
  }
}

/* ---------- Navbar responsiveness: never wider than the screen ---------- */
html,
body {
  overflow-x: clip;
}
.nav-wrap {
  gap: 20px;
}
.brand {
  min-width: 0;
}
.brand-copy {
  min-width: 0;
}
.brand-copy small {
  white-space: nowrap;
}
.nav-actions {
  flex-shrink: 0;
}
.main-nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}
@media (max-width: 1199px) {
  .site-header {
    height: 76px;
  }
}
@media (max-width: 420px) {
  .container {
    width: calc(100% - 28px);
  }
  .site-header {
    height: 68px;
  }
  .nav-wrap {
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand img {
    width: 36px;
    height: 44px;
  }
  .brand-copy strong {
    font-size: 15px;
  }
  .brand-copy small {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .portal-btn,
  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .theme-toggle .icon {
    width: 17px;
    height: 17px;
  }
  .portal-btn .icon {
    width: 15px;
    height: 15px;
  }
  .menu-toggle span {
    width: 18px;
  }
  .menu-toggle span:nth-child(2) {
    width: 12px;
  }
}
@media (max-width: 340px) {
  .brand-copy strong {
    font-size: 14px;
  }
  .brand img {
    width: 32px;
    height: 40px;
  }
}
@media (max-width: 420px) {
  .stat {
    padding: 22px 12px;
  }
  .stat strong {
    font-size: clamp(21px, 7vw, 30px);
    overflow-wrap: anywhere;
  }
}

/* =========================================================
   LIGHT-MODE HEROES
   Heroes are navy by default (and in dark mode); in light mode
   they switch to a warm cream treatment with navy type.
   ========================================================= */
:root[data-theme="light"] {
  --hero-accent: #b07d00;
}
:root[data-theme="light"] .hero,
:root[data-theme="light"] .page-hero {
  background: #f7f2e6;
  color: var(--heading);
}
:root[data-theme="light"] .hero:before,
:root[data-theme="light"] .page-hero:before {
  background:
    radial-gradient(ellipse at 82% 28%, rgba(255, 201, 40, 0.24), transparent 46%),
    radial-gradient(ellipse at 10% 100%, rgba(18, 60, 112, 0.08), transparent 50%),
    linear-gradient(115deg, #fbf8f0 0%, #f5efe1 58%, #eef2f8 100%);
}
:root[data-theme="light"] .hero .hero-pattern,
:root[data-theme="light"] .page-hero .hero-pattern {
  opacity: 0.07;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(7, 29, 59, 0.55) 49%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(7, 29, 59, 0.4) 49%, transparent 50%);
}
:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .page-hero h1 {
  color: var(--heading);
}
:root[data-theme="light"] .hero h1 em,
:root[data-theme="light"] .page-hero h1 em {
  color: var(--hero-accent);
}
:root[data-theme="light"] .hero .hero-lede,
:root[data-theme="light"] .page-hero .hero-lede {
  color: var(--text-2);
}
:root[data-theme="light"] .hero .eyebrow.light,
:root[data-theme="light"] .page-hero .eyebrow.light {
  color: var(--gold-text);
}
:root[data-theme="light"] .hero .eyebrow.light > span,
:root[data-theme="light"] .page-hero .eyebrow.light > span {
  background: var(--gold-2);
}
:root[data-theme="light"] .hero .button-outline,
:root[data-theme="light"] .page-hero .button-outline {
  border-color: rgba(7, 29, 59, 0.22);
  color: var(--heading);
}
:root[data-theme="light"] .hero .button-outline:hover,
:root[data-theme="light"] .page-hero .button-outline:hover {
  background: rgba(7, 29, 59, 0.05);
  border-color: rgba(7, 29, 59, 0.4);
}
:root[data-theme="light"] .hero .button-outline span {
  border-color: rgba(7, 29, 59, 0.3);
}
:root[data-theme="light"] .breadcrumb-trail {
  color: var(--muted);
}
:root[data-theme="light"] .breadcrumb-trail span {
  color: var(--heading);
}
:root[data-theme="light"] .breadcrumb-trail a:hover {
  color: var(--hero-accent);
}
:root[data-theme="light"] .breadcrumb-trail i {
  background: var(--gold-2);
}
:root[data-theme="light"] .page-hero-crest:before {
  background: rgba(255, 201, 40, 0.14);
  box-shadow:
    0 0 0 1px rgba(233, 171, 0, 0.25),
    0 0 0 28px rgba(7, 29, 59, 0.03),
    0 0 0 58px rgba(7, 29, 59, 0.025);
}
:root[data-theme="light"] .page-hero-crest img {
  filter: drop-shadow(0 16px 18px rgba(7, 29, 59, 0.18));
}
:root[data-theme="light"] .page-hero-symbol {
  color: var(--gold-2);
  text-shadow: 0 10px 24px rgba(233, 171, 0, 0.25);
}
/* Home hero extras */
:root[data-theme="light"] .hero-proof strong {
  color: var(--heading);
}
:root[data-theme="light"] .hero-proof small {
  color: var(--muted);
}
:root[data-theme="light"] .proof-icon {
  border-color: var(--gold-line);
  color: var(--gold-text);
  background: rgba(255, 255, 255, 0.6);
}
:root[data-theme="light"] .visual-glow {
  background: rgba(255, 201, 40, 0.16);
  box-shadow:
    0 0 0 1px rgba(233, 171, 0, 0.22),
    0 0 0 35px rgba(7, 29, 59, 0.03),
    0 0 0 72px rgba(7, 29, 59, 0.022);
}
:root[data-theme="light"] .crest-frame img {
  filter: drop-shadow(0 18px 18px rgba(7, 29, 59, 0.2));
}
:root[data-theme="light"] .visual-note {
  color: var(--muted);
}
:root[data-theme="light"] .note-line {
  background: var(--gold-2);
}
:root[data-theme="light"] .hero-bottom {
  border-top-color: rgba(7, 29, 59, 0.1);
  background: rgba(255, 255, 255, 0.5);
}
:root[data-theme="light"] .hero-bottom-inner {
  color: var(--text-2);
}
:root[data-theme="light"] .hero-bottom i {
  background: var(--gold-2);
}
:root[data-theme="light"] .hero-bottom a {
  color: var(--hero-accent);
}
:root[data-theme="light"] .since-card {
  box-shadow: 0 18px 40px rgba(7, 29, 59, 0.12);
}
/* Let hero backgrounds fade with the rest of the page when toggling */
.hero:before,
.page-hero:before {
  transition: opacity 0.35s ease;
}

/* =========================================================
   HERO POLISH (both themes)
   ========================================================= */

/* Content sits above the ambient glow layer */
.hero-grid,
.hero-bottom,
.page-hero-inner {
  z-index: 1;
}

/* Ambient drifting glow */
.hero:after,
.page-hero:after {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 201, 40, 0.16), transparent 22%),
    radial-gradient(circle at 20% 78%, rgba(64, 128, 210, 0.16), transparent 24%);
  will-change: transform;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
:root[data-theme="light"] .hero:after,
:root[data-theme="light"] .page-hero:after {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 201, 40, 0.3), transparent 22%),
    radial-gradient(circle at 18% 80%, rgba(18, 60, 112, 0.1), transparent 25%);
}
@keyframes heroDrift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 3%, 0) scale(1.08);
  }
}

/* Pattern fades softly toward the edges */
.hero .hero-pattern,
.page-hero .hero-pattern {
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 65% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 65% 40%, #000 25%, transparent 78%);
}

/* Gold gradient headline accent with a slow shimmer */
.hero h1 em,
.page-hero h1 em {
  background: linear-gradient(100deg, #ffc928 0%, #ffe08a 22%, #ffc928 44%, #f0b000 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 7s ease-in-out infinite;
}
:root[data-theme="light"] .hero h1 em,
:root[data-theme="light"] .page-hero h1 em {
  background-image: linear-gradient(100deg, #a87400 0%, #d9a10d 22%, #a87400 44%, #8f6200 100%);
}
@keyframes goldShimmer {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}

/* Frosted-glass crest ring */
.page-hero-crest:after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}
.page-hero-crest > * {
  z-index: 1;
}
:root[data-theme="light"] .page-hero-crest:after {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 50px rgba(7, 29, 59, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Thin gold accent line along the bottom of every hero */
.page-hero > .container:last-of-type:after,
.hero-bottom:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.55;
}
.page-hero > .container:last-of-type:after {
  bottom: -86px;
}
.hero-bottom:before {
  top: -1px;
  bottom: auto;
}
:root[data-theme="light"] .hero-bottom {
  backdrop-filter: blur(8px);
}

/* Floating "Established" card: a touch more depth */
.since-card {
  border-radius: 14px;
  animation: floatY 9s ease-in-out infinite;
}
:root[data-theme="light"] .since-card {
  box-shadow:
    0 24px 50px rgba(7, 29, 59, 0.14),
    0 2px 6px rgba(7, 29, 59, 0.05);
}

/* Light-mode primary hero button gets a soft gold glow */
:root[data-theme="light"] .hero .button-gold,
:root[data-theme="light"] .page-hero .button-gold {
  box-shadow: 0 12px 28px rgba(233, 171, 0, 0.3);
}
:root[data-theme="light"] .hero .button-gold:hover,
:root[data-theme="light"] .page-hero .button-gold:hover {
  box-shadow: 0 16px 34px rgba(233, 171, 0, 0.4);
}

@media (max-width: 800px) {
  .page-hero > .container:last-of-type:after {
    bottom: -64px;
  }
}

/* =========================================================
   TRANSPARENT NAVBAR → GLASS ON SCROLL
   The hero slides up underneath the sticky header, so at the top of
   the page the header is see-through; once scrolled it turns to glass.
   ========================================================= */
:root {
  --header-h: 88px;
}
@media (max-width: 1199px) {
  :root {
    --header-h: 76px;
  }
}
@media (max-width: 420px) {
  :root {
    --header-h: 68px;
  }
}

.site-header {
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 10px 30px rgba(7, 29, 59, 0.08),
    inset 0 -1px 0 rgba(7, 29, 59, 0.06);
}
:root[data-theme="dark"] .site-header {
  border-bottom-color: transparent;
}
:root[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(6, 16, 29, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
/* Pages that don't open with a hero keep a soft surface behind the bar */
main > :first-child:not(.hero):not(.page-hero) {
  padding-top: calc(var(--header-h) + 60px);
  margin-top: calc(var(--header-h) * -1);
}

/* Pull the hero up under the header */
main > .hero:first-child,
main > .page-hero:first-child {
  margin-top: calc(var(--header-h) * -1);
}
main > .hero:first-child {
  padding-top: var(--header-h);
}
main > .page-hero:first-child {
  padding-top: calc(78px + var(--header-h));
}
@media (max-width: 800px) {
  main > .page-hero:first-child {
    padding-top: calc(56px + var(--header-h));
  }
}

/* Buttons in the bar read well on both transparent and glass states */
.site-header:not(.is-scrolled) .theme-toggle,
.site-header:not(.is-scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(7, 29, 59, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
:root[data-theme="dark"] .site-header:not(.is-scrolled) .theme-toggle,
:root[data-theme="dark"] .site-header:not(.is-scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.site-header.is-scrolled .theme-toggle,
.site-header.is-scrolled .menu-toggle {
  background: rgba(255, 255, 255, 0.7);
}
:root[data-theme="dark"] .site-header.is-scrolled .theme-toggle,
:root[data-theme="dark"] .site-header.is-scrolled .menu-toggle {
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   NAVBAR RESTORE: full links from 1024px, "More" dropdown,
   theme switch
   ========================================================= */

/* Compact desktop bar for smaller laptops (1024–1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .brand img {
    width: 44px;
    height: 52px;
  }
  .brand-copy strong {
    font-size: 16px;
  }
  .brand-copy small {
    display: none;
  }
  .main-nav {
    gap: 13px;
  }
  .main-nav > a:not(.nav-cta),
  .nav-dropdown-toggle {
    font-size: 11.5px;
  }
  .main-nav .nav-cta {
    display: none;
  }
}

/* Portal shortcut: hidden where the bar is tight (it's also in "More") */
@media (min-width: 1024px) and (max-width: 1279px) {
  .portal-btn {
    display: none;
  }
}
@media (max-width: 1439px) {
  .portal-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .portal-btn span {
    display: none;
  }
}
@media (max-width: 420px) {
  .portal-btn {
    width: 38px;
    height: 38px;
  }
}

/* Highlighted portal entry inside the dropdown */
.sc-dropdown .dd-portal {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  padding-top: 14px;
}
.sc-dropdown .dd-portal .dd-icon {
  background: var(--navy);
  color: var(--gold);
}
.sc-dropdown .dd-portal .dd-icon .icon {
  width: 16px;
  height: 16px;
}
.sc-dropdown .dd-portal:hover .dd-icon,
.sc-dropdown .dd-portal.active .dd-icon {
  background: var(--gold);
  color: var(--on-gold);
}

/* ---------- Theme switch (sun / moon) ---------- */
.theme-switch,
.drawer-theme {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.theme-switch-track {
  position: relative;
  display: block;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 3px rgba(7, 29, 59, 0.08);
  transition: background 0.3s, border-color 0.3s;
}
.theme-switch:hover .theme-switch-track {
  border-color: var(--gold-2);
}
.theme-switch-track .icon {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 15px;
  height: 15px;
  translate: 0 -50%;
  transition: color 0.3s, opacity 0.3s;
}
.ts-sun {
  left: 9px;
  color: var(--on-gold);
}
.ts-moon {
  right: 9px;
  color: var(--muted);
}
.theme-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(233, 171, 0, 0.45);
  transition: transform 0.45s var(--ease), background 0.3s, box-shadow 0.3s;
}
:root[data-theme="dark"] .theme-switch-track {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .theme-switch-knob {
  transform: translateX(30px);
  background: #1d3d6b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] .ts-sun {
  color: var(--muted);
}
:root[data-theme="dark"] .ts-moon {
  color: var(--gold);
}
.site-header:not(.is-scrolled) .theme-switch-track {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
:root[data-theme="dark"] .site-header:not(.is-scrolled) .theme-switch-track {
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 420px) {
  .theme-switch-track {
    width: 56px;
    height: 30px;
  }
  .theme-switch-knob {
    width: 22px;
    height: 22px;
  }
  :root[data-theme="dark"] .theme-switch-knob {
    transform: translateX(26px);
  }
  .theme-switch-track .icon {
    width: 13px;
    height: 13px;
  }
  .ts-sun {
    left: 7.5px;
  }
  .ts-moon {
    right: 7.5px;
  }
}
@media (max-width: 340px) {
  .theme-switch-track {
    width: 50px;
  }
  :root[data-theme="dark"] .theme-switch-knob {
    transform: translateX(20px);
  }
  .ts-sun,
  .ts-moon {
    display: none;
  }
}

/* Dark-mode row in the mobile drawer */
.drawer-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
.drawer-theme-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.drawer-theme-label .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}
.drawer-theme .theme-switch-track {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.drawer-theme .ts-moon {
  color: #9fb2cc;
}
:root[data-theme="dark"] .drawer-theme .ts-moon {
  color: var(--gold);
}

/* ---------- Navbar fit at every desktop width ---------- */
@media (min-width: 1200px) {
  .main-nav {
    gap: 15px;
  }
  .main-nav > a:not(.nav-cta),
  .nav-dropdown-toggle {
    font-size: 11.5px;
  }
  .main-nav .nav-cta {
    padding: 11px 13px;
    margin-left: 4px;
  }
}
/* Portal shortcut in the bar: phones/tablets, and very wide screens only.
   On laptops it lives in the Community dropdown. */
@media (min-width: 1024px) and (max-width: 1439px) {
  .portal-btn {
    display: none;
  }
}
@media (min-width: 1440px) {
  .portal-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .portal-btn span {
    display: none;
  }
}

/* ---------- Clearly visible active page inside the dropdown ---------- */
.sc-dropdown .dropdown-item.active {
  background: var(--gold-soft);
  box-shadow: inset 3px 0 0 var(--gold-2);
}
.sc-dropdown .dropdown-item.active strong {
  color: var(--gold-text);
}
:root[data-theme="dark"] .sc-dropdown .dropdown-item.active {
  background: rgba(255, 201, 40, 0.14);
  box-shadow: inset 3px 0 0 var(--gold);
}
:root[data-theme="dark"] .sc-dropdown .dropdown-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
}
:root[data-theme="dark"] .sc-dropdown .dropdown-item.active small {
  color: #c9b27a;
}
/* Active top-level link stays obvious on transparent and glass bars */
:root[data-theme="dark"] .main-nav > a.active,
:root[data-theme="dark"] .nav-dropdown.active .nav-dropdown-toggle {
  color: white;
}

/* =========================================================
   NAVBAR SAFETY + VERY SMALL / VERY LARGE SCREENS
   ========================================================= */

/* Collapsed by script.js when the links don't fit */
.site-header.nav-collapsed .main-nav {
  display: none;
}
.site-header.nav-collapsed .menu-toggle {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
}
.site-header.nav-collapsed .portal-btn {
  display: inline-flex;
}

/* The brand gives way before the buttons ever do */
.nav-wrap > .brand {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}
.brand-copy strong,
.brand-copy small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-actions {
  flex: 0 0 auto;
  margin-left: auto;
}
.nav-actions > * {
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--heading);
}

/* Large screens: wider content area */
@media (min-width: 1600px) {
  .container {
    width: min(1320px, calc(100% - 96px));
  }
}
/* 2K / 4K screens: scale the whole site up so it doesn't sit in a narrow column */
@media (min-width: 1920px) {
  html {
    zoom: 1.12;
  }
}
@media (min-width: 2400px) {
  html {
    zoom: 1.32;
  }
}
@media (min-width: 3000px) {
  html {
    zoom: 1.65;
  }
}
@media (min-width: 3600px) {
  html {
    zoom: 1.95;
  }
}
/* Brand on the left; links and buttons grouped together on the right */
.nav-wrap {
  justify-content: flex-end;
}
.nav-wrap > .brand {
  margin-right: auto;
}
.nav-actions {
  margin-left: 0;
}

/* Keep the active theme control and menu trigger visible in the shared header. */
.nav-actions .theme-switch {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}
.nav-actions .theme-switch-track {
  display: block;
}
.nav-actions .menu-toggle {
  flex: 0 0 auto;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
}
.nav-actions .menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--heading);
}
@media (max-width: 1023px) {
  .nav-actions .menu-toggle,
  .site-header.nav-collapsed .nav-actions .menu-toggle {
    display: grid;
    place-content: center;
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 420px) {
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .theme-switch {
    min-width: 40px;
    min-height: 40px;
  }
  .nav-actions .theme-switch-track {
    width: 56px;
    height: 30px;
  }
  .nav-actions .menu-toggle {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 340px) {
  .nav-actions .theme-switch-track {
    width: 50px;
  }
  .nav-actions .theme-switch-track .icon {
    display: block;
  }
}

/* =========================================================
   SINGLE THEME BUTTON (drawer row) + LIGHT-MODE SIDEBAR
   ========================================================= */
.drawer-theme {
  justify-content: flex-start;
  gap: 12px;
}
.drawer-theme-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 201, 40, 0.14);
  color: var(--gold);
}
.drawer-theme-icon .icon {
  position: absolute;
  width: 17px;
  height: 17px;
  transition: transform 0.45s var(--ease), opacity 0.25s;
}
.drawer-theme .icon-sun,
:root[data-theme="dark"] .drawer-theme .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
:root[data-theme="dark"] .drawer-theme .icon-sun {
  opacity: 1;
  transform: none;
}
.theme-label-light,
:root[data-theme="dark"] .theme-label-dark {
  display: none;
}
:root[data-theme="dark"] .theme-label-light {
  display: inline;
}

/* Light-mode sidebar */
:root[data-theme="light"] .site-drawer.offcanvas {
  background: var(--surface);
  color: var(--heading);
  box-shadow: -20px 0 60px rgba(7, 29, 59, 0.18);
}
:root[data-theme="light"] .site-drawer:before {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 201, 40, 0.18), transparent 50%),
    linear-gradient(135deg, transparent 48%, rgba(7, 29, 59, 0.035) 49%, transparent 50%) 0 0 / 56px 56px;
}
:root[data-theme="light"] .drawer-header {
  border-bottom-color: var(--line);
}
:root[data-theme="light"] .brand-drawer .brand-copy strong {
  color: var(--heading);
}
:root[data-theme="light"] .brand-drawer .brand-copy small,
:root[data-theme="light"] .drawer-label {
  color: var(--muted);
}
:root[data-theme="light"] .drawer-close {
  border-color: var(--line);
  background: var(--cream);
}
:root[data-theme="light"] .drawer-close span {
  background: var(--heading);
}
:root[data-theme="light"] .drawer-close:hover {
  background: var(--gold-soft);
}
:root[data-theme="light"] .drawer-nav a {
  color: var(--text-2);
  border-bottom-color: var(--line);
}
:root[data-theme="light"] .drawer-nav a small {
  color: var(--subtle);
}
:root[data-theme="light"] .drawer-nav a:hover,
:root[data-theme="light"] .drawer-nav a.active {
  color: var(--heading);
}
:root[data-theme="light"] .drawer-nav a span,
:root[data-theme="light"] .drawer-nav a.active small {
  color: var(--gold-text);
}
:root[data-theme="light"] .drawer-subnav a,
:root[data-theme="light"] .drawer-theme,
:root[data-theme="light"] .drawer-contact {
  background: var(--cream);
  border-color: var(--line);
  color: var(--heading);
}
:root[data-theme="light"] .drawer-subnav a span {
  color: var(--gold-text);
}
:root[data-theme="light"] .drawer-subnav a:hover,
:root[data-theme="light"] .drawer-subnav a.active {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--heading);
}
:root[data-theme="light"] .drawer-theme-icon {
  background: var(--navy);
  color: var(--gold);
}
:root[data-theme="light"] .drawer-portal {
  border-color: var(--gold-line);
  color: var(--heading);
}
:root[data-theme="light"] .drawer-portal .icon,
:root[data-theme="light"] .drawer-portal span {
  color: var(--gold-text);
}
:root[data-theme="light"] .drawer-portal:hover {
  background: var(--gold-soft);
}
:root[data-theme="light"] .drawer-contact a {
  color: var(--text-2);
}
:root[data-theme="light"] .drawer-contact a:hover {
  color: var(--heading);
}
:root[data-theme="light"] .drawer-contact a span {
  background: var(--gold-soft);
  color: var(--gold-text);
}
:root[data-theme="light"] .drawer-motto {
  color: var(--gold-text);
}
:root[data-theme="dark"] .site-drawer.offcanvas {
  background: #0b1a2f;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

/* Enquire button in hero button rows */
.hero-actions .button-enquire {
  gap: 10px;
}
.button-enquire .icon {
  width: 16px;
  height: 16px;
}
button.button-outline {
  background: transparent;
}
