/* Soil Systems Lab — shared styles. Plain CSS, no build step. */

/* Fonts are served from the site itself (no requests to Google). Geist and Geist Mono are variable
   fonts under the SIL Open Font License (assets/fonts/OFL.txt); one file covers all weights. */
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f5f5f2;
  --paper-2: #e8eae5;
  --card: #ffffff;
  --ink: #1a1d1c;
  --ink-2: #3e4442;
  --muted: #59605d;
  --line: #dfe2dc;
  --line-2: #cdd1ca;
  /* one accent, taken from the lab's micrographs (highlights, banners, hover) */
  --accent: #1f5f5a;
  /* buttons: a near-black with a hint of the teal, so actions stay neutral */
  --action: #22312e;
  --teal: #1f5f5a;
  --teal-bg: #e3eeec;

  --radius: 16px;
  --radius-sm: 12px;
  --wrap: 1320px;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.inset { padding: 0 28px; }
@media (max-width: 640px) {
  .inset { padding: 0 4px; }
  .panel .inset { padding: 0 20px; }
}
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 20px; color: var(--ink-2); max-width: 680px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-sm { padding-top: 56px; padding-bottom: 56px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr)); }
.h-hero { font-size: clamp(40px, 5.2vw, 68px); line-height: 1; letter-spacing: -0.035em; }
.h-xl { font-size: clamp(48px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(36px, 4.4vw, 52px); }
.h-md { font-size: clamp(28px, 3vw, 38px); }
.h-sm { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }

/* ---------- navigation ---------- */
.nav {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 10px 10px 10px 22px;
  background: rgba(245, 245, 242, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.nav-brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand span { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-brand small { font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); }
.nav-links a { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.nav-links a:hover { background: rgba(31, 95, 90, 0.08); color: var(--teal); }
.nav-links a[aria-current="page"] { color: var(--teal); background: var(--teal-bg); font-weight: 600; }
.nav-links a.nav-cta { background: var(--action); color: #fff; }
.nav-links a.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-menu { display: none; }

@media (max-width: 940px) {
  .nav { padding: 8px 8px 8px 18px; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding: 6px 0 4px; }
  .nav-menu {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
    background: var(--paper-2); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; }
}


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-dark { background: var(--action); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- sticky site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  padding: 10px 0;
  background: rgba(245, 245, 242, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20, 24, 22, 0.05); }
.site-header .nav { background: transparent; border: 0; padding: 2px 0 2px 8px; }

/* ---------- home hero: five image panels + title card ---------- */
.hero-stage { padding-top: 6px; }
.hero2 {
  --p: 0;
  --w0: calc(100% - 56px);            /* landing: nearly full width with slim margins; scrolling removes them */
  position: relative; overflow: hidden; background: var(--paper);
  width: calc(var(--w0) + (100% - var(--w0)) * var(--p));
  margin: 0 auto;
  border-radius: calc(var(--radius) * (1 - var(--p)));
  transition: width .35s cubic-bezier(.25, .8, .25, 1), border-radius .35s ease;
  /* leave room for the next heading to peek in at the bottom of the first screen */
  height: max(420px, calc(100vh - 190px)); height: max(420px, calc(100svh - 190px));
}
.hero-panels { position: absolute; inset: 0; display: flex; gap: 4px; }
.hero-panels figure { flex: 1 1 0; min-width: 0; margin: 0; position: relative; overflow: hidden; background: #1a1d1c; }
.hero-panels img { width: 100%; height: 100%; object-fit: cover; }
.hero-panels span {
  position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: -0.02em; white-space: nowrap; color: #fff; background: rgba(0, 0, 0, 0.5);
}
.hero-panels em { font-style: normal; display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden;
  transition: max-width .45s ease, opacity .35s ease; }
@media (max-width: 1180px) { .hero-panels em { max-width: 0; opacity: 0; } }
.teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; } }
.hero-panels figure:nth-child(2) { background: #1e2426; }
.hero-panels figure:nth-child(3) { background: #efebe4; }
.hero-card {
  position: absolute; left: 24px; bottom: 24px; max-width: calc(100% - 48px);
  padding: 16px 28px 17px; border-radius: var(--radius);
  background: rgba(250, 250, 248, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.hero-title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }
.hero-tagline { font-size: 17px; line-height: 1.35; color: #2c3230; white-space: nowrap; }
@media (max-width: 760px) {
  .hero-stage { padding: 6px 20px 0; }
  .hero2 { width: auto; height: auto; overflow: visible; border-radius: 0; }
  .hero-panels { position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; }
  .hero-panels span { display: none; }
  .hero-tagline { font-size: 18px; }
  .hero-card { position: static; transform: none; text-align: left; align-items: flex-start; max-width: none; padding: 22px 4px 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* phones only: the panels widen one after another, field -> mineral surfaces, in a slow repeating wave
   (desktop keeps hover + scroll widening instead). Off when the visitor prefers reduced motion. */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero-panels figure { animation: panel-wave 10s ease-in-out infinite; }
  .hero-panels figure:nth-child(2) { animation-delay: 2s; }
  .hero-panels figure:nth-child(3) { animation-delay: 4s; }
  .hero-panels figure:nth-child(4) { animation-delay: 6s; }
  .hero-panels figure:nth-child(5) { animation-delay: 8s; }
}
@keyframes panel-wave { 0%, 26%, 100% { flex-grow: 1; } 13% { flex-grow: 2.4; } }

/* hero strip: hovering a panel widens it a little, brightens it and shows its full scale label */
@media (hover: hover) and (min-width: 761px) {
  .hero-panels figure { transition: flex-grow .6s cubic-bezier(.25, .8, .25, 1); }
  .hero-panels figure:hover { flex-grow: 1.5; }
  .hero-panels figure img { transition: filter .4s ease; }
  .hero-panels figure:hover img { filter: brightness(1.06) saturate(1.12); }
  .hero-panels figure span { transition: background-color .3s ease; }
  .hero-panels figure:hover span { background: rgba(0, 0, 0, 0.66); }
  .hero-panels figure:hover em { max-width: 9em; opacity: 1; }
}


/* ---------- inner page header ---------- */
.page-head { padding-top: 36px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.card-body p { font-size: 16px; color: var(--muted); }
.card-outline { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-outline p { font-size: 16px; color: var(--muted); }
.card-dashed { border-style: dashed; }


.panel { background: var(--paper-2); border-radius: var(--radius); padding: 64px 0; }

/* ---------- homepage statement ---------- */
.statement { max-width: 860px; display: flex; flex-direction: column; gap: 16px; }
.statement p { font-size: 19px; color: var(--ink-2); }

/* ---------- projects ---------- */
.img-ph { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px dashed var(--line-2); background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.card > .img-ph { aspect-ratio: 16 / 10; border-radius: 0; border: 0; border-bottom: 1px dashed var(--line-2); }
/* research page: compact alternating rows, several visible per screen */
.research-intro { max-width: 820px; gap: 14px; }
.research-intro p:not(.lead) { color: var(--ink-2); }
.project-list { display: flex; flex-direction: column; gap: 32px; }
.project-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; }
.project-row:nth-child(even) .project-media { order: 2; }
.project-media img, .project-media .img-ph { width: 100%; height: 220px; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius); display: block; }
.project-media .img-ph { display: flex; }
.project-text { display: flex; flex-direction: column; gap: 10px; }
.project-text h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.02em; }
.project-text p { color: var(--ink-2); }
.summary-q { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .project-list { gap: 36px; }
  .project-row { grid-template-columns: 1fr; gap: 16px; }
  .project-row:nth-child(even) .project-media { order: 0; }
  .project-media img, .project-media .img-ph { height: 210px; }
}
.meta-line { font-size: 15px; color: var(--muted); }
.project-card { text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  /* Safari: give each card its own layer so the lift and the clipped image repaint when the hover ends */
  transform: translateZ(0); will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black); }
.project-card img { transition: transform .5s ease; will-change: transform; }
.project-card:hover { transform: translate3d(0, -3px, 0); box-shadow: 0 10px 28px rgba(20, 24, 22, 0.10); border-color: var(--line-2); }
.project-card:hover img { transform: scale(1.03); }
.project-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .project-card, .project-card:hover { transform: translateZ(0); } .project-card:hover img { transform: none; } }

/* ---------- opportunities ---------- */
.join-intro { max-width: 820px; gap: 14px; }
.join-intro p:not(.lead) { color: var(--ink-2); }
.join-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.join-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.join-card p { color: var(--ink-2); }
.join-card .btn { align-self: flex-start; margin-top: auto; }
.join-card-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.join-card-accent p { color: rgba(255, 255, 255, 0.88); }
.join-card-tint { background: var(--teal-bg); border-color: #cfe1de; }
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px 56px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.example-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.example-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.example-list li:last-child { border-bottom: 1px solid var(--line); }
.example-list a { font-weight: 600; text-decoration: none; }
.example-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.example-list span { color: var(--muted); font-size: 15px; }
.checklist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.status { font-size: 15px; font-weight: 600; color: var(--accent); }

/* ---------- profile links with logos ---------- */
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
.icon-link img { width: 18px; height: 18px; flex: none; }

/* ---------- people ---------- */
/* people page: PI on its own row, team as compact two-per-row cards (Nissan-style) */
.pi-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line-2); margin-bottom: 36px; }
.pi-photo { width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius); }
.pi-text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.pi-text h2 { font-size: 28px; letter-spacing: -0.025em; }
.pi-text .role { color: var(--ink-2); font-size: 16px; }
.pi-text p:not(.role) { color: var(--ink-2); font-size: 16px; }
.pi-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; font-size: 15px; }
.pi-links a { color: var(--ink-2); text-underline-offset: 3px; }
.pi-links { align-items: center; }
.icon-only { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; }
.icon-only:hover { background: rgba(31, 95, 90, 0.08); }
.icon-only img { width: 20px; height: 20px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 28px 40px; }
.member { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; }
.member-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; }
.member-photo.initials, .pi-photo.initials { display: flex; align-items: center; justify-content: center; background: var(--paper-2); color: #8a8174; font-weight: 600; letter-spacing: -0.03em; }
.member-photo.initials { font-size: 30px; }
.pi-photo.initials { font-size: 52px; }
.member-photo.avatar, .pi-photo.avatar {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #e6f0ee 0%, #d4e4e1 100%);
  color: #7fa7a2;
}
.member-photo.avatar svg { width: 54%; height: 54%; }
.pi-photo.avatar svg { width: 50%; height: 50%; }
.member-text { display: flex; flex-direction: column; gap: 3px; }
.member-text h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.25; }
.member .role { color: var(--ink-2); font-size: 15px; }
.member .project { font-size: 14px; color: var(--muted); text-underline-offset: 3px; margin-top: 4px; }
@media (max-width: 640px) {
  .pi-row { grid-template-columns: 1fr; gap: 18px; }
  .pi-photo { width: 160px; height: 160px; }
  .member { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .member-photo { width: 88px; height: 88px; }
}
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 40px 28px; }
.person { display: flex; flex-direction: column; gap: 4px; }
.person .photo, .person .initials { margin-bottom: 12px; }
.person-name { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.person .role-sub { font-size: 14px; color: var(--muted); }
.person-links { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 14px; }
.person-links a { color: var(--ink-2); text-underline-offset: 3px; }
.person .project { margin-top: 6px; text-underline-offset: 3px; }
.person .photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.person .initials {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: #8a8174;
}
.person .role { color: var(--ink-2); font-size: 15px; }
.person .project { font-size: 14px; color: var(--muted); }
.pi { display: grid; gap: 48px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.pi > img { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

.team-list { display: flex; flex-direction: column; }
.team-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.team-list div:last-child { border-bottom: 1px solid var(--line-2); }
.team-list span:last-child { color: var(--muted); }

/* ---------- publications ---------- */
.pub-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 32px; padding: 32px 0; border-top: 1px solid var(--line-2); }
.pub-year > h2 { font-size: 28px; font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.pub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.pub-list li { display: flex; flex-direction: column; gap: 4px; }
.pub-title { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.pub-authors { font-size: 15px; color: var(--ink-2); }
.pub-meta { font-size: 15px; color: var(--muted); }
.pub-meta a { text-underline-offset: 3px; }
@media (max-width: 640px) { .pub-year { grid-template-columns: 1fr; } }

.pub-mini { text-decoration: none; background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.pub-mini:hover { background: #fff; }
.pub-mini b { font-weight: 600; line-height: 1.35; }

/* ---------- join + footer ---------- */
.join { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 64px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
@media (max-width: 640px) { .join { padding: 44px 24px; } }
.footer { padding: 40px 28px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 24px 48px; font-size: 15px; color: var(--muted); }
.footer b { color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.contact-card { gap: 24px; background: var(--card); border-color: var(--line); }
.contact-welcome { font-size: 17px; color: var(--ink-2); }
.contact-logo { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.contact-logo img { width: 220px; height: auto; }
.contact-photo { margin: 0; position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.contact-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; font-size: 13px; color: #fff; background: rgba(0, 0, 0, 0.45); }
.placeholder { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 18px 22px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* hero title strip: tagline drops below the title on narrower screens */
@media (max-width: 760px) { .hero-tagline { white-space: normal; } }

.member-links { display: flex; gap: 4px; margin: 2px 0 0 -8px; }
