/* drramisgheith.com — site styles */
/* Fonts are served from this site (SIL Open Font License; see assets/fonts) */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --ink: #14233b;        /* navy, from his suit */
  --text: #26323f;
  --muted: #586678;
  --tie: #2a55c4;        /* cobalt, from his tie: links and actions */
  --tie-dark: #1d3f99;
  --paper: #f5f7fa;
  --mist: #e6ecf3;
  --rule: #d3dbe4;
  --white: #ffffff;
  --portrait: #dcdfe4;   /* matches the photo backdrop */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tie); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tie-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tie); outline-offset: 3px; border-radius: 2px; }

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

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

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: rgba(255,255,255,0.97); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand span { font-weight: 400; color: var(--muted); }
.brand:hover { color: var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent; display: inline-block;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--tie); font-weight: 500; }

html { scroll-padding-top: 5rem; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: nowrap; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem;
    font: 500 0.95rem/1 var(--sans); color: var(--ink); background: var(--white);
    border: 1px solid var(--rule); border-radius: 2px; padding: 0 0.9rem; cursor: pointer;
  }
  .js .menu-toggle:hover { border-color: var(--ink); }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s;
  }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .menu-open .menu-icon { background: transparent; }
  .menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(20,35,59,0.08);
  }
  .js.menu-open .nav { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; max-width: var(--wrap); margin: 0 auto; }
  .js .nav li { border-bottom: 1px solid var(--mist); }
  .js .nav li:last-child { border-bottom: 0; }
  .js .nav a { display: block; padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 0; }
  .js .nav a[aria-current="page"] { border-bottom: 0; box-shadow: inset 3px 0 0 var(--tie); padding-left: 0.85rem; }
  html:not(.js) .nav { width: 100%; overflow-x: auto; }
  html:not(.js) .nav ul { flex-wrap: nowrap; gap: 1.25rem; white-space: nowrap; }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.25rem); line-height: 1.1; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.5rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; max-width: 40em; }
.lede { font-size: 1.2rem; color: var(--text); max-width: 34em; }
.small { font-size: 0.92rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--tint { background: var(--paper); }
.page-head { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head p { font-size: 1.15rem; max-width: 36em; }

/* ---------- hero (home) ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero .wrap {
  --hero-top: clamp(2rem, 4vw, 3.5rem);
  --hero-name: 0rem;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.hero-text { padding: var(--hero-top) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-name { font-size: 1rem; line-height: 1.6; color: var(--muted); margin: 0 0 1.25rem; }
.hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 1rem; max-width: 15em;
}
.hero h1 > span { display: block; }
.hero-h1-role {
  font-size: clamp(1.15rem, 1.75vw, 1.55rem); line-height: 1.35; letter-spacing: 0;
  font-weight: 400; color: var(--muted); margin-top: 0.6rem;
}
.hero-h1-role span { display: inline-block; }
.hero h1 + .hero-goal { margin-top: 1.75rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
@media (min-width: 1100px) { .hero h1 { max-width: none; } .hero-h1-role { white-space: nowrap; } .hero .hero-goal { max-width: none; font-size: 1.25rem; } }
.hero-sub { font-size: 1.15rem; max-width: 32em; margin-bottom: 2rem; }
.hero-figure { margin: calc(var(--hero-top) + var(--hero-name) + 0.55rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--portrait); }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0.5rem; }
  .hero-figure { max-width: 22rem; margin: 1.5rem 0 0; align-self: end; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0 1.4rem; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid var(--ink); border-radius: 2px; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--tie-dark); border-color: var(--tie-dark); color: var(--white); text-decoration: none; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); text-decoration: none; }

/* ---------- section links ---------- */
.more { margin-top: 1.25rem; }
.more a {
  font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.15rem; transition: color .15s, border-color .15s;
}
.more a::after { content: " →"; transition: margin .15s; }
.more a:hover { color: var(--tie-dark); border-bottom-color: currentColor; }

/* ---------- facts row ---------- */
.section--navy { background: var(--ink); color: #c9d3df; border-top: 0; }
.section--navy + .section { border-top: 0; }
.section--navy h2 { color: var(--white); }
.section--navy .facts li { border-left-color: #2f4262; }
.section--navy .facts a, .section--navy .facts strong { color: var(--white); text-decoration: none; }
.section--navy .facts a:hover { color: #ffffff; text-decoration: underline; text-decoration-color: #8fa7d6; }
.section--navy .facts span { color: #a9b6c6; }
@media (max-width: 760px) { .section--navy .facts li { border-bottom-color: #2f4262; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { padding: 0.25rem 1.5rem; border-left: 1px solid var(--rule); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong, .facts a { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); line-height: 1.3; margin-bottom: 0.35rem; text-decoration-color: var(--rule); }
.facts a:hover { color: var(--tie-dark); text-decoration-color: currentColor; }
@media (max-width: 1000px) and (min-width: 761px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
}
.facts span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .facts li { border-left: 0; padding: 0 0 1rem; border-bottom: 1px solid var(--rule); }
  .facts li:last-child { border-bottom: 0; }
}

/* ---------- two-column intro ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.statement { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--ink); max-width: 30em; }

/* ---------- focus list ---------- */
.focus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.focus-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1rem 3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.focus-list h3 { margin: 0; }
.focus-list p { margin: 0; }
@media (max-width: 760px) { .focus-list li { grid-template-columns: 1fr; gap: 0.4rem; } }
.focus-list--links li { display: block; padding: 0; }
.row-link {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 2rem; gap: 1rem 3rem; align-items: baseline;
  padding: 1.5rem 0.25rem; color: var(--text); text-decoration: none; transition: background-color .15s;
}
.row-link h3 { margin: 0; color: var(--ink); }
.row-link p { margin: 0; }
.row-arrow { color: var(--muted); font-size: 1.2rem; justify-self: end; transition: transform .15s, color .15s; }
.row-link:hover { background: var(--paper); color: var(--text); }
.row-link:hover .row-arrow { color: var(--tie-dark); transform: translateX(4px); }
.row-link:hover h3 { color: var(--tie-dark); }
@media (max-width: 760px) { .row-link { grid-template-columns: 1fr 1.5rem; gap: 0.4rem 1rem; } .row-link p { grid-column: 1; } .row-arrow { grid-row: 1; grid-column: 2; } }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 5vw, 4rem); border-top: 2px solid var(--ink); margin-top: 1.5rem; }
.duo > div { padding-top: 1.5rem; }
.duo > div + div { border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 5vw, 4rem); margin-left: calc(-1 * clamp(1.5rem, 5vw, 4rem) / 2); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo > div + div { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--rule); margin-top: 1.5rem; } }

/* ---------- research record ---------- */
.record { padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--rule); }
.record:first-of-type { border-top: 0; padding-top: 0; }
.record h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); max-width: 26em; }
.cite {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--paper);
  border-left: 3px solid var(--ink); font-size: 0.95rem; color: var(--text); max-width: 46em;
}
.cite p { margin: 0 0 0.35rem; max-width: none; }
.cite p:last-child { margin-bottom: 0; }
.cite .role { color: var(--ink); font-weight: 600; }
.record dl { margin: 0; max-width: 42em; }
.record dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.record dd { margin: 0.25rem 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; padding: 0; list-style: none; }

.feature {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem);
}
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 2.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
caption { text-align: left; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); padding-bottom: 0.75rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.88rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; color: var(--ink); }
td.when { white-space: nowrap; color: var(--muted); }

/* ---------- lists ---------- */
.plain { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.plain li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); max-width: 46em; }
.steps { margin: 0 0 1.5rem; padding-left: 1.4rem; max-width: 40em; }
.steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.steps li::marker { font-family: var(--serif); font-weight: 600; color: var(--muted); }

/* ---------- routes (contact, closing band) ---------- */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.routes > div { padding: 1.5rem 1.5rem 0.5rem 0; }
.routes > div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.routes h3 { font-size: 1.15rem; }
.page-head--contact .routes h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.routes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .routes, .routes--two { grid-template-columns: 1fr; }
  .routes > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; max-width: 46em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9d3df; padding: 3rem 0 2.5rem; font-size: 0.95rem; }
.site-footer a { color: #ffffff; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); gap: 2rem; }
.site-footer h2 { color: #ffffff; font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.site-footer a { text-decoration-color: #4a5f80; }
.site-footer a:hover { color: #ffffff; text-decoration-color: currentColor; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2f4262; padding-top: 1.25rem; margin-top: 0.5rem; font-size: 0.88rem; color: #a9b6c6; }
.site-footer .legal p { max-width: none; margin-bottom: 0.4rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media print {
  .site-header .nav, .skip, .actions { display: none; }
  .site-footer { background: none; color: #000; }
  a { color: #000; }
}

/* ---------- research page ---------- */
.split--head { align-items: start; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--head h1 { max-width: 14em; }
.paper-index { border-top: 2px solid var(--ink); padding-top: 1rem; }
.paper-index h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; letter-spacing: 0; }
.paper-index ol { list-style: none; margin: 0; padding: 0; counter-reset: paper; }
.paper-index li { counter-increment: paper; display: grid; grid-template-columns: 2rem 1fr; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.paper-index li::before { content: counter(paper); grid-row: span 2; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--muted); line-height: 1.3; }
.paper-index a { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.35; text-decoration-color: var(--rule); }
.paper-index a:hover { color: var(--tie-dark); text-decoration-color: currentColor; }
.paper-index span { font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }

.paper {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule); scroll-margin-top: 1rem;
}
.paper:first-child { border-top: 0; padding-top: 0; }
.paper-facts {
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--ink);
  padding: 1.25rem 1.25rem 1.5rem; align-self: start; position: sticky; top: 1.5rem;
}
.paper-facts dl { margin: 0 0 1.25rem; }
.paper-facts dt { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.paper-facts dt:first-child { margin-top: 0; }
.paper-facts dd { margin: 0.1rem 0 0; color: var(--ink); font-weight: 500; line-height: 1.4; }
.paper-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.paper-links .btn { display: block; text-align: center; font-size: 0.95rem; padding: 0.7rem 1rem; }
.paper-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: 1.25rem; max-width: 24em; }
.paper-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 1.25rem 0 0.35rem; letter-spacing: 0; }
.paper-body p { max-width: 40em; }
.paper-cite { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.5rem; }

@media (max-width: 820px) {
  .split--head { grid-template-columns: 1fr; }
  .paper { grid-template-columns: 1fr; }
  .paper-facts { position: static; order: 2; }
  .paper-body { order: 1; }
  .paper-links { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
}

/* ---------- page head with companion (profile) ---------- */
.page-head--profile { padding-bottom: 0; overflow: hidden; }
.profile-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.profile-head > div { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.head-facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.head-facts li { padding: 0.9rem 1rem 0 0; color: var(--ink); font-weight: 500; line-height: 1.4; font-size: 0.98rem; }
.head-facts li + li { padding-left: 1rem; border-left: 1px solid var(--rule); }
.head-facts span { display: block; font-size: 0.82rem; font-weight: 400; color: var(--muted); margin-bottom: 0.2rem; }
.profile-portrait { margin: 0; background: var(--portrait); align-self: end; }
.profile-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
@media (max-width: 820px) {
  .profile-head { grid-template-columns: 1fr; }
  .profile-head > div { padding-bottom: 0; }
  .profile-portrait { max-width: 18rem; }
  .head-facts { grid-template-columns: 1fr; }
  .head-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .head-facts li { padding: 0.75rem 0; }
}

/* ---------- page head companion panel ---------- */
.head-panel { border-top: 2px solid var(--ink); padding-top: 1rem; }
.head-panel h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; letter-spacing: 0; }
.head-panel h2 + * { margin-top: 0; }
.head-panel ul { list-style: none; margin: 0; padding: 0; }
.head-panel li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.head-panel li a, .head-panel-item strong, .head-panel-item a { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.35; }
.head-panel li a, .head-panel-item a { text-decoration-color: var(--rule); }
.head-panel li a:hover, .head-panel-item a:hover { color: var(--tie-dark); text-decoration-color: currentColor; }
.head-panel-item { margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); max-width: none; }
.head-panel-item strong, .head-panel-item a { display: block; margin-bottom: 0.25rem; }
.head-panel-item:last-child { margin-bottom: 0; }
.page-head--contact { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.page-head--contact .routes { margin-top: 2.5rem; }
.page-head .head-panel-item { font-size: 0.92rem; }
.page-head--contact + .section { border-top: 1px solid var(--rule); }

.hero-goal { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35; color: var(--ink); margin: 0 0 1.25rem; max-width: 26em; }

/* ---------- inquiry form ---------- */
.inquiry { display: grid; gap: 1rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid #9aa7b6; border-radius: 3px; padding: 0.65rem 0.75rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--tie); outline-offset: 1px; border-color: var(--tie); }
.inquiry .btn { justify-self: start; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- hero fill (text column matches photo height on wide screens) ---------- */
@media (min-width: 1100px) {
  .hero h1 { font-size: clamp(3.25rem, 4.3vw, 4.2rem); }
  .hero-h1-role { font-size: clamp(1.4rem, 1.68vw, 1.65rem); margin-top: 0.85rem; }
  .hero h1 + .hero-goal { margin-top: 2.5rem; }
  .hero .hero-goal { font-size: clamp(1.4rem, 1.7vw, 1.6rem); max-width: 22em; line-height: 1.4; margin-bottom: 1.75rem; }
  .hero-sub { font-size: clamp(1.2rem, 1.4vw, 1.3rem); line-height: 1.75; margin-bottom: 2.75rem; }
  .hero .btn { min-height: 3.25rem; padding: 0 1.6rem; font-size: 1rem; }
  .hero-figure img { aspect-ratio: 20 / 23; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .hero h1 { font-size: clamp(2.8rem, 4.8vw, 3.3rem); }
  .hero-h1-role { font-size: clamp(1.25rem, 2vw, 1.4rem); margin-top: 0.7rem; }
  .hero h1 + .hero-goal { margin-top: 2.25rem; }
  .hero .hero-goal { font-size: clamp(1.25rem, 2vw, 1.4rem); line-height: 1.4; margin-bottom: 1.6rem; max-width: 19em; }
  .hero-sub { font-size: 1.12rem; line-height: 1.8; margin-bottom: 2.5rem; }
  .hero .btn { min-height: 3.1rem; }
  .hero-figure img { aspect-ratio: 20 / 23; }
}

/* ---------- profile title area: title level with top of photo ---------- */
@media (min-width: 821px) {
  .profile-head { align-items: start; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
  .profile-head > div { padding-bottom: 1.75rem; }
  .profile-head h1 { margin-top: -0.12em; font-size: clamp(2.6rem, 4.6vw, 3.6rem); }
  .profile-head > div > p { font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.6; max-width: 30em; }
  .profile-head h1 { margin-bottom: 1.5rem; }
  .profile-head .head-facts { margin-top: 3rem; }
  .profile-head .head-facts li { padding-top: 1.1rem; }
  .profile-head .head-facts li { font-size: 1.05rem; }
  .profile-portrait { align-self: start; }
  .profile-portrait img { aspect-ratio: 20 / 21; }
}

.facts strong { font-weight: 500; }
.facts span { display: block; }
.section--navy .more { margin-top: 2rem; }
.more--light a { color: var(--white); border-bottom-color: #4a5f80; }
.more--light a:hover { color: var(--white); border-bottom-color: var(--white); }
@media (min-width: 1001px) {
  .section--navy .facts { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .section--navy .facts li { padding: 0.25rem clamp(1rem, 2vw, 1.75rem); }
  .section--navy .facts li:first-child { padding-left: 0; }
  .section--navy .facts li:last-child { padding-right: 0; }
  .section--navy .facts strong { white-space: nowrap; font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
  .section--navy .facts span { max-width: 17rem; }
}

/* ---------- portrait beside a section heading (clinical focus) ---------- */
.side-portrait { margin: 1.5rem 0 0; max-width: 17rem; background: var(--portrait); }
.side-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
@media (max-width: 820px) { .side-portrait { max-width: 14rem; margin-top: 1rem; } }
.steps--large { font-size: 1.15rem; }
.steps--large li { margin-bottom: 0.9rem; padding-left: 0.4rem; }
.steps--large li::marker { font-size: 1.2rem; color: var(--ink); }

/* ================= phones: tighter, calmer layout ================= */
@media (max-width: 760px) {
  body { font-size: 1rem; line-height: 1.55; }
  .section { padding: 2.25rem 0; }
  .page-head { padding: 1.5rem 0 1.25rem; }
  .page-head--contact { padding-bottom: 2rem; }
  h1 { font-size: 2rem; line-height: 1.12; margin-bottom: 0.9rem; }
  h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
  h3 { font-size: 1.1rem; }
  .page-head p, .lede { font-size: 1.05rem; }
  .statement { font-size: 1.2rem; line-height: 1.45; }
  .split, .feature { gap: 0.5rem; }
  p { margin-bottom: 0.8rem; }

  /* home hero */
  .hero .wrap { --hero-top: 1.5rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-h1-role { font-size: 1.05rem; margin-top: 0.4rem; }
  .hero h1 + .hero-goal { margin-top: 1.1rem; font-size: 1.1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-text { padding-bottom: 0; }
  .hero-figure { max-width: 15rem; margin: 1.5rem 0 1.75rem; }
  .hero-figure img { aspect-ratio: 1 / 1; }
  .actions { gap: 0.6rem; }
  .hero .actions .btn { flex: 1 1 100%; }

  /* profile title */
  .profile-head { gap: 1rem; }
  .profile-head h1 { font-size: 2rem; }
  .head-facts { margin-top: 1.25rem; }
  .head-facts li { padding: 0.55rem 0; font-size: 0.95rem; }
  .profile-portrait { max-width: 12rem; }
  .profile-portrait img { aspect-ratio: 1 / 1; }

  /* lists and rows */
  .row-link { padding: 1.1rem 0.25rem; }
  .focus-list li { padding: 1.1rem 0; }
  .focus-list--links li { padding: 0; }
  .duo > div { padding-top: 1.1rem; }
  .duo > div + div { margin-top: 1.1rem; }
  .routes > div { padding: 1.1rem 0 0.25rem; }
  .facts li { padding-bottom: 0.8rem; }
  .more { margin-top: 0.9rem; }
  .section--navy .more { margin-top: 1.25rem; }
  .plain li { padding: 0.5rem 0; }

  /* research papers */
  .paper { padding: 1.75rem 0; gap: 1rem; }
  .paper-body h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
  .paper-facts { padding: 1rem; }
  .paper-facts dl { display: grid; grid-template-columns: 6rem 1fr; gap: 0.45rem 0.75rem; margin-bottom: 1rem; }
  .paper-facts dt { margin-top: 0; padding-top: 0.1rem; }
  .paper-facts dd { margin: 0; }
  .paper-index li { padding: 0.6rem 0; }

  /* tables become stacked entries */
  .table-wrap { overflow: visible; margin-bottom: 1.75rem; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; left: -9999px; }
  .table-wrap caption { display: block; font-size: 1.2rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--ink); }
  .table-wrap tr { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .table-wrap th, .table-wrap td { border: 0; padding: 0; }
  .table-wrap td.when { font-size: 0.88rem; margin-top: 0.15rem; }
  .table-wrap td.when:empty { display: none; }

  /* footer: two link columns side by side */
  .site-footer { padding: 2rem 0 1.5rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .site-footer .wrap > div:first-child, .site-footer .legal { grid-column: 1 / -1; }
}

/* ---------- phones: photos run the full text width, face first on home ---------- */
@media (max-width: 820px) {
  .hero .wrap { display: flex; flex-direction: column; gap: 0; }
  .hero-figure { order: -1; max-width: none; width: 100%; margin: 1.25rem 0 0; align-self: stretch; }
  .hero-figure img { aspect-ratio: 4 / 3; object-position: center top; }
  .hero .wrap { --hero-top: 1.25rem; }
  .hero-text { padding-bottom: 2rem; }
  .profile-portrait { max-width: none; width: 100%; }
  .profile-portrait img { aspect-ratio: 4 / 3; object-position: center top; }
}
