:root {
  --green: #1b3b32;
  --deep: #122822;
  --cream: #f3ecdc;
  --maroon: #7a2e32;
  --ink: #1c1a16;
  --line: #d9d0bc;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.ticker {
  background: var(--maroon);
  color: #f3ecdc;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: var(--green);
  color: var(--cream);
}
.crest { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.crest-mark {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.75rem;
}
.nav nav { display: flex; gap: 1.6rem; font-size: 0.92rem; }
.menu-btn {
  display: none;
  background: none;
  border: none;
  width: 1.8rem;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 1px;
  background: var(--cream);
  margin: 5px 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78svh;
  padding: 5.5rem 1.4rem 2rem;
  color: var(--cream);
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem 1.6rem;
  border-radius: 1.25rem;
  background: rgba(18, 40, 34, 0.24);
  border: 1px solid rgba(243, 236, 220, 0.28);
  box-shadow: 0 24px 60px rgba(10, 20, 16, 0.22);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.latin {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 18ch;
  margin-bottom: 1.6rem;
}
.btn {
  align-self: flex-start;
  background: var(--cream);
  color: var(--green);
  padding: 0.8rem 1.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn:hover { background: #fff; }

.intro {
  padding: 3.2rem 2rem;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
  max-width: 46rem;
  margin: 0 auto;
}

.schools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.schools article {
  padding: 2.4rem 2rem;
  border-right: 1px solid var(--line);
}
.schools article:last-child { border-right: none; }
.schools h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--green);
}
.schools p { color: #4a453c; margin-bottom: 1.2rem; }
.schools span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 600;
}

.life { padding: 4rem 2rem; }
.life-copy {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.life h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.life-grid figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.life-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.life-grid .wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green);
  color: var(--cream);
  text-align: center;
}
.facts div { padding: 2.2rem 1rem; border-right: 1px solid rgba(243, 236, 220, 0.18); }
.facts div:last-child { border-right: none; }
.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
}
.facts span { font-size: 0.82rem; opacity: 0.85; }

.enquire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4.5rem 2.5rem;
}
.enquire h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.8rem;
}
form { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
input, select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem;
}
form button {
  background: var(--maroon);
  color: var(--cream);
  border: none;
  padding: 0.9rem;
  cursor: pointer;
  font-weight: 600;
}
form button:hover { background: #622428; }

footer {
  padding: 1.2rem 2rem 1.4rem;
  background: var(--deep);
  color: var(--cream);
  font-size: 0.82rem;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.powered {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.55;
  opacity: 0.85;
}
.powered a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  body { overflow-x: hidden; }
  .menu-btn { display: block; }
  .nav { position: relative; padding: 0.85rem 1.15rem; }
  .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep);
    flex-direction: column;
    padding: 1rem 1.15rem;
    gap: 0.8rem;
    z-index: 5;
  }
  .nav.open nav { display: flex; }
  .ticker { font-size: 0.68rem; line-height: 1.4; padding: 0.55rem 0.85rem; }
  .hero {
    min-height: 78svh;
    padding: 1.15rem;
    align-items: flex-end;
  }
  .hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
  .hero-content {
    width: 100%;
    min-height: auto;
    padding: 1.4rem 1.2rem;
    background: rgba(18, 40, 34, 0.28);
  }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); max-width: none; }
  .intro { padding: 2.4rem 1.15rem; font-size: 1.05rem; }
  .schools, .facts, .enquire, .life-grid { grid-template-columns: 1fr; }
  .schools article { border-right: none; border-bottom: 1px solid var(--line); padding: 1.8rem 1.15rem; }
  .life { padding: 2.8rem 1.15rem; }
  .life-grid .wide { aspect-ratio: 16 / 9; }
  .facts div { border-right: none; border-bottom: 1px solid rgba(243, 236, 220, 0.18); }
  .enquire { gap: 1.6rem; padding: 3rem 1.15rem; }
  .foot-row { flex-direction: column; gap: 0.35rem; }
  .btn, form button { width: 100%; text-align: center; }
}

/* Motion */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.08s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.36s; }

.hero,
.life-grid figure {
  overflow: hidden;
}
.hero > img {
  animation: kenburns 20s ease-out forwards;
}
.life-grid figure img {
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.life-grid figure:hover img {
  transform: scale(1.05);
}

.schools article {
  transition: background 0.3s ease, transform 0.3s ease;
}
.schools article:hover {
  background: #efe7d4;
  transform: translateY(-3px);
}

.facts strong {
  display: inline-block;
  transition: transform 0.35s ease;
}
.facts div:hover strong {
  transform: scale(1.08);
}

.btn,
form button {
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover,
form button:hover {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08) translate(1%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero > img,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
