:root {
  --bg: #edf1ea;
  --surface: rgba(251, 252, 249, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-dark: #203247;
  --line: rgba(24, 39, 54, 0.12);
  --line-strong: rgba(194, 164, 94, 0.28);
  --ink: #16212b;
  --muted: #5a6773;
  --accent: #5f6f34;
  --accent-strong: #2a425c;
  --accent-gold: #c2a45e;
  --accent-soft: rgba(95, 111, 52, 0.12);
  --shadow: 0 28px 70px rgba(19, 30, 40, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
  --motion-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-swift: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 164, 94, 0.18), transparent 24%),
    radial-gradient(circle at 85% 16%, rgba(95, 111, 52, 0.12), transparent 20%),
    linear-gradient(135deg, #f5f7f2 0%, #edf2eb 46%, #e7ece5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(31, 52, 73, 0.03) 0,
      rgba(31, 52, 73, 0.03) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(31, 52, 73, 0.03) 0,
      rgba(31, 52, 73, 0.03) 1px,
      transparent 1px,
      transparent 28px
    );
}

main {
  position: relative;
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(251, 252, 249, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(23, 36, 49, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(160deg, #24394f, #355472);
  color: #f6f2e5;
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(42, 66, 92, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.lang-button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 220ms var(--motion-spring),
    color 220ms var(--motion-spring),
    transform 220ms var(--motion-swift),
    box-shadow 220ms var(--motion-spring);
}

.lang-button:hover,
.lang-button:focus-visible {
  background: rgba(42, 66, 92, 0.08);
  color: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

.lang-button.is-active {
  background: linear-gradient(135deg, var(--accent-strong), #416180);
  color: #f7faf3;
  box-shadow: 0 10px 24px rgba(42, 66, 92, 0.18);
}

.site-nav a,
.menu-toggle {
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    background-color 220ms var(--motion-spring),
    color 220ms var(--motion-spring),
    transform 220ms var(--motion-swift),
    box-shadow 220ms var(--motion-spring);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(42, 66, 92, 0.1);
  color: var(--accent-strong);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42, 66, 92, 0.08);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(251, 252, 249, 0.86);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 72px 0 56px;
  align-items: stretch;
  perspective: 1200px;
}

.hero-copy,
.hero-panel,
.section-shell,
.stats-panel,
.info-card,
.teacher-card,
.feature-card,
.event-card,
.resource-item,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0)),
    linear-gradient(165deg, rgba(252, 253, 250, 0.96), rgba(242, 246, 240, 0.92));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy::before,
.hero-panel::before,
.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.48), transparent 26%, transparent 72%, rgba(194, 164, 94, 0.12)),
    radial-gradient(circle at top right, rgba(124, 211, 255, 0.12), transparent 28%);
  z-index: -1;
}

.hero-copy::after,
.section-shell::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      90deg,
      rgba(95, 111, 52, 0.04) 0,
      rgba(95, 111, 52, 0.04) 1px,
      transparent 1px,
      transparent 34px
    );
  opacity: 0.5;
  mix-blend-mode: screen;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Georgia", serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  max-width: 11ch;
}

.hero-text,
.section-text,
.info-card p,
.teacher-bio,
.feature-card p,
.event-card p,
.resource-item p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 240ms var(--motion-swift),
    box-shadow 240ms var(--motion-spring),
    background-color 240ms var(--motion-spring),
    border-color 240ms var(--motion-spring);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px) scale(1.01);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), #416180);
  color: #f8f9f5;
  box-shadow: 0 16px 34px rgba(42, 66, 92, 0.24);
}

.button-secondary {
  border: 1px solid rgba(42, 66, 92, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  box-shadow: 0 14px 28px rgba(27, 40, 54, 0.08);
}

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

.hero-points li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent));
  box-shadow: 0 0 0 4px rgba(194, 164, 94, 0.14);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(194, 164, 94, 0.18), transparent 28%),
    linear-gradient(160deg, #203247 0%, #314b67 100%);
  color: #f5f6f1;
  transform: translateZ(0);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(194, 164, 94, 0.16);
  background: radial-gradient(circle, rgba(194, 164, 94, 0.18), transparent 68%);
}

.status,
.label {
  position: relative;
  z-index: 1;
}

.status {
  width: max-content;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 164, 94, 0.2);
  font-size: 0.86rem;
}

.hero-panel-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.hero-emblem-frame {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 228px);
  aspect-ratio: 1;
  margin: 6px auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(194, 164, 94, 0.26);
  box-shadow:
    0 18px 36px rgba(8, 14, 20, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at center, rgba(34, 45, 56, 0.96), rgba(17, 24, 31, 1));
}

.hero-emblem-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(194, 164, 94, 0.18);
  pointer-events: none;
  z-index: 1;
}

.hero-emblem-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  z-index: 1;
}

.hero-emblem {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.04) contrast(1.04);
}

.label {
  color: rgba(241, 233, 205, 0.76);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-panel-block strong {
  font-size: 1.06rem;
  line-height: 1.55;
  font-weight: 600;
}

.hero-panel-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  color: rgba(245, 246, 241, 0.9);
}

.section {
  position: relative;
  padding: 0 0 clamp(180px, 24vh, 320px);
}

.section-stack {
  margin-top: -78px;
  z-index: calc(10 + var(--stack-index, 0));
}

#about.section-stack {
  margin-top: 0;
}

.section-shell {
  position: sticky;
  top: 102px;
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04)),
    linear-gradient(155deg, rgba(250, 252, 248, 0.92), rgba(238, 243, 240, 0.86));
  backdrop-filter: blur(18px) saturate(1.08);
  overflow: hidden;
  isolation: isolate;
  transform-origin: top center;
}

#about .section-shell {
  border-color: rgba(42, 66, 92, 0.14);
}

#disciplines .section-shell {
  border-color: rgba(95, 111, 52, 0.16);
}

#teachers .section-shell {
  border-color: rgba(124, 211, 255, 0.2);
}

#activity .section-shell {
  border-color: rgba(194, 164, 94, 0.22);
}

#events .section-shell {
  border-color: rgba(64, 110, 156, 0.18);
}

#resources .section-shell {
  border-color: rgba(95, 111, 52, 0.18);
}

#contacts .section-shell {
  border-color: rgba(42, 66, 92, 0.2);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 13ch;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(248, 250, 246, 0.96), rgba(240, 244, 238, 0.92));
}

.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.stat strong {
  display: block;
  color: var(--accent-strong);
  font-family: "Georgia", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.discipline-grid,
.feature-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.feature-card,
.event-card,
.resource-item,
.teacher-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 243, 0.88));
}

.info-card h3,
.teacher-card h3,
.feature-card h3,
.event-card h3 {
  margin: 16px 0 10px;
  font-size: 1.22rem;
}

.card-index,
.event-tag,
.teacher-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(42, 66, 92, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.82rem;
}

.teacher-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
}

.teacher-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(95, 111, 52, 0.18), rgba(42, 66, 92, 0.2)),
    linear-gradient(145deg, #eef3ec, #dce5dd);
  color: var(--accent-strong);
  font-family: "Georgia", serif;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
}

.teacher-copy {
  display: grid;
  gap: 10px;
}

.teacher-role {
  margin-bottom: 2px;
}

.teacher-card h3,
.teacher-bio,
.teacher-subjects {
  margin: 0;
}

.teacher-subjects {
  color: var(--accent);
  font-weight: 600;
  line-height: 1.6;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.contact-section .section-heading h2 {
  max-width: 10ch;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(248, 250, 246, 0.98), rgba(239, 244, 237, 0.94));
}

.contact-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.contact-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-item strong,
.contact-item a {
  line-height: 1.55;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 20px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.97);
  filter: blur(10px);
  transition:
    opacity 520ms var(--motion-spring),
    transform 900ms var(--motion-spring),
    filter 520ms var(--motion-spring);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

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

@media (max-width: 1080px) {
  .hero,
  .split-section,
  .discipline-grid,
  .feature-grid,
  .event-grid,
  .resource-list,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding-bottom: 44px;
  }

  .section-stack {
    margin-top: 0;
  }

  .section-shell {
    position: relative;
    top: auto;
    padding: 28px;
  }

  .section-heading h2,
  .contact-section .section-heading h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-actions {
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 10px;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav a {
    text-align: center;
  }

  .lang-switcher {
    align-self: flex-end;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy,
  .hero-panel,
  .section-shell,
  .info-card,
  .teacher-card,
  .feature-card,
  .event-card,
  .resource-item {
    padding: 22px;
  }

  .teacher-card {
    grid-template-columns: 1fr;
  }

  .teacher-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
