:root {
  --ink: #111111;
  --muted: #666666;
  --paper: #ffffff;
  --soft: #f7f9fb;
  --line: #e6ebf0;
  --accent: #0c2340;
  --accent-deep: #081628;
  --accent-light: #7eb6e0;
  --navy: #0c2340;
  --header-h: 78px;
  --font: "Poppins", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent-deep); }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---- Preloader (como aniversario PUCE) ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__inner {
  display: grid;
  place-items: center;
  gap: 1.1rem;
}
.preloader__ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.preloader__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(91, 180, 229, .45);
  border-bottom-color: rgba(91, 180, 229, .2);
  animation: spin 1s linear infinite;
}
.preloader__ring img {
  width: 56px;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  /* escudo puntiagudo: baja un poco para centrarlo a ojo */
  transform: translateY(3px);
}
.preloader__logo {
  text-align: center;
  color: var(--accent);
  line-height: 1.2;
  display: grid;
  place-items: center;
  gap: .25rem;
}
.preloader__logo strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}
.preloader__logo span {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Topbar ---- */
.topbar {
  position: relative;
  z-index: 60;
  background: #0a1628;
  color: rgba(255,255,255,.85);
  font-size: .78rem;
}
.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .35rem 0;
}
.topbar__left {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.topbar__left a:hover,
.topbar__social a:hover { color: #fff; }
.topbar__right {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.topbar__social {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.lang-switch {
  position: relative;
  z-index: 70;
}
.lang-switch__btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font: 600 .72rem/1 var(--font);
  letter-spacing: .06em;
  padding: .4rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .2s ease, border-color .2s ease;
}
.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
}
.lang-switch__btn svg {
  opacity: .85;
  transition: transform .2s ease;
}
.lang-switch.is-open .lang-switch__btn svg {
  transform: rotate(180deg);
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 132px;
  padding: .35rem;
  border-radius: 12px;
  background: #0f1f35;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  display: grid;
  gap: .15rem;
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  font: 500 .8rem/1.2 var(--font);
  text-align: left;
  padding: .55rem .7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch__menu button:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.lang-switch__menu button.is-active {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}
.social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,.88);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-link svg {
  width: 14px;
  height: 14px;
  display: block;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ---- Floating header (Brooklyn style) ---- */
.header {
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, top .25s ease;
}
.header--solid,
.header.is-solid {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  border-bottom: 1px solid var(--line);
}
body[data-page="inicio"] .header.is-solid {
  position: fixed;
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  z-index: 2;
}
.logo__text {
  font-size: clamp(.92rem, 1.35vw, 1.08rem);
  line-height: 1.15;
  max-width: 12ch;
}
.header--solid .logo,
.header.is-solid .logo { color: var(--ink); }
.logo__mark {
  position: relative;
  width: 42px;
  height: 48px;
  flex-shrink: 0;
  display: block;
}
.logo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .25s ease;
}
.logo__img--light { opacity: 1; }
.logo__img--dark { opacity: 0; }
.header--solid .logo__img--light,
.header.is-solid .logo__img--light { opacity: 0; }
.header--solid .logo__img--dark,
.header.is-solid .logo__img--dark { opacity: 1; }
.header--floating:not(.is-solid) .logo__img--light { opacity: 1; }
.header--floating:not(.is-solid) .logo__img--dark { opacity: 0; }
.logo__text em { color: var(--accent-light); }
.header.is-solid .logo__text em { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  font-size: .86rem;
  font-weight: 500;
}
.nav a { color: rgba(255,255,255,.92); }
.header--solid .nav a,
.header.is-solid .nav a { color: var(--ink); }
.nav a:hover,
.nav a.is-active { color: var(--accent); }
.header--floating:not(.is-solid) .nav a.is-active,
.header--floating:not(.is-solid) .nav a:hover { color: var(--accent-light); }
.header--solid .logo,
.header.is-solid .logo { color: var(--ink); }
.header--solid .logo__text em,
.header.is-solid .logo__text em { color: var(--accent); }
.header--solid .nav-toggle span,
.header.is-solid .nav-toggle span { background: var(--ink); }
.nav__cta {
  padding: .55rem 1rem !important;
  border-radius: 4px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
.nav__cta:hover { background: var(--accent-deep) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: .2s ease;
}
.header.is-solid .nav-toggle span { background: var(--ink); }

/* ---- Hero full viewport ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background: #050b14;
}
.hero__media { position: absolute; inset: 0; }
.hero__stack {
  position: absolute;
  inset: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(.9) contrast(1.08) brightness(.72) hue-rotate(8deg);
  transition: opacity .85s ease;
  z-index: 0;
}
.hero__video--geo {
  filter: hue-rotate(195deg) saturate(.55) contrast(1.15) brightness(.65) sepia(.25);
}
.hero__video.is-active {
  opacity: 1;
  z-index: 1;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(126,182,224,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,182,224,.07) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%237eb6e0' stroke-opacity='.22' stroke-width='1.2' d='M80 18 L112 36 V72 L80 90 L48 72 V36 Z'/%3E%3Cpath fill='none' stroke='%237eb6e0' stroke-opacity='.14' stroke-width='1' d='M80 34 L98 44 V64 L80 74 L62 64 V44 Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath fill='none' stroke='%237eb6e0' stroke-opacity='.16' stroke-width='1' d='M30 2 L90 2 L120 52 L90 102 L30 102 L0 52 Z'/%3E%3C/svg%3E");
  background-size: 56px 56px, 56px 56px, 220px 220px, 140px 120px;
  background-position: 0 0, 0 0, 12% 18%, 78% 62%;
  mix-blend-mode: screen;
  animation: gridDrift 32s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 12% 18%, 78% 62%; }
  to { background-position: 56px 56px, 56px 56px, 18% 28%, 72% 70%; }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(12,35,64,.15) 0%, transparent 55%),
    linear-gradient(180deg, rgba(5,11,20,.45) 0%, rgba(8,18,32,.5) 45%, rgba(5,11,20,.88) 100%);
}
.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  max-width: 860px;
  animation: fadeUp .9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
}
.hero__brand {
  margin: 0 0 .6rem;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 500;
  letter-spacing: .02em;
}
.hero__lead {
  margin: 1rem auto 0;
  max-width: 46ch;
  color: rgba(255,255,255,.86);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 5;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 16px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: .4; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .92rem;
  border: 2px solid transparent;
  transition: .2s ease;
}
.btn--solid {
  background: var(--accent);
  color: #fff;
}
.btn--solid:hover { background: var(--accent-deep); }
.btn--line {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn--line:hover { background: #fff; color: var(--ink); }
.btn--dark {
  background: var(--navy);
  color: #fff;
}
.btn--dark:hover { background: var(--accent-deep); }

/* ---- Inner page hero ---- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.page-hero__media {
  position: absolute;
  inset: 0;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,35,64,.35), rgba(12,35,64,.88));
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.5rem;
}
.page-hero__content .crumbs {
  margin: 0 0 .75rem;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.page-hero__content .crumbs a:hover { color: #fff; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}
.page-hero p {
  margin: .7rem 0 0;
  max-width: 54ch;
  color: rgba(255,255,255,.86);
  font-weight: 300;
}

.page-section {
  padding: 4rem 0 5rem;
}
.page-section--soft { background: var(--soft); }
.page-lead {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-weight: 300;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: start;
}
.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.detail-card h3 {
  margin: 0 0 .75rem;
  color: var(--navy);
}
.detail-card ul {
  display: grid;
  gap: .45rem;
  color: var(--muted);
}
.detail-card li {
  padding-left: 1rem;
  position: relative;
}
.detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.6rem;
}
.prose p {
  color: #444;
  font-weight: 300;
}
.prose p + p { margin-top: 1rem; }

.home-preview {
  padding: 4rem 0;
}
.home-preview__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.home-preview__head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.home-preview__head a {
  color: var(--accent-deep);
  font-weight: 600;
}

/* ---- Quote ---- */
.quote {
  padding: 5.5rem 0 4.5rem;
  background: #fff;
}
.quote__box { max-width: 820px; margin: 0 auto; text-align: center; }
.quote h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: var(--navy);
}
.quote blockquote {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: #444;
}
.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-deep);
  font-size: .92rem;
}

.section-title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
}

/* ---- Oferta / portfolio ---- */
.offer {
  padding: 2rem 0 5rem;
  background: var(--soft);
}
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1.4rem;
  margin: 0 0 2rem;
}
.filter {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: .35rem 0;
  position: relative;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.filter.is-active,
.filter:hover { color: var(--navy); }
.filter.is-active::after { transform: scaleX(1); }

.portfolio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.folio {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: #111;
}
.folio.is-hidden { display: none; }
.folio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .35s ease;
  filter: saturate(.92);
}
.folio__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 1rem;
  text-align: center;
  background: rgba(12, 35, 64, .0);
  color: #fff;
  transition: background .3s ease;
}
.folio__overlay h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: .3s ease;
}
.folio__go {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(.8);
  transition: .3s ease;
}
.folio:hover img {
  transform: scale(1.08);
  filter: saturate(1.05);
}
.folio:hover .folio__overlay { background: rgba(12, 35, 64, .72); }
.folio:hover .folio__overlay h3,
.folio:hover .folio__go {
  opacity: 1;
  transform: none;
}

/* ---- Resources icon boxes ---- */
.resources {
  padding: 5rem 0;
  background: #fff;
}
.resources__intro {
  max-width: 820px;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.resources__intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}
.icon-box { text-align: center; padding: 0 .5rem; }
.icon-box__circle {
  width: 78px;
  height: 78px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  transition: .25s ease;
}
.icon-box__circle svg { width: 30px; height: 30px; }
.icon-box:hover .icon-box__circle {
  background: var(--accent);
  color: #fff;
}
.icon-box h3 {
  margin: 0 0 .55rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.icon-box p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 300;
}

/* ---- Campus mosaic ---- */
.campus { padding: 4.5rem 0 0; background: var(--soft); }
.campus .section-title { margin-bottom: 1.75rem; }
.campus__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 0;
}
.campus__tile {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.campus__tile--lg {
  grid-column: span 2;
  grid-row: span 2;
}
.campus__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.campus__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8,18,32,.85));
}
.campus__tile span {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  font-weight: 600;
  font-size: 1.05rem;
}
.campus__tile:hover img { transform: scale(1.06); }

/* ---- Authorities / team ---- */
.authorities {
  padding: 5rem 0;
  background: #fff;
}
.authorities__intro {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.authorities__intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}
.team-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.leader { text-align: center; }
.leader__photo {
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 3 / 4;
  background: #ddd;
}
.leader__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.leader:hover img { transform: scale(1.04); }
.leader h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.leader p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

/* ---- Impact stats ---- */
.impact {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.impact__bg { position: absolute; inset: 0; }
.impact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.impact__veil {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, .78);
}
.impact__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
  text-align: center;
}
.impact h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
}
.impact__sub {
  margin: .75rem auto 0;
  max-width: 42ch;
  color: rgba(255,255,255,.85);
  font-weight: 300;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.75rem;
}
.stat strong {
  display: block;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.stat span {
  display: block;
  margin-top: .55rem;
  font-size: .9rem;
  color: rgba(255,255,255,.82);
}

/* ---- Admit ---- */
.admit {
  padding: 3.5rem 0;
  background: var(--soft);
}
.admit__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: left;
}
.admit .section-title { text-align: left; margin-bottom: .6rem; }
.admit p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

/* ---- News ---- */
.news {
  padding: 5rem 0;
  background: #fff;
}
.news__head {
  text-align: center;
  margin-bottom: 2rem;
}
.news__head p {
  margin: 0;
  color: var(--muted);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 35, 64, .1);
}
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.news-card__body { padding: 1.15rem 1.2rem 1.4rem; }
.news-card__body span {
  display: block;
  margin-bottom: .4rem;
  color: var(--accent-deep);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.news-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.08rem;
  color: var(--navy);
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 300;
}

/* ---- Contact ---- */
.contact {
  padding: 4.5rem 0 5rem;
  background: var(--soft);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
}
.contact .section-title { text-align: left; }
.contact__meta {
  margin-top: 1.25rem;
  display: grid;
  gap: .55rem;
  color: var(--muted);
}
.contact__meta strong {
  display: inline-block;
  min-width: 58px;
  color: var(--navy);
}
.contact__form {
  display: grid;
  gap: .85rem;
}
.contact__form label {
  display: grid;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 500;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: .8rem .9rem;
  font: inherit;
  background: var(--soft);
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 2px solid rgba(91, 180, 229, .35);
  border-color: var(--accent);
  background: #fff;
}

/* ---- Footer ---- */
.footer {
  background: #0a1628;
  color: rgba(255,255,255,.72);
  padding: 3.5rem 0 1.5rem;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h3 {
  margin: 0 0 .9rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
}
.footer a {
  display: block;
  margin-bottom: .4rem;
  color: rgba(255,255,255,.68);
}
.footer a:hover { color: var(--accent-light); }
.footer__bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer__social {
  display: flex;
  gap: .55rem;
}
.footer__social .social-link {
  width: 38px;
  height: 38px;
  margin: 0;
}
.footer__social .social-link svg {
  width: 16px;
  height: 16px;
}
.footer__bottom p {
  margin: 0;
  max-width: 70ch;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* ---- Reveal ---- */
.reveal { opacity: 1; }
.reveal.gh-reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible, .reveal.gh-reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .campus__grid { grid-template-columns: repeat(2, 1fr); }
  .campus__tile--lg { grid-column: span 2; grid-row: span 1; min-height: 280px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.icon-box a {
  display: inline-block;
  margin-top: .85rem;
  font-weight: 600;
  color: var(--accent-deep);
  font-size: .9rem;
}
.icon-box a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .detail-grid,
  .icon-grid,
  .team-row,
  .news-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0,0,0,.12);
  }
  .nav.is-open a {
    color: var(--ink);
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-block; }
  .header {
    background: rgba(10, 22, 40, .55);
    backdrop-filter: blur(8px);
  }
  .header.is-solid,
  .header--solid { background: rgba(255,255,255,.97); }
}

@media (max-width: 640px) {
  .portfolio,
  .icon-grid,
  .team-row,
  .news-grid,
  .stats,
  .campus__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .campus__tile,
  .campus__tile--lg {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__right { justify-content: center; width: 100%; }
  .admit__inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Floating widgets (a11y + chat) ---- */
.site-widgets {
  --fab: #2e2e2e;
  --fab-ink: #fff;
  pointer-events: none;
}
.fab-stack {
  position: fixed;
  z-index: 9000;
  bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
  pointer-events: none;
}
.fab-stack--left {
  left: 1.15rem;
  align-items: flex-start;
}
.fab-stack--right {
  right: 1.15rem;
  align-items: flex-end;
}
.fab {
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--fab);
  color: var(--fab-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(20, 20, 20, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab:hover { transform: scale(1.06); }
.fab:focus-visible {
  outline: 3px solid #0c2340;
  outline-offset: 3px;
}
.fab svg { width: 28px; height: 28px; display: block; }
.fab--a11y svg { width: 30px; height: 30px; }

.widget-panel {
  pointer-events: auto;
  width: min(320px, calc(100vw - 2rem));
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(10, 22, 40, .22);
  overflow: hidden;
  border: 1px solid #e6ebf0;
}
.widget-panel[hidden] { display: none !important; }
.widget-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #0c2340;
  color: #fff;
}
.widget-panel__head strong { font-size: .95rem; }
.widget-panel__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
}
.widget-panel__body { padding: .85rem; }
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.a11y-grid button {
  border: 1px solid #d7e0ea;
  background: #f7f9fb;
  border-radius: 8px;
  padding: .7rem .55rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  color: #0c2340;
  text-align: center;
}
.a11y-grid button.is-on {
  background: rgba(46, 46, 46, .14);
  border-color: var(--fab);
  color: #222;
}
.a11y-grid .a11y-reset {
  grid-column: 1 / -1;
  background: #0c2340;
  color: #fff;
  border-color: #0c2340;
}

.widget-panel--chat {
  width: min(360px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  max-height: min(520px, 70vh);
}
.chat-log {
  flex: 1;
  overflow: auto;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: #f4f7fa;
  min-height: 220px;
}
.chat-msg {
  max-width: 88%;
  padding: .65rem .8rem;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e6ebf0;
}
.chat-msg--user {
  align-self: flex-end;
  background: #0c2340;
  color: #fff;
}
.chat-msg.is-typing { opacity: .7; font-style: italic; }
.chat-form {
  display: flex;
  gap: .45rem;
  padding: .7rem;
  border-top: 1px solid #e6ebf0;
  background: #fff;
}
.chat-form input {
  flex: 1;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  padding: .65rem 1rem;
  font: inherit;
  font-size: .88rem;
}
.chat-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--fab);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

html.a11y-contrast {
  filter: contrast(1.25);
}
html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-big { font-size: 112.5%; }
html.a11y-bigger { font-size: 125%; }
html.a11y-links a { text-decoration: underline !important; }
html.a11y-readable,
html.a11y-readable body {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: .02em;
  word-spacing: .04em;
}
html.a11y-gray { filter: grayscale(1); }
html.a11y-contrast.a11y-gray { filter: contrast(1.25) grayscale(1); }
html.a11y-stop-anim *,
html.a11y-stop-anim *::before,
html.a11y-stop-anim *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 640px) {
  .fab { width: 52px; height: 52px; }
  .fab-stack--left { left: .85rem; }
  .fab-stack--right { right: .85rem; }
}

body.admin-bar .header{top:32px}
