/* Nordstar Medical — site styles */

:root {
  /* Brand */
  --logo-blue: #177ACC;
  --royal: #1665C0;        /* brand blue, as on the flyer: buttons, links (AA on white) */
  --royal-hover: #11509A;
  --fjord: #183459;        /* headings, dark surfaces */
  --fjord-deep: #11284A;
  --ice: #EAF1FB;
  --mist: #F5F8FD;
  --white: #FFFFFF;
  --page: #FAFAFA;         /* general page background */
  --steel: #5F7290;        /* comparator in charts (AA with white text) */

  /* Text */
  --text: #2E3D53;
  --text-muted: #5A6A82;
  --line: #D5E0EF;

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius-panel: 28px;
  --radius-card: 18px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  color: var(--fjord);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--royal-hover); }

:focus-visible {
  outline: 3px solid var(--logo-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--fjord); color: var(--white);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px;
  padding: 6px 8px 6px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: 600 1rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:not(:has(.btn-icon)) { padding-right: 22px; }
.btn-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--royal);
}
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--fjord); border-color: rgba(24, 52, 89, .25); }
.btn-ghost:hover { border-color: var(--fjord); color: var(--fjord); }
.btn-outline { background: transparent; color: var(--royal); box-shadow: inset 0 0 0 2px var(--royal); }
.btn-outline:hover { background: var(--royal); color: var(--white); }
.btn-light { background: var(--white); color: var(--fjord); }
.btn-light:hover { background: var(--ice); color: var(--fjord); }
.btn-sm { min-height: 42px; font-size: .9375rem; padding: 6px 18px; }
.btn[disabled] { opacity: .5; cursor: progress; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 24px;
}
.brand img { height: 29px; width: auto; }
.site-header .btn-sm { min-height: 38px; font-size: .875rem; padding: 5px 16px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  color: var(--fjord); text-decoration: none; font-weight: 500; font-size: .9375rem;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--logo-blue); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--fjord); border-radius: 2px;
  transition: transform .2s var(--ease-out), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { justify-content: center; }
}

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

.section { padding: var(--section-y) 0; }
.section-ice { background: var(--ice); }
.section-navy { background: var(--fjord); color: #D7E2F2; }
.section-navy h2, .section-navy h1 { color: var(--white); }
/* the contact page uses the section heading as its page title, at the same size */
.contact-copy h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }

/* ---------- Hero ---------- */

/* Header floats over the hero, turns solid once the page scrolls */
.site-header-overlay { background: transparent; backdrop-filter: none; }
.site-header-overlay.is-scrolled { background: rgba(250, 250, 250, .94); backdrop-filter: saturate(1.4) blur(10px); }
.btn-header { background: var(--royal); color: var(--white); }
.btn-header:hover { background: var(--royal-hover); color: var(--white); }

/* Hero: centred headline, a line with a word that changes in a blue pill, and the steps panel right below */
.hero {
  --dots-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='56' viewBox='0 0 112 56' fill='%231665C0' fill-opacity='.34' shape-rendering='geometricPrecision'%3E%3Ccircle cx='7' cy='7' r='1.6'/%3E%3Ccircle cx='21' cy='7' r='1.6'/%3E%3Ccircle cx='35' cy='7' r='1.6'/%3E%3Ccircle cx='49' cy='7' r='1.6'/%3E%3Ccircle cx='63' cy='7' r='1.6'/%3E%3Ccircle cx='77' cy='7' r='1.6'/%3E%3Ccircle cx='91' cy='7' r='1.6'/%3E%3Ccircle cx='105' cy='7' r='1.6'/%3E%3Ccircle cx='7' cy='21' r='1.6'/%3E%3Ccircle cx='21' cy='21' r='1.6'/%3E%3Ccircle cx='35' cy='21' r='1.6'/%3E%3Ccircle cx='49' cy='21' r='1.6'/%3E%3Ccircle cx='63' cy='21' r='1.6'/%3E%3Ccircle cx='77' cy='21' r='1.6'/%3E%3Ccircle cx='91' cy='21' r='1.6'/%3E%3Ccircle cx='105' cy='21' r='1.6'/%3E%3Ccircle cx='7' cy='35' r='1.6'/%3E%3Ccircle cx='21' cy='35' r='1.6'/%3E%3Ccircle cx='35' cy='35' r='1.6'/%3E%3Ccircle cx='49' cy='35' r='1.6'/%3E%3Ccircle cx='63' cy='35' r='1.6'/%3E%3Ccircle cx='77' cy='35' r='1.6'/%3E%3Ccircle cx='91' cy='35' r='1.6'/%3E%3Ccircle cx='105' cy='35' r='1.6'/%3E%3Ccircle cx='7' cy='49' r='1.6'/%3E%3Ccircle cx='21' cy='49' r='1.6'/%3E%3Ccircle cx='35' cy='49' r='1.6'/%3E%3Ccircle cx='49' cy='49' r='1.6'/%3E%3Ccircle cx='63' cy='49' r='1.6'/%3E%3Ccircle cx='77' cy='49' r='1.6'/%3E%3Ccircle cx='91' cy='49' r='1.6'/%3E%3Ccircle cx='105' cy='49' r='1.6'/%3E%3C/svg%3E");
  position: relative;
  margin-top: -65px; /* header height incl. its 1px border */
  padding: calc(65px + clamp(56px, 11vh, 128px)) 0 clamp(56px, 8vh, 96px);
  overflow: hidden;
  background: var(--page);
  text-align: center;
}
/* two small dot grids, one on each side */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    var(--dots-small) no-repeat max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))) 78%,
    var(--dots-small) no-repeat right max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))) top 38%;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; margin: 0 auto; font-size: clamp(2.6rem, 6.2vw, 5.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.hero-rotator {
  margin-top: clamp(16px, 2.2vw, 28px);
  display: flex; justify-content: center; align-items: center;
  font-size: clamp(1.75rem, 5vw, 4.5rem); font-weight: 400; white-space: nowrap; line-height: 1.1; letter-spacing: -0.03em; color: var(--fjord);
}
/* the changing word: each slides up into the pill, which resizes to fit it */
.hero-pill {
  position: relative; display: inline-block; flex: none;
  height: 1.32em; width: 4.6em; /* main.js sets the width to the current word */
  margin: 0 0 0 .28em; /* a space after "one" */
  border-radius: var(--radius-pill);
  background: var(--royal); color: var(--white);
  overflow: hidden;
  transition: width .5s var(--ease-out);
}
.hero-word {
  position: absolute; left: 50%; top: 0; padding: 0 .42em;
  line-height: 1.32em; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 70%);
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.hero-word.is-active { opacity: 1; transform: translate(-50%, 0); }
.hero-word.is-leaving { opacity: 0; transform: translate(-50%, -70%); }
/* a round full stop (the font's own is square-ish), sitting on the baseline */
.hero .dot { display: inline-block; width: .19em; height: .19em; margin-left: .05em; border-radius: 50%; background: currentColor; vertical-align: baseline; }
.hero-pill .dot { width: .12em; height: .12em; margin-left: .04em; } /* lighter, to match the regular-weight word */
.hero-lede { margin: clamp(22px, 3vw, 36px) auto 0; max-width: 44ch; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.5; color: var(--text); }

/* One orchestrated load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .8s var(--ease-out) both; }
  .hero-inner > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3) { animation-delay: .16s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pill, .hero-word { transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero::before { background: var(--dots-small) no-repeat right var(--gutter) bottom 16px; }
}

/* ---------- Problem ---------- */

/* numbered source references and the list they point to */
.cite-ref { font-size: .7em; line-height: 0; margin-left: 2px; }
.cite-ref a { text-decoration: none; font-weight: 600; }
.cite-ref a:hover { text-decoration: underline; }
.sources { margin: 28px 0 0; padding-left: 1.4em; font-size: .8125rem; line-height: 1.5; color: var(--text-muted); display: grid; gap: 4px; }

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ice);
  color: var(--fjord);
  font-size: .9375rem; font-weight: 500;
}
.problem-intro h2 { margin-top: 24px; font-size: clamp(2.2rem, 4.4vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.problem-intro p:not(.pill) { margin-top: 24px; font-size: 1.1875rem; line-height: 1.6; max-width: 44ch; }
.problem-intro h2 + p { margin-top: 32px; }
.problem-points {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 18px;
  max-width: 48ch;
}
.problem-points li { font-size: 1.0625rem; line-height: 1.6; padding-left: 18px; border-left: 3px solid var(--logo-blue); }
.problem-points strong { color: var(--fjord); font-weight: 600; }

/* Right: photo in a rounded panel */
.problem-visual {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--fjord);
}
.problem-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-visual { aspect-ratio: 3 / 2; }
}

/* ---------- Principles & video ---------- */

.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center h2 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); letter-spacing: -0.03em; }
.section-head-center p { margin-left: auto; margin-right: auto; }

.far-kicker { color: var(--royal); font-weight: 600; }
.far-title-mark { color: var(--royal); }
.far-sub { margin-top: 18px; font-size: 1.3125rem; line-height: 1.45; color: var(--text-muted); max-width: 40ch; }
.far-sub strong { font-weight: 700; color: var(--fjord); }




/* "Done in under 5 min": the three steps as tabs on a brand blue panel, like the back of the flyer */
.steps-section { padding-bottom: var(--section-y); }
.steps { position: relative; }
/* the tabs sit on the panel's top edge */
.steps-tabs {
  position: relative; z-index: 1;
  display: flex; gap: 6px; width: max-content; max-width: 100%;
  margin: 0 auto -28px; padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--white); box-shadow: 0 6px 24px rgba(24, 52, 89, .12);
}
.steps-tab {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px 0 8px;
  border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer;
  font: 600 1rem/1.2 var(--font-sans); color: var(--text-muted); white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.steps-tab:hover { color: var(--fjord); }
.steps-tab-num {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ice); color: var(--royal); font-size: .9375rem; font-weight: 700;
  transition: background-color .25s, color .25s;
}
.steps-tab[aria-selected="true"] { background: var(--royal); color: var(--white); }
.steps-tab[aria-selected="true"] .steps-tab-num { background: var(--white); color: var(--royal); }
/* the panel: white text on the brand blue on the left, the drawing on the right */
.steps-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: start;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(64px, 7vw, 96px) clamp(28px, 5vw, 72px) clamp(36px, 5vw, 64px);
  border-radius: var(--radius-panel);
  background: var(--royal); color: rgba(255, 255, 255, .88);
}
.steps-panel + .steps-panel { margin-top: 24px; } /* only without JavaScript, when all three show */
/* all three panels share one spot, so the panel keeps the height of the tallest step when you switch */
.steps.is-ready { display: grid; }
.steps.is-ready .steps-tabs { grid-row: 1; justify-self: center; }
.steps.is-ready .steps-panel { grid-row: 2; grid-column: 1; margin-top: 0; }
.steps.is-ready .steps-panel[hidden] { display: grid; visibility: hidden; }
/* switching steps is animated in main.js: the old step drifts down a little while fading out, the next one rises softly in */
.steps-title { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; color: var(--white); } /* the panel's title, top left */
.steps-kicker { margin-top: 22px; font-size: .9375rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.steps-copy { container-type: inline-size; } /* so the title can size itself to the text column */
.steps-copy h3 { margin-top: 4px; font-size: min(2.6rem, 10.2cqw); white-space: nowrap; /* each step title on one line */ line-height: 1.08; letter-spacing: -0.025em; color: var(--white); }
.steps-body { margin-top: 14px; font-size: 1.125rem; line-height: 1.55; max-width: 36ch; }
/* Today vs with Nordstar, two short rows under a thin line */
.steps-compare { margin: 40px 0 0; display: grid; } /* a little apart from the step: first what happens, then the difference */
.steps-compare > div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.steps-compare dt { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.steps-compare dd { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.steps-compare .is-nordstar dt, .steps-compare .is-nordstar dd { color: var(--white); }
.steps-copy .principle-link { margin-top: 10px; background: var(--white); }
.steps-copy .principle-link:hover { background: var(--ice); color: var(--fjord); }
/* the drawing in a big white box: same size box on every step, each drawing as large as fits and centred in it */
.steps-art {
  margin: 0; width: 100%; align-self: start;
  padding: clamp(10px, 1.1vw, 16px);
  border-radius: 22px; background: var(--page); /* #FAFAFA, the page's own off-white */
  box-shadow: 0 18px 40px rgba(10, 30, 70, .18);
}
.steps-art-frame { position: relative; aspect-ratio: 1499 / 1231; } /* the shared scene of the three drawings */
/* each drawing placed by --x, --y, --w: all at the same scale and centred; steps 1 and 2 share one canvas, so they line up exactly */
.steps-art-inner { position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 100%); }
.steps-art img { display: block; width: 100%; height: auto; }
/* a subtle line between the text and the drawing */
.steps-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0; padding-right: clamp(20px, 3vw, 40px); border-right: 1px solid rgba(255, 255, 255, .22); }
.steps-copy > * { align-self: flex-start; }
.steps-copy > .steps-compare, .steps-copy > .steps-body { align-self: stretch; }
@media (max-width: 760px) {
  .steps-tabs { width: 100%; margin-bottom: -22px; }
  .steps-tab { flex: 1 1 0; justify-content: center; padding: 0 6px; font-size: .8125rem; white-space: normal; text-align: left; gap: 6px; min-height: 44px; }
  .steps-tab-num { width: 26px; height: 26px; font-size: .8125rem; }
  .steps-panel { grid-template-columns: 1fr; padding: 48px 20px 24px; }
  .steps-copy { padding-right: 0; border-right: 0; }
  .steps-art { padding: 12px; }
  .steps-art { order: -1; }
}
@media (max-width: 420px) { .steps-tab { font-size: 0; gap: 0; } .steps-tab-num { font-size: .8125rem; } } /* very narrow: numbers only */

.principle-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--fjord); font-weight: 600; text-decoration: none;
  transition: background-color .2s;
}
.principle-link:hover { background: var(--ice); color: var(--fjord); }
.principle-arrow svg { color: var(--royal); display: block; }



/* testimonials sit between the three steps and the video */
.quotes-block { margin-top: clamp(96px, 12vw, 160px); }
.video-block { margin-top: clamp(96px, 12vw, 160px); }

.video-frame { position: relative; }
.video-play, .video-frame video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--radius-panel); overflow: hidden;
  background: var(--fjord);
}
.video-play { position: relative; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.video-play:hover img { transform: scale(1.02); }
/* light brand tint so the play button stands out */
.video-play::after { content: ""; position: absolute; inset: 0; background: rgba(23, 122, 204, .12); }
.video-play-icon {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .22);
  border: 1.5px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  color: var(--white);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.video-play:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.06); background: rgba(255, 255, 255, .32); }
.video-play-icon svg { margin-left: 4px; }

@media (max-width: 640px) {
  .video-play, .video-frame video { border-radius: var(--radius-card); }
  .video-frame video { aspect-ratio: 16 / 9; }
  .video-play-icon { width: 68px; height: 68px; }
}

/* Shown while the whole film downloads */
.video-frame, .video-modal-frame { position: relative; }
.video-frame.is-loading::after, .video-modal-frame.is-loading::after {
  content: "Loading video…";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: rgba(11, 26, 51, .75); color: var(--white);
  font-size: .9375rem; font-weight: 600;
}
/* the film has no sound, so no volume controls */
.film-frame video::-webkit-media-controls-mute-button, .film-frame video::-webkit-media-controls-volume-control-container, .film-frame video::-webkit-media-controls-volume-slider,
.video-frame video::-webkit-media-controls-mute-button, .video-modal video::-webkit-media-controls-mute-button,
.video-frame video::-webkit-media-controls-volume-control-container, .video-modal video::-webkit-media-controls-volume-control-container,
.video-frame video::-webkit-media-controls-volume-slider, .video-modal video::-webkit-media-controls-volume-slider { display: none; }

/* Video popup, opened by "Watch the video" */
.video-modal {
  /* as wide as the screen allows while the whole 16:9 video stays in view */
  width: min(1100px, 100vw - 32px, (100dvh - 112px) * 16 / 9);
  max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.video-modal::backdrop { background: rgba(11, 26, 51, .6); }
.video-modal-frame { padding: 8px; border-radius: var(--radius-panel); background: var(--white); }
.video-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--fjord); }
.video-modal-close {
  position: absolute; z-index: 1; top: -16px; right: -16px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--fjord); cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 26, 51, .25);
}
.video-modal-close:hover { color: var(--royal); }
html:has(.video-modal[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .video-modal[open] { animation: video-modal-in .3s var(--ease-out) both; }
  .video-modal[open]::backdrop { animation: video-modal-fade .3s ease both; }
}
@keyframes video-modal-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes video-modal-fade { from { opacity: 0; } to { opacity: 1; } }
/* no room beside the video on narrow screens: the close button sits above it */
@media (max-width: 1180px) { .video-modal-close { top: -54px; right: 0; } }

/* ---------- Comparison ---------- */

.compare-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); /* wide photo panel for the landscape photo */
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  padding: clamp(16px, 2.5vw, 32px);
  border-radius: var(--radius-panel);
  background: var(--mist);
  border: 1px solid var(--line);
}

/* Left: the hand and device on brand blue with frosted, see-through callouts */
.compare-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10.5; align-self: center; /* close to the photo's own landscape shape, so little is cropped */
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(55% 50% at 60% 50%, rgba(120, 180, 245, .45) 0%, rgba(120, 180, 245, 0) 100%),
    linear-gradient(160deg, #2466C2 0%, #183459 100%);
  color: var(--white);
}
/* Photo fills the panel, framed on the hand and the needle */
.compare-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 34% 50%;
}
/* Three callouts scattered over the photo */
.compare-chips { position: absolute; inset: 0; z-index: 3; list-style: none; margin: 0; padding: 0; }
.compare-visual img { z-index: 1; }
/* Connector line: box 1 → box 2 → box 3, over the photo */
.compare-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; } /* above the photo, below the boxes */
/* a thin strip of the same photo, cut to the needle and laid over the line, so the line passes under the needle */
.compare-visual img.compare-needle { z-index: 2; clip-path: polygon(0 0, 0 0, 0 0); pointer-events: none; } /* follows the line in the page order, so it sits on top of it */
.compare-lines path { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; stroke-linecap: round; }
.compare-lines circle { fill: var(--white); }
/* the moving light: a short, soft dash that runs along the line and the boxes' borders (see main.js) */
.compare-lines .compare-current { stroke: var(--white); stroke-width: 2; stroke-dasharray: 0 1; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }
.compare-lines-top { z-index: 4; pointer-events: none; } /* above the boxes, for the light on their borders */
.compare-chip {
  position: absolute;
  width: 180px;
  display: grid; align-content: start; gap: 14px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
}
.compare-chip-icon { color: var(--white); }
.compare-chip { transition: background-color .25s ease, border-color .25s ease; }
.compare-chip:hover { background: rgba(255, 255, 255, .38); border-color: rgba(255, 255, 255, .85); }
.compare-chip strong { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
/* the original layout, mirrored: upper left, middle right, lower left */
/* a little smaller than the base boxes */
.compare-chip { width: 156px; gap: 10px; padding: 12px 14px 14px; }
.compare-chip-icon { width: 22px; height: 22px; }
.compare-chip strong { font-size: .9375rem; }
.compare-chip:nth-child(1) { top: 7%; left: 34%; }
.compare-chip:nth-child(2) { top: 40%; right: 5%; }
.compare-chip:nth-child(3) { bottom: 7%; left: 18%; }

/* Right: heading and table */
.compare-body h2 { max-width: 14ch; }
.compare-table {
  width: 100%;
  margin-top: clamp(28px, 4vw, 48px);
  border-collapse: separate; border-spacing: 0 4px;
  font-size: 1rem;
}
.compare-table th, .compare-table td { padding: 0 16px; height: 58px; text-align: center; }
.compare-table thead th {
  height: 56px;
  font-size: .9375rem; font-weight: 600; color: var(--fjord);
  border-bottom: 1px solid var(--line);
}
.compare-table thead th:first-child,
.compare-table tbody th { text-align: left; padding-left: 8px; }
.compare-table tbody th { font-weight: 600; color: var(--fjord); }
/* FARCath column: each cell its own shaded block, like the reference */
.compare-table tbody .col-farcath { background: #E4ECF8; }
.compare-table .col-farcath { width: 28%; }
.compare-table thead .col-farcath { padding-left: 8px; padding-right: 8px; }
.compare-table td:last-child { width: 24%; }
.compare-table th, .compare-table td { padding-left: 10px; padding-right: 10px; }
/* Sized by width so a narrow column scales the logo down instead of squeezing it */
.compare-logo { display: block; width: 100%; max-width: 124px; height: auto; margin: 0 auto; }

.mark { display: inline-block; width: 22px; height: 22px; vertical-align: middle; background: currentColor; }
.mark-yes {
  color: var(--royal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mark-no {
  color: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 960px) {
  .compare-card { grid-template-columns: 1fr; }
  .compare-visual { aspect-ratio: 16 / 10; }
  .compare-body { padding: 0 clamp(4px, 2vw, 16px) 8px; }
}
@media (max-width: 560px) {
  /* the photo is too small for overlaid callouts: they sit in a row underneath it */
  .compare-visual { aspect-ratio: auto; display: flex; flex-direction: column; }
  .compare-visual img { position: relative; inset: auto; aspect-ratio: 16 / 10; height: auto; }
  .compare-lines { display: none; }
  .compare-chips { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .compare-chip, .compare-chip:nth-child(n) { position: static; width: auto; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 12px; }
  .compare-chip-icon { width: 18px; height: 18px; }
  .compare-chip strong { font-size: .8125rem; }
  .compare-table .col-farcath { width: 30%; }
  .compare-table td:last-child { width: 24%; }
  .compare-table thead .col-farcath { padding-left: 4px; padding-right: 4px; }
  .compare-logo { max-width: 96px; }
  .compare-table { font-size: .9375rem; }
  .compare-table th, .compare-table td { padding: 0 8px; height: 60px; }
  .compare-table thead th { font-size: .8125rem; }
}

/* ---------- Made for: rotating block types ---------- */

.fit-section { overflow: hidden; padding: clamp(56px, 7vw, 96px) 0; } /* side cards bleed off the edge without widening the page; a little tighter than other sections */
.fit-head { max-width: 960px; }
.fit-head h2 { line-height: 1.08; }
/* the words that change sit in a brand blue pill, like the one in the hero; main.js sets its width to the words */
.fit-pill {
  display: block; width: fit-content; margin: .12em auto 0;
  border-radius: var(--radius-pill);
  background: var(--royal); color: var(--white);
  overflow: hidden; white-space: nowrap;
  transition: width .5s var(--ease-out);
}
.fit-phrase {
  display: inline-block; padding: .02em .42em .1em;
  font-family: var(--font-sans); font-style: normal; font-weight: 400; /* regular, like the word in the hero's pill */
  transition: opacity .3s ease, transform .3s ease;
}
/* phones: a little smaller, so the longest words still fit on one line in the pill */
@media (max-width: 600px) { .fit-head h2 { font-size: 7.4vw; } }
.fit-phrase.is-changing { opacity: 0; transform: translateY(6px); }

/* --fit-bg fills the figure: a lighter blue than the card so the body reads as a soft silhouette */
.fit { --fit-w: min(272px, 66vw); --fit-bg: #3574CB; position: relative; }
.fit-track {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  height: calc(var(--fit-w) * 1.25 + 180px); /* room for up to five lines of description under the centre card */
}
.fit-card {
  position: absolute; top: 0; left: 50%;
  width: var(--fit-w);
  padding: 10px 10px 0;
  border-radius: 30px;
  background: transparent;
  /* position, size and fade are set every frame by the script, so cards follow a drag directly */
  transform: translateX(-50%) scale(.8);
  transform-origin: 50% 40%;
  will-change: transform, opacity;
}
/* the white panel fades in once the cards are placed, so nothing animates on load */
.fit.is-ready .fit-card { transition: background-color .4s ease, padding .4s ease, box-shadow .4s ease; }
.fit-card.is-active { background: var(--white); padding-bottom: 24px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(24, 52, 89, .08); } /* edge and soft shadow so the white card shows on the light page */

.fit-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(120, 180, 245, .35) 0%, rgba(120, 180, 245, 0) 100%),
    var(--royal);
  color: rgba(255, 255, 255, .85);
  display: grid; place-items: center;
}
/* hand-drawn style: loose white lines, the block site as a soft circle with an arrow pointing at it */
.fit-visual svg { width: 84%; height: auto; margin-top: 12%; overflow: visible; }
.fit-lines path { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
/* the block site in nerve yellow, so it stands out from the blue */
.fit-site { fill: #F6D44A; }
.fit-halo { fill: rgba(246, 212, 74, .28); }
.fit-arrow { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.fit-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  padding: 6px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .92); color: var(--fjord);
  font-size: .875rem; font-weight: 600;
}
.fit-pulse { fill: rgba(246, 212, 74, .55); transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .fit-card.is-active .fit-pulse { animation: fit-pulse 2.2s var(--ease-out) infinite; }
}
@keyframes fit-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.fit-text {
  margin: 20px 12px 0;
  font-size: 1.0625rem; line-height: 1.45; font-weight: 500; color: var(--fjord);
  opacity: 0; transition: opacity .6s ease .3s;
}
.fit-card.is-active .fit-text { opacity: 1; }

/* dragged with the mouse or swiped; vertical touch scrolling still scrolls the page */
.fit { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fit:focus-visible { outline-offset: 8px; border-radius: 30px; }
.fit img, .fit svg { -webkit-user-drag: none; }
.fit.is-dragging { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .fit-card, .fit-phrase { transition: none; }
}

/* ---------- Evidence ---------- */

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.evidence-copy p { margin-top: 20px; max-width: 50ch; }
.evidence-copy .cite { font-size: .9375rem; color: var(--text-muted); font-style: italic; }
.evidence-copy .btn { margin-top: 32px; }

.results {
  background: var(--white);
  border-radius: var(--radius-panel);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid; gap: 32px;
}

.result { margin: 0; }
.result figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.result-title { font-weight: 600; color: var(--fjord); }
.result-note { font-size: .8125rem; color: var(--text-muted); }
.bars { display: grid; gap: 8px; }
.bar {
  display: grid; grid-template-columns: 92px minmax(0, 1fr);
  align-items: center; gap: 12px;
  font-size: .9375rem;
}
.bar-label { font-weight: 500; color: var(--text); }
.bar-track { display: flex; align-items: center; gap: 10px; height: 36px; }
.bar-fill {
  height: 100%;
  /* --base lets a chart start its bars partway along (0 = true zero) */
  width: calc((var(--base, 0) + (1 - var(--base, 0)) * var(--v) / var(--max)) * (100% - 72px));
  border-radius: 6px;
}
.bar-farcath .bar-fill { background: var(--royal); }
.bar-single .bar-fill { background: var(--steel); }
.bar-value { font-weight: 700; color: var(--fjord); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-foot { margin-top: 10px; font-size: .875rem; color: var(--text-muted); }

@media (max-width: 900px) { .evidence-grid { grid-template-columns: 1fr; } }

/* ---------- Quotes & partners ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.testimonial {
  margin: 0;
  display: flex; flex-direction: column;
  border-radius: var(--radius-panel);
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(60% 70% at 90% 10%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(50% 60% at 5% 95%, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #EEF4FC 0%, #DCE7F6 100%);
  border: 1px solid rgba(255, 255, 255, .8);
}

.testimonial blockquote { margin: clamp(28px, 3vw, 40px) 0 0; flex: 1; }
.testimonial blockquote p {
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.4; letter-spacing: -0.015em;
  color: var(--fjord);
  text-indent: -0.4em;
}
.testimonial-person {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px; /* same height in both cards so the name rows line up */
  margin-top: clamp(32px, 4vw, 48px);
}
.testimonial-person img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--white);
}
.testimonial-person > span { display: grid; gap: 2px; max-width: 46ch; }
.quote-name { font-weight: 600; color: var(--fjord); }
.quote-role { font-size: .9375rem; color: var(--text-muted); line-height: 1.4; }
.testimonial-logo { align-self: flex-start; display: flex; align-items: center; min-height: 44px; transition: opacity .2s; }
.testimonial-logo:hover { opacity: .7; }
.logo-nysora { height: 24px; width: auto; }
.logo-duke { height: 38px; width: auto; }

@media (max-width: 860px) {
  .testimonials { grid-template-columns: 1fr; }
}

.partners {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 40px;
}
.partners p { color: var(--text-muted); font-size: .9375rem; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.partners li { font-weight: 600; color: var(--fjord); font-size: 1.0625rem; }

@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Partners & collaborators ---------- */

.section-partners { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
/* the clinician quotes open this section, the partner logos follow */
.section-partners .quotes-block { margin-top: 0; }
.partners-block { margin-top: clamp(64px, 8vw, 104px); }
.partners-title {
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.partner-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center;
  gap: 32px 48px;
}
.partner-logos a {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 4px;
  text-decoration: none;
  transition: opacity .2s;
}
.partner-logos a:hover { opacity: .7; }
.partner-logos img { height: 36px; width: auto; mix-blend-mode: multiply; } /* drops the white boxes some logo files have */
.partner-logos img.logo-tall { height: 46px; }

@media (max-width: 640px) {
  .partner-logos { justify-content: center; gap: 28px 36px; }
  .partner-logos img { height: 26px; }
  .partner-logos img.logo-tall { height: 40px; }
}

/* ---------- Mission: text left, team photo in a panel that runs off the right edge ---------- */

.mission {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: var(--section-y) 0;
}
/* left edge lines up with the page container */
.mission-copy { padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
.mission-kicker { color: var(--royal); font-weight: 600; }
.mission-copy h2 { margin-top: 14px; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.03em; line-height: 1.04; }
.mission-copy p:not(.mission-kicker) { margin-top: 22px; font-size: 1.1875rem; line-height: 1.6; color: var(--text-muted); max-width: 40ch; }
.mission-copy .btn { margin-top: 36px; }
.mission-panel {
  margin: 0; height: clamp(400px, 40vw, 600px);
  border-radius: var(--radius-panel) 0 0 var(--radius-panel); overflow: hidden;
  background: var(--fjord);
}
.mission-panel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; }
  .mission-copy { padding-right: var(--gutter); }
  .mission-panel { height: auto; aspect-ratio: 3 / 2; margin-left: var(--gutter); }
}

/* ---------- About us page ---------- */

.about-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 3vw, 40px); }
.about-hero h1 { margin-top: 14px; max-width: 16ch; font-size: clamp(2.6rem, 6vw, 4.75rem); letter-spacing: -0.03em; line-height: 1.02; }
.about-mission-title { margin-top: 14px; max-width: 24ch; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; }
.about-lead { margin-top: 24px; display: grid; gap: 18px; max-width: 64ch; }
/* key facts in a row of white boxes; the big value sits above its small label */
.about-facts {
  margin: clamp(40px, 5vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.about-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: clamp(22px, 2.6vw, 34px); }
.about-facts > div + div { border-left: 1px solid var(--line); }
.about-facts dd { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--fjord); }
.about-facts dt { font-size: .9375rem; color: var(--text-muted); }
@media (max-width: 760px) {
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-facts > div:nth-child(3) { border-left: 0; }
  .about-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-facts > div { padding: 18px; }
  .about-facts dd { font-size: 1.4rem; } /* so "Copenhagen" fits half the width of a phone */
}
.about-lead p { font-size: 1.125rem; line-height: 1.65; color: var(--text-muted); }
/* Team photo filling the first screen, with the mission across the bottom */
.about-cover {
  position: relative;
  margin-top: -65px; /* header height incl. its 1px border, so the photo starts at the top of the window */
  height: min(100vh, 72vw); height: min(100svh, 72vw); min-height: 480px; max-height: 1000px; /* never taller than the photo's own shape, so all four people stay in view */
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--fjord);
}
.about-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* darker at the top so the header reads, and at the bottom for the mission */
.about-cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 24, 44, .5) 0, rgba(12, 24, 44, 0) 200px),
    linear-gradient(0deg, rgba(12, 24, 44, .9) 0%, rgba(12, 24, 44, .5) 28%, rgba(12, 24, 44, 0) 55%);
}
.about-cover .container { position: relative; z-index: 1; width: 100%; text-align: center; padding-bottom: clamp(40px, 8vh, 88px); }
.about-cover h1 { margin: 0 auto; max-width: 26ch; color: var(--white); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.025em; }
/* While the header sits on the photo: white logo and links */
@media (min-width: 761px) {
  .site-header-photo:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
}
@media (min-width: 901px) {
  .site-header-photo:not(.is-scrolled) .site-nav ul a { color: var(--white); }
  .site-header-photo:not(.is-scrolled) .site-nav ul a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .7); }
}
/* team follows the photo on the same background, so only a small gap is needed */
.about-team { padding-top: 0; }
.site-nav a[aria-current="page"] { color: var(--royal); }

@media (max-width: 760px) {
  .about-lead { grid-template-columns: 1fr; }
}

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

/* About us: investors follow the team, same cards */
.about-investors { padding-top: 0; }


/* Centred title like "Fast, Accurate & Reliable"; wider so the longer title fits on two lines */
.section-head.team-head { max-width: 960px; }

/* Three cards per row; the second row of two is centred */
.team {
  --team-gap: clamp(16px, 2vw, 24px);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--team-gap);
}
.person {
  flex: 0 1 calc((100% - 2 * var(--team-gap)) / 3);
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-panel);
  padding: 14px 14px 24px;
}
.person img {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 25%;
  border-radius: 18px;
  background: var(--mist);
}
.person-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin: 18px 8px 0;
}
.person h3 { font-size: 1.1875rem; }
.person-role { margin-top: 2px; font-size: .9375rem; font-weight: 500; color: var(--royal); }
.person-bio { margin: 14px 8px 0; font-size: .9375rem; line-height: 1.6; color: var(--text-muted); }
.person-linkedin {
  flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ice); color: var(--royal);
  transition: background-color .2s, color .2s;
}
.person-linkedin:hover { background: var(--royal); color: var(--white); }

@media (max-width: 960px) { .person { flex-basis: calc((100% - var(--team-gap)) / 2); } }
@media (max-width: 600px) { .person { flex-basis: 100%; } }

/* Team: tall photo cards. Role, name and a round button sit on the photo; on hover, focus or a tap the
   panel turns to frosted glass and opens to show the bio and LinkedIn link (see main.js) */
.team-cards-head { margin-bottom: clamp(32px, 4vw, 56px); }
.team-cards { justify-content: flex-start; } /* the second row lines up under the first, from the left */
.team-kicker { color: var(--text-muted); }
.team-cards-head h2 { margin-top: 6px; }
.team-cards .person {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; padding: 0;
  justify-content: flex-end;
  background: var(--mist);
  border-radius: 22px;
  isolation: isolate;
}
.team-cards .person > img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0;
  object-fit: cover; object-position: 50% 20%;
  transition: transform .6s var(--ease-out);
}
/* darker at the bottom so the white text reads */
.team-cards .person::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 24, 44, .78) 0%, rgba(12, 24, 44, .35) 30%, rgba(12, 24, 44, 0) 50%);
}
.team-cards .person-panel {
  position: relative;
  margin: 12px; padding: 18px 64px 18px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--white);
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.team-cards .person-role {
  display: inline-block; margin: 0;
  padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: var(--white);
}
.team-cards .person h3 { margin-top: 10px; font-size: 1.375rem; color: var(--white); letter-spacing: -0.01em; }
.person-toggle {
  position: absolute; top: 18px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: rgba(12, 24, 44, .72); color: var(--white); cursor: pointer;
  transition: transform .35s var(--ease-out), background-color .2s;
}
.person-toggle:hover { background: var(--royal); }
/* the bio opens smoothly from nothing to its own height */
.person-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.person-more > div { overflow: hidden; }
.team-cards .person-bio { margin: 14px 0 0; color: rgba(255, 255, 255, .88); font-size: .9375rem; line-height: 1.55; }
.team-cards .person-bio { margin-top: 12px; }
/* short highlights as labels instead of long text */
.person-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.person-tags li {
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1);
  font-size: .8125rem; line-height: 1.35; color: var(--white);
}
.team-cards .person-linkedin {
  margin-top: 16px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: var(--white);
}
.team-cards .person-linkedin:hover { background: var(--white); color: var(--fjord); }
/* open: on hover (mouse), while the keyboard is inside the card, or after a tap on the button */
.team-cards .person.is-open .person-panel,
.team-cards .person:has(:focus-visible) .person-panel { background: rgba(12, 24, 44, .5); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(14px); }
.team-cards .person.is-open .person-more,
.team-cards .person:has(:focus-visible) .person-more { grid-template-rows: 1fr; }
.team-cards .person.is-open .person-toggle,
.team-cards .person:has(:focus-visible) .person-toggle { transform: rotate(180deg); }
.team-cards .person.is-open > img,
.team-cards .person:has(:focus-visible) > img { transform: scale(1.04); }
@media (hover: hover) {
  .team-cards .person:hover .person-panel { background: rgba(12, 24, 44, .5); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(14px); }
  .team-cards .person:hover .person-more { grid-template-rows: 1fr; }
  .team-cards .person:hover .person-toggle { transform: rotate(180deg); }
  .team-cards .person:hover > img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .person-more, .person-toggle, .team-cards .person > img { transition: none; }
}
/* one card per row on phones, a little less tall so the page doesn't get too long */
@media (max-width: 600px) { .team-cards .person { aspect-ratio: 1 / 1.1; } }

.placeholder-text {
  display: inline-block;
  background: repeating-linear-gradient(-45deg, #FFF6D6 0 8px, #FFF0BF 8px 16px);
  color: #6B5A1F !important;
  padding: 0 6px; border-radius: 4px;
}


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

.news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item { padding-top: 20px; border-top: 2px solid var(--fjord); }
.news-item time { font-size: .875rem; color: var(--text-muted); }
.news-item h3 { margin-top: 8px; font-size: 1.25rem; }
.news-item h3 a { color: var(--fjord); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p { margin-top: 8px; color: var(--text-muted); }
.news-item.is-placeholder {
  border-top-style: dashed;
  background: repeating-linear-gradient(-45deg, #FFFBEA 0 10px, #FFF7DC 10px 20px);
  padding: 20px; border-radius: 0 0 12px 12px;
}
.news-item.is-placeholder::before {
  content: "Placeholder"; display: inline-block; margin-bottom: 8px;
  font-size: .75rem; font-weight: 700; color: #6B5A1F;
  background: #FFE9A3; padding: 2px 8px; border-radius: 4px;
}

@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }

/* ---------- News post page ---------- */

.post { padding: clamp(56px, 8vw, 104px) 0 var(--section-y); }
.post-inner { max-width: 760px; }
.post .back-link { margin-bottom: 28px; }
.post-meta { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .9375rem; }
.post h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.06; }
.post-lede { margin-top: 20px; font-size: 1.25rem; line-height: 1.55; color: var(--text); }
.post-logo { margin: clamp(32px, 4vw, 48px) 0 0; padding: clamp(28px, 4vw, 44px); background: var(--white); border-radius: var(--radius-panel); display: grid; place-items: center; }
.post-logo img { width: min(100%, 460px); height: auto; }
.post-body { margin-top: clamp(32px, 4vw, 44px); }
.post-body p { font-size: 1.125rem; line-height: 1.7; }
.post-body p + p { margin-top: 1em; }
.post-body .btn { margin-top: 8px; }
.post-details { margin: clamp(36px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; border-radius: var(--radius-card); overflow: hidden; }
.post-details div { background: var(--white); padding: 18px 22px; }
.post-details dt { font-size: .875rem; color: var(--text-muted); }
.post-details dd { margin: 4px 0 0; font-weight: 600; color: var(--fjord); }
@media (max-width: 560px) { .post-details { grid-template-columns: 1fr; } }

/* ---------- Summit links page (summit.html, opened from the flyer's QR code) ---------- */

/* same light blue and tilted N as the home page hero */
.links-page {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(90% 80% at 0% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #F4F8FE 0%, #E6EEF9 100%);
}
.links-page::before {
  --mask: url("assets/img/nsm-n.svg") center / 100% 100% no-repeat;
  content: ""; position: absolute;
  left: 18%; top: -6%; bottom: -6%; aspect-ratio: 106.5 / 129.44;
  transform: skewX(-14deg);
  background: rgba(22, 101, 192, .055);
  -webkit-mask: var(--mask);
          mask: var(--mask);
}
.links { position: relative; max-width: 480px; margin: 0 auto; padding: 32px var(--gutter) 40px; }
.links-brand { display: inline-block; }
.links-brand img { height: 36px; width: auto; }
.links h1 { margin-top: 48px; font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
.links-lede { margin-top: 12px; font-size: 1.0625rem; color: var(--text-muted); }

.links-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.link-card {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center; gap: 16px;
  min-height: 76px; padding: 14px 18px 14px 14px;
  border-radius: 20px; background: var(--white);
  box-shadow: 0 1px 2px rgba(24, 52, 89, .06), 0 8px 24px rgba(24, 52, 89, .07);
  color: var(--fjord); text-decoration: none;
  transition: box-shadow .2s, transform .2s var(--ease-out);
}
.link-card:hover { color: var(--fjord); box-shadow: 0 1px 2px rgba(24, 52, 89, .08), 0 12px 28px rgba(24, 52, 89, .12); }
@media (prefers-reduced-motion: no-preference) { .link-card:hover { transform: translateY(-1px); } }
.link-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--royal); }
.link-text { display: grid; gap: 2px; }
.link-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.link-sub { font-size: .875rem; color: var(--text-muted); }
.link-arrow { color: var(--royal); }

.links-note { margin-top: 40px; font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }
.links-copy { margin-top: 8px; font-size: .8125rem; color: var(--text-muted); }

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

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
}
.contact-copy p { margin-top: 20px; font-size: 1.125rem; max-width: 42ch; }
.section-navy a { color: var(--white); }
.section-navy a:hover { color: var(--ice); }

.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-weight: 600; color: var(--white); font-size: .9375rem; }
.optional { font-weight: 400; color: #A9BBD6; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font: 400 1rem/1.4 var(--font-sans);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { color: var(--fjord); }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid #7FB8EC; outline-offset: 1px; border-color: transparent;
}
.field [aria-invalid="true"] { border-color: #FFB4A8; }
.field-error { color: #FFC9BF; font-size: .875rem; }
.form-privacy { font-size: .875rem; color: #A9BBD6; }
.contact-form .btn { justify-self: start; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.is-success { color: #B8F0CF; }
.form-status.is-error { color: #FFC9BF; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

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

.site-footer { background: var(--fjord-deep); color: #A9BBD6; padding: 56px 0 40px; font-size: .9375rem; }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px;
}
.footer-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 12px; }
.site-footer a.footer-linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; font-weight: 600; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-disclaimer { grid-column: 1 / -1; max-width: 80ch; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-copy { grid-column: 1 / -1; font-size: .875rem; }

@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* =========================================================
   Study article page
   ========================================================= */

.article-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); background: var(--ice); }
.article-hero .container { max-width: 980px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; margin-bottom: 28px; }
.back-link:hover { text-decoration: underline; }
.article-status {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--white); color: var(--fjord);
  font-size: .875rem; font-weight: 600;
}
.article-hero h1 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 30ch; }
.article-authors { margin-top: 24px; color: var(--fjord); font-weight: 500; }
.article-affil { margin-top: 12px; font-size: .9375rem; color: var(--text-muted); }
.article-affil ol { margin: 0; padding-left: 1.2em; }

.key-findings {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border-radius: var(--radius-card); overflow: hidden;
}
.key-findings div { background: var(--white); padding: 22px 24px; }
.key-findings dt { font-size: .875rem; color: var(--text-muted); }
.key-findings dd { margin: 6px 0 0; color: var(--fjord); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
@media (max-width: 760px) { .key-findings { grid-template-columns: 1fr; } }

.article-layout {
  max-width: 980px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) var(--section-y);
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px;
}
/* abstract only: one readable column, no contents list */
.article-layout-single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.article-body .meta:first-child { margin-bottom: 8px; }
.article-body h3 { font-size: 1.1875rem; margin-top: 28px; }
.article-keywords { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.article-toc { position: sticky; top: 100px; align-self: start; font-size: .9375rem; }
.article-toc p { font-weight: 600; color: var(--fjord); margin-bottom: 12px; }
.article-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.article-toc a { color: var(--text-muted); text-decoration: none; }
.article-toc a:hover { color: var(--royal); text-decoration: underline; }
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } .article-toc { position: static; } }

.article-body { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.72; color: #1F2D42; max-width: 68ch; }
.article-body h2 { font-family: var(--font-sans); font-size: 1.625rem; margin: 56px 0 16px; scroll-margin-top: 100px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-sans); font-size: 1.125rem; margin: 32px 0 8px; }
.article-body p + p { margin-top: 1em; }
.article-body .lead-in { font-family: var(--font-sans); font-weight: 600; color: var(--fjord); }
.article-body .references { font-size: .9375rem; line-height: 1.55; padding-left: 1.6em; }
.article-body .references li + li { margin-top: 8px; }
.article-body .note {
  font-family: var(--font-sans); font-size: .9375rem;
  background: var(--mist); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; margin-top: 24px; color: var(--text);
}
.article-body .meta { font-family: var(--font-sans); font-size: .9375rem; color: var(--text-muted); }
.article-body .placeholder-text { font-family: var(--font-sans); font-size: .9em; }

/* About page on phones: a normal header, and the photo below it at a shape that keeps all four people in view */
@media (max-width: 760px) {
  .site-header-photo { background: rgba(250, 250, 250, .92); backdrop-filter: saturate(1.4) blur(10px); }
  .about-cover { margin-top: 0; height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3.4; }
  .about-cover::after { background: linear-gradient(0deg, rgba(12, 24, 44, .9) 0%, rgba(12, 24, 44, .45) 35%, rgba(12, 24, 44, 0) 60%); }
  .about-cover .container { padding-bottom: 20px; }
  .about-cover h1 { font-size: 1.5rem; }
}

/* ---------- Film: the video grows as it scrolls into view and plays by itself ---------- */

.film { padding: clamp(96px, 16vh, 180px) 0 clamp(96px, 14vh, 160px); }
.film-head { text-align: center; margin-bottom: clamp(40px, 6vh, 72px); }
.film-eyebrow {
  margin: 0 0 18px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--royal);
}
.film h2 {
  font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -0.03em;
  color: var(--fjord);
}
/* as large as the screen allows while the whole 16:9 picture stays in view */
.film-frame {
  position: relative;
  width: min(calc(100% - 2 * var(--gutter)), 1720px, calc((100vh - 120px) * 16 / 9));
  margin: 0 auto;
  border-radius: clamp(18px, 2.4vw, 36px); overflow: hidden;
  background: #0E1F3A;
  box-shadow: 0 24px 60px rgba(24, 52, 89, .14);
  transform: scale(var(--grow, 1)); transform-origin: 50% 0;
  will-change: transform;
}
.film-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- The problem: one big number, right after the hero ---------- */
.stat-section { padding: clamp(40px, 6vw, 72px) 0 clamp(88px, 11vw, 144px); }
.stat-eyebrow {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--royal);
}
.stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.stat-number {
  margin: 0;
  font-size: clamp(5rem, 12.5vw, 11rem); font-weight: 300; line-height: .9; letter-spacing: -0.05em;
  color: var(--royal); white-space: nowrap;
}
.stat-lead {
  font-size: clamp(1.6rem, 2.9vw, 2.6rem); font-weight: 500; line-height: 1.22; letter-spacing: -0.02em;
  max-width: 24ch;
}
.stat-body > p { margin: clamp(20px, 2.4vw, 32px) 0 0; font-size: 1.125rem; color: var(--text); max-width: 54ch; }
@media (max-width: 800px) {
  .stat-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- One quote, centred, right after the hero's steps ---------- */
.lead-quote { padding: 0 0 clamp(88px, 11vw, 144px); text-align: center; }
.lead-quote-inner { margin: 0 auto; max-width: 980px; }
.lead-quote blockquote { margin: 0; }
.lead-quote-logo { display: inline-block; margin-bottom: clamp(24px, 3vw, 36px); transition: opacity .2s; }
.lead-quote-logo:hover { opacity: .7; }
.lead-quote-logo img { height: clamp(34px, 3.4vw, 44px); width: auto; }
.lead-quote blockquote p {
  margin: 0 auto; max-width: 30ch;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.9vw, 2.4rem); line-height: 1.3; letter-spacing: -0.02em;
  color: var(--fjord); text-wrap: balance;
}
.lead-quote-person {
  margin-top: clamp(24px, 3vw, 36px);
  display: inline-flex; align-items: center; gap: 14px; text-align: left;
}
.lead-quote-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.lead-quote-person > span { display: grid; gap: 2px; }
/* narrow screens: photo above the name so it all stays centred */
@media (max-width: 640px) {
  .lead-quote-person { flex-direction: column; gap: 10px; text-align: center; }
}

/* ---------- Built to solve: one photo cut into three panels, a white tile on each ---------- */
.solve-section { padding-bottom: clamp(40px, 5vw, 64px); }
.solve-title { max-width: 17ch; margin-bottom: clamp(40px, 5vw, 64px); font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; }
.solve-panels {
  --gap: clamp(12px, 1.6vw, 24px);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
}
.solve-panel {
  position: relative; overflow: hidden;
  aspect-ratio: 5 / 7;
  border-radius: clamp(16px, 1.8vw, 24px);
  background: var(--fjord);
  display: grid; place-items: center;
}
/* each panel shows its own third of the same photo, lined up as if the gaps were cut out of one picture.
   The empty drape on the photo's right is left out (it is drawn 1.23x the row's width, from 1.4% in),
   so the hand and needle spread over all three panels; it starts 29.6% down, at the device. */
.solve-panel img {
  --cut: var(--gap);
  --photo: calc((300% + 2 * var(--cut)) * 1.2308);
  position: absolute; top: 0;
  left: calc(-0.0139 * var(--photo) - var(--i) * (100% + var(--cut)));
  width: var(--photo); max-width: none; height: auto;
  transform: translateY(-29.6%);
}
.solve-tile {
  position: relative; z-index: 1;
  width: clamp(150px, 14vw, 196px); aspect-ratio: 1;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 18px; text-align: center;
  border-radius: clamp(20px, 2vw, 28px);
  /* frosted and see-through, like the callouts that used to sit on this photo */
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
  color: var(--white);
  transition: background-color .25s ease, border-color .25s ease;
}
.solve-tile:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.solve-icon { color: var(--white); }
/* two lines start together at the top middle of the box, one draws round the right side and one round the left,
   and they meet at the bottom middle; the outline holds for a moment, fades, and it starts again */
.solve-glow {
  position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px);
  overflow: visible; pointer-events: none;
}
.solve-glow path {
  fill: none; stroke: var(--white); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; /* hidden until it draws */
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9));
}
@media (prefers-reduced-motion: no-preference) {
  .solve-glow path { animation: solve-draw 7s cubic-bezier(.5, 0, .3, 1) infinite; }
  /* the drawing takes 2.8s (40% of 7s): the next box starts when the one before is a third of the way */
  .solve-panel:nth-child(2) .solve-glow path { animation-delay: .93s; }
  .solve-panel:nth-child(3) .solve-glow path { animation-delay: 1.87s; }
}
@keyframes solve-draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  3% { opacity: 1; }
  40% { stroke-dashoffset: 0; opacity: 1; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
.solve-tile strong { font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
/* phones: panels under each other, each still showing its third of the photo */
@media (max-width: 700px) {
  .solve-panels { grid-template-columns: 1fr; }
  .solve-panel { aspect-ratio: 4 / 3; }
  .solve-panel img { --cut: 0px; }
}
/* the comparison table now stands on its own, without the photo */
.compare-card-solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.compare-card-solo .compare-body h2 { max-width: none; }

/* ---------- The problem as a letter from Tore: a sheet of paper, slightly tilted ---------- */
.letter-section { padding: clamp(24px, 4vw, 48px) 0 clamp(88px, 11vw, 144px); }
.letter {
  max-width: 900px; margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 6vw, 76px) clamp(28px, 3.6vw, 48px);
  background: var(--white);
  border: 1px solid #ECEEF2;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(24, 52, 89, .06), 0 24px 60px rgba(24, 52, 89, .10);
  transform: rotate(-.6deg);
  font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.62; color: var(--text); /* the whole letter fits on one laptop screen */
}
.letter p { margin: 0 0 .95em; }
/* marker highlight in the brand's light blue */
.letter mark {
  padding: .05em .2em; margin: 0 -.05em;
  border-radius: 4px;
  background: #D9E6F8; color: var(--fjord); font-weight: 500;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* the problem in the yellow of the nerve-site markers */
.letter mark.mark-problem { background: #F6D44A; }
/* Tore's own signature, cleaned up to dark blue ink on a transparent background */
.letter-signature { margin: .2em 0 .5em !important; line-height: 0; }
.letter-signature img { width: clamp(160px, 20vw, 210px); height: auto; transform: rotate(-2deg); transform-origin: 0 50%; }
/* signature on the left, Tore's photo and name on the right, on one line */
.letter-close { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 1.2em; } /* room to sign under "Best regards," (padding, so it adds to the line's own spacing) */
.letter-close .letter-signature { margin: 0 !important; }
.letter-sender { display: flex; align-items: center; gap: 14px; line-height: 1.4; }
.letter-sender img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.letter-sender > span { display: grid; gap: 2px; }
.letter-sources { max-width: 820px; margin: clamp(28px, 4vw, 40px) auto 0; }
@media (max-width: 640px) { .letter { transform: none; } }

/* ---------- The three steps, pinned while you scroll (larger screens; set up in main.js) ---------- */
/* the track is as tall as the panel plus the scroll it takes to go through the steps; the panel sticks in the middle of the screen */
.steps-track.is-pinned .steps {
  position: sticky; top: var(--pin-top, 80px);
  transform: scale(var(--pin-scale, 1)); transform-origin: 50% 0; /* shrunk a little on shorter screens so it fits */
}
.steps-track.is-pinned { margin-bottom: calc(-1 * var(--pin-gap, 0px)); } /* no extra gap under the shrunk panel */

/* ---------- Steps: the text sits in the middle of the blue column, level with the drawing, instead of leaving blue space underneath ---------- */
.steps-copy { justify-content: center; }

/* ---------- Steps: bigger text in the blue column ---------- */
.steps-title { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.steps-kicker { font-size: 1.0625rem; }
.steps-copy h3 { font-size: min(3.1rem, 10.2cqw); }
.steps-body { font-size: clamp(1.1875rem, 1.45vw, 1.3125rem); }
.steps-compare dt { font-size: 1rem; }
.steps-compare dd { font-size: clamp(1.125rem, 1.35vw, 1.25rem); }
@media (max-width: 760px) { .steps-body { font-size: 1.125rem; } .steps-compare dd { font-size: 1.0625rem; } }

/* ---------- Steps: no panel title, so the step label starts the text ---------- */
.steps-kicker { margin-top: 0; }

/* ---------- Steps: today vs Nordstar under one thin line, separated by space instead of a second line ---------- */
.steps-compare { row-gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .25); }
.steps-compare > div { padding: 0; border-top: 0; }

/* ---------- Steps: a slightly wider text column, so each step's sentence fits on two lines ---------- */
@media (min-width: 761px) {
  .steps-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.65fr); }
  .steps-copy { padding-right: clamp(20px, 2vw, 28px); }
  .steps-body { max-width: none; }
}

/* ---------- Steps: the "Watch the video" button on step 3 hangs below the text without pushing it up, so the text sits at the same height in all three steps ---------- */
@media (min-width: 761px) {
  .steps-copy .principle-link { margin-top: 18px; margin-bottom: -66px; } /* 18px gap + 48px button: takes no room in the centring */
}


/* ---------- Steps: the progress line, traced over the top of the tab bar from its middle left to its middle right (drawn in main.js; only while pinned) ---------- */
.steps-progress { display: none; }
.steps-track.is-pinned .steps-progress {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.steps-progress path { fill: none; stroke: var(--royal); stroke-width: 3; stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* ---------- Steps: about the same blue space above and below the content in the panel ---------- */
@media (min-width: 761px) {
  .steps-panel { padding-top: clamp(52px, 5.3vw, 76px); padding-bottom: clamp(44px, 5vw, 72px); }
}

/* ---------- Steps: the text sits in the middle between the tab bar and the panel's bottom edge ---------- */
@media (min-width: 761px) {
  /* 28px: how far the tab bar reaches into the panel; the rest evens out the panel's top and bottom padding */
  .steps-copy { padding-top: max(0px, calc(28px + clamp(44px, 5vw, 72px) - clamp(52px, 5.3vw, 76px))); }
}

/* ---------- Steps: the Nordstar line a little bolder than the "today" line ---------- */
.steps-compare .is-nordstar dd { font-weight: 500; }

/* ---------- Film: our own control bar, with the progress in blue ---------- */
.film-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(28px, 4vw, 48px) clamp(14px, 2.2vw, 32px) clamp(12px, 1.6vw, 22px);
  background: linear-gradient(to top, rgba(8, 20, 40, .6), rgba(8, 20, 40, 0));
  color: var(--white);
  opacity: 0; transition: opacity .3s;
}
/* shown while the pointer is on the video, when it is paused, when the controls have keyboard focus, and always on touch screens */
.film-frame:hover .film-controls, .film-frame.is-paused .film-controls, .film-controls:focus-within { opacity: 1; }
@media (hover: none) { .film-controls { opacity: 1; } }
.film-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
}
.film-btn:hover { background: rgba(255, 255, 255, .14); }
.film-time { flex: none; font-size: .9375rem; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .9); }
.film-seek {
  flex: 1; min-width: 0; height: 22px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.film-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--logo-blue) var(--p, 0%), rgba(255, 255, 255, .35) var(--p, 0%));
}
.film-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.film-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--logo-blue); }
.film-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%;
  background: var(--logo-blue);
}
.film-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--logo-blue); }
.film-seek:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }
.film-frame video { cursor: pointer; }
/* full screen: the whole picture, no rounded corners */
.film-frame:fullscreen { width: 100%; border-radius: 0; transform: none; display: grid; place-items: center; background: #000; }
.film-frame:fullscreen video { height: 100%; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 560px) { .film-time { display: none; } }

/* ---------- Comparison: Nordstar vs traditional catheters, a clean three-column list ---------- */
.cmp-head { max-width: 640px; }
.cmp-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.025em; color: var(--fjord); }
.cmp-head p { margin-top: 12px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--text-muted); }
.cmp-table { width: 100%; margin-top: clamp(40px, 5vw, 64px); border-collapse: collapse; font-size: clamp(1rem, 1.15vw, 1.125rem); }
.cmp-table th, .cmp-table td { padding: 0; text-align: left; vertical-align: middle; font-weight: 400; }
.cmp-table thead th { padding-bottom: clamp(20px, 2.4vw, 32px); }
.cmp-table thead td { width: 34%; }
.cmp-table .cmp-ours { width: 36%; }
.cmp-brand {
  display: inline-flex; align-items: center; padding: 12px 22px;
  border: 1.5px solid var(--royal); border-radius: var(--radius-pill); background: var(--white);
}
.cmp-brand img { display: block; height: 22px; width: auto; }
.cmp-others { display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--line); color: var(--text-muted); }
.cmp-table tbody tr + tr { border-top: 1px solid var(--line); }
.cmp-table tbody th, .cmp-table tbody td { padding-top: clamp(18px, 2vw, 26px); padding-bottom: clamp(18px, 2vw, 26px); }
.cmp-table tbody th { padding-right: 24px; font-weight: 600; color: var(--fjord); }
.cmp-table tbody td { padding-right: 20px; }
.cmp-table tbody td { display: table-cell; }
.cmp-table tbody td > span:not(.visually-hidden) { vertical-align: middle; }
.cmp-icon { display: inline-block; vertical-align: middle; margin: -2px 12px 0 0; }
.cmp-table tbody .cmp-ours { color: var(--fjord); }
.cmp-table tbody .cmp-ours .cmp-icon { color: var(--royal); }
.cmp-table tbody .cmp-them { color: #8C99AD; }
.cmp-table tbody .cmp-them .cmp-icon { color: #A9B4C4; }
.cmp-note-ref { margin-left: 1px; color: inherit; text-decoration: none; }
.cmp-note { margin-top: clamp(20px, 2.4vw, 28px); font-size: .875rem; color: var(--text-muted); }
.cmp-note a { color: var(--royal); }
/* phones: the feature name on its own line, the two answers side by side under it */
@media (max-width: 700px) {
  .cmp-table, .cmp-table thead, .cmp-table tbody { display: block; }
  .cmp-table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .cmp-table thead td { display: none; }
  .cmp-table th, .cmp-table td { width: auto !important; }
  .cmp-table tbody th { grid-column: 1 / -1; padding: 18px 0 6px; }
  .cmp-table tbody td { padding-top: 0; padding-bottom: 18px; padding-right: 0; display: flex; align-items: flex-start; font-size: .9375rem; }
  .cmp-icon { flex: none; margin: 1px 8px 0 0; width: 18px; height: 18px; }
  .cmp-brand { padding: 9px 16px; }
  .cmp-brand img { height: 18px; }
  .cmp-others { font-size: .9375rem; }
}

/* ---------- Jeff Gadsden's quote: more room around it, and the words light up as you scroll (main.js) ---------- */
.lead-quote { padding: clamp(96px, 14vw, 220px) 0 clamp(120px, 17vw, 260px); }
.lead-quote blockquote p.is-revealing .reveal-word {
  color: color-mix(in srgb, var(--fjord) calc(14% + 86% * var(--lit, 0)), var(--page));
}

/* ---------- The two clinician quotes on the brand blue (as in the hero's pill and the steps panel), white text ---------- */
.section-partners .testimonial { background: var(--royal); border-color: var(--royal); }
.section-partners .testimonial blockquote p, .section-partners .testimonial .quote-name { color: var(--white); }
.section-partners .testimonial .quote-role { color: rgba(255, 255, 255, .78); }
.section-partners .testimonial-logo img { filter: brightness(0) invert(1); } /* the NYSORA and Duke logos in white */
.section-partners .testimonial a:focus-visible { outline-color: var(--white); }

/* ---------- Footer: the NSM mark, big and faint, across the bottom (like a signature), then the copyright under a thin line ---------- */
.footer-mark { grid-column: 1 / -1; margin-top: clamp(32px, 5vw, 64px); line-height: 0; }
.footer-mark svg { display: block; width: 100%; height: auto; }
.footer-copy { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- The two quote cards: the brand blue with a soft fade (lighter top right, deeper bottom left) ---------- */
.section-partners .testimonial {
  background:
    radial-gradient(70% 80% at 92% 6%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(60% 70% at 4% 100%, rgba(17, 40, 74, .35) 0%, rgba(17, 40, 74, 0) 100%),
    linear-gradient(135deg, #2B7FD8 0%, var(--royal) 55%, #0F4F9E 100%);
}

/* ---------- Jeff Gadsden's quote: a little less space around it, bigger words ---------- */
.lead-quote { padding: clamp(72px, 9vw, 140px) 0 clamp(88px, 11vw, 168px); }
.lead-quote-inner { max-width: 1120px; }
.lead-quote blockquote p { font-size: clamp(1.75rem, 3.7vw, 3.25rem); line-height: 1.22; letter-spacing: -0.025em; }

/* the subtitle under "Why Nordstar?" splits into two lines of about equal length */
.cmp-head p { text-wrap: balance; max-width: 34em; }

.cmp-note + .cmp-note { margin-top: 6px; }

/* ---------- Comparison: more room for the right-hand column, so its answers stay on one line on computers; * and † raised like footnote marks ---------- */
@media (min-width: 701px) {
  .cmp-table thead td { width: 26%; }
  .cmp-table .cmp-ours { width: 32%; }
}
@media (min-width: 1024px) {
  .cmp-table tbody td > span:not(.visually-hidden) { white-space: nowrap; }
}
.cmp-note-ref { margin-left: 2px; font-size: .72em; vertical-align: super; line-height: 0; }

/* ---------- About: more room between the four facts and "Who we are" ---------- */
.about-team { padding-top: clamp(48px, 7vw, 96px); }

/* ---------- Jeff Gadsden's quote: the same small dot grids as the hero, top right by the Duke logo, bottom left by Jeff's name ---------- */
.lead-quote { position: relative; overflow: hidden; }
.lead-quote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='56' viewBox='0 0 112 56' fill='%231665C0' fill-opacity='.34' shape-rendering='geometricPrecision'%3E%3Ccircle cx='7' cy='7' r='1.6'/%3E%3Ccircle cx='21' cy='7' r='1.6'/%3E%3Ccircle cx='35' cy='7' r='1.6'/%3E%3Ccircle cx='49' cy='7' r='1.6'/%3E%3Ccircle cx='63' cy='7' r='1.6'/%3E%3Ccircle cx='77' cy='7' r='1.6'/%3E%3Ccircle cx='91' cy='7' r='1.6'/%3E%3Ccircle cx='105' cy='7' r='1.6'/%3E%3Ccircle cx='7' cy='21' r='1.6'/%3E%3Ccircle cx='21' cy='21' r='1.6'/%3E%3Ccircle cx='35' cy='21' r='1.6'/%3E%3Ccircle cx='49' cy='21' r='1.6'/%3E%3Ccircle cx='63' cy='21' r='1.6'/%3E%3Ccircle cx='77' cy='21' r='1.6'/%3E%3Ccircle cx='91' cy='21' r='1.6'/%3E%3Ccircle cx='105' cy='21' r='1.6'/%3E%3Ccircle cx='7' cy='35' r='1.6'/%3E%3Ccircle cx='21' cy='35' r='1.6'/%3E%3Ccircle cx='35' cy='35' r='1.6'/%3E%3Ccircle cx='49' cy='35' r='1.6'/%3E%3Ccircle cx='63' cy='35' r='1.6'/%3E%3Ccircle cx='77' cy='35' r='1.6'/%3E%3Ccircle cx='91' cy='35' r='1.6'/%3E%3Ccircle cx='105' cy='35' r='1.6'/%3E%3Ccircle cx='7' cy='49' r='1.6'/%3E%3Ccircle cx='21' cy='49' r='1.6'/%3E%3Ccircle cx='35' cy='49' r='1.6'/%3E%3Ccircle cx='49' cy='49' r='1.6'/%3E%3Ccircle cx='63' cy='49' r='1.6'/%3E%3Ccircle cx='77' cy='49' r='1.6'/%3E%3Ccircle cx='91' cy='49' r='1.6'/%3E%3Ccircle cx='105' cy='49' r='1.6'/%3E%3C/svg%3E") no-repeat left max(var(--gutter), calc(50% - 400px)) bottom clamp(80px, 10vw, 160px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='56' viewBox='0 0 112 56' fill='%231665C0' fill-opacity='.34' shape-rendering='geometricPrecision'%3E%3Ccircle cx='7' cy='7' r='1.6'/%3E%3Ccircle cx='21' cy='7' r='1.6'/%3E%3Ccircle cx='35' cy='7' r='1.6'/%3E%3Ccircle cx='49' cy='7' r='1.6'/%3E%3Ccircle cx='63' cy='7' r='1.6'/%3E%3Ccircle cx='77' cy='7' r='1.6'/%3E%3Ccircle cx='91' cy='7' r='1.6'/%3E%3Ccircle cx='105' cy='7' r='1.6'/%3E%3Ccircle cx='7' cy='21' r='1.6'/%3E%3Ccircle cx='21' cy='21' r='1.6'/%3E%3Ccircle cx='35' cy='21' r='1.6'/%3E%3Ccircle cx='49' cy='21' r='1.6'/%3E%3Ccircle cx='63' cy='21' r='1.6'/%3E%3Ccircle cx='77' cy='21' r='1.6'/%3E%3Ccircle cx='91' cy='21' r='1.6'/%3E%3Ccircle cx='105' cy='21' r='1.6'/%3E%3Ccircle cx='7' cy='35' r='1.6'/%3E%3Ccircle cx='21' cy='35' r='1.6'/%3E%3Ccircle cx='35' cy='35' r='1.6'/%3E%3Ccircle cx='49' cy='35' r='1.6'/%3E%3Ccircle cx='63' cy='35' r='1.6'/%3E%3Ccircle cx='77' cy='35' r='1.6'/%3E%3Ccircle cx='91' cy='35' r='1.6'/%3E%3Ccircle cx='105' cy='35' r='1.6'/%3E%3Ccircle cx='7' cy='49' r='1.6'/%3E%3Ccircle cx='21' cy='49' r='1.6'/%3E%3Ccircle cx='35' cy='49' r='1.6'/%3E%3Ccircle cx='49' cy='49' r='1.6'/%3E%3Ccircle cx='63' cy='49' r='1.6'/%3E%3Ccircle cx='77' cy='49' r='1.6'/%3E%3Ccircle cx='91' cy='49' r='1.6'/%3E%3Ccircle cx='105' cy='49' r='1.6'/%3E%3C/svg%3E") no-repeat right max(var(--gutter), calc(50% - 400px)) top clamp(64px, 8.4vw, 128px);
}
.lead-quote-inner { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .lead-quote::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='56' viewBox='0 0 112 56' fill='%231665C0' fill-opacity='.34' shape-rendering='geometricPrecision'%3E%3Ccircle cx='7' cy='7' r='1.6'/%3E%3Ccircle cx='21' cy='7' r='1.6'/%3E%3Ccircle cx='35' cy='7' r='1.6'/%3E%3Ccircle cx='49' cy='7' r='1.6'/%3E%3Ccircle cx='63' cy='7' r='1.6'/%3E%3Ccircle cx='77' cy='7' r='1.6'/%3E%3Ccircle cx='91' cy='7' r='1.6'/%3E%3Ccircle cx='105' cy='7' r='1.6'/%3E%3Ccircle cx='7' cy='21' r='1.6'/%3E%3Ccircle cx='21' cy='21' r='1.6'/%3E%3Ccircle cx='35' cy='21' r='1.6'/%3E%3Ccircle cx='49' cy='21' r='1.6'/%3E%3Ccircle cx='63' cy='21' r='1.6'/%3E%3Ccircle cx='77' cy='21' r='1.6'/%3E%3Ccircle cx='91' cy='21' r='1.6'/%3E%3Ccircle cx='105' cy='21' r='1.6'/%3E%3Ccircle cx='7' cy='35' r='1.6'/%3E%3Ccircle cx='21' cy='35' r='1.6'/%3E%3Ccircle cx='35' cy='35' r='1.6'/%3E%3Ccircle cx='49' cy='35' r='1.6'/%3E%3Ccircle cx='63' cy='35' r='1.6'/%3E%3Ccircle cx='77' cy='35' r='1.6'/%3E%3Ccircle cx='91' cy='35' r='1.6'/%3E%3Ccircle cx='105' cy='35' r='1.6'/%3E%3Ccircle cx='7' cy='49' r='1.6'/%3E%3Ccircle cx='21' cy='49' r='1.6'/%3E%3Ccircle cx='35' cy='49' r='1.6'/%3E%3Ccircle cx='49' cy='49' r='1.6'/%3E%3Ccircle cx='63' cy='49' r='1.6'/%3E%3Ccircle cx='77' cy='49' r='1.6'/%3E%3Ccircle cx='91' cy='49' r='1.6'/%3E%3Ccircle cx='105' cy='49' r='1.6'/%3E%3C/svg%3E") no-repeat right var(--gutter) bottom 24px; }
}

/* ---------- Jeff Gadsden: photo above his name and title, all centred under the quote like the Duke logo above it ---------- */
.lead-quote-person { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lead-quote-person > span { justify-items: center; }

/* Jeff Gadsden a little bigger under his quote */
.lead-quote-person img { width: 64px; height: 64px; }
.lead-quote-person .quote-name { font-size: 1.125rem; }
.lead-quote-person .quote-role { font-size: 1rem; }

/* the letter: the yellow problem phrase stays together on one line (it moves to the next line as a whole) */
@media (min-width: 700px) { .letter mark.mark-problem { white-space: nowrap; } }


/* ---------- "Made for": a small (i) after each figure; hovering or clicking it shows the source in a little pop-up (main.js) ---------- */
.src { position: relative; display: inline-block; vertical-align: -3px; margin-left: 4px; }
.src-btn {
  display: grid; place-items: center; width: 26px; height: 26px; margin: -4px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--royal); cursor: pointer;
}
.src-btn:hover, .src.is-open .src-btn { background: var(--ice); }
.src-pop {
  position: absolute; right: -10px; bottom: calc(100% + 10px); z-index: 20;
  width: 240px; padding: 10px 12px; border-radius: 12px;
  background: var(--fjord); color: rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(24, 52, 89, .25);
  font-size: .8125rem; line-height: 1.45; font-weight: 400; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .18s, transform .18s, visibility .18s;
  cursor: auto; user-select: text; -webkit-user-select: text;
}
.src-pop::after { content: ""; position: absolute; right: 17px; top: 100%; border: 6px solid transparent; border-top-color: var(--fjord); }
.src-pop a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 2px; }
.src.is-open .src-pop { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .src:hover .src-pop { opacity: 1; visibility: visible; transform: none; } }

/* ---------- Quotes: one clinician quote (Admir Hadzic), centred on its own ---------- */
.section-partners .testimonials { grid-template-columns: minmax(0, 760px); justify-content: center; }

/* ---------- Quotes: the one quote card in deep navy, full width ---------- */
.section-partners .testimonials { grid-template-columns: minmax(0, 1fr); }
.section-partners .testimonial { background: #12284B; border-color: #12284B; }

/* ---------- Admir Hadzic's quote: same big centred quote as Jeff Gadsden's; "Supported by" follows on its own ---------- */
.lead-quote-end .lead-quote-logo img { height: clamp(24px, 2.4vw, 32px); }
.section-partners .partners-block { margin-top: 0; }
.lead-quote-end + .section-partners { padding-top: 0; }
.lead-quote-end blockquote p { max-width: 24ch; } /* three lines, like Jeff Gadsden's quote */

/* the small "How it works" label over the video title, matching "Where it fits" */
.film-head .far-kicker { font-size: 1.125rem; color: var(--text-muted); }

/* ---------- The same control bar on the pop-up video ---------- */
.video-player { position: relative; overflow: hidden; border-radius: 20px; background: var(--fjord); }
.video-modal .video-player video { border-radius: 0; }
.has-controls:hover .film-controls, .has-controls.is-paused .film-controls { opacity: 1; }
.has-controls video { cursor: pointer; }
.video-player:fullscreen { width: 100%; border-radius: 0; display: grid; place-items: center; background: #000; }
.video-player:fullscreen video { height: 100%; aspect-ratio: auto; object-fit: contain; }


/* the small "Our study" label over the evidence heading, matching "Where it fits" and "How it works" */
.evidence-kicker { margin: 0 0 6px; font-size: 1.125rem; color: var(--text-muted); }

/* ---------- Our study: the bars fill up and the numbers count up as each result scrolls into view (main.js) ---------- */
.results.is-animated .bar-fill { transition: width 1s cubic-bezier(.33, 1, .68, 1); }
.results.is-animated .result:not(.is-in) .bar-fill { width: 0; }
.results.is-animated .bar-value { display: inline-block; transform-origin: 0 50%; }
.result.is-done .bar-value { animation: value-pop .6s cubic-bezier(.34, 1.56, .64, 1); }
.result.is-done .bar-farcath .bar-value { color: var(--royal); transition: color .6s ease .6s; }
@keyframes value-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* the source pop-up spans the card's text and sits just above it, so it never sticks out past the screen edge,
   wherever the (i) ends up in the line */
.fit-text { position: relative; }
.fit-text .src { position: static; }
.fit-text .src-pop { left: -4px; right: -4px; width: auto; bottom: calc(100% + 10px); }
.fit-text .src-pop::after { display: none; }
.hero-lede { text-wrap: balance; }

/* phones: the footer links get a taller tap area (at least 40px) without looking different */
@media (max-width: 760px) { .site-footer nav a { display: inline-block; padding: 10px 0; } .site-footer nav ul { gap: 0 28px; } }

/* ---------- Team cards: a card grows taller when its opened text needs more room than the photo, so nothing is cut off.
   Closed, every card keeps the 4:5 photo shape (the min-height below); only the opened card grows, its neighbours stay put. ---------- */
.team-cards { container-type: inline-size; align-items: flex-start; }
.team-cards .person { aspect-ratio: auto; min-height: calc((100cqw - 2 * var(--team-gap)) / 3 * 1.25); }
@media (max-width: 960px) { .team-cards .person { min-height: calc((100cqw - var(--team-gap)) / 2 * 1.25); } }
@media (max-width: 600px) { .team-cards .person { min-height: 125cqw; } }

/* "Why Nordstar?" and "Our study" share the light-blue background and read as one band: a smaller gap between them */
#compare + #evidence { padding-top: clamp(24px, 4vw, 56px); }

/* ---------- News posts: a photo, full width of the text column ---------- */
.post-photo { margin: clamp(32px, 4vw, 48px) 0 0; }
.post-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }

/* ---------- Latest news as cards: a picture, a small tag (Conference, Pitch, Grant) and the date, then the title.
   The whole card is the link (the title's link stretches over it). ---------- */
.news { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.news-item {
  position: relative; display: flex; flex-direction: column;
  padding: 0; border: 0; border-radius: var(--radius-card); overflow: hidden;
  background: var(--white); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .25s ease, transform .25s ease;
}
.news-item:hover { box-shadow: 0 0 0 1px var(--line), 0 14px 32px rgba(24, 52, 89, .1); transform: translateY(-2px); }
.news-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.news-item:hover .news-media img { transform: scale(1.04); }
.news-media-logo { display: grid; place-items: center; padding: 12% 14%; background: var(--white); border-bottom: 1px solid var(--line); }
.news-media-logo img { height: auto; object-fit: contain; }
.news-item:hover .news-media-logo img { transform: none; }
.news-text { padding: 18px 20px 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin: 0; }
.news-tag { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--ice); color: var(--royal); font-size: .8125rem; font-weight: 600; }
.news-item .news-meta time { font-size: .875rem; color: var(--text-muted); }
.news-item h3 { margin-top: 12px; font-size: 1.125rem; line-height: 1.35; }
.news-item h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is clickable */
.news-item h3 a:hover { text-decoration: none; }
.news-item:hover h3 a { color: var(--royal); }
.news-item h3 a:focus-visible { outline: none; }
.news-item:has(a:focus-visible) { outline: 3px solid var(--logo-blue); outline-offset: 3px; }
.news-item .news-text > p:last-child { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .news-item, .news-media img { transition: none; } .news-item:hover { transform: none; } }

/* ---------- News page (news.html) and the "All news" link on the home page ---------- */
.news-page { padding-top: clamp(56px, 8vw, 104px); }
.news-page h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
.news-item h2.news-title { margin-top: 12px; font-size: 1.125rem; line-height: 1.35; }
.news-item h2.news-title a { color: var(--fjord); text-decoration: none; }
.news-item h2.news-title a::after { content: ""; position: absolute; inset: 0; }
.news-item:hover h2.news-title a { color: var(--royal); }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: none; }
.news-all { font-weight: 600; color: var(--royal); text-decoration: none; }
.news-all:hover { text-decoration: underline; }

/* phones: no dot grids in the hero and around the big quotes; there's no empty space for them, so they only crowded the text */
@media (max-width: 760px) { .hero::before, .lead-quote::before { display: none; } }

/* phones: the blue steps panel uses more of the screen width, and the drawing inside it gets bigger */
@media (max-width: 760px) {
  #solution > .container { padding-left: 8px; padding-right: 8px; }
  .steps-panel { padding-left: 12px; padding-right: 12px; }
  .steps-art { padding: 8px; }
  .steps-copy { padding-left: 8px; padding-right: 8px; }
}

/* phones: the steps panel stays in place while you scroll and is shrunk to fit under the header, so it is kept
   compact here (tighter spacing, the two comparison lines side by side); that way it shrinks much less and stays wide */
@media (max-width: 760px) {
  .steps-panel { padding-top: 34px; padding-bottom: 16px; row-gap: 14px; align-content: start; } /* text right under the drawing */
  .steps-copy h3 { font-size: min(2.1rem, 10.2cqw); }
  .steps-body { margin-top: 8px; font-size: 1rem; line-height: 1.45; }
  .steps-compare { margin-top: 16px; padding-top: 12px; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 0; }
  .steps-compare dt { font-size: .8125rem; gap: 5px; }
  .steps-compare dt svg { width: 15px; height: 15px; flex: none; }
  .steps-compare dd { font-size: .9375rem; line-height: 1.35; }
}
