/* ==========================================================================
   IIEE - design system
   1. Tokens
   2. Reset & base
   3. Layout
   4. Header / nav
   5. Buttons & links
   6. Hero
   7. Blocks
   8. Footer
   9. Utilities / motion / responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --solder: #1E3A8A;
  --solder-deep: #172554;
  --solder-soft: #2563EB;
  --ink: #0E1D3F;
  --blue: #2954C5;
  --amber: #E8A872;
  --amber-soft: #F3D9BE;

  --paper: #F7F5EF;
  --paper-2: #EFEBE0;
  --white: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --line: rgba(30, 58, 138, 0.16);
  --line-strong: rgba(30, 58, 138, 0.34);

  --serif: "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Condensed", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 2px;
  --speed: 220ms;
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
::selection { background: var(--amber); color: var(--ink); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font-size: clamp(1.1rem, 0.98rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.body { margin-top: 1.1rem; max-width: 68ch; text-wrap: pretty; }
.label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--solder);
  margin-bottom: 0.9rem;
}
.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.sec {
  font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.9rem);
  line-height: 1.12;
  text-wrap: balance;
}
.footnote { margin-top: 1.4rem; text-transform: none; letter-spacing: 0.04em; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 780px; }
/* Grid children default to min-width:auto; replaced elements (images) can then
   force a track wider than the viewport. */
.hero-grid > *,
.home-hero-grid > *,
.split > *,
.cards > *,
.news-list > *,
.contact-grid > *,
.foot-grid > *,
.stats > *,
.steps > *,
.groups > *,
.people > *,
.gallery > * { min-width: 0; }
.section { padding-block: clamp(2.6rem, 4.6vw, 4.6rem); }
.section-tint { background: var(--paper-2); }
.section-flush { padding-top: 0; }
.band { padding-block: clamp(1.8rem, 3vw, 2.6rem); border-block: 1px solid var(--line); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
}
.sec-head .sec { max-width: 20ch; }
.sec-lede { max-width: 46ch; }

/* 4. Header ---------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* The header uses the full width so the logo sits closer to the left edge,
   with a comfortable gutter instead of being attached to the wall. */
.site-head .wrap {
  max-width: none;
  padding-inline: clamp(1.25rem, 2.5vw, 2.75rem);
}
.head-strip {
  background: var(--solder);
  color: rgba(255, 255, 255, 0.72);
}
.strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.42rem;
  font-size: 0.64rem;
}
.strip-inner .mono { color: inherit; }
.strip-right { display: inline-flex; align-items: center; gap: 0.7rem; }
.strip-right a { display: inline-flex; align-items: center; gap: 0.3rem; }
.strip-right a svg { fill: currentColor; flex: 0 0 auto; }
.strip-right a:hover { color: var(--amber); }
.dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: 0.6; }

.head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.05rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  object-fit: contain;
  border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--solder);
}
.brand-text span {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--muted);
  max-width: 26ch;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.2px currentColor;
}

.site-nav { display: flex; align-items: center; gap: clamp(0.45rem, 1vw, 1.1rem); }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-block;
  padding: 0.65rem 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.nav-item.is-current > a { border-color: var(--solder); }
.nav-item > a:hover { border-color: var(--amber); }
.nav-more {
  display: none;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0.2rem;
  cursor: pointer;
}
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -0.9rem;
  min-width: 235px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(23, 37, 84, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--speed) ease, transform var(--speed) ease, visibility var(--speed);
}
.submenu a { display: block; padding: 0.55rem 0.7rem; font-size: 0.86rem; }
.submenu a:hover { background: var(--paper); color: var(--solder); }
.has-menu:hover .submenu,
.has-menu:focus-within .submenu,
.has-menu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--solder);
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--speed), color var(--speed), border-color var(--speed), transform var(--speed);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--solder); color: var(--paper); }
.btn-primary:hover { background: var(--solder-deep); color: var(--paper); }
.btn-ghost { border-color: var(--line-strong); color: var(--solder); }
.btn-ghost:hover { border-color: var(--solder); background: rgba(30, 58, 138, 0.05); color: var(--solder); }
.site-nav .btn-apply {
  position: relative;
  margin-left: 1.1rem;
  padding: 0.62rem 1.2rem;
  border: 1px solid #C98A52;
  border-radius: 8px;
  background: linear-gradient(180deg, #F4C08A 0%, #E8A872 55%, #D9955A 100%);
  color: #23180E;
  box-shadow:
    0 3px 0 #B9773F,
    0 7px 14px rgba(14, 29, 63, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.site-nav .btn-apply::before {
  content: "";
  position: absolute;
  left: -0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.7rem;
  background: var(--line-strong);
}
.site-nav .btn-apply:hover {
  background: linear-gradient(180deg, #F7C995 0%, #ECB07C 55%, #DB9A60 100%);
  color: #23180E;
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #B9773F,
    0 11px 20px rgba(14, 29, 63, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.site-nav .btn-apply:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #B9773F,
    0 3px 8px rgba(14, 29, 63, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.more { margin-top: 2rem; }

/* 6. Hero ------------------------------------------------------------------ */
.home-hero { padding-block: clamp(2.8rem, 6vw, 5.5rem) clamp(2.4rem, 4vw, 4rem); background: var(--blue); color: var(--paper); background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 40px 40px; }
.home-hero-grid,
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.1rem);
  line-height: 1.03;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}
.hero-body { max-width: 54ch; }
.home-hero .wrap { padding-left: 0; }
.home-hero-grid { margin-left: 0; }
.hero-copy {
  background: rgba(10, 20, 60, 0.72);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(2px);
  justify-self: start;
  width: 100%;
  max-width: 580px;
  margin-left: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
}

.frame {
  position: relative;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -46px rgba(23, 37, 84, 0.65);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(30, 58, 138, 0.12);
  pointer-events: none;
}
.hero-media img,
.home-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.home-media img { aspect-ratio: 4 / 4.4; }
.hero-media figcaption {
  padding: 0.6rem 0.25rem 0.1rem;
  font-size: 0.62rem;
}
.page-hero { padding-block: clamp(2.2rem, 4vw, 3.6rem) clamp(1.8rem, 3vw, 2.6rem); }
.page-hero .hero-copy h1 { font-size: clamp(1.95rem, 1.3rem + 2.8vw, 3.4rem); }
.page-hero .lede { margin-top: 1.1rem; max-width: 52ch; }
.page-hero .hero-media img { aspect-ratio: 4 / 3; }

/* 7. Blocks ---------------------------------------------------------------- */
/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem;
}
.stat { border-top: 2px solid var(--solder); padding-top: 0.9rem; }
.stat-value { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); line-height: 1; }
.stat-label { margin-top: 0.45rem; font-size: 0.63rem; line-height: 1.5; text-transform: uppercase; }

/* cards */
.cards { display: grid; gap: 1.4rem; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
a.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 40px -34px rgba(23, 37, 84, 0.7);
  color: inherit;
}
.card-media { display: block; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 600ms ease; }
a.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.35rem 1.4rem 1.5rem; }
.card-tag { font-size: 0.6rem; color: var(--solder-soft); }
.card-title { font-size: 1.32rem; line-height: 1.2; }
.card-text { color: var(--muted); font-size: 0.94rem; }
.card-link { margin-top: auto; padding-top: 0.8rem; font-size: 0.64rem; color: var(--blue); }
.cards.cols-2 .card-media img { aspect-ratio: 16 / 8; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  counter-reset: step;
}
.step { border-top: 1px solid var(--line-strong); padding-top: 1.1rem; }
.step-num { display: block; color: var(--amber); font-size: 0.72rem; margin-bottom: 0.7rem; }
.step-title { font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.5rem; }
.step-text { color: var(--muted); font-size: 0.93rem; }

/* groups (labs) */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 3.4rem; }
.group { border-top: 2px solid var(--solder); padding-top: 1.1rem; }
.group-title { font-size: 1.4rem; line-height: 1.2; }
.group-blurb { color: var(--muted); font-size: 0.92rem; margin-top: 0.45rem; }
.lab-list { margin-top: 1.1rem; display: grid; gap: 0.1rem; }
.lab-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text);
}
.lab-list li span { color: var(--amber); }

/* timeline */
.section-ink { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.section-ink .sec, .section-ink .label { color: var(--white); }
.section-ink .label::before { background: var(--amber); opacity: 1; }
.section-ink .mono { color: rgba(255, 255, 255, 0.55); }
.timeline { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.tl-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tl-year { color: var(--amber); font-size: 0.78rem; }
.tl-title { font-size: 1.28rem; color: var(--white); margin-bottom: 0.35rem; }

/* split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.split-copy .body:first-of-type { margin-top: 1rem; }
.ticks { margin-top: 1.4rem; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}
.split-copy .btn { margin-top: 1.6rem; }

/* quote */
.quote { border-left: 2px solid var(--amber); padding-left: clamp(1.2rem, 3vw, 2.2rem); }
.quote p { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; text-wrap: balance; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; }

/* gallery */
.gallery { display: grid; gap: 0.9rem; }
.gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot { position: relative; overflow: hidden; background: var(--paper-2); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.8rem 0.6rem;
  font-size: 0.58rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(23, 37, 84, 0.85));
}

/* news */
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
.news-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.news-media { overflow: hidden; background: var(--paper-2); }
.news-card.is-featured .news-media { flex: 0 0 52%; }
.news-media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 1.35rem 1.45rem 1.55rem; display: flex; flex-direction: column; gap: 0.55rem; }
.news-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.58rem; }
.news-title { font-size: 1.3rem; line-height: 1.22; }
.news-card.is-featured .news-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.news-dek { color: var(--muted); font-size: 0.93rem; text-wrap: pretty; }

/* faculty */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.person {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.person-mark {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--solder);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.person-name { font-size: 1.02rem; line-height: 1.25; }
.person-role { font-size: 0.56rem; margin-top: 0.2rem; }

/* downloads */
.downloads { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.downloads li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.dl-title { font-weight: 500; }
.dl-meta { font-size: 0.58rem; }

/* cta */
.cta-band { background: var(--solder); color: rgba(255, 255, 255, 0.86); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
}
.cta-title { color: var(--white); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.15; }
.cta-text { margin-top: 0.7rem; max-width: 56ch; color: rgba(255, 255, 255, 0.72); }
.cta-band .btn-primary { background: var(--amber); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--paper); color: var(--ink); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.contact-list { margin-top: 1.4rem; display: grid; gap: 1.1rem; }
.contact-list dt { font-size: 0.6rem; margin-bottom: 0.25rem; }
.contact-list dd { font-size: 1.02rem; }
.contact-list a { border-bottom: 1px solid var(--line-strong); }
.form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); padding: clamp(1.3rem, 3vw, 2rem); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.62rem; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--solder);
  outline: 2px solid rgba(41, 84, 197, 0.25);
  outline-offset: 1px;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 0.9rem 1.1rem; margin-bottom: 1rem; border: 1px solid var(--line); font-size: 0.92rem; }
.notice-ok { border-color: var(--solder); background: rgba(30, 58, 138, 0.06); }
.notice-bad { border-color: #B4483A; background: rgba(180, 72, 58, 0.07); }
.notfound { padding-block: clamp(3rem, 7vw, 6rem); }

/* 8. Footer ---------------------------------------------------------------- */
.site-foot { background: var(--solder-deep); color: rgba(255, 255, 255, 0.7); padding-top: clamp(2.6rem, 5vw, 4rem); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 0.8fr)) 1.2fr;
  gap: 2rem;
  padding-bottom: 2.6rem;
}
.foot-brand img { border-radius: 50%; margin-bottom: 0.9rem; background: var(--paper); padding: 6px; }
.foot-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; color: var(--white); }
.foot-meta { font-size: 0.58rem; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.5); }
.foot-title { color: var(--amber); font-size: 0.6rem; margin-bottom: 0.9rem; }
.foot-col ul { display: grid; gap: 0.5rem; }
.foot-col a { font-size: 0.88rem; }
.foot-col a:hover { color: var(--amber); }
.foot-contact address { font-style: normal; font-size: 0.88rem; line-height: 1.7; }
.foot-contact a:hover { color: var(--amber); }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.76rem;
}
.foot-base p { color: rgba(255, 255, 255, 0.5); }
.foot-base .mono { font-size: 0.56rem; color: rgba(255, 255, 255, 0.45); }

/* 9. Utilities ------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--solder);
  color: var(--paper);
}
.skip:focus { top: 1rem; color: var(--paper); }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(23, 37, 84, 0.5);
  }
  .site-nav.is-open { display: flex; }
  .head-main { position: relative; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a { display: block; padding: 0.85rem 0; }
  .nav-more { display: inline-flex; position: absolute; right: 0; top: 0.65rem; }
  .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--amber);
    padding: 0 0 0.6rem 0.9rem;
    background: transparent;
    min-width: 0;
  }
  .nav-item.is-open .submenu { display: block; }
  .site-nav .btn-apply { margin: 1rem 0 0; justify-content: center; }
  .site-nav .btn-apply::before { display: none; }

  .home-hero-grid, .hero-grid { grid-template-columns: 1fr; }
  .home-media img, .hero-media img { aspect-ratio: 16 / 10; }
  .hero-media { order: -1; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cta-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-card.is-featured { flex-direction: column; }
  .news-card.is-featured .news-media { flex: none; }
  .gallery.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .strip-right { display: none; }
  .brand-text span { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .groups { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .gallery.cols-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; }
  .hero-facts { font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.crumbs { padding-top: 1.1rem; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--solder); }
.crumbs [aria-current] { color: var(--solder); }

/* ==========================================================================
   Campus teaser — the bridge from the home page to /campus
   ========================================================================== */

.campus-teaser {
  display: block;
  background: #1E3A8A;
  background-image: radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.12), transparent 62%), linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 44px;
  color: var(--paper);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.campus-teaser .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.2rem, 4.5vw, 3.8rem);
}

.campus-teaser .label { color: var(--amber); }
.teaser-copy { display: block; }
.teaser-title {
  display: block;
  margin: 0.15rem 0 0.9rem;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem);
  line-height: 1.05;
  color: #fff;
}
.teaser-text {
  display: block;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
  line-height: 1.55;
}
.teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-bottom: 0.3rem;
  color: var(--amber);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(232, 168, 114, 0.4);
  transition: border-color var(--speed), gap var(--speed);
}
.campus-teaser:hover .teaser-cta { border-bottom-color: var(--amber); gap: 0.75rem; }

.teaser-media { display: block; }
.teaser-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--speed);
}
.campus-teaser:hover .teaser-media img { border-color: rgba(232, 168, 114, 0.45); }
.campus-teaser:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }

@media (max-width: 820px) {
  .campus-teaser .wrap { grid-template-columns: 1fr; }
  .teaser-media { order: -1; }
}

/* Page builder public rendering */
.pb-container { box-sizing: border-box; }
.pb-text { line-height: 1.7; }
.pb-text p + p,
.pb-text ul + p,
.pb-text p + ul,
.pb-text ol + p,
.pb-text p + ol { margin-top: 1rem; }
.pb-text ul,
.pb-text ol { margin-top: 0.9rem; padding-left: 1.3rem; }
.pb-text ul li { list-style: disc; }
.pb-text ol li { list-style: decimal; }
.pb-text li { margin-top: 0.35rem; }
.pb-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.pb-image img { max-width: 100%; height: auto; }
.pb-list { line-height: 1.7; }
.pb-list li { position: relative; max-width: 76ch; margin-top: 0.55rem; padding-left: 1.15rem; }
.pb-list li:first-child { margin-top: 0; }
ul.pb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--amber);
}
.pb-card h3 { font-size: 1.02rem; line-height: 1.35; }
.pb-card h3 a {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.pb-card h3 a:hover { color: var(--blue); }
@media (max-width: 900px) {
  .pb-cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .pb-cardgrid { grid-template-columns: 1fr !important; }
}
.pb-button { margin: 0.25rem 0; }
.pb-spacer { display: block; }
.pb-hide-desktop { display: none; }
@media (min-width: 1025px) { .pb-hide-desktop { display: revert; } }
@media (max-width: 1024px) { .pb-hide-tablet { display: none !important; } }
@media (max-width: 768px) { .pb-hide-mobile { display: none !important; } .pb-container { flex-wrap: wrap; } }

/* Project explorer */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.project-card {
  background: var(--white, #fff);
  border: 1px solid var(--line, #DCE2EE);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px -22px rgba(14,29,63,0.4);
}
.project-card .project-year { font-size: 0.72rem; color: var(--muted, #5B6B8A); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.5rem; }
.project-card .project-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; margin: 0 0 0.4rem; }
.project-card .project-title a { color: var(--ink, #0E1D3F); text-decoration: none; }
.project-card .project-title a:hover { color: var(--blue, #2954C5); }
.project-card .project-theme { font-size: 0.75rem; color: var(--blue, #2954C5); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.5rem; }
.project-card .project-note { font-size: 0.75rem; color: var(--muted, #5B6B8A); margin: 0 0 0.5rem; }
.project-card .project-desc { font-size: 0.9rem; color: var(--muted, #5B6B8A); line-height: 1.55; margin: 0; }
.project-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; }
.project-filters label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #5B6B8A); margin-bottom: 0.3rem; }
.project-filters select { padding: 0.5rem 0.7rem; border: 1px solid var(--line, #DCE2EE); border-radius: 6px; font: inherit; font-size: 0.9rem; background: #fff; color: var(--ink, #0E1D3F); }
.project-count { font-size: 0.8rem; color: var(--muted, #5B6B8A); }

/* Back to top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong, #C8D2E3);
  background: var(--white, #fff); color: var(--ink, #0E1D3F);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 26px -14px rgba(14,29,63,0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--solder, #1E3A8A); color: #fff; }
