/* Antibody Technology Group, draft site. Tokens first; everything below uses them. */
:root {
  /* colour */
  --navy: #323c57; --slate: #3f4756; --muted: #5a6273; --blue: #5c7499; --sky: #90a8cf;
  --plum: #572542; --magenta: #af628d; --pink: #eeb7c9;
  --forest: #04554f; --forest-dark: #033f3a; --teal: #3d8882; --mint: #c3ded6;
  --mist: #f4f6fb; --line: #e3e6ee; --tint-blue: #ebeef3;
  /* type */
  --font: 'Nunito Sans', 'Avenir Next', Avenir, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --measure: 66ch;
  /* space (4 px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --pad: clamp(16px, 4vw, 56px); --wrap: 1200px;
  /* radius: inner = outer - padding */
  --r-outer: 16px; --r-inner: 8px; --r-control: 10px;
  --shadow: 0 1px 2px rgba(50,60,87,.06), 0 8px 24px rgba(50,60,87,.08);
  --shadow-hover: 0 2px 4px rgba(50,60,87,.08), 0 14px 32px rgba(50,60,87,.12);
  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-press: 120ms; --t-enter: 180ms; --t-exit: 145ms; --t-move: 300ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--slate); background: #fff; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
small { font-size: .92em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--forest); text-decoration-color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
.num, table, .count, .timeline, .presslist .d, .crow .v, .axis { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.lead { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; font-weight: 300; color: var(--slate); max-width: 62ch; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }
.muted { color: var(--muted); font-size: 15px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.hidden { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(50,60,87,.05), 0 10px 30px rgba(50,60,87,.06); view-transition-name: site-header; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: 10px var(--pad); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--navy); }
.brand img { height: 44px; width: auto; }
.brand span { font-size: 19px; line-height: 1.1; font-weight: 500; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; font-size: 15px; padding: 0 11px; border-bottom: 2px solid transparent; transition: border-color var(--t-enter) var(--ease-out); }
.nav a:hover { border-bottom-color: var(--teal); }
.nav a[aria-current="page"], .nav li.active > a { font-weight: 700; border-bottom-color: var(--teal); }
.nav a.cta { border: 1.5px solid var(--navy); border-radius: 99px; padding: 0 18px; min-height: 40px; margin-left: var(--s2); font-weight: 600; transition: background var(--t-enter) var(--ease-out), transform var(--t-press) var(--ease-out); }
.nav a.cta { transition: background 350ms var(--ease-out), border-color 350ms var(--ease-out), color 350ms var(--ease-out), transform var(--t-press) var(--ease-out); }
.btn.join-btn { transition: background 350ms var(--ease-out), border-color 350ms var(--ease-out), color 350ms var(--ease-out), transform var(--t-press) var(--ease-out); }
.nav a.cta:active { transform: scale(.97); }
/* Submenu enters from its trigger and exits back to it, about 20% faster */
.nav .sub { list-style: none; margin: 0; padding: var(--s2); position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); transform-origin: 24px 0;
  opacity: 0; visibility: hidden; transform: scale(.95) translateY(-4px);
  transition: opacity var(--t-exit) var(--ease-in), transform var(--t-exit) var(--ease-in), visibility 0s linear var(--t-exit); }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out), visibility 0s; }
.nav .sub .sub { position: static; box-shadow: none; padding: 0 0 0 var(--s4); min-width: 0; opacity: 1; visibility: visible; transform: none; transition: none; }
.nav .sub a { border: 0; padding: 0 var(--s3); border-radius: var(--r-inner); font-size: 15px; }
.nav .sub a:hover { background: var(--mist); }
.dtu { height: 52px; width: auto; opacity: .85; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--navy); border-radius: var(--r-control); }
.menu-btn svg { position: absolute; inset: 10px; transition: opacity var(--t-enter) var(--ease-out), filter var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); }
.menu-btn .i-close { opacity: 0; filter: blur(4px); transform: scale(.8); }
.menu-btn[aria-expanded="true"] .i-open { opacity: 0; filter: blur(4px); transform: scale(.8); }
.menu-btn[aria-expanded="true"] .i-close { opacity: 1; filter: none; transform: none; }
@media (max-width: 1180px) {
  .dtu { display: none; }
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow); padding: var(--s3) var(--pad) var(--s5); transform-origin: top right;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t-exit) var(--ease-in), transform var(--t-exit) var(--ease-in), visibility 0s linear var(--t-exit); }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out), visibility 0s; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav .sub { position: static; box-shadow: none; padding: 0 0 0 var(--s4); min-width: 0; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav a.cta { margin: var(--s3) 0 0; justify-content: center; }
}

/* Sections */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section.mist { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); max-width: 760px; }
.section-head p { margin: 0; }
.section-foot { margin-top: var(--s5); }
.card { background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.callout { background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); padding: 22px 26px; font-size: 18px; line-height: 1.7; font-weight: 300; max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 22px; border-radius: var(--r-control); font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; font-family: var(--font); cursor: pointer;
  transition: background var(--t-enter) var(--ease-out), transform var(--t-press) var(--ease-out); }
.btn:active, .tap:active { transform: scale(.97); }
.btn.primary { background: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--forest-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.secondary:hover { background: var(--tint-blue); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s3); }
.more { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.more svg { transition: transform var(--t-enter) var(--ease-out); }
.more:hover svg { transform: translateX(3px); }

/* Fields */
.field-input { font-family: var(--font); font-size: 16px; color: var(--navy); min-height: 48px; border: 1.5px solid var(--blue); border-radius: var(--r-control); padding: 0 14px; background: #fff; width: 100%; }
.field-input:focus { outline: 3px solid var(--teal); outline-offset: 2px; border-color: var(--navy); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-outer); box-shadow: var(--shadow); background: #fff; margin: 0 0 var(--s6); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; font-weight: 700; color: var(--navy); background: var(--mist); }
tfoot th, tfoot td { background: #e8f1f0; color: var(--forest); font-weight: 700; border-bottom: 0; }
td:nth-child(n+3), th:nth-child(n+3) { white-space: nowrap; text-align: right; }
.grants h4 { font-size: 22px; font-weight: 500; color: var(--navy); margin: 0 0 var(--s3); }
.grants h2 { margin: var(--s2) 0 var(--s5); }

/* Tools */
.tool-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.viewer-controls { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); align-items: end; }
.viewer-controls .field-input { min-height: 44px; font-size: 15px; }
.chart { background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); padding: 18px 18px 10px; }
.chart-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--navy); }
.chart-rows { display: flex; flex-direction: column; }
.crow { display: grid; grid-template-columns: minmax(190px, 320px) minmax(0, 1fr) 74px; gap: var(--s3); align-items: center; padding: 3px 0; font-size: 14px; }
.crow .nm { text-align: right; line-height: 1.25; overflow: hidden; }
.crow .nm a { font-style: italic; text-decoration: none; }
.crow .nm a:hover { text-decoration: underline; }
.crow .nm small { color: var(--muted); }
.crow .bar { display: flex; height: 16px; background: var(--mist); border-radius: 3px; overflow: hidden; transform-origin: left center; }
.crow .bar i { display: block; height: 100%; }
.gbtns { display: flex; gap: 8px; margin-right: auto; margin-left: 18px; }
.gbtns[hidden] { display: none; }
.gbtns button { font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.gbtns button:hover { background: var(--mist); border-color: var(--navy); }
.crow.ghead { cursor: pointer; }
.crow.ghead:hover .nm b, .crow.ghead:hover .nm em { text-decoration: underline; }
.crow.ghead:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.ghead .chev { display: inline-block; width: 1.1em; font-size: .8em; opacity: .65; }
.crow.ghead { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.crow.ghead:first-child { margin-top: 0; border-top: 0; padding-top: 3px; }
.crow.ghead .nm { color: var(--navy); }
.crow.ghead.l1 .nm { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.crow.ghead.l2 .nm { font-size: 14px; }
.crow.ghead.l3 .nm { font-size: 13px; }
.crow.ghead.l2, .crow.ghead.l3 { margin-top: 6px; padding-top: 4px; border-top: 0; }
.crow.ghead .bar { height: 11px; opacity: .92; }
.crow.grow .bar { animation: grow 420ms var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.crow .v { font-size: 13px; color: var(--muted); }
.axis { display: grid; grid-template-columns: minmax(190px, 320px) minmax(0, 1fr) 74px; gap: var(--s3); font-size: 12px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.axis .ticks { display: flex; justify-content: space-between; }
@media (max-width: 700px) { .crow, .axis { grid-template-columns: 120px minmax(0, 1fr) 52px; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin: 18px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--navy); color: #fff; font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: var(--r-control); max-width: 320px; box-shadow: var(--shadow);
  transform-origin: 0 0; opacity: 0; transform: scale(.95); transition: opacity var(--t-exit) var(--ease-in), transform var(--t-exit) var(--ease-in); }
.tip.on { opacity: 1; transform: none; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); }
.tip b { display: block; font-style: italic; }
.note { font-size: 14px; color: var(--muted); }

/* Page head: a full-width band. White on the left where the text sits, a soft blue wash on the right
   with three layers of antibodies that move at different speeds (depth by size and transparency). */
.page-head, .cta-band { position: relative; overflow: hidden; background: linear-gradient(90deg, #fff 0%, #fff 34%, #eef2f8 72%, #e3e9f4 100%); }
.page-head { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-head.tall { padding: clamp(72px, 9vw, 136px) 0 clamp(64px, 8vw, 112px); }
.layers { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 70%); mask-image: linear-gradient(90deg, transparent 30%, #000 70%); }
.layers span { position: absolute; inset: -25% -5%; background-repeat: repeat; will-change: transform; translate: calc(var(--px, 0) * var(--d, 0) * 1px) calc(var(--py, 0) * var(--d, 0) * 1px); transition: translate 600ms var(--ease-out); }
.layers .far { background-image: url(../images/backgrounds/antibody-field-far.svg); background-size: 360px; --d: 4; }
.layers .mid { background-image: url(../images/backgrounds/antibody-field-mid.svg); background-size: 480px; --d: 10; }
.layers .near { background-image: url(../images/backgrounds/antibody-field-near.svg); background-size: 640px; --d: 20; }
@supports (animation-timeline: scroll()) {
  .layers span { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 600px; }
  .layers .far { --dy: -20px; } .layers .mid { --dy: -60px; } .layers .near { --dy: -130px; }
  @keyframes drift { to { transform: translateY(var(--dy)); } }
}
.page-head .wrap, .cta-band .wrap { position: relative; display: flex; flex-direction: column; gap: var(--s4); }
.page-head .wrap > * { max-width: 680px; }
.page-head h1 { view-transition-name: page-title; }
.page-head.tall h1 { font-size: clamp(44px, 6.4vw, 76px); }
.page-head .lead { margin: 0; }
.page-head .btns { margin-top: var(--s2); }
@media (max-width: 860px) { .layers { -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 100%); mask-image: linear-gradient(180deg, transparent 40%, #000 100%); } .page-head { padding-bottom: 120px; } .page-head.tall { padding-bottom: 160px; } }
.crumbs { font-size: 14px; display: flex; gap: var(--s2); flex-wrap: wrap; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.cta-band { padding: clamp(56px, 7vw, 96px) 0; }
.cta-band .wrap { align-items: flex-start; }
.cta-band p { margin: 0; max-width: 52ch; }
.about { background: #fff; border-top: 1px solid var(--line); }
.about h2 { font-size: 22px; margin-bottom: var(--s3); }
.about p { color: var(--muted); font-size: 15.5px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.draft-note { background: var(--plum); color: #fff; font-size: 14px; text-align: center; padding: 6px 12px; }
.draft-note a { color: var(--pink); }

/* Footer: one row */
.site-footer { background: var(--navy); color: #c7cfe0; padding: 22px 0; font-size: 14px; }
.site-footer .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { height: 36px; }
.site-footer .brand span { font-size: 16px; }
.dtu-foot { height: 40px; width: auto; opacity: .8; filter: brightness(1.6); }

/* Home */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose h2 { margin-bottom: var(--s4); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-outer); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { font-size: 14px; margin-top: var(--s2); display: inline-flex; align-items: center; min-height: 44px; }
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 960px) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .themes { grid-template-columns: 1fr; } }
.theme { background: var(--mist); border-radius: var(--r-outer); padding: var(--s5) var(--s5) var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.theme svg { width: 112px; height: 112px; margin: 0 0 var(--s2) -8px; }
.theme h3 { font-size: 21px; font-weight: 600; }
.theme p { margin: 0; font-size: 15px; color: var(--slate); }
.theme svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .themes:not(.on) svg path { stroke-dashoffset: 1; }
.js .themes:not(.on) svg circle, .js .themes:not(.on) svg text { opacity: 0; }
.themes.on svg path { animation: stroke-draw 900ms var(--ease-out) both; animation-delay: calc(var(--i) * 140ms); }
.themes.on svg circle, .themes.on svg text { animation: fade-in 400ms var(--ease-out) both; animation-delay: calc(var(--i) * 140ms + 600ms); }
@keyframes stroke-draw { from { stroke-dashoffset: 1; } }
@keyframes fade-in { from { opacity: 0; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--s5); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 500; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 15px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } }
.schematic { margin: 0; background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); padding: var(--s6); }
.srows { display: flex; flex-direction: column; gap: 18px; }
.srow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s4); align-items: center; }
.sn b { display: block; color: var(--navy); font-weight: 600; font-size: 16px; }
.sn em { font-size: 14px; color: var(--muted); }
.sbar { display: flex; gap: 3px; height: 28px; transform-origin: left; }
.sbar i { display: block; border-radius: 6px; }
.schematic.on .sbar { animation: grow 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.js .schematic:not(.on) .sbar { transform: scaleX(0); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin: var(--s5) 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 600px) { .srow { grid-template-columns: 1fr; gap: 6px; } }
.latest { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.latest a { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); text-decoration: none; color: var(--slate); background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); transition: box-shadow var(--t-enter) var(--ease-out), transform var(--t-press) var(--ease-out); }
.latest a:hover { box-shadow: var(--shadow-hover); }
.latest b { color: var(--navy); font-weight: 600; font-size: 17px; line-height: 1.4; }
.latest span { font-size: 14px; color: var(--muted); }
.faces { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.faces img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-inner); background: var(--tint-blue); display: block; }
.logo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 18px; }
.logo-strip a { display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px 20px; background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); transition: box-shadow var(--t-enter) var(--ease-out), transform var(--t-press) var(--ease-out); }
.logo-strip a:hover { box-shadow: var(--shadow-hover); }
.logo-strip img { max-height: 56px; max-width: 100%; object-fit: contain; }

/* Research: toolbar stays in view under the header */
.research-bar { position: sticky; top: 64px; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
.research-bar .wrap { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) auto; gap: var(--s4) var(--s6); align-items: end; }
@media (max-width: 960px) { .research-bar { position: static; } .research-bar .wrap { grid-template-columns: 1fr; } }
.filters { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.years { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: 0 2px 4px; margin: 0 -2px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); }
.chip { font-family: var(--font); font-size: 14px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; white-space: nowrap; transition: background var(--t-enter) var(--ease-out), border-color var(--t-enter) var(--ease-out), transform var(--t-press) var(--ease-out); }
.chip:hover { border-color: var(--blue); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .num { opacity: .7; margin-left: 4px; }
.count { font-size: 14px; color: var(--muted); white-space: nowrap; padding-bottom: 8px; }
.pub-section { padding: var(--s5) 0 var(--s8); }
.year-h { font-size: 28px; font-weight: 500; color: var(--navy); margin: var(--s7) 0 var(--s3); scroll-margin-top: 190px; display: flex; align-items: baseline; gap: var(--s3); }
.pubs { display: flex; flex-direction: column; gap: 2px; }
.pub { border-radius: var(--r-control); transition: background var(--t-enter) var(--ease-out); }
.pub summary, .pub .cit { list-style: none; cursor: pointer; padding: 14px 48px 14px var(--s4); position: relative; display: grid; gap: 2px; border-radius: var(--r-control); }
.pub .cit { cursor: default; }
.pub summary::-webkit-details-marker { display: none; }
.pub summary::after { content: ""; position: absolute; right: 20px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform var(--t-move) var(--ease-in-out); }
.pub[open] summary::after { transform: rotate(225deg); top: 26px; }
.pub:hover, .pub[open] { background: var(--mist); }
.pt { color: var(--navy); font-weight: 600; font-size: 16.5px; line-height: 1.45; text-wrap: pretty; }
.pa { font-size: 14px; color: var(--muted); }
.pa b { color: var(--slate); font-weight: 700; }
.pj { font-size: 14px; color: var(--muted); font-style: italic; }
.pub.target { animation: flash 2.4s var(--ease-out) both; }
@keyframes flash { 0%, 55% { background: var(--mint); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .pub.target { animation: none; background: var(--mint); } }
.pub .abs { padding: 0 var(--s4) var(--s4); font-size: 15px; line-height: 1.7; color: var(--slate); max-width: 80ch; }
.pub .abs p { margin: 0 0 .8em; }
.pub .abs .full { font-size: 14px; color: var(--muted); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.pub .abs a { font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .pubs { interpolate-size: allow-keywords; }
  .pub::details-content { height: 0; overflow: hidden; transition: height var(--t-move) var(--ease-in-out), content-visibility var(--t-move) allow-discrete; }
  .pub[open]::details-content { height: auto; }
}
.pub[open] .abs { animation: fade-up 260ms var(--ease-out) 80ms both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } }
.enter { animation: fade-up 220ms var(--ease-out) both; }

/* Tools */
.tools { display: flex; flex-direction: column; gap: var(--s6); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s6); padding: var(--s6); align-items: center; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } }
.tool-text { display: flex; flex-direction: column; gap: var(--s3); }
.tool-text p { margin: 0; }
.tool-art .chart { box-shadow: none; background: var(--mist); }
.tool-art .schematic { box-shadow: none; background: var(--mist); padding: var(--s5); }

/* Team */
.people { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.person { overflow: hidden; display: flex; flex-direction: column; outline-offset: 3px; }
.person .ph { position: relative; aspect-ratio: 1; background: var(--tint-blue); overflow: hidden; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-out), filter 300ms var(--ease-out); }
.person .ov { position: absolute; inset: 0; padding: 20px 20px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: linear-gradient(180deg, rgba(50,60,87,.15), rgba(50,60,87,.94) 45%); color: #fff; font-size: 15px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--t-exit) var(--ease-in), transform var(--t-exit) var(--ease-in); }
.person:hover .ov, .person:focus-visible .ov, .person:focus-within .ov { opacity: 1; transform: none; pointer-events: auto; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); }
.person .ov .bio { margin: 0; }
.person:hover .ph img, .person:focus-within .ph img { transform: scale(1.04); }
/* Touch: no hover, so the description and its links sit under the photo. */
@media (hover: none) { .person .ov { position: static; opacity: 1; transform: none; pointer-events: auto; background: none; color: var(--slate); padding: 14px 20px 0; } }
.person .body { padding: 16px 20px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.person h3 { font-size: 19px; }
.person .role, .alum .role { font-size: 14.5px; color: var(--muted); }
.person p { margin: var(--s2) 0 0; font-size: 15px; line-height: 1.55; }
.person .links, .alum .links { display: flex; flex-wrap: wrap; gap: 0 2px; font-size: 14px; }
.person .ov .links { margin: 2px 0 0 -8px; padding: 0; justify-content: flex-start; gap: 0; }
.person .ov .links a { color: #fff; opacity: .8; min-width: 32px; min-height: 32px; }
.person .ov .links a:hover, .person .ov .links a:focus-visible { opacity: 1; }
.person .ov .links img { filter: brightness(0) invert(1); }
@media (hover: none) { .person .ov .links a { color: var(--muted); opacity: .65; min-width: 40px; min-height: 44px; } .person .ov .links img { filter: none; } }
.alum .nm { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 2px; }
.alum .nm .links { margin: 0; flex: none; gap: 0; }
.alum .nm .links a { min-height: 24px; min-width: 26px; }
/* The round, cropped style is for the portrait only; icons keep their full, uncropped shape. */
.alum .links img { border-radius: 0; background: none; object-fit: contain; }
/* Contact icons: quiet at rest, full strength on hover or keyboard focus. */
.person .links a, .alum .links a { min-height: 36px; min-width: 36px; display: inline-flex; align-items: center;
  justify-content: center; color: var(--muted); transition: opacity var(--t-move) var(--ease-out), color var(--t-move) var(--ease-out); }
.person .links a { opacity: .65; }
.alum .links a { opacity: .7; min-height: 32px; min-width: 30px; }
/* Opacity alone on hover, so the tinted raster mark and the currentColor SVGs
   stay the same grey in both states. */
.person .links a:hover, .person .links a:focus-visible,
.alum .links a:hover, .alum .links a:focus-visible { opacity: 1; }
.person .links svg, .alum .links svg,
.person .links img, .alum .links img { width: 20px; height: 20px; display: block; object-fit: contain; }
.alum .links svg, .alum .links img { width: 18px; height: 18px; }
/* Solid brand marks read heavier than the drawn stroke glyphs, so sit them a shade smaller. */
.person .links img { width: 17px; height: 17px; }
.alum .links img { width: 15px; height: 15px; }
/* Solid marks (ORCID, GitHub) sit a shade smaller, matching the raster LinkedIn mark. */
.person .links a[title="ORCID"] svg, .person .links a[title="GitHub"] svg { width: 18px; height: 18px; }
.alum .links a[title="ORCID"] svg, .alum .links a[title="GitHub"] svg { width: 16px; height: 16px; }
/* Touch and narrow screens: restore full-size tap targets. */
@media (hover: none), (pointer: coarse), (max-width: 640px) {
  .alum .nm .links a { min-width: 36px; min-height: 36px; }
}
.alum-group, .gyear, .myear { border-top: 1px solid var(--line); }
.alum-group > summary, .gyear > summary, .myear > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding: 18px 4px; font-size: 20px; font-weight: 500; color: var(--navy); }
.alum-group > summary::-webkit-details-marker, .gyear > summary::-webkit-details-marker, .myear > summary::-webkit-details-marker { display: none; }
.alum-group > summary .n, .myear > summary .n { font-size: 15px; color: var(--muted); font-weight: 400; }
.alum-group > summary::after, .gyear > summary::after, .myear > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform var(--t-move) var(--ease-in-out); margin-left: var(--s2); align-self: center; }
.alum-group[open] > summary::after, .gyear[open] > summary::after, .myear[open] > summary::after { transform: rotate(225deg); }
.alum-group > summary span:first-child, .gyear > summary .y, .myear > summary span:first-child { flex: 1; }
.alumni { display: grid; gap: var(--s4) var(--s6); grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); padding: 4px 4px var(--s6); }
.alum { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.alum img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--tint-blue); }
.alum h4 { font-size: 16px; }
.alum p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }

/* Grants */
/* Patents, books and outreach */
.filings { margin: 0; padding-left: 1.1em; list-style: square; }
.filings li { font-size: 14px; color: var(--muted); margin: 0 0 .35em; }
.pnote { font-size: 15px; color: var(--muted); margin: var(--s5) 0 0; }
.kind { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; background: var(--tint-blue); color: var(--navy); }
.kind.guideline { background: var(--mint); color: var(--forest); }
.outreach { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--s6); }
.obox h3 { margin-bottom: var(--s3); }
.obox ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.obox li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s3); align-items: baseline; font-size: 15px; }
.obox .oy { color: var(--muted); font-size: 14px; white-space: nowrap; }
.obox .ot a { text-decoration-thickness: 1px; }
.policy { padding: var(--s6) clamp(20px, 4vw, 44px); border-radius: var(--r-outer); background: var(--mist); border-left: 4px solid var(--teal); }
.policy h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 10px; }
.policy p { margin: 0 0 12px; max-width: 76ch; }
.pkicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.pmeta { margin: var(--s4) 0 0; font-size: 14px; color: var(--muted); }
/* Grants: currency toggle */
.gchead { max-width: none; }
.gchead p { max-width: 760px; }
.ghrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.gcur { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tint-blue); cursor: pointer; }
.gthumb { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 999px; background: var(--plum); transition: transform var(--t-move) var(--ease-in-out); }
.gpage.usd .gthumb { transform: translateX(100%); }
.gcur button { position: relative; z-index: 1; flex: 1 1 0; min-width: 66px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 5px 14px; cursor: pointer; transition: color var(--t-enter) var(--ease-out); }
.gcur button:hover { color: var(--navy); }
.gcur button[aria-pressed="true"], .gcur button[aria-pressed="true"]:hover { color: #fff; }
.gcur button:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .gthumb { transition: none; } }
.gpage .cur-usd { display: none; }
.gpage.usd .cur-usd { display: inline; }
.gpage.usd .cur-dkk { display: none; }
.gnote { display: inline-block; margin-left: 6px; color: var(--muted); font-size: 14px; }
.gbar .stack { transition: height var(--t-move) var(--ease-out); }
.gchart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s3); align-items: end; height: 280px; padding-top: var(--s5); }
.gbar { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 6px; height: 100%; text-decoration: none; color: var(--slate); }
.gbar .stack { display: flex; flex-direction: column; height: var(--h); min-height: 4px; border-radius: var(--r-inner) var(--r-inner) 2px 2px; overflow: hidden; transform-origin: bottom; transition: filter var(--t-enter) var(--ease-out); }
.gbar .stack i { display: block; flex-basis: 0; min-height: 0; }
.gbar i.pi, .glegend i.pi { background: var(--plum); }
.gbar i.co, .glegend i.co { background: var(--pink); }
.glegend { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s4); font-size: 14px; color: var(--muted); }
.glegend span { display: inline-flex; align-items: center; gap: var(--s2); }
.glegend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.grole { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.grole.pi { background: var(--plum); color: #fff; }
.grole.co { background: var(--pink); color: var(--plum); }
.gstats { margin-top: 0; }
.small-grants { columns: 300px; column-gap: var(--s6); padding-left: 1.1em; }
.small-grants li { break-inside: avoid; margin-bottom: 4px; }
.pub .plinks { font-size: 14px; margin: var(--s3) 0 0; }
.gchart.on .gbar .stack { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
.js .gchart:not(.on) .gbar .stack { transform: scaleY(0); }
@keyframes rise { from { transform: scaleY(0); } }
.gbar:hover .stack { filter: brightness(1.25); }
.gbar .v { font-size: 14px; text-align: center; color: var(--navy); font-weight: 600; }
.gbar .y { font-size: 14px; text-align: center; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .gbar .y { font-size: 12px; } .gbar .v { font-size: 12px; } .gchart { gap: 4px; } }
.gyear > summary .t { font-size: 16px; color: var(--muted); font-weight: 400; }
.gyear .table-wrap { margin-bottom: var(--s5); }
.grants { scroll-margin-top: 90px; }
.gyear { scroll-margin-top: 90px; }

/* Entrepreneurship timeline: evenly spaced, logos above the line, years below; same-year companies share one label */
.tl-section { padding-top: var(--s5); }
.tl-count { font-size: 18px; color: var(--muted); margin-bottom: var(--s4); }
.tl-count b { font-size: 44px; font-weight: 500; color: var(--navy); margin-right: 6px; font-variant-numeric: tabular-nums; }
.tl-track { position: relative; height: 230px; }
.tl-line { position: absolute; left: 0; right: 0; top: 130px; height: 2px; background: linear-gradient(90deg, var(--sky), var(--blue), var(--magenta)); transform-origin: left; }
.tl.on .tl-line { animation: draw-x 1100ms var(--ease-out) both; }
.js .tl:not(.on) .tl-line { transform: scaleX(0); }
@keyframes draw-x { from { transform: scaleX(0); } }
.node { position: absolute; left: var(--x); top: 130px; width: 0; height: 0; border: 0; padding: 0; background: none; cursor: pointer; font-family: var(--font); }
.node .dot { position: absolute; left: -7px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); z-index: 2; }
.node .logo { position: absolute; left: -46px; bottom: 26px; width: 92px; height: 92px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; padding: 14px; transition: transform var(--t-enter) var(--ease-out), box-shadow var(--t-enter) var(--ease-out); }
.node .logo::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 20px; background: var(--line); }
.node .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.node:hover .logo, .node:focus-visible .logo, .node.active .logo { transform: translateY(-4px) scale(1.06); box-shadow: var(--shadow-hover); }
.tl.on .node .logo { animation: pop 420ms var(--ease-out) both; animation-delay: calc(500ms + var(--i) * 90ms); }
.js .tl:not(.on) .node .logo { opacity: 0; transform: scale(.6); }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.tl-years { position: absolute; left: 0; right: 0; top: 148px; }
.tl-years .yl { position: absolute; left: var(--x); width: var(--w); text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; padding-top: 10px; }
.tl-years .yl.multi { border-top: 2px solid var(--line); border-radius: 2px; }
.node .pop { position: absolute; left: -140px; top: 54px; width: 280px; z-index: 5; background: var(--navy); color: #fff; border-radius: var(--r-control); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; text-align: left; box-shadow: var(--shadow); transform-origin: 50% 0;
  opacity: 0; visibility: hidden; transform: scale(.95); transition: opacity var(--t-exit) var(--ease-in), transform var(--t-exit) var(--ease-in), visibility 0s linear var(--t-exit); }
.node:hover .pop, .node:focus-visible .pop, .node.active .pop { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out), visibility 0s; }
.node:first-of-type .pop { left: -46px; }
.node .pop b { display: block; font-size: 15px; }
.node .pop .num { display: block; color: var(--mint); margin-bottom: 4px; }
@media (max-width: 860px) {
  .tl-track { height: auto; padding-left: 28px; display: flex; flex-direction: column; gap: var(--s4); }
  .tl-line { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky), var(--magenta)); transform-origin: top; }
  .tl-years { display: none; }
  .node { position: relative; left: 0; top: 0; width: auto; height: auto; display: grid; grid-template-columns: 64px 1fr; gap: var(--s3); align-items: center; text-align: left; }
  .node .dot { left: -29px; top: 50%; margin-top: -7px; }
  .node .logo { position: relative; left: 0; bottom: auto; width: 64px; height: 64px; padding: 10px; }
  .node .logo::after { display: none; }
  .node .pop, .node:first-of-type .pop { position: static; width: auto; opacity: 1; visibility: visible; transform: none; background: none; color: var(--slate); box-shadow: none; padding: 0; }
  .node .pop b { color: var(--navy); }
  .node .pop .num { color: var(--muted); }
}
.company { padding: 28px; display: flex; flex-direction: column; gap: var(--s3); scroll-margin-top: 100px; transition: box-shadow var(--t-move) var(--ease-out); }
.company.flash { box-shadow: 0 0 0 3px var(--teal), var(--shadow); }
.company .logo { height: 72px; display: flex; align-items: center; }
.company .logo img { max-height: 64px; max-width: 70%; object-fit: contain; }
.company h3 { font-size: 23px; font-weight: 500; }
.company .meta { font-size: 15px; color: var(--muted); }
.company .desc { font-size: 16px; line-height: 1.65; margin: 0; }
.company .desc p { margin: 0 0 .6em; }
.company .desc p:last-child { margin-bottom: 0; }
.company .founders { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--muted); }

/* Media */
.feats { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.feat { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); background: #fff; border-radius: var(--r-outer); box-shadow: var(--shadow); text-decoration: none; color: var(--slate); transition: box-shadow var(--t-enter) var(--ease-out), transform var(--t-press) var(--ease-out); }
.feat:hover { box-shadow: var(--shadow-hover); }
.feat .o { font-size: 15px; font-weight: 700; color: var(--blue); }
.feat b { color: var(--navy); font-size: 19px; line-height: 1.35; font-weight: 600; }
.feat .d { font-size: 14px; color: var(--muted); margin-top: auto; }
.tabs { margin-bottom: var(--s5); }
.presslist { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--s5); }
.presslist a.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s5); padding: var(--s3) var(--s4); border-radius: var(--r-control); text-decoration: none; color: var(--slate); transition: background var(--t-enter) var(--ease-out); }
.presslist a.row:hover { background: var(--mist); }
.presslist .t { color: var(--navy); font-weight: 600; font-size: 16.5px; line-height: 1.45; }
.presslist .o { font-size: 14px; color: var(--muted); }
.presslist .d { font-size: 14px; color: var(--muted); white-space: nowrap; grid-row: 1 / span 2; grid-column: 2; align-self: center; }

/* Lectures: one per row */
.lectures-list { display: flex; flex-direction: column; gap: var(--s5); }
.lecture-row { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--s6); padding: var(--s4); align-items: center; transition: box-shadow var(--t-enter) var(--ease-out); }
.lecture-row:hover { box-shadow: var(--shadow-hover); }
@media (max-width: 760px) { .lecture-row { grid-template-columns: 1fr; gap: var(--s4); } }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-inner); overflow: hidden; background: var(--navy); border: 0; padding: 0; cursor: pointer; width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease-out); }
.thumb.img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.thumb.img img { object-fit: contain; padding: 16px; }
.thumb:hover img { transform: scale(1.03); }
.thumb iframe, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(50,60,87,.85); transition: transform var(--t-enter) var(--ease-out), background var(--t-enter) var(--ease-out); }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.thumb:hover .play { transform: scale(1.1); background: var(--forest); }
.lr-text { display: flex; flex-direction: column; gap: 6px; padding-right: var(--s4); }
.lr-text .kind { font-size: 14px; color: var(--muted); }
.lr-text h3 { font-size: 21px; font-weight: 600; }
.lr-text p { margin: 0; font-size: 15px; color: var(--slate); }

/* Join us */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: var(--s6); align-items: start; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
.checklist { padding: 28px; position: sticky; top: 96px; }
@media (max-width: 900px) { .checklist { position: static; } }
.checklist h2 { font-size: 24px; margin-bottom: var(--s3); }
.checklist ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--s2); }
.checklist li { padding-left: 4px; }
.jpanel { padding: 28px 30px; }
.jpanel h3 { margin-bottom: var(--s3); }
.jpanel p { font-size: 16px; }
.jpanel p:last-child { margin-bottom: 0; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(12px); }
.reveal.on { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }

/* Page transitions: header stays, title morphs (works when served over http, not from file://) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 120ms var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 180ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
::view-transition-group(page-title) { animation-duration: var(--t-move); animation-timing-function: var(--ease-in-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .layers span { animation: none !important; translate: none !important; }
  .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* home: text flows around the video */
.wrapflow::after { content: ''; display: block; clear: both; }
.float-video { float: right; width: min(46%, 520px); margin: 4px 0 var(--s4) var(--s6); }
.wrapflow .prose { max-width: none; }
.wrapflow .prose p { max-width: none; }
@media (max-width: 800px) { .float-video { float: none; width: 100%; margin: 0 0 var(--s5); } }
.prose h2 .tag { display: inline-block; vertical-align: middle; margin-left: var(--s2); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--plum); background: var(--pink); border-radius: 99px; padding: 2px 10px; }

.nav a.cta:hover, .btn.join-btn:hover, .btn.secondary.join-btn:hover { background: var(--plum); border-color: var(--plum); color: #fff; }

/* Click-to-play video (About page): nothing loads from YouTube until pressed */
.video .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.thumb.poster { font: inherit; }
.thumb.poster .layers { position: absolute; inset: 0; filter: invert(1); opacity: .35; }
.thumb.poster .play { background: var(--plum); }
.thumb.poster:hover .play { background: var(--magenta, #af628d); }
.poster-title { position: absolute; left: var(--s5); bottom: var(--s4); color: #fff; font-weight: 700; font-size: 20px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.video-note { font-size: 14px; color: var(--muted); margin: var(--s2) 0 0; }

/* ---- Tone pass: kicker, why band, question cards, pipeline, progress, curious, toxin notes ---- */
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin: 0 0 var(--s3); }
.why { background: var(--navy); color: #fff; padding: var(--s7) 0; }
.why-h { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin: 0 0 var(--s5); }
.why-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s6); }
.why-figs b { display: block; white-space: nowrap; font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.why-figs span { display: block; margin-top: var(--s2); color: rgba(255,255,255,.82); font-size: 16px; max-width: 30ch; }
.why-note { margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.9); max-width: 820px; }
.why-src { display: inline-block; margin-left: var(--s2); font-size: 14px; color: var(--pink); }
.theme-tag { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 960px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline li { position: relative; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 60px; right: -8px; height: 2px; background: var(--line); }
@media (max-width: 960px) { .pipeline li::after { display: none; } }
.pnum { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 600; font-size: 18px; }
.pipeline img { width: 112px; height: 112px; object-fit: contain; display: block; }
.pipeline li:has(img)::after { display: none; }
.pipeline h3 { font-size: 20px; font-weight: 600; margin: var(--s4) 0 var(--s2); }
.pipeline p { margin: 0; font-size: 15px; color: var(--slate); max-width: 28ch; }
.why-line { font-size: 20px; color: var(--navy); font-weight: 500; line-height: 1.4; margin: 0 0 var(--s2); }
.snote { margin: var(--s4) 0 0; min-height: 3em; font-size: 14px; color: var(--muted); }
.snote b { color: var(--navy); }
.sbar i[data-note] { cursor: help; transition: filter var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); }
.sbar i[data-note]:hover, .sbar i[data-note]:focus-visible { filter: brightness(1.12); transform: scaleY(1.18); }
/* inset, so the parent's clipping cannot swallow the ring */
.sbar i[data-note]:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: var(--s5); }
.progress li { border-top: 3px solid var(--plum); padding-top: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.progress .py { font-size: 28px; font-weight: 500; color: var(--navy); line-height: 1; }
.progress p { margin: 0; font-size: 16px; color: var(--slate); flex: 1; }
.curious { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.curious a { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); text-decoration: none; background: var(--mist); border-radius: var(--r-outer); color: var(--slate); box-shadow: var(--shadow); transition: box-shadow var(--t-enter) var(--ease-out), transform var(--t-press) var(--ease-out); }
.curious a:hover { box-shadow: var(--shadow-hover); }
.curious b { font-size: 21px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.curious span { font-size: 15px; }
.curious .src { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s2); }

/* Header illustration: sits on the antibody field at the right of the page header */
.head-art { position: absolute; right: max(3vw, calc((100vw - 1240px) / 2)); bottom: 6%; height: 82%; max-width: min(34%, 440px); object-fit: contain; object-position: right bottom; pointer-events: none; }
.page-head.tall .head-art { height: 72%; bottom: 10%; max-width: min(40%, 560px); right: max(2vw, calc((100vw - 1320px) / 2)); }
.js .head-art { animation: fade-in 700ms var(--ease-out) both; }
/* Narrow screens keep the illustration, cropped into the band below the text */
@media (max-width: 1120px) {
  .page-head { padding-bottom: 152px; }
  .page-head.tall { padding-bottom: 196px; }
  .head-art { height: 128px; bottom: 8px; right: -5%; max-width: 64%; object-position: right bottom; }
  .page-head.tall .head-art { height: 168px; bottom: 10px; right: -4%; max-width: 74%; }
}
@media (max-width: 480px) {
  .head-art { height: 96px; right: -8%; max-width: 76%; }
  .page-head.tall .head-art { height: 124px; right: -8%; max-width: 86%; }
}

/* Faint group name under the home page title */
.subheading { margin: calc(var(--s3) * -1) 0 0; font-size: 17px; font-weight: 300; letter-spacing: .04em; color: var(--muted); opacity: .75; }
