:root {
  --ink: #102027;
  --muted: #607077;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #dfe7e2;
  --green: #1f5d4d;
  --green-2: #0f3d35;
  --sage: #dce9df;
  --blue: #d9e9f6;
  --blush: #f4d6d3;
  --gold: #dba64a;
  --coral: #d77d68;
  --shadow: 0 24px 70px rgba(16, 32, 39, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
  padding: 16px 48px;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(223, 231, 226, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.97);
  box-shadow: 0 12px 34px rgba(16, 32, 39, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 228px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-line {
  color: var(--muted);
  font-size: 0.78rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #34464e;
  font-size: 0.9rem;
  font-weight: 750;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 68px;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 88px 0 72px;
}

.hero-content {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.6rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
}

h2 {
  margin-bottom: 20px;
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.55rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: #455a62;
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 16px 30px rgba(31, 93, 77, 0.22);
}

.button-secondary {
  color: var(--green-2);
  background: transparent;
  border-color: rgba(31, 93, 77, 0.28);
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-media::before {
  position: absolute;
  inset: 42px 38px -28px -30px;
  z-index: -1;
  background: var(--blue);
  border-radius: var(--radius);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 640px;
  min-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(330px, calc(100% - 48px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(16, 32, 39, 0.16);
}

.hero-note span,
.hero-note strong {
  display: block;
}

.hero-note span {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note strong {
  color: var(--green-2);
  font-size: 1.05rem;
  line-height: 1.35;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 32, 39, 0.06);
}

.intro-item {
  min-height: 136px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.intro-item:last-child {
  border-right: 0;
}

.intro-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.intro-item span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-copy {
  color: #40545b;
  font-size: 1.08rem;
}

.section-copy p:last-child,
.feature-content p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.principal-grid,
.split-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.split-feature {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.feature-photo {
  width: 100%;
  aspect-ratio: 1.16 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tall-photo {
  aspect-ratio: 0.9 / 1;
}

.statement-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  padding: 76px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--blush);
}

.statement-band p:last-child {
  margin-bottom: 0;
  color: #40545b;
  font-size: 1.12rem;
}

.admissions-section {
  padding-top: 78px;
}

.admissions-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(16, 32, 39, 0.08);
}

.program-list {
  display: grid;
  gap: 28px;
}

.program-card {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.program-card.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.82fr);
}

.program-card.reverse img {
  order: 2;
}

.program-card img {
  width: 100%;
  aspect-ratio: 1.12 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.program-card p {
  color: var(--muted);
}

.program-card p:last-child {
  margin-bottom: 0;
}

.program-age {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 92px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--green-2);
  color: var(--white);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.feature-content {
  max-width: 620px;
}

.feature-content .eyebrow,
.feature-content h2 {
  color: var(--white);
}

.feature-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 0.18em;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--green-2);
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

.check-list li::after {
  position: absolute;
  top: 0.55em;
  left: 6px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--green-2);
  border-left: 2px solid var(--green-2);
  content: "";
  transform: rotate(-45deg);
}

.dark-checks li {
  color: #40545b;
}

.gallery-section {
  padding-bottom: 82px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(16, 32, 39, 0.08);
}

.contact-section {
  padding: 0 max(20px, calc((100vw - var(--max)) / 2)) 96px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  gap: 34px;
  align-items: center;
  padding: 56px;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius);
}

.contact-panel .eyebrow,
.contact-panel h2 {
  color: var(--white);
}

.contact-panel p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-details {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.contact-details a,
.contact-details span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--white);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 48px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 1160px) {
  .site-header {
    min-height: 74px;
    padding-inline: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 22px 48px rgba(16, 32, 39, 0.16);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 12px;
  }

  .primary-nav a::after {
    display: none;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .hero,
  .principal-grid,
  .split-feature,
  .statement-band,
  .admissions-panel,
  .feature-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 42px;
    padding-top: 54px;
  }

  .hero-media {
    min-height: 0;
  }

  .hero-media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 0.82;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .intro-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-item:last-child {
    border-bottom: 0;
  }

  .program-card,
  .program-card.reverse {
    grid-template-columns: 1fr;
  }

  .program-card.reverse img {
    order: 0;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-line {
    display: none;
  }

  .hero,
  .intro-band,
  .section {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.12rem;
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero-copy,
  .section-copy,
  .statement-band p:last-child {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-media::before {
    inset: 26px 20px -18px -16px;
  }

  .hero-note {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .statement-band,
  .feature-band,
  .contact-section {
    padding-inline: 16px;
  }

  .admissions-panel,
  .program-card,
  .contact-panel {
    padding: 24px;
  }

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

  .site-footer {
    flex-direction: column;
    padding-inline: 16px;
  }
}
