:root {
  --blue: #0c2d6b;
  --blue-deep: #071a42;
  --red: #c4122f;
  --red-soft: #e23a4f;
  --paper: #f4f7fb;
  --ink: #152238;
  --muted: #5a6578;
  --line: rgba(21, 34, 56, 0.12);
  --white: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 70rem;
  --radius: 0.35rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -8%, rgba(196, 18, 47, 0.07), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(12, 45, 107, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 45%, #e8eef7 100%);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--blue);
}

.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  opacity: 1;
  color: var(--blue);
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.88;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-toggle::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.dropdown-menu {
  display: none;
  min-width: 15.5rem;
  padding: 0.45rem 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  box-shadow: 0 16px 36px rgba(7, 26, 66, 0.12);
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1rem;
  opacity: 1;
  font-size: 0.92rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(12, 45, 107, 0.06);
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  opacity: 1;
}

@media (min-width: 981px) {
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
  }

  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu,
  .has-dropdown.is-open .dropdown-menu {
    display: block;
  }
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  background: var(--blue);
  color: var(--white) !important;
  opacity: 1 !important;
  border-radius: var(--radius);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--blue-deep);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.55rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0.35rem 0;
  background: var(--blue);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero — one composition, brand-first, full-bleed */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue-deep);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 66, 0.42) 0%, rgba(7, 26, 66, 0.62) 42%, rgba(7, 26, 66, 0.88) 100%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(196, 18, 47, 0.28), transparent 60%);
  animation: wash-drift 14s ease-in-out infinite alternate;
}

.hero-content {
  width: min(42rem, calc(100% - 2 * var(--space)));
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero-logo {
  width: clamp(7rem, 18vw, 10rem);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
  animation: rise-in 0.9s ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  animation: rise-in 0.9s ease 0.12s both;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  animation: rise-in 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: rise-in 0.9s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: rgba(12, 45, 107, 0.28);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.section {
  padding: clamp(4rem, 9vw, 6.5rem) var(--space);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--blue-deep);
  max-width: 18ch;
}

.section-copy {
  margin: 0;
  max-width: 40rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.about-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .about-layout {
    grid-template-columns: 1.05fr 0.9fr;
  }
}

.about-photo {
  margin: 0;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: min(34rem, 72vw);
  object-fit: cover;
  object-position: center 30%;
  border-radius: 0.55rem;
  box-shadow: 0 22px 48px rgba(7, 26, 66, 0.18);
}

.about-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-preview {
  background:
    linear-gradient(180deg, rgba(12, 45, 107, 0.035), rgba(255, 255, 255, 0.4));
}

.gallery-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.gallery-intro h2 {
  max-width: 14ch;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  grid-template-rows: minmax(15rem, 26vw) minmax(14rem, 22vw);
  gap: 0.8rem;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  min-height: 14rem;
  background: #d7deea;
  text-decoration: none;
  color: var(--white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(7, 26, 66, 0.78));
}

.gallery-item-wide {
  grid-column: 1 / 3;
}

.gallery-item-tall {
  grid-column: 3;
  grid-row: 1 / 3;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
}

.gallery-page-grid .gallery-item {
  min-height: 22rem;
}

.gallery-page-grid .gallery-item:first-child {
  grid-row: span 2;
  min-height: 36rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(5, 14, 34, 0.88);
  padding: 1.5rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(92vw, 68rem);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  text-align: center;
  max-width: 40rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  border-radius: 999px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.4rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.5rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: var(--red);
}

@media (max-width: 800px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-item-wide,
  .gallery-item-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item-tall {
    min-height: 22rem;
  }

  .gallery-page-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page-grid .gallery-item,
  .gallery-page-grid .gallery-item:first-child {
    min-height: 18rem;
    grid-row: auto;
  }

  .lightbox-nav {
    display: none;
  }
}

.academics {
  background:
    linear-gradient(135deg, rgba(12, 45, 107, 0.04), rgba(196, 18, 47, 0.05));
  border-block: 1px solid var(--line);
}

.academics-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .academics-layout {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
  }
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.pillar-list li {
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.pillar-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pillar-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.pillar-list span {
  color: var(--muted);
  font-size: 0.98rem;
}

.visit-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .visit-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
    gap: 2.5rem;
  }
}

.address-block {
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.7;
  color: var(--blue-deep);
  padding-left: 1rem;
  border-left: 3px solid var(--red);
}

.visit-map {
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #dfe6f2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  border: 0;
}

.contact {
  background:
    linear-gradient(160deg, var(--blue-deep), var(--blue) 55%, #1a3f7a);
  color: var(--white);
}

.contact .eyebrow {
  color: #ffb4bf;
}

.contact h2 {
  color: var(--white);
  max-width: 16ch;
}

.contact .section-copy {
  color: rgba(255, 255, 255, 0.86);
}

.contact-inner {
  max-width: 40rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.contact .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.site-footer {
  background: #050e22;
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem var(--space);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wash-drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-2%, 1%);
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--space) 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .dropdown-toggle {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
    justify-content: space-between;
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 0 0.35rem;
    padding: 0 0 0.35rem 0.75rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }

  .has-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.65rem 0.25rem;
    font-weight: 500;
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 0;
    width: auto;
  }

  .brand-text {
    font-size: 1rem;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 5.5rem var(--space) 3.25rem;
  background:
    linear-gradient(145deg, var(--blue-deep) 0%, var(--blue) 52%, #163f8a 78%, #8a1528 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: #ffb4bf;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  max-width: 16ch;
}

.page-body {
  padding: clamp(3rem, 7vw, 5rem) var(--space);
}

.page-body-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-body h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--blue-deep);
}

.page-body p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 46rem;
}

.quote-block {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border-left: 4px solid var(--red);
  background: rgba(12, 45, 107, 0.04);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.quote-sign {
  margin: 0;
  font-weight: 700;
  color: var(--blue);
}

.quote-role {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--white);
  margin: 0 0 1.75rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.data-table th {
  background: rgba(12, 45, 107, 0.06);
  color: var(--blue-deep);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--white);
}

.steps strong {
  display: block;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.doc-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.page-body .btn {
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-wash,
  .reveal,
  .gallery-item img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
