/* ================================================================
   B.AI LAB — SITE DESIGN SYSTEM
   ---------------------------------------------------------------
   Edit this file for the visual system only.
   Content: index.html
   Interactions + research JSON: assets/js/site.js
================================================================ */

@font-face {
  font-family: "RUB Inter";
  src: url("../fonts/RUBInter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RUB Inter";
  src: url("../fonts/RUBInter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RUB Inter";
  src: url("../fonts/RUBInter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfcff;
  --paper-warm: #fdfcf9;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --ink: #191c25;
  --ink-soft: #303542;
  --muted: #737b8e;
  --muted-light: #9aa2b2;
  --line: rgba(40, 46, 68, .11);

  --violet: #7d43ff;
  --violet-deep: #5124b8;
  --violet-soft: #a98aff;
  --blue: #3187ff;
  --blue-soft: #7cc8ff;
  --cyan: #63d2ff;
  --pink: #d856ff;
  --green: #19ae83;

  --gradient: linear-gradient(110deg, var(--violet) 0%, #7868ff 45%, var(--blue) 100%);
  --gradient-soft: linear-gradient(110deg, rgba(125,67,255,.11), rgba(49,135,255,.12));

  --shadow-soft: 0 22px 70px rgba(62, 71, 105, .09);
  --shadow-card: 0 14px 44px rgba(53, 63, 102, .075);

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --container: 1240px;
  --nav-height: 74px;

  --font: "RUB Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(125,67,255,.035), transparent 28%),
    radial-gradient(circle at 92% 42%, rgba(49,135,255,.04), transparent 31%),
    var(--paper);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 124px 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--violet-deep);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 68px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 78px;
  align-items: end;
}

.section-heading h2,
.vision-statement h2,
.leadership-copy h2,
.collaborate-card h2 {
  max-width: 830px;
  font-size: clamp(2.65rem, 5vw, 5.35rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.058em;
}

.section-intro {
  max-width: 600px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .79rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 30px rgba(104, 73, 235, .2);
}

.button-primary:hover {
  box-shadow: 0 16px 38px rgba(104, 73, 235, .26);
}

.button-ghost {
  border-color: rgba(25, 28, 37, .18);
  background: rgba(255,255,255,.68);
}

.button-ghost:hover {
  border-color: rgba(125,67,255,.34);
  background: #fff;
}


/* ================================================================
   00 — NAVIGATION
================================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(44, 52, 81, .08);
  background: rgba(251, 252, 255, .86);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.nav-brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.nav-brand-b,
.nav-brand-lab {
  color: var(--ink);
}

.nav-brand-ai {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #626a7b;
  font-size: .76rem;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--violet-deep);
}

.nav-contact {
  padding: 9px 15px;
  border: 1px solid rgba(79, 49, 171, .13);
  border-radius: var(--radius-pill);
  color: var(--violet-deep) !important;
  background: rgba(255,255,255,.72);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}


/* ================================================================
   01 — HERO
================================================================ */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 58px 0 84px;
  background: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,67,255,.18), rgba(49,135,255,.18), transparent);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  opacity: .52;
}

.hero-glow-a {
  top: 3%;
  right: 5%;
  background: radial-gradient(circle, rgba(98, 185, 255, .19), rgba(98,185,255,0) 66%);
  animation: drift-a 10s ease-in-out infinite alternate;
}

.hero-glow-b {
  left: 7%;
  bottom: -15%;
  background: radial-gradient(circle, rgba(151, 101, 255, .14), rgba(151,101,255,0) 67%);
  animation: drift-b 12s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(-28px, 26px) scale(1.08); }
}

@keyframes drift-b {
  to { transform: translate(36px, -18px) scale(.94); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-kicker {
  color: #696f80;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.hero-kicker span {
  margin: 0 8px;
  color: var(--violet-soft);
}

.hero-logo-wrap {
  width: min(1120px, 100%);
  margin: 28px auto 8px;
  overflow: hidden;
}

.hero-logo {
  width: 100%;
  mix-blend-mode: multiply;
}

.hero-mantra {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  max-width: 1060px;
  margin: 8px auto 0;
  font-size: clamp(1.25rem, 2.25vw, 2.1rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.hero-mantra span {
  white-space: nowrap;
}

.hero-mantra strong {
  font-weight: 500;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 760px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 29px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-top: 31px;
  color: #858b9a;
  font-size: .72rem;
}

.hero-meta strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-meta-dot {
  color: var(--violet-soft);
}


/* ================================================================
   02 — INTERACTIVE PLATFORM
================================================================ */

.platform-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(49,135,255,.07), transparent 28%),
    radial-gradient(circle at 15% 86%, rgba(125,67,255,.06), transparent 30%),
    var(--paper);
}

.platform-card {
  overflow: hidden;
  border: 1px solid rgba(78, 88, 129, .11);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
}

.platform-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
}

.platform-mode {
  margin-bottom: 4px;
  color: var(--violet-deep);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.platform-topbar h3 {
  font-size: 1.04rem;
  font-weight: 500;
}

.platform-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .69rem;
}

.platform-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25c393;
  box-shadow: 0 0 0 5px rgba(37,195,147,.11);
}

.platform-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf5ff;
}

.platform-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #edf5ff;
  transition: opacity .24s ease, transform .34s ease;
}

.platform-stage.is-switching .platform-video {
  opacity: .35;
  transform: scale(1.005);
}

.overview-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  transition: opacity .2s ease;
}

.overview-hotspots[hidden] {
  display: none;
}

.platform-hotspot {
  position: absolute;
  border: 1px solid rgba(113, 77, 229, .0);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.platform-hotspot span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(84, 62, 175, .12);
  border-radius: var(--radius-pill);
  color: #5530b2;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(70, 76, 110, .08);
  backdrop-filter: blur(12px);
  font-size: .64rem;
  font-weight: 600;
  opacity: .8;
  transition: opacity .22s ease, transform .22s ease;
}

.platform-hotspot:hover,
.platform-hotspot:focus-visible {
  border-color: rgba(113,77,229,.3);
  background: rgba(137,100,255,.04);
  box-shadow: inset 0 0 0 1px rgba(49,135,255,.08);
  outline: none;
}

.platform-hotspot:hover span,
.platform-hotspot:focus-visible span {
  opacity: 1;
  transform: translateY(-2px);
}

/* Tune these percentages if the recording crop changes. */
.hotspot-hrv {
  left: 7.7%;
  top: 20%;
  width: 45.5%;
  height: 36.8%;
}

.hotspot-hemo {
  left: 53.3%;
  top: 20%;
  width: 44.8%;
  height: 36.8%;
}

.hotspot-eeg {
  left: 7.7%;
  top: 57.2%;
  width: 31.2%;
  height: 25.8%;
}

.platform-back {
  position: absolute;
  z-index: 6;
  top: 18px;
  left: 18px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(69, 75, 103, .12);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 26px rgba(53, 62, 95, .1);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 600;
}

.platform-corner-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: 270px;
  padding: 9px 13px;
  border: 1px solid rgba(90, 72, 170, .1);
  border-radius: var(--radius-pill);
  color: #697085;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  font-size: .64rem;
}

.platform-footer {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
  padding: 25px 28px 28px;
  border-top: 1px solid var(--line);
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tab {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(75, 80, 110, .11);
  border-radius: var(--radius-pill);
  color: #687082;
  background: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: .66rem;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.platform-tab:hover {
  color: var(--violet-deep);
  border-color: rgba(125,67,255,.24);
}

.platform-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 8px 22px rgba(104, 73, 235, .16);
}

.platform-description {
  align-self: center;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

.software-mantra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.software-mantra-grid article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-card);
}

.mantra-index {
  display: block;
  margin-bottom: 50px;
  color: var(--violet-soft);
  font-size: .66rem;
  font-weight: 600;
}

.software-mantra-grid h3 {
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.software-mantra-grid h3 strong {
  display: block;
  color: transparent;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.software-mantra-grid p {
  margin-top: 20px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
}


/* ================================================================
   03 — RESEARCH VISION
================================================================ */

.vision-section {
  overflow: hidden;
  background: #fff;
}

.vision-statement {
  max-width: 970px;
}

.vision-statement > p:last-child {
  max-width: 820px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
}

.vision-card {
  min-height: 305px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,249,255,.78));
}

.vision-card > span {
  color: var(--violet-soft);
  font-size: .66rem;
  font-weight: 600;
}

.vision-card h3 {
  margin-top: 82px;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -.04em;
}

.vision-card p {
  margin-top: 15px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.75;
}

.architecture-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(90, 72, 170, .1);
  border-radius: var(--radius-lg);
  color: #52596c;
  background: var(--gradient-soft);
  font-size: .74rem;
}

.architecture-strip i {
  color: var(--violet-soft);
  font-style: normal;
}


/* ================================================================
   04 — PROJECTS
================================================================ */

.projects-section {
  background: var(--paper-warm);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: .42fr 1.15fr auto;
  gap: 46px;
  align-items: start;
  padding: 34px 4px 36px;
  border-bottom: 1px solid var(--line);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-meta span {
  color: var(--violet-deep);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-meta em {
  width: fit-content;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  color: #158568;
  background: rgba(25,174,131,.08);
  font-size: .61rem;
  font-style: normal;
}

.project-row h3 {
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.project-row p {
  max-width: 770px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.75;
}

.project-number {
  color: #b1b6c3;
  font-size: .68rem;
  font-weight: 600;
}


/* ================================================================
   05 — LEADERSHIP
================================================================ */

.leadership-section {
  background: #fff;
}

.leadership-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: center;
}

.leadership-visual {
  position: relative;
}

.leadership-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px 4px 28px 4px;
  filter: saturate(.91) contrast(.98);
}

.photo-glow {
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 70%;
  height: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,67,255,.15), rgba(49,135,255,.08), transparent 68%);
  filter: blur(12px);
}

.leadership-copy h2 {
  max-width: 680px;
}

.academic-title {
  margin-top: 25px;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
}

.leadership-text {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.85;
}

.leadership-affiliation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.leadership-affiliation div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leadership-affiliation strong {
  font-size: .72rem;
  font-weight: 600;
}

.leadership-affiliation span {
  color: var(--muted);
  font-size: .74rem;
}

.leadership-affiliation img {
  width: 170px;
  opacity: .88;
}

/* ================================================================
   06 — PUBLICATIONS
================================================================ */

.publications-section { background: var(--paper); }
.publication-list { border-top: 1px solid var(--line); }
.publication-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.journal-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.publication-visual { min-height: 0; align-self: center; }
.journal-name-fallback {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
  text-align: center;
}
.journal-visual img { display: block; max-width: 100%; width: 100%; height: auto; object-fit: contain; }
.publication-visual img { max-height: 180px; mix-blend-mode: multiply; }
.publication-visual[data-journal-kind="cover"] img { width: auto; max-height: 220px; mix-blend-mode: normal; }
.publication-citation { min-width: 0; }
.publication-title {
  margin-top: 10px;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.publication-authors, .publication-meta, .publication-date {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.65;
}
.publication-authors { font-size: .84rem; }
.publication-authors strong { color: var(--ink-soft); font-weight: 600; }
.publication-meta { margin-top: 13px; }
.publication-date { margin-top: 3px; }
.publication-doi { display: inline-block; margin-top: 12px; color: var(--violet-deep); font-size: .72rem; line-height: 1.65; overflow-wrap: anywhere; }
.publication-title a:hover, .publication-doi:hover { text-decoration: underline; text-underline-offset: 4px; }
.publication-actions { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.publication-actions .button { white-space: normal; text-align: center; }
.data-loading, .data-error { padding: 28px 0; color: var(--muted); font-size: .78rem; }

/* ================================================================
   07 — ACADEMIC SERVICE
================================================================ */

.service-section { --academic-border: rgba(81,36,184,.6); --academic-border-hover: rgba(81,36,184,.88); background: #fff; }
.research-topic-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding: clamp(24px, 3vw, 38px);
  border: 2px solid var(--academic-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--paper-warm), #f5f2fc);
}
.topic-journal-identity { min-width: 0; text-align: center; }
.topic-visual { min-height: 0; background: transparent; }
.topic-visual img { max-height: 110px; object-position: center; mix-blend-mode: multiply; }
.topic-role { color: var(--violet-deep); font-size: .94rem; line-height: 1.35; font-weight: 600; }
.research-topic-copy h3 { margin-top: 12px; font-size: clamp(1.25rem, 2.3vw, 1.8rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.35; }
.topic-journal { margin-top: 12px; color: var(--ink-soft); font-size: .84rem; font-weight: 500; line-height: 1.4; }
.journal-publisher { margin-top: 4px; color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.45; }
.topic-link { display: inline-block; margin-top: 22px; color: var(--violet-deep); font-size: .75rem; }
.research-topic-card:hover .topic-link { text-decoration: underline; text-underline-offset: 4px; }
.editorial-affiliations, .peer-review-group { margin-top: 38px; }
.service-label { margin-bottom: 16px; color: var(--ink-soft); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.service-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.editorial-card { position: relative; padding: 23px 48px 23px 24px; border: 2px solid var(--academic-border); border-radius: var(--radius-md); background: var(--paper); }
.editorial-card.has-journal-visual { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; min-height: 120px; }
.editorial-journal-visual img { max-height: 64px; object-position: center; }
.editorial-journal-copy { min-width: 0; }
.editorial-card h4 { font-size: 1.06rem; line-height: 1.4; font-weight: 500; }
.editorial-card .editorial-role { margin-top: 7px; color: var(--ink-soft); font-size: .8rem; line-height: 1.6; font-weight: 500; }
.editorial-card > span { position: absolute; right: 22px; top: 24px; color: var(--violet-deep); }
.journal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.review-journal-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 146px; padding: 28px 22px 18px; border: 2px solid var(--academic-border); border-radius: var(--radius-md); background: var(--paper); }
.review-journal-copy { min-width: 0; max-width: 100%; text-align: center; }
.review-journal-card h4 { font-size: .9rem; font-weight: 500; line-height: 1.4; letter-spacing: -.015em; text-align: center; overflow-wrap: anywhere; }
.journal-arrow { position: absolute; top: 14px; right: 14px; color: var(--muted); font-size: .8rem; line-height: 1; }
.review-journal-visual { justify-content: center; width: 100%; min-height: 0; margin-bottom: 0; padding: 0; }
.review-journal-visual img { width: auto; max-height: 52px; object-position: center; }
/* Limit enlargement of the two smallest landscape mastheads to 1.25x. */
.review-journal-visual img[src$="/digital-health.webp"] { width: 215px; }
.review-journal-visual img[src$="/heliyon.webp"] { width: 140px; }
.review-journal-card.has-journal-cover .review-journal-visual img { max-height: 80px; }
.service-section :is(.research-topic-card, .editorial-card, .review-journal-card):hover { border-color: var(--academic-border-hover); }
.doctoral-review { margin-top: 28px; }
.doctoral-card { padding: 25px 0 0; border-top: 1px solid var(--line); }
.doctoral-card h3 { font-size: .85rem; font-weight: 500; line-height: 1.5; }
.doctoral-card p { max-width: 880px; margin-top: 9px; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.doctoral-card .doctoral-institutions { color: var(--ink-soft); }
.publications-section a:focus-visible, .service-section a:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; border-radius: 4px; }


/* ================================================================
   08 — COLLABORATE
================================================================ */

.collaborate-section {
  padding-top: 100px;
  background: var(--paper);
}

.collaborate-card {
  position: relative;
  overflow: hidden;
  padding: 78px;
  border: 1px solid rgba(101,77,207,.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 86% 15%, rgba(49,135,255,.12), transparent 31%),
    radial-gradient(circle at 70% 80%, rgba(125,67,255,.10), transparent 35%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.collaborate-card h2 {
  max-width: 900px;
}

.collaborate-card > p:not(.eyebrow):not(.contact-note) {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.collaborate-actions {
  display: flex;
  gap: 10px;
  margin-top: 31px;
}

.contact-note {
  margin-top: 18px;
  color: var(--muted-light);
  font-size: .66rem;
}

.contact-note code {
  color: var(--violet-deep);
}


/* ================================================================
   09 — FOOTER
================================================================ */

.site-footer {
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: var(--muted);
  font-size: .65rem;
}

.footer-grid > div:first-child,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-grid strong {
  color: var(--ink);
  font-size: .75rem;
}

.footer-right {
  text-align: right;
}


/* ================================================================
   RESPONSIVE
================================================================ */

@media (max-width: 1050px) {
  .nav-links {
    gap: 17px;
    font-size: .7rem;
  }

  .split-heading,
  .leadership-grid {
    gap: 48px;
  }

  .platform-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    width: min(100% - 34px, var(--container));
  }

  .section {
    padding: 92px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 17px 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(251,252,255,.97);
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 6px;
  }

  .nav-contact {
    border: 0;
    background: transparent;
  }

  .split-heading,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 55px 0 70px;
  }

  .hero-logo-wrap {
    margin-top: 24px;
  }

  .platform-stage {
    aspect-ratio: 16 / 9;
  }

  .platform-hotspot span {
    font-size: .54rem;
    right: 7px;
    bottom: 7px;
    padding: 6px 8px;
  }

  .platform-corner-copy {
    display: none;
  }

  .software-mantra-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .software-mantra-grid article {
    min-height: 0;
  }

  .mantra-index {
    margin-bottom: 34px;
  }

  .vision-card {
    min-height: 250px;
  }

  .vision-card h3 {
    margin-top: 55px;
  }

  .architecture-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .project-number {
    display: none;
  }

  .leadership-visual {
    max-width: 620px;
  }

  .publication-item { grid-template-columns: 185px minmax(0, 1fr); gap: 26px; }
  .research-topic-card { grid-template-columns: 165px minmax(0, 1fr); gap: 26px; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .collaborate-card {
    padding: 52px 30px;
  }
}

@media (max-width: 640px) {
  .hero-kicker {
    line-height: 1.8;
  }

  .hero-mantra {
    display: block;
  }

  .hero-mantra span {
    display: block;
    margin: 3px 0;
    white-space: normal;
  }

  .hero-actions,
  .collaborate-actions {
    flex-direction: column;
  }

  .hero-meta {
    flex-direction: column;
    gap: 4px;
  }

  .hero-meta-dot {
    display: none;
  }

  .section-heading h2,
  .vision-statement h2,
  .leadership-copy h2,
  .collaborate-card h2 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .platform-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .platform-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .platform-tab {
    padding-inline: 10px;
  }

  /* On small screens the explicit tabs are easier to use than video hotspots. */
  .overview-hotspots {
    display: none !important;
  }

  .platform-back {
    top: 10px;
    left: 10px;
  }

  .leadership-affiliation {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-item { grid-template-columns: clamp(82px, 26vw, 112px) minmax(0, 1fr); gap: 17px; padding-block: 27px; align-items: start; }
  .publication-visual { min-height: 0; align-self: start; padding: 0; }
  .publication-visual .journal-name-fallback { font-size: .72rem; line-height: 1.4; }
  .publication-visual img { max-height: 130px; }
  .publication-visual[data-journal-kind="cover"] img { max-height: 150px; }
  .publication-title { font-size: .98rem; margin-top: 8px; }
  .publication-authors, .publication-meta, .publication-date { font-size: .69rem; }
  .publication-authors { font-size: .76rem; }
  .publication-doi { font-size: .66rem; }
  .research-topic-card { grid-template-columns: 1fr; gap: 22px; }
  .topic-visual { min-height: 0; padding: 0; justify-content: center; }
  .topic-visual img { width: min(100%, 260px); max-height: 92px; object-position: center; }
  .topic-visual .journal-name-fallback { font-size: .95rem; }
  .service-stack { grid-template-columns: 1fr; }
  .journal-grid { gap: 10px; }
  .editorial-card.has-journal-visual { grid-template-columns: clamp(94px, 30vw, 124px) minmax(0, 1fr); gap: 15px; padding-left: 18px; padding-right: 44px; }
  .editorial-card h4 { font-size: 1rem; }
  .editorial-card .editorial-role { font-size: .76rem; }
  .review-journal-card { min-height: 150px; gap: 10px; padding: 26px 15px 15px; }
  .review-journal-visual img { max-height: 48px; }
  .review-journal-card.has-journal-cover .review-journal-visual img { max-height: 70px; }
  .review-journal-card h4 { font-size: .82rem; }
  .journal-arrow { top: 12px; right: 12px; }

  .footer-grid {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
