/* styles.css — shared by index.html and research.html
   Hand-written CSS (no frameworks). Clean, light, editorial. */

:root{
  --bg: #f6f7fb;
  --bg-alt: #eceff7;
  --ink: #232838;
  --muted: #565e72;
  --faint: #8791a6;
  --accent: #5566c9;
  --accent-dark: #4254b0;
  --border: #e2e6f0;
  --border-strong: #d2d8e8;
  --card: #ffffff;
  --pastel-pink: #f3c9d9;
  --pastel-mint: #c2e4d8;
  --pastel-lavender: #d6cff1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% -5%, rgba(186,196,255,0.35), transparent 55%),
    radial-gradient(800px 420px at 88% 0%, rgba(255,219,233,0.30), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(196,233,222,0.28), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container{
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

a{ color: var(--accent-dark); text-decoration: none; }
a:hover{ text-decoration: underline; }

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,247,251,0.90);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand{
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover{ text-decoration: none; color: var(--accent-dark); }

.site-nav{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.nav-link{
  font-size: 14px;
  color: var(--muted);
  padding: 2px 0;
}
.nav-link:hover{ color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"]{
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

/* ---------- Nav dropdown ---------- */
.nav-dropdown{ position: relative; display: inline-flex; }

.nav-toggle{
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-toggle:hover{ color: var(--ink); }
.nav-toggle .caret{ font-size: 10px; line-height: 1; }

.nav-dropdown.is-current .nav-toggle{
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.dropdown-menu{
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 260px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(28,27,23,0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}

/* invisible bridge so the menu survives the gap on hover */
.dropdown-menu::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: -10px;
  height: 10px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a{
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.dropdown-menu a:hover{ background: var(--bg-alt); text-decoration: none; }

@media (max-width: 560px){
  .dropdown-menu{ min-width: 220px; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 700px){
  .hero-grid{ grid-template-columns: 1fr 190px; gap: 40px; }
}

.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.status-dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #2e7d4f;
  flex: none;
}

.hero-title{
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  font-weight: 700;
}

@media (min-width: 700px){
  .hero-title{ font-size: 54px; }
}

.hero-subtitle{
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.hero-blurb{
  margin: 14px 0 0;
  max-width: 600px;
  color: var(--muted);
}
.hero-blurb strong{ color: var(--ink); }

.hero-cta{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portrait-col{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-self: center;
}

@media (min-width: 700px){
  .portrait-col{ justify-self: end; }
}

.portrait{
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(28,27,23,0.10);
}

@media (min-width: 700px){
  .portrait{ width: 190px; height: 190px; }
}

.portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-icons{
  display: flex;
  gap: 10px;
}

.social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.social-icon:hover{
  color: var(--ink);
  border-color: var(--ink);
}

.social-icon svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink);
  transition: background 140ms ease, border-color 140ms ease;
}
.btn:hover{ text-decoration: none; border-color: var(--faint); background: var(--bg-alt); }

.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover{ background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Stat strip ---------- */
.stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 36px 0 0;
}

@media (min-width: 700px){
  .stats{ grid-template-columns: repeat(4, 1fr); }
}

.stat{
  background: var(--card);
  padding: 16px 18px;
}

.stat-value{
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-label{
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Sections ---------- */
.section{ padding: 44px 0 8px; }

.section-title{
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}

.section-intro{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 640px;
}

.section-foot{
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Pillars ---------- */
.pillars{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 700px){
  .pillars{ grid-template-columns: repeat(3, 1fr); }
}

.pillar{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  border-top: 4px solid var(--pastel-lavender);
}

.pillar:nth-child(1){ border-top-color: var(--pastel-pink); }
.pillar:nth-child(2){ border-top-color: var(--pastel-mint); }
.pillar:nth-child(3){ border-top-color: var(--pastel-lavender); }

.pillar:nth-child(1) .kicker{ color: #b35c83; }
.pillar:nth-child(2) .kicker{ color: #2f8273; }
.pillar:nth-child(3) .kicker{ color: #7461c2; }

.pillar h3{
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.pillar p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.pillar .kicker{
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---------- Experience timeline ---------- */
.timeline{
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border-strong);
}

.timeline li{
  position: relative;
  padding: 0 0 26px 24px;
}

.timeline li:last-child{ padding-bottom: 4px; }

.timeline li::before{
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.role-head{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.role-title{
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.role-dates{
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
}

.role-org{
  margin: 2px 0 6px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.role-desc{
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 660px;
}

.role-desc + .role-desc{ margin-top: 6px; }

/* ---------- Publications ---------- */
.pub-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li{
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.pub-list li:first-child{ padding-top: 4px; }

.pub-title{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.pub-meta{
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.pub-meta em{ font-style: italic; }

.badge{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(85,102,201,0.08);
  border: 1px solid rgba(85,102,201,0.25);
  border-radius: 6px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---------- Compact two-column blocks (awards / education) ---------- */
.two-col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 700px){
  .two-col{ grid-template-columns: 1fr 1fr; gap: 18px; }
}

.plain-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li{
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.plain-list li:last-child{ border-bottom: 0; }

.plain-list .when{
  color: var(--faint);
  font-size: 13px;
  margin-left: 8px;
  white-space: nowrap;
}

.plain-list .detail{
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Projects (research page) ---------- */
.project{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin: 0 0 16px;
  border-left: 4px solid var(--pastel-lavender);
}

.project:nth-of-type(3n+1){ border-left-color: var(--pastel-pink); }
.project:nth-of-type(3n+2){ border-left-color: var(--pastel-mint); }
.project:nth-of-type(3n){ border-left-color: var(--pastel-lavender); }

.project h3{
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.project .project-venue{
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--faint);
}

.project p{
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.project p:last-child{ margin-bottom: 0; }

.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag{
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Contact ---------- */
.contact-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  margin-top: 4px;
}

.contact-card p{ margin: 0 0 14px; color: var(--muted); max-width: 560px; }

.contact-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Footer ---------- */
.footer{
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  font-size: 13.5px;
  color: var(--faint);
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.footer-links a{ color: var(--muted); }

/* ---------- Article (long-form) ---------- */
.article-wrap{ max-width: 720px; }
.article-page .site-header .container{ max-width: 720px; }

.article-head{
  padding: 48px 0 26px;
  border-bottom: 1px solid var(--border);
}

.article-kicker{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 10px;
}

.article-title{
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

@media (min-width: 700px){
  .article-title{ font-size: 42px; }
}

.article-byline{
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--faint);
}
.article-byline strong{ color: var(--ink); font-weight: 600; }
.article-byline .sep{ margin: 0 8px; }

.article-actions{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-body{
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.72;
  color: #2a2f40;
  padding-bottom: 8px;
}

.article-body p{ margin: 0 0 20px; }

.article-body h2{
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 44px 0 14px;
  scroll-margin-top: 90px;
}

.article-body h3{
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  scroll-margin-top: 90px;
}

.article-body a{ text-decoration: underline; text-underline-offset: 2px; }

.abstract{
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--pastel-lavender);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0 34px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
}
.abstract p{ margin: 0; }
.abstract .label{
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Table of contents */
.toc{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 36px;
  font-family: var(--sans);
}
.toc h2{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 10px;
}
.toc ol{
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.5;
}
.toc li{ margin: 6px 0; }
.toc a{ color: var(--muted); text-decoration: none; }
.toc a:hover{ color: var(--accent-dark); text-decoration: underline; }

/* Wide screens: the article column stays centered; the contents float in the
   right margin, small and hidden until the pointer (or keyboard focus)
   reaches it. */
@media (min-width: 1180px){
  .article-wrap > .toc{
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 240px;
    margin: 0;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 10px 28px rgba(28,27,23,0.10);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 160ms ease;
  }
  .article-wrap > .toc:hover,
  .article-wrap > .toc:focus-within{ opacity: 1; }

  .article-wrap > .toc h2{ margin-bottom: 8px; }
  .article-wrap > .toc ol{
    padding-left: 0;
    list-style: none;
    font-size: 12.5px;
    line-height: 1.4;
  }
  .article-wrap > .toc li{ margin: 0; }
  .article-wrap > .toc a{
    display: block;
    padding: 5px 0;
    color: var(--faint);
  }
  .article-wrap > .toc a:hover{ color: var(--accent-dark); text-decoration: none; }
  .article-wrap > .toc a.is-active{ color: var(--muted); font-weight: 600; }
}

/* Transcript / specimen boxes */
.specimen{
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 26px 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.specimen p{ margin: 0 0 12px; }
.specimen p:last-child{ margin-bottom: 0; }
.specimen .speaker{
  font-weight: 700;
  color: var(--muted);
}
.specimen .quote{
  border-left: 3px solid var(--pastel-mint);
  padding-left: 14px;
  color: #333a4d;
}
.specimen .turn{
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
}
.specimen .note{
  font-size: 13px;
  color: var(--faint);
  line-height: 1.5;
}
.specimen .display{
  text-align: center;
  margin: 10px 0;
}

/* Figures */
.article-body figure{
  margin: 32px 0;
}
.article-body figure img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.article-body figcaption{
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--faint);
}
.article-body figcaption strong{ color: var(--muted); }

/* Key-numbers strip */
.keynums{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
  font-family: var(--sans);
}
@media (min-width: 700px){
  .keynums{ grid-template-columns: repeat(4, 1fr); }
}
.keynums div{ background: var(--card); padding: 14px 16px; }
.keynums .n{
  font-family: var(--serif);
  font-size: 18px;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.keynums .l{
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
}

/* Data table */
.table-scroll{
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.data-table{
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-size: 13.5px;
  min-width: 620px;
}
.data-table th, .data-table td{
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  white-space: nowrap;
}
.data-table tbody tr:last-child td{ border-bottom: 0; }
.data-table td.num{ white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.data-table .verdict{ color: var(--muted); }

.article-body ul.tight{
  margin: 0 0 20px;
  padding-left: 22px;
}
.article-body ul.tight li{ margin: 6px 0; }

/* ---------- Citations and references ---------- */
.cite{
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 600;
  line-height: 0;
  white-space: nowrap;
  margin-left: 1px;
}
.cite a{
  color: var(--accent-dark);
  text-decoration: none;
}
.cite a:hover{ text-decoration: underline; }
.cite::before{ content: "["; color: var(--faint); }
.cite::after{ content: "]"; color: var(--faint); }

.references{
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  padding-left: 26px;
  margin: 0 0 26px;
}
.references li{
  margin: 0 0 10px;
  padding-left: 4px;
}
.references li:target{
  background: var(--bg-alt);
  border-radius: 6px;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.references a{ text-decoration: underline; text-underline-offset: 2px; }
.references code{ font-size: 12.5px; }

.appendix-note{
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 26px 0;
}
.appendix-note p{ margin: 0 0 10px; }
.appendix-note p:last-child{ margin: 0; }

/* ---------- Article splash art (LessWrong-style banner) ----------
   Markup: .article-hero > img.article-hero-art + .article-hero-inner > .article-head */
.article-page{ overflow-x: hidden; }

.article-hero{
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 0;
  border-bottom: 0;
  overflow: hidden;
  background-color: var(--art-cream, #faf5ec);
}

.article-hero-art{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  pointer-events: none;
}

/* Cream veil: art reads clearly up top, text sits on near-solid paper below,
   and the whole banner dissolves into the page background. */
.article-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(250,245,236,0.34) 0%,
      rgba(250,245,236,0.10) 45%,
      rgba(250,245,236,0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(250,245,236,0.08) 0%,
      rgba(250,245,236,0.28) 30%,
      rgba(250,245,236,0.84) 56%,
      rgba(250,245,236,0.97) 76%,
      var(--bg) 100%
    );
}

.article-hero-inner{
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(160px, 27vw, 340px) 20px 34px;
}

.article-page .article-hero + .article-body{ padding-top: 6px; }
.article-page .article-hero + .article-wrap{ padding-top: 6px; }

.article-hero .article-head{
  padding: 0;
  border-bottom: 0;
}

.article-hero .article-title{
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
}

.article-hero .article-kicker{
  color: var(--accent-dark);
}

.article-hero .article-byline{ color: var(--muted); }

.article-hero .btn{
  background: rgba(255,255,255,0.82);
  border-color: rgba(35,40,56,0.18);
  backdrop-filter: saturate(140%) blur(2px);
}
.article-hero .btn:hover{ background: #fff; }

@media (max-width: 640px){
  .article-hero-art{ object-position: 64% 32%; }
  .article-hero-inner{ padding-top: 180px; }
}

@media print{
  .article-hero-art, .article-hero::after{ display: none; }
  .article-hero-inner{ padding-top: 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}

@media print{
  .site-header, .hero-cta, .contact-links{ display: none; }
}
