/* healx.ai new site (WordPress page templates in themes/healx/interim) */

/* Fonts: self-hosted, subset to Latin. Licences in fonts/OFL-*.txt */
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

/*
  Colours: Healx Design System names. This is the design's "Ink" theme with
  the teal accent.
  Type scale: fixed steps (phone, tablet, desktop), as on the holding page.
*/
:root {
  --bg: #15202D;        /* neutral-ink */
  --band: #1B2836;      /* alternate section background */
  --surface: #2E3D50;   /* navy: cards, chips, tracks */
  --text: #FFFFFF;
  --muted: #D8DDE3;
  --faint: #B3BBC5;     /* neutral-silver */
  --accent: #66C1B0;    /* teal-brand */
  --blue: #5396CF;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  /* Phone (up to 767px) */
  --h1: 36px;
  --h1-page: 32px;      /* Careers and Insights headlines */
  --h2: 28px;
  --stat: 56px;
  --section-y: 64px;
  --hero-top: 56px;
  --hero-bottom: 72px;

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5'/%3E%3C/svg%3E");

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root {
    --h1: 48px;
    --h1-page: 42px;
    --h2: 36px;
    --stat: 64px;
    --section-y: 80px;
    --hero-top: 72px;
    --hero-bottom: 88px;
  }
}

@media (min-width: 1024px) {
  :root {
    --h1: 60px;
    --h1-page: 54px;
    --h2: 42px;
    --stat: 72px;
    --section-y: 96px;
    --hero-top: 96px;
    --hero-bottom: 112px;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
img { display: block; }
a { color: inherit; }
a:hover { opacity: .85; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 3; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; }

/* Shared type */
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.eyebrow.faint { color: var(--faint); }
h1, h2 { font-family: var(--font-display); font-weight: 400; }
h2 { font-size: var(--h2); line-height: 1.18; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.lede { max-width: 640px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--text); }
.btn.small { padding: 10px 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: relative; z-index: 2; padding: 18px 24px; background: transparent; }
/* The header has no background of its own, so the home page hero (and its glow)
   runs up behind it (see .hero). The header gets a background when the menu is
   open or when the pinned header scrolls (.scrolled, below). */
/* The home page pins its header, but only where the menu fits on one row.
   In-page links then stop short by the header's height (80px). */
@media (min-width: 900px) {
  .site-header.sticky { position: sticky; top: 0; z-index: 2; }
  html.pinned-header { scroll-padding-top: 84px; }
}
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-header .home { margin-right: auto; display: flex; }
.site-header .home img { height: 28px; width: auto; }
.site-header .link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: none; }
.site-header .link[aria-current="page"] { color: var(--accent); }
/* The menu: in a row next to the logo. */
.site-header .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.nav-toggle { display: none; }
@media (max-width: 599px) {
  .site-header { padding: 12px 20px; }
  /* Without JavaScript, the links wrap under the logo. */
  .site-header nav:not(.has-toggle) .home { flex-basis: 100%; padding: 6px 0; }
  .site-header nav:not(.has-toggle) .menu { gap: 0 18px; }
}
/* Phones and small tablets: nav.js adds "has-toggle", and a menu button opens
   the links as a list under the logo. */
@media (max-width: 767px) {
  .site-header nav.has-toggle { min-height: 44px; }
  .has-toggle .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
  /* Opening animates the icon; closing is instant (no transition in the closed state). */
  .has-toggle.open .nav-toggle span, .has-toggle.open .nav-toggle span::before, .has-toggle.open .nav-toggle span::after { transition: transform .3s var(--ease-out), background-color .2s; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .has-toggle.open .nav-toggle span { background-color: transparent; }
  .has-toggle.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .has-toggle.open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .has-toggle .menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 20px; }
  .has-toggle.open .menu { display: flex; }
  /* The background changes at once, so that it never covers the hero after the menu closes. */
  header.site-header { transition: none; }
  .site-header.menu-open { background: var(--bg); }
  .has-toggle .menu .link { min-height: 52px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .has-toggle .menu .link::after { display: none; }
  .has-toggle .menu .btn { align-self: flex-start; margin-top: 20px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .has-toggle.open .menu { animation: menu-in .3s var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: var(--section-y) 24px; }
.section.band { background: var(--band); }
.section-head { gap: 12px; }

/* Hero */
.hero { padding: var(--hero-top) 24px var(--hero-bottom); }
/* Pull the hero up behind the header (80px high, 68px on phones). */
.hero { margin-top: -80px; padding-top: calc(var(--hero-top) + 80px); }
@media (max-width: 599px) {
  .hero { margin-top: -68px; padding-top: calc(var(--hero-top) + 68px); }
}
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-main { flex: 3 1 520px; min-width: 0; gap: 28px; }
.hero h1 { font-size: var(--h1); line-height: 1.12; letter-spacing: -0.5px; }
.hero-stat { flex: 2 1 300px; min-width: 0; display: flex; gap: 24px; }
.hero-stat::before { content: ""; width: 4px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.hero-stat .stack { gap: 10px; }
.hero-stat .figure { font-family: var(--font-display); font-size: var(--stat); line-height: 1; color: var(--accent); }
.hero-stat p { font-size: 19px; }
.hero-stat .strong { font-family: var(--font-display); font-weight: 600; }

/* Healnet */
#healnet .wrap { gap: 40px; }
#healnet .section-head { max-width: 760px; }
/* Four across, then 2×2, then one column: never three and one. */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { min-width: 0; background: var(--surface); border-radius: 10px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.step .disc { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--bg); }
.step:nth-child(1) .disc { background: #C5E4DD; }
.step:nth-child(2) .disc { background: var(--accent); }
.step:nth-child(3) .disc { background: var(--blue); }
.step:nth-child(4) .disc { background: #164B74; color: #FFFFFF; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; }
.step p { font-size: 15px; color: var(--muted); }
/* Same steps as the cards above: one column; then the name on its own row
   with the two points side by side; then all three across. */
.platform { margin-top: -24px; border-radius: 10px; background: linear-gradient(180deg, #164B74 0%, #153550 100%); padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 40px; align-items: start; }
@media (min-width: 560px) {
  .platform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform > div:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .platform { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr); }
  .platform > div:first-child { grid-column: auto; }
}
.platform .name { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--accent); }
.platform .name + p { margin-top: 4px; font-size: 15px; }
.platform h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 6px; }
/* Healx Icon System, tonal teal: deep-teal glyph on the teal "soft" disc. */
.platform .point { display: flex; gap: 16px; align-items: flex-start; }
.icon-disc { width: 48px; height: 48px; border-radius: 999px; background: #C5E4DD; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.platform h3 + p { font-size: 15px; color: var(--muted); }

/* Pipeline: scrolls sideways in its own box on narrow screens */
#pipeline .wrap { gap: 40px; }
/* Scroll sideways only. While the rows fade up into place (motion), the last
   row is lower than its final place: overflow-y: hidden stops a vertical scroll
   bar, and the extra 24px at the bottom keeps that row from being cut off. */
.pipeline-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 24px; margin-bottom: -24px; }
.pipeline { --label: 260px; min-width: 780px; display: flex; flex-direction: column; gap: 18px; }
.pipeline .stages { display: grid; grid-template-columns: var(--label) repeat(var(--stages, 6), minmax(0, 1fr)); font-size: 14px; color: var(--faint); text-align: center; }
.pipeline .group { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.6px; color: var(--accent); padding: 18px 0 6px; border-bottom: 1px solid var(--surface); }
.pipeline .row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; font-size: 16px; }
.pipeline .row.clinical { align-items: start; }
.pipeline .asset { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.pipeline .detail { padding-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.pipeline .detail a { font-size: 14px; color: var(--accent); align-self: flex-start; }
@media (max-width: 599px) {
  .pipeline { --label: 168px; min-width: 660px; }
  .pipeline .row > :first-child { padding-right: 12px; }
}
.track { height: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.track > span { display: block; height: 10px; border-radius: 999px; background: #C5E4DD; }
.clinical .track > span { background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 100%); }

/* Team */
#team .wrap { gap: 44px; }
.founders { display: flex; flex-wrap: wrap; gap: 32px; }
.founder { display: flex; gap: 18px; align-items: center; flex: 1 1 320px; }
.founder img { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.founder .name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.founder .role { color: var(--muted); font-size: 15px; }
.group-block { gap: 16px; }
.group-block h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 479px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.people li { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.people img, .people .blank { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; background: var(--surface); }
.people .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); margin-top: 4px; }
.investors { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.investors li { min-width: 140px; height: 56px; padding: 0 20px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
/* White logos on transparent PNGs, each fitted inside the same box. */
.investors img { max-height: 30px; max-width: 130px; width: auto; height: auto; }
.investors a { display: flex; }

/* Contact */
#contact .section-head { gap: 14px; }
#contact .intro { font-size: 19px; color: var(--muted); }
#contact h2 { font-size: clamp(22px, 2.4vw, 28px); }
#contact h2 a { text-decoration: none; }
#contact h2 a:hover { opacity: 1; color: var(--accent); }

/* Footer */
.site-footer { padding: 40px 24px 48px; font-size: 14px; color: var(--faint); }
.site-footer.band { background: var(--band); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { opacity: 1; color: var(--text); }

/* Careers and Insights */
.page-hero { padding: calc(var(--hero-top) - 8px) 24px 72px; }
.page-hero .wrap { gap: 24px; }
.page-hero h1 { font-size: var(--h1-page); line-height: 1.14; max-width: 900px; }
.page-hero.tight { padding-bottom: 40px; }
.page-hero.tight .wrap { gap: 20px; }

#roles { padding: 72px 24px 96px; }
#roles .wrap { gap: 28px; }
.roles-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.roles-head h2 { font-size: clamp(28px, 4vw, 36px); }
.roles-head span { font-size: 14px; color: var(--faint); }
.roles { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.roles a.role { text-decoration: none; background: var(--surface); border-radius: 10px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; min-height: 44px; }
.role .title { font-family: var(--font-display); font-weight: 600; font-size: 18px; flex: 1 1 320px; }
.role .meta { font-size: 15px; color: var(--muted); }
.role .go, .ext { font-size: 15px; color: var(--accent); white-space: nowrap; }
/* Arrow after links that leave the site, drawn in the link's own colour. */
.arrow::after { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.filters button { font-family: var(--font-display); font-weight: 600; font-size: 14px; border: 0; cursor: pointer; padding: 10px 20px; min-height: 44px; border-radius: 999px; background: var(--surface); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.listing { padding: 24px 24px 96px; }
.cards { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 767px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card a { height: 100%; text-decoration: none; background: var(--surface); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.card .tag { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.card .title { font-size: 17px; }
.card .summary { display: none; font-size: 15px; color: var(--muted); }
/* The first visible card is the featured one: full width, with a larger title and a summary. */
.card.is-lead { grid-column: 1 / -1; }
.card.is-lead a { padding: 28px 28px 30px; gap: 10px; }
.card.is-lead .tag { font-size: 13px; }
.card.is-lead .tag::before { content: "Featured · "; }
.card.is-lead .title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.25; }
@media (max-width: 599px) { .card.is-lead a, .card.is-lead .card-body { padding: 22px; } .card.is-lead .title { font-size: 21px; } }
.card.is-lead .summary { display: block; }

/* Insights: "Stay up to date" LinkedIn band */
.follow { padding: 72px 24px; }
.follow .wrap { background: var(--surface); border-radius: 10px; padding: 28px 30px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.follow .wrap > div { flex: 1 1 420px; min-width: 0; }
.follow h2 { font-weight: 600; font-size: 20px; margin-bottom: 6px; }

/* Footer links (from the 12 November build): Privacy · Expanded access · Cookies · LinkedIn */
.footer-links { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.footer-links li + li::before { content: "·"; content: "·" / ""; margin: 0 0.5em; }

/* Policy pages: Privacy, Compassionate use, Cookies, Diversity and inclusion */
.policy { padding: 0 24px var(--section-y); }
.prose { gap: 18px; color: var(--muted); }
.prose > * { max-width: 720px; }
.prose h2 { margin-top: 24px; color: var(--text); font-size: clamp(24px, 3vw, 28px); line-height: 1.25; }
.prose h3 { margin-top: 8px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.prose h2 + h3 { margin-top: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); overflow-wrap: anywhere; }
.prose .updated { margin-top: 16px; font-size: 14px; color: var(--faint); }
/* Phones: the links wrap, so space them out instead of leaving dots at line starts. */
@media (max-width: 599px) {
  .footer-links { gap: 0 20px; }
  .footer-links li + li::before { content: none; }
  .footer-links a { display: inline-block; padding: 6px 0; }
}
.prose strong { font-weight: inherit; color: var(--text); }
/* WordPress adds empty paragraphs around some blocks: hide them. */
.prose p:empty { display: none; }

/* WordPress admin bar: keep the pinned header below it */
@media (min-width: 900px) {
  .admin-bar .site-header.sticky { top: 32px; }
}

/* Cookie notice (Cookie Compliance plugin): match the new design. The plugin's
   own CSS still positions the bar; these rules change only how it looks. */
body.hxi #cookie-notice { background-color: var(--surface) !important; font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.5; box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
/* Only when the notice shows: the plugin hides the container with display: none after "Accept". */
body.hxi #cookie-notice:not(.cookie-notice-hidden) .cookie-notice-container { color: var(--text) !important; padding: 14px 56px 14px 24px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: center; text-align: left; }
body.hxi #cookie-notice #cn-notice-text a { color: var(--accent); }
body.hxi #cookie-notice .cn-button { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--accent) !important; color: var(--bg) !important; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; }

/* Insights: cards without a link (awards), "Show more", and "As featured in" */
.card .card-body { height: 100%; background: var(--surface); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.card.is-lead .card-body { padding: 28px 28px 30px; gap: 10px; }
.more-row { display: flex; justify-content: center; padding-top: 12px; }
.more-row .btn { border: 0; cursor: pointer; }
.featured-in { padding: 64px 24px 80px; background: var(--band); }
.featured-in .wrap { gap: 24px; }
/* Awards and "As featured in" share one band; the second group gets space above it. */
.featured-in .logo-group + .logo-group { margin-top: 48px; }
.featured-in .logo-group { display: flex; flex-direction: column; gap: 24px; }
.press { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.press li { height: 64px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.press img { max-height: 30px; max-width: 130px; width: auto; height: auto; filter: brightness(0) invert(1); } /* All logos show white. */
/* Award logos include square badges: give them more height. */
.press.awards img { max-height: 40px; max-width: 140px; }
.press a { display: flex; }

/* Articles (news and blog posts) */
.page-hero h1.article-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.prose .intro { color: var(--text); }
.prose .intro p { font-size: 19px; }
.prose figure { margin: 8px 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose iframe, .prose video { max-width: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--surface); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.prose .back { margin-top: 24px; }

/* ------------------------------------------------------------------
   Motion. assets/js/motion.js adds the "in" class to elements with
   [data-reveal] when they scroll into view. The inline script in
   parts/header.php adds the "motion" class to <html>, unless the visitor
   asked for reduced motion. Without that class, nothing is hidden or moved.
   ------------------------------------------------------------------ */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* Scroll reveal: fade up, with a short stagger between siblings (--i). */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* Hero: soft teal glow that drifts behind the text. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(102, 193, 176, .16) 0%, rgba(83, 150, 207, .07) 50%, rgba(83, 150, 207, 0) 100%); pointer-events: none; }
.motion .hero::before { animation: hxi-drift 18s ease-in-out infinite alternate; }
@keyframes hxi-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-120px, 80px) scale(1.15); } }

/* Hero statistic: the teal line draws from the top. */
.motion .hero-stat::before { transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease-out) .35s; }
.motion .hero-stat.in::before { transform: none; }
.hero-stat .figure { font-variant-numeric: tabular-nums; }

/* Healnet: the step numbers pop in after their card. */
.motion .step[data-reveal] .disc { transform: scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; transition-delay: calc(var(--i, 0) * 70ms + 250ms); }
.motion .step[data-reveal].in .disc { transform: none; opacity: 1; }

/* Pipeline: the bars fill from the left when the chart comes into view. */
.motion .pipeline .track > span { transform: scaleX(0); transform-origin: left center; transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.motion .pipeline .row.in .track > span { transform: none; }
.pipeline .track { position: relative; }
/* Clinical programmes: a light sweep along the bar, and a pulsing dot at the current stage. */
.clinical .track { overflow: visible; }
.clinical .track > span { position: relative; overflow: visible; }
.clinical .track > span::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%); background-size: 40% 100%; background-repeat: no-repeat; background-position: -60% 0; opacity: 0; }
.motion .clinical.in .track > span::before { animation: hxi-sweep 2.8s ease-in-out 1.6s infinite; }
@keyframes hxi-sweep { 0% { background-position: -60% 0; opacity: 0; } 15% { opacity: 1; } 60%, 100% { background-position: 160% 0; opacity: 0; } }
.clinical .track > span::after { content: ""; position: absolute; right: -2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(102, 193, 176, .6); }
.motion .clinical .track > span::after { opacity: 0; transition: opacity .4s 1.4s; }
.motion .clinical.in .track > span::after { opacity: 1; animation: hxi-pulse 2.2s ease-out 1.6s infinite; }
@keyframes hxi-pulse { 0% { box-shadow: 0 0 0 0 rgba(102, 193, 176, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(102, 193, 176, 0); } }

/* Header: translucent with a blur once the page scrolls (pinned header). */
.site-header { transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(21, 32, 45, .82); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }

/* Menu links: an underline that grows from the left. */
.site-header .link { position: relative; }
.site-header .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.site-header .link:hover { opacity: 1; color: var(--text); }
.site-header .link:hover::after, .site-header .link[aria-current="page"]::after { transform: none; }

/* Buttons: lift and glow. */
.btn { transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s, opacity .2s; }
.btn:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(102, 193, 176, .55); }
.btn.secondary:hover { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6); background: #36475C; }

/* Cards: lift on hover, with a faint teal edge. */
.step, .roles a.role, .card a, .investors li, .press li { transition: transform .25s var(--ease-out), box-shadow .25s, background-color .25s; }
.step:hover, .roles a.role:hover, .card a:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(102, 193, 176, .25); }
.investors li:hover, .press li:hover { background: #36475C; }

/* Team photos: a teal ring on hover. */
.people img, .founder img { transition: box-shadow .3s, transform .3s var(--ease-out); }
.people li:hover img, .founder:hover img { transform: scale(1.04); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .clinical .track > span::before, .clinical .track > span::after { animation: none !important; }
  .btn:hover, .step:hover, .roles a.role:hover, .card a:hover, .people li:hover img, .founder:hover img { transform: none; }
}

/* Footer links underlined, as in the design (12 November feedback). */
.site-footer .footer-links a { text-decoration: underline; text-decoration-color: rgba(179, 187, 197, .5); text-underline-offset: 3px; }
.site-footer .footer-links a:hover { text-decoration-color: currentColor; }

/* While the cookie notice shows (until the visitor accepts), keep space below
   the footer so that the notice does not cover the footer links. */
body.hxi.cookies-not-set .site-footer { padding-bottom: 128px; }
@media (max-width: 767px) { body.hxi.cookies-not-set .site-footer { padding-bottom: 210px; } }
