:root {
  --ink: #2f3641;
  --muted: #66707c;
  --bg: #ffffff;
  --paper: #f6f7f9;
  --line: #e6e8ec;
  --orange: #f26d34;
  --yellow: #ffef10;
  --gold: #faca4e;
  --cyan: #1dfff6;
  --blue: #008fff;
  --deep: #2f3641;
  --sans: Manrope, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100%, calc(var(--wrap) + 2.5rem));
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1,
h2,
h3,
.serif {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.8rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 1.6rem;
  height: 3px;
  border-radius: 99px;
  background: var(--yellow);
}

.lead {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--deep);
  color: #fff;
}

.topbar,
.header-main {
  position: relative;
  z-index: 2;
  background: var(--deep);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.topbar-inner,
.header-main,
.footer-grid,
.facts,
.pillars,
.news-grid,
.path,
.split,
.level-grid,
.doc-list,
.contact-grid {
  display: grid;
}

.topbar-inner {
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 2.6rem;
}

.topbar p {
  margin: 0;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar a,
.text-btn {
  color: #fff;
  text-decoration: none;
}

.text-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.6rem;
}

.nav-toggle {
  order: -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 52px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--orange);
  box-shadow: 3px 3px 0 var(--gold);
  background: rgba(47, 54, 65, 0.35);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

.nav-toggle[aria-expanded="true"]::before {
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brand small {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.nav {
  position: fixed;
  z-index: 35;
  top: var(--header-h, 7.4rem);
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  margin: 0;
  padding: 0.4rem 1.6rem 2rem;
  background: var(--deep);
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
}

.nav.is-open {
  transform: translateX(0);
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 24, 31, 0.45);
}

.nav-list,
.nav .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav .menu-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 0.85rem 0;
}

.nav > a,
.nav-list > .menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav .menu-row a {
  flex: 1;
  min-width: 0;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--yellow);
}

.nav .sub-menu {
  display: none;
  padding: 0 0 0.7rem 1rem;
}

.nav .menu-item.is-open > .sub-menu {
  display: block;
}

.nav .sub-menu a {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.4rem 0;
}

.nav .sub-menu .sub-menu {
  padding-left: 0.85rem;
}

.nav .sub-menu .sub-menu a {
  font-size: 1.02rem;
}

.submenu-toggle {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.submenu-toggle::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.menu-item.is-open > .menu-row .submenu-toggle::before {
  transform: rotate(225deg) translate(-2px, -2px);
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  color: var(--yellow);
}

.hero-screen {
  position: relative;
  min-height: min(86vh, 760px);
  background: var(--deep);
  color: #fff;
}

.hero-screen img.cover {
  width: 100%;
  height: min(86vh, 760px);
  object-fit: cover;
}

.hero-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.hero-screen-inner {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2rem, 40rem);
  text-align: center;
}

.hero-logo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  margin-bottom: 1.1rem;
}

.hero-screen h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-screen p {
  margin: 0.8rem 0 1.4rem;
  color: rgba(255, 255, 255, 0.92);
}

.sticker,
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 7px 7px 0 var(--orange), -6px -6px 0 var(--cyan);
}

.sticker:hover,
.btn:hover {
  transform: translate(-2px, -2px);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 2px solid var(--ink);
}

.btn-ghost:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 1.4rem;
}

.factbar {
  border-block: 1px solid var(--line);
  background: #fff;
}

.facts {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--line);
  background-clip: content-box;
}

.facts article {
  padding: 1.55rem 1.25rem 1.55rem 0;
  background: #fff;
}

.facts article + article {
  padding-left: 1.35rem;
}

.facts span,
.meta,
.card time,
.path small,
.level small,
.doc-list small {
  display: block;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-head p,
.section-head a {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
}

.section-head a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.pillars,
.level-grid,
.doc-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.level-grid,
.doc-list {
  grid-template-columns: 1fr 1fr;
}

.pillars article,
.level-grid article,
.doc-list a {
  padding: 1.35rem 1.2rem 1.45rem;
  background: var(--paper);
  border-radius: 24px;
}

.pillars em,
.path b {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
}

.pillars h3,
.level-grid h3,
.doc-list h3 {
  margin-bottom: 0.45rem;
}

.pillars p,
.prose p,
.card p,
.level-grid p,
.split p,
.contact-card p,
.doc-list p,
.path p {
  margin: 0;
  color: var(--muted);
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.stack {
  display: contents;
}

.card {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  border-radius: 28px;
  background: var(--line);
}

.card-body {
  padding: 0.9rem 0.2rem 0;
}

.card h3 {
  margin-top: 0.25rem;
}

.card:hover h3 {
  color: var(--orange);
}

.band {
  background: var(--deep);
  color: #fff;
}

.band .eyebrow,
.band .path small {
  color: var(--gold);
}

.band .path p,
.band .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.path {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}

.path article {
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.path h3 {
  margin: 0.35rem 0;
}

.split {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
}

.admit {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1.6rem 0 0;
}

.admit p {
  max-width: 40rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.page-hero {
  padding-block: 3rem 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.prose {
  max-width: 44rem;
}

.prose p + p,
.prose ul,
.prose h2 {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 2rem;
}

.prose ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.35rem;
}

.timeline {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  color: var(--orange);
  font-size: 1.4rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.3rem;
}

.stats article {
  padding: 1.2rem;
  background: var(--paper);
  border-radius: 22px;
}

.stats b {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats span,
.note {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.note {
  font-size: 0.92rem;
}

.doc-list a {
  display: block;
  text-decoration: none;
}

.doc-list a:hover h3 {
  color: var(--orange);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.news-list a:hover h3 {
  color: var(--orange);
}

.news-list h3 {
  font-size: 1.35rem;
}

.news-list span {
  color: var(--muted);
}

.article-layout {
  display: grid;
  gap: 1.2rem;
  max-width: 46rem;
  padding-bottom: 3.5rem;
}

.article-layout img {
  width: 100%;
  border-radius: 28px;
  max-height: 520px;
  object-fit: cover;
}

.contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--paper);
  border-radius: 28px;
}

.contact-card a {
  color: var(--ink);
  font-weight: 700;
}

.contact-card .btn {
  justify-self: start;
  color: var(--ink);
}

.map {
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--line);
}

.map iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.site-footer {
  padding: 3rem 0 1.4rem;
  background: var(--deep);
  color: #fff;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-brand {
  margin: 0.8rem 0 0;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.82);
}

.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

html.a11y {
  --bg: #fff;
  --paper: #fff;
  --ink: #000;
  --muted: #111;
  --line: #000;
  --deep: #000;
  font-size: 20px;
}

html.a11y .btn,
html.a11y .sticker {
  box-shadow: none;
  border: 2px solid #000;
}

html.a11y a {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .facts,
  .path,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facts article:nth-child(odd) {
    padding-left: 0;
  }

  .split,
  .contact-grid,
  .stats,
  .timeline article,
  .news-list a {
    grid-template-columns: 1fr;
  }

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

  .hero-screen,
  .hero-screen img.cover {
    min-height: 70vh;
    height: 70vh;
  }

  .hero-screen-inner {
    bottom: 6%;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 1.1rem;
  }

  .topbar p {
    display: none;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: end;
    min-height: 2.4rem;
  }

  .facts,
  .path,
  .news-grid,
  .level-grid,
  .doc-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facts article + article {
    padding-left: 0;
  }

  .hero-screen,
  .hero-screen img.cover {
    height: auto;
    min-height: 0;
  }

  .hero-screen img.cover {
    height: 46vh;
    min-height: 240px;
  }

  .hero-screen::after {
    height: 46vh;
    bottom: auto;
  }

  .hero-screen-inner {
    position: static;
    transform: none;
    width: 100%;
    padding: 1.6rem 1.1rem 1.8rem;
    background: var(--deep);
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

  .actions,
  .admit,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .btn,
  .sticker,
  .admit .btn,
  .contact-card .btn {
    width: 100%;
  }

  .section {
    padding: 2.8rem 0;
  }

  .page-hero {
    padding-block: 1.8rem 0.3rem;
  }

  .card img {
    aspect-ratio: 16 / 11;
  }

  .map,
  .map iframe {
    min-height: 260px;
    height: 260px;
  }

  .nav a {
    font-size: 1.35rem;
  }
}

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

  .nav {
    transition: none;
  }
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.prose a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.prose a:hover {
  color: var(--ink);
}

.article-layout .prose img,
.prose img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

ul.page-numbers a,
ul.page-numbers span {
  display: inline-flex;
  min-width: 2.5rem;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

ul.page-numbers .current {
  background: var(--deep);
  color: #fff;
}
