/* Nordstar Medical — site styles */

:root {
  /* Brand */
  --logo-blue: #177ACC;
  --royal: #1F5FB8;        /* buttons, links (AA on white) */
  --royal-hover: #184E99;
  --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: 88px; }
@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: 76px; gap: 24px;
}
.brand img { height: 34px; width: auto; }

.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: .9875rem;
  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 { color: var(--white); }

.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 background colour. Change --hero-bg to match a new photo backdrop. */
.hero {
  --hero-bg: #E6EEF9;
  position: relative;
  margin-top: -77px; /* header height incl. its 1px border */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 0% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #F4F8FE 0%, var(--hero-bg) 100%);
}

/* Transparent photo anchored to the right edge, full height */
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0;
  margin: 0;
}
.hero-media img {
  height: 100%; width: auto; max-width: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  padding-top: 120px;
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-copy { max-width: 680px; }
.hero-copy h1 { max-width: 13ch; font-size: clamp(2.6rem, 5.4vw, 4.75rem); }
.hero-copy h1 .hero-accent { color: var(--royal); }
/* about as wide as the title, so it stays clear of the photo; sized to fit three lines */
.hero-lede { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: min(590px, 27em); color: var(--text); }
.hero-lede strong { font-weight: 700; color: var(--fjord); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

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

/* Narrower screens: photo scales with the width so it stays clear of the text */
@media (max-width: 1100px) {
  .hero-media { top: auto; }
  .hero-media img { width: 62vw; height: auto; }
  .hero-media {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 15%);
  }
  .hero-copy { max-width: 52%; }
}

/* Phones: photo on top, text below */
@media (max-width: 760px) {
  .hero { flex-direction: column; }
  .hero-media {
    position: relative;
    margin-top: 77px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 25%);
            mask-image: linear-gradient(0deg, transparent 0%, #000 25%);
  }
  /* Enlarge and crop the empty transparent area on the image's left */
  .hero-media img { width: 135%; height: auto; margin-left: -35%; }
  .hero-inner { padding-top: 0; margin-top: -48px; }
  .hero-copy { max-width: none; }
}

/* ---------- 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; }

/* Fast / Accurate / Reliable: on large screens the section pins while scrolling steps through the three points */
.far-section { padding-bottom: var(--section-y); }
.far { position: relative; }
.far-sticky { padding: var(--section-y) 0 0; }
.far-grid { display: grid; gap: 40px; }
.far-kicker { color: var(--royal); font-weight: 600; }
.far-intro h2 { margin-top: 10px; font-size: clamp(2.4rem, 5vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.02; }
.far-sub { margin-top: 18px; font-size: 1.125rem; color: var(--text-muted); max-width: 40ch; }
.far-nav, .far-rail { display: none; }

.far-steps { display: grid; gap: 48px; }
.far-step { display: grid; gap: 24px; }
.far-label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fjord); font-size: 1.0625rem; }
.far-icon { width: 28px; height: 28px; color: var(--royal); flex: none; }
.far-step h3 { margin-top: 20px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.far-body { margin-top: 18px; font-size: 1.0625rem; line-height: 1.65; color: var(--text); max-width: 42ch; }
.far-step .principle-link { margin-top: 28px; background: var(--white); }
.far-step .principle-link:hover { background: var(--white); color: var(--royal); }

.far-media {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--fjord);
}
.far-media-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.far-media-render {
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(120, 180, 245, .45) 0%, rgba(120, 180, 245, 0) 100%),
    linear-gradient(160deg, #2466C2 0%, #183459 100%);
}
.far-media-render img { position: absolute; max-width: none; filter: drop-shadow(0 18px 24px rgba(10, 25, 50, .4)); }
/* Step numbers, and the callout pinned on each illustration */
.far-num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--royal); color: var(--white);
  font-size: .875rem; font-weight: 700;
}
.far-nav-num { margin-right: 10px; font-variant-numeric: tabular-nums; opacity: .6; }
/* step number on the left, the step's key feature on the right, on one line above the title */
/* label line and title share the title's width, so the callout ends where the title's last word ends */
.far-titlebox { width: fit-content; max-width: 100%; }
.far-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.far-callout {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--fjord); color: var(--white);
  font-size: .9375rem; font-weight: 600; line-height: 1.3;
}
.far-callout-dot { width: 10px; height: 10px; border-radius: 50%; background: #7FB8EC; box-shadow: 0 0 0 4px rgba(127, 184, 236, .3); flex: none; }

/* Procedure drawings: no panel. The files have the section blue (--ice) baked in, so they sit
   on the background seamlessly, also while the steps cross-fade. .far-art keeps their proportions. */
.far-media-illustration { background: var(--ice); border-radius: 0; container-type: size; }
.far-art {
  --w: calc(min(100cqw, 100cqh * 1600 / 1385) * var(--k, 1));
  position: absolute; width: var(--w); height: calc(var(--w) * 1385 / 1600);
  left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * 1385 / 1600 / 2);
}
.far-art img { width: 100%; height: 100%; clip-path: inset(.5%); }
/* drawn straight on the blue, as large as the column allows */
.far-art { --k: 1.3; }

/* the render is cropped square around the barbed tip; shown whole, centred */
.far-media-closeup img { width: 100%; height: 100%; object-fit: contain; }
/* Whole device, turned to run corner to corner */
.far-media-whole img { left: 50%; top: 50%; width: 150%; transform: translate(-50%, -50%) rotate(-28deg); }
/* Close-up on the front of the device, where the needle and catheter exit */
.far-media-tip img {
  width: 240%; left: 50%; top: 50%;
  /* the front collar sits at 41.7% / 70% of the image: centre on it and tilt around it */
  transform-origin: 41.7% 70%;
  transform: translate(-41.7%, -70%) rotate(-28deg);
}

@media (min-width: 1000px) {
  .far.is-pinned { height: calc(var(--far-steps, 3) * 100vh); }
  .far.is-pinned .far-sticky {
    position: sticky; top: 77px; /* below the header */
    height: calc(100vh - 77px);
    padding: 0;
    display: flex; align-items: center;
  }
  .far.is-pinned .far-grid {
    grid-template-columns: minmax(0, 4fr) 1px minmax(0, 9fr);
    gap: clamp(32px, 4vw, 64px);
    height: min(720px, calc(100vh - 77px - 64px));
    align-items: stretch;
  }
  .far.is-pinned .far-intro { display: flex; flex-direction: column; }
  .far.is-pinned .far-nav { display: grid; gap: 6px; list-style: none; margin: auto 0 0; padding: 0; }
  .far-nav-item {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 6px 0;
    border: 0; background: none; cursor: pointer;
    font: 600 clamp(1.25rem, 1.9vw, 1.75rem)/1.2 var(--font-sans); letter-spacing: -0.015em; text-align: left;
    color: rgba(24, 52, 89, .38);
    transition: color .25s;
  }
  .far-nav-item:hover { color: rgba(24, 52, 89, .7); }
  .far-nav-arrow { flex: none; width: 0; opacity: 0; color: var(--royal); transition: width .3s var(--ease-out), opacity .3s; }
  .far-nav-item[aria-current="step"] { color: var(--fjord); }
  .far-nav-item[aria-current="step"] .far-nav-arrow { width: 24px; opacity: 1; }

  .far.is-pinned .far-rail { display: block; position: relative; background: var(--line); }
  .far-rail-fill {
    position: absolute; left: 0; top: 0; width: 100%;
    height: calc(var(--far-progress, 0) * 100%);
    background: var(--royal);
  }

  .far.is-pinned .far-steps { display: grid; gap: 0; }
  .far.is-pinned .far-step {
    grid-area: 1 / 1;
    /* drawing on top, aligned left, text underneath */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 20px;
    opacity: 0; visibility: hidden;
  }
  /* fade only once set up, so the steps don't flash over each other on load */
  .far.is-pinned.is-ready .far-step { transition: opacity .45s var(--ease-out), visibility .45s; }
  .far.is-pinned .far-step.is-active { opacity: 1; visibility: visible; }
  /* full-height drawing area, from the top of the intro to the bottom */
  .far.is-pinned .far-media { aspect-ratio: auto; height: 100%; align-self: stretch; }
  /* clip the drawing's empty margins so its blue never shows past the section edge */
  .far.is-pinned .far-media-illustration { overflow: hidden; }
}
@media (min-width: 1000px) {
  .far.is-pinned .far-media { grid-row: 1; }
  /* text above the drawing's blue edges */
  .far.is-pinned .far-text { grid-row: 2; position: relative; z-index: 1; }
  .far.is-pinned .far-text h3 { margin-top: 10px; }
  .far.is-pinned .far-body { margin-top: 10px; max-width: 58ch; }
  /* text, callout and the video button stack, each on its own line, kept tight so the drawing keeps its room */
  .far.is-pinned .far-text { display: flex; flex-direction: column; align-items: flex-start; }
  .far.is-pinned .far-head { align-self: stretch; }
  .far.is-pinned .principle-link { margin-top: 18px; }
  /* drawing as tall as the space allows; its own white margin is pulled back so it lines up with the text */
  .far.is-pinned .far-art {
    --k: 1.25;
    left: calc(var(--w) * -.06);
    /* bottom of the drawing (less its own ~9% white margin) sits on the text; the excess goes up into its empty top */
    top: calc(100% - var(--w) * 1385 / 1600 * .91);
  }
}
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
  .far.is-pinned .far-step, .far-nav-arrow { transition: none; }
}

/* Phones and tablets: the three points simply stack */
@media (max-width: 999px) {
  .far-step { grid-template-columns: 1fr; }
  .far-media { aspect-ratio: 4 / 3; }
  .far-steps { margin-top: 8px; }
  /* phones: whole drawing at the column width above the text, label underneath it */
  .far-media-illustration { order: -1; aspect-ratio: auto; container-type: normal; display: flex; flex-direction: column; overflow: visible; }
  .far-art { position: relative; left: auto; top: auto; width: 100%; height: auto; }
}

.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(64px, 8vw, 104px); }
.video-block { margin-top: clamp(80px, 10vw, 128px); }
.video-head { max-width: 640px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.video-head h3 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; }
.video-head p { margin-top: 14px; font-size: 1.125rem; color: var(--text-muted); }

.video-frame { position: relative; max-width: 1000px; margin: 0 auto; }
.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; }
}

/* ---------- 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); }
.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; } /* side cards bleed off the edge without widening the page */
.fit-head { max-width: 960px; }
.fit-head h2 { line-height: 1.08; }
.fit-phrase {
  display: block;
  /* same typeface and weight as the heading; the blue alone marks the words that change */
  font-family: var(--font-sans); font-style: normal; font-weight: inherit;
  color: var(--royal);
  transition: opacity .5s ease, transform .5s ease;
}
.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(330px, 72vw); --fit-bg: #3574CB; position: relative; }
.fit-track {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  height: calc(var(--fit-w) * 1.25 + 200px); /* 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; }
.fit-card.is-active { background: var(--white); padding-bottom: 28px; }

.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%),
    #1F5FB8;
  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.1875rem; 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-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.35; letter-spacing: -0.01em;
  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); }
.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(48px, 6vw, 80px); }
.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-lead { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 4vw, 56px); max-width: 1000px; }
.about-lead p { font-size: 1.125rem; line-height: 1.65; color: var(--text-muted); }
.about-photo { margin: clamp(40px, 5vw, 64px) 0 0; }
.about-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius-panel); }
/* 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; }
  .about-photo img { aspect-ratio: 3 / 2; }
}

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

/* About us: investors follow the team, same cards */
.about-investors { padding-top: 0; }
.investors-title { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }


/* 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%; } }

.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; } }

/* ---------- 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; }
.contact-copy .contact-direct { font-size: 1rem; }
.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; }

