:root {
  font-family: Arial, sans-serif;
  color: #121644;
  background: #eef0f4;
  --capec-red: #bf0020;
  --heading-blue: #0228a3;
  --capec-blue: #013283;
  --deep-blue: #01113b;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, blockquote, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a:focus-visible, summary:focus-visible, .wide-menu button:focus-visible {
  outline: 3px solid #00a9ff;
  outline-offset: 4px;
}

.page {
  --page-max-width: 45rem;
  --cover-ratio: 1366 / 656;
  --home-hero-ratio: 1120 / 1700;
  --floating-right: max(0px, (100% - var(--page-max-width)) / 2);
  --floating-top: 24px;
  position: relative;
  max-width: var(--page-max-width);
  min-height: 100vh;
  margin-inline: auto;
  background: #fff;
  container-type: inline-size;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  color: var(--deep-blue);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.masthead {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 30cqi;
  place-items: center;
  background: var(--capec-red);
  color: #fff;
}

.masthead-brand {
  width: 46%;
  margin-top: 4cqi;
}

.masthead-brand img { width: 100%; }
.wide-menu, .intro-seal { display: none; }

.menu {
  position: absolute;
  top: calc(50% + 2cqi);
  left: max(0.5rem, 2cqi);
  transform: translateY(-50%);
}

.menu summary {
  display: grid;
  width: max(44px, 11cqi);
  height: max(44px, 11cqi);
  place-items: center;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker { display: none; }

.menu-icon {
  position: relative;
  display: grid;
  align-items: center;
  width: clamp(24px, 6.5cqi, 42px);
  height: clamp(15px, 3.5cqi, 24px);
}

.menu-icon::before, .menu-icon::after, .menu-icon span {
  position: absolute;
  width: 100%;
  height: max(2px, 0.5cqi);
  border-radius: 4px;
  background: currentColor;
  content: "";
}

.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }
.menu[open] .menu-icon::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu[open] .menu-icon::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
.menu[open] .menu-icon span { visibility: hidden; }

.menu-options {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  width: min(16rem, 86cqi);
  padding: 0.35rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--deep-blue);
  box-shadow: 0 0.5rem 1.5rem #01113b3d;
}

.menu-options li {
  padding-block: 0.72rem;
  font-weight: 700;
}
.menu-options li + li { border-top: 1px solid #e8eaf0; }
.menu-options a { display: block; color: inherit; text-decoration: none; }
.menu-options a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.quick-strip {
  display: flex;
  min-height: max(44px, 12.7cqi);
  padding-inline: 5%;
  gap: 2cqi;
  align-items: center;
  justify-content: space-between;
  background: #f6f6f6;
  color: #17171a;
}

.quick-home {
  display: grid;
  flex: 0 0 44px;
  min-height: 44px;
  place-items: center;
}

.quick-home img { width: clamp(21px, 5.4cqi, 36px); }

.quick-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.8cqi;
  font-size: clamp(11px, 2.95cqi, 19px);
}
.quick-labels li::before {
  display: inline-block;
  margin-right: 0.24em;
  border-top: 1px solid var(--capec-red);
  border-left: 1px solid var(--capec-red);
  width: 0.37em;
  height: 0.37em;
  transform: translateY(-0.14em) rotate(-45deg);
  content: "";
}
.quick-labels a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-color: transparent;
}
.quick-labels a:hover, .quick-labels a:focus-visible { text-decoration-color: currentColor; }
.alumni { width: 21%; }
.quick-alumni { display: block; width: 21%; }
.quick-alumni .alumni { width: 100%; }

.hero-picture { display: block; overflow: hidden; }
.hero-slide[hidden], .carousel-controls[hidden] { display: none !important; }
.hero-slide { display: block; }
@media (min-width: 56rem) and (prefers-reduced-motion: no-preference) {
  .hero-picture[data-slide-direction="right"] {
    --slide-enter-offset: -100%;
    --slide-exit-offset: 100%;
  }
  .hero-slide.slide-entering,
  .hero-slide.slide-leaving {
    animation-duration: 1690ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
  }
  .hero-slide.slide-entering {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 1;
    animation-name: slide-enter;
  }
  .hero-slide.slide-leaving { animation-name: slide-exit; }
  @keyframes slide-enter {
    from { transform: translateX(var(--slide-enter-offset, 100%)); }
    to { transform: translateX(0); }
  }
  @keyframes slide-exit {
    from { transform: translateX(0); }
    to { transform: translateX(var(--slide-exit-offset, -100%)); }
  }
}
.carousel-controls, .numbers-graduate, .footer-address, .desktop-legal { display: none; }
.hero-image, .numbers-photo { width: 100%; }

.hero-slide .hero-image {
  aspect-ratio: var(--home-hero-ratio);
}

.branch-home {
  --home-hero-ratio: var(--cover-ratio);
}

.carousel-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #ffffffa0;
  border-radius: 50%;
  background: #00113bc7;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.carousel-controls button:focus-visible { outline: 3px solid #00a9ff; outline-offset: 3px; }

.hero-cover {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  place-items: center;
  aspect-ratio: var(--cover-ratio);
  background: var(--deep-blue);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (width < 56rem) {
  .mobile-cover {
    aspect-ratio: var(--cover-ratio);
    object-fit: cover;
  }
}

.hero-end {
  position: relative;
  min-height: 6cqi;
}

.info-badge {
  --info-rise: 77%;
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1.5cqi;
  min-height: max(38px, 12cqi);
  padding: 0 6cqi 0 5.4cqi;
  border-radius: 999px 0 0 999px;
  background: #0029ee;
  color: #fff;
  font-size: clamp(17px, 5.2cqi, 34px);
  font-style: italic;
  text-decoration: none;
  transform: translateY(calc(-1 * var(--info-rise)));
}

.info-badge:hover { background: #0021c7; }

.info-badge img {
  width: clamp(43px, 15cqi, 97px);
  margin-block: -1.25cqi;
}

.info-docked .hero-end .info-badge {
  position: fixed;
  z-index: 4;
  top: var(--floating-top);
  right: var(--floating-right);
  transform: none;
}

.info-docked .footer .info-badge { display: none; }

.editorial { width: min(77%, 35rem); margin-inline: auto; }
.editorial p { font-size: clamp(0.9375rem, 3.05cqi, 1.125rem); line-height: 1.24; }
.intro { padding-top: 6cqi; }

h1, h2 {
  color: var(--heading-blue);
  font-size: clamp(1.45rem, 6.2cqi, 2.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
h2 strong { display: block; }
.intro p { margin: 0.65rem 0 0 4%; }

.essence { padding-top: 5.5cqi; }
.back-top {
  position: fixed;
  z-index: 4;
  right: calc(var(--floating-right) + 1rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  min-height: 44px;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: var(--heading-blue);
  color: #fff;
  font-size: clamp(1.05rem, 4.6cqi, 1.7rem);
  font-style: italic;
  text-decoration: none;
}
.back-top[hidden] { display: none; }

.advisor-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3cqi;
  width: min(max(71cqi, 14rem), 95%, 36rem);
  min-height: max(44px, 10cqi);
  margin: 12cqi auto 10cqi;
  padding-inline: .75rem;
  border-radius: 999px;
  background: #c40808;
  color: #fff;
  font-size: clamp(.9rem, 3.8cqi, 1.5rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.advisor-link img {
  width: clamp(3rem, 15cqi, 6rem);
  margin-block: -1.5cqi;
}

.advisor-link:hover { background: #ab0000; }

.motto {
  margin: 1.25rem 0 6cqi;
  color: #900001;
  font-size: clamp(1.4rem, 5.7cqi, 2.45rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-align: center;
}
.motto strong { display: block; font-size: 1.3em; }
.essence-copy p + p { margin-top: 0.75rem; }
.signature { text-align: center; font-weight: 700; font-style: italic; }
.seal-note {
  display: grid;
  justify-items: center;
  gap: 2cqi;
  padding-block: 6cqi 3.5cqi;
  color: var(--capec-blue);
  text-align: center;
}
.seal-note img { width: 21cqi; }
.seal-note p {
  font-size: clamp(1.05rem, 3.9cqi, 1.65rem);
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  min-height: 21cqi;
  padding: 0.65rem 0.55rem 0.65rem min(10cqi, 4rem);
  color: #fff;
  background: var(--capec-blue);
}
.metric dt { font-size: clamp(0.8rem, 3cqi, 1.2rem); line-height: 1.03; font-weight: 700; }
.metric dd {
  position: relative;
  font-size: clamp(1.8rem, 9.2cqi, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
  white-space: nowrap;
}
.metric-current {
  display: none;
  position: absolute;
  inset: 0 auto auto 0;
}
@media (prefers-reduced-motion: no-preference) {
  .is-counting .metric-total { opacity: 0; }
  .metric-current { display: block; }
}
.metric-branches {
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3em;
  padding-left: 8cqi;
}
.metric-branches::before {
  position: absolute;
  z-index: -1;
  left: 3%;
  bottom: -9%;
  color: #6fb7ff61;
  font: 700 23cqi/1.15 Arial, sans-serif;
  content: "«";
}
.metric-graduates { background: #f2f2f2; color: var(--deep-blue); padding-left: 7cqi; }
.metric-degrees { background: var(--deep-blue); }
.metric-years { background: #ed0000; }
.metric-years dd { font-size: clamp(1.5rem, 7.4cqi, 3.5rem); }

.locations { padding: 15cqi 0 19cqi; }
.locations-card {
  width: 90%;
  margin-left: 7%;
  padding: 3cqi 2cqi 4cqi 7cqi;
  border-radius: 32cqi 0 0 32cqi;
  background: #f2f2f2;
}
.locations-content {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
}
.locations-copy {
  padding-block: 0.9rem 0.3rem;
  font-size: clamp(0.8125rem, 2.65cqi, 1rem);
  font-weight: 700;
  line-height: 1.18;
}
.locations-copy p + p { margin-top: 0.65rem; }
.locations-art { position: relative; }
.locations-map { position: relative; width: 100%; }
.locations-flag {
  position: absolute;
  left: 52.3%;
  top: 4.9%;
  width: 43.5%;
  filter: drop-shadow(3px 4px 3px #0005);
}
.locations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0;
  justify-content: center;
  padding-inline: 4%;
  font-size: clamp(0.875rem, 3.05cqi, 1.125rem);
  font-weight: 700;
  text-align: center;
}
.locations-list li { white-space: nowrap; }
.locations-list li:not(:last-child)::after { margin-inline: 0.55em; content: "|"; }
.branch-sites {
  margin-top: clamp(1.4rem, 3cqi, 2.5rem);
  text-align: center;
}

.branch-sites a {
  display: inline-block;
  padding-block: .35em;
  color: var(--capec-blue);
  text-underline-offset: .18em;
}

.branch-sites a:hover { color: var(--heading-blue); }

.footer {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 7cqi 1rem 8cqi;
  background: #2e2f33;
  color: #fff;
  text-align: center;
}

.footer > p { font-size: clamp(0.875rem, 3cqi, 1.125rem); }
.footer-social { display: flex; gap: 0.1rem; margin-top: 1.9cqi; }
.footer-social a { display: block; width: clamp(2.75rem, 13cqi, 4.75rem); border-radius: 50%; }
.footer-social a:hover { filter: brightness(1.15); }
.footer-social img { width: 100%; }
.footer-logo { width: min(14%, 6.25rem); margin-top: 7cqi; }
.footer small { margin-top: 2cqi; font-size: clamp(0.75rem, 2.25cqi, 0.875rem); }

@media (width < 56rem) {
  .branch-home .carousel-controls {
    display: flex;
    gap: .3rem;
    padding: .35rem .5rem;
    background: var(--deep-blue);
  }
  .branch-page .footer-address {
    display: block;
    max-width: 32ch;
    margin-bottom: 1.25rem;
    font-size: .9rem;
    font-style: normal;
    line-height: 1.45;
  }
}

@media (min-width: 56rem) {
  .page {
    --page-max-width: 100rem;
    --home-hero-ratio: var(--cover-ratio);
    --gutter: clamp(1.5rem, 5cqi, 5rem);
    --section-gap: clamp(3rem, 6cqi, 6rem);
  }

  .site-header {
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    background: #181b27be;
  }

  .masthead {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    min-height: 4.5rem;
    max-width: 76rem;
    margin-inline: auto;
    padding: 0.55rem var(--gutter);
    background: transparent;
  }

  .menu { display: none; }
  .masthead-brand { flex: 0 0 11rem; margin: 0; }
  .wide-menu, .wide-options { display: flex; align-items: center; }
  .wide-menu { gap: clamp(0.75rem, 2.5cqi, 2rem); }
  .wide-home img { width: 2rem; filter: invert(1); }
  .wide-options { gap: clamp(0.6rem, 1.5cqi, 1.25rem); font-size: 0.9375rem; }
  .wide-options :is(button, a), .alumni-button {
    border: 0;
    padding: 0.5rem 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: default;
  }
  .alumni-button { cursor: pointer; }
  .alumni-button:hover, .quick-alumni:hover { filter: brightness(1.16); }
  .wide-options a { display: block; cursor: pointer; text-decoration: none; }
  .wide-options :is(button, a):hover { text-decoration: underline; text-underline-offset: 0.3em; }
  .wide-menu .alumni { width: 7rem; }

  .hero {
    --quick-height: 3.65rem;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .hero-picture { order: -1; position: relative; isolation: isolate; }
  .carousel-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.35rem;
  }
  .hero-end { position: absolute; inset: 67% 0 auto; min-height: 0; }
  .info-badge {
    --info-rise: 50%;
    min-height: 3.25rem;
    padding-inline: 1.3rem 1rem;
    gap: 0.5rem;
    font-size: 1.375rem;
  }
  .info-badge img { width: 4.25rem; margin-block: -0.4rem; }
  .quick-strip {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 32%;
    width: 49%;
    min-height: 2.6rem;
    padding: 0;
    background: transparent;
  }
  .quick-home { display: none; }
  .quick-labels { display: contents; }
  .quick-labels li {
    display: none;
    flex: 1;
    height: 2.6rem;
    background: #032f81;
    color: white;
    text-align: center;
    font-size: clamp(0.875rem, 1.35cqi, 1.4rem);
    line-height: 2.6rem;
  }
  .quick-labels li:first-child, .quick-labels li:nth-child(2) { display: block; }
  .quick-labels li:nth-child(2) { background: #900001; }
  .quick-labels li::before { display: none; }
  .quick-labels a { display: block; }
  .quick-strip .quick-alumni {
    flex: 1;
    width: 0;
    height: 2.6rem;
    display: grid;
    place-items: center;
    background: #032f81;
  }
  .quick-strip .quick-alumni .alumni { width: 100%; height: 2.6rem; object-fit: contain; }

  .editorial {
    width: min(68rem, calc(100% - var(--gutter) * 2));
  }
  .editorial p { font-size: 1rem; line-height: 1.45; }
  h1 { font-size: clamp(2.25rem, 4cqi, 3.85rem); }
  h2 { font-size: clamp(2rem, 3.4cqi, 3.125rem); }

  .intro {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 5cqi, 5rem);
    align-items: center;
    padding-top: var(--section-gap);
  }
  .intro-seal { display: block; justify-self: center; width: min(76%, 12rem); }
  .intro p { margin: 1rem 0 0; }

  .essence {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.6fr);
    grid-template-areas:
      "heading motto"
      "note copy";
    align-items: start;
    row-gap: 1.5rem;
    column-gap: clamp(2rem, 5cqi, 5rem);
    padding-block: var(--section-gap);
  }
  .essence h2 { grid-area: heading; }
  .back-top { font-size: 1rem; }
  .motto {
    grid-area: motto;
    margin: 0;
    font-size: clamp(2rem, 3.5cqi, 3.125rem);
    text-align: left;
  }
  .essence-copy { grid-area: copy; }
  .signature { text-align: left; }
  .seal-note { grid-area: note; padding: 0; text-align: left; }
  .seal-note img { display: none; }
  .seal-note p { font-size: clamp(1.2rem, 2cqi, 1.75rem); line-height: 1.2; }

  .numbers {
    display: grid;
    grid-template-columns: 8% 19% 12% 7% 20% 11% 23%;
    grid-template-rows: clamp(10rem, 16cqi, 19rem) clamp(11rem, 19cqi, 22rem);
    align-items: stretch;
    padding-bottom: 2rem;
  }
  .numbers-picture { grid-area: 2 / 2 / 3 / 5; min-width: 0; }
  .numbers-photo { height: 100%; object-fit: cover; }
  .numbers-graduate {
    display: block;
    grid-area: 1 / 7 / 3 / 8;
    align-self: end;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom left;
  }
  .metrics { display: contents; }
  .metric {
    min-width: 0;
    min-height: 0;
    padding: 1rem clamp(1rem, 3cqi, 3rem);
  }
  .metric dt { font-size: clamp(0.85rem, 1.6cqi, 1.75rem); }
  .metric dd { font-size: clamp(3rem, 6cqi, 7rem); }
  .metric-branches { grid-area: 1 / 1 / 2 / 3; flex-direction: row-reverse; align-items: center; justify-content: center; padding-left: 3cqi; }
  .metric-branches::before { bottom: 3%; font-size: clamp(5rem, 12cqi, 9rem); }
  .metric-graduates { grid-area: 1 / 3 / 2 / 5; align-items: center; }
  .metric-degrees { grid-area: 1 / 5 / 2 / 7; align-items: center; border-radius: 0 999px 999px 0; }
  .metric-years { grid-area: 2 / 5 / 3 / 8; z-index: 1; width: 76%; align-items: flex-start; border-radius: 0 999px 999px 0; background: #900001; }
  .metric-years dd { font-size: clamp(3rem, 7cqi, 7.5rem); }

  .locations { max-width: 80rem; margin-inline: auto; padding: var(--section-gap) var(--gutter); }
  .locations-card {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 6cqi, 5rem);
    width: 100%;
    margin: 0;
    padding: 2.25rem 2.5rem;
    border-radius: 0 0 0 clamp(4rem, 12cqi, 10rem);
    background: transparent;
  }
  .locations-card h2 { grid-area: 1 / 1; padding-left: 1rem; }
  .locations-content { display: contents; }
  .locations-copy {
    grid-area: 2 / 1;
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.4;
    padding: 1.25rem 0 0 1rem;
  }
  .locations-art {
    grid-area: 1 / 2 / 3;
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 5rem;
    border-radius: 999px 0 0 999px;
    background: #f2f2f2;
    justify-self: center;
  }
  .locations-flag { left: 54%; top: 8%; width: 30%; }
  .locations-list { font-size: 1rem; line-height: 1.25; }

  .footer {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "address brand follow"
      "address brand social"
      "legal legal legal";
    align-items: center;
    gap: 0.6rem;
    padding: 3rem var(--gutter) 1.6rem;
  }
  .footer > p { grid-area: follow; align-self: end; font-size: 1rem; }
  .footer-social { grid-area: social; align-self: start; gap: 0.65rem; margin: 0; }
  .footer-social a { width: 3rem; }
  .footer-address { grid-area: address; display: block; border-top: 2px solid #ddd; padding-top: 1rem; font-size: 0.8rem; font-weight: bold; font-style: normal; text-align: left; }
  .desktop-legal { display: inline; }
  .footer-logo { grid-area: brand; width: 4.75rem; margin: 0; }
  .footer small { grid-area: legal; margin-top: 1rem; font-size: 0.8125rem; }
}

.pending-page { min-height: 100vh; background: #fff; }
.pending-header { padding: 1rem clamp(1.5rem, 8vw, 7rem); background: #bf0020; }
.pending-header img { width: 12rem; }
.pending-content { width: min(68rem, 100% - 3rem); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) 0; }
.pending-content p { margin-block: 1.5rem 2rem; font-size: 1.125rem; }
.pending-content a { display: inline-block; padding: 0.8rem 1.2rem; border-radius: 0.35rem; background: #013283; color: #fff; text-decoration: none; }
.pending-content a:hover { background: #0228a3; }
