/* 01 Design tokens */

:root {
  --navy: #0d2034;
  --navy-2: #19324a;
  --ink: #172b3e;
  --muted: #586575;
  --line: #dedfe3;
  --paper: #f7f6f2;
  --white: #ffffff;
  --gold: #edc77e;
  --gold-soft: #f6eedf;
  --surface-cool: #eef3f6;
  --max: 1180px;
  --header-height: 96px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-small: .9375rem;
  --type-ui: 1rem;
  --type-body: clamp(1.0625rem, 1.015rem + .15vw, 1.125rem);
  --type-lead: clamp(1.125rem, 1.065rem + .24vw, 1.25rem);
  --type-caption: clamp(.9375rem, .9rem + .12vw, 1rem);
  --type-section: clamp(1.875rem, 1.65rem + 1.1vw, 2.75rem);
  --type-subheading: clamp(1.375rem, 1.25rem + .4vw, 1.625rem);
  --type-profile-name: clamp(1.3125rem, 1.25rem + .15vw, 1.4375rem);
  --type-role: clamp(.9375rem, .91rem + .12vw, 1rem);
  --type-profile-body: clamp(1rem, .98rem + .1vw, 1.0625rem);
  --type-publication: clamp(1.25rem, 1.175rem + .28vw, 1.375rem);
  --leading-body: 1.65;
  --leading-heading: 1.22;
}

/* 02 Base, typography and shared controls */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

button { font: inherit; cursor: pointer; }

button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible { outline: 3px solid #286fc8; outline-offset: 5px; }

.dark-section :focus-visible { outline-color: var(--gold); }

#main-content:focus { outline: none; }

::selection { background: var(--gold); color: var(--navy); }

[id] { scroll-margin-top: calc(var(--header-height) + 24px); }

.shell { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }

.section-pad { padding: 100px 0; }

.dark-section { background: var(--navy); color: var(--white); }

h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }

h1, h2 { letter-spacing: -.032em; }

h2 {
  font-size: var(--type-section);
  font-weight: 690;
  line-height: var(--leading-heading);
  margin: 12px 0 24px;
}

h3 { font-size: var(--type-subheading); font-weight: 700; line-height: 1.35; letter-spacing: -.015em; }

p { margin-bottom: 1em; }

.eyebrow {
  text-transform: uppercase;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.4;
}

.section-heading { max-width: none; margin-bottom: 48px; }

.section-heading > p { max-width: 820px; font-size: var(--type-body); color: var(--muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  font-size: var(--type-ui);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.text-link:hover { text-decoration-thickness: 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--type-ui);
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.button.primary { color: var(--navy); background: var(--gold); }

.button.primary:hover { background: #f8d78f; }

.credentials {
  font-size: .75em;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

/* 03 Header and navigation
   Links remain available when JavaScript is disabled */

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--gold);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  box-shadow: 0 3px 18px rgba(13, 32, 52, .045);
}

.nav-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { flex-shrink: 0; padding: 10px 0; }

.brand img { width: 174px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: var(--type-ui); font-weight: 650; }

.nav-links > a { display: inline-flex; align-items: center; min-height: 44px; color: #414652; }

.nav-links > a:hover, .nav-links > a[aria-current="location"] { color: var(--navy); }

.nav-links > .nav-cta {
  min-height: 46px;
  padding: 8px 19px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

.nav-links > .nav-cta:hover, .nav-links > .nav-cta[aria-current="location"] {
  background: var(--navy-2);
  color: var(--white);
}

.menu-toggle { display: none; }

/* 04 Opening */

.hero {
  display: flex;
  align-items: center;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(ellipse at 85% 42%, rgba(61, 99, 133, .24), transparent 52%),
    linear-gradient(118deg, #0a192a 3%, #10273e 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 74px 0 112px;
}

.hero-copy { min-width: 0; container-type: inline-size; position: relative; z-index: 1; }

.hero-title {
  margin: 0 0 26px;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.19;
}

.hero-title > span { display: block; }

.hero-title .last-line { color: var(--gold); font-size: .86em; white-space: nowrap; }

@supports (font-size: 1cqi) {
  .hero-title { font-size: clamp(1.5rem, 8.15cqi, 3.375rem); }
  .hero-title .last-line { font-size: min(1em, 7.2cqi); }
}

.hero-lead {
  max-width: 58ch;
  margin-bottom: 0;
  color: #c8d4df;
  font-size: var(--type-lead);
  line-height: 1.7;
}

.hero-lead strong { color: var(--white); font-weight: 650; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-actions .button { min-height: 50px; padding-inline: 24px; box-shadow: 0 6px 22px rgba(0, 0, 0, .1); }

.hero-visual { position: relative; min-width: 0; width: 126%; margin-left: -8%; }

.hero-visual img {
  width: 100%;
  mix-blend-mode: screen;
  /* Preserve the existing fade and central image detail */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 82%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 82%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* 05 Clinical context */

.problem { position: relative; z-index: 1; display: flow-root; padding: 76px 0; background: var(--paper); }

.problem > .shell { position: relative; margin-block: 0; }

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.4fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(13, 32, 52, .08);
}

.problem-stat { max-width: none; text-align: center; padding: 30px; border-radius: 20px; background: var(--gold-soft); }

.stat-number {
  font-size: clamp(4.25rem, 5.5vw + 1rem, 6.25rem);
  font-weight: 720;
  letter-spacing: -.065em;
  line-height: .98;
  color: var(--navy);
}

.problem-stat p {
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem);
  font-weight: 550;
  line-height: 1.55;
  margin: 18px 0 14px;
}

.problem-stat span { display: block; color: #626b75; font-size: .875rem; line-height: 1.55; }

.problem-copy { padding: 14px 20px 14px 0; }

.problem-copy h3 {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -.025em;
  margin: 0 0 20px;
}

.problem-copy p {
  max-width: none;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
  margin-bottom: 0;
}

/* 06 Original MINDstat artwork */

.mindstat-system { background: #080c15; }

.system-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.system-diagram { margin: 0; }

.system-diagram > img { width: 100%; }

/* A qualifier and source link retain the original statistic hierarchy */
.stat-number .stat-qualifier { display: block; margin-bottom: 6px; font-size: 1.05rem; line-height: 1.4; font-weight: 550; letter-spacing: 0; }
.stat-source a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.stat-source a:hover { color: var(--navy); }

/* 07 Team
   Four co-founders and two centered contributors on desktop */

.team { background: var(--paper); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 44px 16px;
  padding-top: 30px;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.team-grid > .person {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 23px 28px;
  text-align: center;
  color: #ecf3ff;
  border: 1px solid rgba(130, 157, 188, .2);
  border-radius: 100px 100px 28px 28px;
  background: linear-gradient(160deg, #203553, #14253b);
  box-shadow: 0 14px 38px rgba(14, 25, 44, .13);
}

.person:nth-child(5):nth-last-child(2) { grid-column: 3 / span 2; }

.person-image {
  flex: 0 0 auto;
  width: 146px;
  height: 146px;
  overflow: hidden;
  margin: -20px 0 24px;
  border: 6px solid #283e59;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 14px 22px rgba(0, 0, 0, .2);
}

.person-image > img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 0;
  background: var(--white);
  object-fit: cover;
  object-position: center top;
}

/* Keep the approved portrait centering without altering the source crop */

.person--schiff .person-image > img { transform: translateX(12%); }

.person-info { display: flex; flex: 1; flex-direction: column; min-width: 0; width: 100%; }

.person h3 {
  min-height: 0;
  margin: 0 0 4px;
  color: #ecf3ff;
  font-size: var(--type-profile-name);
  font-weight: 650;
  line-height: 1.3;
}

.person-info > span {
  display: block;
  min-height: 0;
  color: #cdd8e6;
  font-size: var(--type-role);
  font-weight: 500;
  line-height: 1.5;
}

.person h3 .credentials { color: #b7c5d7; }

.person p { margin: 16px 0 0; text-align: left; color: #c2cfdd; font-size: .96875rem; line-height: 1.7; }

.person p.person-affiliations {
  margin: auto 0 0;
  padding-top: 14px;
  text-align: center;
  color: #dfbd79;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Match the advisory links while keeping them readable on the dark team cards */

.founder-link {
  align-self: center;
  flex-shrink: 0;
  gap: .45em;
  margin-top: 8px;
  color: #ecf3ff;
}

.founder-link .linkedin-icon { background: var(--white); border-radius: 2px; }

.founder-link:focus-visible { outline-color: var(--gold); }

/* 08 Advisory board */

.advisor-section { margin-top: 88px; padding-top: 30px; border: 0; }

.advisor-heading { display: block; max-width: none; margin-bottom: 48px; }

.advisor-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px; padding-top: 6px; }

.advisor {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 930px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.advisor:nth-child(even) { width: calc(100% - 100px); margin-left: 100px; }

.advisor > img {
  width: 132px;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50% 50% 6px 6px;
  background: #eee;
  box-shadow: 5px 6px 0 #d3c8b5;
}

.advisor-info { display: block; min-width: 0; }

.advisor-info > span {
  display: block;
  margin-bottom: 6px;
  color: #75684d;
  font-size: var(--type-role);
  font-weight: 600;
  line-height: 1.55;
}

.advisor h3 { margin: 0 0 7px; font-size: var(--type-profile-name); line-height: 1.3; }

.advisor p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--type-profile-body);
  line-height: var(--leading-body);
}

.advisor-link { margin-top: 8px; justify-self: start; gap: .45em; }

.linkedin-icon {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  max-width: none;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
}

/* 09 Publications */

.science { background: var(--surface-cool); }

.science .section-heading > p { max-width: none; }

.publication-list { display: grid; gap: 18px; border: 0; }

.publication {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 28px;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 4px 22px rgba(13, 32, 52, .045);
}

.publication-journal, .publication-copy { min-width: 0; }

.publication-journal {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 6px;
  min-height: 110px;
  border-radius: 14px;
  background: #f5f7f8;
}

/* Preserve the individual optical sizes of the supplied journal artwork */

.publication-journal img {
  width: min(100%, var(--journal-width));
  height: auto;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.journal-current-biology { --journal-width: 155px; }

.journal-ejn { --journal-width: 300px; }

.journal-nejm { --journal-width: 320px; }

.journal-frontiers { --journal-width: 264px; }

.publication h3 {
  margin: 0 0 14px;
  font-size: var(--type-publication);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--ink);
}

.publication-summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--type-profile-body);
  line-height: var(--leading-body);
}

.publication-summary strong { font-weight: 600; }

.publication .authors {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.875rem, 4vw, 1rem);
  white-space: normal;
}

.publication-label { white-space: nowrap; }

.publication .authors .text-link {
  white-space: nowrap;
  display: inline;
  min-height: 0;
  font-size: inherit;
  color: var(--navy);
}

/* Editorial journal identification uses text rather than a recreated logo */
/* 10 Company video
   The supplied poster includes the play symbol
   Load the YouTube player only after the visitor activates the cover */

.video { background: var(--surface-cool); padding-top: 24px; padding-bottom: 80px; }
.video-heading { margin-bottom: 32px; }
.video-intro {
  margin: 10px 0 0;
  max-width: none;
  color: var(--muted);
  font-size: clamp(1rem, .96rem + .18vw, 1.125rem);
  line-height: 1.65;
}
.video-feature { width: min(100%, 1000px); margin: 0 auto; }
.video-frame {
  padding: 5px;
  border: 1px solid rgba(123, 99, 53, .34);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 26px rgba(13, 32, 52, .045);
}
.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0a192a;
}
.video-launch {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.video-launch:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
/* Respect YouTube's minimum player height after the poster has been activated */
.video-player.is-embedded { min-height: 200px; }
.video-player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--type-small);
}
.video-credit { display: block; line-height: 1.6; }
.video-status { margin: 10px 0 0; color: var(--muted); font-size: var(--type-small); line-height: 1.6; }
.video-status[hidden] { display: none; }

/* 11 Funding
   Empty grid cells are never rendered
   Text remains available when external artwork cannot load */

.funding { background: var(--surface-cool); padding: 24px 0 80px; }

.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.funding-grid:empty, .funding-card:empty { display: none; }

.funding-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.funding-card:hover { border-color: #9397a3; box-shadow: 0 6px 20px rgba(17, 20, 38, .07); }

.funding-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.funding-thumbnail--nih { background: #111426; color: #73d6ee; }

.funding-thumbnail--esd { background: #007681; color: var(--white); }

.funding-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.funding-fallback-label { font-size: .8125rem; line-height: 1.4; font-weight: 500; }

.funding-fallback-title {
  font-size: clamp(1.25rem, 1rem + .55vw, 1.5rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.015em;
}

.funding-thumbnail--esd .funding-fallback-title {
  font-size: 2.25rem;
  font-weight: 750;
  letter-spacing: .01em;
}

.funding-thumbnail .funding-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
}

.funding-thumbnail.is-loaded .funding-artwork { opacity: 1; }

.funding-thumbnail.is-loaded .funding-fallback { visibility: hidden; }

.funding-caption { padding: 22px 24px 24px; }

.funding-funder { color: var(--muted); font-size: var(--type-caption); line-height: 1.5; margin: 0 0 8px; }

.funding-card h3 { color: var(--ink); font-size: var(--type-publication); line-height: 1.4; margin: 0; }

/* 12 News mosaic */

.press { background: var(--paper); }

.press .news-heading { margin-bottom: 38px; }

.press .news-heading > p { max-width: none; margin-bottom: 0; }

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  border: 0;
}

.news-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(18, 46, 73, .07);
}

.news-thumbnail {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1.7 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--white);
}

.news-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.news-thumbnail-contain img { object-fit: contain; }

.news-thumbnail-cover img { object-fit: contain; padding: 6px; }

.news-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 26px; }

.news-meta { color: var(--muted); font-size: var(--type-small); line-height: 1.55; margin: 0 0 10px; }

.news-meta time { white-space: nowrap; }

.news-source { font-weight: 600; }

.news-copy h3 {
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.015em;
  margin: 0 0 12px;
}

.news-summary {
  color: var(--muted);
  font-size: var(--type-profile-body);
  line-height: var(--leading-body);
  margin: 0 0 12px;
}

.news-read {
  color: var(--muted);
  font-size: var(--type-ui);
  line-height: 1.65;
  margin: auto 0 0;
  padding-top: 12px;
}

.news-read-label { white-space: nowrap; }

.news-read .text-link { display: inline; min-height: 0; font-size: inherit; color: var(--ink); }

.news-access { color: var(--muted); font-size: .875rem; line-height: 1.6; margin: 8px 0 0; }

.news-item:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
}

.news-item:first-child .news-thumbnail {
  height: 100%;
  min-height: 280px;
  aspect-ratio: auto;
  padding: 26px;
  background: #eff3e5;
}

.news-item:first-child .news-copy { padding: 36px; }

.news-item:first-child h3 { font-size: 1.8rem; line-height: 1.25; }

/* Event and interview thumbnails preserve the existing mosaic */
.news-thumbnail-portrait { padding: 18px; }
.news-thumbnail-event { position: relative; isolation: isolate; background: #f3f0eb; }
.news-thumbnail-event img { opacity: 0; }
.news-thumbnail-event.is-loaded img { opacity: 1; }
.news-thumbnail-event.is-loaded .event-art-fallback { visibility: hidden; }
.event-art-fallback { position: absolute; inset: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--navy); }
.event-art-source { font-size: .85rem; line-height: 1.5; color: var(--muted); }
.event-art-fallback strong { font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.13; font-weight: 650; letter-spacing: -.025em; }
.event-art-year { font-size: 1.75rem; line-height: 1.2; color: #a31a2e; }
.news-kind { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: #f5ead5; color: #73501b; font-size: .8rem; line-height: 1.5; }

/* 13 Closing statement and footer */

.contact { background: var(--navy); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 64px; align-items: end; }

.contact-heading { min-width: 0; container-type: inline-size; }

.contact-heading h2 { margin-bottom: 0; font-size: clamp(1.3125rem, 3.5vw, 2.75rem); line-height: 1.25; }

.contact-heading h2 > span { display: block; }

.contact-heading .closing-gold { color: var(--gold); }

@supports (font-size: 1cqi) {
  .contact-heading h2 { font-size: clamp(1.3125rem, 7.5cqi, 2.75rem); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 152px;
  padding: clamp(22px, 2.3vw, 30px);
  border: 1px solid rgba(237, 199, 126, .28);
  border-radius: 20px;
  background: linear-gradient(135deg, #19324a, #14293e);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-card .contact-label {
  color: #c8d5e1;
  font-size: var(--type-caption);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .07em;
}

.contact-card .contact-email {
  color: var(--gold);
  font-size: clamp(1rem, .9rem + .3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(237, 199, 126, .55);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.contact-card:hover {
  border-color: rgba(237, 199, 126, .65);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .15);
}

.contact-card:hover .contact-email { text-decoration-color: var(--gold); }

.contact-email-row { display: flex; align-items: center; flex-wrap: wrap; width: 100%; gap: 4px; }
.copy-control { position: relative; display: inline-flex; flex-shrink: 0; }
.copy-email { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 1px solid rgba(237, 199, 126, .25); border-radius: 8px; color: var(--gold); background: rgba(255, 255, 255, .03); cursor: pointer; }
.copy-email[hidden] { display: none; }
.copy-email:hover, .copy-email.is-copied { background: rgba(237, 199, 126, .12); border-color: var(--gold); }
.copy-email:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.copy-email svg { display: block; pointer-events: none; }
.copy-feedback { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 5px 9px; border-radius: 6px; background: #091827; color: #fff; font-size: .8125rem; line-height: 1.4; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
.copy-feedback:empty { display: none; }

footer { background: var(--paper); padding: 28px 0; border-top: 1px solid var(--line); }

.footer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }

.footer-inner img { width: 154px; }

.footer-inner p { margin: 0; color: var(--muted); font-size: var(--type-small); line-height: 1.5; }

/* 14 Responsive layouts */

@media (max-width: 1150px) {
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .person:nth-child(5):nth-last-child(2) { grid-column: span 2; }
  .publication { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 28px; padding: 26px; }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-height: 82px; }
  .shell { width: min(var(--max), calc(100% - 48px)); }
  .section-pad { padding: 76px 0; }
  .nav-inner { min-height: 82px; flex-wrap: wrap; gap: 0 20px; }
  .brand img { width: 148px; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 18px; }
  .site-header:not(.nav-ready) { position: relative; }
  .nav-ready .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 76px;
    min-height: 44px;
    padding: 8px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: var(--type-ui);
    font-weight: 650;
  }
  .nav-ready .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 28px rgba(17, 20, 38, .09);
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }
  .nav-ready .nav-links.is-open { display: flex; }
  .nav-ready .nav-links > a { padding: 9px 14px; min-height: 46px; border-radius: 10px; }
  .nav-ready .nav-links > a:not(.nav-cta):hover { background: var(--paper); }
  .nav-ready .nav-links > .nav-cta { justify-content: center; margin-top: 8px; border-radius: 999px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 58px 0 94px; }
  .hero-copy { max-width: 720px; }
  .hero-title { max-width: 100%; }
  .hero-lead { max-width: 650px; }
  .hero-visual { width: min(calc(100% + 24px), 570px); margin-left: 0; justify-self: center; }
  .problem-grid { padding: 24px; gap: 28px; }
  .problem-stat { padding: 24px; }
  .problem-copy { padding-right: 0; }
  .problem-copy h3 { font-size: 1.75rem; }
  .publication { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px; }
  .publication-journal {
    align-self: start;
    justify-self: start;
    width: min(100%, 350px);
    min-height: 68px;
    padding: 16px;
  }
  .funding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .advisor:nth-child(even) { width: 100%; margin-left: 0; }
  .news-list { grid-template-columns: minmax(0, 1fr); }
  .news-item:first-child { display: flex; }
  .news-item:first-child .news-thumbnail {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.7 / 1;
    padding: 20px;
  }
  .news-item:first-child .news-copy { padding: 26px; }
  .news-item:first-child h3 { font-size: 1.35rem; }
}

@media (max-width: 650px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .problem-stat { padding: 26px; }
  .problem-copy { padding: 0 4px 4px; }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 40px); }
  .section-pad { padding: 64px 0; }
  .section-heading { margin-bottom: 34px; }
  .hero { min-height: 0; }
  .hero-grid { gap: 18px; padding: 42px 0 64px; }
  .hero-title { margin: 0 0 24px; }
  .hero-actions { margin-top: 24px; }
  .hero-visual { width: min(calc(100% + 24px), 464px); }
  .problem { padding: 48px 0; }
  .problem-grid { padding: 20px; border-radius: 24px; }
  .problem-stat { padding: 24px; border-radius: 16px; }
  .problem-copy h3 { font-size: clamp(1.5rem, 6.5vw, 1.75rem); margin-bottom: 16px; }
  .problem-copy p { font-size: 1rem; line-height: 1.7; }
  .team-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 48px; padding-top: 28px; }
  .team-grid > .person,
  .person:nth-child(5):nth-last-child(2) {
    grid-column: 1;
    padding: 0 30px 28px;
    border-radius: 80px 80px 28px 28px;
  }
  .person-image { width: 154px; height: 154px; margin-bottom: 22px; }
  .person p { font-size: 1rem; }
  .advisor-section { margin-top: 64px; padding-top: 26px; }
  .advisor-heading { margin-bottom: 34px; }
  .advisor-grid { gap: 34px; }
  .advisor { grid-template-columns: 90px minmax(0, 1fr); gap: 6px 18px; }
  .advisor > img { width: 90px; height: 112px; grid-column: 1; grid-row: 1 / 3; }
  .advisor-info { display: contents; }
  .advisor-info > span { grid-column: 2; align-self: end; margin: 0; }
  .advisor h3 { grid-column: 2; margin: 0; font-size: 1.23rem; }
  .advisor p { grid-column: 1 / -1; margin: 16px 0 0; }
  .advisor-link { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
  .publication { padding: 22px 20px; border-radius: 20px; }
  .publication-journal { width: 100%; min-height: 64px; padding: 14px 10px; }
  .publication h3 { font-size: 1.25rem; line-height: 1.4; }
  .publication .authors { font-size: .875rem; }
  .video { padding-top: 8px; padding-bottom: 56px; }
  .funding { padding-top: 8px; padding-bottom: 56px; }
  .funding-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .press .news-heading { margin-bottom: 30px; }
  .news-meta { font-size: .875rem; margin-bottom: 8px; }
  .news-copy h3 { margin-bottom: 10px; }
  .contact-grid { gap: 30px; }
  .contact-card { min-height: 140px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 359px) {
  .publication-list { margin-inline: -8px; }
  .publication { padding-inline: 16px; }
}

/* Full-width diagram on phones, including compact landscape screens
   The 2048px source has empty background before x=80 and after x=1825
   Display x=64 through x=1856, preserving every label, shape and connector
   All other viewport sizes keep the original image dimensions and framing */
@media (max-width: 700px), (max-width: 900px) and (max-height: 500px) {
  .mindstat-system > .shell {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .system-diagram { overflow: hidden; }

  .system-diagram > img {
    width: 114.285714%;
    max-width: none;
    height: auto;
    margin-left: -3.571429%;
  }
}

/* 15 Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .funding-card, .video-play-icon, .contact-card { transition: none; }
}

.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;
}


/* Dynamic MINDstat diagram */
.system-diagram-mobile { display: none; }

@media (max-width: 700px), (max-width: 900px) and (max-height: 500px) {
  .system-diagram-desktop { display: none; }
  .system-diagram-mobile {
    display: block;
    padding: 6px 24px 0;
  }
  .system-diagram-mobile-header { margin: 0 0 22px; }
  .system-diagram-mobile-header h3 {
    margin: 0;
    color: var(--white);
    font-size: clamp(2.4rem, 1.95rem + 2vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -.035em;
  }
  .system-diagram-mobile-header p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.76);
    font-size: clamp(1.1rem, .95rem + .7vw, 1.4rem);
    line-height: 1.35;
  }
  .system-steps-mobile { position: relative; display: grid; gap: 18px; }
  .system-steps-mobile::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 26px;
    bottom: 26px;
    width: 4px;
    border-radius: 999px;
    background: rgba(106,122,150,.5);
  }
  .mobile-step {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0,1fr);
    gap: 16px;
    align-items: start;
  }
  .mobile-step-marker { position: relative; padding-top: 8px; }
  .mobile-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    border: 0;
    box-shadow: none;
  }
  .mobile-step-icon .mobile-step-artwork {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
  }
  .mobile-step-number {
    position: absolute;
    right: 4px;
    top: -4px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f1f4fa;
    color: var(--navy);
    border: 2px solid rgba(10,25,42,.38);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 650;
    line-height: 1;
    z-index: 2;
  }
  .mobile-step-number--gold { background: #f1d07a; }
  .mobile-step-number--blue { background: #44518d; color: var(--white); border-color: rgba(255,255,255,.14); }
  .mobile-step-card {
    border-radius: 26px;
    padding: 24px 22px 22px;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
  }
  .mobile-step-card h4 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(1.1rem, .92rem + .9vw, 1.55rem);
    line-height: 1.1;
    letter-spacing: -.015em;
    font-weight: 700;
  }
  .mobile-step-card p {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.05rem, .98rem + .18vw, 1.18rem);
    line-height: 1.42;
  }
  .mobile-step-card--one { background: #eef1f6; }
  .mobile-step-card--two { background: #d7dde7; }
  .mobile-step-card--three { background: #f1d07a; }
  .mobile-step-card--four { background: #44518d; }
  .mobile-step-card--four h4,
  .mobile-step-card--four p { color: var(--white); }
  .mobile-repeat-banner {
    margin-top: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.72);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    gap: 14px;
    align-items: center;
  }
  .mobile-repeat-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--white);
  }
  .mobile-repeat-icon svg { width: 40px; height: 40px; }
  .mobile-repeat-copy { display: grid; gap: 4px; }
  .mobile-repeat-copy strong,
  .mobile-repeat-copy span {
    color: var(--white);
    line-height: 1.25;
    font-size: clamp(1rem, .94rem + .3vw, 1.14rem);
  }
  .mobile-repeat-copy span { color: rgba(255,255,255,.76); }
}


/* Original publisher and event artwork
   Plain text appears only while the source image is unavailable */
.verified-artwork { position: relative; isolation: isolate; }
.verified-artwork .artwork-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}
.verified-artwork > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
}
.verified-artwork.is-loaded > img { opacity: 1; }
.verified-artwork.is-loaded .artwork-fallback { visibility: hidden; }
.journal-logo-window { width: min(100%, 270px); aspect-ratio: 5 / 1; overflow: hidden; }
.publication-journal .journal-logo-window > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.news-item .news-thumbnail-eclectic { background: #fff; }
.news-thumbnail-eclectic > img { padding: 24px; }
.news-thumbnail-neurologylive > img { padding: 24px; }

/* Center the NeurologyLive wordmark within its news thumbnail */
.news-thumbnail-neurologylive > img {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(82%, 420px);
  max-width: calc(100% - 40px);
  height: auto;
  max-height: 80px;
  padding: 0;
  object-fit: contain;
  object-position: center;
}


/* Neurology Clinical Practice identification for the two Kim 2022 publications */
.journal-neurology-clinical-practice .journal-nameplate {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  max-width: 100%;
  color: #273b62;
}
.journal-neurology-clinical-practice .journal-nameplate-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -.045em;
  font-weight: 700;
}
.journal-neurology-clinical-practice .journal-nameplate-name sup {
  font-family: var(--font-body, Arial, sans-serif);
  font-size: .32em;
  line-height: 0;
  vertical-align: super;
}
.journal-neurology-clinical-practice .journal-nameplate-subtitle {
  font-size: clamp(.8rem, 1.4vw, .94rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .005em;
}


/* NeurologyLive interview: wider mosaic tile with responsive in-card player */
.news-item-video {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr) minmax(0, 40%);
  align-items: stretch;
  min-height: 280px;
}
.news-item-video .news-thumbnail { height: 100%; aspect-ratio: auto; padding: 22px 12px; }
.news-item-video .news-copy { padding: 26px 16px 26px 8px; }
.news-item-video .news-video-pane { min-width: 0; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.news-video-shell { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #0a192a; border-radius: 12px; }
.news-video-launch { width: 100%; height: 100%; border: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 18px; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: .95rem; text-align: center; }
.news-video-launch:hover, .news-video-launch:focus-visible { background: #162c43; }
.news-video-play { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #0a192a; font-size: 1.3rem; padding-left: 3px; }
.news-video-shell iframe { width: 100%; height: 100%; position: absolute; inset: 0; border: 0; }
.news-video-note { margin: 0; font-size: .76rem; line-height: 1.45; color: var(--muted); }
@media(max-width: 1000px) {
  .news-item-video { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); }
  .news-item-video .news-video-pane { grid-column: 1 / -1; padding: 0 22px 22px; }
  .news-item-video .news-thumbnail { height: auto; min-height: 180px; }
}
@media(max-width: 600px) {
  .news-item-video { grid-template-columns: minmax(0, 1fr); }
  .news-item-video .news-thumbnail { height: 110px; min-height: 0; aspect-ratio: auto; padding: 14px 24px 0; }
  .news-item-video .news-copy { padding: 18px 22px; }
  .news-item-video .news-video-pane { grid-column: auto; padding: 0 22px 22px; }
}
