/* Gawad Lab — site stylesheet
   Palette: Stanford cardinal for the wordmark and accents, a deep teal-blue
   carried over from the old theme (#4D7A8E) as the primary, warm amber for
   highlights, and an off-white ground. */

:root {
  --cardinal: #8C1515;
  --cardinal-dark: #6E1010;
  --primary: #2F5D70;
  --primary-light: #4D7A8E;
  --primary-tint: #E8F0F3;
  --amber: #F6A30C;
  --amber-tint: #FFF4DF;
  --ink: #17212B;
  --ink-soft: #3A4652;
  --muted: #64707C;
  --border: #E3E7EA;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --shadow: 0 1px 2px rgba(23,33,43,.04), 0 8px 24px rgba(23,33,43,.06);
  --shadow-hover: 0 2px 4px rgba(23,33,43,.06), 0 16px 40px rgba(23,33,43,.10);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --future: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--cardinal); }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); font-variation-settings: "opsz" 144, "SOFT" 40; }
h3, h4 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
em.accent { font-family: var(--future); font-style: normal; font-weight: 700; letter-spacing: -0.02em; color: var(--amber); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cardinal); margin-bottom: .6rem;
}
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 70ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.35rem;
  border-radius: 999px; font-weight: 650; font-size: .98rem; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cardinal); color: #fff; }
.btn-primary:hover { background: var(--cardinal-dark); color: #fff; box-shadow: 0 8px 20px rgba(140,21,21,.25); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.link-arrow { font-weight: 650; }
.link-arrow::after { content: " \2192"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 132px; gap: 1rem; transition: min-height .25s ease; }
.brand img { height: 112px; width: auto; transition: height .25s ease; }
.site-header.scrolled .brand img { height: 76px; }
.site-header.scrolled .nav { min-height: 96px; }
@media (max-width: 1120px) { .brand img { height: 68px; } }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; font-size: 1.12rem; color: var(--ink-soft); white-space: nowrap;
}
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .3rem; height: 2px; background: var(--cardinal); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--cardinal); }
.nav-links a.active { color: var(--cardinal); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cta a { background: var(--cardinal); color: #fff; margin-left: .75rem; padding: .65rem 1.25rem; }
.nav-links .nav-cta a:hover { background: var(--cardinal-dark); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border); border-radius: 10px;
  width: 50px; height: 50px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: .75rem 1.25rem 1.25rem; gap: .15rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--ink);
  min-height: min(82vh, 780px); display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: -4%; background: url("../assets/hero.jpg") center 62% / cover no-repeat;
  animation: heroDrift 36s ease-in-out infinite alternate; will-change: transform;
}
@keyframes heroDrift { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.07) translate3d(-1.5%, 1%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(14,24,34,.88) 0%, rgba(14,24,34,.62) 45%, rgba(14,24,34,.18) 100%);
}
.hero .container, .hero-credit { z-index: 2; }
.hero .container { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.hero h1 { color: #fff; max-width: 14ch; text-wrap: balance; margin-bottom: 1.1rem; }
.hero .lede { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; }
.hero .eyebrow { color: var(--amber); font-family: var(--future); font-size: clamp(1.1rem, 2.1vw, 1.75rem); font-weight: 700; letter-spacing: .1em; margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-credit { position: absolute; right: 1rem; bottom: .6rem; font-size: .72rem; color: rgba(255,255,255,.6); }

/* Page hero (interior pages) */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-width: 20ch; text-wrap: balance; }

/* ---------- Process strip (was pillars) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.pillar { padding: 2rem 2rem 0 0; position: relative; }
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--border); }
.pillar .num { font-family: var(--future); font-size: 4rem; line-height: 1; color: var(--amber); letter-spacing: -.03em; font-weight: 700; display: block; margin-bottom: .9rem; }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-top: 0; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } .pillar { padding: 1.5rem 0; border-bottom: 1px solid var(--border); } .pillar + .pillar { padding-left: 0; border-left: 0; } }

/* ---------- Research index (was cards) ---------- */
.research-layout { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 4rem; align-items: start; }
.research-layout .section-head { position: sticky; top: 150px; margin: 0; }
.research-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.research-index li { border-bottom: 1px solid var(--border); }
.research-index a { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1.25rem; align-items: baseline; padding: 1.5rem 0; color: inherit; position: relative; }
.research-index .num { font-family: var(--future); font-size: 2.6rem; line-height: 1; color: var(--amber); font-weight: 700; transition: color .2s, transform .2s; font-variation-settings: "opsz" 144; }
.research-index h3 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; margin: 0 0 .35rem; transition: color .2s; }
.research-index p { color: var(--ink-soft); font-size: .97rem; margin: 0 0 .5rem; max-width: 56ch; }
.research-index .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.research-index .arrow { font-family: var(--display); font-size: 1.6rem; color: var(--border); transition: color .2s, transform .2s; align-self: center; }
.research-index a:hover .num, .research-index a:hover h3 { color: var(--cardinal); }
.research-index a:hover .num { transform: translateX(-4px); }
.research-index a:hover .arrow { color: var(--amber); transform: translateX(6px); }
.tag { font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: .15rem 0; color: var(--muted); }
.tag + .tag::before { content: "·"; margin-right: .5rem; color: var(--border); }
@media (max-width: 860px) { .research-layout { grid-template-columns: 1fr; gap: 1.5rem; } .research-layout .section-head { position: static; } .research-index a { grid-template-columns: 3rem 1fr; } .research-index .arrow { display: none; } }

/* Feature (image + text) rows */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 720px; width: auto; max-width: 100%; margin-inline: auto; display: block; }
.feature.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 1.5rem; } .feature.reverse > :first-child { order: 0; } }

/* ---------- Publications ---------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0 0 2rem; }
.pub-tools input[type="search"] {
  flex: 1 1 280px; font: inherit; font-size: 1rem; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--ink);
}
.pub-tools input:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; border-color: var(--primary-light); }
.pub-tools .count { color: var(--muted); font-size: .9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font: inherit; font-size: .84rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--ink-soft);
}
.chip:hover { border-color: var(--primary-light); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pub-year { font-family: var(--display); font-weight: 500; font-size: 2.6rem; margin: 3rem 0 .5rem; color: var(--ink); line-height: 1; }
.pub-year::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--amber); margin-top: .6rem; }
.pub-year:first-of-type { margin-top: 0; }
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pub { display: grid; grid-template-columns: 1fr; gap: .35rem; padding: 1.25rem 0 1.25rem 1.25rem; border-bottom: 1px solid var(--border); position: relative; }
.pub::before { content: ""; position: absolute; left: 0; top: 1.6rem; width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.pub.highlight::before { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.pub-title { font-size: 1.12rem; font-weight: 650; line-height: 1.35; margin: 0; }
.pub-title a { color: var(--ink); }
.pub-title a:hover { color: var(--cardinal); }
.pub-meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.pub-meta .journal { font-weight: 650; color: var(--primary); }
.pub-authors { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.pub-authors b { color: var(--ink); font-weight: 700; }
.pub-authors .more { display: none; }
.pub-authors.expanded .more { display: inline; }
.pub-authors.expanded .ellipsis { display: none; }
.link-btn { font: inherit; font-size: .85rem; font-weight: 650; background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0 .2rem; }
.link-btn:hover { color: var(--cardinal); text-decoration: underline; }
.pub-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.pub-links a {
  font-size: .8rem; font-weight: 650; padding: .3rem .7rem; border-radius: 999px; border: 1.5px solid var(--border); color: var(--ink-soft); background: var(--bg);
}
.pub-links a:hover { border-color: var(--primary); color: var(--primary); }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--amber-tint); color: #8a5a00; }
.pub[hidden], .pub-year[hidden] { display: none; }
.no-results { color: var(--muted); padding: 2rem 0; }

/* Compact list used on the home page */
.pub-compact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 1px solid var(--ink); }
.pub-compact .pub { padding: 1.4rem 0 1.4rem 1.25rem; }
@media (max-width: 800px) { .pub-compact { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 2.5rem; }
.person { padding: 0 0 1.5rem; text-align: left; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.person .portrait { position: relative; width: 150px; height: 150px; margin: 0 0 1.1rem; }
.person .portrait::before { content: ""; position: absolute; inset: -8px 8px 8px -8px; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; background: var(--amber-tint); transition: transform .3s ease; }
.person:nth-child(3n+2) .portrait::before { background: var(--primary-tint); }
.person:nth-child(3n+3) .portrait::before { background: #F5E2E2; }
.person:hover .portrait::before { transform: rotate(-12deg) scale(1.04); }
.person img { position: relative; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: #eee; }
.person h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: .15rem; }
.person .role { color: var(--cardinal); font-weight: 650; font-size: .88rem; margin-bottom: .75rem; }
.person .bio { font-size: .92rem; color: var(--ink-soft); margin: 0; text-align: left; }
.person .links { display: flex; justify-content: flex-start; gap: .5rem; margin-top: .9rem; }
.person .links a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); }
.person .links a:hover { background: var(--primary); color: #fff; }
.person .links svg { width: 16px; height: 16px; }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--ink); }
.alum { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.alum img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-tint); }
.alum h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 0; }
.alum .role { font-size: .88rem; color: var(--cardinal); font-weight: 650; margin: 0 0 .4rem; }
.alum .bio { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.mascots { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.mascot { text-align: center; }
.mascot img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--amber-tint); margin-bottom: .4rem; }
.mascot span { font-weight: 650; }

/* ---------- Join / info cards ---------- */
.info-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.info-card { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr auto; gap: 2rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.info-card .eyebrow { margin: 0; }
.info-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: .1rem 0 0; }
@media (max-width: 800px) { .info-card { grid-template-columns: 1fr; gap: .5rem; } }
.info-card p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.info-card p:last-child { margin-bottom: 0; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--ink); color: #fff; border-radius: 0; padding: 2.5rem; }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-card address { font-style: normal; line-height: 1.6; }
.contact-card img { border-radius: var(--radius-sm); }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Resources ---------- */
.resource-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.resource-group { padding: 1.25rem 0 0; border-top: 2px solid var(--ink); }
.resource-group h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.resource-group h3 { padding-bottom: .5rem; border-bottom: 2px solid var(--amber); display: inline-block; }
.resource-group ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.resource-group li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.resource-group li:last-child { border-bottom: 0; }
.resource-group a { font-weight: 600; }
.resource-group a::after { content: " \2197"; font-size: .8em; color: var(--muted); }

/* ---------- News ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--amber); }
.timeline time { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cardinal); }
.timeline h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: .2rem 0 .3rem; }
.timeline p { color: var(--ink-soft); margin: 0; }

/* ---------- Funders ---------- */
.funders { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; }
.funders img { height: 84px; width: auto; max-width: 220px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.funders img:hover { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--cardinal) 0%, #B0412F 100%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 60ch; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.7); }
.cta-band .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D1D9; padding: 3.5rem 0 2rem; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: #C9D1D9; } .site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: .3rem 0; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-brand img { height: 56px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: #8B949E; }
.social { display: flex; gap: .6rem; margin-top: .75rem; }
.social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: rgba(255,255,255,.18); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Utilities ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.notice { background: var(--amber-tint); border: 1px solid #F8D993; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Why join ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.why { padding: 1.25rem 0 0; border-top: 2px solid var(--ink); }
.why h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.why h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.why p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.openings { display: grid; gap: .75rem; }
.opening { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.openings { border-top: 1px solid var(--ink); gap: 0; }
.opening strong { font-size: 1.02rem; }
.opening span { color: var(--muted); font-size: .9rem; }

/* ---------- Growing band ---------- */
.growing { background: var(--amber-tint); border-top: 1px solid #F8D993; border-bottom: 1px solid #F8D993; }
.growing .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.growing h2 { margin-bottom: .5rem; }
.growing p { color: var(--ink-soft); margin-bottom: 1rem; }
.growing ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.growing li { display: flex; gap: .75rem; align-items: baseline; font-size: .98rem; }
.growing li::before { content: "\2192"; color: var(--cardinal); font-weight: 700; }
@media (max-width: 800px) { .growing .container { grid-template-columns: 1fr; gap: 1.5rem; } }
.img-credit { font-size: .75rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Translation (BioSkryb) ---------- */
.translate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.translate { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.translate .eyebrow { color: var(--primary); }
.translate h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0 0 .4rem; }
.translate p { font-size: .96rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.translate .when { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cardinal); }
blockquote.pull { margin: 2rem 0 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--amber); font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
blockquote.pull cite { display: block; font-family: var(--font); font-style: normal; font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 860px) { .translate-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- Wide figure ---------- */
.figure-wide { margin: 2.5rem 0 0; }
.figure-wide img { display: block; width: 100%; max-width: 780px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.figure-wide figcaption { margin: .75rem auto 0; }
.figure-wide figcaption { max-width: 80ch; }

/* ---------- Lightbox ---------- */
a.zoom { display: block; cursor: zoom-in; }
a.zoom img { transition: transform .2s ease, box-shadow .2s ease; }
a.zoom:hover img { transform: scale(1.01); box-shadow: var(--shadow-hover); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,22,.92); display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox .close:hover { background: rgba(255,255,255,.3); }
.lightbox .cap { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .85rem; max-width: 80ch; text-align: center; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.hero .eyebrow, .hero h1, .hero .lede, .hero-actions { animation: riseIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .1s; } .hero .lede { animation-delay: .22s; } .hero-actions { animation-delay: .34s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero-actions { animation: none; }
}

/* ---------- Feature video ---------- */
.feature-video { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }
