/* =========================================================
   Medicament Consultancy — one-page site
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand fonts: Stack Sans Text for headings/display and body copy (regular) */
  --font-display: "Stack Sans Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Stack Sans Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ink: #0f2638;          /* headings on light */
  --text: #4f5f6e;         /* body on light */
  --muted: #6b7a88;
  --line: #dde4eb;

  --navy: #050b14;         /* dark sections */
  --navy-2: #0b1724;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c3cd;
  --line-dark: #263d4a;   /* dark-section dividers + footer line (brand value) */

  --blue: #006ce8;         /* brand blue: eyebrows, icons (from supplied SVGs) */
  --blue-bright: #0b6cf0;  /* focus core */
  --cyan: #71dffa;         /* primary buttons / accents on dark */
  --cyan-hover: #9fe8ff;

  --bg: #ffffff;
  --tint: #f5f9fb;         /* pale grey-blue sections + engagement cards (brand value) */
  --blue-tint: #eaf4fc;    /* pale blue sections / focus card (brand value) */

  --radius: 14px;
  --radius-lg: 18px;
  --pill: 999px;

  --container: 1280px;
  --gutter: 80px;
  --section-y: 128px;
  --header-h: 108px;

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

@media (max-width: 1100px) { :root { --gutter: 48px; --section-y: 104px; } }
@media (max-width: 760px)  { :root { --gutter: 24px; --section-y: 72px; --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  /* Stop sideways rubber-band bounce on trackpads/phones, which flashed a 1px strip of page background at the left edge mid-scroll */
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cyan); color: var(--navy); padding: 10px 16px; border-radius: var(--pill); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon--blue { color: var(--blue); }

/* ---------- Type ---------- */
.h1, .hero__title, .h2, .h4, .h5, .h6, .lead,
.focus-card__title, .contact__value, .pull,
.mobile-menu__links a, .mobile-menu__title { font-family: var(--font-display); }
.h1, .hero__title, .h2 { color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
.h1, .hero__title { font-size: clamp(46px, 5.6vw, 80px); line-height: 1.02; }
.h2 { font-size: clamp(34px, 3.7vw, 52px); line-height: 1.08; }
.h4 { color: var(--ink); font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.h5 { color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.3; }
.h6 { font-size: 18px; font-weight: 500; line-height: 1.3; }
.lead { color: var(--ink); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.01em; }
.body-lg { font-size: 18px; line-height: 1.6; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 16px; height: 2px; background: currentColor; } /* squared ends, as in the mockup */
.eyebrow--cyan { color: var(--cyan); }
.eyebrow--plain::before { display: none; }
.label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }

.section--dark .h1, .section--dark .h2, .section--dark .h4,
.section--dark .h5, .section--dark .h6 { color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--pill); border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cyan); color: var(--navy); }
.btn--primary:hover { background: var(--cyan-hover); }
.nav__cta.is-active { box-shadow: 0 0 0 4px rgba(116, 220, 251, .25); }
.btn--ghost { color: var(--on-dark); border-color: #2c3946; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; justify-content: space-between; min-height: 56px; padding: 0 24px; font-size: 18px; }
.btn--block .icon { width: 28px; height: 28px; color: #0d1f2a; }

/* ---------- Header / sticky nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: 24px;
  transition: padding .35s var(--ease);
  pointer-events: none;
}
.site-header > .container { pointer-events: auto; }
.site-header.is-scrolled { padding-top: 12px; }

.nav {
  display: flex; align-items: center; gap: 32px;
  height: 108px; padding: 0 40px 0 0;
  background: #000;
  border: 1px solid #2a3540;
  border-radius: var(--pill);
  transition: height .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.is-scrolled .nav { height: 80px; box-shadow: 0 18px 40px -20px rgba(5, 11, 20, .55); }

.brand { display: flex; align-items: center; margin-right: auto; margin-left: 8px; }
.brand__logo { display: block; width: auto; aspect-ratio: 258 / 98; transition: height .35s var(--ease); }
/* Desktop header uses the wide lockup (mockup proportions); footer + mobile use the export proportions */
.brand__logo--wide { height: 90px; aspect-ratio: 320 / 90; }
.is-scrolled .brand__logo--wide { height: 64px; }
.brand__logo--compact { display: none; }

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  position: relative; color: #fff; font-size: 15px; font-weight: 500; padding: 8px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--cyan); }
.nav__links a.is-active { color: var(--cyan); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: #14222f; border: 1px solid #2a3a48; color: #fff; cursor: pointer;
  position: relative;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  position: absolute; left: 50%; width: 16px; height: 1.5px; margin-left: -8px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle-bars { top: 50%; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); width: 20px; margin-left: -2px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); width: 20px; margin-left: -2px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  background: var(--navy);
  padding-top: calc(var(--header-h) + 40px);
  pointer-events: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__inner { display: flex; flex-direction: column; min-height: 100%; padding-bottom: 28px; }
.mobile-menu__links { display: grid; gap: 12px; }
.mobile-menu__links a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; padding: 0 20px 0 24px;
  background: #0d1c29; border: 1px solid #1e2f3e; border-radius: var(--pill);
  color: #fff; font-size: 26px; font-weight: 500;
  transform: translateY(14px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), border-color .2s;
}
.mobile-menu__links a .icon { color: var(--cyan); width: 28px; height: 28px; }
.mobile-menu__links a:hover { border-color: var(--cyan); }
.mobile-menu.is-open .mobile-menu__links a { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu__footer { margin-top: auto; padding-top: 48px; }
.mobile-menu__title { color: #fff; font-size: 26px; font-weight: 500; }
.mobile-menu__sub { color: var(--on-dark-muted); font-size: 16px; margin: 6px 0 24px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--blue { background: var(--blue-tint); }
.section--dark { background: var(--navy); color: var(--on-dark-muted); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px 96px;
}
.split--center { align-items: center; }
#about-title { max-width: 12ch; }
.split .h2 + .body-lg, .split .h2 + .prose { margin-top: 32px; }
.prose > * + * { margin-top: 24px; }
.prose .lead + p { margin-top: 32px; }

.section-head {
  display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px 96px;
  align-items: end; margin-bottom: 56px;
}
.section-head__aside { font-size: 17px; padding-bottom: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 24px + 112px);
  min-height: 734px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 620px; padding-bottom: 32px; }
.hero__title { color: #fff; margin-bottom: 36px; }
.hero__lead { color: var(--on-dark-muted); font-size: 20px; line-height: 1.5; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero__media {
  position: absolute; right: 0; bottom: 0;
  width: calc(50% - 40px); height: calc(100% - var(--header-h) - 24px - 104px);
  min-height: 420px;
  overflow: hidden; background: #000;
}
.hero__img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* Both crop in slightly so the iris fills the frame, as in the design; identical framing = no jump when the video fades in */
.hero__img, .hero__video { transform: scale(1.12); }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__caption {
  position: absolute; left: 40px; bottom: 26px;
  display: flex; align-items: center; gap: 14px;
  color: #c9d6e2; font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
}
.hero__caption::before { content: ""; width: 7px; height: 7px; background: var(--cyan); animation: blink 2.4s ease-in-out infinite; }

@keyframes blink { 50% { opacity: .25; } }

/* ---------- Feature grid (services) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature { border-top: 1px solid var(--line); padding: 24px 0 48px; }
.feature__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.feature__num { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.feature .h4 { margin-bottom: 14px; }
.feature p { font-size: 16px; }
.feature .icon { transition: transform .4s var(--ease); }
.feature:hover .icon { transform: translateY(-3px); }

/* ---------- Specialism ---------- */
#specialism .split {
  grid-template-areas: "text card" "chips .";
  align-items: start;
}
#specialism .split > :first-child { grid-area: text; }
#specialism .focus-card { grid-area: card; }
#specialism .chips-wrap { grid-area: chips; }

.callout {
  display: flex; gap: 14px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line);
}
.callout .icon { width: 18px; height: 20px; margin-top: 3px; } /* drawn at 15×17; scaled up a touch so it sits with the 20px heading */
.callout .h5 { margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--pill);
  color: var(--ink); font-size: 14px; background: #fff;
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--blue); color: var(--blue); }

.focus-card {
  position: relative; overflow: hidden;
  min-height: 360px; padding: 32px 28px;
  background: var(--blue-tint); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: space-between;
}
.focus-card .eyebrow { margin: 0; position: relative; z-index: 1; }
.focus-card__target {
  --cx: 61%; --cy: 47%; --lx: 28px; /* ring centre x/y, label start x */
  position: absolute; inset: 0;
}
.ring, .focus-card__core {
  position: absolute; left: var(--cx); top: var(--cy);
  border-radius: 50%; transform: translate(-50%, -50%);
}
.focus-card__core { width: 54px; height: 54px; background: var(--blue-bright); box-shadow: 0 0 0 0 rgba(11, 108, 240, .35); }
.ring { border: 1px solid rgba(31, 111, 208, .22); }
.ring--1 { width: 112px; height: 112px; }
.ring--2 { width: 160px; height: 160px; border-color: rgba(31, 111, 208, .8); border-width: 1.5px; }
.ring--3 { width: 208px; height: 208px; }
.ring--4 { width: 260px; height: 260px; border-color: rgba(31, 111, 208, .16); }
.focus-card__label {
  position: absolute; left: var(--lx); top: var(--cy); transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; width: calc(var(--cx) - var(--lx) - 80px); /* ends at ring 2's edge */
  color: var(--ink); font-size: 13px;
}
.focus-card__label i { flex: 1; height: 1px; background: var(--blue); transform-origin: left; }
.focus-card__text { position: relative; z-index: 1; }
.focus-card__title { color: var(--ink); font-size: clamp(30px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.focus-card__sub { font-size: 14px; margin-top: 8px; }

/* ---------- Launch workstreams (dark) ---------- */
#launch .section-head__aside { color: var(--on-dark-muted); }
.strip {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0; margin-bottom: 40px;
  border-block: 1px solid var(--line-dark);
  color: var(--cyan); font-size: 14px;
}
.strip .icon { flex: none; }
.stream-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.stream { padding: 24px 0 28px; border-bottom: 1px solid var(--line-dark); }
.stream .h6 { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.stream .h6 .icon { color: var(--cyan); flex: none; margin-top: 1px; }
.stream p { font-size: 15px; color: var(--on-dark-muted); }
.pull {
  margin-top: 48px; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--cyan);
  color: #fff; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4;
}

/* ---------- Path to market card ---------- */
.path-card { background: #fff; border-radius: var(--radius-lg); padding: 32px 36px 36px; box-shadow: 0 24px 60px -40px rgba(15, 38, 56, .35); }
.path-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.path-card__head .eyebrow { margin: 0; }

.timeline { position: relative; display: grid; gap: 30px; }
.timeline__step { position: relative; padding-left: 44px; }
/* Connector: runs from this circle's centre to the next circle's centre (step height + 30px gap),
   so it always finishes hidden under the next circle, whatever the text length. */
.timeline__step:not(:last-child)::after {
  content: ""; position: absolute; left: 6.25px; top: 11px;
  width: 1.5px; height: calc(100% + 30px);
  background: var(--blue); transform-origin: top;
}
.timeline__step::before {
  content: ""; position: absolute; left: 0; top: 4px; z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.timeline__step--end::before { background: var(--blue-bright); border-color: var(--blue-bright); }
.timeline__step .h5 { margin-bottom: 8px; }
.timeline__step p { font-size: 15px; }

/* ---------- Engagement cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--tint); border-radius: var(--radius); padding: 28px 28px 36px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 24px 50px -32px rgba(15, 38, 56, .4); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.card__tag { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: right; }
.card .h4 { margin-bottom: 16px; }
.card p { font-size: 16px; }

/* ---------- Approach pillars ---------- */
.pillars { border-top: 1px solid var(--line); }
.pillar { display: flex; gap: 27px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: 0; }
.pillar .icon { flex: none; margin-top: 9px; transition: transform .35s var(--ease); }
.pillar:hover .icon { transform: translate(3px, -3px); }
.pillar .h4 { margin-bottom: 12px; }
.pillar p { font-size: 16px; }

/* ---------- Contact ---------- */
.contact .h1 { margin-bottom: 40px; }
.contact .body-lg { max-width: 600px; margin-bottom: 40px; }
.contact__details { padding-top: 40px; }
.contact__details .label { color: var(--on-dark-muted); margin-bottom: 28px; }
.contact__item { padding-bottom: 28px; }
.contact__item + .contact__item { padding-top: 28px; border-top: 1px solid var(--line-dark); }
.contact__kicker { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-muted); margin-bottom: 10px; }
.contact__kicker .icon { color: var(--cyan); width: 18px; height: 18px; }
.contact__value { color: #fff; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.01em; word-break: break-word; transition: color .2s; }
.contact__value:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); padding: 48px 0 40px; font-size: 13px; }
.site-footer__top, .site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer__bottom { align-items: flex-end; margin-top: 40px; }
.brand--footer { margin-left: 0; }
.brand--footer .brand__logo { height: 92px; } /* globe ≈ 86px, as in the footer mockup */
.site-footer__strap { color: var(--on-dark-muted); font-size: 16px; }
.site-footer__legal { text-align: right; line-height: 1.8; }

/* =========================================================
   Animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Hero copy is visible from the first paint (no fade from transparent) so the headline counts as loaded straight away; it just rises in */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroRise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; } .hero__copy > :nth-child(3) { animation-delay: .16s; } .hero__copy > :nth-child(4) { animation-delay: .24s; }
@keyframes heroRise { from { transform: translateY(18px); } }

/* Focus card: rings expand in, core pulses, label line draws */
.focus-card .ring { opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.focus-card .ring--1 { transition-delay: .15s; } .focus-card .ring--2 { transition-delay: .3s; }
.focus-card .ring--3 { transition-delay: .45s; } .focus-card .ring--4 { transition-delay: .6s; }
.focus-card__label i { transform: scaleX(0); transition: transform .9s var(--ease) .9s; }
.focus-card.is-in .ring { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.focus-card.is-in .focus-card__label i { transform: scaleX(1); }
.focus-card.is-in .focus-card__core { animation: pulse 2.8s ease-out 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 108, 240, .4); } 100% { box-shadow: 0 0 0 36px rgba(11, 108, 240, 0); } }

/* Timeline: line draws down, dots fill in order */
.path-card .timeline__step::after { transform: scaleY(0); transition: transform .6s var(--ease); }
.path-card.is-in .timeline__step::after { transform: scaleY(1); }
.path-card.is-in .timeline__step:nth-child(1)::after { transition-delay: .4s; }
.path-card.is-in .timeline__step:nth-child(2)::after { transition-delay: 1s; }
.path-card .timeline__step { opacity: .35; transition: opacity .6s var(--ease); }
.path-card.is-in .timeline__step { opacity: 1; }
.path-card.is-in .timeline__step:nth-child(1) { transition-delay: .3s; }
.path-card.is-in .timeline__step:nth-child(2) { transition-delay: .9s; }
.path-card.is-in .timeline__step:nth-child(3) { transition-delay: 1.5s; }
.path-card.is-in .timeline__step--end::before { animation: pulse 2.8s ease-out 2s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .path-card .timeline__step::after { transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 24px; padding-right: 24px; }
  .nav__links { gap: 22px; }
  .split { gap: 48px 56px; }
  .section-head { gap: 24px 56px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  /* Right gap = (nav height − 2px border − 44px button) / 2, so the menu button has equal space above, below and right */
  .nav { height: 72px; padding-right: 13px; }
  .is-scrolled .nav { height: 64px; padding-right: 9px; }
  .brand { margin-left: 6px; }
  .brand__logo--wide { display: none; }
  .brand__logo--compact { display: block; height: 60px; }
  .is-scrolled .brand__logo--compact { height: 54px; }

  .split, .section-head { grid-template-columns: 1fr; }
  .section-head { align-items: start; margin-bottom: 40px; }
  .split .h2 { max-width: none; }
  #specialism .split { grid-template-areas: "text" "card" "chips"; }
  /* Focus card: rings get their own band between label and title so they never run into the text */
  .focus-card { min-height: 0; justify-content: flex-start; }
  .focus-card__target { position: relative; inset: auto; height: 268px; margin: 8px 0 12px; --cx: clamp(172px, 62%, 300px); --cy: 50%; --lx: 0px; }

  .hero { padding-top: calc(var(--header-h) + 72px); min-height: 0; }
  .hero__copy { max-width: 640px; padding-bottom: 48px; }
  .hero__media { position: relative; width: auto; height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-inline: var(--gutter); }

  .feature-grid, .stream-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding-top: 14px; }
  .site-header.is-scrolled { padding-top: 8px; }
  .nav { height: 60px; padding-right: 7px; }
  .is-scrolled .nav { height: 56px; padding-right: 5px; }
  .brand { margin-left: 2px; }
  .brand__logo--compact, .is-scrolled .brand__logo--compact { height: 54px; }
  .brand--footer .brand__logo { height: 64px; }

  .h1, .hero__title { font-size: 46px; }
  .h2 { font-size: 34px; }
  .lead { font-size: 22px; }
  .body-lg { font-size: 17px; }

  .hero { padding-top: calc(var(--header-h) + 52px); text-align: left; }
  .hero__title { margin-bottom: 28px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: center; margin-top: 28px; gap: 12px; }
  .hero__actions .btn { width: 100%; max-width: 234px; }
  .hero__media { aspect-ratio: 342 / 276; }
  .hero__caption { left: 0; bottom: 18px; }
  .hero__caption::before { width: 6px; height: 6px; }

  .feature-grid, .stream-grid { grid-template-columns: 1fr; }
  .feature { padding: 24px 0 28px; }
  .feature__top { margin-bottom: 18px; }
  .focus-card { padding: 28px; }
  .focus-card__target { height: 236px; }
  .focus-card.is-in .focus-card__core { animation: none; } /* no pulse on phones */
  .ring--3 { width: 196px; height: 196px; }
  .ring--4 { width: 228px; height: 228px; }
  .chips li { font-size: 13px; padding: 9px 15px; }
  .path-card { padding: 28px 24px; }
  .card { padding: 24px 24px 28px; }

  .contact__details { padding-top: 8px; }
  /* Email scales with screen width so it always fits on one line (text ≈ 17.2× its font size wide) */
  .contact__value--email { font-size: min(22px, calc((100vw - 48px) / 18)); white-space: nowrap; }
  .site-footer__top, .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__legal { text-align: left; }
  .site-footer__bottom { flex-direction: column-reverse; }
}
