/* Teleoplexis site styles. Fonts are declared in fonts.css.
   Flat colour only: three blues, 60 / 30 / 10.
     60%  light   #dce9fb  (+ the mist tint #eef4fd and white)
     30%  mid     #0071e3
     10%  deep    #0a2f6b
   No gradients anywhere. */

:root {
  --c-mist: #eef4fd;
  --c-light: #dce9fb;
  --c-mid: #0071e3;
  --c-deep: #0a2f6b;

  --bg: #fff;
  --bg-soft: var(--c-mist);
  --ink: #1d1d1f;
  --fg: #1d1d1f;
  --fg-mid: #515154;
  --fg-dim: #6e6e73;
  --line: rgba(10, 47, 107, 0.12);
  --line-strong: rgba(10, 47, 107, 0.22);
  --line-light: rgba(10, 47, 107, 0.09);

  --accent: #0071e3;
  --link: #0066cc;
  --blue: #0066cc;
  --mist: var(--c-mist);
  --white: #fff;
  --text: #1d1d1f;
  --text-mid: #515154;
  --text-dim: #6e6e73;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 28px;
  --radius-sm: 14px;
  --header-h: 52px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(0, 113, 227, 0.22); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.08; letter-spacing: -0.022em; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--c-mist); color: var(--ink); padding: 0.15em 0.4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.eyebrow { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--fg-dim); margin: 0 0 0.9rem; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1;
  padding: 0.85em 1.4em; border-radius: 980px;
  border: 1px solid var(--c-mid); background: var(--c-mid); color: #fff;
  text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: #0a63c9; border-color: #0a63c9; color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn--ghost:hover { background: var(--link); border-color: var(--link); color: #fff; }
.btn--small { font-size: 0.82rem; padding: 0.55em 1.05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.link-arrow { font-size: 1.0625rem; white-space: nowrap; color: var(--link); }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); }
.nb { white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .logo { display: block; height: 42px; width: auto; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.brand:hover .logo { transform: translateY(-1px) scale(1.03); }
.mark-chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; flex: none; }
.mark-chip img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.site-nav a:not(.btn) { position: relative; text-decoration: none; font-size: 0.82rem; color: var(--fg-mid); transition: color 0.18s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--ink); }
.nav-toggle { display: none; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
body.nav-open { overflow: hidden; }
@media (max-width: 1040px) {
  .nav-toggle { display: grid; gap: 6px; padding: 12px 6px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.9rem 0; font-size: 1.25rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1.2rem; font-size: 1rem; padding: 0.9em 1.4em; }
}

/* ---- bands: the page background changes between sections ----------------------- */
.band { position: relative; padding-block: clamp(3rem, 7vw, 6rem); }
.band--white { background: #fff; }
.band--mist { background: var(--c-mist); }
.band--light { background: var(--c-light); }
.band--mid { background: var(--c-mid); }
.band--deep { background: var(--c-deep); }
/* Dark surfaces re-point the text tokens so every component inside adapts. */
.band--mid, .band--deep, .t-mid, .t-deep {
  --ink: #fff; --fg: #fff; --text: #fff; --fg-mid: rgba(255, 255, 255, 0.84); --text-mid: rgba(255, 255, 255, 0.84);
  --fg-dim: rgba(255, 255, 255, 0.66); --text-dim: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.22); --line-strong: rgba(255, 255, 255, 0.4); --line-light: rgba(255, 255, 255, 0.18);
  --link: #fff; --accent: #fff;
  color: #fff;
}
.band--mid .btn, .band--deep .btn, .t-mid .btn, .t-deep .btn { background: #fff; border-color: #fff; color: var(--c-deep); }
.band--mid .btn:hover, .band--deep .btn:hover, .t-mid .btn:hover, .t-deep .btn:hover { background: var(--c-light); border-color: var(--c-light); color: var(--c-deep); }
.band--mid .btn--ghost, .band--deep .btn--ghost, .t-mid .btn--ghost, .t-deep .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.band--mid .btn--ghost:hover, .band--deep .btn--ghost:hover { background: #fff; color: var(--c-deep); }

.chapter-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chapter-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.chapter-head h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.chapter-head > p:not(.eyebrow) { color: var(--fg-mid); margin: 0; font-size: 1.02rem; line-height: 1.55; }
@media (max-width: 860px) { .chapter-head { grid-template-columns: 1fr; } }
.chart-note { margin: 1.2rem 0 0; font-size: 0.92rem; color: var(--fg-dim); max-width: 52rem; }
.viz-title { margin: 0 0 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--fg-dim); }
.viz-title:not(:first-child) { margin-top: 1.6rem; }

/* ---- hero: the story stage -------------------------------------------------------- */
.hero { text-align: center; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.hero .eyebrow { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.8rem); line-height: 1.03; letter-spacing: -0.045em; font-weight: 700; max-width: 13em; margin-inline: auto; }
.hero h1 .w, .doc-head h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .w > span, .doc-head h1 .w > span { display: inline-block; transform: translateY(105%); animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(0.1s + var(--i) * 0.07s); }
@keyframes rise { to { transform: none; } }
.hero-lede { font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.45; color: var(--fg-mid); max-width: 42rem; margin: 1.5rem auto 2rem; letter-spacing: -0.01em; text-wrap: pretty; }
.hero-lede em { font-style: italic; }
.hero .btn-row { justify-content: center; }
.js .hero-in { opacity: 0; transform: translateY(12px); animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.js .hero-in:nth-child(2) { animation-delay: 0.05s; }
.js .hero-in:nth-child(3) { animation-delay: 0.5s; }
.js .hero-in:nth-child(4) { animation-delay: 0.62s; }
.js .hero-in:nth-child(5) { animation-delay: 0.78s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.story { margin-top: clamp(2rem, 4vw, 3rem); }
.story-stage { position: relative; background: var(--c-mid); border-radius: 36px; aspect-ratio: 16 / 9; overflow: hidden; }
.story-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease 0.2s; }
.story-stage canvas.is-ready { opacity: 1; }
.story-source { position: absolute; left: 1.4rem; bottom: 1.1rem; margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); text-align: left; }
.story-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.6rem; margin-top: 1.4rem; text-align: left; }
.story-step { position: relative; appearance: none; background: none; border: 0; padding: 1rem 0 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; opacity: 0.5; transition: opacity 0.3s; }
.story-step::before, .story-step::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 2px; }
.story-step::before { right: 0; background: rgba(10, 47, 107, 0.16); }
.story-step::after { right: 0; background: var(--c-deep); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; will-change: transform; }
.story-step.is-on, .story-step:hover { opacity: 1; }
.story-step b { display: block; font-size: 1.02rem; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.story-step span { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--fg-mid); }
@media (max-width: 860px) { .story-steps { grid-template-columns: 1fr; } .story-stage { aspect-ratio: 4 / 3; border-radius: 26px; } }

/* ---- bento --------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(13.5rem, auto); grid-auto-flow: dense; gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--radius); padding: clamp(1.3rem, 2.4vw, 2rem); background: var(--c-light); color: var(--ink);
  text-decoration: none; isolation: isolate;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
/* a soft light that follows the pointer across the tile */
a.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.5), transparent 62%);
  transition: opacity 0.6s ease;
}
.t-mid.tile::before, .t-deep.tile::before { background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 62%); }
a.tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(10, 47, 107, 0.55); color: inherit; }
a.tile:hover::before { opacity: 1; }
.t-light { background: var(--c-light); }
.t-mist { background: var(--c-mist); }
.t-white { background: #fff; }
.t-mid { background: var(--c-mid); }
.t-deep { background: var(--c-deep); }
.t-white, .t-light, .t-mist {
  --ink: #1d1d1f; --fg: #1d1d1f; --text: #1d1d1f; --fg-mid: #515154; --text-mid: #515154; --fg-dim: #6e6e73; --text-dim: #6e6e73;
  --line: rgba(10, 47, 107, 0.12); --line-strong: rgba(10, 47, 107, 0.22); --line-light: rgba(10, 47, 107, 0.09);
  --link: #0066cc; --accent: #0071e3; color: #1d1d1f;
}
.tile-tag { margin: 0 0 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--fg-dim); }
.tile h3 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; margin: 0 0 0.6rem; max-width: 22ch; }
.tile > p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.5; color: var(--fg-mid); max-width: 38ch; }
.tile .tile-art { flex: 1; min-height: 0; display: grid; place-items: center; margin-top: auto; }
.tile .tile-art svg { width: 100%; height: 100%; max-height: 17rem; overflow: visible; }
.tile .go {
  position: absolute; right: 1.1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-deep); color: #fff; font-size: 1.35rem; line-height: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s, color 0.4s;
}
.tile .go::before { content: "\2192"; font-size: 1.05rem; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.t-mid .go, .t-deep .go { background: #fff; color: var(--c-deep); }
a.tile:hover .go { transform: scale(1.08); }
a.tile:hover .go::before { transform: translateX(2px); }
.tile--row { flex-direction: row; align-items: center; gap: 1rem; }
.tile--row .tile-copy { flex: 1 1 52%; min-width: 0; }
.tile--row .tile-art { flex: 1 1 48%; margin: 0; }
.tile--copy-bottom { justify-content: flex-end; }

.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.r2 { grid-row: span 2; } .r3 { grid-row: span 3; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .c3, .c4 { grid-column: span 3; } .c5, .c6, .c7, .c8, .c9, .c12 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .c3, .c4, .c5, .c6, .c7, .c8, .c9, .c12 { grid-column: auto; }
  .r2, .r3 { grid-row: auto; }
  .tile { min-height: 13rem; }
  .tile--row { flex-direction: column; align-items: stretch; }
}

/* big-number tiles */
.tile .big { display: block; font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; margin: auto 0 0.5rem; }
.tile .big small { font-size: 0.45em; font-weight: 600; letter-spacing: -0.02em; margin-left: 0.15em; }
.tile .trail { display: grid; grid-template-columns: repeat(3, auto); gap: 0.3rem 1.2rem; justify-content: start; margin-top: auto; }
.tile .trail b { display: block; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.tile .trail span { font-size: 0.78rem; color: var(--fg-mid); }

/* tile art ---------------------------------------------------------------------------- */
/* pipeline: seven nodes and a pulse that travels along them */
.art-pipe svg { max-height: 6rem; }
.art-pipe .nd { fill: #fff; }
.art-pipe .ln { stroke: rgba(255, 255, 255, 0.45); stroke-width: 2; }
.art-pipe .pulse { fill: var(--c-deep); offset-path: path("M30 40 H370"); offset-distance: 0%; animation: travel 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.art-pipe text { font-size: 10px; fill: rgba(255, 255, 255, 0.8); text-anchor: middle; }

/* docking: the ligand arrives in the pocket and settles */
.art-dock .pocket { fill: #fff; }
.art-dock .site { fill: var(--c-light); }
.art-dock .lig { transform-box: fill-box; transform-origin: center; animation: dock 5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.art-dock .ghost { transform-box: fill-box; transform-origin: center; animation: dock 5s cubic-bezier(0.65, 0, 0.35, 1) infinite; opacity: 0.35; }
.art-dock .ghost.g2 { animation-delay: -0.35s; } .art-dock .ghost.g3 { animation-delay: -0.7s; }
@keyframes dock { 0%, 8% { transform: translate(62px, -78px) rotate(140deg); } 62%, 88% { transform: none; } 100% { transform: translate(62px, -78px) rotate(140deg); } }
.art-dock .ring { fill: none; stroke: var(--c-mid); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: lock 5s ease-out infinite; opacity: 0; }
@keyframes lock { 0%, 60% { opacity: 0; transform: scale(0.4); } 66% { opacity: 0.9; } 90%, 100% { opacity: 0; transform: scale(1.8); } }

/* pharmacophore */
.art-pharma svg { max-height: 14rem; }
.art-pharma .pocket { fill: rgba(255, 255, 255, 0.1); stroke: #fff; stroke-width: 2; stroke-dasharray: 6 6; }
.art-pharma .pr { opacity: 0.6; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transform-box: fill-box; transform-origin: center; }
.tile:hover .art-pharma .pr { transform: scale(1.5); }
.pm-lede { max-width: 28rem; margin: 0.5rem 0 0; }
.art-pharma .ft { transform-box: fill-box; transform-origin: center; animation: breathe2 3.2s ease-in-out infinite; }
.art-pharma .ft:nth-of-type(2n) { animation-delay: -1.1s; } .art-pharma .ft:nth-of-type(3n) { animation-delay: -2.1s; }
@keyframes breathe2 { 50% { transform: scale(1.3); } }
@keyframes marchd { to { stroke-dashoffset: -27; } }

/* biosimilar stages */
.bs-lede { max-width: 38rem; margin: 0.5rem 0 1.1rem; }
.bs-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; counter-reset: bs; }
.bs-flow li { counter-increment: bs; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.8rem 0.8rem 0.9rem; border-radius: 12px; background: #fff; color: var(--c-deep); transition: background 0.35s, color 0.35s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bs-flow li::before { content: "0" counter(bs); font: 500 0.7rem/1 var(--mono); opacity: 0.55; }
.bs-flow li b { font-size: 1rem; letter-spacing: -0.01em; }
.bs-flow li span { font-size: 0.78rem; line-height: 1.35; opacity: 0.8; }
.bs-flow li:hover { background: var(--c-mid); color: #fff; transform: translateY(-4px); }
.bs-foot { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--fg-mid); }
@media (max-width: 900px) { .bs-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .bs-flow { grid-template-columns: 1fr; } }

/* ---- shared chart pieces ----------------------------------------------------------------- */
.tabs { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tabs button { font: inherit; font-size: 0.95rem; padding: 0.5em 1.1em; border-radius: 980px; border: 0; cursor: pointer; background: transparent; color: var(--fg-mid); transition: background 0.25s, color 0.25s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--c-deep); color: #fff; }
.tabs-note { margin-left: auto; font-size: 0.85rem; color: var(--fg-dim); }
.bars, .cost-chart { position: relative; display: grid; gap: 0.8rem; }
.bar-row { display: grid; grid-template-columns: 8.4rem 1fr 3.6rem; align-items: center; gap: 1rem; }
.bar-row[hidden] { display: none; }
.bar-name { font-size: 0.93rem; color: var(--fg-mid); }
.bar-track { position: relative; height: 14px; border-radius: 7px; background: var(--c-light); overflow: hidden; }
.bar-track i { position: absolute; inset: 0; width: 100%; border-radius: 7px; background: var(--c-mid); transform-origin: 0 50%; transform: scaleX(var(--v, 0)); transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.bar-row.is-hot .bar-track i { background: var(--c-deep); }
.bar-row.is-soft .bar-track i { background: #9cc7f7; }
.bar-row.is-ref .bar-track i { background: #9cc7f7; opacity: 0.6; }
.bar-val { font-weight: 600; font-size: 1.02rem; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.js .reveal:not(.is-in) .bar-track i { transform: scaleX(0); }
.chance { position: absolute; top: -0.4rem; bottom: -0.4rem; left: calc(8.4rem + 1rem + (100% - 8.4rem - 3.6rem - 2rem) * 0.5); border-left: 1px dashed var(--line-strong); pointer-events: none; }
.chance em { position: absolute; top: 100%; left: 0; transform: translateX(-50%); font-size: 0.72rem; font-style: normal; color: var(--fg-dim); padding-top: 0.2rem; }
.results-note { margin: 2.2rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--fg-dim); }
.cost-chart .bar-row { grid-template-columns: minmax(7rem, 11.5rem) 1fr 4.2rem; gap: 0.7rem; }
.cost-chart .bar-name { font-size: 0.82rem; }
.cost-chart .bar-track { height: 12px; }
@media (max-width: 520px) { .bar-row, .cost-chart .bar-row { grid-template-columns: 1fr 3.8rem; gap: 0.25rem 0.8rem; } .bar-name { grid-column: 1 / -1; } .chance { display: none; } }

.tile .tabs { margin-bottom: 1rem; }
.tile .results { display: flex; flex-direction: column; flex: 1; }
.tile .results .results-note { margin-top: auto; padding-top: 1.6rem; }
.t-light .bar-track { background: #fff; }
.t-mid .bar-track, .t-deep .bar-track { background: rgba(255, 255, 255, 0.22); }
.t-mid .bar-track i, .t-deep .bar-track i { background: #fff; }
.t-mid .bar-row.is-hot .bar-track i, .t-deep .bar-row.is-hot .bar-track i { background: var(--c-light); }
.t-white .tabs button[aria-selected="true"], .t-light .tabs button[aria-selected="true"] { background: var(--c-deep); color: #fff; }

/* figure tiles: the image is the tile */
.tile--fig { padding: 0.7rem 0.7rem 1rem; }
.tile--fig .fig { flex: 1; min-height: 0; display: grid; place-items: center; background: #fff; border-radius: calc(var(--radius) - 10px); overflow: hidden; }
.tile--fig .fig img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.tile--fig figcaption { margin: 0.8rem 0.7rem 0; padding-right: 2.6rem; font-size: 0.82rem; line-height: 1.45; color: var(--fg-mid); }
.tile--fig .tile-tag { margin: 0.4rem 0.7rem 0.5rem; }
.tile--fig .go { top: 0.9rem; right: 0.9rem; }

/* posters */
.poster-tile { padding: clamp(1rem, 2vw, 1.5rem); }
.poster-tile .pv { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; border-radius: 10px; background: rgba(255, 255, 255, 0.55); color: var(--c-deep); font-size: 0.8rem; line-height: 1.3; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.t-mid.poster-tile .pv { background: rgba(255, 255, 255, 0.16); color: #fff; }
.t-white.poster-tile .pv { background: var(--mist, #eef4fd); }
.poster-tile:hover .pv { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.pv-label { font: 500 0.68rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; margin-top: 0.2rem; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pv-chips b { font: 500 0.72rem/1 "IBM Plex Mono", monospace; padding: 0.4rem 0.55rem; border-radius: 99px; background: #fff; transition: background 0.3s, color 0.3s; }
.pv-chips b:hover { background: var(--c-mid, #0071e3); color: #fff; }
.pv-bar { position: relative; display: block; width: var(--w); min-width: 6.5rem; padding: 0.45rem 0.6rem; border-radius: 6px; background: var(--c-mid, #0071e3); color: #fff; transform-origin: left; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.pv-bar:nth-of-type(2) { background: var(--c-deep, #0a2f6b); }
.pv-bar i { font: 700 1rem/1 "Space Grotesk", sans-serif; font-style: normal; margin-right: 0.4rem; }
.pv-bar em { font-style: normal; opacity: 0.85; font-size: 0.72rem; }
.pv-bio { gap: 0.4rem; }
.pv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0.7rem; border-radius: 6px; background: rgba(255, 255, 255, 0.18); transition: background 0.3s, transform 0.4s; }
.pv-row:hover { background: #fff; color: var(--c-deep); transform: translateX(4px); }
.pv-row b { font: 500 0.8rem/1 "IBM Plex Mono", monospace; }
.pv-row em { font-style: normal; font-size: 0.74rem; opacity: 0.85; text-align: right; }
.pv-cmp svg { width: 100%; height: auto; overflow: visible; }
.pv-cmp .d { fill: var(--c-mid, #0071e3); opacity: 0.55; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s, fill 0.4s; }
.poster-tile:hover .pv-cmp .d1, .poster-tile:focus-visible .pv-cmp .d1 { transform: translateY(9px); fill: var(--c-deep, #0a2f6b); opacity: 1; }
.pv-lanes { display: flex; justify-content: space-between; font: 500 0.66rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .poster-tile .pv, .pv-cmp .d, .pv-bar { transition: none; } }
.poster-tile h3 { font-size: 1.1rem; margin: 1rem 0 0.35rem; max-width: none; }
.poster-tile > p, .poster-tile .copy p { font-size: 0.86rem; margin: 0; max-width: none; }
.poster-tile--wide { flex-direction: row; gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch; }
.poster-tile--wide .pv { flex: 0 0 52%; align-self: stretch; }
.poster-tile--wide .copy { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2.4rem; }
.poster-tile--wide h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
@media (max-width: 640px) { .poster-tile--wide { flex-direction: column; } .poster-tile--wide .pv { flex: none; } }

/* needs */
.tile .big-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: auto 0 0; max-width: 14ch; }
.tile .need-text { font-size: 0.95rem; line-height: 1.5; color: var(--fg-mid); margin: 0.7rem 0 2.2rem; max-width: 40ch; }


/* ---- document pages ------------------------------------------------------ */
.doc-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); background: var(--c-mist); }
.doc-head h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -0.035em; font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--fg-mid); margin: 1.3rem 0 0; max-width: 42rem; letter-spacing: -0.01em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; font-size: 0.9rem; color: var(--fg-dim); }
.crumbs a { color: var(--fg-dim); }
.crumbs a:hover { color: var(--ink); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--fg-dim); }

.stage-rail { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.stage-rail ol { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.stage-rail ol::-webkit-scrollbar { display: none; }
.stage-rail a {
  display: inline-flex; gap: 0.4rem; align-items: baseline; white-space: nowrap;
  padding: 0.8rem 0.9rem; text-decoration: none; color: var(--fg-dim); font-size: 0.85rem;
  border-bottom: 2px solid transparent;
}
.stage-rail a span { opacity: 0.6; }
.stage-rail a:hover { color: var(--ink); }
.stage-rail a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.stage-rail a[aria-current] span { opacity: 1; }

.doc { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.doc > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin: 2.6em 0 0.6em; }
.doc > h2:first-child, .doc > .toc + h2 { margin-top: 0; }
.doc > h3 { font-size: 1.25rem; margin: 2.2em 0 0.5em; }
.doc p, .doc li { color: var(--fg); }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.doc li { margin-bottom: 0.5em; }
.doc li::marker { color: var(--fg-dim); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc sub { font-size: 0.72em; }
.doc p a, .doc td a, .doc li a, .doc figcaption a { text-decoration: none; }
.doc p a:hover, .doc li a:hover { text-decoration: underline; }

.note { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin: 2rem 0; }
.note .k { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.note p { margin-bottom: 0; color: var(--fg-mid); }

.figure { margin: 2.4rem 0; }
.figure img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.figure figcaption { font-size: 0.88rem; line-height: 1.55; color: var(--fg-dim); margin-top: 0.8rem; }
.figure figcaption strong { color: var(--ink); font-weight: 600; }
.figure--lead { margin-top: 0; }
.figure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.2rem 0; }
.figure-grid .figure { margin: 0; }
@media (max-width: 700px) { .figure-grid { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; margin: 1.8rem 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; color: var(--text); }
th, td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line-light); white-space: nowrap; }
th { font-weight: 600; font-size: 0.82rem; color: var(--fg-dim); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll strong { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.fact { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1.2rem; }
.fact strong { display: block; font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.fact span { display: block; font-size: 0.88rem; color: var(--fg-mid); margin-top: 0.5rem; line-height: 1.4; }

.steps { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); counter-reset: step; }
.doc .steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 1rem; padding: 1.1rem 0; margin: 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); font-size: 0.95rem; font-weight: 600; color: var(--fg-dim); padding-top: 0.15rem; }
.steps a { font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.steps a:hover { color: var(--link); text-decoration: none; }
.steps span { display: block; color: var(--fg-mid); font-size: 0.97rem; }
.doc .steps strong { color: var(--ink); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.pager a { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; font-weight: 600; color: var(--ink); transition: background 0.2s; }
.pager a:hover { background: #ebebef; text-decoration: none; }
.pager small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--fg-dim); margin-bottom: 0.3rem; }
.pager-next { text-align: right; }

/* ---- section anchors and contents --------------------------------------- */
.doc h2 .anchor { margin-left: 0.4em; font-weight: 400; color: var(--fg-dim); text-decoration: none; opacity: 0; transition: opacity 0.18s; }
.doc h2:hover .anchor, .doc h2 .anchor:focus-visible { opacity: 1; }
.doc h2:target { scroll-margin-top: calc(var(--header-h) + 5.5rem); }

.toc { margin: 0 0 2.5rem; }
.toc-inner { border-left: 1px solid var(--line); padding-left: 1.1rem; }
.doc .toc h2 { font-size: 0.82rem; font-weight: 600; color: var(--fg-dim); margin: 0 0 0.8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.doc .toc li { margin: 0; }
.toc a { display: block; padding: 0.28rem 0; font-size: 0.88rem; line-height: 1.4; color: var(--fg-dim); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); font-weight: 600; }

@media (min-width: 1360px) {
  .doc.has-toc { position: relative; }
  .doc.has-toc > .toc { position: absolute; top: 0; bottom: 0; margin: 0; left: calc(100% - var(--gutter) + 2.2rem); width: 13rem; }
  .toc-inner { position: sticky; top: calc(var(--header-h) + 5.5rem); }
}
@media (max-width: 1359px) {
  .toc-inner { background: var(--bg-soft); border: 0; border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
  .toc ol { columns: 2; column-gap: 2rem; }
}
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ---- publications -------------------------------------------------------- */
.pub-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.doc .pub-list li { margin: 0; }
.pub { display: grid; grid-template-columns: 10rem 1fr; gap: 0.4rem 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.pub-meta { font-size: 0.88rem; color: var(--fg-dim); line-height: 1.7; }
.pub-meta .tag { display: block; font-weight: 600; color: var(--fg-mid); }
.pub h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.pub h2 a { color: var(--ink); }
.pub h2 a:hover { color: var(--link); text-decoration: none; }
.pub p { margin: 0; color: var(--fg-mid); font-size: 1rem; }
@media (max-width: 700px) { .pub { grid-template-columns: 1fr; } .pub-meta .tag { display: inline; margin-left: 0.8rem; } }

/* ---- contact ------------------------------------------------------------- */
.contact-card--single { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); margin: 2rem 0; }
.contact-card--single h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.contact-mail { display: inline-block; margin-top: 0.5rem; font-size: clamp(1.2rem, 2.8vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; color: var(--link); }

/* ---- open roles ---------------------------------------------------------- */
.roles { display: grid; gap: 1rem; margin: 2rem 0 2.5rem; }
.role { background: var(--bg-soft); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.role h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.doc .role-stack { font-size: 0.88rem; font-weight: 600; color: var(--fg-dim); margin-bottom: 0.8rem; }
.doc .role p:last-child { margin-bottom: 0; color: var(--fg-mid); font-size: 1rem; }

/* ---- evidence record ----------------------------------------------------- */
.record { margin: 2.2rem 0; border-radius: var(--radius); background: var(--bg-soft); overflow: hidden; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.record-id { font-family: var(--mono); font-size: 0.88rem; color: var(--ink); }
.record-status { font-size: 0.78rem; font-weight: 600; padding: 0.3em 0.8em; border-radius: 980px; background: #e8e8ed; color: var(--fg-mid); }
.record-status--raw { background: rgba(0, 113, 227, 0.12); color: var(--link); }
.record-fields { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.record-fields > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.75rem 1.4rem; border-bottom: 1px solid var(--line-light); }
.doc .record-fields dt { font-size: 0.85rem; color: var(--fg-dim); align-self: center; }
.doc .record-fields dd { margin: 0; font-size: 0.92rem; color: var(--ink); }
.record figcaption { padding: 1rem 1.4rem; font-size: 0.92rem; color: var(--fg-mid); line-height: 1.55; }
@media (max-width: 700px) {
  .record-fields { grid-template-columns: 1fr; }
  .record-fields > div { grid-template-columns: 1fr; gap: 0.2rem; }
}


/* ---- pipeline ------------------------------------------------------------ */
.circuit { margin: 0; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0 0 2.5rem; padding: 0; position: relative; }
.flow::before, .flow::after { background: var(--accent); width: 16%; animation: pulse-run 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.flow::before { background: var(--line-strong); }
.flow::after { background: var(--accent); width: 16%; animation: pulse-run 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes pulse-run { from { left: 3%; } to { left: 81%; } } }
.flow a { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; color: var(--ink); position: relative; z-index: 1; }
.flow a:hover { text-decoration: none; }
.flow i { width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); transition: transform 0.3s cubic-bezier(0.22, 1.2, 0.36, 1), background 0.2s, border-color 0.2s; }
.flow a:hover i { transform: scale(1.7); background: var(--accent); border-color: var(--accent); }
.flow .n { font-size: 0.78rem; color: var(--fg-dim); margin-top: 0.5rem; }
.flow b { font-size: 0.95rem; font-weight: 600; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 0.2rem; }
  .flow::before, .flow::after { background: var(--accent); width: 16%; animation: pulse-run 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .flow a { flex-direction: row; justify-content: flex-start; gap: 0.8rem; padding: 0.5rem 0; }
  .flow .n { margin: 0; min-width: 1.6rem; }
}
.circuit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.circuit-node {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.7rem;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.circuit-node:hover { transform: scale(1.015); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); text-decoration: none; }
.circuit-node .n { font-size: 0.85rem; font-weight: 600; color: var(--fg-dim); }
.circuit-node h3 { font-size: 1.3rem; margin: 0.5rem 0 0.5rem; }
.circuit-node p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--fg-mid); }
.circuit-node .tool { display: block; margin-top: 1rem; font-size: 0.82rem; color: var(--fg-dim); }
.circuit-node--layer { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.circuit-node--layer:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 30px rgba(0, 0, 0, 0.06); }
@media (min-width: 900px) { .circuit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feedback {
  list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.feedback li { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.feedback .edge { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.feedback p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--fg-mid); }
@media (max-width: 700px) { .feedback { grid-template-columns: 1fr; } }


/* ---- measurements -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 52rem; margin-inline: auto; }
.stat { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.stat strong {
  display: block; font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 0.9rem; font-size: 0.95rem; color: var(--fg-mid); line-height: 1.45; }
.stats-note { font-size: 1rem; color: var(--fg-mid); margin: 2rem auto 0; max-width: 44rem; text-align: center; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; gap: 1.5rem; } }

.ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.ledger > div { background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem 1.3rem; }
.ledger strong { display: block; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.doc .ledger span { display: block; margin-top: 0.8rem; font-size: 0.92rem; line-height: 1.45; color: var(--fg-mid); }
@media (max-width: 820px) { .ledger { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ledger { grid-template-columns: 1fr; } }


/* ---- split --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; font-weight: 700; margin-bottom: 1.2rem; }
.split p { color: var(--fg-mid); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.checks li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--fg-mid); font-size: 1rem; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks strong { color: var(--ink); font-weight: 600; }


/* ---- charts -------------------------------------------------------------- */
.chart, .cascade {
  background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem); margin: 2.2rem 0;
}
.cascade { --tone-0: #9cc7f7; --tone-1: #4f9bec; --tone-2: #0071e3; --tone-3: #0a2f6b; display: grid; gap: 0; }
.cascade-step { display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--line-light); }
.cascade-step:first-of-type { border-top: 0; }
.cascade-bar { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.cascade-bar span { display: block; height: 100%; border-radius: 4px; }
.cascade-step:nth-child(1) .cascade-bar span { width: 100%; background: var(--tone-0); }
.cascade-step:nth-child(2) .cascade-bar span { width: 72.8%; background: var(--tone-1); }
.cascade-step:nth-child(3) .cascade-bar span { width: 45.6%; background: var(--tone-2); }
.cascade-step:nth-child(4) .cascade-bar span { width: 17.9%; background: var(--tone-3); }
.cascade-body { display: grid; gap: 0.15rem; }
.cascade-body strong { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cascade-label { font-size: 0.95rem; color: var(--text-mid); }
.cascade-note { font-size: 0.82rem; color: var(--text-dim); }
.cascade figcaption { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-light); font-size: 0.85rem; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 640px) {
  .cascade-step { grid-template-columns: 1fr; gap: 0.5rem; }
  .cascade-bar { max-width: 110px; }
}

.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-light); stroke-width: 1; }
.chart .grid text, .chart .axis-end { font-family: var(--sans); font-size: 11px; fill: var(--text-dim); }
.chart .slope-series line { stroke-width: 2; stroke-linecap: round; }
.chart .slope-series circle { stroke: #fff; stroke-width: 2; }
.chart .slope-series .val { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--text); }
.chart .slope-series .name { font-family: var(--sans); font-size: 12px; fill: var(--text-mid); }
.chart .slope-series--accent line, .chart .slope-series--accent circle { stroke: #0071e3; }
.chart .slope-series--accent circle { fill: #0071e3; }
.chart .slope-series--accent .name { fill: #0071e3; font-weight: 600; }
.chart .slope-series--muted line, .chart .slope-series--muted circle { stroke: #9aa3ad; }
.chart .slope-series--muted circle { fill: #9aa3ad; }
.chart figcaption { margin-top: 1.1rem; font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }
.chart-data { margin-top: 1rem; }
.chart-data summary { cursor: pointer; font-size: 0.88rem; color: var(--link); }
.chart .table-scroll { margin: 0.6rem 0 0; border-color: var(--line-light); }

.cost { display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; }
.cost-track { flex: none; width: 6rem; height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.cost-track span { display: block; height: 100%; background: #9cc7f7; }
.cost b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3.4rem; text-align: right; }
tr.is-dominant .cost-track span { background: #0a2f6b; }

/* ---- page transitions ---------------------------------------------------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
::view-transition-group(root) { animation-duration: 0.38s; }
::view-transition-old(root) { animation: vtOut 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vtIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
::view-transition-group(site-header), ::view-transition-group(site-footer) { animation-duration: 0.28s; }
::view-transition-old(site-header), ::view-transition-new(site-header),
::view-transition-old(site-footer), ::view-transition-new(site-footer) { animation: none; mix-blend-mode: normal; }


/* ---- pipeline explorer ------------------------------------------------------ */
.explorer { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; --i: 0; }
.rail { position: sticky; top: calc(var(--header-h) + 2.5rem); list-style: none; margin: 0; padding: 0; }
.rail::before, .rail::after { content: ""; position: absolute; left: 5px; top: 1.25rem; width: 2px; border-radius: 2px; }
.rail::before { bottom: 1.25rem; background: var(--line-strong); }
.rail::after { height: calc(var(--i) * 2.5rem); background: var(--accent); transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rail li { height: 2.5rem; }
.rail a { position: relative; display: flex; align-items: center; gap: 0.9rem; height: 100%; font-size: 0.9rem; color: var(--fg-dim); transition: color 0.2s; }
.rail a:hover { color: var(--ink); text-decoration: none; }
.rail i { z-index: 1; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); transition: transform 0.4s cubic-bezier(0.22, 1.2, 0.36, 1), background 0.2s, border-color 0.2s; }
.rail li.is-done i { border-color: var(--accent); }
.rail li.is-active i { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.rail li.is-active a { color: var(--ink); font-weight: 600; }

.stage { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.stage:first-child { border-top: 0; padding-top: 0; }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin-bottom: 1.6rem; }
.stage-n { font-size: 0.95rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.stage h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; }
.stage .tool { flex-basis: 100%; margin: 0; font-size: 0.88rem; color: var(--fg-dim); }
.stage-body { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 2rem clamp(1.5rem, 3vw, 3rem); align-items: start; }
.stage-text p { color: var(--fg-mid); font-size: 1rem; line-height: 1.6; }
.stage-text .link-arrow { display: inline-block; margin-top: 0.4rem; }
@media (max-width: 1020px) {
  .explorer { grid-template-columns: 1fr; }
  .rail { display: none; }
}
@media (max-width: 820px) { .stage-body { grid-template-columns: 1fr; } }

.viz { margin: 0; background: var(--bg-soft); border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.viz--fig { padding: 0.6rem 0.6rem 0.4rem; }
.viz--fig img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.viz-cap { margin: 0.8rem 0.6rem 0.4rem; font-size: 0.84rem; line-height: 1.5; color: var(--fg-dim); }
.section--raised .viz { background: #fff; }
.section--raised .viz--fig { background: #fff; }

.rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1.4rem; }
.ring { text-align: center; }
.ring-dial { position: relative; width: min(8.5rem, 100%); margin-inline: auto; }
.ring-dial svg { display: block; width: 100%; transform: rotate(-90deg); }
.ring-dial circle { fill: none; stroke-width: 7; }
.ring-dial .bg { stroke: #dbe7f7; }
.ring-dial .fg {
  stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 276.46;
  stroke-dashoffset: calc(276.46 * (1 - var(--p))); transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.js .reveal:not(.is-in) .ring-dial .fg { stroke-dashoffset: 276.46; }
.ring-dial b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring > span { display: block; margin-top: 0.8rem; font-size: 0.85rem; line-height: 1.4; color: var(--fg-mid); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 1rem 1.2rem; margin-top: 1.6rem; }
.kv > div { border-top: 2px solid var(--ink); padding-top: 0.7rem; }
.kv b { display: block; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kv span { display: block; margin-top: 0.3rem; font-size: 0.82rem; line-height: 1.4; color: var(--fg-mid); }

/* bars used outside the tabbed chart */
.viz .bars, .cost-chart { display: grid; gap: 0.75rem; }
.viz .bar-row { grid-template-columns: 7.5rem 1fr 3.4rem; }
.js .reveal:not(.is-in) .bar-track i { transform: scaleX(0); }
.bar-row.is-hot .bar-track i { background: var(--c-deep); }
.bar-row.is-soft .bar-track i { background: #9cc7f7; }
.results .bars .bar-row:first-child .bar-track i { background: var(--c-deep); }
.results .bars .bar-row:first-child .bar-name { color: var(--ink); font-weight: 600; }
.cost-chart { max-width: 56rem; }
.cost-chart .bar-row { grid-template-columns: 15rem 1fr 4.6rem; }
.cost-chart .bar-track { height: 16px; }
@media (max-width: 640px) { .cost-chart .bar-row, .viz .bar-row { grid-template-columns: 1fr 4rem; } .cost-chart .bar-name, .viz .bar-name { grid-column: 1 / -1; } }

.weights { display: flex; gap: 4px; margin-bottom: 0.4rem; }
.weights span { display: block; padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.85rem; color: #fff; background: #0071e3; transform-origin: 0 50%; transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.weights span:last-child { background: #0a2f6b; }
.weights b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; }
.js .reveal:not(.is-in) .weights span { transform: scaleX(0); }
.viz .table-scroll { margin: 0; border: 0; background: transparent; }
.viz th, .viz td { padding: 0.65rem 0.6rem; white-space: normal; }
.viz th { background: transparent; }


/* ---- pharmacophores ---------------------------------------------------------- */
.pharm { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.pharm-fig { margin: 0; background: #fff; border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); }
.pharm-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.pharm .feat circle { transition: opacity 0.35s, transform 0.5s cubic-bezier(0.22, 1.2, 0.36, 1); transform-box: fill-box; transform-origin: center; }
.pharm .f-hbd circle { fill: #0a2f6b; }
.pharm .f-hba circle { fill: #0071e3; }
.pharm .f-hy circle { fill: #9cc7f7; }
.pharm .f-ar circle { fill: rgba(0, 113, 227, 0.12); stroke: #0071e3; stroke-width: 2; stroke-dasharray: 5 4; }
.pharm .dist path { animation: marchd 2.4s linear infinite; }
@keyframes marchd { to { stroke-dashoffset: -27; } }
.pharm[data-focus] .feat:not(.is-focus) circle { opacity: 0.14; }
.pharm[data-focus] .dist, .pharm[data-focus] .dist-l { opacity: 0.25; }
.pharm .feat.is-focus circle { transform: scale(1.18); }
.js .reveal:not(.is-in) .feat circle { transform: scale(0); }
.pharm-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pharm-legend button {
  width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.9rem; text-align: left; font: inherit; cursor: pointer;
  padding: 1rem 1.2rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s;
}
.pharm-legend button:hover, .pharm-legend button:focus-visible, .pharm-legend button.is-on { border-color: var(--accent); box-shadow: 0 8px 24px -12px rgba(0, 113, 227, 0.4); transform: translateX(4px); }
.pharm-legend .sw { grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; border-radius: 50%; }
.sw-hbd { background: #0a2f6b; } .sw-hba { background: #0071e3; } .sw-hy { background: #9cc7f7; }
.sw-ar { background: rgba(0, 113, 227, 0.12); border: 2px dashed #0071e3; }
.pharm-legend b { font-size: 1rem; letter-spacing: -0.01em; }
.pharm-legend span { font-size: 0.88rem; color: var(--fg-mid); }
@media (max-width: 860px) { .pharm { grid-template-columns: 1fr; } }


/* ---- biosimilars ------------------------------------------------------------- */
.biosim-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.biosim-fig { margin: 0; background: var(--bg-soft); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); }
.biosim-fig svg { display: block; width: 100%; height: auto; }
.biosim-fig .ax { font-size: 12px; fill: var(--fg-dim); }
.biosim-fig path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.biosim-fig .area { fill: rgba(0, 113, 227, 0.1); stroke: none; opacity: 0; transition: opacity 1s 1.8s; }
.biosim-fig .ref { stroke: #a1a1a6; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.biosim-fig .cand { stroke: #0071e3; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.4s; }
.js .reveal:not(.is-in) .biosim-fig .cand { stroke-dashoffset: 1; }
.reveal.is-in .biosim-fig .area { opacity: 1; }
.attrs { margin: 0; display: grid; gap: 0; }
.attrs > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.attrs > div:last-child { border-bottom: 1px solid var(--line); }
.attrs dt { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.attrs dd { margin: 0.2rem 0 0; font-size: 0.92rem; color: var(--fg-mid); }
@media (max-width: 860px) { .biosim-wrap { grid-template-columns: 1fr; } }


/* ---- footer -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-deep); padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem; font-size: 0.88rem;
  --ink: #fff; --fg: #fff; --fg-mid: rgba(255, 255, 255, 0.82); --fg-dim: rgba(255, 255, 255, 0.62); --line: rgba(255, 255, 255, 0.2); --link: #fff;
  color: var(--fg-dim);
}
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 0.85fr) 1.25fr; gap: 2.5rem 2rem; }
.footer-brand p { margin: 1rem 0 0; max-width: 17rem; line-height: 1.55; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-col h2 { font-weight: 600; font-size: 0.85rem; color: #fff; margin-bottom: 0.8rem; letter-spacing: 0; }
.footer-col a { display: block; color: var(--fg-mid); padding: 0.22rem 0; overflow-wrap: break-word; }
.footer-col a:hover { color: #fff; }
.footer-note { margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--fg-dim); line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: 0.8rem; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }
.footer-word { margin: 2.5rem 0 0; font-weight: 700; font-size: clamp(3rem, 15.5vw, 13rem); line-height: 0.8; letter-spacing: -0.06em; text-align: center; user-select: none; overflow: hidden; padding-bottom: 0.1em; color: #123f86; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---- small things ------------------------------------------------------------------------ */
.pub > div:last-child { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pub:hover > div:last-child { transform: translateX(10px); }
.js .cascade .cascade-bar span { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1); }
.js .cascade.is-in .cascade-bar span, .js .is-in .cascade .cascade-bar span { transform: none; }
.js .cascade.is-in .cascade-step:nth-child(2) .cascade-bar span, .js .is-in .cascade .cascade-step:nth-child(2) .cascade-bar span { transition-delay: 0.15s; }
.js .cascade.is-in .cascade-step:nth-child(3) .cascade-bar span, .js .is-in .cascade .cascade-step:nth-child(3) .cascade-bar span { transition-delay: 0.3s; }
.js .cascade.is-in .cascade-step:nth-child(4) .cascade-bar span, .js .is-in .cascade .cascade-step:nth-child(4) .cascade-bar span { transition-delay: 0.45s; }
.tile .cascade { margin: 0; border: 0; border-radius: 0; padding: 0; background: none; flex: 1; align-content: space-between; }
.tile .cascade-step { padding: 0.55rem 0; }
.t-light .cascade-bar { background: #fff; }
.tile .cascade-body strong { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

.doc-head .crumbs, .doc-head .eyebrow, .doc-head .lede, .doc-head .doc-actions, .doc-head .doc-tags { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.doc-head .eyebrow { animation-delay: 0.05s; }
.doc-head .lede { animation-delay: 0.45s; }
.doc-head .doc-actions, .doc-head .doc-tags { animation-delay: 0.6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* looping tile art runs only while it is on screen */
.js .tile-art:not(.is-live) *, .js .tile-art:not(.is-live) { animation-play-state: paused; }

/* sections below the hero are laid out and painted only when they approach the viewport */
.hero ~ .band { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ---- motion -------------------------------------------------------------------------------- */
.js .reveal, .js .reveal-group > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-in, .js .reveal-group > .is-in { opacity: 1; transform: none; }
.js .bento > .tile { opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.js .bento > .tile.is-in { opacity: 1; transform: none; }
.js .bento > .tile.is-in { transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .bento > a.tile.is-in:hover { transform: translateY(-4px); }

/* ---- lightbox -------------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(255, 255, 255, 0.98); cursor: zoom-out; animation: lbIn 0.3s ease both; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px -30px rgba(10, 47, 107, 0.45); background: #fff; }
.lightbox button { position: absolute; top: 1rem; right: 1.2rem; font: inherit; font-size: 2rem; line-height: 1; border: 0; background: none; color: var(--c-deep); cursor: pointer; }
@keyframes lbIn { from { opacity: 0; } }
body.lb-open { overflow: hidden; }
.viz--fig img, .shot-panel img { cursor: zoom-in; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-group > *, .js .hero-in, .js .bento > .tile { opacity: 1; transform: none; transition: none; animation: none; }
  .art-pipe .pulse, .art-dock .lig, .art-dock .ghost, .art-dock .ring, .art-pharma .ft, .flow::after, .pharm .dist path { animation: none; }
  .art-dock .lig { transform: none; }
  .art-dock .ghost, .art-dock .ring { opacity: 0; }
  .bar-track i, .weights span, .ring-dial .fg, .rail::after, .rail i, .tile, .bs-flow li, .biosim-fig .cand { transition: none; }
  .js .cascade .cascade-bar span { transform: none; transition: none; }
  .hero h1 .w > span { animation: none; transform: none; }
}
@media print {
  .site-header, .site-footer, .stage-rail, .pager, .toc { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- page heads take one of the three blues ------------------------------------------------ */
.doc-head.band--white { background: #fff; }
.doc-head.band--mist { background: var(--c-mist); }
.doc-head.band--light { background: var(--c-light); }
.doc-head.band--mid { background: var(--c-mid); }
.doc-head.band--deep { background: var(--c-deep); }
.doc-head.band--mid .crumbs a, .doc-head.band--deep .crumbs a { color: rgba(255, 255, 255, 0.75); }
.t-deep .ring-dial .bg, .t-mid .ring-dial .bg { stroke: rgba(255, 255, 255, 0.22); }
.t-deep .ring-dial .fg, .t-mid .ring-dial .fg { stroke: #fff; }
.t-deep .ring > span, .t-mid .ring > span { color: rgba(255, 255, 255, 0.84); }
.tile .rings { margin-top: auto; }
.tile .kv { margin-top: auto; padding-top: 1.2rem; }
.tile .kv > div { border-top-color: currentColor; }
.t-light .kv > div, .t-white .kv > div { border-top-color: var(--c-deep); }
.tile .weights { margin: 0.4rem 0 1rem; }
.tile .weights span { background: #fff; color: var(--c-deep); }
.tile .weights span:last-child { background: var(--c-deep); color: #fff; }
.t-mid .weights span:last-child { background: var(--c-deep); }
.tile--fig img, .tile--fig .fig { cursor: zoom-in; }
.tile-art svg text { font-family: var(--sans); }

/* ---- bento refinements ----------------------------------------------------------------------- */
figure.tile { margin: 0; }
.tile--fig .fig { align-content: center; }
.tile--fig .fig img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.tile .results .bars { flex: 1; align-content: space-evenly; gap: 0.4rem; }
.tile .rings { grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr)); gap: 1rem; }
.tile .ring > span { font-size: 0.78rem; }
.art-git svg, .art-sheets svg { max-height: 5rem; }
.art-sheets .tile-art, .art-git { place-items: end start; }
.tile > p.results-note { font-size: 0.8rem; margin: auto 0 0; padding-top: 1.2rem; max-width: none; color: var(--fg-dim); }
.footer-brand .footer-note a { color: var(--fg-mid); text-decoration: underline; text-underline-offset: 2px; }
.footer-brand .footer-note a:hover { color: #fff; }
