:root {
  --ink: #243038;
  --heading: #1c2428;
  --muted: #5c6870;
  --page: #ffffff;
  --paper: #ffffff;
  --orange: #e87722;
  --blue: #2b9fe0;
  --line: rgba(28, 36, 40, 0.1);
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --card: #ffffff;
  --input: #f4f8f9;
  --input-ink: #1c2428;
  --header: 5.4rem;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --page-gloss: none;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #243038;
  --heading: #1c2428;
  --muted: #5c6870;
  --page: #ffffff;
  --paper: #ffffff;
  --line: rgba(28, 36, 40, 0.1);
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --card: #ffffff;
  --input: #f4f8f9;
  --input-ink: #1c2428;
  --page-gloss: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  scroll-padding-top: calc(var(--header) + 0.4rem);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 42% 32% at 6% 0%, rgba(43, 159, 224, 0.10), transparent 58%),
    radial-gradient(ellipse 38% 30% at 98% 6%, rgba(245, 166, 35, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 34% at 90% 100%, rgba(124, 191, 58, 0.10), transparent 58%),
    radial-gradient(ellipse 34% 26% at 4% 92%, rgba(43, 159, 224, 0.08), transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
}

html[data-theme="light"] body {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 42% 32% at 6% 0%, rgba(43, 159, 224, 0.10), transparent 58%),
    radial-gradient(ellipse 38% 30% at 98% 6%, rgba(245, 166, 35, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 34% at 90% 100%, rgba(124, 191, 58, 0.10), transparent 58%),
    radial-gradient(ellipse 34% 26% at 4% 92%, rgba(43, 159, 224, 0.08), transparent 55%);
  background-attachment: fixed;
}

.campus-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 36% at 12% 18%, rgba(43, 159, 224, 0.10), transparent 62%),
    radial-gradient(ellipse 46% 40% at 88% 12%, rgba(245, 166, 35, 0.10), transparent 58%),
    radial-gradient(ellipse 40% 36% at 78% 88%, rgba(124, 191, 58, 0.10), transparent 58%),
    #ffffff;
}

html[data-theme="light"] .campus-scene {
  background:
    radial-gradient(ellipse 50% 36% at 12% 18%, rgba(43, 159, 224, 0.10), transparent 62%),
    radial-gradient(ellipse 46% 40% at 88% 12%, rgba(245, 166, 35, 0.10), transparent 58%),
    radial-gradient(ellipse 40% 36% at 78% 88%, rgba(124, 191, 58, 0.10), transparent 58%),
    #ffffff;
}

.campus-scene .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.campus-scene .glow-sun {
  top: -4%;
  right: 6%;
  width: 220px;
  height: 220px;
  background: rgba(245, 166, 35, 0.18);
}

.campus-scene .glow-yard {
  left: -8%;
  bottom: 8%;
  width: 320px;
  height: 320px;
  background: rgba(43, 159, 224, 0.14);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.12;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: var(--header-bg);
  border-bottom: 0;
  box-shadow: 0 8px 24px rgba(28, 36, 40, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

html[data-theme="light"] .site-header {
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 36, 40, 0.08);
}

.header-inner {
  height: 100%;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand { display: flex; margin-right: auto; }
.brand img { height: 52px; width: auto; max-width: min(320px, 46vw); object-fit: contain; }

.site-nav { display: flex; gap: 1.15rem; }
.site-nav a {
  color: var(--heading);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-theme="light"] .site-nav a,
html[data-theme="light"] .header-phone { color: var(--heading); }
html[data-theme="light"] .nav-toggle { border-color: var(--line); background: #fff; }
html[data-theme="light"] .nav-toggle span { background: var(--heading); }
.site-nav a:hover,
.site-nav a.is-active { color: #ffb089; }

.header-phone {
  color: var(--heading);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.btn,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
}
.btn:hover,
.header-cta:hover { transform: translateY(-2px); }

.header-cta,
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover, .header-cta:hover { filter: brightness(1.08); }
.btn-line {
  background: transparent;
  color: var(--heading);
  border: 1px solid rgba(30, 58, 76, 0.22);
}

.theme-toggle {
  display: none !important;
  position: relative;
  width: 4.15rem;
  height: 2.2rem;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
}
.theme-toggle svg {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  pointer-events: none;
}
.theme-toggle-sun { color: var(--orange); }
.theme-toggle-moon { color: var(--blue); }
.theme-toggle-moon svg { fill: currentColor; stroke: none; }
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(1.85rem);
  transition: transform 0.25s ease;
}
html[data-theme="light"] .theme-toggle-thumb { transform: translateX(0); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.opening {
  position: relative;
  min-height: calc(100dvh - var(--header));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: visible;
}

.opening-stack {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 2.5rem));
  margin: -9vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admit-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.15rem 1rem 1.35rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(110deg, var(--orange) 0%, var(--orange) 28%, var(--blue) 62%, var(--orange) 100%);
  background-size: 220% 100%;
  animation: banner-shift 2.8s linear infinite, banner-glow 1.5s ease-in-out infinite;
}
.admit-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.62) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: banner-flash 2.2s ease-in-out infinite;
  pointer-events: none;
}
.admit-banner strong,
.admit-banner span,
.admit-banner .btn { position: relative; z-index: 1; }
.admit-banner strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.admit-banner span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.98rem;
}
.admit-banner .btn {
  flex: 0 0 auto;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: btn-pulse 1.5s ease-in-out infinite;
}

.opening-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: translateZ(0) scale(1.06);
  backface-visibility: hidden;
  animation: hero-drift 36s ease-in-out infinite;
}

[data-hero] {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

[data-hero] img,
[data-hero] video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.opening-bg,
video.hero-photo {
  animation: none !important;
  transform: none;
  filter: none;
}

[data-hero] video.has-view {
  object-fit: cover;
  object-position: var(--hero-ox, 50%) var(--hero-oy, 32%);
  transform: scale(var(--hero-zoom, 1));
  transform-origin: var(--hero-ox, 50%) var(--hero-oy, 32%);
}

.opening::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 18, 0.28) 0%, rgba(12, 16, 18, 0.05) 34%, rgba(12, 16, 18, 0.78) 100%);
}

.opening-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 2.4rem 2.4rem 2.1rem;
  text-align: center;
  background: rgba(16, 22, 26, 0.24);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.opening-copy.has-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.opening-copy.has-logo .deck {
  color: #1e3a4c;
}
.opening-logo {
  margin: 0 auto 0.2rem;
  width: min(100%, 38rem);
  max-width: 100%;
  font-size: 0;
  line-height: 0;
  background: transparent;
}
.opening-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7.2rem;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.opening .kicker::after {
  content: "";
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.opening .kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 0.9rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 20px rgba(230, 77, 31, 0.35);
}
.opening .kicker::before,
.opening .kicker::after { display: none; }

.opening h1 {
  max-width: none;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 7.2vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  -webkit-font-smoothing: antialiased;
}
.opening h1 span {
  display: block;
  margin-top: 0.42rem;
  font-weight: 400;
  font-size: 0.34em;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--blue);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.opening .deck {
  max-width: 40rem;
  font-size: 1.35rem;
}

.deck {
  max-width: 34rem;
  margin: 0.9rem auto 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
}

.opening .btn { min-height: 52px; padding: 0.75rem 1.4rem; font-size: 1.05rem; }
.opening .btn-line,
.opening-copy.has-logo .btn-line {
  background: #fff;
  color: #1c2428;
  border: 2px solid #1c2428;
}
.opening .btn-line:hover,
.opening-copy.has-logo .btn-line:hover {
  background: #1c2428;
  color: #fff;
  filter: none;
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.wrap {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.about,
.pathway,
.way,
.office { width: min(1280px, calc(100% - 2.5rem)); margin-inline: auto; }

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 3rem 0 2.4rem;
}
.about h2,
.way h2 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
.quote {
  margin: 0.8rem 0 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.25;
}
.about-body p,
.lead,
.way p,
.site-footer p { margin: 0 0 0.75rem; color: var(--muted); }
.text-link { color: var(--orange); font-weight: 650; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.principles article { padding: 2rem 1.5rem 2.2rem; color: #fff; }
.principles article:nth-child(1) { background: var(--orange); }
.principles article:nth-child(2) { background: #1c2428; }
.principles article:nth-child(3) { background: var(--blue); }
.principles span,
.principles h3,
.principles p { color: #fff; }
.principles span { font-family: var(--serif); font-size: 1.5rem; }
.principles h3 { margin: 0.7rem 0 0.4rem; font-size: 2rem; }
.principles p { margin: 0; color: rgba(255, 255, 255, 0.92); }

.film {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(1100px, calc(100% - 2.5rem));
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
}
.film figure {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #d7e0e6;
}
.film img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.film figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  color: #fff;
  font-weight: 650;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pathway {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  padding: 3rem 0;
  align-items: center;
}
.pathway-mark p {
  margin: 0 0 0.3rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pathway h2 { font-size: clamp(4rem, 7vw, 6rem); color: var(--orange); }
.pathway ol { margin: 0.8rem 0 0; padding: 0; list-style: none; counter-reset: item; }
.pathway li {
  counter-increment: item;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.pathway li::before {
  content: counter(item, decimal-leading-zero);
  margin-right: 0.7rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
}

.way { padding: 2.8rem 0 0.4rem; }
.way h2 { margin-bottom: 1.2rem; }
.way-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.way article {
  padding: 1.15rem 1.1rem;
  background: var(--paper);
  border-top: 3px solid var(--orange);
}
.way article:nth-child(even) { border-top-color: var(--blue); }
.way h3 { margin-bottom: 0.35rem; font-size: 1.6rem; }

.office {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3.5rem;
  padding: 0;
}

.office-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.office-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  padding: 2rem;
  background:
    radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--orange) 28%, transparent), transparent 70%),
    #1c2428;
  color: #fff;
  text-align: left;
}

.office-side .kicker {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0 0 0.7rem;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-align: left;
}
.office-side .kicker::before,
.office-side .kicker::after {
  content: none;
  display: none;
  width: 0;
  height: 0;
}

.office-side h2 {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
}

.office-side .school-name {
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}

.office-side .address {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.office-side .hours {
  display: inline-flex;
  align-self: flex-start;
  margin: 0.85rem 0 1.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 22%, transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.enquire-links {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  width: 100%;
}
.enquire-links a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 0.8rem;
  min-height: 58px;
  padding: 0.5rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.enquire-links a:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.enquire-links span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  line-height: 1.25;
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.enquire-links small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.enquire-links svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), var(--blue));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enquire-form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.9rem;
  min-width: 0;
  padding: 2rem;
  background: var(--paper);
  color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.enquire-form label {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.enquire-form input,
.enquire-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(28, 36, 40, 0.12);
  border-radius: 12px;
  background: var(--input);
  color: var(--input-ink);
  padding: 0.7rem 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 1rem;
}

.enquire-form textarea { min-height: 110px; resize: vertical; }

.enquire-form input:focus,
.enquire-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent);
}

.enquire-form .btn {
  width: 100%;
  min-height: 52px;
  margin-top: 0.15rem;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--orange), var(--blue));
  font-size: 1rem;
}

.form-note {
  min-height: 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.4rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}
.site-footer img { height: 44px; width: auto; max-width: 240px; object-fit: contain; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer a { color: #ffb089; text-decoration: none; font-weight: 650; }

.reveal.will-rise {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.will-rise.is-in {
  opacity: 1;
  transform: none;
}

.film figure img,
.principles article,
.way article {
  transition: transform 0.45s ease;
}

.film figure:hover img { transform: none; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes banner-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@keyframes banner-flash {
  0%, 42% { transform: translateX(-130%); }
  78%, 100% { transform: translateX(140%); }
}
@keyframes banner-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(230, 77, 31, 0.45), 0 14px 32px rgba(0, 0, 0, 0.22); }
  50% { box-shadow: 0 0 28px rgba(19, 168, 226, 0.7), 0 14px 32px rgba(0, 0, 0, 0.22); }
}
@keyframes btn-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  50% { transform: scale(1.05); box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.35); }
}

@keyframes hero-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50% { transform: translate3d(-1.2%, -1%, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.is-in,
  .opening-bg,
  .admit-banner,
  .admit-banner::after,
  .admit-banner .btn { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  body,
  html[data-theme="light"] body {
    background-attachment: scroll;
  }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .header-phone {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    gap: 0;
    font-size: 0;
    line-height: 0;
    color: transparent;
  }
  .header-phone .ico-phone {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    color: var(--orange);
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    padding: 0.4rem 1.2rem 0.9rem;
    background: var(--header-bg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; color: inherit; }
  .header-inner {
    position: relative;
    padding: 0 0.7rem;
    gap: 0.45rem;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: auto;
  }
  .brand img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .header-cta {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
  }

  .opening {
    min-height: auto;
    justify-content: flex-start;
    padding: 0.7rem 0 1.2rem;
  }
  .opening-stack {
    width: min(880px, calc(100% - 1.2rem));
    margin: 0.7rem auto 0;
    gap: 0.7rem;
  }
  .opening-copy { padding: 1.15rem 1rem 1.05rem; }
  .opening-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.15rem;
  }
  .opening-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .opening .deck {
    margin-bottom: 0.85rem;
  }
  .admit-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .admit-banner .btn {
    width: 100%;
    justify-content: center;
  }
  .opening h1 {
    font-size: clamp(2rem, 9vw, 3.1rem);
    letter-spacing: 0.02em;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .opening h1 span {
    letter-spacing: 0.12em;
    text-indent: 0;
  }
  .opening-logo {
    font-size: 0;
  }
  .opening-logo img {
    max-height: 4.8rem;
    padding: 0;
    background: transparent;
  }
  .opening .kicker {
    flex-wrap: wrap;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }
  .opening .deck {
    font-size: 1.05rem;
    max-width: 100%;
  }
  .quote,
  .about h2,
  .way h2,
  .pathway h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .pathway h2 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .about,
  .pathway,
  .way,
  .office,
  .campus-gallery,
  .film {
    width: min(1280px, calc(100% - 1.2rem));
  }
  .about,
  .pathway,
  .way-grid,
  .office-card,
  .field-row,
  .principles,
  .film { grid-template-columns: minmax(0, 1fr); }
  .office-side .hours { white-space: normal; }
  .admit-banner { align-items: flex-start; flex-wrap: wrap; }
  .admit-banner .btn { min-height: 44px; }
  .site-footer {
    padding: 1rem 0.85rem;
    justify-content: center;
    text-align: center;
  }
}

html[data-theme="light"] .site-header {
  box-shadow: 0 8px 24px rgba(28, 36, 40, 0.08);
}

html[data-theme="light"] .site-nav a,
html[data-theme="light"] .header-phone {
  color: var(--heading);
}

html[data-theme="dark"] .enquire-form input,
html[data-theme="dark"] .enquire-form textarea,
html[data-theme="dark"] .enquire-form select {
  border-color: var(--line);
}

html[data-theme="light"] .way article,
html[data-theme="light"] .mission-grid article,
html[data-theme="light"] .chip-grid article,
html[data-theme="light"] .doc-grid a,
html[data-theme="light"] .space-grid li,
html[data-theme="light"] .video-slots article,
html[data-theme="light"] .empty-note {
  box-shadow: 0 10px 24px rgba(28, 36, 40, 0.06);
}
