/* ==========================================================================
   ValamAi — site styles
   Palette taken from the ValamAi mark: deep navy, strand cyan, signal red.
   ========================================================================== */

:root {
  --ink: #081a2c;
  --navy: #0c2740;
  --navy-2: #123757;
  --navy-3: #1a4a70;
  --cyan: #3cc8d8;
  --cyan-soft: #8fe3ec;
  --cyan-deep: #087a8c;
  --brand-teal: #0b5f6b;
  --signal: #e5483d;
  --amber: #f2b84b;
  --violet: #8ea2ff;

  --mist: #f2f6f9;
  --mist-2: #e8eff4;
  --line: #dde6ed;
  --text: #3d4e60;
  --muted: #6b7c8d;
  --heading: #081a2c;
  --white: #ffffff;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 44, .06), 0 2px 8px rgba(8, 26, 44, .05);
  --shadow: 0 10px 30px -12px rgba(8, 26, 44, .22);
  --max: 1200px;
  --gutter: 32px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
a { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
strong { color: var(--heading); font-weight: 600; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--cyan); }

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--heading);
}
.muted { color: var(--muted); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head--split > div { max-width: 680px; }
.section-head p:last-child { margin-bottom: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--cyan-deep);
}
.link-arrow::after {
  content: '\2192';
  transition: transform .2s ease;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.news-card__go svg { width: 20px; height: 20px; }
.btn--primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 8px 24px -10px rgba(60, 200, 216, .8);
}
.btn--primary:hover { background: var(--cyan-soft); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--outline { border-color: var(--line); color: var(--heading); background: #fff; }
.btn--outline:hover { border-color: var(--heading); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(8, 26, 44, .4);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-teal);
}

.nav { margin-left: auto; display: flex; align-items: center; }
.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover { background: var(--mist); text-decoration: none; }
.nav-link[aria-current="page"],
.nav li.is-current > .nav-link { color: var(--cyan-deep); }
.nav li.is-current > .nav-link::before,
.nav-link[aria-current="page"]::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.nav-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.submenu::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -10px;
  height: 10px;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--heading);
}
.submenu a:hover { background: var(--mist); text-decoration: none; }
.submenu a[aria-current="page"] { color: var(--cyan-deep); font-weight: 600; }
.submenu small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.header-cta { margin-left: 8px; padding: 12px 20px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ''; top: -6px; }
.nav-toggle span::after { content: ''; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--dark {
  background: var(--navy);
  color: rgba(255,255,255,.78);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark strong { color: #fff; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.8);
  background:
    radial-gradient(900px 520px at 85% 30%, rgba(60, 200, 216, .22), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(26, 74, 112, .9), transparent 70%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy) 55%, var(--navy-2) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero__strand {
  position: absolute;
  top: 0;
  right: -8%;
  width: 66%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.hero__strand svg { width: 100%; height: 100%; display: block; }

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 72px;
}
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.seq {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seq b { font-weight: 500; }
.seq .a { color: var(--cyan); }
.seq .u { color: var(--signal); }
.seq .g { color: var(--amber); }
.seq .c { color: var(--violet); }
.hero .seq { margin-bottom: 28px; }

.hero__stats {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat {
  padding: 28px 24px 0 0;
}
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__label { font-size: 14px; line-height: 1.5; margin-top: 8px; color: rgba(255,255,255,.62); }

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(60, 200, 216, .2), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--navy) 70%);
  color: rgba(255,255,255,.78);
  padding: 72px 0 80px;
}
.page-hero h1 { color: #fff; margin-bottom: 18px; }
.page-hero .lead { color: rgba(255,255,255,.82); margin-bottom: 0; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero__content { max-width: 720px; }
.page-hero__strand {
  position: absolute;
  top: -10%;
  right: -12%;
  width: 70%;
  height: 120%;
  z-index: 1;
  opacity: .7;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.page-hero__strand svg { width: 100%; height: 100%; display: block; }
.page-hero--compact { padding: 56px 0 64px; }
.page-hero--compact h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .article-meta { margin-top: 8px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 22px;
}
.crumbs a { color: rgba(255,255,255,.7); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { color: var(--cyan); }

/* ---------- Grids & cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--top { align-items: start; }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-2px); }
.section--mist .card { border-color: transparent; box-shadow: var(--shadow-sm); }

.card--dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.72);
}
.card--dark h3 { color: #fff; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(60,200,216,.18), rgba(60,200,216,.06));
  color: var(--cyan-deep);
}
.icon-badge svg { width: 26px; height: 26px; }
.card--dark .icon-badge { color: var(--cyan); background: rgba(60,200,216,.12); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist-2);
  color: var(--navy-3);
}
.tag--cyan { background: rgba(60,200,216,.16); color: var(--cyan-deep); }
.tag--signal { background: rgba(229,72,61,.12); color: #b8322a; }

.figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }

.figure-stat__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--navy-3), var(--cyan-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Proteome coverage visual (home) ---------- */

.coverage {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink), var(--navy-2));
  color: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}
.coverage__head { margin-bottom: 26px; }
.coverage__head .seq { display: block; margin-bottom: 10px; color: var(--cyan); }
.coverage__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.coverage__label { display: block; margin-top: 8px; font-size: 15px; max-width: 360px; }
.dot-field {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}
.dot {
  display: inline-block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(60,200,216,.45);
}
.dot--sm { background: rgba(255,255,255,.18); box-shadow: none; }
.coverage__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  font-size: 13.5px;
}
.coverage__legend span { display: inline-flex; align-items: center; gap: 8px; }
.coverage__legend .dot { width: 10px; height: 10px; box-shadow: none; }

/* ---------- Mechanism steps (technology) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 38px;
  right: -20px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.step h3 { color: #fff; font-size: 1.1rem; }
.step p { margin: 0; font-size: 15.5px; }

/* ---------- Technology pillars ---------- */

.pillar {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar__num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan-deep);
}
.pillar h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.platform-panel {
  margin-top: 36px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: rgba(255,255,255,.78);
}
.platform-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.platform-panel__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.platform-panel__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,.6);
}
.platform-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.platform-feature {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 14.5px;
  line-height: 1.45;
  color: #fff;
}
.platform-feature svg { width: 22px; height: 22px; color: var(--cyan); margin-bottom: 12px; display: block; }

/* ---------- Pipeline tracker ---------- */

.pipeline {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.pl-head, .pl-row {
  display: grid;
  grid-template-columns: 300px 1fr;
}
.pl-head {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pl-head__label { padding: 16px 24px; }
.pl-stages {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.pl-stages span {
  padding: 16px 6px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.pl-row + .pl-row { border-top: 1px solid var(--line); }
.pl-meta { padding: 22px 24px; }
.pl-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan-deep);
  margin-bottom: 4px;
}
.pl-indication {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  line-height: 1.3;
}
.pl-modality { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }

.pl-track {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 8));
}
.pl-bar {
  position: relative;
  height: 14px;
  width: 0;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--navy-3), var(--cyan));
  transition: width 1.2s cubic-bezier(.2, .7, .2, 1);
}
.pl-bar::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--cyan);
  box-shadow: 0 0 0 6px rgba(60,200,216,.18);
}
.pl-row.is-visible .pl-bar,
.no-js .pl-bar { width: var(--progress); }
.pl-status {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.pl-current { display: none; }

.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Program detail ---------- */

.program {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.program:first-child { border-top: 0; padding-top: 0; }
.program__side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.program__code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan-deep);
  margin-bottom: 6px;
}
.program__side h3 { font-size: 1.5rem; }
.program__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.callout {
  border-radius: var(--radius);
  background: var(--mist);
  padding: 24px 28px;
  border-left: 4px solid var(--cyan);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.person {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.person__photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, var(--navy-2), var(--cyan-deep));
  overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.person__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.person__role {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-deep);
  margin: 4px 0 14px;
  line-height: 1.45;
}
.person__bio { font-size: 15.5px; flex: 1; }
.person__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}
.person__link svg { width: 18px; height: 18px; color: #0a66c2; }

/* ---------- News ---------- */

.news-list { display: grid; gap: 20px; }
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
a.news-card:hover { text-decoration: none; border-color: var(--cyan); box-shadow: var(--shadow); }
.news-date {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.news-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 6px;
}
.news-card h3 { font-size: 1.2rem; margin: 10px 0 10px; line-height: 1.35; }
.news-card p { margin: 0; font-size: 15.5px; }
.news-card__go {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--heading);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
a.news-card:hover .news-card__go { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

.news-mini {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-mini .news-date { margin-bottom: 14px; }
.news-mini h3 { font-size: 1.1rem; line-height: 1.4; flex: 1; }

/* ---------- Article ---------- */

.article { font-size: 18px; }
.article h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 15px;
  color: rgba(255,255,255,.7);
}
.boilerplate {
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--mist);
  font-size: 16px;
}
.boilerplate h2 { font-size: 1.15rem; margin: 0 0 10px; }
.article-nav {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- Events ---------- */

.event {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.event:first-child { border-top: 0; padding-top: 0; }
.event__when {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  line-height: 1.6;
}
.event__where { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.event h3 { margin-bottom: 6px; }
.event p:last-child { margin-bottom: 0; }

/* ---------- Notice ---------- */

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff6f5;
  border: 1px solid #f6d2ce;
  color: #6d2b26;
  font-size: 15px;
  line-height: 1.6;
}
.notice svg { width: 22px; height: 22px; color: var(--signal); margin-top: 2px; }
.notice strong { color: #6d2b26; display: block; margin-bottom: 4px; }

/* ---------- Empty state ---------- */

.empty {
  text-align: center;
  padding: 64px 32px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty .seq { color: var(--muted); margin-bottom: 18px; }
.empty .lead { max-width: 560px; margin: 0 auto 24px; }

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: grid; gap: 16px; }
.info-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-row .icon-badge { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.info-row .icon-badge svg { width: 22px; height: 22px; }
.info-row h3 { font-size: 1rem; margin-bottom: 4px; }
.info-row p { margin: 0; font-size: 15.5px; }

.form-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--heading);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 4px rgba(60,200,216,.2);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-status {
  display: none;
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(60,200,216,.14);
  color: var(--brand-teal);
  font-size: 15px;
  font-weight: 500;
}
.form-status.is-visible { display: block; }

.map {
  margin-top: 56px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 64px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(60,200,216,.35), transparent 70%),
    linear-gradient(140deg, var(--navy), var(--navy-2));
  color: rgba(255,255,255,.78);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding: 80px 0 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand span { color: #fff; }
.footer-brand .brand img { filter: drop-shadow(0 0 1px rgba(255,255,255,.3)); background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand p { margin: 18px 0 22px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.82); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; line-height: 1.7; }

.social { display: flex; gap: 10px; }
.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.social svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pl-bar { transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .platform-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pl-head, .pl-row { grid-template-columns: 240px 1fr; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: #fff;
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 18px;
    border-radius: 0;
  }
  .nav-link:hover { background: none; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px;
    display: none;
    min-width: 0;
  }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: none; }
  .has-sub.is-open > .submenu { display: block; }
  .has-sub.is-open .nav-caret { transform: rotate(-135deg); }
  .header-cta { display: inline-flex; margin: 24px 0 0; width: 100%; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }

  .page-hero__strand { width: 130%; right: -60%; opacity: .45; }
  .hero__strand { width: 140%; right: -60%; opacity: .35; }
  .hero__inner { padding-top: 80px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 8px; }

  .split, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .pillar { grid-template-columns: 1fr; gap: 12px; }
  .pillar__num { font-size: 48px; }
  .program { grid-template-columns: 1fr; gap: 24px; }
  .program__side { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 32px; }

  /* Pipeline collapses to stacked rows */
  .pl-head { display: none; }
  .pl-row { grid-template-columns: 1fr; }
  .pl-track { height: 44px; margin: 0 24px 24px; border-radius: 8px; background-color: var(--mist); }
  .pl-status { display: none; }
  .pl-current {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .team-grid, .form-grid, .platform-features { grid-template-columns: 1fr; }
  .card, .form-card { padding: 26px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { padding-left: 16px; }
  .stat { padding-right: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .news-card { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .news-date b { display: inline; font-size: 1.4rem; margin-right: 6px; }
  .news-card__go { display: none; }
  .event { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .back-to-top { right: 16px; bottom: 16px; }
}
