/* Sanyal Research Group – public site */
:root {
  --navy-950: #0e1a2e;
  --navy-900: #13233d;
  --navy-800: #1b3050;
  --navy-700: #284369;
  --slate: #4a5f82;       /* hexagon slate from the original logo */
  --slate-200: #c9d3e3;
  --slate-100: #e7ecf4;
  --copper: #b86e2b;      /* SEM micrograph tone */
  --copper-600: #9d5a1f;
  --copper-200: #f3dcc4;
  --ink: #18212f;
  --text: #2c3647;
  --muted: #5f6b7e;
  --line: #e2e6ee;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .06), 0 6px 20px rgba(16, 30, 54, .06);
  --shadow-lg: 0 2px 6px rgba(16, 30, 54, .08), 0 18px 40px rgba(16, 30, 54, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-600); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 54px; height: auto; display: block; }
.brand-text { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; }
.brand-text strong { font-weight: 700; color: var(--navy-800); }
.brand-text small { display: block; font-family: var(--font); font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .94rem; }
.site-nav > ul > li > a:hover { background: var(--slate-100); color: var(--navy-800); }
.site-nav > ul > li.is-active > a { color: var(--navy-800); background: var(--slate-100); box-shadow: inset 0 -2px 0 var(--copper); }
.caret { width: 12px; height: 12px; opacity: .6; }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .16s ease; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.sub a:hover { background: var(--slate-100); color: var(--navy-800); }
.nav-search { display: flex; align-items: center; background: var(--slate-100); border-radius: 999px; padding: 0 4px 0 14px; border: 1px solid transparent; }
.nav-search:focus-within { border-color: var(--slate-200); background: #fff; }
.nav-search input { border: 0; background: transparent; width: 120px; font: inherit; font-size: .9rem; padding: 8px 0; outline: none; color: var(--ink); }
.nav-search button { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--muted); display: flex; }
.nav-search svg { width: 18px; height: 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; border-radius: 2px; }

/* ---------- buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; background: var(--navy-800); color: #fff; text-decoration: none; font-weight: 600; font-size: .94rem; border: 1px solid transparent; cursor: pointer; transition: .15s; font-family: var(--font); }
.btn:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--copper-200); color: var(--navy-950); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--slate-200); }
.btn-outline:hover { background: var(--slate-100); color: var(--navy-900); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font: 500 .88rem var(--font); text-decoration: none; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--slate); color: var(--navy-800); }
.chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.hex-dot { width: 10px; height: 9px; background: var(--copper); clip-path: var(--hex); flex-shrink: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--copper-200); color: var(--copper-600); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.badge-soft { background: var(--slate-100); color: var(--navy-700); }
.status { font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #e7f4ec; color: #1f7a45; }
.status-ongoing, .status-active { background: #fdf1e2; color: var(--copper-600); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--copper-200); margin: 0 0 12px; }
.eyebrow.dark { color: var(--copper); }
.more { font-weight: 600; font-size: .9rem; color: var(--copper-600); text-decoration: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; color: #dfe7f3; background: radial-gradient(1200px 500px at 85% -10%, #34527f 0%, transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-800) 55%, #22406a); }
.hex-pattern { position: absolute; inset: 0; opacity: .09; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M14 0h28l14 24.25L42 48.5H14L0 24.25zM14 48.5h28l14 24.25L42 97H14L0 72.75z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); background-size: 56px 97px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero .hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-bottom: 20px; }
.hero-body { font-size: 1.06rem; color: #c9d5e8; max-width: 620px; }
.hero-body .lead, .hero-body p:first-child { font-size: 1.18rem; color: #eef3fa; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; aspect-ratio: 1 / .95; max-width: 440px; justify-self: end; width: 100%; }
.hexa { clip-path: var(--hex); background-size: cover; background-position: center; }
.hexa-lg { position: absolute; inset: 6% 0 6% 6%; aspect-ratio: 1.1547; box-shadow: var(--shadow-lg); }
.hexa-sm { position: absolute; width: 26%; aspect-ratio: 1.1547; }
.hexa-a { left: -6%; bottom: 2%; background: linear-gradient(135deg, var(--copper), #e1a565); opacity: .95; }
.hexa-b { right: -4%; top: -2%; background: linear-gradient(135deg, #6a80a6, var(--slate)); width: 20%; }
.hexa-xs { width: 54px; aspect-ratio: 1.1547; background: linear-gradient(135deg, var(--slate), var(--navy-700)); margin: 0 auto 14px; }

.page-hero .container { position: relative; padding-top: 44px; padding-bottom: 48px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; max-width: 900px; }
.page-hero .lead { margin: 14px 0 0; max-width: 760px; color: #c9d5e8; font-size: 1.05rem; }
.crumbs { font-size: .84rem; margin-bottom: 18px; color: #9fb0c9; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: #c9d5e8; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .sep { opacity: .5; }

/* ---------- home ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: -42px; position: relative; padding: 0; overflow: hidden; }
.stats > div { padding: 22px 26px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy-800); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .88rem; }
.home-split { display: grid; grid-template-columns: 1.65fr 1fr; gap: 28px; margin-top: 40px; align-items: start; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.card-head h2 { font-size: 1.35rem; margin: 0; }
.highlight-card { padding-bottom: 22px; }
.slider { position: relative; margin: 16px 24px 0; border-radius: 10px; overflow: hidden; background: var(--navy-900); aspect-ratio: 778 / 184; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 14px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.slider-dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 6px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.slider-dots button.is-active { background: #fff; width: 22px; border-radius: 6px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 24px 0; }
.news-card { display: flex; flex-direction: column; }
.news-list { list-style: none; margin: 10px 0 0; padding: 4px 24px 18px; }
.news-list li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: start; font-size: .95rem; line-height: 1.45; }
.news-list li:last-child { border-bottom: 0; }
.news-list time, .timeline time { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--slate-100); color: var(--navy-700); border-radius: 10px; padding: 6px 0; font-size: .72rem; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }
.news-list time b, .timeline time b { font-size: .92rem; color: var(--navy-900); letter-spacing: 0; }
.news-list a { color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--copper-600); }
.section { padding-top: 48px; padding-bottom: 8px; }
.section:last-of-type { padding-bottom: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.8rem; margin: 0; }
.latest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.pub-feature { display: grid; grid-template-columns: 200px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.pub-feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pub-feature-img { background: var(--slate-100); display: flex; align-items: center; justify-content: center; padding: 14px; }
.pub-feature-img img { max-height: 180px; object-fit: contain; border-radius: 6px; }
.pub-feature-body { padding: 20px 22px; }
.citation { font-size: .95rem; line-height: 1.55; }
.citation p { margin: 0 0 .35em; text-align: left !important; }
.citation p:first-child { font-family: var(--serif); font-size: 1.06rem; color: var(--ink); font-weight: 600; }
.citation strong { color: var(--navy-800); }
.citation em { color: var(--navy-700); }
.funders { text-align: center; }
.funders img { opacity: .85; filter: grayscale(.2); max-width: 100%; }
.funders img:hover { opacity: 1; filter: none; }

/* ---------- research ---------- */
.subnav { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 32px; box-shadow: var(--shadow); flex-wrap: wrap; }
.subnav a { padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .92rem; }
.subnav a small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.subnav a:hover { background: var(--slate-100); }
.subnav a.is-active { background: var(--navy-800); color: #fff; }
.subnav a.is-active small { color: var(--slate-200); }
.honeycomb { --hw: clamp(120px, 17vw, 178px); --gap: calc(var(--hw) * .5); display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 8px 0 56px; }
.hc-row { display: flex; gap: var(--gap); transform: translateX(calc((var(--hw) + var(--gap)) / 4)); }
.hc-row.hc-shift { transform: translateX(calc((var(--hw) + var(--gap)) / -4)); }
.hex-tile { width: var(--hw); aspect-ratio: 1.1547; clip-path: var(--hex); background: linear-gradient(160deg, #5a7097, var(--slate) 45%, #3c5072); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 calc(var(--hw) * .17); flex-shrink: 0; text-decoration: none; transition: transform .2s, background .2s; }
.hex-tile:hover, .hex-tile:focus-visible { background: linear-gradient(160deg, #d08a45, var(--copper) 50%, var(--copper-600)); color: #fff; transform: scale(1.06); }
.hex-num { font-size: .7rem; letter-spacing: .14em; opacity: .7; font-weight: 600; }
.hex-title { font-family: var(--serif); font-weight: 600; font-size: clamp(.82rem, 1.25vw, 1.02rem); line-height: 1.2; margin-top: 4px; }
.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.topic-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: .2s; }
.topic-card:hover { border-color: var(--slate-200); box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.topic-card h3 { font-size: 1.2rem; margin: 0; }
.topic-card p { font-size: .92rem; color: var(--muted); margin: 0 0 6px; flex: 1; }
.topic-num { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--copper); }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; align-items: start; }
.side-nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-nav h3 { font-family: var(--font); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px 10px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .94rem; }
.side-nav a:hover { background: var(--slate-100); }
.side-nav a.is-active { background: var(--slate-100); color: var(--navy-800); font-weight: 600; box-shadow: inset 3px 0 0 var(--copper); }
.sec-title { font-size: 1.4rem; margin: 32px 0 14px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 14px; height: 12px; background: var(--copper); clip-path: var(--hex); }
.sec-title:first-child { margin-top: 0; }
.sec-title small { font-family: var(--font); font-size: .8rem; color: var(--muted); font-weight: 500; }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 22px 0; }
.figure-grid a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; display: flex; align-items: center; justify-content: center; }

/* ---------- prose (rich text from the editor) ---------- */
.prose { font-size: 1rem; line-height: 1.72; overflow-wrap: anywhere; }
.prose > *:last-child { margin-bottom: 0; }
.prose img { border-radius: 8px; height: auto !important; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 6px 10px; vertical-align: top; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1em 0; padding: 4px 18px; border-left: 3px solid var(--copper); color: var(--muted); }
.prose-refs li, .prose-refs p { font-size: .94rem; }
.prose.small { font-size: .93rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.narrow { max-width: 880px; }
.narrow-block { max-width: 800px; margin-bottom: 24px; }
.prose-card { padding: 28px 32px; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); background: #fff; border: 1px dashed var(--slate-200); border-radius: var(--radius); }

/* ---------- presentations / projects ---------- */
.pres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pres-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: .2s; }
.pres-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.pres-card h2 { font-size: 1.35rem; margin: 10px 0 0; }
.pres-card p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.pres-icon { width: 58px; aspect-ratio: 1.1547; clip-path: var(--hex); background: linear-gradient(135deg, var(--slate), var(--navy-700)); color: #fff; display: flex; align-items: center; justify-content: center; }
.pres-card:hover .pres-icon { background: linear-gradient(135deg, #d08a45, var(--copper-600)); }
.pres-icon svg { width: 24px; height: 24px; }
.pres-item { padding: 24px 26px; margin-bottom: 16px; }
.pres-item h2 { font-size: 1.2rem; }
.pres-item h2 a { color: var(--ink); text-decoration: none; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .strong { font-weight: 600; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 24px; }
.facts > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.facts-stack { grid-template-columns: 1fr; text-align: left; gap: 0; margin: 18px 0 0; }
.facts-stack > div { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0; background: none; }

/* ---------- publications ---------- */
.covers-strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.covers-strip a { flex: 0 0 auto; scroll-snap-align: start; }
.covers-strip img { height: 210px; width: auto; border-radius: 6px; box-shadow: var(--shadow-lg); transition: transform .2s; display: block; }
.covers-strip a:hover img { transform: translateY(-4px) rotate(-1deg); }
.pub-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 18px; margin-bottom: 26px; position: sticky; top: 84px; z-index: 5; }
.pub-toolbar.slim { position: static; margin-bottom: 22px; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; flex: 1 1 260px; max-width: 420px; }
.search-field:focus-within { border-color: var(--slate); background: #fff; }
.search-field svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-field input { border: 0; background: transparent; padding: 10px 0; font: inherit; width: 100%; outline: none; }
.year-chips { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 100%; padding-bottom: 2px; scrollbar-width: thin; }
.year-chips .chip { padding: 4px 12px; font-size: .82rem; flex-shrink: 0; }
.pub-count { margin: 0; font-size: .88rem; }
.year-head { font-size: 1.5rem; color: var(--navy-800); margin: 34px 0 14px; display: flex; align-items: center; gap: 14px; }
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.year-head:first-child { margin-top: 0; }
.pub { display: grid; grid-template-columns: 34px 170px 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 14px; margin-bottom: 12px; box-shadow: var(--shadow); transition: border-color .15s; }
.pub:hover { border-color: var(--slate-200); }
.pub:target { border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-200); }
.pub-no { font-size: .78rem; font-weight: 700; color: var(--muted); text-align: right; align-self: start; padding-top: 4px; }
.pub-thumb { display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; padding: 8px; min-height: 90px; }
.pub-thumb img { max-height: 120px; object-fit: contain; border-radius: 4px; }
.pub-thumb-empty { background: linear-gradient(135deg, var(--slate-100), #fff); }
.pub-link { margin-top: 8px !important; }
.pub-link a { font-weight: 600; font-size: .88rem; }
.pub-single { padding: 28px; text-align: center; margin-bottom: 20px; }
.pub-single img { max-height: 340px; margin-bottom: 18px; }
.pub-single .citation p { text-align: center !important; }

/* ---------- members ---------- */
.pi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 12px; }
.pi-card { display: flex; align-items: center; gap: 22px; padding: 22px; background: linear-gradient(135deg, #fff 60%, var(--slate-100)); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: .2s; }
.pi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.pi-card > span:last-child { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pi-card strong { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.member-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.member-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: .2s; }
.member-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); border-color: var(--slate-200); }
.member-card strong { font-size: .98rem; color: var(--ink); line-height: 1.3; margin-top: 10px; }
.member-role { font-size: .82rem; color: var(--copper-600); font-weight: 600; }
.avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--slate-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.avatar > span { font-family: var(--serif); font-size: 2.4rem; color: var(--slate); }
.avatar-lg { width: 120px; height: 120px; }
.avatar-xl { width: 180px; height: 180px; margin: 0 auto; }
.profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.profile-card { padding: 28px 24px; text-align: center; position: sticky; top: 96px; }
.profile-card h2 { font-size: 1.4rem; margin: 18px 0 0; }
.profile-body { display: flex; flex-direction: column; gap: 18px; }
.profile-sec { padding: 24px 28px; }
.profile-sec .sec-title { margin-top: 0; font-size: 1.2rem; }
.pager-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-weight: 600; font-size: .92rem; }
.pager-nav a { text-decoration: none; }

/* ---------- galleries ---------- */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.device { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: .2s; }
.device:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.device .img { position: relative; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.device .img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; border-radius: 6px; }
.device-name { flex: 1; display: flex; align-items: center; min-height: 52px; padding: 12px 16px; font-weight: 600; color: var(--ink); font-size: .95rem; border-top: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.photo { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg); }
.photo .img { display: block; width: 100%; height: 100%; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo:hover img { transform: scale(1.04); }
.cover-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cover-grid .photo { aspect-ratio: 3 / 4; background: #fff; }
.cover-grid .photo img { object-fit: contain; }

/* ---------- news ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; margin-bottom: 16px; position: relative; }
.timeline time { height: 64px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.timeline-card { padding: 18px 22px; }
.timeline-card h2 { font-family: var(--font); font-size: 1.02rem; font-weight: 600; margin: 0; line-height: 1.45; }
.timeline-card h2 a { color: var(--ink); text-decoration: none; }
.timeline-card .prose { margin-top: 8px; color: var(--muted); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination a.is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- search ---------- */
.search-big { display: flex; gap: 10px; margin-bottom: 28px; }
.search-big input { flex: 1; font: inherit; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--slate-200); background: #fff; }
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #aab7cb; margin-top: 64px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand strong { font-family: var(--serif); color: #fff; font-size: 1.2rem; }
.site-footer h3 { color: #fff; font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: #d6deea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .muted { color: #8796ad; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.partners { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.partners span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8796ad; }
.partners a { background: #fff; border-radius: 8px; padding: 6px 10px; display: flex; }
.partners img { height: 32px; width: auto; display: block; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; padding-bottom: 22px; font-size: .84rem; flex-wrap: wrap; }
.dev-credit { color: inherit; text-decoration: none; opacity: .8; transition: opacity .2s; }
.dev-credit:hover { opacity: 1; text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 26, .92); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lightbox figcaption { color: #dbe3ee; margin-top: 12px; text-align: center; font-size: .92rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-search input { width: 80px; }
  .site-nav > ul > li > a { padding: 9px 9px; font-size: .9rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px 32px; gap: 16px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
  body.nav-open .site-nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav > ul > li.is-active > a { box-shadow: inset 3px 0 0 var(--copper); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
  .caret { display: none; }
  .nav-search { padding: 4px 6px 4px 16px; }
  .nav-search input { width: 100%; flex: 1; font-size: 1rem; }
  .hero .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 80px; }
  .hero-visual { display: none; }
  .home-split, .with-aside, .profile { grid-template-columns: 1fr; }
  .side-nav, .profile-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pub-toolbar { top: 76px; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 64px; }
  .site-nav { inset: 64px 0 0 0; }
  .brand img { width: 44px; }
  .brand-text { font-size: 1rem; }
  .brand-text small { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats > div { padding: 16px 18px; }
  .stats strong { font-size: 1.6rem; }
  .card-head { padding: 18px 18px 0; }
  .slider { margin: 14px 18px 0; }
  .topic-chips { padding: 16px 18px 0; }
  .news-list { padding: 4px 18px 14px; }
  .pub-feature { grid-template-columns: 1fr; }
  .pub-feature-img img { max-height: 200px; }
  .honeycomb { display: none; }
  .pub { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .pub-no { text-align: left; padding: 0; }
  .pub-thumb-empty { display: none; }
  .pub-toolbar { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile-sec, .prose-card { padding: 20px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .avatar { width: 88px; height: 88px; }
  .avatar-xl { width: 150px; height: 150px; }
  .pi-card { flex-direction: column; text-align: center; }
  .pi-card > span:last-child { align-items: center; }
  .subnav { display: flex; border-radius: 14px; }
  .subnav a { flex: 1; text-align: center; padding: 8px 10px; }
  .timeline::before { left: 25px; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 12px; }
  .timeline time { height: 52px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
