/* ============================================================
   Center for US-Pakistan Affairs, stylesheet
   Design tokens: deep navy, one burgundy accent, used
   consistently throughout. Single sans-serif typeface.
   ============================================================ */

:root {
  /* Color, strictly purple and white. One deep purple for dark
     sections, one brighter purple as the single accent (verified
     against both backgrounds), everything else neutral. */
  --ink:        #2A1B45;  /* deep purple, nav, headings, dark sections */
  --ink-2:      #3D2860;  /* lighter purple, gradients */
  --mist:       #F4F2F7;  /* near-white with the barest hint of purple, page background */
  --paper:      #FFFFFF;  /* pure white content surface */
  --brass:      #6E42A6;  /* the one accent purple: links, dividers, buttons */
  --brass-dark: #5A3689;
  --crimson:    #8B3A3A;  /* form errors only, a UI convention, not part of the decorative palette */
  --pine:       #4A2F73;  /* darker purple, rare secondary use, same family as the accent */
  --pine-dark:  #35225A;
  --text:       #1C1C19;
  --muted:      #5D5B54;
  --line:       #E4E1EA;
  --line-dark:  #4A3359;

  /* Type, one typeface family everywhere, weight carries the hierarchy.
     No mono fallback anywhere, labels get their look from letter-spacing
     and case, not a second typeface. */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale, one deliberate size per role, used consistently */
  --fs-h1: clamp(2.5rem, 4.6vw, 4.1rem);
  --fs-h2: clamp(1.7rem, 2.6vw, 2.35rem);
  --fs-h3: 1.28rem;
  --fs-lede: 1.2rem;
  --fs-body: 1.06rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.72rem;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;

  --radius: 2px;
  --max: 1180px;
}

/* ============================================================
   Reset & base
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 var(--s-2);
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 var(--s-2); color: var(--text); font-size: var(--fs-body); }

a { color: var(--ink); text-decoration: none; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 var(--s-2); }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Dateline eyebrow, the recurring structural device.
   Modeled on the wire-service dateline ("ISLAMABAD, ") used
   atop diplomatic cables and press dispatches.
   ============================================================ */

.dateline {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: var(--s-2);
}

.dateline::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-dark);
}

/* ============================================================
   Signature motif, the great-circle route.
   A dashed arc between two nodes ("WASHINGTON" / "ISLAMABAD")
   over faint graticule lines, standing in for the bilateral
   channel the Center exists to study. Reused as hero backdrop,
   section divider, and footer mark.
   ============================================================ */

.route-divider {
  width: 100%;
  height: 46px;
  margin: var(--s-5) 0;
  display: block;
}

.route-divider path.arc {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.3;
  stroke-dasharray: 1 6;
  stroke-linecap: round;
}

.route-divider circle { fill: var(--brass-dark); }
.route-divider line.grat { stroke: var(--line); stroke-width: 1; }

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.brand-mark {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.14);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.18;
  letter-spacing: 0.005em;
}

.brand-text strong { display: block; font-weight: 600; }
.brand-text span { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: #D8D2E0; text-transform: uppercase; margin-top: 2px; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

nav.main-nav a {
  color: #E7EAF2;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: #fff;
}

nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: #fff;
  width: 42px;
  height: 38px;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 96px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--s-3);
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line-dark);
    transition: max-height 0.25s ease;
  }
  nav.main-nav.open { max-height: 320px; }
  nav.main-nav a { padding: var(--s-2) 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: block; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--brass); color: #1B1B18; }
.btn-primary:hover { background: var(--brass-dark); color: #fff; }

.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: var(--s-6) 0 var(--s-5);
}

.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-5);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; max-width: 320px; margin: 0 auto var(--s-2); }
}

.hero .dateline { color: #C9B8DE; }
.hero .dateline::before { background: #C9B8DE; }

.hero h1 {
  color: #fff;
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  letter-spacing: -0.02em;
  font-weight: 500;
}

.hero .lede { color: #D8D2E0; font-size: 1.18rem; max-width: 52ch; margin-bottom: var(--s-4); }

.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* Signature treatment: real photographs of the Statue of Liberty and
   Faisal Mosque, run through a true purple-to-white duotone filter so
   real imagery stays inside the site's two-color palette, connected
   by the same animated route motif used as the brand's signature. */
.hero-illustration { width: 100%; aspect-ratio: 1; position: relative; }

.landmark-photo {
  position: absolute;
  top: 0;
  width: 46%;
  height: 88%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.landmark-photo.left { left: 0; }
.landmark-photo.right { right: 0; }
.landmark-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: url(#duotone-purple);
}

.route-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-overlay .route-arc {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  stroke-dashoffset: 500;
  animation: draw-route 2.6s ease-out 0.3s forwards;
}
.route-overlay .route-node { fill: #fff; opacity: 0; animation: node-in 0.6s ease-out forwards; }
.route-overlay .route-node.left { animation-delay: 0.3s; }
.route-overlay .route-node.right { animation-delay: 2.6s; }
.route-overlay .route-pulse {
  fill: #fff;
  opacity: 0;
  animation: pulse-travel 4s ease-in-out 3.2s infinite;
}
.route-overlay .city-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  fill: #fff;
  opacity: 0;
  animation: node-in 0.6s ease-out 1.2s forwards;
}
.route-overlay .city-label.right { animation-delay: 2.9s; }

@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes node-in { to { opacity: 1; } }
@keyframes pulse-travel {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  50%  { opacity: 1; }
  92%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .route-overlay .route-arc { animation: none; stroke-dashoffset: 0; }
  .route-overlay .route-node, .route-overlay .city-label { animation: none; opacity: 1; }
  .route-overlay .route-pulse { animation: none; opacity: 0; }
}

/* Factual at-a-glance strip under the hero copy */
.hero-stats { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,0.14); }
.hero-stats .stat { min-width: 0; }
.hero-stats .stat .num { font-family: var(--font-display); font-size: 1.7rem; color: #fff; display: block; line-height: 1; }
.hero-stats .stat .label { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: #D8D2E0; }

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: var(--s-5) 0 var(--s-4);
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: #D8D2E0; }
.page-hero .dateline { color: #C9B8DE; }
.page-hero .dateline::before { background: #C9B8DE; }

/* ============================================================
   Sections / generic
   ============================================================ */

.section { padding: var(--s-5) 0; }
.section-alt { background: var(--paper); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2 { color: #fff; }

.section-head { max-width: 68ch; margin-bottom: var(--s-4); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Stat strip */
.stat-strip {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: var(--s-3) 0;
}
.stat { min-width: 140px; }
.stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--brass); display: block; }
.stat .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #D8D2E0; }

/* Pillar / work cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-3);
}

.pillar-card { border-top: 3px solid var(--brass); }
.pillar-card .dateline { font-size: 0.68rem; }
.pillar-card h3 { margin-bottom: 0.5em; }
.pillar-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

/* Duotone topical photography, used only on Our Work cards, where
   illustrating a subject (a port, a clinic) is standard practice and
   the brand-tint keeps a mix of stock photos feeling like one system. */
.pillar-photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) var(--s-3);
  border-radius: var(--radius) var(--radius) 0 0;
}
.pillar-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(45%) contrast(1.05);
}
.pillar-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(42,27,69,0.6) 0%, rgba(110,66,166,0.35) 100%);
  mix-blend-mode: multiply;
}
.pillar-card.no-photo { border-top: 3px solid var(--brass); }

/* Same duotone treatment, standalone panel for the Our Work page rows */
.track-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.track-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(45%) contrast(1.05); }
.track-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(42,27,69,0.55) 0%, rgba(110,66,166,0.32) 100%);
  mix-blend-mode: multiply;
}
.track-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-4); align-items: center; }
.track-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.track-row.reverse .track-photo { order: 2; }
@media (max-width: 780px) {
  .track-row, .track-row.reverse { grid-template-columns: 1fr; }
  .track-row.reverse .track-photo { order: 0; }
  .track-photo { aspect-ratio: 16/9; }
}

/* Monogram placeholder for team members without a photo yet */
.team-card-photo.monogram {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* News list */
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-top: 0.2em;
}
.news-item .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  border: 1px solid var(--pine);
  border-radius: var(--radius);
  padding: 0.2em 0.55em;
  margin-bottom: 0.6em;
}
.news-item h3 { margin-bottom: 0.3em; font-size: 1.15rem; }
.news-item p { color: var(--muted); margin-bottom: 0; }

@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Team / bio */
.bio-card { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-4); align-items: start; }
.bio-portrait {
  width: 100%;
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) { .bio-card { grid-template-columns: 1fr; } .bio-portrait { max-width: 160px; } }

/* Additional team members grid (below the founder bio) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-4); }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team-card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink); display: block; }
.team-card-body { padding: var(--s-2) var(--s-3) var(--s-3); }
.team-card-body h3 { font-size: 1.05rem; margin-bottom: 0.15em; }
.team-card-role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 0.6em; display: block; }
.team-card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* Professional callout treatment for prose blocks like "How We Work" */
.professional-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: var(--s-3);
}

.pull-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.42;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding: 0.2em 0 0.2em var(--s-4);
  margin: var(--s-4) 0;
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: -0.06em;
  top: -0.28em;
  font-size: 3.2rem;
  color: var(--brass);
  opacity: 0.55;
  font-family: var(--font-display);
  line-height: 1;
}
.pull-quote cite { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-top: 0.9em; }

/* Values / numbered list, used only where order is real (a process) */
.process-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.process-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--brass-dark);
  font-size: 0.85rem;
  padding-top: 0.15em;
}
.process-list h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.process-list p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

/* ============================================================
   Contact / forms
   ============================================================ */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block { margin-bottom: var(--s-3); }
.info-block .dateline { margin-bottom: 0.4em; }
.info-block p { margin: 0; }

form.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4em;
}
form.contact-form .field { margin-bottom: var(--s-3); }
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.85em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus { border-color: var(--brass); }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--s-2);
}

.alert {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  margin-bottom: var(--s-3);
  font-size: 0.95rem;
}
.alert-success { background: #EFEAF5; border: 1px solid var(--pine); color: var(--pine); }
.alert-error { background: #F7E9E9; border: 1px solid var(--crimson); color: var(--crimson); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: #D8D2E0;
  padding: var(--s-4) 0 var(--s-3);
  margin-top: var(--s-5);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-3); } }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--s-2); }
.footer-logo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: var(--s-3); box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
.site-footer a { color: #D8D2E0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5em; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #A79BB5;
}

/* ============================================================
   Partnerships, organization logo grid
   ============================================================ */

.partner-category { margin-top: var(--s-5); }
.partner-category .dateline { margin-bottom: var(--s-3); }

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--s-3);
}

.partner-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-2);
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.partner-logo-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14,30,54,0.08);
}
.partner-logo-card img { max-width: 100%; max-height: 56px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.82; transition: filter 0.15s ease, opacity 0.15s ease; }
a.partner-logo-card:hover img { filter: grayscale(0%); opacity: 1; }
.partner-logo-fallback {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  height: 56px;
  display: flex;
  align-items: center;
}
.partner-name { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.partner-empty {
  margin-top: var(--s-5);
  padding: var(--s-4);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.partner-empty p { max-width: 56ch; margin: 0 auto; }

/* ============================================================
   Utility bar, thin strip above the main header carrying
   direct contact details, standard on institutional sites.
   ============================================================ */

.utility-bar {
  background: #081426;
  color: #A79BB5;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: 34px;
  flex-wrap: wrap;
}
.utility-bar a { color: #A79BB5; }
.utility-bar a:hover { color: #fff; }
.utility-bar-right { display: flex; align-items: center; gap: var(--s-3); }
.utility-bar-locations { display: flex; gap: var(--s-3); }
.utility-bar-locations span { white-space: nowrap; }
.utility-bar-social { display: flex; align-items: center; gap: 0.7em; padding-left: var(--s-3); border-left: 1px solid rgba(255,255,255,0.14); }
.utility-bar-social a { display: flex; }
@media (max-width: 700px) {
  .utility-bar .container { height: auto; padding-top: 6px; padding-bottom: 6px; justify-content: center; text-align: center; }
  .utility-bar-locations { display: none; }
  .utility-bar-social { border-left: none; padding-left: 0; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: #1B1B18;
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: var(--s-2); top: var(--s-2); }
