:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #e9f1ff;
  --line: #d7e4ff;
  --text: #111827;
  --text-soft: #52607a;
  --primary: #1359c8;
  --primary-deep: #0a3f95;
  --accent: #d60047;
  --shadow: 0 18px 40px rgba(15, 40, 84, 0.12);
  --radius: 24px;
  --container: 1360px;
  --header-block-height: 68px;
}

html.theme-kabancho {
  --bg: #fff6f9;
  --surface: #fff9fb;
  --surface-muted: #ffe6ee;
  --line: #f8b8ca;
  --text: #3b1420;
  --text-soft: #8a4c60;
  --primary: #db5276;
  --primary-deep: #a92d52;
  --accent: #ff7fa2;
  --shadow: 0 18px 40px rgba(168, 45, 82, 0.14);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

.pixel-storm {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  animation: pixel-storm-shell 1.42s linear forwards;
  isolation: isolate;
}

.pixel-storm__pixel {
  position: absolute;
  left: var(--storm-left);
  bottom: -22vh;
  width: var(--storm-size);
  height: var(--storm-size);
  color: var(--storm-color);
  background: currentColor;
  opacity: 0;
  transform: translate3d(var(--storm-start-x), var(--storm-start-y), 0) scale(0.72) rotate(0deg);
  animation: pixel-storm-flight var(--storm-duration) cubic-bezier(0.14, 0.8, 0.18, 1) var(--storm-delay) forwards;
  will-change: transform, opacity;
}

html.theme-kabancho .hero {
  background:
    linear-gradient(180deg, rgba(82, 18, 39, 0.28), rgba(219, 82, 118, 0.18)),
    var(--hero-bg) center/cover no-repeat;
}

html.theme-kabancho .hero__backdrop {
  background:
    radial-gradient(circle at 24% 32%, rgba(255, 127, 162, 0.22), transparent 18%),
    radial-gradient(circle at 70% 28%, rgba(219, 82, 118, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(95, 24, 48, 0.18), rgba(59, 20, 32, 0.3));
}

html.theme-kabancho .site-header {
  background: #db5276;
}

html.theme-kabancho .button--primary {
  background: #db5276;
  box-shadow: 0 12px 20px rgba(219, 82, 118, 0.2);
}

html.theme-kabancho .button--secondary,
html.theme-kabancho .program-pill.is-active,
html.theme-kabancho .home-sections__tab.is-active,
html.theme-kabancho .curricula-filter__btn.is-active,
html.theme-kabancho .spec-btn.is-active {
  background: #db5276;
}

html.theme-kabancho .curricula__switch.is-active,
html.theme-kabancho .spec-btn.is-active {
  box-shadow: 0 10px 24px rgba(219, 82, 118, 0.2);
}

html.theme-kabancho .program-highlight {
  background: linear-gradient(135deg, #7a1e3d, #db5276);
}

html.theme-kabancho .stat-card:hover strong {
  color: #db5276;
  text-shadow: 0 10px 18px rgba(219, 82, 118, 0.2);
}

html.theme-kabancho .site-footer {
  background: #3b1420;
}

html.theme-kabancho .site-footer__brand img {
  width: 160px;
}

html.theme-kabancho .home-lower {
  background: #fff6f9;
}

html.theme-kabancho .home-lower__panel {
  background: linear-gradient(135deg, #ffe6ee, #fff5f8);
}

html.theme-kabancho .home-lower__lead,
html.theme-kabancho .home-lower__research h3,
html.theme-kabancho .research-list li {
  color: #3b1420;
}

html.theme-kabancho .home-lower__pixels {
  color: rgba(219, 82, 118, 0.16);
}

html.theme-kabancho .partner-card:hover,
html.theme-kabancho .partner-card:focus-visible {
  border-color: rgba(219, 82, 118, 0.38);
  background: #fff9fb;
  box-shadow: 0 14px 26px rgba(168, 45, 82, 0.1);
}

html.theme-kabancho .curricula-filter__btn,
html.theme-kabancho .spec-accordion__toggle:hover,
html.theme-kabancho .spec-accordion__details,
html.theme-kabancho .curricula-year__summary:hover,
html.theme-kabancho .curricula-year__summary:focus-visible,
html.theme-kabancho .curricula-grid-wrap,
html.theme-kabancho .curricula-grid__header,
html.theme-kabancho .curricula-semester {
  background: #fff6f9;
}

html.theme-kabancho .spec-btn {
  background: #fff9fb;
}

html.theme-kabancho .spec-btn:not(.is-active):hover {
  background: #ffeef4;
}

html.theme-kabancho .spec-btn__tags span {
  background: rgba(219, 82, 118, 0.12);
  color: #a92d52;
}

html.theme-kabancho .spec-accordion,
html.theme-kabancho .spec-btn,
html.theme-kabancho .curricula-year,
html.theme-kabancho .curricula-grid-wrap,
html.theme-kabancho .curricula-grid__header,
html.theme-kabancho .curricula-col,
html.theme-kabancho .curricula-year__body,
html.theme-kabancho .curricula-semester + .curricula-semester {
  border-color: #f8b8ca;
}

html.theme-kabancho .curricula-col.has-spec-highlight {
  background: rgba(219, 82, 118, 0.04);
}

html.theme-kabancho .curricula-filter__btn--primary,
html.theme-kabancho .curricula-row--primary {
  --filter-color: #db5276;
  --row-color: #db5276;
  --row-soft: #ffe6ee;
}

html.theme-kabancho .curricula-filter__btn--light,
html.theme-kabancho .curricula-row--light {
  --filter-color: #f08aaa;
  --row-color: #f08aaa;
  --row-soft: #fff0f5;
}

html.theme-kabancho .curricula-year[open] {
  border-color: rgba(219, 82, 118, 0.28);
  box-shadow: 0 12px 28px rgba(168, 45, 82, 0.08);
}

html.theme-kabancho .curricula-cell:hover,
html.theme-kabancho .curricula-cell:focus-visible {
  box-shadow: 0 4px 14px rgba(168, 45, 82, 0.12);
}

html.theme-kabancho .curricula-cell.is-spec-active {
  box-shadow: 0 0 0 2px var(--row-color), 0 4px 16px rgba(168, 45, 82, 0.14);
}

.page-kabancho .site-main {
  min-height: 48vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

/* Header */
.site-header {
  position: relative;
  z-index: 40;
  background: #1359c8;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - clamp(20px, 2.4vw, 44px));
  max-width: none;
  min-height: 66px;
}

.site-header__toggle {
  display: none !important;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header .site-header__tools {
  display: flex;
}

.site-header__toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-header__toggle span:nth-child(1) {
  top: 13px;
}

.site-header__toggle span:nth-child(2) {
  top: 20px;
}

.site-header__toggle span:nth-child(3) {
  top: 27px;
}

.site-header.is-open .site-header__toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.site-header.is-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .site-header__toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 38px;
  padding: 0;
}

.site-brand__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}

.site-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(10px, 1vw, 20px);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-search {
  position: relative;
  width: clamp(148px, 14vw, 190px);
  min-width: 0;
  flex: 0 1 190px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 41, 101, 0.58);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.site-search__icon img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.74;
}

.site-search:focus-within,
.site-search.is-open {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(4, 35, 90, 0.9);
  box-shadow: 0 12px 24px rgba(3, 15, 42, 0.28);
}

.site-search__input {
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.site-search__input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.site-search__input:focus {
  outline: 0;
}

.site-language,
.site-header.is-open .site-language {
  display: none !important;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-language__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 41, 101, 0.32);
}

.site-language__link.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.site-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  padding: 6px;
  background: rgba(4, 22, 59, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(2, 11, 31, 0.34);
}

.site-search__results[hidden] {
  display: none;
}

.site-search__result,
.site-search__empty {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
}

.site-search__result {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-search__result:hover,
.site-search__result:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.site-search__result strong {
  font-size: 14px;
  font-weight: 700;
}

.site-search__result span,
.site-search__empty {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-block-height));
  min-height: calc(100svh - var(--header-block-height));
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(2, 9, 25, 0.46), rgba(3, 18, 49, 0.36)),
    var(--hero-bg) center/cover no-repeat;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 32%, rgba(29, 106, 255, 0.14), transparent 18%),
    radial-gradient(circle at 70% 28%, rgba(44, 122, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(5, 16, 46, 0.22), rgba(3, 12, 31, 0.42));
}

.hero__content {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: center;
  gap: 26px;
  justify-items: center;
  min-height: calc(100vh - var(--header-block-height));
  min-height: calc(100svh - var(--header-block-height));
  padding: clamp(56px, 8vh, 96px) 0 clamp(154px, 17vh, 220px);
  padding: clamp(56px, 8svh, 96px) 0 clamp(154px, 17svh, 220px);
  text-align: center;
}

.hero__content > * {
  min-width: 0;
  max-width: min(1100px, calc(100% - 40px));
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(24px, 2.35vw, 34px);
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero__cat {
  position: absolute;
  left: clamp(-128px, calc(3.8vw - 124px), 34px);
  bottom: clamp(138px, 12.8vh, 196px);
  bottom: clamp(138px, 12.8svh, 196px);
  z-index: 6;
  width: clamp(204px, 21vw, 296px);
  opacity: 0.95;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transform-origin: 50% 80%;
  animation: hero-cat-float 5.4s ease-in-out infinite;
}

.hero__cat.is-gone {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.hero__cat.is-respawning {
  animation: hero-cat-scale-in 0.62s cubic-bezier(0.18, 0.86, 0.24, 1.18) both;
}

.hero__cat.is-spinning {
  transform-origin: 50% 50%;
  animation: hero-cat-spin 5s cubic-bezier(0.42, 0, 0.2, 1) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 0;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.hero .button {
  min-height: 50px;
  padding: 0 30px;
  font-size: 18px;
}

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

.button--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 20px rgba(214, 0, 71, 0.18);
}

.button--secondary {
  color: #fff;
  background: var(--primary);
}

.hero__more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 7;
  transform: translateX(-50%);
}

.hero__more:hover .hero__more-arrow,
.hero__more:focus-visible .hero__more-arrow {
  transform: translateY(2px) rotate(45deg);
}

.hero__more-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.hero__divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(74px, 6.2vw, 104px);
  background-image: var(--hero-divider);
  background-repeat: repeat-x;
  background-position: center calc(100% + clamp(38px, 4.8vw, 54px));
  background-size: auto clamp(156px, 10.8vw, 190px);
}

.hero__pixels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__pixel {
  position: absolute;
  bottom: var(--pixel-bottom);
  width: var(--pixel-size);
  height: var(--pixel-size);
  left: var(--pixel-left);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(5, 27, 67, 0.06);
  animation: hero-pixel-rise var(--pixel-duration) linear var(--pixel-delay) infinite;
  opacity: 0.92;
}

.hero__cat-burst {
  position: absolute;
  pointer-events: none;
  z-index: 8;
}

.hero__cat-fragment {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fragment-size);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
  animation: hero-animal-fragment var(--fragment-duration) cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
  animation-delay: var(--fragment-delay);
  will-change: transform, opacity;
}

.hero h1.is-terminal-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.84em;
  margin-left: 0.08em;
  background: currentColor;
  vertical-align: -0.08em;
  animation: hero-terminal-caret 0.72s steps(1) infinite;
}

/* Sections */
.section {
  padding: 36px 0;
}

.section--surface {
  padding-top: 10px;
  padding-bottom: 32px;
  margin-top: 0;
  position: relative;
  z-index: 3;
  background: #fff;
}

.section--muted {
  background: var(--surface-muted);
}

.section--last {
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section--surface .section-heading {
  display: none;
}

.section--surface-overlap {
  position: relative;
  z-index: 3;
  margin-top: 40px;
  padding-top: 44px;
}

.section--surface-overlap .programs-widget {
  position: relative;
  z-index: 4;
}

.section--surface-overlap .programs-widget__header {
  transform: translateY(-18px);
}

.section-heading--stacked {
  justify-content: flex-start;
}

.section-heading h2,
.programs-widget__header h3,
.section-copy h2,
.page-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--primary-deep);
}

.section-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-eyebrow--light {
  color: rgba(255, 255, 255, 0.72);
}

/* Programs */
.programs-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 100%;
  padding: 0 0 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.programs-widget__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.programs-widget__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.programs-widget__nav img {
  width: 18px;
  height: 18px;
}

.programs-widget__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  gap: 12px;
  width: min(100%, 980px);
  max-width: 100%;
  min-width: 0;
}

.program-pill {
  min-width: 0;
  padding: 10px 26px;
  border: 0;
  border-radius: 0;
  background: #97b4df;
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.program-pill.is-active {
  color: #fff;
  background: var(--primary);
}

.program-pill.is-transitioning {
  transform: translateY(-2px);
}

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

.stat-card,
.program-highlight,
.program-card {
  padding: 24px;
  border-radius: 0;
  background: var(--surface);
  border: 0;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(11, 87, 208, 0.08);
}

.stat-card__plate {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 148px;
  height: 110px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(213, 228, 255, 0.9), rgba(228, 239, 255, 0.66));
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease;
}

.stat-card:hover .stat-card__plate {
  transform: translate3d(10px, -8px, 0) scale(0.96) rotate(-4deg);
  background: linear-gradient(180deg, rgba(187, 214, 255, 0.85), rgba(216, 231, 255, 0.5));
}

.stat-card span,
.program-card__meta span,
.program-card dt {
  position: relative;
  z-index: 1;
  color: #142041;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.28s ease, color 0.28s ease, opacity 0.28s ease;
}

.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  font-size: clamp(56px, 5vw, 96px);
  line-height: 0.95;
  color: var(--primary);
  white-space: nowrap;
  transition: transform 0.32s ease, letter-spacing 0.32s ease, color 0.32s ease, text-shadow 0.32s ease;
}

.stat-card strong[data-program-stat="price"] {
  font-size: clamp(42px, 4.2vw, 82px);
  letter-spacing: -0.03em;
}

.stat-card.is-changing > span:last-of-type,
.program-highlight.is-changing h4,
.program-highlight.is-changing p {
  animation: content-fade-swap 0.32s ease;
}

.stat-card.is-changing strong {
  animation: stat-pop 0.48s ease;
}

.stat-card:hover > span:last-of-type {
  transform: translate3d(0, -4px, 0);
  color: var(--primary-deep);
}

.stat-card:hover strong {
  transform: translate3d(0, -8px, 0) scale(1.03);
  color: #0957db;
  text-shadow: 0 10px 18px rgba(11, 87, 208, 0.18);
}

/* Animations */
@keyframes pixel-storm-shell {
  0% {
    opacity: 0;
  }

  10%,
  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes pixel-storm-flight {
  0% {
    opacity: 0;
    transform: translate3d(var(--storm-start-x), var(--storm-start-y), 0) scale(0.72) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  52% {
    opacity: 1;
    transform: translate3d(var(--storm-mid-x), var(--storm-mid-y), 0) scale(1) rotate(calc(var(--storm-rotate) * 0.45));
  }

  84% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--storm-end-x), var(--storm-end-y), 0) scale(0.62) rotate(var(--storm-rotate));
  }
}

@keyframes hero-cat-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(3deg);
  }
}

@keyframes curricula-table-open {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scaleY(0.96);
    transform-origin: top center;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleY(1);
    transform-origin: top center;
  }
}

@keyframes curricula-cell-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-cat-scale-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.22) rotate(-8deg);
  }

  72% {
    opacity: 1;
    transform: translate3d(0, -5px, 0) scale(1.08) rotate(2deg);
  }

  100% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1) rotate(1deg);
  }
}

@keyframes hero-cat-spin {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(1800deg);
  }

  100% {
    transform: rotate(3600deg);
  }
}

@keyframes hero-pixel-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: 0.96;
  }

  100% {
    transform: translate3d(var(--pixel-drift), calc(var(--pixel-rise) * -1), 0) scale(0.56);
    opacity: 0;
  }
}

@keyframes hero-animal-fragment {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.92) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate3d(calc(var(--fragment-x) - 50%), calc(var(--fragment-y) - 50%), 0) scale(0.24) rotate(var(--fragment-rotate));
    opacity: 0;
  }
}

@keyframes hero-terminal-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes partners-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-storm,
  .pixel-storm__pixel,
  .curricula-year[open] .curricula-year__body,
  .curricula-cell {
    animation: none;
  }

  .partners__carousel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .partners__track {
    animation: none;
  }

  .partners__set[aria-hidden="true"] {
    display: none;
  }
}

@keyframes stat-pop {
  0% {
    opacity: 0.55;
    transform: translate3d(0, 10px, 0) scale(0.96);
  }

  55% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes content-fade-swap {
  0% {
    opacity: 0.3;
    transform: translate3d(0, 8px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-panel-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.program-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(135deg, #072e78, #0b57d0);
  color: #fff;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.program-highlight h4 {
  margin: 0;
  font-size: 28px;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.program-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.program-highlight .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Home sections */
.home-sections {
  display: grid;
  gap: 24px;
}

.home-sections__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-sections__tab {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(19, 89, 200, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.home-sections__tab.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(11, 87, 208, 0.2);
}

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

.home-sections__panels {
  position: relative;
}

.home-section-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #f2f7ff);
  border: 1px solid rgba(19, 89, 200, 0.08);
  box-shadow: var(--shadow);
}

.home-section-panel[hidden] {
  display: none;
}

.home-section-panel.is-entering {
  animation: section-panel-enter 0.38s ease;
}

.home-section-panel__copy,
.home-section-panel__aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-section-panel__copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  color: var(--primary-deep);
}

.home-section-panel__copy p,
.home-section-panel__lead {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.home-section-panel__lead {
  font-size: 18px;
  color: #193969;
}

.home-section-panel__aside {
  padding: 20px;
  background: linear-gradient(180deg, rgba(11, 87, 208, 0.08), rgba(11, 87, 208, 0.02));
}

.home-section-panel__eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-section-panel__points {
  display: grid;
  gap: 10px;
}

.home-section-panel__points span {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  background: #fff;
  color: #15325f;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(14, 42, 89, 0.08);
}

.section-copy {
  display: grid;
  gap: 16px;
}

.section-copy--center {
  text-align: center;
}

.section-copy p,
.page-description,
.prose,
.program-card p {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
}

.home-lower {
  padding: 18px 0 0;
  background: #fff;
}

.home-lower__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4.2vw, 56px) max(24px, calc((100vw - var(--container)) / 2 + 24px)) clamp(38px, 4.8vw, 66px);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  background: #eaf4ff;
}

.home-lower__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3.4vw, 44px);
  text-align: center;
}

.home-lower h2,
.partners h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 800;
}

.home-lower__lead {
  max-width: 1080px;
  margin: 0;
  color: #111827;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.35;
}

.home-lower__research {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.home-lower__research h3 {
  margin: 0;
  color: #0d1324;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

.research-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 1140px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.research-list li {
  position: relative;
  padding-left: 15px;
  color: #111827;
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.25;
}

.research-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--primary);
}

.home-lower__pixels {
  position: absolute;
  right: -8px;
  bottom: 64px;
  width: 10px;
  height: 10px;
  color: rgba(19, 89, 200, 0.08);
  background: currentColor;
  box-shadow:
    18px -18px currentColor,
    36px -8px currentColor,
    54px -18px currentColor,
    72px -8px currentColor,
    -18px 0 currentColor,
    18px 0 currentColor,
    36px 10px currentColor,
    54px 0 currentColor,
    -36px 18px currentColor,
    -18px 18px currentColor,
    0 18px currentColor,
    18px 18px currentColor,
    36px 28px currentColor,
    54px 18px currentColor;
}

.partners {
  display: grid;
  gap: 24px;
  padding: clamp(42px, 5vw, 68px) 0 clamp(46px, 5vw, 72px);
  text-align: center;
}

.partners__carousel {
  width: 100%;
  overflow: hidden;
  margin: -8px 0 -28px;
  padding: 12px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.partners__track {
  display: flex;
  width: max-content;
  animation: partners-scroll 28s linear infinite;
}

.partners__carousel:hover .partners__track,
.partners__carousel:focus-within .partners__track {
  animation-play-state: paused;
}

.partners__set {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding-right: 16px;
}

.partner-card {
  display: flex;
  flex: 0 0 clamp(224px, 23vw, 320px);
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(19, 89, 200, 0.38);
  box-shadow: 0 14px 26px rgba(15, 40, 84, 0.08);
}

.partner-card img {
  display: block;
  max-width: min(260px, 86%);
  max-height: 64px;
  object-fit: contain;
}

.partner-card--wide {
  flex-basis: clamp(420px, 46vw, 640px);
}

.partner-card--wide img {
  width: min(560px, 88%);
  max-width: none;
  max-height: 86px;
}

.partner-card span {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
}

.page-shell {
  padding: 64px 0 88px;
}

.page-intro {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.page-description {
  margin: 0;
  max-width: 70ch;
}

.not-found-page__inner {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(240px, 360px);
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 5vw, 72px);
  min-height: clamp(520px, 62vh, 720px);
}

.not-found-page__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.not-found-page__copy .page-description {
  max-width: 70ch;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.not-found-page .section-eyebrow {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 56px);
}

.not-found-page .page-title {
  max-width: none;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.not-found-page__cat {
  width: min(100%, 360px);
  justify-self: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 22px 34px rgba(19, 89, 200, 0.16));
}

.prose {
  max-width: 76ch;
}

.prose p,
.prose ul {
  margin: 0 0 18px;
}

.search-page {
  display: grid;
  gap: 24px;
}

.search-page__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-page__input {
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f5f9ff);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.search-page__input:focus {
  outline: 0;
  border-color: rgba(19, 89, 200, 0.36);
  box-shadow: 0 0 0 4px rgba(19, 89, 200, 0.08);
}

.search-page__meta {
  display: grid;
  gap: 6px;
}

.search-page__summary,
.search-page__count {
  margin: 0;
}

.search-page__summary {
  color: var(--primary-deep);
  font-size: 24px;
  font-weight: 700;
}

.search-page__count {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.search-page__results {
  display: grid;
  gap: 14px;
}

.search-page__item {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow);
}

.search-page__link {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.search-page__link:hover,
.search-page__link:focus-visible {
  transform: translateY(-2px);
  background: rgba(19, 89, 200, 0.03);
}

.search-page__link strong {
  color: var(--primary-deep);
  font-size: 20px;
  line-height: 1.2;
}

.search-page__link span,
.search-page__empty {
  color: var(--text-soft);
  line-height: 1.6;
}

.about-feature {
  margin-top: 44px;
}

.history-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  overflow: hidden;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(19, 89, 200, 0.08), rgba(19, 89, 200, 0) 42%),
    linear-gradient(180deg, #ffffff, #f5f9ff);
  box-shadow: 0 24px 44px rgba(15, 40, 84, 0.12);
}

.history-preview::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 220px;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(214, 0, 71, 0.12), rgba(214, 0, 71, 0)),
    linear-gradient(135deg, rgba(19, 89, 200, 0.16), rgba(19, 89, 200, 0));
  transform: translate(26%, 24%) rotate(14deg);
  pointer-events: none;
}

.history-preview__copy,
.history-preview__action {
  position: relative;
  z-index: 1;
}

.history-preview__copy {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.history-preview__eyebrow {
  margin: 0;
  color: var(--primary-deep);
  font-size: 18px;
  line-height: 1.1;
}

.history-preview h2 {
  margin: 0;
  color: #142041;
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.history-preview__copy > p:last-of-type {
  margin: 0;
  color: #24324d;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.42;
  max-width: 32ch;
}

.history-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-preview__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(19, 89, 200, 0.14);
  color: #24324d;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 40, 84, 0.08);
}

.history-preview__action {
  display: flex;
  align-items: end;
}

.history-preview__action .button {
  min-width: 280px;
  min-height: 78px;
  justify-content: center;
  padding: 0 28px;
  box-shadow: 0 18px 36px rgba(214, 0, 71, 0.22);
}

.history-layout {
  display: grid;
  gap: 32px;
}

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

.history-overview__card {
  display: grid;
  gap: 12px;
  min-height: 156px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  box-shadow: var(--shadow);
}

.history-overview__card span {
  color: #142041;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-overview__card strong {
  color: var(--primary);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
}

.history-tabs {
  display: grid;
  gap: 24px;
}

.history-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.history-tabs__button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(19, 89, 200, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.history-tabs__button.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(11, 87, 208, 0.2);
}

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

.history-tabs__panels {
  position: relative;
}

.history-tab-panel {
  display: grid;
  gap: 24px;
}

.history-tab-panel[hidden] {
  display: none;
}

.history-section-title {
  margin: 0;
  color: var(--primary-deep);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
}

.history-timeline {
  display: grid;
  gap: 26px;
}

.history-year {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.history-year__label {
  position: sticky;
  top: 88px;
  padding-top: 10px;
  color: var(--primary-deep);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1;
}

.history-year__items {
  display: grid;
  gap: 14px;
}

.history-event {
  padding: 18px 20px 18px 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-left: 4px solid var(--primary);
  box-shadow: 0 16px 28px rgba(15, 40, 84, 0.08);
}

.history-event p,
.history-article p,
.history-lyrics__stanza p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.history-article {
  display: grid;
  gap: 16px;
}

.history-article--section {
  padding: 22px 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
}

.history-article--section h3 {
  margin: 0;
  color: var(--primary-deep);
  font-size: 28px;
  line-height: 1.05;
}

.history-sections {
  display: grid;
  gap: 18px;
}

.history-lyrics {
  display: grid;
  gap: 18px;
}

.history-lyrics__stanza {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .search-page__form {
    grid-template-columns: 1fr;
  }

  .search-page__submit {
    width: 100%;
  }

  .history-preview {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .history-preview h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .history-preview__copy > p:last-of-type {
    max-width: none;
    font-size: 18px;
  }

  .history-preview__action .button {
    width: 100%;
    min-width: 0;
    min-height: 62px;
  }

  .history-overview {
    grid-template-columns: 1fr;
  }

  .history-tabs__button {
    width: 100%;
    justify-content: center;
  }

  .history-year {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-year__label {
    position: static;
    padding-top: 0;
  }
}

.program-catalog {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

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

.program-card {
  display: grid;
  gap: 18px;
}

.program-card__meta {
  display: grid;
  gap: 8px;
}

.program-card__meta strong {
  font-size: 24px;
  line-height: 1.15;
}

.program-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.program-card dl div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.program-card dd {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-deep);
  white-space: nowrap;
}

/* Curricula */
.curricula {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.curricula__heading {
  margin-bottom: 0;
}

.curricula__heading h2 {
  font-size: clamp(38px, 5vw, 72px);
}

.curricula__intro {
  max-width: 42ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.curricula__switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 12px;
}

.curricula__switch {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-deep);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.curricula__switch.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(11, 87, 208, 0.18);
}

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

.curricula__switch-code {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.curricula__switch-title {
  font-size: 18px;
  line-height: 1.2;
}

.curricula-board {
  display: grid;
  gap: 16px;
}

.curricula-board.is-refreshing {
  animation: section-panel-enter 0.32s ease;
}

.curricula-board__grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

.curricula-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
}

.curricula-filter__title {
  width: 100%;
  color: #7d8faa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.curricula-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid transparent;
  background: #f4f8ff;
  color: #43506e;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.curricula-filter__btn:hover,
.curricula-filter__btn:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--filter-color) 42%, #dce7fb);
}

.curricula-filter__btn.is-active {
  color: #fff;
  background: var(--filter-color);
  border-color: var(--filter-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--filter-color) 24%, transparent);
}

.curricula-filter__btn i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--filter-color);
}

.curricula-filter__btn.is-active i {
  background: #fff;
}

.curricula-filter__btn--primary {
  --filter-color: #1c63d5;
}

.curricula-filter__btn--accent {
  --filter-color: #d11067;
}

.curricula-filter__btn--light {
  --filter-color: #58a1e8;
}

.curricula-filter__btn--muted {
  --filter-color: #7d879b;
}

.curricula-filter__btn--choice {
  --filter-color: #d11067;
}

.curricula-filter__btn--choice i {
  width: 18px;
  height: 10px;
  border: 2px dashed #d11067;
  border-radius: 0;
  background: transparent;
}

.curricula-filter__btn--choice.is-active i {
  border-color: #fff;
  background: transparent;
}

/* Spec filter accordion */
.spec-accordion {
  border: 1px solid #dce7fb;
  background: #fff;
}

.spec-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: #1c2a4f;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.spec-accordion__toggle:hover {
  background: #f4f8ff;
}

.spec-accordion__icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  margin-bottom: 3px;
}

.spec-accordion.is-open .spec-accordion__icon {
  transform: rotate(225deg);
  margin-bottom: -3px;
}

.spec-accordion__body {
  display: none;
  padding: 0 18px 16px;
}

.spec-accordion.is-open .spec-accordion__body {
  display: block;
  animation: section-panel-enter 0.22s ease;
}

.spec-accordion__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.spec-btn {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #dce7fb;
  background: #f8fbff;
  color: #1c2a4f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.spec-btn:hover {
  border-color: var(--primary);
  background: #eef5ff;
}

.spec-btn.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 87, 208, 0.22);
}

.spec-btn__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.spec-btn__summary {
  color: #63718f;
  font-size: 12px;
  line-height: 1.35;
}

.spec-btn.is-active .spec-btn__summary {
  color: rgba(255, 255, 255, 0.78);
}

.spec-btn__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-btn__tags span {
  padding: 3px 7px;
  background: rgba(11, 87, 208, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.spec-btn.is-active .spec-btn__tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.spec-accordion__details {
  margin-top: 14px;
  padding: 14px 16px;
  color: #43506e;
  background: #f4f8ff;
  border-left: 3px solid var(--primary);
}

.spec-accordion__details:empty {
  display: none;
}

.spec-accordion__details strong {
  display: block;
  margin-bottom: 4px;
  color: #1c2a4f;
}

.spec-accordion__details p {
  margin: 0;
  line-height: 1.45;
}

.curricula-years {
  display: grid;
  gap: 12px;
}

.curricula-year {
  border: 1px solid #dce7fb;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.curricula-year[open] {
  border-color: rgba(19, 89, 200, 0.28);
  box-shadow: 0 12px 28px rgba(15, 40, 84, 0.08);
}

.curricula-year__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #1c2a4f;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.curricula-year__summary:hover,
.curricula-year__summary:focus-visible {
  outline: 0;
  background: #f4f8ff;
}

.curricula-year__summary::-webkit-details-marker {
  display: none;
}

.curricula-year__summary span:first-child {
  font-size: 24px;
  font-weight: 900;
}

.curricula-year__summary span:last-child {
  color: #7d8faa;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.curricula-year__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #dce7fb;
}

.curricula-year[open] .curricula-year__body {
  animation: curricula-table-open 0.34s cubic-bezier(0.18, 0.84, 0.24, 1);
}

.curricula-semester {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  background: #f8fbff;
}

.curricula-semester + .curricula-semester {
  border-left: 1px solid #dce7fb;
}

.curricula-semester__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: end;
  margin-bottom: 5px;
  color: #1c2a4f;
}

.curricula-semester__head strong {
  grid-row: span 2;
  color: var(--primary);
  font-size: 40px;
  line-height: 0.9;
}

.curricula-semester__head span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.curricula-semester__head small {
  color: #7d8faa;
  font-size: 11px;
  line-height: 1.25;
}

.curricula-choice-group {
  border: 1px dashed #f0abc9;
  background: #fff7fb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.curricula-choice-group.is-open {
  border-color: rgba(209, 16, 103, 0.42);
  box-shadow: 0 8px 16px rgba(209, 16, 103, 0.08);
}

.curricula-choice-group__head {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #8f164f;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.curricula-choice-group__head span {
  line-height: 1.2;
}

.curricula-choice-group__head small {
  color: #a65c7f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.curricula-choice-group__body {
  display: none;
  gap: 5px;
  padding: 0 8px 8px;
}

.curricula-choice-group.is-open .curricula-choice-group__body {
  display: grid;
  animation: section-panel-enter 0.22s ease;
}

/* Curricula horizontal grid */
.curricula-grid-wrap {
  overflow-x: auto;
  border: 1px solid #dce7fb;
  background: #f4f8ff;
}

.curricula-grid {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: calc(var(--sem-count, 8) * 180px);
}

.curricula-grid__header {
  display: grid;
  grid-template-columns: repeat(var(--sem-count, 8), 1fr);
  border-bottom: 2px solid #dce7fb;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f8ff;
}

.curricula-col-head {
  display: grid;
  padding: 14px 12px 12px;
  border-right: 1px solid #dce7fb;
  text-align: center;
  gap: 2px;
}

.curricula-col-head:last-child {
  border-right: 0;
}

.curricula-col-head__num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
}

.curricula-col-head__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7d8faa;
}

.curricula-col-head__stats {
  font-size: 11px;
  color: #9aabbd;
  margin-top: 2px;
}

.curricula-grid__body {
  display: grid;
  grid-template-columns: repeat(var(--sem-count, 8), 1fr);
  align-items: start;
}

.curricula-col {
  display: grid;
  gap: 5px;
  padding: 10px 8px;
  border-right: 1px solid #dce7fb;
  align-content: start;
  transition: background 0.22s ease;
}

.curricula-col:last-child {
  border-right: 0;
}

.curricula-col.has-spec-highlight {
  background: rgba(11, 87, 208, 0.03);
}

.curricula-cell {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  background: #fff;
  border-left: 3px solid var(--row-color);
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.18s ease, box-shadow 0.18s ease;
  will-change: opacity, transform;
  animation: curricula-cell-enter 0.26s cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.curricula-cell--compact {
  padding: 10px 11px;
  background: #fff;
}

.curricula-cell--static {
  cursor: default;
}

.curricula-cell:hover,
.curricula-cell:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 35, 80, 0.12);
}

.curricula-cell--static:hover {
  transform: none;
  box-shadow: none;
}

.curricula-cell.is-spec-dim {
  opacity: 0.22;
}

.curricula-cell.is-spec-active {
  box-shadow: 0 0 0 2px var(--row-color), 0 4px 16px rgba(6, 35, 80, 0.14);
}

.curricula-cell__marker {
  display: none;
}

.curricula-cell__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2a4f;
}

.curricula-cell__meta {
  font-size: 12px;
  color: #7d8faa;
  font-weight: 600;
  line-height: 1.25;
}

.curricula-row--primary {
  --row-color: #1c63d5;
  --row-soft: #eaf3ff;
}

.curricula-row--accent {
  --row-color: #d11067;
  --row-soft: #fff0f7;
}

.curricula-row--light {
  --row-color: #58a1e8;
  --row-soft: #edf7ff;
}

.curricula-row--muted {
  --row-color: #7d879b;
  --row-soft: #f0f2f6;
}

.curricula-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.curricula-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 37, 0.38);
}

.curricula-modal__dialog {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 7vh auto 0;
  background: #fff;
  border: 1px solid #dbe6fb;
  box-shadow: 0 24px 60px rgba(6, 27, 67, 0.22);
}

.curricula-modal__body {
  padding: 22px 28px 10px;
}

.curricula-modal__body h3 {
  margin: 0 0 16px;
  font-size: 28px;
  color: #1c2a4f;
}

.curricula-modal__meta,
.curricula-modal__focus {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 4px;
  font-weight: 700;
}

.curricula-modal__meta {
  color: #d11067;
}

.curricula-modal__focus {
  color: var(--primary);
}

.curricula-modal__text,
.curricula-modal__faq {
  color: #43506e;
  line-height: 1.55;
}

.curricula-modal__faq h4 {
  margin: 20px 0 12px;
  color: #1c2a4f;
}

.curricula-modal__faq article + article {
  margin-top: 12px;
}

.curricula-modal__faq strong {
  display: block;
  margin-bottom: 4px;
  color: #1c2a4f;
}

.curricula-modal__faq p {
  margin: 0;
}

.curricula-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 28px 22px;
}

body.is-modal-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 36px 0 44px;
  color: #fff;
  background: #061b43;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__brand img {
  width: 160px;
}

.site-footer__copy {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer__nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-header__toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .site-header__tools {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none !important;
    width: 100%;
    padding: 16px clamp(20px, 2.4vw, 44px);
    background: #1359c8;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 34px rgba(3, 18, 48, 0.22);
  }

  .site-header.is-open .site-header__tools {
    display: grid !important;
    align-items: stretch;
    justify-items: stretch;
    gap: 12px;
  }

  .site-header.is-open .site-nav {
    display: grid;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    gap: 8px;
  }

  .site-header.is-open .site-nav a {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 41, 101, 0.24);
    font-size: 15px;
    line-height: 1.15;
    text-align: left;
  }

  .site-search {
    width: min(280px, 100%);
    min-width: 0;
    flex-basis: auto;
  }

  .site-header.is-open .site-language {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
    justify-content: flex-start;
  }

  .site-header.is-open .site-language__link {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    background: rgba(6, 41, 101, 0.3);
  }
}

/* Tablet */
@media (max-width: 960px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-nav,
  .program-grid,
  .program-card dl {
    grid-template-columns: 1fr;
  }

  .program-grid {
    display: grid;
  }

  .site-search {
    width: min(280px, 100%);
    min-width: 0;
    flex-basis: auto;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero__cat {
    left: clamp(-76px, calc(3vw - 70px), -12px);
    bottom: clamp(104px, 12vh, 164px);
    bottom: clamp(104px, 12svh, 164px);
    width: 190px;
    opacity: 0.82;
  }

  .hero__content {
    padding-top: clamp(48px, 7vh, 72px);
    padding-bottom: clamp(142px, 16vh, 190px);
    padding-top: clamp(48px, 7svh, 72px);
    padding-bottom: clamp(142px, 16svh, 190px);
  }

  .home-section-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .programs-widget {
    padding: 0 0 12px;
  }

  .programs-widget__header {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }

  .site-brand__mark {
    width: 138px;
    height: 34px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__nav {
    justify-content: center;
  }

  .partner-card {
    flex-basis: clamp(216px, 34vw, 280px);
  }

  .partner-card--wide {
    flex-basis: clamp(340px, 54vw, 460px);
  }

  .hero__divider {
    height: clamp(70px, 10vw, 96px);
    background-position: center calc(100% + clamp(34px, 6vw, 48px));
    background-size: auto clamp(146px, 20vw, 172px);
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-block-height: 60px;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero__actions,
  .button,
  .site-footer__nav {
    width: 100%;
  }

  .home-lower {
    padding-top: 28px;
  }

  .home-lower__panel {
    padding: 34px 18px 42px;
    border-width: 3px;
  }

  .home-lower__content {
    gap: 28px;
  }

  .home-lower__lead {
    font-size: 16px;
  }

  .research-list {
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
  }

  .research-list li {
    width: 100%;
    font-size: 16px;
  }

  .home-lower__pixels {
    display: none;
  }

  .partners {
    padding: 34px 0 42px;
  }

  .partner-card {
    flex-basis: 220px;
    min-height: 92px;
    padding: 20px;
  }

  .partner-card--wide {
    flex-basis: 320px;
  }

  .partner-card--wide img {
    width: min(284px, 90%);
    max-height: 62px;
  }

  .site-brand__mark {
    width: 116px;
    height: 28px;
  }

  .button {
    justify-content: center;
  }

  .hero h1,
  .section-heading h2,
  .programs-widget__header h3,
  .section-copy h2,
  .page-title {
    line-height: 1.05;
  }

  .section,
  .page-shell {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .not-found-page {
    display: grid;
    align-items: center;
    min-height: calc(100svh - var(--header-block-height) - 250px);
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .not-found-page__inner {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 18px;
    min-height: auto;
    text-align: center;
  }

  .not-found-page__cat {
    order: -1;
  }

  .not-found-page__copy {
    justify-items: center;
    gap: 14px;
  }

  .not-found-page__cat {
    width: min(52vw, 170px);
  }

  .not-found-page .page-title {
    font-size: clamp(34px, 8vw, 42px);
  }

  .not-found-page__copy .page-description {
    font-size: clamp(20px, 5vw, 26px);
  }

  .section--surface {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .section--surface-overlap {
    margin-top: 27px;
    padding-top: 23px;
  }

  .section--surface-overlap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 30px;
    background: #fff;
    pointer-events: none;
  }

  .section--surface-overlap .programs-widget {
    margin-top: -10px;
  }

  .hero__content {
    padding-top: clamp(36px, 6vh, 54px);
    padding-bottom: clamp(126px, 18vh, 162px);
    padding-top: clamp(36px, 6svh, 54px);
    padding-bottom: clamp(126px, 18svh, 162px);
  }

  .hero h1 {
    font-size: clamp(34px, 8.6vw, 50px);
    line-height: 1.12;
  }

  .hero__subtitle {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .hero__cat {
    left: -54px;
    bottom: clamp(88px, 13vh, 136px);
    bottom: clamp(88px, 13svh, 136px);
    width: 148px;
    opacity: 0.78;
  }

  .site-header__inner {
    width: calc(100% - 20px);
    max-width: none;
    min-height: 58px;
  }

  .site-header__tools {
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 12px 16px;
  }

  .site-header.is-open .site-nav a {
    justify-content: flex-start;
    font-size: 15px;
    white-space: normal;
  }

  .site-header.is-open .site-language {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-header.is-open .site-language__link {
    width: 100%;
  }

  .section--surface-overlap .programs-widget__header {
    transform: none;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 2px;
  }

  .site-search__results {
    right: auto;
    width: 100%;
  }

  .home-sections__tab,
  .curricula__switch {
    width: 100%;
  }

  .home-section-panel {
    padding: 20px 16px;
  }

  .home-section-panel__copy h3 {
    font-size: 28px;
  }

  .programs-widget__header h3 {
    font-size: 24px;
    text-align: center;
  }

  .programs-widget__nav {
    width: 40px;
    height: 40px;
    align-self: center;
  }

  .programs-widget__nav img {
    width: 20px;
    height: 20px;
  }

  .programs-widget__pills {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .program-pill {
    flex: 0 1 100%;
    width: 100%;
    max-width: 100%;
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
    text-align: center;
    padding: 10px 14px;
    font-size: clamp(14px, 3.85vw, 17px);
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .program-pill.is-active {
    display: block;
  }

  .program-highlight {
    padding: 20px 18px;
    text-align: center;
  }

  .program-highlight h4 {
    font-size: clamp(22px, 5.8vw, 28px);
    line-height: 1.16;
  }

  .program-highlight p {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.22;
  }

  .program-highlight .button {
    justify-self: stretch;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .curricula {
    margin-top: 36px;
  }

  .curricula__switch {
    min-height: 68px;
  }

  .curricula__heading h2 {
    font-size: 38px;
  }

  .curricula-filter {
    padding-top: 0;
  }

  .curricula-year__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .curricula-year__body {
    grid-template-columns: 1fr;
  }

  .curricula-semester + .curricula-semester {
    border-top: 1px solid #dce7fb;
    border-left: 0;
  }

  .curricula-choice-group__head {
    display: grid;
  }

  .curricula-modal__dialog {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .curricula-modal__body,
  .curricula-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .curricula-modal__body h3 {
    font-size: 22px;
  }

  .spec-accordion__track {
    grid-template-columns: 1fr;
  }

  .programs-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 0;
    padding: 14px 18px 12px;
    text-align: left;
  }

  .stat-card__plate {
    left: auto;
    right: -16px;
    width: 92px;
    height: 92px;
    transform: none;
  }

  .stat-card strong {
    margin-top: 4px;
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.9;
  }

  .stat-card strong[data-program-stat="price"] {
    font-size: clamp(36px, 12vw, 52px);
  }
}

/* Narrow tablets / large phones */
@media (max-width: 760px) {
  .programs-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    min-height: 0;
  }

  .program-highlight {
    padding: 20px 18px;
    text-align: center;
  }

  .program-highlight h4 {
    font-size: clamp(24px, 5.2vw, 30px);
    line-height: 1.18;
  }

  .program-highlight p {
    font-size: clamp(16px, 3.4vw, 20px);
    line-height: 1.24;
  }

  .program-highlight .button {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .program-highlight h4 {
    font-size: clamp(22px, 5.8vw, 28px);
    line-height: 1.16;
  }

  .program-highlight p {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.22;
  }
}

/* Tall screens with burger header */
@media (min-width: 900px) and (max-aspect-ratio: 11/10) {
  .hero__divider {
    height: clamp(82px, 8vw, 112px);
    background-position: center calc(100% + clamp(42px, 5vw, 58px));
    background-size: auto clamp(168px, 14vw, 196px);
  }

  .section--surface-overlap {
    margin-top: 34px;
    padding-top: 28px;
  }

  .section--surface-overlap .programs-widget {
    margin-top: -20px;
  }
}
