:root {
  /* Palette drawn from the Research To Practice logo (#156082) */
  --navy: #0e3a50;
  --navy-deep: #0a2c3d;
  --teal: #156082;
  --teal-soft: #4f8fab;
  --sky: #bfe3f2;
  --sky-soft: #e3f2f9;
  --paper: #f4f9fc;
  --surface: #ffffff;
  --ink: #10293a;
  --text: #3d5566;
  --muted: #6b8090;
  --line: #d6e6ef;
  --logo-tone: #6b7f8c;
  --radius: 10px;
  --max: 1160px;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --caps: "Montserrat", "Inter", system-ui, sans-serif;
  font-family: var(--sans);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background-color: var(--paper);
  /* subtle graph-paper grid, echoing the logo */
  background-image:
    linear-gradient(rgba(21, 96, 130, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 96, 130, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--caps);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow span { margin-right: .35rem; }
.eyebrow-rule {
  padding-bottom: 1.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid rgba(191, 227, 242, .35);
}
.eyebrow-center { text-align: center; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(191, 227, 242, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; color: var(--sky); flex: none; }
.brand-name {
  font-family: var(--caps);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}
nav { display: flex; gap: 2rem; }
nav a {
  font-family: var(--caps);
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
nav a:hover { color: var(--sky); }

/* Hero */
.hero {
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.hero-text { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero .eyebrow { color: var(--sky); }
.hero h1 { color: #f7f4ec; }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .92); }
.hero-sub { color: rgba(255, 255, 255, .72); }
.hero-photo {
  align-self: start;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.hero-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 30px 60px -30px rgba(10, 44, 61, .7);
}
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 6px;
  background: var(--sky);
  color: var(--navy-deep);
  font-family: var(--caps);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--sky);
  transition: background .15s, color .15s, border-color .15s;
}
.button:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(191, 227, 242, .5); }
.button-ghost:hover { background: rgba(191, 227, 242, .12); color: #fff; border-color: var(--sky); }

/* Initiatives */
.initiatives { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem); }
.initiatives h2 { max-width: 24ch; margin-bottom: 2.75rem; }
.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 100%;
  min-height: 168px;
  padding: 2.25rem 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--logo-tone);
  transition: border-color .2s, transform .2s, box-shadow .2s, color .2s;
}
a.logo-card:hover {
  color: var(--teal);
  border-color: var(--teal-soft);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(21, 96, 130, .55);
}
.logo-caption {
  font-family: var(--caps);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
a.logo-card .logo-caption::after { content: " ↗"; letter-spacing: 0; }
a.logo-card:hover .logo-caption { color: var(--teal); }

/* Logos are single-colour masks so every mark shares one tone */
.logo {
  display: block;
  height: var(--h, 40px);
  aspect-ratio: var(--ar, 3);
  max-width: 100%;
  background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
  margin-block: auto;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.05;
  text-align: center;
  margin-block: auto;
  color: inherit;
}

/* About */
.about {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.about-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.prose p:first-child {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--ink);
}

/* Experience */
.experience { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.experience .eyebrow { color: var(--teal-soft); margin-bottom: 2.5rem; }
.logo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem 3rem;
  color: var(--logo-tone);
}
.logo-row li { display: flex; align-items: center; }

/* Contact */
.contact { padding: 0 0 clamp(3.5rem, 8vw, 5.5rem); }
.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  padding: clamp(2.25rem, 5vw, 3.75rem);
}
.contact .eyebrow { color: var(--sky); }
.contact h2 { color: #f7f4ec; margin: 0; }
.contact p:not(.eyebrow) { margin: 0; font-size: 1.15rem; }
.contact a { color: #fff; }
.contact a:hover { color: var(--sky); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .6);
  padding: 1.75rem 0;
  font-size: .85rem;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }
.footer-mark { width: 34px; height: 34px; color: var(--teal-soft); flex: none; }

/* 404 */
.notfound { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.notfound .button { background: var(--teal); border-color: var(--teal); color: #fff; }
.notfound .button:hover { background: var(--navy); border-color: var(--navy); }

@media (max-width: 960px) {
  nav { gap: 1.25rem; }
  .logo-row { justify-content: center; }
}
@media (max-width: 860px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 300px; margin-bottom: 0; align-self: start; }
  .hero-text { padding-bottom: 3.5rem; }
  .initiatives { padding-top: 4rem; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  nav a:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 64px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: .7rem; letter-spacing: .2em; }
  .brand-name { white-space: normal; max-width: 12em; line-height: 1.5; }
  nav a:not(:last-child) { display: none; }
  .logo-grid { grid-template-columns: 1fr; }
  .logo-card { min-height: 140px; }
  .logo-row { gap: 2rem 2.5rem; }
  .logo-row .logo { height: calc(var(--h) * .82); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
