/* Kateriya Lab — site stylesheet
   Design language from "Kateriya_Lab_Homepage_Client_Review.html":
   forest / lime / sage palette, Georgia display type, numbered eyebrows, ruled grids. */

:root {
  --ink: #17382d;
  --muted: #59675e;
  --paper: #f7f7ef;
  --white: #fffef9;
  --line: #d5ddd2;
  --forest: #142e26;
  --forest-deep: #081e15;
  --lime: #d6ef91;
  --sage: #e8edde;
  --alt: #edf0e7;
  --contact: #dcecbd;
  --contact-line: #adbf93;
  --accent: #4f6d1f;
  --focus: #69882f;
  --chip: #e1e8d5;
  --chip-ink: #2f4d26;
  --label-ink: #52644f;
  --label-line: #c6d0c0;
  --btn-bg: var(--forest);
  --btn-ink: var(--paper);
  --btn-hover: #285241;
  --hg-bg: #e6eecf;
  --hg-ink: #3f5a1f;
  --eye: #b4532a;
  --eye-bg: #f5e2d6;
  --page: 1320px;
  --gutter: clamp(20px, 5vw, 80px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Aptos", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e2eadc; --muted: #a3b2a5; --paper: #0d1813; --white: #111e18; --line: #26372e;
    --forest: #0a1712; --sage: #13221b; --alt: #101c16; --contact: #1a2d1f; --contact-line: #3b5536;
    --accent: #c3e27a; --focus: #d6ef91; --chip: #1d2e23; --chip-ink: #cfe3a6; --label-ink: #b4c4ac; --label-line: #3a4d40;
    --btn-bg: var(--lime); --btn-ink: #142e26; --btn-hover: #e4f7b6; --hg-bg: #233419; --hg-ink: #d6ef91;
    --eye: #ff9a6a; --eye-bg: #3a2218; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e2eadc; --muted: #a3b2a5; --paper: #0d1813; --white: #111e18; --line: #26372e;
  --forest: #0a1712; --sage: #13221b; --alt: #101c16; --contact: #1a2d1f; --contact-line: #3b5536;
  --accent: #c3e27a; --focus: #d6ef91; --chip: #1d2e23; --chip-ink: #cfe3a6; --label-ink: #b4c4ac; --label-line: #3a4d40;
  --btn-bg: var(--lime); --btn-ink: #142e26; --btn-hover: #e4f7b6; --hg-bg: #233419; --hg-ink: #d6ef91;
  --eye: #ff9a6a; --eye-bg: #3a2218; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.4vw, 60px); }
h3 { line-height: 1.3; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 5px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.dark a:focus-visible, .dark button:focus-visible, .dark input:focus-visible, .dark summary:focus-visible { outline-color: var(--lime); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button svg, a svg, summary svg { flex: 0 0 auto; }
[hidden] { display: none !important; }
.wrap { width: min(100%, calc(var(--page) + var(--gutter) * 2)); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); scroll-margin-top: 100px; }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { width: 20px; height: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 12px; padding: 12px 18px; background: var(--lime); color: #142e26; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.bg-white { background: var(--white); }
.bg-sage { background: var(--sage); }
.bg-alt { background: var(--alt); border-top: 1px solid var(--line); }

/* ---------- Identity bar + header ---------- */
.idbar { background: var(--sage); border-bottom: 1px solid var(--line); font-size: 11.5px; line-height: 1.45; }
.idbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; }
.idbar a { text-decoration: none; }
.idbar a:hover { text-decoration: underline; }
.idbar-sep { margin-inline: 10px; color: var(--muted); }
.idbar-mail { white-space: nowrap; color: var(--muted); }
.header { position: sticky; z-index: 30; top: 0; background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; display: inline-flex; gap: 13px; align-items: center; min-width: 190px; }
.brand-mark { width: 44px; height: 44px; }
.brand-name { display: block; font-weight: 750; font-size: 18px; letter-spacing: .065em; line-height: 1.2; }
.brand-sub { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .19em; line-height: 1.8; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 13px; text-decoration: none; padding-block: 13px; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--focus); font-weight: 600; }
.nav a.contact-link { border: 1px solid var(--ink); padding: 10px 18px; display: inline-flex; align-items: center; gap: 14px; }
.nav a.contact-link:hover { background: var(--sage); }
.nav a.contact-link[aria-current="page"] { background: var(--lime); color: #142e26; border-color: var(--lime); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; }

/* ---------- Buttons + links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 22px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.button-lime { background: var(--lime); color: #142e26; }
.button-lime:hover { background: #e4f7b6; }
.button-forest { background: var(--btn-bg); color: var(--btn-ink); }
.button-forest:hover { background: var(--btn-hover); }
.button-outline { border-color: var(--ink); }
.button-outline:hover { background: var(--sage); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-size: 13px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 28px; }

/* ---------- Home hero (as in review) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #071910; color: #f7f7ef; }
.hero-image { position: absolute; right: 0; top: 0; width: 68%; height: 100%; object-fit: cover; object-position: 59% center; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#081e15 0%,#081e15 23%,rgba(8,30,21,.91) 37%,rgba(8,30,21,.25) 62%,rgba(8,30,21,.08) 100%); }
.hero-main { min-height: 640px; padding-top: clamp(62px, 7vw, 102px); padding-bottom: 94px; position: relative; }
.hero-copy { max-width: 720px; width: 60%; }
.hero .eyebrow { color: #c9dfb8; margin-bottom: 25px; }
.hero h1 { font-size: clamp(52px, 6.15vw, 88px); line-height: 1.04; }
.hero h1 span { display: block; }
.hero h1 .soft { color: var(--lime); font-style: italic; }
.hero-intro { max-width: 470px; color: #d4e0d4; font-size: 16px; margin-top: 28px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { position: absolute; right: var(--gutter); bottom: 27px; max-width: 300px; border-left: 1px solid #aec894; padding-left: 15px; font-size: 11px; color: #d4dfce; line-height: 1.6; }
.hero-note strong { display: block; color: #f4f8e9; font-weight: 500; font-size: 12px; margin-bottom: 2px; }
.hero-bottom { border-top: 1px solid rgba(222,239,215,.22); background: rgba(8,30,21,.58); }
.hero-bottom .wrap { min-height: 84px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.theme-label { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .01em; text-decoration: none; color: inherit; }
a.theme-label:hover { color: var(--lime); }
.theme-label span { font-size: 10px; color: #bdd596; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Announcement ---------- */
.announce { background: var(--sage); border-bottom: 1px solid var(--line); }
.announce .wrap { display: flex; gap: 22px; align-items: center; padding-block: 18px; }
.announce .badge { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--btn-bg); color: var(--btn-ink); padding: 6px 10px; }
.announce p { font-size: 14px; }
.announce strong { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.announce a { font-weight: 600; white-space: nowrap; }

/* ---------- Light-in-action band (canvas animations) ---------- */
.light-band { background: radial-gradient(900px 420px at 75% 30%, rgba(124,170,96,.22), transparent 70%), linear-gradient(160deg, #081e15 0%, #10291f 55%, #0b2218 100%); color: #f7f7ef; }
.light-band .section-heading > p { color: #bfd0c0; }
.light-band .eyebrow { color: #c4d4b4; }
.light-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.panel { position: relative; margin: 0; border-top: 1px solid #526a59; padding-top: 18px; }
.panel canvas { display: block; width: 100%; aspect-ratio: 16 / 10; }
#ciliaCanvas { -webkit-mask-image: linear-gradient(#000 82%, transparent 100%); mask-image: linear-gradient(#000 82%, transparent 100%); }
.panel figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid #526a59; font-size: 12px; color: #c9d8c6; }
.panel figcaption span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #b8cc9d; white-space: nowrap; }
.spectrum { margin-top: 36px; }
.spectrum .bar { height: 5px; background: linear-gradient(90deg,#6a00c9,#3a2fff 10%,#007cff 20%,#00c6d8 30%,#19d46a 40%,#9be000 50%,#ffe100 60%,#ffaa00 70%,#ff5a00 80%,#e80000 90%,#8f0000); position: relative; }
.spectrum .bar i { position: absolute; left: 20%; top: -6px; width: 3px; height: 17px; background: #fff; box-shadow: 0 0 10px #fff; }
.spectrum .ticks { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .08em; color: #c9d8c6; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: #071910; color: #f7f7ef; }
.page-hero-image { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; opacity: .85; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#081e15 0%,#081e15 38%,rgba(8,30,21,.9) 55%,rgba(8,30,21,.35) 80%,rgba(8,30,21,.2) 100%); }
.page-hero .wrap { padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9dfb8; margin-bottom: 26px; font-weight: 700; }
.crumbs a { text-decoration: none; color: #c9dfb8; }
.crumbs a:hover { color: var(--lime); }
.crumbs span[aria-hidden] { color: #7d9a76; }
.page-hero h1 { font-size: clamp(44px, 5.4vw, 78px); max-width: 820px; }
.page-hero h1 .soft { color: var(--lime); font-style: italic; }
.page-hero .lede { max-width: 560px; color: #d4e0d4; font-size: 16px; line-height: 1.8; margin-top: 24px; }
.page-hero-nav { border-top: 1px solid rgba(222,239,215,.22); background: rgba(8,30,21,.6); }
.page-hero-nav .wrap { padding-block: 0; display: flex; gap: 8px 30px; flex-wrap: wrap; min-height: 64px; align-items: center; }
.page-hero-nav a { font-size: 13px; text-decoration: none; color: #e3ecdc; padding-block: 10px; }
.page-hero-nav a span { font-size: 10px; color: #bdd596; margin-right: 10px; font-variant-numeric: tabular-nums; }
.page-hero-nav a:hover { color: var(--lime); }

/* ---------- Section headings ---------- */
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 9%; margin-bottom: 45px; }
.section-heading .eyebrow { margin-bottom: 20px; }
.section-heading > p { max-width: 440px; font-size: 15px; color: var(--muted); padding-bottom: 3px; }
.section-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.section-foot p { font-size: 13px; color: var(--muted); }

/* ---------- Research cards (home) ---------- */
.research-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.research-card { padding: 30px 26px 26px 0; min-width: 0; display: flex; flex-direction: column; }
.research-card + .research-card { border-left: 1px solid var(--line); padding-left: 26px; }
.research-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.research-index { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag-label { display: inline-flex; width: fit-content; font-size: 10px; line-height: 1.5; padding: 4px 8px; border: 1px solid var(--label-line); color: var(--label-ink); letter-spacing: .07em; text-transform: uppercase; }
.research-thumb { width: 100%; height: 150px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 8px; margin: 20px 0; }
.research-card h3 { font-size: 21px; font-weight: 500; }
.research-card > p { color: var(--muted); font-size: 14px; margin: 12px 0 14px; }
.research-card .text-link { margin-top: auto; }

/* ---------- Research page rows ---------- */
.theme-row { display: grid; grid-template-columns: .95fr 1.05fr; gap: 8%; align-items: center; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.theme-row:first-child { border-top: 0; padding-top: 0; }
.theme-row:nth-child(even) .figure-frame { order: 2; }
.figure-frame { background: var(--sage); border: 1px solid var(--line); padding: 18px; }
.figure-frame img { width: 100%; max-height: 460px; object-fit: contain; background: #fff; }
.figure-frame figcaption { padding-top: 14px; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--label-ink); }
.theme-copy .eyebrow { color: var(--accent); margin-bottom: 16px; }
.theme-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.12; }
.theme-copy > p { font-size: 17px; line-height: 1.8; margin-top: 20px; max-width: 540px; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); max-width: 560px; }
.check-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.check-list li::before { content: counter(list-item, decimal-leading-zero); font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }

/* ---------- Toolbox table ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 14px; }
th, td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 600; }
td.paper { color: var(--muted); font-size: 13px; }
.fam { display: inline-block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; background: var(--chip); color: var(--chip-ink); white-space: nowrap; }
.fam.leaf { background: var(--hg-bg); color: var(--hg-ink); }
.fam.eye { background: var(--eye-bg); color: var(--eye); }
.table-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- About / PI ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 10%; }
.portrait-frame { position: relative; background: #cad5c1; border: 1px solid #bccbb3; padding: 18px; }
:root[data-theme="dark"] .portrait-frame { background: #1d2e23; border-color: #2c4033; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portrait-frame { background: #1d2e23; border-color: #2c4033; } }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 20%; }
.portrait-caption { padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--label-ink); }
.portrait-caption .icon { width: 15px; height: 15px; }
.about-copy .eyebrow { margin-bottom: 22px; }
.about-copy h2 { font-size: clamp(38px, 4.3vw, 60px); }
.prof-role { font-size: 14px; color: var(--label-ink); margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--contact-line); }
.prof-role span { display: block; }
.bio { font-size: 17px; line-height: 1.8; margin-top: 25px; max-width: 580px; }
.bio + .bio { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 30px; max-width: 600px; }
.facts div { padding: 16px 16px 14px 0; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -.03em; }
.facts span { font-size: 11px; color: var(--muted); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.cols3 > div { padding: 32px 30px 10px 0; min-width: 0; }
.cols3 > div + div { border-left: 1px solid var(--line); padding-left: 30px; }
.cols3 h3 { font-size: 20px; font-weight: 500; margin-bottom: 18px; }
dl.rows { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; font-size: 14px; }
dl.rows dt { font-size: 11px; color: var(--accent); white-space: nowrap; padding-block: 11px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .03em; }
dl.rows dd { padding-block: 9px; border-top: 1px solid var(--line); }
.reviewer { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- History / timeline ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: start; }
.prose p { font-size: 17px; line-height: 1.8; }
.prose p + p { margin-top: 18px; }
.quote-note { margin-top: 30px; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.quote-note a { color: var(--ink); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline p { font-size: 14px; color: var(--muted); padding-top: 4px; }
.timeline li.key .yr { color: var(--ink); }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card { border-top: 3px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; }
.project-card .eyebrow { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.project-card .eyebrow b { color: var(--accent); }
.project-card h3 { font-size: 22px; font-weight: 500; margin-top: 14px; }
.project-card > p { font-size: 14px; color: var(--muted); margin-top: 14px; }
.project-card details { margin-top: 10px; }
.project-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.project-list li { display: grid; grid-template-columns: 50px 1fr 260px 110px; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.project-list .n { font-family: var(--serif); font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.project-list .t { font-size: 15px; }
.project-list .a { font-size: 12px; color: var(--muted); }
.project-list .p { font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.agencies { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ---------- Details / expanders ---------- */
details > summary { cursor: pointer; }
.theme-details summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
.theme-details summary svg { transition: transform .18s ease; }
.theme-details[open] summary svg { transform: rotate(90deg); }
.theme-details > p { font-size: 13px; line-height: 1.75; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Publications (dark) ---------- */
.publication-section { background: var(--forest); color: #f7f7ef; }
.publication-section .eyebrow { color: #c4d4b4; }
.publication-section .section-heading > p { color: #bfd0c0; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #526a59; border-bottom: 1px solid #526a59; margin-bottom: 50px; }
.fcard { padding: 28px 28px 26px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fcard + .fcard { border-left: 1px solid #526a59; padding-left: 28px; }
.fcard .j { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #b8cc9d; }
.fcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.9vw, 26px); letter-spacing: -.015em; line-height: 1.2; }
.fcard p { font-size: 12px; color: #bdcec0; }
.fcard a { margin-top: auto; padding-top: 8px; font-size: 12px; color: #d5eaa9; display: inline-flex; gap: 10px; align-items: center; text-decoration: none; overflow-wrap: anywhere; }
.fcard a:hover { text-decoration: underline; }
.hg { color: #d5eaa9; background: rgba(214,239,145,.12); padding: 0 .2em; }
.publication-list-wrap .hg { color: var(--hg-ink); background: var(--hg-bg); }
.publication-section .publication-list-wrap .hg { color: #d5eaa9; background: rgba(214,239,145,.12); }
.publication-number { color: #b8cc9d; font-family: var(--serif); font-size: 31px; line-height: 1.4; }
.pub-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.pub-search { flex: 1 1 280px; max-width: 420px; position: relative; }
.pub-search input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 14px; border-radius: 0; }
.filter-group { display: inline-flex; padding: 4px; gap: 3px; border: 1px solid var(--label-line); flex-wrap: wrap; }
.filter-group button { border: 0; background: transparent; color: var(--ink); padding: 10px 16px; min-height: 42px; font-size: 12px; }
.filter-group button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.filter-group button:hover { box-shadow: inset 0 0 0 1px var(--label-line); }
.pub-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.year-group { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
.year-group h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; position: sticky; top: 110px; align-self: start; }
.year-group ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.year-group li { font-size: 14px; line-height: 1.7; padding-left: 16px; border-left: 2px solid var(--line); }
.year-group li strong { font-weight: 700; }
.tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; margin-left: 8px; vertical-align: 2px; }
.tag.pre { background: var(--chip); color: var(--chip-ink); }
.tag.ch { background: var(--hg-bg); color: var(--hg-ink); }
mark { background: var(--lime); color: #142e26; }
.pub-empty { padding: 30px 0; color: var(--muted); border-top: 1px solid var(--line); }
.more-row { border-top: 1px solid var(--line); padding-top: 26px; }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.person-card { min-width: 0; }
.person-visual { background: var(--sage); aspect-ratio: 4 / 5; overflow: hidden; }
.person-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s ease; }
.person-card:hover .person-visual img { transform: scale(1.03); }
.person-card h3 { font-size: 19px; font-weight: 500; margin-top: 18px; }
.person-role { font-size: 11px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.pi-card { display: grid; grid-template-columns: 300px 1fr; gap: 6%; align-items: center; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.pi-card .person-visual { aspect-ratio: 4 / 4.4; }
.pi-card h2 { font-size: clamp(34px, 3.6vw, 50px); margin-top: 16px; }
.pi-card p.role { font-size: 14px; color: var(--muted); margin-top: 14px; }
.subhead { font-size: 22px; font-weight: 500; margin-bottom: 26px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.subhead span { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.alumni-note { margin-top: 50px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 9%; }
.alumni-note h3 { font-size: 22px; font-weight: 500; }
.alumni-note p { font-size: 14px; color: var(--muted); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; }
.news-intro .eyebrow { margin-bottom: 20px; }
.news-intro > p { font-size: 14px; color: var(--muted); margin-top: 23px; max-width: 400px; }
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--contact-line); }
.news-list li { border-bottom: 1px solid var(--contact-line); padding-block: 21px; }
.news-meta { font-size: 10px; color: var(--label-ink); letter-spacing: .075em; text-transform: uppercase; margin-bottom: 10px; }
.news-list h3 { font-size: 20px; font-weight: 500; }
.news-list p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.news-card { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.news-card:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); padding-left: 28px; }
.news-card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -.02em; line-height: 1.2; }
.news-card p { font-size: 14px; color: var(--muted); }
.news-card .text-link { margin-top: auto; }
.news-cards .news-card.featured { background: var(--sage); padding-inline: 28px; }
.gallery { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 16px; margin-top: 62px; }
.gallery figure { min-width: 0; }
.gallery-image { aspect-ratio: 1.28; background: #fff; overflow: hidden; border: 1px solid var(--line); }
.gallery-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gallery figcaption { font-size: 11px; color: var(--label-ink); padding-top: 13px; }
.gallery figcaption span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }

/* ---------- Join ---------- */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: start; }
.join-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); counter-reset: j; }
.join-list li { padding-block: 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 60px 1fr; gap: 16px; }
.join-list li::before { counter-increment: j; content: counter(j, decimal-leading-zero); font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.1; }
.join-list h3 { font-size: 20px; font-weight: 500; }
.join-list p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.interest-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.interest-tags span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--label-line); color: var(--label-ink); }
.mail-box { margin-top: 30px; padding: 26px; background: var(--forest); color: #f7f7ef; }
.mail-box .label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #c4d4b4; }
.mail-box .addr { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); margin: 8px 0 18px; overflow-wrap: anywhere; }
.mail-box .addr a { text-decoration: none; }
.mail-box .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-btn { border: 1px solid #6d8171; background: transparent; color: #f7f7ef; min-height: 48px; padding: 10px 18px; font-size: 13px; font-weight: 600; }
.copy-btn:hover { background: rgba(255,255,255,.08); }
.map-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Contact band ---------- */
.contact-section { background: var(--contact); padding-block: 70px; scroll-margin-top: 90px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 10%; }
.contact-grid .eyebrow { margin-bottom: 20px; }
.contact-grid h2 { font-size: clamp(38px, 4.8vw, 68px); }
.contact-grid .button { margin-top: 30px; }
.contact-detail { border-left: 1px solid var(--contact-line); padding-left: 38px; }
.contact-detail .label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--label-ink); }
.contact-email { font-family: var(--serif); font-size: clamp(25px, 3vw, 38px); line-height: 1.2; overflow-wrap: anywhere; margin: 10px 0 9px; }
.contact-email a { text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }
.contact-address { margin-top: 22px; font-size: 13px; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 48px 36px; }
.footer-brand p { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer-col a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; width: fit-content; }
.footer-col a:hover { text-decoration: underline; }
.footer-col .icon { width: 14px; height: 14px; }
.footer-head { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.footer-bottom { display: flex; align-items: center; gap: 16px 28px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer-bottom a { text-decoration: none; }
.footer-bottom .credit { margin-left: auto; }
.footer-bottom .credit a { color: var(--ink); font-weight: 700; letter-spacing: .02em; border-bottom: 1px solid var(--focus); padding-bottom: 1px; }
.footer-bottom .credit a:hover { color: var(--accent); }
.to-top { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 4px 4px 16px; border: 1px solid var(--ink); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.to-top-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--btn-bg); color: var(--btn-ink); transition: transform .25s ease; }
.to-top-icon .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.to-top:hover { background: var(--lime); color: #142e26; border-color: var(--lime); }
.to-top:hover .to-top-icon { transform: translateY(-3px); background: #142e26; color: var(--lime); }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) { .hero-image { width: 63%; } }
@media (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; padding-block: 14px; min-height: 76px; gap: 14px; }
  .brand { min-width: 0; }
  .nav { flex-basis: 100%; flex-wrap: wrap; gap: 4px 24px; padding-top: 6px; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .hero-copy { width: 68%; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .research-card:nth-child(3) { border-left: 0; padding-left: 0; }
  .research-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .project-list li { grid-template-columns: 44px 1fr 200px 100px; }
}
@media (max-width: 900px) {
  .hero-copy { width: 78%; }
  .hero-main { min-height: 580px; }
  .hero-image { width: 82%; opacity: .8; }
  .hero::after { background: linear-gradient(90deg,#081e15 0%,rgba(8,30,21,.9) 35%,rgba(8,30,21,.34) 100%); }
  .hero-bottom .wrap { grid-template-columns: repeat(2, 1fr); padding-block: 16px; gap: 12px 20px; }
  .section-heading { gap: 7%; }
  .about-grid { grid-template-columns: .85fr 1.15fr; gap: 6%; }
  .bio { font-size: 15px; }
  .light-grid, .story, .join-grid, .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; gap: 34px; }
  .feat { grid-template-columns: 1fr; }
  .fcard, .fcard + .fcard { padding: 24px 0; border-left: 0; }
  .fcard + .fcard { border-top: 1px solid #526a59; }
  .cols3 { grid-template-columns: 1fr; }
  .cols3 > div, .cols3 > div + div { padding: 28px 0 10px; border-left: 0; }
  .cols3 > div + div { border-top: 1px solid var(--line); }
  .theme-row { grid-template-columns: 1fr; gap: 30px; }
  .theme-row:nth-child(even) .figure-frame { order: 0; }
  .news-cards { grid-template-columns: 1fr 1fr; }
  .news-card:not(:nth-child(3n+1)) { border-left: 0; padding-left: 0; }
  .news-card:nth-child(even) { border-left: 1px solid var(--line); padding-left: 28px; }
  .pi-card { grid-template-columns: 240px 1fr; }
  .project-list li { grid-template-columns: 40px 1fr; gap: 6px 16px; }
  .project-list .a, .project-list .p { grid-column: 2; text-align: left; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-detail { padding-left: 26px; }
  .page-hero-image { width: 80%; opacity: .55; }
}
@media (max-width: 640px) {
  .idbar .idbar-sep, .idbar .idbar-sbt, .idbar-mail { display: none; }
  .header-inner { min-height: 70px; padding-block: 11px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 8px; }
  .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding-bottom: 9px; }
  .js .nav.is-open { display: grid; }
  .nav a.contact-link { padding: 10px 12px; justify-content: space-between; grid-column: 1 / -1; margin-top: 8px; }
  /* Phone hero: artwork fills the whole block, text sits on it */
  .hero-main { padding-top: 40px; padding-bottom: 36px; min-height: 0; }
  .hero-copy { width: 100%; max-width: 490px; }
  .hero h1 { font-size: clamp(42px, 11vw, 60px); letter-spacing: -.047em; line-height: 1.09; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .12em; margin-bottom: 20px; }
  .hero-intro { font-size: 14px; margin-top: 22px; }
  .hero-actions { margin-top: 25px; gap: 12px 24px; }
  .hero-image { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; opacity: 1; }
  .hero::after { background: linear-gradient(100deg, rgba(8,30,21,.82) 0%, rgba(8,30,21,.6) 55%, rgba(8,30,21,.3) 100%), linear-gradient(180deg, rgba(8,30,21,.2) 0%, rgba(8,30,21,0) 40%, rgba(8,30,21,.55) 100%); }
  .hero h1, .hero-intro { text-shadow: 0 1px 14px rgba(4,14,9,.55); }
  .hero-note { display: none; }
  .hero-bottom { background: rgba(8,30,21,.72); }
  .hero-bottom .wrap { gap: 10px 14px; }
  .theme-label { display: block; font-size: 12px; line-height: 1.4; }
  .theme-label span { display: block; margin-bottom: 3px; }
  .announce .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-hero-image { width: 100%; opacity: .35; }
  .page-hero::after { background: linear-gradient(180deg,rgba(8,30,21,.92),rgba(8,30,21,.8)); }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .section-heading .eyebrow { margin-bottom: 16px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card, .research-card + .research-card { padding: 26px 0 22px; border-left: 0; }
  .research-card + .research-card { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait-frame { max-width: 380px; padding: 14px; }
  .facts b { font-size: 26px; }
  .people-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .person-card h3 { font-size: 16px; margin-top: 12px; }
  .person-role { font-size: 10px; letter-spacing: .06em; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-card .person-visual { max-width: 320px; }
  .alumni-note { grid-template-columns: 1fr; gap: 10px; }
  .timeline li { grid-template-columns: 70px 1fr; gap: 14px; }
  .timeline .yr { font-size: 24px; }
  .year-group { grid-template-columns: 1fr; gap: 12px; }
  .year-group h3 { position: static; font-size: 28px; }
  .filter-group { width: 100%; }
  .filter-group button { flex: 1; padding-inline: 8px; font-size: 11px; }
  .pub-search { max-width: none; }
  .news-cards { grid-template-columns: 1fr; }
  .news-card, .news-card:nth-child(even) { border-left: 0; padding-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px 14px; margin-top: 40px; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .contact-section { padding-block: 56px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-detail { border-left: 0; padding-left: 0; padding-top: 25px; border-top: 1px solid var(--contact-line); }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom .credit { margin-left: 0; }
  .to-top { margin-top: 6px; }
  .news-cards .news-card.featured { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .idbar, .nav, .menu-toggle, .pub-tools, .more-row, .hero-actions, .copy-btn, .light-band, .contact-section .button { display: none !important; }
  .header { position: static; }
  body { background: #fff; }
  .year-group[hidden], .year-group li[hidden] { display: grid !important; }
  .year-group h3 { position: static; }
}
