/* ==========================================================================
   OncoMetLab — stylesheet, proposal 2 ("research journal")
   Layout concept: a 12-column editorial page set like a scientific journal —
   serif headlines, fine rules instead of boxes, mono captions for figures.
   To change a colour or a font everywhere, edit it once in :root below.
   ========================================================================== */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Colour — from the OncoMetLab logo */
  --navy: #1c2b61;
  --teal: #0e8c84;
  --teal-ink: #0a6c66;     /* teal for small text */
  --text: #3e4462;         /* running text */
  --quiet: #6d7390;        /* captions */
  --rule: #d8dde6;
  --paper: #ffffff;        /* same white as the film, so it sits in the page */
  --mist: #f3f6f7;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-cap: 0.75rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lg: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-xl: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  --fs-hero: clamp(2.75rem, 1.4rem + 5.6vw, 7rem);

  /* Space */
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --max: 1320px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-base)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-hero); letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-size: var(--fs-xl); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-lg); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--teal); }
p { margin: 0; text-wrap: pretty; }

/* Language switch */
html:not(.lang-fr) .fr, html.lang-fr .en { display: none !important; }

/* ---------- Grid & rules -------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.grid > * { min-width: 0; }
.ruled { border-top: 1px solid var(--navy); }

.cap {                       /* small caption text */
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--quiet);
  line-height: 1.55;
}
.label {                     /* small uppercase section label */
  font-family: var(--sans);
  font-size: var(--fs-cap);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.cap b { font-weight: 500; color: var(--navy); }

/* text link with an underline that draws in */
.tlink {
  font: 500 var(--fs-sm)/1.4 var(--sans);
  color: var(--navy);
  text-decoration: none;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s, color .2s;
}
.tlink:hover { color: var(--teal-ink); background-size: 0 1px; background-position: 100% 100%; }

.cta {
  display: inline-block;
  font: 500 var(--fs-sm)/1 var(--sans);
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--navy);
  padding: 1.05rem 1.6rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .2s;
}
.cta:hover { background: var(--teal-ink); }

/* ---------- Header --------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 72px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: var(--fs-sm); color: var(--navy); text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: inline-flex; gap: 0.35rem; align-items: center; font-family: var(--sans); font-size: var(--fs-cap); color: var(--rule); }
.lang button { font: inherit; letter-spacing: 0.06em; color: var(--quiet); background: none; border: 0; padding: 0.25rem; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--navy); font-weight: 500; }
.menu-toggle { display: none; background: none; border: 0; padding: 0.4rem; color: var(--navy); cursor: pointer; font: 600 var(--fs-cap) var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 1.5rem var(--gutter) 2rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0.9rem; }
  .nav a { font-family: var(--serif); font-size: 1.75rem; }
}

/* ---------- Home: masthead + film ----------------------------------- */
.masthead { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0; }
.masthead .meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.masthead h1 { grid-column: 1 / span 10; }
.masthead .intro { grid-column: 1 / span 10; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: baseline; justify-content: flex-start; margin-top: 2rem; }
.masthead .intro p { max-width: 34rem; font-size: var(--fs-md); line-height: 1.5; color: var(--text); }
@media (max-width: 760px) { .masthead h1, .masthead .intro { grid-column: 1 / -1; } }

.film { margin-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.film video { width: 100%; max-width: 1600px; aspect-ratio: 16 / 9; margin-inline: auto; background: var(--paper); }
.film__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--rule); }
.film__sound {
  display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer;
  background: none; border: 0; padding: 0; font: 500 var(--fs-sm)/1 var(--sans); color: var(--navy);
}
.film__sound svg { width: 30px; height: 30px; }
.film__sound circle { fill: none; stroke: var(--navy); transition: fill .2s; }
.film__sound path { fill: var(--navy); transition: fill .2s; }
.film__sound:hover circle { fill: var(--navy); }
.film__sound:hover path { fill: #fff; }

/* ---------- Sections -------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.section--mist { background: var(--mist); }
.sec-label { grid-column: 1 / span 3; padding-top: 0.9rem; }
.sec-body { grid-column: 4 / -1; }
@media (max-width: 860px) { .sec-label, .sec-body { grid-column: 1 / -1; } .sec-label { margin-bottom: 1.5rem; } }

.statement {
  font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: var(--fs-lg); line-height: 1.22; letter-spacing: -0.012em; max-width: 26ch;
}
.statement em { color: var(--teal); }
.statement + .row-links { margin-top: 2.5rem; display: flex; gap: 2rem; flex-wrap: wrap; }

/* ---------- Strategies: figure + entries ----------------------------- */
.strategies { align-items: start; row-gap: 3rem; }
.strategies .head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.strategies .head h2 { max-width: 14ch; }
.figure { grid-column: 1 / span 5; position: sticky; top: 110px; }
.entries { grid-column: 7 / -1; }
@media (max-width: 900px) { .figure, .entries { grid-column: 1 / -1; } .figure { position: static; } }

.fig svg { width: 100%; height: auto; overflow: visible; }
.fig .cell { fill: none; stroke: var(--teal); stroke-width: 1.2; stroke-dasharray: 3 5; }
.fig .path { fill: none; stroke: var(--navy); stroke-width: 1.1; }
.fig .node { fill: var(--paper); stroke: var(--navy); stroke-width: 1.1; }
.fig .node-teal { fill: var(--teal); }
.fig .lbl { font-family: var(--mono); font-size: 13px; fill: var(--navy); letter-spacing: 0.02em; }
.fig .lbl-q { font-family: var(--mono); font-size: 12px; fill: var(--quiet); }
.fig .mito { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .fig .mito { animation: drift 48s linear infinite; }
  @keyframes drift { to { transform: rotate(360deg); } }
}
.fig figcaption { margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }

.entry { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.25rem; padding-block: 2rem 2.25rem; border-top: 1px solid var(--rule); }
.entry:first-child { border-top-color: var(--navy); }
.entry img { width: 34px; height: 34px; object-fit: contain; margin-top: 0.55rem; }
.entry h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.entry .tag { font-family: var(--serif); font-style: italic; font-size: var(--fs-md); color: var(--teal-ink); margin-top: 0.4rem; line-height: 1.35; }
.entry p.body { margin-top: 1rem; max-width: 36rem; }

/* ---------- People --------------------------------------------------- */
.people { row-gap: 3rem; }
.person { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: end; }
.portrait {
  aspect-ratio: 4 / 5; max-width: 100%; background: var(--mist);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--serif); font-style: italic; font-size: clamp(2.5rem, 2rem + 2vw, 4rem); color: var(--teal);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.person .cap { margin-top: 0.75rem; }
.person p.bio { margin-top: 1rem; font-size: var(--fs-sm); }
@media (max-width: 900px) { .person { grid-column: 1 / -1; } }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

/* large version on Team page */
.person--lg { grid-template-columns: 1fr; align-items: start; }
.person--lg .portrait { max-width: 420px; }
.person--lg p.bio { font-size: var(--fs-base); max-width: 34rem; }

/* ---------- Closing -------------------------------------------------- */
.closing { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); border-top: 1px solid var(--rule); }
.closing h2 { grid-column: 1 / span 9; }
.closing h2 em { display: block; }
.closing .act { grid-column: 1 / span 9; margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.closing .act p { max-width: 30rem; }
@media (max-width: 760px) { .closing h2, .closing .act { grid-column: 1 / -1; } }

/* ---------- Inner page head ----------------------------------------- */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-head .cap { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; }
.page-head h1 { font-size: var(--fs-xl); grid-column: 1 / span 9; }
.page-head .lead { grid-column: 1 / span 7; margin-top: 2rem; font-size: var(--fs-md); line-height: 1.55; }
@media (max-width: 760px) { .page-head h1, .page-head .lead { grid-column: 1 / -1; } }

.prose-cols { grid-column: 4 / -1; columns: 2 20rem; column-gap: 3rem; }
.prose-cols p { margin-bottom: 1.1rem; break-inside: avoid; }
@media (max-width: 860px) { .prose-cols { grid-column: 1 / -1; } }

/* ---------- Contact -------------------------------------------------- */
.contact { row-gap: 3rem; }
.contact .facts { grid-column: 1 / span 4; }
.contact form { grid-column: 6 / -1; }
@media (max-width: 900px) { .contact .facts, .contact form { grid-column: 1 / -1; } }
.facts dl { margin: 0; border-top: 1px solid var(--navy); }
.facts dt { font-family: var(--sans); font-size: var(--fs-cap); font-weight: 600; text-transform: uppercase; color: var(--teal-ink); letter-spacing: 0.14em; padding-top: 1rem; }
.facts dd { margin: 0.2rem 0 0; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); color: var(--navy); font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.2rem/1.4 var(--serif); color: var(--navy);
  background: transparent; border: 0; border-bottom: 1px solid var(--navy); border-radius: 0;
  padding: 0.55rem 0; transition: border-color .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c2b61' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2rem center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--teal); padding-bottom: calc(0.55rem - 1px); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: center; }
.form__foot .cap { max-width: 26rem; }
.form__foot .cap a { color: var(--navy); }
.form__foot button { border: 0; cursor: pointer; }
.form__status { grid-column: 1 / -1; font-size: var(--fs-sm); padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.form__status.ok { color: var(--teal-ink); }
.form__status.err { color: #9b2c22; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Legal ---------------------------------------------------- */
.prose { grid-column: 4 / span 7; display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { font-size: var(--fs-md); font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-top: 1.75rem; }
@media (max-width: 860px) { .prose { grid-column: 1 / -1; } }
.todo { background: #fff4cc; color: #6b5300; padding: 0 0.3em; }

/* ---------- Footer --------------------------------------------------- */
.site-footer { border-top: 1px solid var(--navy); padding-block: 3.5rem 2rem; }
.site-footer .grid { row-gap: 2.5rem; }
.site-footer .f-brand { grid-column: 1 / span 5; }
.site-footer .f-brand img { width: 230px; height: auto; margin-bottom: 1.25rem; }
.site-footer .f-col { grid-column: span 3; }
.site-footer .f-col:last-of-type { grid-column: 10 / span 3; }
.site-footer ul { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { color: var(--navy); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--teal-ink); }
.site-footer .base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .site-footer .f-brand { grid-column: 1 / -1; } .site-footer .f-col, .site-footer .f-col:last-of-type { grid-column: span 6; } }

/* ---------- Load-in (content visible without it) -------------------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; }
  @keyframes rise { from { opacity: .001; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 600px) { .fig .lbl { font-size: 15px; } .fig .lbl-q { font-size: 14px; } }


/* ==========================================================================
   Revision 2
   ========================================================================== */

/* Home hero without the info strip */
.masthead { padding-top: clamp(3rem, 2rem + 4vw, 6.5rem); }

/* Inner page head without the info strip */
.page-head .label { display: block; margin-bottom: 1.5rem; }

/* Strategies on Home: three columns of text, no figure */
.entries--row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.entries--row .entry { grid-template-columns: 1fr; row-gap: 1.25rem; border-top: 1px solid var(--navy); }
.entries--row .entry img { margin-top: 0; }
@media (max-width: 860px) { .entries--row { grid-template-columns: 1fr; } .entries--row .entry { border-top-color: var(--rule); } .entries--row .entry:first-child { border-top-color: var(--navy); } }

/* Team: circular portraits */
.portrait { aspect-ratio: 1; border-radius: 50%; width: 100%; max-width: 220px; font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem); }
.person--lg { gap: 2rem; }
.person--lg .portrait { max-width: 240px; }
@media (max-width: 520px) { .portrait, .person--lg .portrait { max-width: 180px; } }

/* Metabolism projection (Approach page) */
.projection { background: #0d1736; color: #e9edf6; padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.projection .label { color: #5fd0c4; }
.projection h2 { color: #fff; margin-top: 1.25rem; max-width: 16ch; }
.projection h2 em { color: #5fd0c4; }
.projection .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.projection .intro > * { min-width: 0; }
.projection .intro p { color: #aab4d1; max-width: 34rem; }
@media (max-width: 860px) { .projection .intro { grid-template-columns: 1fr; } }
.screen { position: relative; }
.screen canvas { display: block; width: 100%; max-width: 100%; aspect-ratio: 1200 / 790; border: 1px solid rgba(170, 180, 209, 0.18); border-radius: 4px; }
@media (max-width: 679px) { .screen canvas { aspect-ratio: 4 / 5; } }
.screen__ctrl {
  flex: none;
  font: 600 var(--fs-cap)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: #e9edf6; background: rgba(13, 23, 54, 0.75); border: 1px solid rgba(170, 180, 209, 0.35);
  padding: 0.55rem 0.8rem; border-radius: 2px; cursor: pointer;
}
.screen__ctrl:hover { border-color: #5fd0c4; color: #5fd0c4; }
.projection .legend { color: #8d98bf; font-size: 0.8125rem; }
.screen__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 1rem; }
.screen__foot > div { min-width: 0; }

/* Strategies on Approach: full-width rows */
.entries--wide { grid-column: 1 / -1; }
.entries--wide .entry { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.25fr); column-gap: clamp(1rem, 0.5rem + 3vw, 4rem); }
.entries--wide .entry > div { display: contents; }
.entries--wide .entry h3, .entries--wide .entry .tag { grid-column: 2; }
.entries--wide .entry .body { grid-column: 3; grid-row: 1 / span 2; margin-top: 0.6rem !important; }
@media (max-width: 860px) {
  .entries--wide .entry { grid-template-columns: 3rem minmax(0, 1fr); }
  .entries--wide .entry .body { grid-column: 2; grid-row: auto; }
}

/* ==========================================================================
   Revision 3
   ========================================================================== */

/* Home title on a single line (wraps only on narrow screens) */
.masthead { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0; }
.masthead h1.one-line { font-size: clamp(2.25rem, 0.9rem + 3.9vw, 4.6rem); line-height: 1.05; }
@media (min-width: 900px) { .masthead h1.one-line { white-space: nowrap; } }
.film { margin-top: clamp(0.5rem, 0.2rem + 1vw, 1.25rem); }

/* Strategy names on Home */
.trio { list-style: none; margin: 2.5rem 0 2.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; }
.trio li { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 500; color: var(--navy); }
.trio img { width: 26px; height: 26px; object-fit: contain; }

/* Navy band with the ring that draws around the emblem */
.band { background: var(--navy); color: #e9edf6; }
.band .wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
}
.band .wrap > * { min-width: 0; }
.band h2 { color: #fff; font-size: var(--fs-xl); }
.band h2 em { color: #5fd0c4; }
.band p { color: #aab4d1; font-size: var(--fs-md); margin-top: 1.25rem; max-width: 34rem; }
.band .cta { margin-top: 2rem; }
.cta--light { background: #fff; color: var(--navy); }
.cta--light:hover { background: #e7f3f2; color: var(--navy); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

.orbit { position: relative; width: clamp(180px, 22vw, 270px); aspect-ratio: 1; max-width: 100%; }
.orbit img { position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; background: #fff; }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit .track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 1.2; }
.orbit .ring { fill: none; stroke: #5fd0c4; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; transform-origin: 50% 50%; transform: rotate(-90deg); }
.orbit.is-armed .ring { stroke-dashoffset: 600; }
.orbit.is-drawn .ring { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(.6,.05,.25,1); }

/* Animated three-strategies schematic (Approach) */
.routes { grid-column: 1 / -1; }
.routes svg { width: 100%; height: auto; display: block; overflow: visible; }
.routes .cell { fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-dasharray: 4 7; }
.routes .route { fill: none; stroke: var(--navy); stroke-width: 1.3; }
.routes .route-ghost { fill: none; stroke: var(--rule); stroke-width: 1.3; }
.routes .node { fill: var(--paper); stroke: var(--navy); stroke-width: 1.4; }
.routes .fill-teal { fill: var(--teal); }
.routes .stroke-teal { fill: none; stroke: var(--teal); stroke-width: 1.6; }
.routes .t { font-family: var(--mono); font-size: 16px; letter-spacing: 0.04em; fill: var(--navy); transition: fill .4s; }
.routes .t.on { fill: var(--teal-ink); }
.routes .s { font-family: var(--mono); font-size: 14px; fill: var(--quiet); }
.routes .cell-l { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; fill: var(--quiet); }

/* Film as a full-width band, edge to edge */
.film video { width: 100%; max-width: none; margin: 0; }

/* Film: only the sound button under the band, no caption */
.film__legend { justify-content: flex-end; border-top: 0; }
.screen__foot { justify-content: flex-end; }
.strategies .routes { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Combined animation inside "Three strategies": 3/4 of the width, centred */
.strategies .screen { grid-column: 1 / -1; width: 75%; max-width: 100%; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem); }
.strategies .screen canvas { border: 0; border-radius: 6px; }
.strategies .screen__ctrl { color: var(--navy); background: transparent; border-color: var(--rule); }
.strategies .screen__ctrl:hover { color: var(--teal-ink); border-color: var(--teal); }
@media (max-width: 860px) { .strategies .screen { width: 100%; } }

/* ==========================================================================
   Revision 4 — Home
   ========================================================================== */
.masthead { padding-block: clamp(1rem, 0.6rem + 1.2vw, 1.75rem) 0; }
.masthead h1.one-line { text-align: center; font-size: clamp(2rem, 0.9rem + 3.2vw, 3.9rem); }
.film { position: relative; margin-top: clamp(0.25rem, 0.1rem + 0.6vw, 0.75rem); }
/* the whole film fits in the first screen: white letterbox is invisible on the white page */
.film video {
  width: 100%;
  height: min(56.25vw, calc(100vh - 72px - clamp(4.5rem, 2.6rem + 4.2vw, 7rem)));
  height: min(56.25vw, calc(100svh - 72px - clamp(4.5rem, 2.6rem + 4.2vw, 7rem)));
  object-fit: contain;
  background: var(--paper);
  cursor: pointer;
  aspect-ratio: auto;
}
.film__sound {
  position: absolute; right: var(--gutter); bottom: 0.75rem;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--rule); cursor: pointer; color: var(--navy);
}
.film__sound:hover { border-color: var(--navy); }
.film__sound svg { width: 20px; height: 20px; }
.film__sound path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.film__sound .on { display: none; }
.film__sound.is-on .on { display: inline; }
.film__sound.is-on .off { display: none; }

/* Section labels that are links */
.label-link { text-decoration: none; display: inline-block; align-self: start; }
.label-link:hover { color: var(--navy); }

/* Wider statement, bigger strategy names */
.statement--wide { max-width: 40ch; }
.statement--sm { font-size: var(--fs-md); line-height: 1.45; max-width: none; }
.trio { margin: 2.75rem 0 0; gap: 1.25rem 3.5rem; }
.trio li { gap: 1rem; font-size: var(--fs-md); font-family: var(--serif); font-weight: 400; }
.trio img { width: 48px; height: 48px; }
.section--line { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--rule); }
.strategies .screen canvas { cursor: pointer; }
.strategies .screen canvas:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }


/* ==========================================================================
   Revision 6
   ========================================================================== */
/* Home: the three strategies always on one line */
.trio { flex-wrap: nowrap; display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; }
@media (max-width: 700px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .trio li { flex-direction: column; align-items: flex-start; gap: 0.6rem; font-size: 1.05rem; line-height: 1.25; }
  .trio img { width: 40px; height: 40px; }
}
/* Approach: figure closer to the heading, less empty space */
.strategies { row-gap: 0; }
.strategies .head { margin-bottom: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); }
.strategies .screen { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); width: 80%; }
@media (max-width: 860px) { .strategies .screen { width: 100%; } }

/* ==========================================================================
   Research page: pipeline, patent, field
   ========================================================================== */
.pipeline { --name: minmax(0, 1.25fr); border-top: 1px solid var(--navy); }
.pl-head, .pl-row { display: grid; grid-template-columns: var(--name) repeat(3, minmax(0, 1fr)); column-gap: 0; align-items: center; }
.pl-head { padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
.pl-head > span { font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); padding-left: 0.75rem; }
.pl-head > span:first-child { padding-left: 0; }
.pl-row { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.pl-name { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; padding-right: 1.5rem; }
.pl-name img { width: 32px; height: 32px; object-fit: contain; flex: none; margin-top: 0.25rem; }
.pl-name h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
.pl-name p { font-size: 0.9375rem; margin-top: 0.25rem; }
.pl-tag { display: inline-block; margin-top: 0.6rem !important; font-size: var(--fs-cap) !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); border: 1px solid var(--teal); padding: 0.25rem 0.5rem; border-radius: 2px; }
.pl-track { grid-column: 2 / -1; position: relative; height: 34px;
  background: linear-gradient(90deg, transparent calc(33.333% - 0.5px), var(--rule) calc(33.333% - 0.5px), var(--rule) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), var(--rule) calc(66.666% - 0.5px), var(--rule) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)); }
.pl-bar { position: absolute; left: 0; top: 7px; height: 20px; border-radius: 0 10px 10px 0; background: var(--teal); width: 30%;
  display: flex; align-items: center; padding-left: 0.75rem; color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; }
.pl-row[data-stage="1"] .pl-bar { width: 30%; background: #8fcfc8; }
.pl-row[data-stage="2"] .pl-bar { width: 63%; }
.pl-row[data-stage="3"] .pl-bar { width: 96%; }
@media (prefers-reduced-motion: no-preference) {
  .pl-bar { animation: grow 1.4s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
  @keyframes grow { from { transform: scaleX(0.05); } to { transform: none; } }
}
@media (max-width: 640px) {
  .pl-head, .pl-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-head > span:first-child { display: none; }
  .pl-head > span { padding-left: 0; font-size: 0.625rem; letter-spacing: 0.08em; }
  .pl-name { grid-column: 1 / -1; margin-bottom: 0.75rem; }
  .pl-track { grid-column: 1 / -1; }
}
.pipeline--mini { margin-top: 2rem; }
.pipeline--mini .pl-row { padding-block: 0.7rem; }
.pipeline--mini .pl-name h3 { font-size: 1.1rem; }
.pipeline--mini .pl-track { height: 26px; }
.pipeline--mini .pl-bar { top: 6px; height: 14px; }
@media (max-width: 640px) { .pipeline--mini .pl-name { margin-bottom: 0.25rem; } }

.patent { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--navy); }
.patent > div { padding-top: 1rem; min-width: 0; }
.patent dt { font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
.patent dd { margin: 0.35rem 0 0; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); line-height: 1.3; }
@media (max-width: 700px) { .patent { grid-template-columns: 1fr; } }

.r-h { font-size: var(--fs-lg); max-width: 22ch; }
.r-sub { margin-top: 0.5rem; color: var(--quiet); font-size: 0.9375rem; }
.r-h3 { font-family: var(--sans); font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); margin-top: 3rem; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 2.5rem; border-top: 1px solid var(--navy); max-width: 44rem; }
.glance > div { padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.g-num { font-family: var(--serif); font-size: clamp(2.75rem, 2rem + 2vw, 4rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.g-cap { font-size: 0.9375rem; color: var(--quiet); }
.r-table { overflow-x: auto; margin-top: 1rem; }
.r-table table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
.r-table th { text-align: left; font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--quiet); padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--navy); }
.r-table td { padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--text); }
.r-table td:first-child { color: var(--navy); font-weight: 500; white-space: nowrap; }
.r-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-table a { color: var(--navy); }
.r-note { margin-top: 2rem; font-size: 0.8125rem; color: var(--quiet); max-width: 46rem; }

/* Revision 8 */
.pl-row[data-stage="1.5"] .pl-bar { width: 42%; background: #8fcfc8; }
.pl-row[data-stage="2"] .pl-bar { width: 64%; }
.glance--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; margin: 2.25rem 0 1.75rem; }
.g-item { padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; text-decoration: none; color: inherit; }
a.g-item:hover .g-num, a.g-item:hover .g-cap { color: var(--teal-ink); }
@media (max-width: 640px) { .glance--3 { grid-template-columns: 1fr; } }
.studies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem 2rem; font-size: 0.875rem; }
.studies li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid var(--rule); min-width: 0; }
.studies span { color: var(--quiet); }
.studies a { color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .studies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .studies { grid-template-columns: 1fr; } }
.r-note { margin-top: 1.25rem; }
.pub-link { display: inline-block; margin-top: 1.25rem; }

/* Revision 9: our patents / in the field */
.own { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 1rem 3rem; align-items: end; border-top: 1px solid var(--navy); }
.own .g-item { padding-top: 1.25rem; }
.own .statement { padding-bottom: 0.35rem; }
@media (max-width: 640px) { .own { grid-template-columns: 1fr; } }
.glance--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; margin: 2rem 0 1.75rem; }
.own { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-top: 1.5rem; }
.own-link { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.15; color: var(--navy); text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; }
.own-link:hover { color: var(--teal-ink); }
.own .own-link { font: inherit; color: var(--navy); background-size: 100% 1px; padding-bottom: 2px; }
.own .own-link:hover { color: var(--teal-ink); }

/* Revision 12 — Approach: header + title + animation fit in one screen */
.strategies .head h2 { max-width: none; }
.strategies .screen {
  width: min(80%, calc((100vh - 230px) * 1.519));
  width: min(80%, calc((100svh - 230px) * 1.519));
  min-width: min(100%, 320px);
}
@media (max-width: 860px) { .strategies .screen { width: 100%; } }
.r-funded { margin-top: 1.75rem; font-family: var(--serif); font-size: var(--fs-md); line-height: 1.45; color: var(--navy); max-width: 44rem; }
.r-funded em { color: var(--teal); }
.r-note a { color: var(--quiet); }

/* Team: investors & partners, three across */
.person--sm { grid-column: span 4; grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
.person--sm .portrait { max-width: 168px; }
.person--sm h3 { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); }
.person--sm p.bio { margin-top: 0.75rem; }
.people .sec-label { margin-bottom: -1rem; }
@media (max-width: 900px) { .person--sm { grid-column: span 6; } }
@media (max-width: 600px) { .person--sm { grid-column: 1 / -1; grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .person--sm .portrait { max-width: 120px; } }
.person--sm .pub-link { display: inline-block; margin-top: 0.9rem; }
.person--lg, .person--sm { align-content: start; }

/* Team: every member in the same format (founders two across, partners three across) */
.person--third { grid-column: span 4; }
.person--third p.bio { max-width: 24rem; }
@media (max-width: 1000px) { .person--third { grid-column: span 6; } }
@media (max-width: 900px) { .person--third { grid-column: 1 / -1; } }

/* Team: partners shown smaller than the founders */
.person--third { gap: 1.25rem; }
.person--third .portrait { max-width: 168px; }
.person--third h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); }
.person--third p.bio { font-size: var(--fs-sm); margin-top: 0.75rem; }
@media (max-width: 520px) { .person--third .portrait { max-width: 130px; } }

/* Team page: more compact */
.team-page.page-head { padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.team-page.page-head .lead { grid-column: 1 / -1; font-size: var(--fs-base); margin-top: 1.25rem; max-width: none; }
.team-page .person--lg .portrait { max-width: 180px; }
.team-page .person--lg h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); }
.team-page .person--lg p.bio { font-size: var(--fs-sm); margin-top: 0.75rem; }
.team-page .person--third .portrait { max-width: 132px; }
.team-page .person--third h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); }
.team-page .person--third p.bio { font-size: 0.875rem; }
.team-page .people { row-gap: 2.5rem; }
@media (max-width: 520px) { .team-page .person--lg .portrait { max-width: 150px; } .team-page .person--third .portrait { max-width: 110px; } }
.team-page.page-head h1 { font-size: clamp(2.4rem, 1.9rem + 2vw, 3.6rem); }
.team-page.page-head { padding-top: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.team-page .person--lg .portrait, .team-page .person--third .portrait { max-width: 132px; }
@media (max-width: 520px) { .team-page .person--lg .portrait, .team-page .person--third .portrait { max-width: 110px; } }

/* Pipeline: early preclinical clearly inside the preclinical column */
.pl-row[data-stage="1.5"] .pl-bar { width: 37%; background: #8fcfc8; color: var(--navy); }

/* Discreet hints under the film and the animation */
.film { position: relative; }
.film__hint { position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); margin: 0;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); pointer-events: none;
  transition: opacity .3s; }
.film__hint.is-hidden { opacity: 0; }
.screen__hint { text-align: center; margin: 0.6rem 0 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.screen__hint .hint-play { display: none; }
.screen.is-paused .screen__hint .hint-play { display: inline; }
.screen.is-paused .screen__hint .hint-pause { display: none; }

/* Hints, refined: next to the speaker button (film) and a corner pause/play badge (animation) */
.film__hint { left: auto; transform: none; right: calc(var(--gutter) + 52px); bottom: 0.75rem; height: 40px; line-height: 40px;
  font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--quiet); }
.screen__hint { display: none; }
.screen__badge { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 0.6rem; pointer-events: none; }
.screen__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.92); border: 1px solid var(--rule); color: var(--navy); transition: border-color .2s; }
.screen__icon svg { width: 16px; height: 16px; }
.screen__icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screen__icon .i-play { fill: currentColor; stroke-width: 1.2; display: none; }
.screen.is-paused .screen__icon .i-play { display: inline; }
.screen.is-paused .screen__icon .i-pause { display: none; }
.screen__label { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet);
  opacity: 0; transform: translateX(4px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.screen__label .hint-play { display: none; }
.screen.is-paused .screen__label .hint-play { display: inline; }
.screen.is-paused .screen__label .hint-pause { display: none; }
.screen:hover .screen__label, .screen.is-paused .screen__label { opacity: 1; transform: none; }
.screen:hover .screen__icon { border-color: var(--navy); }
@media (hover: none) { .screen__label { opacity: 1; transform: none; } }
@media (max-width: 600px) { .film__hint { display: none; } }

/* Home: the ambition line under the Approach statement */
.aim { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); max-width: 46rem; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-soft, #4a5170);
  padding-left: 1rem; border-left: 2px solid var(--teal); }
.aim strong { display: block; margin-top: 0.35rem; font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.25; color: var(--teal-ink, #0a6c66); }
.page-head .lead--wide { grid-column: 1 / -1; max-width: none; }
@media (max-width: 900px) { .br-desk { display: none; } }

/* Team: profile links under each person */
.person .links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.person .links a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem 0.3rem 0.5rem;
  border: 1px solid var(--rule); border-radius: 999px; font-size: 0.8125rem; color: var(--navy); text-decoration: none;
  transition: border-color .2s, color .2s; }
.person .links a:hover { border-color: var(--teal); color: var(--teal-ink); }
.person .links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* official PubMed and LinkedIn marks */
.person .links { gap: 0.9rem; align-items: center; }
.person .links a { padding: 0; border: 0; border-radius: 0; opacity: 0.9; transition: opacity .2s, transform .2s; }
.person .links a:hover { opacity: 1; transform: translateY(-1px); }
.person .links a.li img { height: 24px; width: 24px; display: block; }
.person .links a.pm img { height: 26px; width: auto; display: block; }
.person .links a.li img { height: 20px; width: auto; }

/* French is longer: keep the one-line home title and pipeline labels inside the page */
html.lang-fr .masthead h1.one-line { font-size: clamp(1.7rem, 0.55rem + 2.35vw, 2.85rem); }
@media (max-width: 600px) { .pl-bar { font-size: 0.625rem; padding-left: 0.5rem; letter-spacing: 0.02em; } }

/* OncoMetLab wordmark in the bottom-left corner of the animation */
.screen__logo { position: absolute; left: 16px; bottom: 18px; height: 26px; width: auto; pointer-events: none; opacity: 0.95; }
@media (max-width: 600px) { .screen__logo { height: 19px; left: 12px; bottom: 16px; } }

/* Pause/play control: below the animation, on the right, same look as the film's sound control */
.strategies .screen { margin-bottom: calc(clamp(1.5rem, 1rem + 1.5vw, 2.5rem) + 54px); }
.screen__badge { top: calc(100% + 12px); bottom: auto; right: 0; gap: 0.75rem; }
.screen__icon { width: 40px; height: 40px; background: var(--paper); }
.screen__icon svg { width: 18px; height: 18px; }
.screen__label { opacity: 1; transform: none; font-size: 0.6875rem; letter-spacing: 0.1em; }

/* Animation controls on one line under the animation:
   wordmark on the left (aligned with the page text), pause/play on the far right (aligned with the film's sound button) */
.strategies .screen { width: 100%; min-width: 0; }
.strategies .screen canvas {
  width: min(80%, calc((100vh - 230px) * 1.519));
  width: min(80%, calc((100svh - 230px) * 1.519));
  min-width: min(100%, 320px);
  margin-inline: auto;
}
@media (max-width: 860px) { .strategies .screen canvas { width: 100%; } }
.screen__badge { right: min(0px, calc(var(--gutter) - (100vw - 100%) / 2)); }
.screen__logo { top: calc(100% + 12px + (40px - 26px) / 2); bottom: auto; left: 0; height: 26px; }
@media (max-width: 600px) { .screen__logo { top: calc(100% + 12px + (40px - 20px) / 2); height: 20px; left: 0; } }
@media (max-width: 600px) { .screen__label { white-space: normal; max-width: 8.5rem; text-align: right; line-height: 1.35; letter-spacing: 0.06em; } }

/* ==========================================================================
   Revision 13 — Footer: larger main logo, links on one line, aligned like a table
   ========================================================================== */
.site-footer .grid { align-items: center; row-gap: 0.9rem; }
.site-footer .f-brand { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.site-footer .f-brand img { width: 300px; max-width: 100%; margin-bottom: 1rem; }
/* the two lines share one box, right-aligned: labels on one axis, links on a second axis */
.site-footer .grid > .f-col,
.site-footer .grid > .f-col:last-of-type {
  grid-column: 6 / -1; justify-self: end; width: 34rem; max-width: 100%;
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; column-gap: 1rem;
}
.site-footer .grid > .f-col:nth-child(2) { grid-row: 1; align-self: end; }
.site-footer .grid > .f-col:nth-child(3) { grid-row: 2; align-self: start; }
.site-footer .f-col > .cap { margin: 0; }
.site-footer .f-col ul { margin: 0; flex-direction: row; flex-wrap: wrap; gap: 0.35rem 1.6rem; }
.site-footer .base { grid-row: 3; margin-top: 1.25rem; }
@media (max-width: 900px) {
  .site-footer .f-brand { grid-column: 1 / -1; grid-row: auto; }
  .site-footer .grid > .f-col, .site-footer .grid > .f-col:last-of-type,
  .site-footer .grid > .f-col:nth-child(2), .site-footer .grid > .f-col:nth-child(3) {
    grid-column: 1 / -1; grid-row: auto; justify-self: stretch; width: auto; align-self: auto; grid-template-columns: 6.5rem minmax(0, 1fr); }
  .site-footer .f-col ul { gap: 0.35rem 1.25rem; }
  .site-footer .base { grid-row: auto; margin-top: 0.5rem; }
}
