/* ============================================================
   NeuroCog — Neuropsychology and Cognition Group, UIB
   Design system: ink navy + indigo/cyan gradient accents
   ============================================================ */
:root {
  --ink: #090e1f;
  --ink-2: #101631;
  --ink-3: #1a2244;
  --paper: #f7f8fc;
  --white: #ffffff;
  --text: #1c2237;
  --text-muted: #5a6178;
  --text-on-dark: #e8eaf4;
  --text-on-dark-muted: #9aa2c0;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --grad: linear-gradient(100deg, #818cf8, #22d3ee);
  --grad-strong: linear-gradient(100deg, #6366f1, #06b6d4);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(12, 18, 48, .25);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  /* hairline system — the "expensive" editorial look leans on 1px lines, not shadows */
  --line: rgba(20, 27, 56, .12);
  --line-strong: rgba(20, 27, 56, .22);
  --line-dark: rgba(255, 255, 255, .12);
  --ease-out: cubic-bezier(.2, .65, .25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageIn .55s ease both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--grad-strong);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 1001;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .35s, box-shadow .35s, transform .35s;
}
.site-header.scrolled {
  background: rgba(9, 14, 31, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(5, 8, 20, .35);
}
.site-header.hidden { transform: translateY(-100%); }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { color: var(--accent-2); display: grid; place-items: center; }
.brand-text { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: .01em; }
.brand-text em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text.big { font-size: 1.9rem; }

.site-nav { display: flex; gap: 6px; }
.site-nav a {
  color: var(--text-on-dark-muted); font-size: .92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 99px; transition: color .25s, background .25s;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; background: rgba(255, 255, 255, .1); }

/* inner pages: dark header zone is shorter, keep same header styling */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; position: relative; z-index: 1002; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 6px auto; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 70% 10%, #1d2752 0%, var(--ink) 55%);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 28px 80px;
}
.hero-bg { position: absolute; inset: -12% 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; animation: heroBgIn 2.2s ease .2s forwards;
}
@keyframes heroBgIn { to { opacity: .8; } }
.hero-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-bg video.playing { opacity: .8; }
.hero::after { /* legibility veil over the image */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(90% 90% at 50% 45%, rgba(9,14,31,.25) 0%, rgba(9,14,31,.78) 100%);
}
#neuralCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; z-index: 2; }
.hero-content { position: relative; max-width: 980px; text-align: center; z-index: 3; }
.hero-kicker {
  font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 26px; font-weight: 600;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.06; color: #fff; margin-bottom: 30px;
}
.hero-title .line-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line { display: inline-block; }
.hero-title .accent {
  font-style: italic;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 640px; margin: 0 auto 38px; color: var(--text-on-dark-muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.3); border-radius: 16px; z-index: 3; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: var(--accent-2); animation: scrollHint 1.8s infinite ease-in-out; }
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 99px; font-weight: 600; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-primary { background: var(--grad-strong); color: #fff; box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(99, 102, 241, .7); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.btn-ghost.dark-ghost { border-color: rgba(28, 34, 55, .25); color: var(--text); }
.btn-ghost.dark-ghost:hover { background: rgba(28, 34, 55, .06); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--text-on-dark-muted); overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.07); }
.marquee-track { display: flex; gap: 36px; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; }
.marquee-track .dot { color: var(--accent-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.alt { background: #eef0f8; }
.section.dark { background: var(--ink); color: var(--text-on-dark); }
.section.dark .section-title { color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

.eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: 14px;
}
.section.dark .eyebrow { color: var(--accent-2); }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 28px; color: var(--ink);
}
.section-title em { font-style: italic; background: var(--grad-strong); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title.small { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }

.body-text p { margin-bottom: 1.1em; }
.body-text.muted { color: var(--text-muted); }
.section.dark .body-text { color: var(--text-on-dark-muted); }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.split-media { display: grid; gap: 28px; }
.tilt-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: perspective(900px); }
.tilt-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.stat { padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat:hover { background: #f2f4fc; }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; display: block; background: var(--grad-strong); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; display: block; }
.stats-since { margin-top: 14px; font-size: .82rem; color: var(--text-muted); font-style: italic; }

/* ---------- research cards (home) ---------- */
.cards-stack { display: grid; gap: 14px; margin-top: 30px; }
.research-card {
  display: grid; grid-template-columns: 60px 1fr 180px 40px; align-items: center; gap: 28px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius); padding: 26px 30px;
  transition: background .3s, border-color .3s, transform .3s;
}
.research-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(99, 102, 241, .5); transform: translateX(8px); }
.card-index { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--accent-2); }
.research-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: #fff; margin-bottom: 6px; }
.research-card p { color: var(--text-on-dark-muted); font-size: .92rem; }
.card-img { border-radius: 12px; overflow: hidden; height: 90px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .5s; }
.research-card:hover .card-img img { transform: scale(1.08); }
.card-arrow { font-size: 1.4rem; color: var(--accent-2); transition: transform .3s; }
.research-card:hover .card-arrow { transform: translateX(6px); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .35s, transform .35s var(--ease-out); display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.news-card figure { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.news-card figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(9,14,31,.15)); opacity: 0; transition: opacity .4s; }
.news-card:hover figure::after { opacity: 1; }
.news-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover figure img { transform: scale(1.05); }
.news-card time { font-size: .76rem; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 22px 24px 0; }
.news-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1.28; padding: 8px 24px 0; letter-spacing: -.01em; }
.news-card p { padding: 10px 24px 24px; color: var(--text-muted); font-size: .92rem; margin-top: auto; }

/* ---------- join ---------- */
.join-section { position: relative; overflow: hidden; background: var(--ink); }
.join-section::before { /* drifting aurora glow — GPU-cheap, no image payload, no external request */
  content: ''; position: absolute; inset: -25%; z-index: 0;
  background:
    radial-gradient(38% 46% at 22% 28%, rgba(99, 102, 241, .40), transparent 60%),
    radial-gradient(42% 48% at 80% 70%, rgba(34, 211, 238, .30), transparent 60%),
    radial-gradient(34% 42% at 55% 52%, rgba(129, 140, 248, .24), transparent 62%);
  filter: blur(18px);
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1.05); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.06); }
}
.join-section > .container { position: relative; z-index: 1; }
.join-section .btn { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .join-section::before { animation: none; } }

/* ---------- film grain overlay ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- logos ---------- */
.logos-section { padding: 70px 0; }
.logo-row { display: flex; gap: 56px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.logo-row img { height: 60px; width: auto; filter: grayscale(1) opacity(.6); transition: filter .3s; }
.logo-row a:hover img { filter: none; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 88% -20%, rgba(34, 211, 238, .16) 0%, transparent 55%),
    radial-gradient(120% 130% at 80% -10%, #1d2752 0%, var(--ink) 60%);
  color: var(--text-on-dark);
  padding: calc(var(--header-h) + 104px) 0 96px;
  border-bottom: 1px solid var(--line-dark);
}
.page-hero canvas.page-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; z-index: 0; }
.page-hero::after { /* soft vignette so text stays crisp over the particles */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(90% 120% at 25% 40%, transparent 0%, rgba(9, 14, 31, .55) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--accent-2); }
.page-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem); color: #fff;
  line-height: .98; letter-spacing: -.015em; margin-bottom: 20px;
}
.page-title em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { max-width: 640px; color: var(--text-on-dark); opacity: .82; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; }

/* ---------- research page ---------- */
.area-nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 252, .9); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e5f0; }
.area-nav .container { display: flex; gap: 4px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.area-nav a { white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--text-muted); padding: 8px 16px; border-radius: 99px; transition: background .25s, color .25s; }
.area-nav a span { color: var(--accent); font-family: var(--font-display); font-style: italic; }
.area-nav a:hover { background: #e7e9f6; color: var(--text); }
.area-nav a.active { background: var(--ink); color: #fff; }
.area-nav a.active span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.research-area { scroll-margin-top: 70px; }
.area-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 36px; }
.area-index { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; background: var(--grad-strong); -webkit-background-clip: text; background-clip: text; color: transparent; }
.area-split { gap: 56px; }
.subsection { margin-bottom: 28px; }
.subsection h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 10px; }
.findings { background: var(--white); border: 1px solid var(--line); border-left: 3px solid transparent; border-image: var(--grad-strong) 1; border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 30px; }
.section.alt .findings { background: var(--paper); }
.findings h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.findings li { margin: 0 0 10px 18px; font-size: .95rem; }
.pull-quote { margin-top: 56px; padding: 0 8vw; text-align: center; }
.pull-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; color: var(--ink-3); }
.pull-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: .9rem; color: var(--text-muted); }

/* ---------- funded projects timeline ---------- */
.project-timeline { list-style: none; margin-top: 36px; position: relative; }
.project-timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .4; }
.project-item { position: relative; padding: 0 0 26px 40px; }
.project-item::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad-strong); box-shadow: 0 0 0 4px rgba(99,102,241,.18); }
.project-period { display: inline-block; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--accent-2); margin-bottom: 4px; }
.project-text { color: var(--text-on-dark-muted); font-size: .96rem; line-height: 1.6; }

/* ---------- people (editorial portraits) ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 28px 24px; margin-top: 34px; }
.people-grid.compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 20px; }
.person-card { position: relative; text-align: left; }
/* rectangular editorial portrait — grayscale→colour on hover unifies mismatched photos */
.person-photo {
  position: relative; width: 100%; aspect-ratio: 4 / 5; margin: 0 0 16px;
  border-radius: 14px; overflow: hidden; background: #dfe3f1;
  box-shadow: inset 0 0 0 1px var(--line);
}
.person-photo::after { /* graphite duotone veil, lifted on hover */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 14, 31, .34) 100%);
  opacity: .9; transition: opacity .4s var(--ease-out);
}
.person-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter .5s var(--ease-out), transform .6s var(--ease-out);
}
.person-card:hover .person-photo img { filter: grayscale(0) contrast(1); transform: scale(1.04); }
.person-card:hover .person-photo::after { opacity: .5; }
.people-grid.compact .person-photo { aspect-ratio: 1 / 1; border-radius: 12px; }
.person-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; line-height: 1.15; letter-spacing: -.01em; }
.people-grid.compact h3 { font-size: 1.02rem; }
.person-role { font-size: .82rem; font-weight: 700; letter-spacing: .01em; color: var(--accent); margin: 6px 0 8px; }
.person-topics { font-size: .86rem; color: var(--text-muted); line-height: 1.5; }
.person-links { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.person-links a { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); position: relative; padding-bottom: 2px; }
.person-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--grad-strong); transition: right .3s var(--ease-out); }
.person-links a:hover::after { right: 0; }
.collab-list { columns: 2; gap: 48px; list-style: none; margin-top: 22px; }
.collab-list li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--text-on-dark-muted); break-inside: avoid; transition: color .25s, padding-left .3s var(--ease-out); }
.collab-list li:hover { color: #fff; padding-left: 8px; }

/* ---------- publications ---------- */
.pub-tools { display: flex; flex-direction: column; gap: 18px; margin-bottom: 44px; }
#pubSearch {
  width: 100%; max-width: 520px; padding: 15px 22px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid #d8dcec; border-radius: 99px; background: var(--white); outline: none;
  transition: border-color .25s, box-shadow .25s;
}
#pubSearch:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.year-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid #d8dcec; background: var(--white); color: var(--text-muted);
  padding: 7px 16px; border-radius: 99px; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .22s; font-family: var(--font-body);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--grad-strong); border-color: transparent; color: #fff; }
/* editorial list: large year in the margin, hairline-divided entries */
.pub-year-block { display: grid; grid-template-columns: minmax(84px, 150px) 1fr; gap: 12px 40px; padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line-strong); }
.pub-year { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.1rem); background: var(--grad-strong); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; position: sticky; top: 90px; align-self: start; line-height: 1; }
.pub-items { list-style: none; }
.pub-item { padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease-out); }
.pub-items .pub-item:last-child { border-bottom: 0; }
.pub-item:hover { padding-left: 10px; }
.pub-item p { font-size: 1rem; line-height: 1.6; color: var(--text); }
.doi-link { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); position: relative; padding-bottom: 2px; }
.doi-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--grad-strong); transition: right .3s var(--ease-out); }
.doi-link:hover::after { right: 0; }
.no-results { text-align: center; color: var(--text-muted); padding: 40px 0; }
@media (max-width: 720px) {
  .pub-year-block { grid-template-columns: 1fr; gap: 6px; }
  .pub-year { position: static; margin-bottom: 6px; }
}

/* ---------- news page ---------- */
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; scroll-margin-top: 100px; transition: border-color .3s; }
.post:hover { border-color: var(--line-strong); }
.post-image { max-height: 420px; overflow: hidden; }
.post-image img { width: 100%; object-fit: cover; }
.post time { display: block; padding: 28px 36px 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.25; padding: 10px 36px 0; }
.post-summary { padding: 14px 36px 0; color: var(--text-muted); }
.post-more { padding: 18px 36px 32px; }
.post-more summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
.post-more summary::after { content: " ↓"; }
.post-more[open] summary::after { content: " ↑"; }
.post-more .body-text { margin-top: 16px; }
.post-ref { margin-top: 14px; font-size: .88rem; color: var(--text-muted); background: var(--paper); border-radius: 12px; padding: 14px 18px; }

/* ---------- contact ---------- */
.contact-split { align-items: stretch; }
.address { font-style: normal; font-size: 1.05rem; line-height: 1.9; margin: 18px 0 28px; }
.map-embed { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.masonry { columns: 4; gap: 16px; margin-top: 20px; }
.masonry figure { margin-bottom: 16px; border-radius: 14px; overflow: hidden; break-inside: avoid; }
.masonry img { transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.05); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding: 80px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: inline-block; padding: 4px 0; font-size: .93rem; transition: color .25s, transform .3s var(--ease-out); }
.footer-col a:hover { color: var(--accent-2); transform: translateX(4px); }
.footer-col p { font-size: .9rem; margin-top: 10px; }
.footer-brand .brand-text { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 28px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.admin-link { opacity: .5; transition: opacity .25s; }
.admin-link:hover { opacity: 1; color: var(--accent-2); }

/* ---------- reveal animations (JS adds .in) ---------- */
[data-reveal], .reveal-up { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.65,.25,1), transform .8s cubic-bezier(.2,.65,.25,1); }
[data-reveal].in, .reveal-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-up { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  body { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split, .area-split { grid-template-columns: 1fr; gap: 40px; }
  .news-grid { grid-template-columns: 1fr; }
  .research-card { grid-template-columns: 40px 1fr 36px; }
  .card-img { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .collab-list { columns: 1; }
  .masonry { columns: 2; }
}
@media (max-width: 760px) {
  .site-nav {
    position: fixed; inset: 0; background: rgba(9, 14, 31, .97);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .section { padding: 70px 0; }
  .masonry { columns: 2; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
