/* ==========================================================================
   Dr. John J. Georrge — Academic Website
   1. Tokens          5. Footer
   2. Base            6. Primitives (wrap, section, eyebrow, buttons)
   3. Layout          7. Home page
   4. Header
   ========================================================================== */

/* 1. Tokens ============================================================== */

:root {
  /* Colour */
  --rust:        #c25e2a;
  --rust-dark:   #a54c20;
  --rust-light:  #e07a3f;
  --paper:       #f4f0e7;
  --paper-2:     #ece5d6;
  --paper-3:     #faf7f0;
  --ink:         #1b1917;
  --ink-2:       #2a2620;
  --ink-3:       #26221d;
  --body:        #463f37;
  --muted:       #6f6759;
  --muted-2:     #7a7264;
  --faint:       #98907f;
  --line:        #d4cab6;
  --line-2:      #e4dbc9;
  --line-3:      #cdc2ad;
  --line-4:      #e1d8c6;
  --dark:        #201d19;
  --dark-text:   #cfc7ba;
  --dark-head:   #f4f0e7;
  --dark-muted:  #a49b8d;
  --dark-faint:  #8f877a;
  --dark-accent: #b7a48f;
  --dark-line:   rgba(255, 255, 255, 0.13);
  --dark-line-2: rgba(255, 255, 255, 0.16);
  --danger:      #b3441f;

  /* Type */
  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, monospace;

  /* Space */
  --wrap-max:  1360px;
  --gutter:    clamp(18px, 5vw, 64px);
  --section-y: clamp(54px, 6.6vw, 94px);
}

/* 2. Base =============================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rust); }

*:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
::selection { background: rgba(194, 94, 42, 0.18); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 3. Layout ============================================================= */

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: var(--section-y) 0; }

.section--tint {
  background: var(--paper-2);
  border-top: 1px solid #ddd3bf;
  border-bottom: 1px solid #ddd3bf;
}

.section--dark {
  background: var(--dark);
  color: #e8e1d5;
  padding: clamp(52px, 6.2vw, 86px) 0;
}

/* Scroll reveal — JS adds .is-visible; without JS everything stays visible. */
[data-reveal] {
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1),
              transform .75s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].is-hidden { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
}

/* 4. Header ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 240, 231, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.topbar__inner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-2);
}

.topbar__dept {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8b8271;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__dept:hover { color: var(--ink); }

.topbar__profiles {
  display: flex;
  align-items: center;
  flex: none;
}

.topbar__profiles a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7d7565;
  padding: 5px 9px;
}
.topbar__profiles a:hover { color: var(--rust); }

.topbar__divider {
  width: 1px;
  height: 11px;
  background: #cec3af;
  margin: 0 10px;
}

.topbar__cv {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 5px 0;
}
.topbar__cv:hover { color: var(--ink); }

.masthead {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__dot {
  width: 7px;
  height: 7px;
  background: var(--rust);
  border-radius: 50%;
}

.logo__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.logo:hover .logo__name { color: var(--rust); }

.nav {
  display: flex;
  align-items: stretch;
  height: 62px;
}

.nav__link {
  display: flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--rust);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid #cec3af;
  padding: 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-nav {
  border-top: 1px solid var(--line-2);
  background: var(--paper);
  padding: 4px 16px 14px;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-2);
}
.mobile-nav__link.is-active { font-weight: 600; color: var(--ink); }

@media (max-width: 959px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}
/* The profile short-links don't fit a phone-width topbar; they remain in the
   footer. Keep only the department name and the CV link. */
@media (max-width: 759px) {
  .topbar__profiles a:not(.topbar__cv) { display: none; }
  .topbar__divider { display: none; }
}
@media (min-width: 960px) {
  .mobile-nav { display: none; }
}

/* 5. Footer ============================================================= */

.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  font-family: var(--sans);
}
.site-footer .wrap { padding-top: clamp(50px, 6vw, 82px); }
.site-footer a:hover { color: var(--rust-light); }

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 34px clamp(32px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(38px, 4.6vw, 54px);
  border-bottom: 1px solid var(--dark-line);
}

.footer-top__head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 3.1vw, 40px);
  line-height: 1.16;
  color: var(--dark-head);
  margin: 0;
  letter-spacing: -0.012em;
  max-width: 20ch;
  text-wrap: balance;
}

.footer-top__contact {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-email {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--dark-head);
  border-bottom: 1px solid rgba(194, 94, 42, 0.5);
  padding-bottom: 3px;
}
.footer-email:hover { border-bottom-color: var(--rust); }

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-action {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dark-head);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 4px;
}
.footer-action:hover { color: var(--rust-light); border-bottom-color: var(--rust); }

.footer-mid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1.1fr;
  gap: 36px clamp(30px, 4vw, 56px);
  padding: clamp(40px, 4.8vw, 54px) 0;
  border-bottom: 1px solid var(--dark-line);
}

.footer-mid__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--dark-head);
  margin-bottom: 14px;
}

.footer-mid__address {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dark-muted);
  margin: 0 0 18px;
  max-width: 34ch;
}

.orcid-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 14px;
}
.orcid-pill:hover { border-color: var(--rust); color: var(--dark-head); }
.orcid-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  flex: none;
}

.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  font-family: var(--serif);
  font-size: 16px;
  color: #d9d1c5;
  padding: 6px 0;
}

.footer-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.footer-profiles a {
  font-size: 12.5px;
  color: var(--dark-text);
  width: fit-content;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 30px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dark-faint);
}
.footer-bottom__mark {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 759px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-mid { grid-template-columns: 1fr; }
}

/* 6. Primitives ========================================================= */

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow--rust { color: var(--rust); font-size: 10.5px; letter-spacing: 0.22em; margin-bottom: 20px; }
.eyebrow--dim  { color: var(--dark-faint); letter-spacing: 0.18em; margin-bottom: 16px; }

/* Section label, e.g. "Profile in brief" */
.section__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .section__label { color: var(--dark-accent); }

.section__title {
  font-weight: 500;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.section__intro {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.66;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 60ch;
}

/* Buttons / link affordances */
.btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: var(--rust);
  padding: 14px 22px;
}
.btn--primary:hover { background: var(--rust-dark); color: #fff; }

.btn--underline {
  color: var(--ink);
  border-bottom: 2px solid var(--rust);
  padding-bottom: 5px;
}
.btn--underline:hover { color: var(--rust); }

.btn--ghost {
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}
.btn--ghost:hover { color: var(--ink); border-bottom-color: var(--ink); }

.meta-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
}

/* 7. Home page ========================================================== */

.hero { position: relative; overflow: hidden; }

.hero__eyebrow-bar {
  padding-top: clamp(22px, 3.4vw, 38px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
}
.hero__eyebrow-bar .eyebrow { color: var(--faint); }

.hero__grid {
  padding: clamp(28px, 4.2vw, 56px) var(--gutter) clamp(38px, 4.6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.92fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(20px, 2.8vw, 30px);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}

.hero__title {
  font-weight: 500;
  font-size: clamp(46px, 8.2vw, 106px);
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.hero__title em { font-style: italic; font-weight: 500; }

.hero__lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--body);
  margin: clamp(22px, 3vw, 30px) 0 0;
  max-width: 37ch;
}

.hero__sub {
  font-size: clamp(15px, 1.55vw, 17.5px);
  line-height: 1.66;
  color: var(--muted);
  margin: 15px 0 0;
  max-width: 53ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(28px, 3.6vw, 40px);
}

.portrait { position: relative; }

.constellation {
  position: absolute;
  inset: -9% -15%;
  z-index: 0;
  pointer-events: none;
}

.portrait__figure { position: relative; z-index: 1; margin: 0; }

.portrait__plate {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg, rgba(27, 25, 23, 0.05) 0 1px, transparent 1px 12px);
  box-shadow: 0 44px 84px -54px rgba(27, 25, 23, 0.55);
}

.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #b3a992;
  text-align: center;
  padding: 20px;
}
.portrait__ring {
  width: 30px;
  height: 30px;
  border: 1px solid #cabfa9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait__ring::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cabfa9;
}

.portrait__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.fields-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fields-bar__inner {
  padding-top: 15px;
  padding-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-family: var(--sans);
}
.fields-bar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}
.fields-bar__item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4a453d;
}

/* Profile in brief */
.brief {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 48px);
}

.brief__lede {
  font-weight: 400;
  font-size: clamp(21px, 2.55vw, 30px);
  line-height: 1.4;
  color: var(--ink-3);
  margin: 0;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.quals { border-top: 2px solid var(--ink); padding-top: 16px; }
.quals__head {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.quals__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quals__col--law { border-left: 1px solid var(--line); padding-left: 22px; }
.quals__legend {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}
.qual { padding: 8px 0; border-bottom: 1px solid var(--line-4); }
.qual__degree { font-size: 15px; line-height: 1.3; color: var(--ink-3); }
.qual__org {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

/* The record — dark metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(28px, 3.6vw, 44px);
  border-top: 1px solid var(--dark-line-2);
}
.metric {
  padding: clamp(22px, 2.8vw, 32px) 24px clamp(22px, 2.8vw, 32px) 0;
  border-bottom: 1px solid var(--dark-line-2);
}
.metric__n {
  font-weight: 500;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.95;
  color: var(--dark-head);
  letter-spacing: -0.02em;
}
.metric__l {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark-accent);
  margin-top: 13px;
}
.metric__note {
  font-style: italic;
  font-size: 13px;
  color: var(--dark-faint);
  margin-top: 5px;
}

.metrics__footnote {
  margin: clamp(26px, 3vw, 34px) 0 0;
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--dark-muted);
  max-width: 62ch;
}
.metrics__footnote a {
  font-style: normal;
  color: #e8e1d5;
  border-bottom: 1px solid rgba(194, 94, 42, 0.6);
  padding-bottom: 2px;
}
.metrics__footnote a:hover { color: var(--rust-light); }

/* Research themes */
.research__head { max-width: 34ch; margin-top: clamp(26px, 3.4vw, 42px); }

.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(36px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.theme { padding: 20px 0; border-bottom: 1px solid var(--line); }
.theme__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 6px;
}
.theme__desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0;
}

/* Discovery pipeline */
.pipeline { margin-top: clamp(46px, 5.2vw, 68px); }
.pipeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: clamp(22px, 2.6vw, 30px);
  font-family: var(--sans);
}
.pipeline__head-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}
.pipeline__head-note { font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }

.pipeline__track { position: relative; padding-top: 2px; }
.pipeline__rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 53px;
  height: 1px;
  background: var(--ink);
  opacity: 0.22;
}
.pipeline__steps { display: grid; grid-template-columns: repeat(5, 1fr); }

.step { position: relative; padding-right: 22px; }
.step__n {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 27px;
}
.step:last-child .step__n { color: var(--rust); }
.step__marker {
  position: absolute;
  left: 0;
  top: 48px;
  width: 11px;
  height: 11px;
  background: var(--rust);
  transform: rotate(45deg);
}
.step__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 7px;
}
.step__caption {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-2);
  margin: 0;
  max-width: 22ch;
}

.pipeline__more {
  margin-top: clamp(30px, 3.4vw, 42px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* Publications */
.pubs { border-top: 1px solid var(--line-3); margin-top: clamp(26px, 3vw, 36px); }
.pubs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(26px, 3.4vw, 42px);
}
.pubs__head-note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0;
  max-width: 36ch;
}
.pubs__title {
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.pub {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 6px 32px;
  padding: clamp(22px, 2.8vw, 32px) 0;
  border-bottom: 1px solid var(--line-3);
}
.pub:hover { background: rgba(194, 94, 42, 0.04); color: inherit; }
.pub__year { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.pub__tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 8px;
}
.pub__title {
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.26;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pub__plain {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 70ch;
}
.pub__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pub__venue { font-style: italic; font-size: 14.5px; color: #4a453d; }
.pub__link { font-family: var(--mono); font-size: 11.5px; color: var(--rust); }

.link-row {
  display: flex;
  align-items: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Teaching */
.teaching {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: end;
  margin-top: clamp(28px, 3.6vw, 46px);
}
.teaching__title {
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.teaching__body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 44ch;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.figure { padding: 20px 18px 4px 0; }
.figure__n {
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.figure__l {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  margin-top: 11px;
}
.figure__note { font-style: italic; font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* Leadership & recognition */
.lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(28px, 3.6vw, 46px);
}
.lead__legend {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
}
.lead__list { border-top: 1px solid var(--line-3); }

.role { padding: 16px 0; border-bottom: 1px solid var(--line-3); }
.role__title { font-weight: 600; font-size: 17px; line-height: 1.28; color: var(--ink); }
.role__org {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 4px;
}

.award {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-3);
}
.award__year { font-family: var(--mono); font-size: 12px; color: var(--rust); }
.award__title { font-weight: 600; font-size: 16px; line-height: 1.28; color: var(--ink); }
.award__org {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 3px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 50px);
}
.contact__title {
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.contact__title em { font-style: italic; }
.contact__body {
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.6;
  color: var(--muted);
  margin: 22px 0 24px;
  max-width: 44ch;
}
.contact__email {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 3px;
}
.contact__routes { border-top: 2px solid var(--ink); }

.route {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}
.route__title { font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--ink); }
.route__desc {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 4px;
}
.route__arrow { font-family: var(--sans); font-size: 17px; color: var(--rust); }
.route:hover .route__title,
.route:hover .route__desc { color: var(--rust); }

/* Home — responsive ===================================================== */

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .brief,
  .teaching,
  .contact,
  .themes,
  .lead { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .pub { grid-template-columns: 1fr; }

  /* Pipeline becomes a vertical timeline */
  .pipeline__rule { display: none; }
  .pipeline__track { padding-left: 26px; }
  .pipeline__track::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(27, 25, 23, 0.22);
  }
  .pipeline__steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 24px; }
  .step__n { font-size: 20px; margin-bottom: 6px; }
  .step__marker { left: -25px; top: 7px; }
  .step__title { font-size: 16.5px; }
  .step__caption { font-size: 13px; max-width: none; }
}

@media (max-width: 599px) {
  .quals__cols { grid-template-columns: 1fr; }
  .quals__col--law { border-left: 0; padding-left: 0; }
  .course-grid { grid-template-columns: 1fr; }
}

/* 8. Interior pages ===================================================== */

.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(30px, 4vw, 52px); padding-bottom: clamp(40px, 5vw, 66px); }

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: clamp(26px, 4vw, 44px);
}
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--ink); }
.crumbs__current { color: var(--rust); }

.page-hero__title {
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  max-width: 16ch;
}
.page-hero__title em { font-style: italic; }

.page-hero__lede {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  margin: clamp(20px, 2.5vw, 28px) 0 0;
  max-width: 62ch;
}

.section--rule { border-bottom: 1px solid var(--line); }
.section--short { padding: clamp(44px, 5vw, 68px) 0; }
.section--dark-short { padding: clamp(44px, 5vw, 68px) 0; }
.section--dark-tall { padding: clamp(56px, 7vw, 104px) 0; }

.section__head { max-width: 660px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section__head--wide { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head .section__label { display: block; margin-bottom: 16px; }

.section__heading {
  font-weight: 500;
  font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.section__heading--light { color: var(--dark-head); margin-bottom: 16px; }

.section__head-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 14px 0 0;
  max-width: 52ch;
}
.section__head-note--light {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 60ch;
}

.section__label--accent { color: var(--rust-light); }
.section__label--rust { color: var(--rust); }

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: clamp(26px, 3.2vw, 40px);
}
.split-head .section__label { display: block; margin-bottom: 14px; }
.split-head__note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0;
  max-width: 32ch;
}

/* Rail: narrow label column + wide content column */
.rail {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) 2.3fr;
  gap: clamp(28px, 4vw, 56px);
}
.rail .section__label { display: block; margin-bottom: 16px; }
.rail__title {
  font-weight: 500;
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.rail__note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0 0 24px;
  max-width: 44ch;
}
.rail__note strong { color: var(--ink); font-weight: 700; }

.statement {
  font-weight: 400;
  font-size: clamp(22px, 2.9vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink-3);
  margin: clamp(24px, 3vw, 34px) 0 clamp(30px, 4vw, 46px);
  max-width: 24ch;
}
.statement--wide { max-width: 28ch; }

.bio-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.bio-cols--weighted { grid-template-columns: 1.4fr 1fr; }
.bio-cols__p { font-size: 16.5px; line-height: 1.75; color: #544f49; margin: 0; }

/* Qualifications */
.qual-list { border-top: 1.5px solid var(--ink); }
.qual-row {
  display: grid;
  grid-template-columns: 84px 1fr 78px;
  gap: 4px 24px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid #d7ccb8;
}
.qual-row__year { font-family: var(--mono); font-size: 12px; color: var(--rust); }
.qual-row__year.is-empty { color: #b3a992; }
.qual-row__degree { font-weight: 600; font-size: 16.5px; line-height: 1.3; color: var(--ink); margin: 0 0 2px; }
.qual-row__org { font-family: var(--sans); font-size: 12.5px; line-height: 1.5; color: var(--muted-2); margin: 0; }
.qual-row__tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  justify-self: start;
  color: var(--muted);
}
.qual-row__tag--law { color: var(--rust); }
.qual-row__tag--other { color: var(--faint); }

/* Timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 10px;
  width: 1px;
  background: #cabfa9;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 5px 26px;
  padding: 0 0 clamp(24px, 3vw, 36px) 24px;
}
.timeline--org .timeline__item { grid-template-columns: 130px 1fr; }
.timeline__dot {
  position: absolute;
  left: -1px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
}
.timeline__dot.is-current { background: var(--rust); }
.timeline__period { font-family: var(--mono); font-size: 12px; color: var(--rust); padding-top: 2px; }
.timeline--org .timeline__period { font-size: 11.5px; padding-top: 3px; }
.timeline__role { font-weight: 600; font-size: 17.5px; line-height: 1.25; color: var(--ink); margin: 0 0 4px; }
.timeline__org { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 5px; }
.timeline__note { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--faint); margin: 0; }

/* Awards grid (Profile) */
.award-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 64px);
  border-top: 1px solid #d7ccb8;
}
.award-grid .award { grid-template-columns: 60px 1fr; padding: 18px 0; border-bottom: 1px solid #d7ccb8; }
.award__title { margin: 0 0 3px; }
.award__org { margin: 0; }

/* Grouped lists (memberships, collaboration) */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
}
.group-grid__head {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.group-grid__items { display: flex; flex-direction: column; gap: 11px; }
.group-grid__items span { font-size: 16px; line-height: 1.4; color: #3f3d3a; }

/* CV band */
.cv-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(44px, 5vw, 68px);
  padding-bottom: clamp(44px, 5vw, 68px);
}
.cv-band__title {
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  color: var(--dark-head);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.cv-band__note { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--dark-muted); margin: 0; }

/* Metric variants */
.metrics--three { grid-template-columns: repeat(3, 1fr); }
.metrics--four  { grid-template-columns: repeat(4, 1fr); }
.metrics--five  { grid-template-columns: repeat(5, 1fr); }

/* Teaching */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.course { border-top: 1px solid var(--line); padding: 18px 0; }
.course__level {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.course__name { font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ink); margin: 0; }

.phil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(36px, 5vw, 72px);
  border-top: 1px solid #d7ccb8;
}
.phil { padding: 22px 0; border-bottom: 1px solid #d7ccb8; }
.phil__title { font-weight: 600; font-size: 17.5px; line-height: 1.3; color: var(--ink); margin: 0 0 8px; }
.phil__desc { font-family: var(--sans); font-size: 13.5px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.steps-list { border-top: 1.5px solid var(--ink); }
.step-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step-row__marker {
  width: 9px;
  height: 9px;
  background: var(--rust);
  transform: rotate(45deg);
  margin-top: 8px;
}
.step-row__title { font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ink); margin: 0 0 5px; }
.step-row__desc { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

.note-card { border: 1px solid #cabfa9; padding: clamp(28px, 3.4vw, 40px); max-width: 720px; }
.note-card .section__label { display: block; margin-bottom: 14px; }
.note-card__title {
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}
.note-card__body { font-family: var(--sans); font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }

/* Research */
.themes--tint { border-top-color: #d7ccb8; }
.themes--tint .theme { border-bottom-color: #d7ccb8; padding: 22px 0; }

.pipeline__track--dark .pipeline__rule { background: rgba(255, 255, 255, 0.2); opacity: 1; }
.pipeline__track--dark .step__n { color: var(--dark-head); }
.pipeline__track--dark .step:last-child .step__n { color: var(--rust-light); }
.pipeline__track--dark .step__title { color: var(--dark-head); }
.pipeline__track--dark .step__caption { color: var(--dark-faint); }

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.cap {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cap__marker { width: 7px; height: 7px; background: var(--rust); transform: rotate(45deg); margin-top: 6px; }
.cap__text { font-size: 15.5px; line-height: 1.55; color: #3f3d3a; margin: 0; }

.areas-block {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(30px, 3.5vw, 42px);
  border-top: 1px solid var(--line);
}
.areas-block .section__label { display: block; margin-bottom: 20px; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.area {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #cabfa9;
  padding: 10px 18px;
  font-size: 14.5px;
  color: #3f3d3a;
}
.area__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { border: 1px solid #d2c7b2; padding: 26px 24px; }
.project__area {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.project__row { padding: 11px 0; border-top: 1px solid #ddd3bf; }
.project__k {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.project__v { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: #544f49; }
.project__empty {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
  font-style: italic;
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid #ddd3bf;
}

.group-list { border-top: 1.5px solid var(--ink); }
.group-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) 1.6fr;
  gap: 6px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.group-row__label { font-weight: 600; font-size: 16.5px; color: var(--ink); }
.group-row__note { font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }

/* Publications page */
.pubs--plain { border-top: 1px solid var(--line); }
.pubs--plain .pub { border-bottom-color: var(--line); }

.chart { display: flex; flex-direction: column; gap: 13px; }
.chart__row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr;
  gap: 6px 16px;
  align-items: center;
}
.chart__label { font-family: var(--sans); font-size: 13px; line-height: 1.35; color: #544f49; }
.chart__bar-wrap { display: flex; align-items: center; gap: 12px; }
.chart__track { flex: 1; height: 10px; background: #ddd3bf; }
.chart__bar { height: 100%; background: var(--ink); }
.chart__value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  width: 22px;
  text-align: right;
}

.archive { border-top: 1px solid var(--line); }
.archive__item { border-bottom: 1px solid var(--line); }
.archive__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 2px;
  text-align: left;
  font-family: inherit;
}
.archive__head { display: flex; align-items: baseline; gap: 14px; }
.archive__type { font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.archive__count { font-family: var(--mono); font-size: 12px; color: var(--rust); }
.archive__sign { font-family: var(--mono); font-size: 18px; color: var(--faint); }
.archive__sign::after { content: '+'; }
.archive__trigger[aria-expanded="true"] .archive__sign::after { content: '–'; }
.archive__panel { padding: 0 2px 24px; }
.archive__note {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 66ch;
}
.archive__link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
  border-bottom: 1px solid #ecccb2;
  padding-bottom: 2px;
}
.archive__link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cabfa9;
  padding: 17px 20px;
}
.profile-card:hover { border-color: var(--rust); }
.profile-card__label { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.profile-card__arrow { font-family: var(--mono); font-size: 13px; color: var(--rust); }

/* Leadership */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(32px, 4vw, 64px);
  border-top: 1.5px solid var(--ink);
}
.role-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.role-card__title { font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); margin: 0 0 8px; }
.role-card__org { font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--muted-2); margin: 0; }

.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(36px, 5vw, 72px);
  border-top: 1.5px solid var(--ink);
}
.prog { padding: 24px 0; border-bottom: 1px solid var(--line); }
.prog__title { font-weight: 600; font-size: 18.5px; line-height: 1.3; color: var(--ink); margin: 0 0 9px; }
.prog__desc { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Impact */
.output-stack { display: flex; flex-direction: column; gap: 16px; }
.patent { border: 1px solid #cabfa9; border-left: 3px solid var(--rust); padding: 28px 26px; }
.patent__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.patent__title { font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--ink); margin: 0 0 10px; }
.patent__title em { font-style: italic; }
.patent__note { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

.dataset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #cabfa9;
  padding: 26px;
}
.dataset:hover { border-color: var(--rust); }
.dataset__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dataset__title { font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink); margin: 0 0 8px; }
.dataset__note { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.dataset__arrow { font-family: var(--mono); font-size: 16px; color: var(--rust); flex: none; }

.grant-list { border-top: 1.5px solid var(--ink); }
.grant {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 4px 28px;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid #d7ccb8;
}
.grant__funder { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--rust); }
.grant__title { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); margin: 0 0 3px; }
.grant__note { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted-2); margin: 0; }

.talk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.talk {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.talk__event { font-family: var(--mono); font-size: 11.5px; color: var(--rust); }
.talk__venue { font-size: 15.5px; line-height: 1.4; color: var(--ink); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.service { padding: clamp(22px, 2.6vw, 30px) 22px clamp(22px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); }
.service__n {
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.service__l { font-family: var(--sans); font-size: 12.5px; line-height: 1.45; color: #544f49; margin-top: 12px; }

/* Connect */
.connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.connect .section__label { display: block; margin-bottom: 20px; }
.connect__dept {
  font-weight: 500;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 26px;
}
.connect__details { display: flex; flex-direction: column; gap: 20px; }
.connect__block { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.connect__label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.connect__email {
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--ink);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 2px;
}
.connect__address { font-family: var(--sans); font-size: 14.5px; line-height: 1.65; color: #544f49; margin: 0; }
.connect__profiles { display: flex; flex-wrap: wrap; gap: 8px; }
.connect__profiles a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #544f49;
  border: 1px solid #cabfa9;
  padding: 8px 15px;
}
.connect__profiles a:hover { border-color: var(--rust); color: var(--ink); }

/* Forms */
.form-card { border: 1px solid #cabfa9; background: var(--paper-3); padding: clamp(26px, 3vw, 40px); }
.form-card .section__label { display: block; margin-bottom: 8px; }
.form-card__note {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0 0 24px;
}

.field { display: block; margin-bottom: 18px; }
.field__label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3f3d3a;
  margin-bottom: 7px;
}
.field__input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cabfa9;
  padding: 13px 14px;
}
.field__input:focus { border-color: var(--rust); outline: none; }
.field__input--area { resize: vertical; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-errors {
  border-left: 3px solid var(--danger);
  background: rgba(179, 68, 31, 0.06);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.form-errors p {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--danger);
  margin: 0;
}
.form-errors p + p { margin-top: 5px; }

.btn-submit {
  width: 100%;
  background: var(--rust);
  color: #fff;
  border: none;
  padding: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--rust-dark); }

.btn-outline {
  display: inline-block;
  background: none;
  border: 1px solid #cabfa9;
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--rust); }

.sent { text-align: center; padding: 30px 10px; }
.sent__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0e2d5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.sent__title { font-weight: 500; font-size: 24px; color: var(--ink); margin: 0 0 10px; }
.sent__body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 42ch;
}

/* Interior pages — responsive ========================================== */

@media (max-width: 899px) {
  .rail,
  .bio-cols,
  .bio-cols--weighted,
  .connect,
  .award-grid,
  .phil-grid,
  .prog-grid,
  .talk-grid,
  .cap-grid,
  .group-grid,
  .project-grid,
  .role-grid { grid-template-columns: 1fr; }

  .course-grid { grid-template-columns: 1fr 1fr; }
  .metrics--five { grid-template-columns: repeat(2, 1fr); }
  .metrics--four { grid-template-columns: repeat(2, 1fr); }
  .metrics--three { grid-template-columns: 1fr; }

  .qual-row { grid-template-columns: 58px 1fr; }
  .qual-row__tag { grid-column: 2; }
  .timeline__item,
  .timeline--org .timeline__item { grid-template-columns: 1fr; }
  .grant { grid-template-columns: 88px 1fr; }
  .chart__row { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }

  .pipeline__track--dark .pipeline__rule { display: none; }
  .pipeline__track--dark::before { background: rgba(255, 255, 255, 0.2); }
}
