/* ==========================================================
   HornBridge Institute — site styles
   Palette and type taken from the Institutional Profile
   ========================================================== */

:root {
  --navy: #5e0f1c;
  --navy-2: #7a1a29;
  --slate: #c48890;
  --slate-dark: #8a3843;
  --mist: #eef2f7;
  --line: #c9d3e0;
  --ink: #1a2333;
  --muted: #4a5568;
  --white: #ffffff;

  --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Spaced capitals, as used for labels in the profile */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--slate-dark);
  margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--slate); }

/* Little bridge (5 arches) under headings, as in the profile.
   The arches are see-through, so the background shows through on any colour. */
.arches {
  width: 120px;
  height: 18px;
  margin: .4rem 0 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath fill='%239e3442' fill-rule='evenodd' d='M0 0H120V18H0Z M2 18V13.8A10.8 10.8 0 0 1 23.6 13.8V18Z M25.6 18V13.8A10.8 10.8 0 0 1 47.2 13.8V18Z M49.2 18V13.8A10.8 10.8 0 0 1 70.8 13.8V18Z M72.8 18V13.8A10.8 10.8 0 0 1 94.4 13.8V18Z M96.4 18V13.8A10.8 10.8 0 0 1 118 13.8V18Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.center .arches { margin-left: auto; margin-right: auto; }

.rule { width: 74px; height: 3px; background: var(--slate); border: 0; margin: 0 0 1.6rem; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.on-dark .btn:hover { background: var(--mist); }
.on-dark .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  color: #eed2d5;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .45rem;
  padding-bottom: .45rem;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .tagline { letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; align-self: center; }
.topbar-links { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .1rem .6rem; }
.topbar-links .sep { opacity: .5; }
.topbar .webmail {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .1rem .6rem;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
}
.topbar .webmail:hover { background: var(--white); color: var(--navy); }
.topbar .webmail svg { width: 13px; height: 13px; }
.footer-webmail { margin-top: 1rem; }
.footer-webmail a { color: var(--white); border-bottom: 1px solid var(--slate); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

/* Wordmark: HornBridge + arch bar + INSTITUTE */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
}
/* The wordmark scales from one size: change --logo to resize it */
.wordmark { --logo: 2rem; }
.wordmark .name {
  font-size: var(--logo);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.wordmark .sub {
  font-size: var(--logo);
  display: flex;
  align-items: flex-end;
  gap: .18em;
  margin-top: .02em;
}
/* Four-arch bridge under "Horn", see-through arches like the profile logo */
.wordmark .sub .bar {
  flex: none;
  width: 3.05em;
  height: .53em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 20'%3E%3Cpath fill='%239e3442' fill-rule='evenodd' d='M0 0H116V20H0Z M2 20V17.25A13.25 13.25 0 0 1 28.5 17.25V20Z M30.5 20V17.25A13.25 13.25 0 0 1 57 17.25V20Z M59 20V17.25A13.25 13.25 0 0 1 85.5 17.25V20Z M87.5 20V17.25A13.25 13.25 0 0 1 114 17.25V20Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.wordmark .sub .inst {
  font-size: .3em;
  font-weight: 700;
  letter-spacing: .36em;
  line-height: 1;
  margin-bottom: -.08em;
  white-space: nowrap;
}
.site-footer .wordmark { color: var(--white); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  position: relative;
  padding: .3rem 0;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--slate);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav ul a:hover::after,
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .6rem 1.2rem; font-size: .95rem; color: var(--white); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--navy);
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
}
.hero h1 { color: var(--white); }
.hero .lead {
  font-size: 1.3rem;
  color: #f3dee0;
  max-width: 36ch;
  margin-bottom: 2rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-map { position: relative; }
.hero-map svg { width: 100%; height: auto; }
.map-label {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  fill: #8fa2c0;
}
.map-city { font-family: var(--serif); font-size: 15px; fill: var(--white); font-weight: 600; }
.map-label, .map-city { paint-order: stroke; stroke: var(--navy); stroke-width: 5px; stroke-linejoin: round; }

/* Scalloped edge, like the profile's cover */
.scallop-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 26px;
  background: radial-gradient(circle at 50% 100%, var(--white) 22px, transparent 23px) 0 0 / 52px 26px repeat-x;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: #f3dee0; font-size: 1.25rem; max-width: 60ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #dbe3ee; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head p { font-size: 1.18rem; color: var(--muted); }
.section-navy .section-head p { color: #eed2d5; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose p { font-size: 1.12rem; }

.pullquote {
  background: var(--navy);
  color: var(--white);
  padding: clamp(1.8rem, 4vw, 3rem);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  border-left: 6px solid var(--slate);
  margin: 0;
}

/* Vision / mission panels */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.vm > div { padding: clamp(2.2rem, 5vw, 3.8rem); }
.vm .vision { background: var(--navy); color: #f5e6e8; }
.vm .vision h2 { color: var(--white); }
.vm .mission { background: var(--mist); }
.vm p { font-size: 1.28rem; line-height: 1.55; margin: 0; }
.vm .num { color: var(--slate); margin-right: .35em; }

/* Theme cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border-top: 4px solid var(--navy);
  padding: 2rem 1.8rem;
  transition: transform .25s, box-shadow .25s;
}
.section-mist .card { background: var(--white); }
.card.mist { background: var(--mist); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(94,15,28,.12); }
.card .num { font-size: .95rem; color: var(--slate-dark); font-weight: 700; letter-spacing: .1em; }
.card h3 { margin: .4rem 0 .6rem; }
.card p { color: var(--muted); font-size: 1.04rem; margin-bottom: 1.2rem; }
.card .more { font-weight: 600; text-decoration: none; color: var(--navy); }
.card .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .icon { width: 36px; height: 36px; color: var(--navy); margin-bottom: 1rem; }

/* Objectives list */
.objectives { list-style: none; margin: 0; padding: 0; counter-reset: obj; }
.objectives li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.objectives li:last-child { border-bottom: 1px solid var(--line); }
.objectives li::before {
  counter-increment: obj;
  content: counter(obj);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.objectives h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.objectives p { margin: 0; color: var(--muted); }

/* Values tiles */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value { padding: 2.2rem 2rem; background: var(--mist); }
.value.dark { background: var(--navy); color: #f3dee0; }
.value.dark h3 { color: var(--white); }
.value .rule { width: 42px; height: 2px; margin: .8rem 0 1rem; }
.value p { margin: 0; font-size: 1.04rem; }

/* Thematic detail (research page) */
.theme {
  border-top: 4px solid var(--navy);
  padding: 2.4rem 0 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  scroll-margin-top: 110px;
}
.theme .num { color: var(--slate); font-weight: 700; }
.theme h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.theme .intro { color: var(--muted); font-size: 1.12rem; }
.focus-label { font-size: .75rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--navy); margin-bottom: .8rem; display: block; }
.focus { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 2rem; }
.focus li { position: relative; padding: .55rem 0 .55rem 1.3rem; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.focus li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--slate); }

.theme-index { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.theme-index a {
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  padding: .4rem .9rem;
  font-size: .95rem;
  color: #f5e6e8;
  transition: background .2s, color .2s;
}
.theme-index a:hover { background: var(--white); color: var(--navy); }

/* Scope table */
.scope { border-top: 4px solid var(--navy); }
.scope-row { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.scope-row h3 { margin: 0; font-size: 1.25rem; }
.scope-row p { margin: 0; color: var(--muted); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.partner {
  background: var(--mist);
  border-bottom: 4px solid var(--navy);
  padding: 1.6rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.stat { padding: 2rem 1.5rem 0 0; }
.stat strong { display: block; font-size: 3rem; color: var(--white); line-height: 1; }
.stat span { color: #e6c6ca; font-size: 1rem; }

/* CTA band */
.cta {
  background: var(--navy);
  color: #f3dee0;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.cta h2 { color: var(--white); max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta p { max-width: 56ch; margin: 0 auto 2rem; font-size: 1.15rem; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Publications placeholder */
.notice {
  border: 1px dashed var(--slate);
  background: var(--white);
  padding: 2.4rem;
  text-align: center;
}
.notice p { color: var(--muted); max-width: 54ch; margin: 0 auto 1.4rem; }
.pub-types { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.6rem; }
.pub-types span { background: var(--mist); padding: .35rem .9rem; font-size: .95rem; color: var(--navy); font-weight: 600; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: 1rem; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(214,150,158,.3); }
.form textarea { min-height: 160px; resize: vertical; }
.form-status { font-weight: 600; color: var(--navy); min-height: 1.5em; margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.18); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: .25rem; color: var(--slate); }
.contact-list a { text-decoration: none; color: var(--white); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list small { display: block; color: #dbafb4; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; }

.newsletter { display: flex; gap: .6rem; max-width: 460px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  color: var(--white);
}
.newsletter input::placeholder { color: #dbafb4; }
.newsletter .btn { padding: .7rem 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #e6c6ca;
  position: relative;
  padding-top: calc(clamp(3.5rem, 7vw, 5rem) + 26px);
  font-size: 1rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26px;
  background:
    radial-gradient(circle at 50% 100%, var(--navy) 22px, transparent 23px) 0 0 / 52px 26px repeat-x,
    var(--white);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-about p { margin-top: 1.2rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.4rem 0; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .values { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 1.5rem;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav .btn { margin-top: 1.2rem; justify-content: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero .container,
  .two-col,
  .vm,
  .theme { grid-template-columns: 1fr; }
  .hero-map { max-width: 520px; margin: 0 auto; width: 100%; }
  .topbar .tagline { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 18px; }
  .grid-3, .grid-2, .values, .partners { grid-template-columns: 1fr; }
  .focus { grid-template-columns: 1fr; }
  .scope-row { grid-template-columns: 1fr; gap: .4rem; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 2.4rem; }
  .topbar .container { justify-content: center; flex-wrap: wrap; gap: .2rem 1rem; }
  .wordmark { --logo: 1.7rem; }
}

/* ==========================================================
   DARK INSTITUTE THEME (Nov 2026)
   Dark navy layout with cream cards and brass accents,
   based on the reference design. Layered over the base styles.
   ========================================================== */
:root {
  --bg: #3e0911;
  --panel: #4c0c17;
  --panel-2: #7a1a29;
  --cream: #f3efe6;
  --cream-ink: #16202f;
  --brass: #c2a46b;
  --brass-ink: #7b5a1f;
  --hair: rgba(232,190,196,.22);
  --soft: #ecd0d3;
}
body { background: var(--bg); color: #f5e6e8; }
h1, h2, h3, h4 { color: #fff; }
.eyebrow, .on-dark .eyebrow { color: var(--brass); }

/* Top strip + header */
.topbar { background: #2b060c; border-bottom: 1px solid var(--hair); }
.site-header { background: rgba(8,22,43,.97); border-bottom: 1px solid var(--hair); }
.wordmark { color: #fff; }
.nav a { color: #f2dcde; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav ul a[aria-current="page"] { color: #fff; }
.nav ul a::after { background: var(--brass); }
.menu-toggle { color: #fff; }

/* Buttons */
.btn { background: var(--panel-2); border: 1px solid var(--slate); color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.btn:hover { background: var(--slate); border-color: var(--slate); }
.btn-outline, .on-dark .btn-outline { background: transparent; border-color: var(--brass); color: var(--brass); }
.btn-outline:hover, .on-dark .btn-outline:hover { background: var(--brass); color: var(--bg); border-color: var(--brass); }
.on-dark .btn { background: var(--panel-2); color: #fff; border-color: var(--slate); }
.on-dark .btn:hover { background: var(--slate); }
.nav .btn { color: #fff; }

/* No scalloped edges in this design */
.scallop-bottom::after, .site-footer::before { display: none; }
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); }

/* Hero */
.hero { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 46px),
  radial-gradient(120% 90% at 20% 30%, #8c2434 0%, #5e0f1c 55%, #3e0911 100%);
  border-bottom: 1px solid var(--hair); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.02; }
.hero .lead { color: var(--soft); }
.map-label { fill: #dba9af; }
.map-label, .map-city { stroke: #5e0f1c; }

/* Inner page headers */
.page-hero { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 46px),
  radial-gradient(120% 120% at 15% 20%, #8c2434 0%, #5e0f1c 60%, #3e0911 100%);
  border-bottom: 1px solid var(--hair); padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Section titles: caps with a hairline, like the reference */
.sec-title { font-family: Inter, Arial, sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 1.4rem; display: flex; align-items: center; gap: 14px; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* Sections */
.section-mist { background: var(--panel); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-navy { background: var(--panel); }
.section-head p, .prose p, .theme .intro, .scope-row p, .objectives p { color: var(--soft); }

/* Cream cards (the reference's light cards) */
.card, .card.mist, .section-mist .card { background: var(--cream); color: var(--cream-ink); border-top: 4px solid var(--brass); }
.card h3 { color: #5e0f1c; }
.card p { color: #4a5466; }
.card .num { color: var(--brass-ink); }
.card .more { color: #5e0f1c; }
.card .icon { color: #5e0f1c; }
.card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.35); }

.pullquote { background: var(--cream); color: #5e0f1c; border-left-color: var(--brass); }
.vm .vision { background: var(--panel-2); border: 1px solid var(--hair); }
.vm .mission { background: var(--cream); color: var(--cream-ink); }
.vm .mission h2, .vm .mission .eyebrow { color: #5e0f1c; }
.vm .mission .eyebrow { color: var(--brass-ink); }
.vm .num { color: var(--brass); }

/* Objectives */
.objectives li { border-color: var(--hair) !important; }
.objectives li::before { background: transparent; border: 1px solid var(--brass); color: var(--brass); }

/* Values: alternate dark panels and cream cards */
.value, .value[style] { background: var(--cream) !important; color: var(--cream-ink); }
.value h3 { color: #5e0f1c; }
.value.dark { background: var(--panel-2) !important; border: 1px solid var(--hair); color: var(--soft); }
.value.dark h3 { color: #fff; }

/* Research themes page */
.theme { border-top: 1px solid rgba(194,164,107,.55); }
.theme .num { color: var(--brass); }
.focus-label { color: var(--brass); }
.focus li { border-bottom-color: var(--hair); color: #f3e3e5; }
.focus li::before { background: var(--brass); }
.theme-index a { border-color: rgba(194,164,107,.5); color: #f5e6e8; }
.theme-index a:hover { background: var(--brass); color: var(--bg); }

/* Scope + partners */
.scope { border-top-color: var(--brass); }
.scope-row { border-bottom-color: var(--hair); }
.partner, .partner[style] { background: transparent !important; border: 1px solid rgba(194,164,107,.45); border-bottom: 1px solid rgba(194,164,107,.45); color: var(--brass); }

/* Theme tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { border: 1px solid rgba(194,164,107,.45); background: rgba(255,255,255,.02); padding: 20px; display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; text-decoration: none; transition: border-color .2s, background .2s; }
.tile:hover { border-color: var(--brass); background: rgba(194,164,107,.06); }
.tile .ic { width: 54px; height: 54px; border: 1px solid var(--brass); border-radius: 50%; display: grid; place-items: center; color: var(--brass); }
.tile .ic svg { width: 26px; height: 26px; }
.tile h3 { margin: 2px 0 4px; font-family: Inter, Arial, sans-serif; font-size: .92rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.tile p { margin: 0; font-size: .95rem; color: var(--soft); line-height: 1.5; }

/* "Latest" strip (home) */
.strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.visual { min-height: 190px; background:
  radial-gradient(circle, rgba(214,150,158,.55) 1.6px, transparent 1.9px) 0 0 / 14px 14px,
  linear-gradient(160deg, #6e1622, #4c0c17); display: flex; align-items: flex-end; padding: 14px; }
.visual span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #e0b5ba; }
.cream-card { background: var(--cream); color: var(--cream-ink); padding: 20px 22px; text-decoration: none; display: block; transition: background .2s; }
a.cream-card:hover { background: #fbf8f1; }
.cream-card .tag { font-family: Inter, Arial, sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.cream-card h3 { font-size: 1.6rem; line-height: 1.12; margin: 6px 0 8px; color: #5e0f1c; }
.cream-card p { margin: 0; font-size: .95rem; color: #4a5466; line-height: 1.5; }
.cream-card .go { display: inline-block; margin-top: 12px; font-family: Inter, Arial, sans-serif; font-size: .82rem; font-weight: 600; color: #5e0f1c; }
.stack { display: grid; grid-template-rows: auto 1fr; }
.side-stack { display: grid; gap: 18px; }
.side-stack .cream-card h3 { font-size: 1.3rem; }

/* Band with quote + numbers */
.band { background: #5e0f1c; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: clamp(2.5rem, 5vw, 3.2rem) 0; }
.band .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.band blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: #fff; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); }
.numbers div { background: #5e0f1c; padding: 16px 18px; }
.numbers b { display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--brass); }
.numbers span { font-size: .8rem; color: #e5c4c8; }

/* CTA band */
.cta { background: var(--panel); border-top: 1px solid var(--hair); }

/* Publications notice */
.notice { background: var(--cream); color: var(--cream-ink); border: 1px solid var(--brass); }
.notice h2 { color: #5e0f1c; }
.notice p { color: #4a5466; }
.pub-types span { background: #e7e0d1; color: #5e0f1c; }

/* Forms on dark */
.form label { color: #fff; }
.form input, .form select, .form textarea { background: #4c0c17; color: #fff; border: 1px solid #7d2a36; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(194,164,107,.25); }
.form-status { color: var(--brass); }
.two-col > aside { border: 1px solid var(--hair); }

/* Footer */
.site-footer { background: #2b060c; border-top: 1px solid var(--hair); }
.footer-webmail a { border-bottom-color: var(--brass); }

@media (max-width: 1020px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav { background: var(--bg); border-bottom: 1px solid var(--hair); }
  .nav ul a { border-bottom-color: var(--hair); }
  .band .container { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .strip, .tiles { grid-template-columns: 1fr; }
}

/* ==========================================================
   WHITE BACKGROUND VARIANT (Nov 2026), layered over the dark theme
   ========================================================== */
:root { --soft: #4a5568; --hair: #dde3ec; }
body { background: #ffffff; color: #1a2333; }
h1, h2, h3, h4 { color: #5e0f1c; }
.eyebrow { color: #8a6a2c; }

.topbar { background: #5e0f1c; border-bottom: 0; }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid #dde3ec; }
.site-header .wordmark { color: #5e0f1c; }
.nav a { color: #5e0f1c; }
.nav a:hover, .nav ul a[aria-current="page"] { color: #5e0f1c; }
.menu-toggle { color: #5e0f1c; }
.nav .btn { background: #5e0f1c; border-color: #5e0f1c; color: #fff; }

.btn { background: #5e0f1c; border-color: #5e0f1c; color: #fff; }
.btn:hover { background: #7a1a29; border-color: #7a1a29; }
.btn-outline { background: transparent; border-color: #8a6a2c; color: #8a6a2c; }
.btn-outline:hover { background: #8a6a2c; color: #fff; }

/* Hero and page headers stay navy as a strong band */
.hero h1, .page-hero h1, .hero .eyebrow, .page-hero .eyebrow { color: #fff; }
.hero .eyebrow, .page-hero .eyebrow { color: #c2a46b; }
.on-dark .btn { background: #fff; color: #5e0f1c; border-color: #fff; }
.on-dark .btn-outline { background: transparent; color: #c2a46b; border-color: #c2a46b; }

.sec-title { color: #5e0f1c; }
.sec-title::after { background: #dde3ec; }
.section-mist { background: #f5f7fa; border-color: #e6ebf2; }
.section-head p, .prose p, .theme .intro, .scope-row p, .objectives p { color: #4a5568; }

/* Cards: white with a gold top line instead of cream */
.cream-card, .card, .card.mist, .section-mist .card { background: #fff; border: 1px solid #e3e8ef; border-top: 3px solid #c2a46b; }
a.cream-card:hover { background: #fffdf8; box-shadow: 0 10px 28px rgba(94,15,28,.10); }
.visual { background: radial-gradient(circle, rgba(214,150,158,.6) 1.6px, transparent 1.9px) 0 0 / 14px 14px, linear-gradient(160deg, #7a1a29, #5e0f1c) !important; }
.pullquote { background: #5e0f1c; color: #fff; border-left-color: #c2a46b; }

/* Theme tiles on white */
.tile { background: #fff; border-color: #e0d3b6; }
.tile:hover { background: #fdfaf3; border-color: #c2a46b; }
.tile .ic { color: #8a6a2c; border-color: #c2a46b; }
.tile h3 { color: #5e0f1c; }
.tile p { color: #4a5568; }

/* Values, vision/mission */
.vm .vision { background: #5e0f1c; border: 0; }
.vm .vision h2 { color: #fff; }
.vm .mission { background: #f5f7fa; }
.value, .value[style] { background: #f5f7fa !important; }
.value.dark { background: #5e0f1c !important; }

/* Research page */
.theme { border-top-color: #5e0f1c; }
.focus li { color: #1a2333; border-bottom-color: #e3e8ef; }
.focus-label { color: #5e0f1c; }
.theme-index a { color: #f5e6e8; }
.scope-row { border-bottom-color: #e3e8ef; }
.partner, .partner[style] { background: #f5f7fa !important; border: 0; border-bottom: 3px solid #5e0f1c; color: #5e0f1c; }
.objectives li::before { background: #5e0f1c; border: 0; color: #fff; }
.notice { background: #fff; border: 1px dashed #c48890; }

/* Forms */
.form label { color: #5e0f1c; }
.form input, .form select, .form textarea { background: #fff; color: #1a2333; border: 1px solid #c9d3e0; }
.two-col > aside { border: 0; }

/* Navy band, CTA and footer keep the dark finish */
.band, .numbers div { background: #5e0f1c; }
.band blockquote { color: #fff; }
.cta { background: #5e0f1c; border: 0; }
.cta h2 { color: #fff; }
.site-footer { background: #5e0f1c; border-top: 0; }
.site-footer h4 { color: #fff; }

@media (max-width: 880px) {
  .nav { background: #fff; border-bottom: 1px solid #dde3ec; }
}
.hero .lead, .page-hero p { color: #f0d9dc; }
.theme-index a { border-color: rgba(194,164,107,.6); }

/* Longer menu (Experts + Events): tighter spacing, menu button below 1180px */
@media (max-width: 1320px) {
  .nav { gap: 1.4rem; }
  .nav ul { gap: 1.25rem; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; background: #fff; border-bottom: 1px solid #dde3ec;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter) 1.5rem;
    transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 1rem 0; border-bottom: 1px solid #dde3ec; }
  .nav ul a::after { display: none; }
  .nav .btn { margin-top: 1.2rem; justify-content: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================
   EXPERT PROFILES (Dec 2026)
   ========================================================== */
.experts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.expert { display: flex; gap: 26px; align-items: flex-start; background: #fff; border: 1px solid #dde3ec; border-top: 3px solid #c2a46b; border-radius: 6px; padding: 28px; }
.expert-photo { flex: 0 0 150px; width: 150px; height: 150px; object-fit: cover; object-position: center top; border-radius: 50%; border: 3px solid #f3e7e9; background: #f3e7e9; }
.expert-role { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8a6a2c; margin-bottom: .35rem; }
.expert h3 { margin: 0 0 .7rem; font-size: 1.6rem; color: #5e0f1c; }
.expert p { color: #4a5568; font-size: 1.02rem; line-height: 1.6; margin: 0 0 .7rem; }
.expert p:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .experts { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .expert { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .expert-photo { flex-basis: auto; width: 140px; height: 140px; }
}
.expert-short { font-size: 1.08rem; }
.expert-more { margin-top: .2rem; }
.read-more { background: none; border: 0; border-bottom: 1px solid #c2a46b; border-radius: 0; padding: 0 0 2px; margin-top: .4rem; font: 600 .8rem/1.4 Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #5e0f1c; cursor: pointer; }
.read-more:hover { color: #8a6a2c; }
.read-more::after { content: " \2193"; }
.read-more[aria-expanded="true"]::after { content: " \2191"; }

/* Footer social links (Dec 2026) */
.footer-social { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.footer-social-label { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-right: .3rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background .2s, border-color .2s, color .2s; }
.footer-social a:hover { background: #c2a46b; border-color: #c2a46b; color: #3e0911; }
.footer-social svg { width: 17px; height: 17px; }
