/* =========================================================
   The Elysium School Design System
   Classical Academia x Modern Architecture x Discovery
   ========================================================= */

:root {
  --forest: #12352B;
  --forest-deep: #0E2A22;
  --navy: #17263D;
  --gold: #C8A45D;
  --gold-soft: rgba(200, 164, 93, 0.35);
  --ivory: #F7F3EA;
  --stone: #D9D4C8;
  --charcoal: #202522;
  --white: #FFFFFF;
  --cyan: #7EB8C9;

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;

  --container: min(1180px, calc(100% - 3rem));
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 12px 40px rgba(18, 53, 43, 0.12);
  --rule: 1px solid var(--gold-soft);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--gold);
  color: var(--forest);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.72rem;
}

.btn--gold {
  background: var(--gold);
  color: var(--forest);
}

.btn--gold:hover {
  background: #d4b574;
}

.btn--forest {
  background: var(--forest);
  color: var(--ivory);
}

.btn--forest:hover {
  background: #1a4638;
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 243, 234, 0.45);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

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

.btn--outline:hover {
  background: var(--forest);
  color: var(--ivory);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: height 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
  background: transparent;
}

.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--gold);
  box-shadow: 0 8px 30px rgba(18, 53, 43, 0.08);
}

.site-header.is-scrolled .nav__links a,
.site-header.is-scrolled .nav__portal {
  color: var(--forest);
}

.site-header.is-scrolled .nav__toggle span {
  background: var(--forest);
}

.nav {
  width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  position: relative;
}

.nav__logo {
  height: 48px;
  width: auto;
  transition: opacity 0.3s ease, height 0.35s var(--ease);
}

.nav__logo--dark {
  display: none;
}

.site-header.is-scrolled .nav__logo {
  height: 40px;
}

.site-header.is-scrolled .nav__logo--light {
  display: none;
}

.site-header.is-scrolled .nav__logo--dark {
  display: block;
}

.nav__center {
  display: flex;
  justify-content: center;
}

.nav__links {
  display: flex;
  gap: 1.6rem;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.88);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.3s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__links a.is-active {
  color: var(--gold);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-self: end;
}

.nav__portal {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.7);
  transition: color 0.3s ease;
}

.nav__portal:hover {
  color: var(--gold);
}

.nav__mobile-actions {
  display: none;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ivory);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav__toggle[aria-expanded="true"] span {
  background: var(--ivory);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--navy { background: var(--navy); color: var(--ivory); }

.section__header {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.section__header--light h2 {
  color: var(--ivory);
}

.section__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section__header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--forest);
}

.section__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.65;
  font-style: italic;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.eyebrow__sep {
  opacity: 0.5;
  margin-inline: 0.35rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  color: var(--ivory);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__campus {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 28s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 28, 22, 0.82) 0%, rgba(10, 28, 22, 0.55) 48%, rgba(23, 38, 61, 0.35) 100%),
    linear-gradient(to top, rgba(8, 20, 16, 0.75) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  width: 100%;
}

.hero__copy h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 1.5rem;
  color: var(--ivory);
}

.hero__copy h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero__lede {
  max-width: 38rem;
  font-size: 1.05rem;
  color: rgba(247, 243, 234, 0.85);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__trust {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.55);
}

.hero__day {
  background: rgba(247, 243, 234, 0.08);
  border: 1px solid rgba(200, 164, 93, 0.35);
  backdrop-filter: blur(16px);
  padding: 1.5rem 1.4rem;
  max-width: 280px;
  justify-self: end;
}

.hero__day-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--rule);
}

.hero__schedule {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__schedule li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.75rem;
  font-size: 0.88rem;
  align-items: baseline;
}

.hero__schedule time {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__day-note {
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Philosophy ---------- */
.philosophy__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.35;
  color: var(--forest);
  max-width: 48rem;
  margin: 0 0 1.75rem;
  border: 0;
  padding: 0;
}

.philosophy__quote span {
  display: block;
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--navy);
}

.philosophy__support {
  max-width: 40rem;
  color: rgba(32, 37, 34, 0.75);
  margin-bottom: 3.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: var(--rule);
  padding-top: 2.5rem;
}

.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.pillar h3 {
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.pillar p {
  color: rgba(32, 37, 34, 0.72);
  font-size: 0.98rem;
}

/* ---------- Academic Pathway ---------- */
.pathway {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
}

.pathway__stage {
  flex: 1 0 140px;
  min-width: 140px;
  padding: 1.5rem 1.1rem;
  border: 1px solid var(--stone);
  background: var(--ivory);
  scroll-snap-align: start;
  position: relative;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
  cursor: default;
}

.pathway__stage:hover,
.pathway__stage:focus-visible {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-4px);
  outline: none;
  z-index: 2;
}

.pathway__stage--final {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ivory);
}

.pathway__stage--final .pathway__num {
  color: var(--gold);
}

.pathway__stage--final:hover {
  background: var(--forest-deep);
}

.pathway__num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pathway__stage h3 {
  font-size: 1.35rem;
  color: inherit;
  margin-bottom: 0.75rem;
}

.pathway__stage--final h3 {
  color: var(--ivory);
}

.pathway__detail {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s var(--ease), max-height 0.4s var(--ease);
}

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

.pathway__detail strong {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.pathway__stage:hover .pathway__detail,
.pathway__stage:focus-visible .pathway__detail {
  opacity: 1;
  max-height: 160px;
}

.pathway__arrow {
  flex: 0 0 28px;
  align-self: center;
  height: 1px;
  background: var(--gold);
  position: relative;
}

.pathway__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: none) {
  .pathway__detail {
    opacity: 1;
    max-height: none;
  }
}

/* ---------- Learning Model ---------- */
.learning__track {
  position: relative;
}

.learning__path {
  display: none;
  width: 100%;
  height: 40px;
  margin-bottom: -20px;
}

.learning__path-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.learning.is-inview .learning__path-line {
  animation: drawLine 2s var(--ease) forwards;
}

.learning__panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.learning__panel {
  border: 1px solid rgba(200, 164, 93, 0.35);
  padding: 2rem 1.5rem;
  min-height: 240px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.learning__panel:hover {
  background: rgba(247, 243, 234, 0.06);
  border-color: var(--gold);
  transform: translateY(-6px);
}

.learning__num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}

.learning__panel h3 {
  font-size: 2rem;
  margin: 1rem 0 0.75rem;
  color: var(--ivory);
}

.learning__panel p {
  font-size: 0.95rem;
  color: rgba(247, 243, 234, 0.72);
  font-weight: 300;
}

/* ---------- Academic Disciplines ---------- */
.disciplines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(200, 164, 93, 0.25);
  border: 1px solid rgba(200, 164, 93, 0.35);
}

.discipline {
  background: rgba(8, 16, 28, 0.55);
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 120px;
  transition: background 0.35s var(--ease);
}

.discipline:hover {
  background: rgba(200, 164, 93, 0.1);
}

.discipline__subject {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--ivory);
}

.discipline__tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Classroom ---------- */
.classroom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.classroom__visual {
  border: 1px solid var(--stone);
  overflow: hidden;
}

.classroom__statement {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.35;
  color: var(--forest);
  margin: 1.5rem 0 2.5rem;
}

.classroom__statement em {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--navy);
}

.classroom__features {
  display: grid;
  gap: 1.5rem;
  border-top: var(--rule);
  padding-top: 1.75rem;
}

.classroom__features h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.classroom__features p {
  font-size: 0.95rem;
  color: rgba(32, 37, 34, 0.7);
}

/* ---------- Faculty ---------- */
.faculty__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.faculty__card {
  border: 1px solid var(--stone);
  background: var(--ivory);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.faculty__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.faculty__portrait {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(160deg, rgba(18, 53, 43, 0.15), rgba(23, 38, 61, 0.45)),
    linear-gradient(var(--stone), var(--stone));
  position: relative;
  overflow: hidden;
}

.faculty__portrait::after {
  content: "";
  position: absolute;
  inset: 18% 22% 12%;
  background: rgba(32, 37, 34, 0.35);
  border-radius: 50% 50% 45% 45%;
}

.faculty__portrait::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 45%;
  background: rgba(18, 53, 43, 0.45);
  border-radius: 40% 40% 0 0;
}

.faculty__portrait--1 { background-color: #c5b8a0; }
.faculty__portrait--2 { background-color: #a8b4b0; }
.faculty__portrait--3 { background-color: #b7a890; }
.faculty__portrait--4 { background-color: #9aabaf; }

.faculty__card h3,
.faculty__role,
.faculty__focus {
  padding-inline: 1.15rem;
}

.faculty__card h3 {
  margin-top: 1.15rem;
  font-size: 1.45rem;
  color: var(--forest);
}

.faculty__role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.35rem 0 0.75rem;
}

.faculty__focus {
  font-size: 0.85rem;
  color: rgba(32, 37, 34, 0.65);
  padding-bottom: 1.35rem;
}

/* ---------- Campus Map ---------- */
.campus__map-wrap {
  position: relative;
  border: 1px solid rgba(200, 164, 93, 0.35);
  background: var(--forest-deep);
}

.campus__map {
  width: 100%;
  height: auto;
}

.campus__building {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.campus__building:hover,
.campus__building:focus-visible {
  outline: none;
}

.campus__building:hover rect,
.campus__building:focus-visible rect,
.campus__building:hover ellipse,
.campus__building:focus-visible ellipse,
.campus__building:hover circle,
.campus__building:focus-visible circle {
  stroke: var(--gold);
  stroke-width: 2;
}

.campus__path-anim {
  stroke-dasharray: 8 10;
  animation: pathDash 18s linear infinite;
}

.campus__tooltip {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: 280px;
  padding: 1.1rem 1.25rem;
  background: rgba(247, 243, 234, 0.96);
  color: var(--charcoal);
  border-left: 2px solid var(--gold);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.campus__tooltip[hidden] {
  display: none;
}

.campus__tooltip-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--forest);
}

.campus__tooltip-purpose {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.campus__tooltip-xp {
  font-size: 0.9rem;
  color: rgba(32, 37, 34, 0.7);
}

.campus__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.55);
}

/* ---------- Library ---------- */
.library__stage {
  position: relative;
  margin-bottom: 2.5rem;
}

.library__viz {
  position: relative;
  height: clamp(280px, 42vw, 420px);
  background: linear-gradient(180deg, #E8DFC8 0%, #D4CBB4 100%);
  border: 1px solid var(--stone);
  overflow: hidden;
}

.library__shelves {
  position: absolute;
  inset: 12% 8% 28%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.library__shelves span {
  background:
    repeating-linear-gradient(
      90deg,
      #12352B 0 8px,
      #17263D 8px 14px,
      #C8A45D 14px 16px,
      #2A4A3C 16px 22px,
      transparent 22px 26px
    );
  opacity: 0.55;
  border: 1px solid rgba(18, 53, 43, 0.2);
}

.library__light {
  position: absolute;
  top: 0;
  right: 15%;
  width: 35%;
  height: 70%;
  background: linear-gradient(180deg, rgba(245, 235, 200, 0.7), transparent);
  pointer-events: none;
}

.library__tables {
  position: absolute;
  bottom: 12%;
  left: 20%;
  right: 20%;
  height: 12%;
  background: rgba(18, 53, 43, 0.25);
  box-shadow: 0 -20px 0 rgba(18, 53, 43, 0.08);
}

.library__readers {
  position: absolute;
  bottom: 18%;
  left: 30%;
  display: flex;
  gap: 4rem;
}

.library__readers span {
  width: 18px;
  height: 36px;
  background: rgba(18, 53, 43, 0.55);
  border-radius: 8px 8px 0 0;
}

.library__overlay-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.library__overlay-tags span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: rgba(247, 243, 234, 0.85);
  color: var(--forest);
  border: 1px solid var(--gold-soft);
  width: fit-content;
}

.library__quote {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: 16rem;
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(18, 53, 43, 0.92);
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  border-left: 2px solid var(--gold);
}

.library__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.library__cats li {
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--stone);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.library__cats li:hover {
  border-color: var(--gold);
  background: var(--white);
}

/* ---------- STEM ---------- */
.stem__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.stem__areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stem__area {
  border: 1px solid rgba(126, 184, 201, 0.25);
  padding: 1.25rem 1.1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.stem__area:hover {
  border-color: var(--cyan);
  background: rgba(126, 184, 201, 0.06);
}

.stem__area h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
}

.stem__screen {
  border: 1px solid rgba(126, 184, 201, 0.35);
  background: rgba(8, 16, 28, 0.65);
  overflow: hidden;
}

.stem__header-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(126, 184, 201, 0.2);
}

.stem__header-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(126, 184, 201, 0.4);
}

.stem__header-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.stem__modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(126, 184, 201, 0.15);
}

.stem__mod {
  background: #121c2c;
  padding: 1.25rem;
  min-height: 110px;
}

.stem__mod--wide {
  grid-column: 1 / -1;
}

.stem__mod span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.stem__mod code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--cyan);
}

.stem__mod p {
  font-size: 0.85rem;
  color: rgba(247, 243, 234, 0.7);
}

.stem__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 48px;
}

.stem__bars i {
  flex: 1;
  background: var(--cyan);
  opacity: 0.7;
  animation: barPulse 2.8s ease-in-out infinite;
}

.stem__bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.stem__bars i:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.stem__bars i:nth-child(3) { height: 55%; animation-delay: 0.4s; }
.stem__bars i:nth-child(4) { height: 90%; animation-delay: 0.6s; }

.stem__orbit {
  width: 48px;
  height: 48px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  position: relative;
}

.stem__orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: orbit 4s linear infinite;
  transform-origin: 0 24px;
}

.stem__wave {
  height: 40px;
  background:
    radial-gradient(circle at 10% 50%, var(--cyan) 2px, transparent 3px),
    radial-gradient(circle at 30% 40%, var(--cyan) 2px, transparent 3px),
    radial-gradient(circle at 50% 60%, var(--cyan) 2px, transparent 3px),
    radial-gradient(circle at 70% 35%, var(--cyan) 2px, transparent 3px),
    radial-gradient(circle at 90% 55%, var(--cyan) 2px, transparent 3px);
  opacity: 0.7;
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.7); }
}

@keyframes orbit {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes pathDash {
  to { stroke-dashoffset: -200; }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ---------- Arts ---------- */
.arts__collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 1rem;
}

.arts__item {
  border: 1px solid var(--stone);
  background: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.arts__item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.arts__item--lg {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(160deg, #F7F3EA, #EDE4D0);
}

.arts__item--tall {
  grid-row: span 2;
}

.arts__item h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--forest);
  position: relative;
  z-index: 1;
}

.arts__sketch {
  position: absolute;
  inset: 10% 15%;
  border: 1px dashed rgba(200, 164, 93, 0.5);
  border-radius: 40% 60% 50% 50%;
  opacity: 0.5;
  animation: sketchFloat 8s ease-in-out infinite;
}

.arts__sketch--2 {
  border-radius: 20% 40% 60% 30%;
  inset: 20% 20%;
  animation-delay: -3s;
}

@keyframes sketchFloat {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.04); }
}

/* ---------- Character ---------- */
.character__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.character__pillar {
  border-top: 1px solid rgba(200, 164, 93, 0.45);
  padding-top: 1.75rem;
}

.character__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.character__pillar h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.character__pillar p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(247, 243, 234, 0.8);
}

/* ---------- Student Life ---------- */
.life__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.life__card {
  min-height: 140px;
  border: 1px solid var(--stone);
  display: flex;
  align-items: flex-end;
  padding: 1.35rem;
  background: var(--ivory);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.life__card:hover {
  transform: translateY(-5px) translateX(2px);
  background: var(--forest);
  border-color: var(--forest);
}

.life__card h3 {
  font-size: 1.5rem;
  color: var(--forest);
  transition: color 0.3s ease;
}

.life__card:hover h3 {
  color: var(--ivory);
}

/* ---------- Parents ---------- */
.partnership {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.partnership__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.partnership__cols h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--rule);
}

.partnership__cols li {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ---------- Admissions ---------- */
.admissions__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  counter-reset: none;
}

.admissions__steps li {
  border-top: 1px solid var(--gold);
  padding-top: 1.5rem;
}

.admissions__steps span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.admissions__steps h3 {
  font-size: 1.75rem;
  color: var(--forest);
  margin-bottom: 0.65rem;
}

.admissions__steps p {
  font-size: 0.95rem;
  color: rgba(32, 37, 34, 0.7);
}

.admissions__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- News ---------- */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news__card {
  border-top: 1px solid var(--gold);
  padding-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.35s var(--ease);
}

.news__card:hover {
  transform: translateY(-4px);
}

.news__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(32, 37, 34, 0.5);
}

.news__meta span {
  color: var(--gold);
  font-weight: 600;
}

.news__card h3 {
  font-size: 1.55rem;
  color: var(--forest);
}

.news__card > p {
  font-size: 0.95rem;
  color: rgba(32, 37, 34, 0.7);
  flex: 1;
}

.news__card > a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-top: 0.5rem;
}

.news__card > a:hover {
  color: var(--gold);
}

/* ---------- Calendar ---------- */
.calendar__timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}

.calendar__timeline::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-soft);
}

.calendar__timeline li {
  padding: 0 0.75rem 0 0;
  position: relative;
}

.calendar__timeline time {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  position: relative;
}

.calendar__timeline time::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  background: var(--white);
  border-radius: 50%;
}

.calendar__timeline span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--forest);
}

/* ---------- Why ---------- */
.why__compare {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border: 1px solid var(--stone);
}

.why__side {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.why__side h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.why__side li {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(32, 37, 34, 0.08);
}

.why__side--traditional {
  background: var(--white);
  color: rgba(32, 37, 34, 0.55);
}

.why__side--elysium {
  background: var(--forest);
  color: var(--ivory);
}

.why__side--elysium h3 {
  color: var(--gold);
}

.why__side--elysium li {
  border-bottom-color: rgba(247, 243, 234, 0.12);
  font-size: 1.65rem;
}

/* ---------- Future ---------- */
.future {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  color: var(--ivory);
  overflow: hidden;
}

.future__visual {
  position: absolute;
  inset: 0;
}

.future__visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.future__content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  max-width: 40rem;
  margin-left: max(1.5rem, calc((100% - var(--container)) / 2));
  margin-right: auto;
  width: auto;
}

.future__content h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.future__content p {
  font-size: 1.1rem;
  color: rgba(247, 243, 234, 0.78);
  font-weight: 300;
  max-width: 34rem;
}

/* ---------- Brand Statement ---------- */
.brand-statement {
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.brand-statement .container {
  width: 100%;
}

.brand-statement__line {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  color: var(--forest);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.brand-statement__school {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.9s var(--ease) 0.2s;
}

.brand-statement__school.is-visible {
  opacity: 1;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}

.final-cta__emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.07;
  pointer-events: none;
  width: min(420px, 70vw);
}

.final-cta__emblem img {
  width: 100%;
  height: auto;
  filter: brightness(2);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.final-cta h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.final-cta p {
  color: rgba(247, 243, 234, 0.75);
  margin-bottom: 2rem;
  font-weight: 300;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(247, 243, 234, 0.7);
  padding: 4rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(200, 164, 93, 0.2);
}

.footer__logo {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer__logo img {
  width: 56px;
  height: auto;
  filter: brightness(1.4);
}

.footer__logo strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}

.footer__logo em {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer__cols h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.footer__cols a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer__cols a:hover {
  color: var(--ivory);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  font-size: 0.82rem;
}

.footer__bottom ul {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom a:hover {
  color: var(--gold);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* ---------- Responsive ---------- */
@media (min-width: 1100px) {
  .learning__path {
    display: block;
  }
}

@media (max-width: 1024px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav__center {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 53, 43, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 105;
  }

  .nav__center.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav__links a {
    font-size: 1.1rem;
    color: var(--ivory);
  }

  .nav__right {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .nav__mobile-actions .nav__portal {
    color: rgba(247, 243, 234, 0.7);
  }

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

  .hero__day {
    justify-self: start;
  }

  .pillars,
  .learning__panels,
  .faculty__grid,
  .character__pillars,
  .life__grid,
  .admissions__steps,
  .news__grid,
  .disciplines {
    grid-template-columns: repeat(2, 1fr);
  }

  .classroom__grid,
  .stem__layout,
  .partnership,
  .footer__top,
  .why__compare {
    grid-template-columns: 1fr;
  }

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

  .calendar__timeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .calendar__timeline::before {
    display: none;
  }

  .calendar__timeline time {
    margin-bottom: 0.35rem;
  }

  .calendar__timeline time::before {
    display: none;
  }

  .calendar__timeline li {
    display: grid;
    grid-template-columns: 4rem 1fr;
    align-items: baseline;
    border-bottom: 1px solid var(--stone);
    padding-bottom: 0.85rem;
  }

  .pathway {
    flex-direction: column;
  }

  .pathway__arrow {
    flex: 0 0 24px;
    width: 1px;
    height: 24px;
    margin-inline: auto;
  }

  .pathway__arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }

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

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 2rem);
    --header-h: 72px;
  }

  .nav__logo {
    height: 36px;
  }

  .site-header.is-scrolled .nav__logo {
    height: 32px;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero__copy h1 {
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__day {
    max-width: none;
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .pillars,
  .learning__panels,
  .faculty__grid,
  .character__pillars,
  .life__grid,
  .admissions__steps,
  .news__grid,
  .stem__areas,
  .partnership__cols,
  .arts__collage,
  .disciplines {
    grid-template-columns: 1fr;
  }

  .arts__item--lg,
  .arts__item--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 160px;
  }

  .library__quote {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
    max-width: none;
  }

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

  .site-header.is-scrolled {
    --header-h: 60px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .brand-statement__line {
    opacity: 1;
    transform: none;
  }

  .hero__campus {
    animation: none;
  }
}
