:root {
  color-scheme: light;
  --ink: #172d2c;
  --muted: #4e605b;
  --paper: #fbf9f2;
  --accent: #e5a93f;
  --line: #dedbd0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, p, figure, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #a84226; outline-offset: 4px; }
svg, img { display: block; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 4; background: white; padding: 12px; transform: translateY(-140%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1.15; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: #fff8e9; background: var(--ink); border-radius: 50%; font-size: 14px; letter-spacing: -.08em; }
.brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .23em; }
nav { display: flex; align-items: center; gap: 28px; font-weight: 650; font-size: 14px; }
nav a { display: grid; place-items: center; min-height: 44px; }
nav a:hover, nav a[aria-current] { text-decoration: underline 2px #a84226; text-underline-offset: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; color: white; background: var(--ink); border-radius: 8px; font-weight: 740; white-space: nowrap; }
.button:hover { background: #34504b; }
.header-call { background: #efece1; color: var(--ink); font-size: 14px; }
.header-call:hover { color: white; }
.header-call svg, .line-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.hero {
  background-color: #092d21;
  background-image: linear-gradient(90deg, #08291ff5, #0a3324bd 54%, #08291fa3),
                    linear-gradient(0deg, #08291f, transparent 61%),
                    url("assets/classroom-hero.webp");
  background-position: center;
  background-size: cover;
  color: #fffaf0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 26px; }
.hero-copy { align-self: center; padding-block: 58px; }
.hero-accent { color: #ffd755; }
.hero a:focus-visible { outline-color: #efb854; }
.hero .button { background: #efb854; color: #172d2c; }
.hero .button:hover { background: #f8cd7c; }
.hero .inline-link:hover { color: #efb854; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-weight: 800; }
h1 { font-size: clamp(48px, 7.15vw, 105px); letter-spacing: -.055em; line-height: .92; }
h1 span { color: #9e482c; }
.hero-summary { margin-top: 20px; color: #e0e7db; font-size: clamp(16px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 21px; margin-top: 25px; }
.inline-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; font-weight: 740; }
.inline-link:hover { color: #944327; }
.portrait { position: relative; display: grid; place-items: end center; padding-top: 18px; }
.director-title {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  text-transform: uppercase;
  text-shadow: 0 2px 7px #030e09, 0 2px 22px #030e09;
}
.director-role {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fffaf0;
  font-size: clamp(10px, 1.25vw, 14px);
  font-weight: 850;
  letter-spacing: .15em;
}
.director-role::before, .director-role::after {
  content: "";
  width: clamp(16px, 3vw, 38px);
  height: 2px;
  background: #ffd755;
}
.director-title strong {
  color: #ffd755;
  font-size: clamp(35px, 4.7vw, 68px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .92;
  white-space: nowrap;
}
.portrait img { width: auto; height: clamp(378px, 38vw, 520px); max-width: 100%; object-fit: contain; object-position: center bottom; mask-image: linear-gradient(#000 73%, #000c 88%, transparent); }
.section { padding-block: 57px; }
h2 { font-size: clamp(30px, 4.7vw, 58px); letter-spacing: -.043em; line-height: 1.04; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 20px; margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fffdf7; scroll-margin-top: 15px; }
a.tile:hover { border-color: #93604b; }
.tile-art { overflow: hidden; background: #f3ded3; }
.tile:nth-child(2) .tile-art { background: #deebdf; }
.tile:nth-child(3) .tile-art { background: #f5e7c9; }
.tile-art svg { width: 100%; height: auto; }
.tile-copy { position: relative; flex: 1; padding: 16px 33px 19px 16px; }
.tile h3 { font-size: clamp(19px, 2.1vw, 25px); line-height: 1.12; letter-spacing: -.04em; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.tile-arrow { position: absolute; top: 15px; right: 13px; }
.curriculum { border-top: 1px solid var(--line); }
.exam-section { background: #efeee3; }
.exam-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 0; margin: 24px 0 0; list-style: none; }
.exam-grid li { display: grid; justify-items: center; gap: 13px; padding: 18px 5px; background: #fffdf7; border: 1px solid #dedccf; border-radius: 10px; font-size: 14px; }
.exam-grid img { object-fit: contain; max-width: 100%; }
.about { padding-block: 78px; }
.about-inner, .contact-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 38px; align-items: center; }
.about .eyebrow { margin-bottom: 12px; color: #854026; }
.about-copy { max-width: 400px; color: var(--muted); font-size: 18px; }
.about-copy a { color: var(--ink); margin-top: 7px; font-size: 15px; }
.contact { background: var(--ink); color: #fffaf0; }
.contact-inner { padding-block: 59px; align-items: start; }
.contact p { margin-top: 11px; color: #e0e7db; }
.contact a:focus-visible { outline-color: var(--accent); }
.contact-map { display: block; grid-column: 1 / -1; width: 100%; height: clamp(260px, 40vw, 380px); border: 1px solid #677976; border-radius: 12px; }
.contact-links { display: grid; }
.contact-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 65px; padding: 10px 0; border-top: 1px solid #677976; }
.contact-line:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.contact-line small { display: block; color: #dfdfcc; font-size: 10px; letter-spacing: .12em; }
.contact-line strong { display: block; font-size: 16px; }
.line-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #2c3329; background: #f0d698; }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; margin-top: 12px; }
.social a { display: inline-flex; align-items: center; gap: 9px; min-height: 64px; font-weight: 700; font-size: 14px; }
.social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-mark { display: grid; place-items: center; width: 58px; height: 58px; }
.social-mark svg { width: 47px; height: 47px; }
.instagram { border-radius: 16px; background: radial-gradient(circle at 26% 99%, #ffdc63 3%, #fa7835 30%, #d62976 59%, #6e36b9 83%, #434dcc); }
.facebook { background: white; border-radius: 50%; }
.facebook svg { width: 58px; height: 58px; }
footer { padding-block: 16px; border-top: 1px solid #526764; background: var(--ink); color: #e0e7db; font-size: 13px; }
.page-intro { padding-block: 41px; }
.page-intro h1 { font-size: clamp(48px, 8vw, 78px); }
.page-intro p { margin-top: 14px; color: var(--muted); }

@media (max-width: 840px) {
  .wrap { width: calc(100% - 42px); }
  .hero-inner { gap: 17px; }
  .tiles { gap: 10px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding-top: 9px; }
  nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; }
  .header-call { min-height: 44px; padding-inline: 10px; }
  .hero {
    background-image: linear-gradient(0deg, #08291f 30%, #0a3324af 81%, #08291fbd),
                      url("assets/classroom-hero.webp");
    background-size: cover, auto 72%;
    background-position: center, center top;
    background-repeat: no-repeat;
  }
  .hero-inner { grid-template-columns: 1fr; padding-block: 8px 32px; gap: 0; text-align: center; }
  .portrait { grid-row: 1; padding-top: 12px; }
  .portrait img { height: clamp(235px, 69vw, 360px); }
  .hero-summary { margin-top: 12px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(37px, 10.5vw, 61px); }
  .hero h1 br { display: none; }
  .hero-actions { justify-content: center; margin-top: 17px; }
  .section, .about, .contact-inner { padding-block: 36px; }
  .section-head { margin-bottom: 13px; }
  .tiles, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 13px; }
  .tile { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .tile-art { display: grid; place-items: center; }
  .tile-art svg { width: 128%; max-width: 245px; }
  .tile-copy { padding: 12px 17px 12px 10px; }
  .tile-arrow { top: 6px; right: 5px; font-size: 12px; }
  .tile p { font-size: 13px; margin-top: 5px; }
  .exam-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 15px; }
  .exam-grid li { padding-block: 11px; }
  .exam-grid img { width: 52px; height: 52px; }
}

