:root {
  --ink: #071826;
  --ink-2: #0d2a3d;
  --paper: #f5f8fa;
  --white: #ffffff;
  --blue: #1565ff;
  --cyan: #39d9d0;
  --mint: #b7f2d0;
  --line: #cbd8df;
  --muted: #557080;
  --warm: #ffb168;
  --shadow: 0 24px 70px rgba(7, 24, 38, .13);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 250, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(7, 24, 38, .08);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; display: block; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-name { font-size: 1.22rem; font-weight: 720; letter-spacing: -.045em; white-space: nowrap; }
.brand-neuro { color: var(--blue); }
.brand-hub { color: var(--cyan); }
.brand-subtitle { margin-top: .28rem; color: var(--ink); font-size: .52rem; font-weight: 560; letter-spacing: .32em; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { padding: .55rem .78rem; border-radius: 9px; text-decoration: none; font-size: .92rem; color: #264453; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--white); }
.nav-links .nav-cta { color: #fff; background: var(--blue); margin-left: .4rem; }
.nav-links .nav-cta:hover { color: #fff; background: #0451dc; }
.menu-button { display: none; border: 0; background: transparent; padding: .5rem; font: inherit; }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 37%; background-image: linear-gradient(90deg, var(--ink) 0%, rgba(7,24,38,.74) 25%, rgba(7,24,38,.14) 72%), url('/scientific-motif.png'); background-repeat: no-repeat; background-position: center right; background-size: cover; opacity: .78; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto -10% -55% 35%; height: 470px; border-radius: 50%; background: radial-gradient(circle, rgba(57,217,208,.21), transparent 66%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; min-height: 680px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 6rem; align-items: center; padding-block: 7rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem; font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #6e8795; }
.hero .eyebrow { color: var(--mint); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 760px; font-size: clamp(3.4rem, 7.2vw, 6.6rem); font-weight: 680; }
.hero h1 em { color: var(--cyan); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lede { max-width: 690px; margin: 1.8rem 0 2.2rem; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.65; color: #b9cbd5; }
.button-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.05rem; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 720; }
.button-primary { background: var(--cyan); color: #061c29; }
.button-primary:hover { background: #6ce7e0; }
.button-secondary { border-color: rgba(255,255,255,.24); color: #fff; }
.button-secondary:hover { background: rgba(255,255,255,.08); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: var(--ink-2); }
.button-outline { border-color: var(--line); background: #fff; }

.metrics { border-bottom: 1px solid var(--line); background: #fff; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { padding: 2rem 2.2rem; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.1; letter-spacing: -.05em; }
.metric span { color: var(--muted); }

.section { padding-block: clamp(5rem, 9vw, 8rem); }
.section-white { background: #fff; }
.section-dark { color: #fff; background: var(--ink); }
.section-dark .eyebrow { color: var(--mint); }
.section-heading { display: grid; grid-template-columns: .75fr 1.25fr; gap: 5rem; align-items: end; margin-bottom: 3.5rem; }
.section-heading h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.section-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading p { color: #a9bdc7; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.capability { min-height: 310px; padding: 2rem; background: #fff; }
.capability-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4.2rem; }
.capability-index { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--blue); }
.science-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: #edf4ff; }
.science-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.science-icon.mint { color: #087e77; background: #e3fbf5; }
.science-icon.warm { color: #9a4b00; background: #fff0df; }
.science-icon { display: none; }
.capability h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.capability p { margin: 0; color: var(--muted); }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.paper-card { grid-column: span 4; display: flex; flex-direction: column; min-height: 360px; color: var(--ink); background: #fff; text-decoration: none; box-shadow: 0 0 0 1px rgba(255,255,255,.14); transition: transform .2s ease, box-shadow .2s ease; }
.paper-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.paper-journal { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 5px solid var(--blue); font-family: Georgia, serif; font-size: 1.05rem; }
.paper-journal small { font-family: Inter, sans-serif; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.paper-body { flex: 1; padding: 2rem 1.35rem; background-image: linear-gradient(rgba(7,24,38,.055) 1px, transparent 1px); background-size: 100% 24px; }
.paper-body h3 { max-width: 330px; font-family: Georgia, serif; font-size: 1.6rem; line-height: 1.18; letter-spacing: -.025em; }
.paper-body p { margin-top: 1rem; color: var(--muted); font-size: .86rem; }
.paper-footer { display: flex; justify-content: space-between; padding: .9rem 1.35rem; border-top: 1px solid #dde6eb; font-size: .76rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.paper-card.tmm .paper-journal { border-color: #f05a47; }
.paper-card.mds .paper-journal { border-color: #8a63e8; }
.paper-card.plos .paper-journal { border-color: #ef8f27; }

.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.audience-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.65); }
.audience-card h3 { margin-bottom: .75rem; font-size: 1.35rem; }
.audience-card p { margin: 0; color: var(--muted); }

.cohort-band { padding-block: 4.5rem; color: #fff; background: var(--ink-2); }
.cohort-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: end; margin-bottom: 2.5rem; }
.cohort-intro h2 { font-size: clamp(2.3rem, 4.5vw, 4.2rem); }
.cohort-intro p { margin: 0; color: #b7c9d2; font-size: 1.05rem; }
.cohort-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.cohort-tile { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.055); }
.cohort-tile strong { color: var(--cyan); font-size: 1.35rem; letter-spacing: -.025em; }
.cohort-tile span { color: #c2d2d9; font-size: .78rem; line-height: 1.35; }

.contact-section { padding-block: 5rem; background: var(--cyan); scroll-margin-top: 76px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4rem; }
.contact-card .eyebrow { color: #17444d; }
.contact-card h2 { max-width: 820px; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.contact-card p:not(.eyebrow) { max-width: 680px; margin: 1.2rem 0 .8rem; color: #17444d; font-size: 1.08rem; }
.contact-email { display: inline-block; color: var(--ink); font-weight: 760; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact-actions { display: grid; gap: .8rem; min-width: 250px; }
.contact-actions .button-secondary { border-color: rgba(7,24,38,.3); color: var(--ink); }
.contact-actions .button-secondary:hover { background: rgba(255,255,255,.28); }
.cta-band { padding-block: 5rem; background: var(--cyan); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.cta-inner h2 { max-width: 820px; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.cta-inner p { max-width: 680px; margin: 1.2rem 0 0; color: #17444d; font-size: 1.08rem; }

.page-hero { --page-art: none; position: relative; overflow: hidden; padding-block: 7rem 5.5rem; color: #fff; background: var(--ink); }
.page-hero::before { content: ""; position: absolute; inset: 0 0 0 34%; background-image: linear-gradient(90deg, var(--ink) 0%, rgba(7,24,38,.76) 23%, rgba(7,24,38,.12) 74%), var(--page-art); background-repeat: no-repeat; background-position: center right; background-size: cover; opacity: .76; pointer-events: none; }
.page-hero-services { --page-art: url('/services-motif.png'); }
.page-hero-publications { --page-art: url('/publications-motif.png'); }
.page-hero-about { --page-art: url('/about-motif.png'); }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(3.3rem, 7vw, 6.4rem); }
.page-hero p { max-width: 760px; margin: 1.6rem 0 0; color: #b7c9d2; font-size: 1.2rem; }
.page-hero .eyebrow { color: var(--mint); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.service-card { padding: 2.5rem; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card:nth-child(2n) { border-right: 0; }
.service-card:nth-last-child(-n+2) { border-bottom: 0; }
.service-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 3.2rem; }
.service-kicker { display: block; color: var(--blue); font-family: ui-monospace, monospace; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.service-card h2 { font-size: 2rem; }
.service-card p { color: var(--muted); }
.service-card ul { margin: 1.3rem 0 0; padding-left: 1.1rem; color: #2d4b5a; }
.service-card li + li { margin-top: .45rem; }

.process { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.process-step { position: relative; min-height: 250px; padding: 2rem; border-top: 3px solid var(--cyan); background: #123147; }
.process-step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 4rem; color: var(--mint); font-family: ui-monospace, monospace; }
.process-step h3 { font-size: 1.5rem; }
.process-step p { color: #a9bdc7; }

.publication-feature { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 410px; margin-bottom: 1.5rem; border: 1px solid var(--line); background: #fff; }
.publication-meta { display: flex; flex-direction: column; justify-content: space-between; padding: 2.3rem; color: #fff; background: var(--ink-2); }
.publication-meta .journal { font-family: Georgia, serif; font-size: 1.35rem; }
.publication-meta .year { font-size: 4.5rem; line-height: 1; letter-spacing: -.07em; color: var(--cyan); }
.publication-copy { padding: 3rem; }
.publication-copy h2 { max-width: 700px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.12; }
.publication-copy p { max-width: 680px; color: var(--muted); }
.text-link { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1rem; color: var(--blue); font-weight: 740; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.cover-stories { display: grid; grid-template-columns: .82fr 1.18fr; gap: 1.5rem; margin-bottom: 5rem; }
.cover-story { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cover-visual { display: block; overflow: hidden; background: #eceeed; }
.cover-visual img { width: 100%; display: block; transition: transform .35s ease; }
.cover-visual:hover img { transform: scale(1.015); }
.cover-story.portrait .cover-visual { padding: 1.3rem; }
.cover-story.portrait img { height: 510px; object-fit: contain; }
.cover-story.landscape img { height: 310px; object-fit: cover; }
.cover-story-copy { padding: 2rem; }
.cover-story-copy .eyebrow { margin-bottom: 1rem; }
.cover-story-copy h2 { font-family: Georgia, serif; font-size: clamp(1.8rem, 3.2vw, 2.75rem); line-height: 1.12; }
.cover-story-copy p { color: var(--muted); }
.article-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.article-links a { color: var(--blue); font-weight: 740; text-decoration: none; }
.article-links a:hover { text-decoration: underline; }

.bibliography-head h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.bibliography-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.bibliography-head p { max-width: 550px; margin: 0; color: var(--muted); }
.bibliography { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bibliography li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.4rem; padding: 1.15rem .35rem; border-bottom: 1px solid var(--line); }
.pub-year { padding-top: .15rem; color: var(--blue); font-family: ui-monospace, monospace; font-size: .82rem; font-weight: 760; }
.pub-citation a, .pub-citation .pub-title { display: inline; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.4; text-decoration: none; }
.pub-citation a:hover { color: var(--blue); text-decoration: underline; }
.pub-citation span { display: block; margin-top: .3rem; color: var(--muted); font-size: .85rem; }

.pub-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.pub-row { display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; padding: 2rem; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pub-row:hover { border-color: var(--blue); }
.pub-row small { color: var(--blue); font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.pub-row h3 { margin-block: 3rem 1.2rem; font-family: Georgia, serif; font-size: 1.7rem; line-height: 1.2; }
.pub-row span { color: var(--muted); }

.bio-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 5rem; align-items: start; }
.bio-aside { position: sticky; top: 110px; padding: 2rem; color: #fff; background: var(--ink); border-radius: var(--radius); }
.bio-photo { width: 100%; aspect-ratio: 1 / 1; display: block; margin-bottom: 1.7rem; border-radius: 14px; object-fit: cover; object-position: center; background: #d5d5d5; }
.bio-aside h2 { font-size: 1.8rem; }
.bio-aside p { color: #a9bdc7; }
.bio-copy > p:first-of-type { margin-top: 0; font-size: 1.45rem; line-height: 1.55; }
.bio-copy h2 { margin: 4rem 0 1.5rem; font-size: 2.8rem; }
.principle { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.principle strong { color: var(--blue); font-family: ui-monospace, monospace; }
.principle h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.principle p { margin: 0; color: var(--muted); }

.site-footer { padding-block: 3.5rem; color: #b2c4cd; background: #04121d; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-size: 1.25rem; font-weight: 760; }
.footer-brand::before { content: ""; width: 48px; height: 48px; flex: 0 0 auto; background-image: url('/neurohub-brain-mark.png'); background-repeat: no-repeat; background-size: contain; background-position: center; }
.footer-grid p { max-width: 560px; margin: .7rem 0 0; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: #d6e2e8; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.13); font-size: .8rem; }

@media (max-width: 920px) {
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; inset: 76px 20px auto; flex-direction: column; align-items: stretch; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin: .25rem 0 0; text-align: center; }
  .hero-grid, .section-heading, .publication-feature, .bio-grid, .cover-stories, .cohort-intro { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; padding-block: 5.5rem; }
  .hero::before { inset: 0 0 0 24%; opacity: .52; }
  .section-heading { gap: 1.5rem; }
  .capability-grid, .audience-grid, .process { grid-template-columns: 1fr; }
  .cohort-grid { grid-template-columns: repeat(2, 1fr); }
  .paper-card { grid-column: span 6; }
  .bio-aside { position: static; }
  .cover-story.portrait img { height: min(680px, 92vw); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .brand { gap: .55rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.08rem; }
  .brand-subtitle { font-size: .46rem; letter-spacing: .28em; }
  h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-grid { min-height: auto; padding-block: 4.5rem; }
  .hero::before { inset: 0; background-image: linear-gradient(90deg, rgba(7,24,38,.98), rgba(7,24,38,.72)), url('/scientific-motif.png'); background-position: 66% center; opacity: .42; }
  .page-hero::before { inset: 0; background-image: linear-gradient(90deg, rgba(7,24,38,.98), rgba(7,24,38,.7)), var(--page-art); background-position: 68% center; opacity: .45; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric, .metric:first-child { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .paper-card { grid-column: span 12; }
  .services-grid, .pub-list { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(2n), .service-card:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .publication-copy { padding: 2rem; }
  .cover-story.landscape img { height: auto; }
  .bibliography-head { align-items: start; flex-direction: column; }
  .bibliography li { grid-template-columns: 52px minmax(0, 1fr); gap: .8rem; }
  .cohort-grid { grid-template-columns: 1fr; }
  .contact-card, .cta-inner, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
