/* =========================================================
   Martina Hollearn — personal site
   Change the whole palette here.
   ========================================================= */
:root {
  --paper:  #EEE2CF;   /* main tan background */
  --sand:   #E3D1B7;   /* deeper tan for bands and placeholders */
  --linen:  #F6EDE0;   /* light tan for the form and cards */
  --umber:  #4F3728;   /* body text, warm brown */
  --walnut: #7C5C44;   /* secondary text */
  --line:   #CCB396;   /* hairlines and borders */
  --bark:   #3B291D;   /* buttons, headings */

  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --body: "Spectral", "Iowan Old Style", Georgia, serif;
  --script: "Alex Brush", "Brush Script MT", cursive;

  --soft: 24px;        /* soft photo corners */
  --soft-sm: 16px;
  --gap: clamp(18px, 2.6vw, 34px);
  --page: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--umber);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--bark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--walnut); }
:focus-visible { outline: 2px solid var(--bark); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--bark); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.3rem; line-height: 1.6; color: var(--walnut); font-weight: 300; }

/* placeholder text markers */
.blank {
  display: inline-block;
  color: var(--walnut);
  background: rgba(124, 92, 68, .10);
  border-radius: 6px;
  padding: 0 .4em;
  font-style: italic;
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--bark); color: var(--linen); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---------------- header & tabs ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(238, 226, 207, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--page); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
}
.wordmark { font-family: var(--script); font-size: 2.1rem; color: var(--bark); text-decoration: none; line-height: 1; }
.tabs { list-style: none; display: flex; gap: clamp(14px, 2.4vw, 34px); margin: 0; padding: 0; }
.tabs a {
  font-family: var(--display); font-size: 1.05rem; color: var(--umber);
  text-decoration: none; padding: 6px 2px; position: relative;
}
.tabs a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: var(--bark); transform: scaleX(0); transition: transform .2s ease;
}
.tabs a:hover::after, .tabs a[aria-current="page"]::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: var(--bark); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.3rem; color: var(--bark); padding: 4px 12px; cursor: pointer; }

/* ---------------- layout shell ---------------- */
main { max-width: var(--page); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) clamp(60px, 8vw, 110px); }
.page-head { padding: clamp(48px, 7vw, 96px) 0 0; }
.page-head .lede { text-align: center; max-width: none; margin-left: auto; margin-right: auto; }

/* ---------------- buttons ---------------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.btn {
  display: inline-block; font-family: var(--display); font-size: 1.05rem;
  background: var(--bark); color: var(--linen); text-decoration: none;
  padding: 13px 28px; border-radius: 999px; border: 1px solid var(--bark); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--walnut); border-color: var(--walnut); color: var(--linen); }
.btn--quiet { background: transparent; color: var(--bark); }
.btn--quiet:hover { background: var(--bark); color: var(--linen); }

/* ---------------- soft-edged photos ---------------- */
.shot { margin: 0; position: relative; border-radius: var(--soft); overflow: hidden; background: var(--sand); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.block .shot img, .split-photo img, .vol-panel-photo img, .vol-panel-photo-stack .shot img { position: absolute; inset: 0; }
.shot.missing { display: flex; align-items: center; justify-content: center; }
.shot.missing img { display: none; }
.ph-label {
  font-family: var(--body); font-size: .85rem; font-style: italic; color: var(--walnut);
  padding: 10px 14px; text-align: center; word-break: break-word;
}
.shot.missing::before {
  content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line); border-radius: inherit;
}

/* ---------------- welcome page: full photo, intro below ---------------- */
.welcome {
  display: grid; grid-template-columns: 6fr 6fr; gap: clamp(28px, 5vw, 64px);
  align-items: start; padding-top: clamp(40px, 6vw, 80px);
}
.welcome-photos { display: grid; gap: clamp(20px, 2.6vw, 32px); }
/* shown whole, never cropped */
.welcome-photo { margin: 0; }
.welcome-photo img { width: 100%; height: auto; border-radius: var(--soft); background: var(--sand); }
.welcome-photo .caption { text-align: center; }
.welcome-text h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin-bottom: .2em; }
.welcome-text .lede { margin-bottom: 1.4em; max-width: none; }
.welcome-text p { max-width: none; }
@media (max-width: 780px) { .welcome { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .welcome-photo, .welcome-text { animation: rise .9s ease both; }
  .welcome-text { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------------- collage blocks ---------------- */
.block {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap); margin-top: clamp(56px, 8vw, 104px);
}
.block > .a { grid-area: a; } .block > .b { grid-area: b; } .block > .c { grid-area: c; } .block > .d { grid-area: d; }
.note { align-self: center; }
.note.centered { text-align: center; }
.note.centered p { margin-left: auto; margin-right: auto; }

.block--portrait {
  grid-template-areas:
    "a a a a a b b b b b b b"
    "a a a a a c c c d d d d";
}
.block--portrait .a { min-height: 580px; }
.block--portrait .b { align-self: end; padding-top: 20px; }
.block--portrait .c { min-height: 280px; }

.block--wide {
  grid-template-areas:
    "a a a a b b b b b b b b"
    "c c c c b b b b b b b b";
}
.block--wide .a { align-self: end; }
.block--wide .b { min-height: 540px; }
.block--wide .c { min-height: 250px; }

.block--triptych {
  grid-template-areas:
    "a a a a b b b b c c c c"
    "a a a a d d d d c c c c";
}
.block--triptych .a { min-height: 500px; }
.block--triptych .c { min-height: 440px; margin-top: 72px; }
.block--triptych .d { min-height: 240px; }
.block--triptych .b { align-self: start; padding-top: 10px; }

.block--band { grid-template-areas: "a a a b b b b b b c c c"; align-items: center; }
.block--band .a { min-height: 400px; }
.block--band .c { min-height: 290px; align-self: end; }

.block--offset {
  grid-template-areas:
    "a a a a a a a . b b b b"
    "a a a a a a a . c c c c";
}
.block--offset .a { min-height: 480px; border-radius: var(--soft) 140px var(--soft) var(--soft); }
.block--offset .b { align-self: end; }
.block--offset .c { align-self: start; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------------- volunteering: bubble tabs ---------------- */
.vol-tabs { margin-top: clamp(24px, 4vw, 40px); }
.vol-bubble-row { display: flex; justify-content: center; flex-wrap: nowrap; gap: clamp(16px, 3vw, 40px); }
.vol-bubble {
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font: inherit; color: var(--umber); width: 190px; flex: 0 0 auto;
}
.bubble-photo {
  width: 170px; height: 170px; border-radius: 50%; overflow: hidden;
  border: 4px solid transparent; transition: border-color .2s ease, transform .2s ease;
  background: var(--sand);
}
.bubble-photo img { width: 100%; height: 100%; object-fit: cover; }
.bubble-logo img { object-fit: contain; padding: 18%; }
.vol-bubble:hover .bubble-photo { transform: scale(1.05); }
.vol-bubble[aria-selected="true"] .bubble-photo { border-color: var(--bark); }
.bubble-label { font-family: var(--display); font-size: 1.1rem; text-align: center; color: var(--bark); line-height: 1.25; }

.vol-panel {
  margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
.vol-panel[hidden] { display: none; }
.vol-panel-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.vol-panel-head { max-width: 800px; }

.vol-panel-head--split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 56px); align-items: start; max-width: none; }
.vol-panel-photo-wrap { display: grid; gap: 12px; align-self: stretch; }
.vol-panel-photo { min-height: 340px; align-self: stretch; }
/* natural variant: shown whole, and only as tall as the photo itself */
.vol-panel-photo--natural { min-height: 0; align-self: start; }
.vol-panel-photo--natural img { position: static; width: 100%; height: auto; object-fit: initial; }
.vol-panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); margin-bottom: .5em; }
.vol-panel-title h2 { margin-bottom: 0; }
.vol-panel-photo-stack { display: grid; gap: 16px; align-self: stretch; }
.vol-panel-photo-stack .shot { min-height: 260px; }
.photo-caption { text-align: center; margin: 0; font-size: .95rem; color: var(--walnut); }

.sub-head { margin-top: clamp(40px, 6vw, 64px); }

.pair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: clamp(28px, 4vw, 44px); margin-top: clamp(24px, 3vw, 36px); }
.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair-photos .shot { aspect-ratio: 4 / 5; border-radius: var(--soft-sm); }
.pair .caption { text-align: center; margin: 14px 0 0; font-size: 1.1rem; }

.scroll-gallery {
  display: flex; gap: var(--gap); overflow-x: auto; padding: 8px 4px 20px;
  margin-top: clamp(28px, 4vw, 44px); scroll-snap-type: x proximity;
}
.scroll-gallery .shot { flex: 0 0 auto; width: 340px; height: 420px; scroll-snap-align: start; }
.scroll-gallery::-webkit-scrollbar { height: 8px; }
.scroll-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.scroll-gallery--small .shot { width: 190px; height: 240px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: clamp(28px, 4vw, 40px); margin-top: clamp(24px, 3vw, 36px); }
.video-tile { margin: 0; display: flex; flex-direction: column; }
/* every clip sits in an identical 16:9 frame so the tiles stay the same size */
.video-tile video {
  width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: contain;
  border-radius: var(--soft); background: #000;
}
.video-tile .caption { text-align: center; margin: 12px 0 0; font-size: 1.05rem; }

/* ---------------- outreach: collaborating organizations ---------------- */
.org-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.6vw, 32px); margin-top: clamp(24px, 3vw, 36px);
}
.org-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px;
  text-decoration: none; color: var(--umber); text-align: center;
  padding: 20px 14px; border-radius: var(--soft-sm);
  transition: background .2s ease, transform .2s ease;
}
.org-tile:hover { background: var(--linen); transform: translateY(-3px); color: var(--umber); }
/* a wide tile rather than a circle: these logos are a mix of wordmarks and seals */
.org-logo {
  width: 100%; max-width: 180px; height: 120px;
  border-radius: var(--soft-sm); background: #fff;
  border: 1px solid var(--line); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
/* fallback mark for organizations without a usable logo file */
.org-logo--type {
  font-family: var(--display); font-size: 1.5rem; line-height: 1.15;
  color: var(--bark); background: var(--sand); border-color: var(--sand);
}
.org-tile .org-name { font-family: var(--display); font-size: 1rem; line-height: 1.3; margin: 0; }
@media (max-width: 980px) { .org-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .org-grid { grid-template-columns: repeat(2, 1fr); } .org-logo { height: 96px; } }

.wildlife-note { margin-top: clamp(28px, 4vw, 40px); background: var(--sand); border-radius: var(--soft); padding: clamp(28px, 4.5vw, 48px); }
.wildlife-note .actions { margin-top: 1.2em; }

@media (max-width: 780px) {
  .vol-bubble-row { flex-wrap: wrap; }
  .vol-bubble { width: 130px; }
  .bubble-photo { width: 110px; height: 110px; }
  .vol-panel-head--split { grid-template-columns: 1fr; }
  .vol-panel-photo { min-height: 260px; }
  .pair-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .scroll-gallery .shot { width: 250px; height: 320px; }
  .scroll-gallery--small .shot { width: 160px; height: 200px; }
}

/* ---------------- about / research: split sections ---------------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 8vw, 104px); }
.split.reverse { grid-template-columns: 7fr 5fr; }
.split.reverse .split-photo { order: 2; }
/* top-aligned variant: the heading lines up with the top of the photo */
.split--top { align-items: start; }
.split-photo { min-height: 380px; }
@media (max-width: 780px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-photo { order: 0; }
  .split-photo { min-height: 280px; }
}

.conf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: clamp(28px, 4vw, 40px); }
.conf-gallery .shot { aspect-ratio: 4 / 3; }
.conf-gallery .caption { text-align: center; margin: 12px 4px 0; font-size: 1rem; color: var(--walnut); }
@media (max-width: 780px) { .conf-gallery { grid-template-columns: 1fr; } }

.split-photo--natural { min-height: 0; }
.split-photo--natural img { position: static; width: 100%; height: auto; object-fit: initial; }
.split-photo-caption { text-align: center; margin: 12px 0 0; font-size: .95rem; color: var(--walnut); }

.poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: clamp(24px, 3vw, 36px); }
/* every poster gets the same frame, the same blocks, and a bottom-aligned link row */
.poster-item { display: flex; flex-direction: column; }
.poster-grid .shot { border: 1px solid var(--line); background: var(--linen); aspect-ratio: 4 / 3; }
.poster-grid .shot img { width: 100%; height: 100%; object-fit: contain; }
.poster-grid h4 { font-family: var(--display); font-weight: 400; color: var(--bark); margin: 14px 0 .4em; font-size: 1.05rem; }
.poster-grid p { margin: 0 0 .5em; font-size: .9rem; color: var(--walnut); max-width: none; }
.poster-item .poster-blurb { flex: 1 1 auto; }
.poster-item .poster-meta { margin: 0; }
@media (max-width: 780px) { .poster-grid { grid-template-columns: 1fr; } }

.scholar-link { margin-top: 20px; }
.pub-inreview { margin-top: 4px; font-size: .95rem; color: var(--walnut); max-width: none; }

/* ---------------- research: selected publications ---------------- */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: clamp(28px, 4vw, 40px); }
.pub-card {
  background: var(--linen); border-radius: var(--soft);
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column;
}
/* fixed height so all three figures frame up identically, whatever their shape */
.pub-figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--soft-sm);
  height: clamp(240px, 24vw, 300px); flex: 0 0 auto; overflow: hidden;
  padding: 12px; margin: 0;
}
.pub-figure img { width: 100%; height: 100%; object-fit: contain; }
.pub-doi { margin: 14px 0 0; font-size: .9rem; word-break: break-word; }
.pub-card h3 { font-size: 1.2rem; margin: 14px 0 .4em; }
.pub-card .pub-cite { font-size: .9rem; font-style: italic; color: var(--walnut); margin: 0 0 .8em; }
.pub-card p { max-width: none; }
.pub-card .pub-body { font-size: .98rem; margin: 0; }
@media (max-width: 980px) { .pub-grid { grid-template-columns: 1fr; } }

.teach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 40px); margin-top: clamp(24px, 3vw, 36px); }
.teach-grid h3 { margin-bottom: .2em; }
.teach-grid .org-sub { display: block; margin-bottom: .8em; font-size: .95rem; font-style: italic; color: var(--walnut); }
.course-list { margin: 0; padding-left: 1.2em; }
.course-list li { margin-bottom: .5em; }

.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 24px); margin-top: clamp(20px, 3vw, 32px); }
.quote-card { margin: 0; background: var(--sand); border-radius: var(--soft); padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; }
.quote-card p { font-style: italic; color: var(--umber); margin: 0 0 .8em; font-size: .98rem; max-width: none; flex: 1 1 auto; }
.quote-card p:last-of-type { margin-bottom: 0; }
.quote-card cite { display: block; font-style: normal; font-family: var(--display); color: var(--walnut); margin-top: .8em; font-size: .72rem; line-height: 1.35; }

@media (max-width: 1000px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) {
  .teach-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
}

/* ---------------- about: each photo sits beside the paragraph it belongs to ---------------- */
.about-intro { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: clamp(28px, 4vw, 44px); }
.about-row { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.about-row p { max-width: none; margin: 0; }
.about-photo img { width: 100%; height: auto; }
@media (max-width: 780px) {
  .about-row { grid-template-columns: 1fr; }
}

/* two matching download buttons, no surrounding band */
.cta-buttons { margin-top: clamp(48px, 7vw, 88px); display: flex; justify-content: center; }
.cta-buttons .actions { margin-top: 0; justify-content: center; }

/* ---------------- about / research extras ---------------- */
.cta-row, .visit {
  margin-top: clamp(56px, 8vw, 104px); padding: clamp(32px, 5vw, 56px);
  background: var(--sand); border-radius: var(--soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-row p, .visit p { margin: 0; font-size: 1.2rem; }
.visit .actions, .cta-row .actions { margin-top: 0; }

.list-section { margin-top: clamp(56px, 8vw, 104px); max-width: 820px; }
.list-section--wide { max-width: none; }
.pubs { padding-left: 1.3em; margin: 0; }
.pubs li { padding: 14px 0 14px 8px; border-bottom: 1px solid var(--line); }
.pubs li::marker { font-family: var(--display); color: var(--walnut); }

/* ---------------- artwork gallery ---------------- */
.gallery { columns: 3 300px; column-gap: var(--gap); margin-top: clamp(44px, 6vw, 72px); }
.tile { break-inside: avoid; margin-bottom: var(--gap); }
.gallery .shot img { height: auto; }
.gallery .shot.missing { aspect-ratio: var(--ratio, 4/5); }
.caption { font-size: 1rem; margin: 10px 4px 0; color: var(--walnut); }
.tile--note { background: var(--sand); border-radius: var(--soft); padding: 28px 30px; }

/* ---------------- artwork: art show strip ---------------- */
.art-show-section { margin-top: clamp(56px, 8vw, 104px); }
.art-show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: clamp(24px, 3vw, 36px); }
.art-show-grid .shot { min-height: 420px; }
@media (max-width: 780px) { .art-show-grid { grid-template-columns: 1fr; } .art-show-grid .shot { min-height: 300px; } }

/* ---------------- artwork: purchase CTA + wildlife center strip ---------------- */
.purchase-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: clamp(56px, 8vw, 96px); }
.wcsl-strip {
  margin-top: clamp(28px, 4vw, 40px); padding: clamp(24px, 4vw, 36px);
  background: var(--sand); border-radius: var(--soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 32px);
  text-align: center;
}
.wcsl-link { display: block; }
.wcsl-link img { height: 64px; width: auto; }
.wcsl-strip p { margin: 0; font-size: 1.05rem; }
.details .sep { display: inline-block; width: 1px; height: .9em; background: var(--line); margin: 0 12px; vertical-align: middle; }

/* ---------------- business extras ---------------- */
.logo-card { background: var(--linen); }
.logo-card img { object-fit: contain !important; padding: 12%; }

.biz-hero { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.biz-hero .note { align-self: start; }
.biz-sub { margin-top: 1.4em; }
.biz-logo { min-height: 420px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 40px); }
.product-tile .caption { text-align: center; font-family: var(--display); font-size: 1.1rem; color: var(--bark); margin-top: 10px; }

@media (max-width: 780px) {
  .biz-hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

.trio {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px);
}
.trio .note { align-self: start; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------------- contact ---------------- */
.contact {
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(48px, 7vw, 96px); align-items: start;
}
.details { margin: 24px 0 32px; display: grid; gap: 14px; }
.details div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.details dt { font-family: var(--display); color: var(--bark); }
.details dd { margin: 0; }
.contact-form {
  background: var(--linen); border-radius: var(--soft); padding: clamp(26px, 4vw, 44px);
  display: grid; gap: 18px; position: sticky; top: 100px;
}
.contact-form label { display: grid; gap: 6px; font-family: var(--display); color: var(--bark); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 780px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea {
  font: inherit; font-family: var(--body); color: var(--umber);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--walnut); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.hidden-field { position: absolute; left: -9999px; }
.thanks { min-height: 50vh; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--sand); }
.foot-inner {
  max-width: var(--page); margin: 0 auto; padding: 40px clamp(20px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.foot-contact { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); margin: 0; padding: 0; }
.foot-contact a { text-decoration: none; font-family: var(--display); font-size: 1.05rem; }
.foot-contact a:hover { text-decoration: underline; }
.copy { margin: 0; font-size: .95rem; color: var(--walnut); text-align: right; }

/* ---------------- tablet ---------------- */
@media (max-width: 1000px) {
  .trio { grid-template-columns: 1fr; }
}

/* ---------------- mobile ---------------- */
@media (max-width: 780px) {
  body { font-size: 1.05rem; }
  .menu-btn { display: block; }
  .site-header nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .site-header nav.open { display: block; }
  .tabs { flex-direction: column; gap: 0; padding: 8px clamp(20px, 4vw, 40px) 18px; }
  .tabs a { display: block; padding: 12px 0; }
  .tabs a::after { bottom: 6px; right: auto; width: 40px; }

  .foot-inner { justify-content: flex-start; }
  .copy { text-align: left; }

  .block { grid-template-columns: 1fr; grid-template-areas: none !important; }
  .block > * { grid-area: auto !important; }
  .block .shot { min-height: 300px !important; margin-top: 0 !important; }
  .block--band .note.centered { text-align: left; }

  .contact { grid-template-columns: 1fr; }
  .contact-form { position: static; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .dedication { grid-template-columns: 1fr; }
  .dedication-about { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

/* small partner logo under a panel subtitle */
.org-badge { display: inline-block; margin: 0; }
.org-badge img { width: auto; max-width: 240px; height: 76px; object-fit: contain; }

/* ---------------- research page: narrative photos (research.html only) ---------------- */
/* the photo column stretches to the text and spreads its photos evenly down it */
.research-photo-col {
  display: grid; align-self: stretch;
  align-content: space-between; gap: clamp(32px, 4.5vw, 64px);
}
.research-shot { margin: 0; }
.research-shot img { width: 100%; height: auto; border-radius: var(--soft); background: var(--sand); }
.research-shot figcaption { text-align: center; margin: 10px 2px 0; font-size: .95rem; color: var(--walnut); }
@media (max-width: 780px) {
  .research-photo-col { align-content: start; gap: clamp(24px, 4vw, 34px); }
}
/* at full page width the layout is fixed, so each photo is pinned to the
   passage it belongs to: 1st with the opening paragraph, 2nd where that
   paragraph ends, 4th two lines above the closing paragraph */
@media (min-width: 1180px) {
  .research-photo-col { align-content: start; gap: 0; }
  .research-photo-col .research-shot:nth-child(1) { margin-top: 63px; }
  .research-photo-col .research-shot:nth-child(2) { margin-top: 440px; }
  .research-photo-col .research-shot:nth-child(3) { margin-top: 441px; }
  .research-photo-col .research-shot:nth-child(4) { margin-top: 441px; }
}
