/* King's College Hospital London – Jeddah · home uplift lab
   Tokens come from the V3 design system (colors_and_type.css); motion values from the magic kit. */

@font-face { font-family: "Tajawal"; font-weight: 300; font-display: swap; src: url("assets/fonts/Tajawal-Light.ttf") format("truetype"); }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("assets/fonts/Tajawal-Regular.ttf") format("truetype"); }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url("assets/fonts/Tajawal-Medium.ttf") format("truetype"); }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("assets/fonts/Tajawal-Bold.ttf") format("truetype"); }
@font-face { font-family: "Tajawal"; font-weight: 800; font-display: swap; src: url("assets/fonts/Tajawal-ExtraBold.ttf") format("truetype"); }

:root {
  --navy: #0B2443;
  --navy-2: #163048;
  --navy-3: #1F4E79;
  --ink: #1E1E1E;
  --ink-2: #444;
  --muted: #5d6573;
  --line: rgba(11, 36, 67, .14);
  --line-2: rgba(11, 36, 67, .08);
  --tint: #E8EBF0;
  --cream: #F5F4F0;
  --paper: #FAFAF8;
  --sky: #8FC1FF;
  --facade-1: #2C6BB0;
  --facade-2: #5F97D2;
  --facade-3: #A9C8EA;
  --facade-4: #DCE8F5;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-surface: cubic-bezier(.7, 0, .3, 1);
  --t-press: 150ms;
  --t-control: 250ms;
  --t-state: 320ms;
  --t-enter: 600ms;
  --t-heading: 800ms;
  --rise: 16px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-card: 20px;
  --r-big: 28px;
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1280px;
  --font: "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--facade-1); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ─────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-3); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.h1 {
  font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em;
  color: var(--navy); margin: 0;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em;
  color: var(--navy); margin: 0;
}
.h2 .soft, .h1 .soft { color: var(--facade-1); font-weight: 300; }
[dir="rtl"] .h1, [dir="rtl"] .h2 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 56ch; margin: 18px 0 0; }

/* Heading words rise from behind an edge (split by word: safe for Arabic) */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js [data-words]:not(.in) .w > span { transform: translateY(105%); }
.js [data-words] .w > span { transition: transform var(--t-heading) var(--ease-out); transition-delay: calc(var(--i) * 45ms); }

/* Content rises 16px, once */
.js [data-rise] { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding-inline: 22px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-control) var(--ease-out), background var(--t-control) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn:hover { border-color: var(--navy); }
.btn .arr {
  position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--tint); color: var(--navy);
  transition: background var(--t-control) var(--ease-out);
}
.btn .arr svg { width: 16px; height: 16px; transition: transform 380ms var(--ease-in-out); }
.btn .arr svg + svg { position: absolute; transform: translateX(-160%); }
[dir="rtl"] .btn .arr svg { scale: -1 1; }
[dir="rtl"] .btn .arr svg + svg { transform: translateX(160%); }
.btn:hover .arr svg:first-child { transform: translateX(160%); }
[dir="rtl"] .btn:hover .arr svg:first-child { transform: translateX(-160%); }
.btn:hover .arr svg + svg { transform: none; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary .arr { background: rgba(255,255,255,.14); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn.ghost-light .arr { background: rgba(255,255,255,.12); color: #fff; }
.btn.ghost-light:hover { border-color: #fff; }
.btn.plain { padding-inline: 20px; }
.btn.small { --h: 42px; font-size: 14px; padding-inline: 16px 6px; }
.btn.small .arr { width: 30px; height: 30px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size var(--t-control) var(--ease-out);
}
[dir="rtl"] .link { background-position: 100% 100%; }
.link:hover { background-size: 100% 1px; }
.link svg { width: 14px; transition: transform var(--t-control) var(--ease-out); }
.link:hover svg { transform: translateX(4px); }
[dir="rtl"] .link svg { scale: -1 1; }
[dir="rtl"] .link:hover svg { transform: translateX(-4px); }

/* ── Navbar ──────────────────────────────────────── */
.util {
  background: var(--navy); color: rgba(255,255,255,.78); font-size: 13px;
}
.util .wrap { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; }
.util a:hover { color: #fff; }
.util .care b { color: #fff; font-weight: 700; margin-inline-start: 6px; direction: ltr; unicode-bidi: isolate; }
.util nav { display: flex; gap: 22px; }
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: transform 420ms var(--ease-out);
}
.nav.hide { transform: translateY(-110%); }
.nav-bar {
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: block; height: 40px; flex: none; }
.logo img { height: 100%; width: auto; }
.links { position: relative; display: flex; gap: 2px; }
.links a {
  position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--navy);
}
.links .pill {
  position: absolute; z-index: 0; top: 0; height: 100%; border-radius: 999px; background: var(--tint);
  opacity: 0; transition: transform 320ms var(--ease-out), width 320ms var(--ease-out), opacity 200ms var(--ease-out);
}
.links:hover .pill { opacity: 1; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; place-items: center; transition: transform var(--t-press) var(--ease-out); }
.burger:active { transform: scale(.92); }
.burger i { display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; transition: transform 320ms var(--ease-out), background 200ms; }
.burger i::before, .burger i::after { content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: var(--navy); transition: transform 320ms var(--ease-out); }
.burger i::before { top: -6px; } .burger i::after { top: 6px; }
.menu-open .burger i { background: transparent; }
.menu-open .burger i::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger i::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--navy); color: #fff;
  padding: 140px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 560ms var(--ease-surface), visibility 0s 560ms;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 600ms var(--ease-surface), visibility 0s; }
.menu a { font-size: 34px; font-weight: 700; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.menu-open .menu a { opacity: 1; transform: none; transition-delay: calc(240ms + var(--i) * 40ms); }
.menu .btn { margin-top: 24px; align-self: flex-start; }

/* ── Hero (shared) ───────────────────────────────── */
.hero { position: relative; overflow: hidden; }
html[data-hero="a"] .hero-b, html[data-hero="b"] .hero-a { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero A — the tile opens into a window onto the hospital */
.hero-a { padding-top: clamp(32px, 5vh, 64px); background: linear-gradient(#fff 0 45%, var(--cream) 45%); }
.hero-a .top { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-a .h1 { max-width: 21ch; font-size: clamp(38px, 5.2vw, 76px); }
.hero-a .actions { justify-content: center; margin-top: 26px; }
.window-stage { position: relative; margin-top: clamp(28px, 4.5vh, 48px); padding-bottom: clamp(48px, 8vh, 96px); }
.window {
  position: relative; height: clamp(340px, calc(100svh - 440px), 640px); border-radius: var(--r-big); overflow: hidden;
  clip-path: inset(var(--it, 0) var(--ir, 0) var(--ib, 0) var(--il, 0) round var(--rr, var(--r-big)));
  background: var(--navy);
}
.window .photo {
  position: absolute; inset: -14px; background: url("assets/hero-building.jpg") center 58% / cover no-repeat;
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(var(--ps, 1));
  transition: transform 1500ms var(--ease-out);
}
.window .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,36,67,.55), rgba(11,36,67,0) 45%); }
.window .caption {
  position: absolute; inset-inline-start: 132px; bottom: 34px; color: #fff; max-width: 34ch;
  font-size: 18px; line-height: 1.45; font-weight: 500;
}
.window .caption small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: rgba(255,255,255,.75); margin-bottom: 6px; }
[dir="rtl"] .window .caption small { letter-spacing: 0; font-size: 13px; }
.tile {
  position: absolute; overflow: hidden; border-radius: 12%; width: var(--ts, 76px); aspect-ratio: 1;
  inset-inline-start: 32px; bottom: 32px; z-index: 3; transform-origin: 0 100%;
}
[dir="rtl"] .tile { transform-origin: 100% 100%; }
.tile img { height: 100%; width: auto; max-width: none; }
.js .hero-a:not(.opened) .window .caption { opacity: 0; transform: translateY(12px); }
.window .caption { transition: opacity 600ms var(--ease-out) 300ms, transform 600ms var(--ease-out) 300ms; }

/* Hero B — the facade fills like the real wall */
.hero-b { background: var(--cream); min-height: min(860px, calc(100svh - 108px)); display: grid; }
.hero-b .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; position: relative; z-index: 2; pointer-events: none; }
.hero-b .copy { padding-block: 72px; pointer-events: auto; }
.hero-b .h1 { max-width: 14ch; font-size: clamp(38px, 4.8vw, 70px); }
.hero-b .actions { margin-top: 34px; }
.hero-b .sub { margin-top: 22px; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.facade { position: absolute; inset-block: 0; inset-inline-end: 0; width: 50%; }
.facade svg { width: 100%; height: 100%; display: block; }
.facade .hx { fill: #FBFBF9; stroke: #E6E9EE; stroke-width: 1; transition: fill 520ms var(--ease-out); }
.facade .hx.lit { fill: var(--c); }
.facade .hx.hot { fill: var(--sky); transition: fill 200ms var(--ease-out); }
.facade::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, var(--cream), rgba(245,244,240,0) 22%); }
[dir="rtl"] .facade::after { background: linear-gradient(to left, var(--cream), rgba(245,244,240,0) 22%); }
.facade .sign { position: absolute; inset-inline-start: 18%; bottom: 9%; width: 84px; aspect-ratio: 1; border-radius: 12%; overflow: hidden; z-index: 2; opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.facade .sign img { height: 100%; width: auto; max-width: none; }
.facade.done .sign { opacity: 1; transform: none; }

/* ── Sections (shared) ───────────────────────────── */
section.block { padding-block: clamp(80px, 11vw, 140px); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.head-row .lead { margin-top: 0; max-width: 42ch; }

/* ── Find care ───────────────────────────────────── */
.find { background: #fff; position: relative; }
.find-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.asker { position: sticky; top: 120px; }
.ask-box {
  margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; background: #fff;
  display: flex; align-items: center; gap: 8px; transition: border-color var(--t-control) var(--ease-out), box-shadow var(--t-control) var(--ease-out);
}
.ask-box:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31,78,121,.08); }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 12px 12px; background: transparent; color: var(--ink); }
.ask-box .go { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out), background var(--t-control); }
.ask-box .go:hover { background: var(--navy-3); }
.ask-box .go:active { transform: scale(.92); }
.ask-box .go svg { width: 18px; }
[dir="rtl"] .ask-box .go svg { scale: -1 1; }
.try { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.try > span { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }
.chip {
  position: relative; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--navy);
  transition: border-color var(--t-control) var(--ease-out), transform var(--t-press) var(--ease-out), background var(--t-control);
}
.chip:hover { border-color: var(--navy); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.asker .note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.asker .actions { margin-top: 28px; }

.centres { border-top: 1px solid var(--line); }
.centres-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.centres-title h3 { margin: 0; font-size: 22px; color: var(--navy); font-weight: 700; }
.centres-title h3 span { color: var(--muted); font-weight: 400; }
.crow { border-bottom: 1px solid var(--line); position: relative; }
.crow > button {
  width: 100%; background: none; border: 0; padding: 18px 4px; display: grid; grid-template-columns: 44px 1fr auto 24px; align-items: center; gap: 12px; text-align: start;
  position: relative;
}
.crow > button::before {
  content: ""; position: absolute; inset: 0; background: var(--tint); z-index: -1; border-radius: 12px;
  clip-path: inset(0 100% 0 0 round 12px); transition: clip-path 420ms var(--ease-out);
}
[dir="rtl"] .crow > button::before { clip-path: inset(0 0 0 100% round 12px); }
.crow > button:hover::before, .crow.open > button::before, .crow.hit > button::before { clip-path: inset(0 0 0 0 round 12px); }
.crow .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-inline-start: 10px; }
.crow .nm { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.crow .ct { font-size: 13px; color: var(--muted); white-space: nowrap; }
.crow .pm { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform 320ms var(--ease-out), background 250ms; }
.crow .pm::before, .crow .pm::after { content: ""; position: absolute; inset: 50% 6px auto; height: 1.5px; margin-top: -.75px; background: var(--navy); }
.crow .pm::after { transform: rotate(90deg); transition: transform 320ms var(--ease-out); }
.crow.open .pm::after { transform: rotate(0deg); }
.crow .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.crow.open .body { grid-template-rows: 1fr; }
.crow .body > div { overflow: hidden; }
.crow ul { list-style: none; margin: 0; padding: 4px 4px 22px 60px; display: flex; flex-wrap: wrap; gap: 8px; }
[dir="rtl"] .crow ul { padding: 4px 60px 22px 4px; }
.crow li a {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--navy);
  transition: border-color var(--t-control), background var(--t-control), color var(--t-control);
}
.crow li a:hover { border-color: var(--navy); }
.crow li a.match { background: var(--navy); color: #fff; border-color: var(--navy); }
.route { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: visible; }
.route path { fill: none; stroke: var(--facade-1); stroke-width: 1.5; stroke-linecap: round; }
.route circle { fill: var(--facade-1); }
.family-cta { margin-top: 26px; padding: 18px 22px; border-radius: var(--r-md); background: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; }

/* ── Heritage ────────────────────────────────────── */
.heritage { position: relative; background: var(--navy); color: #fff; }
.heritage .pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.heritage .eyebrow { color: var(--sky); }
.heritage .h2 { color: #fff; max-width: 16ch; }
.heritage .h2 .soft { color: var(--sky); }
.her-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 5vh, 56px); }
.year { font-size: clamp(96px, 17vw, 236px); line-height: 1; font-weight: 300; letter-spacing: -.05em; display: flex; direction: ltr; color: #fff; font-variant-numeric: tabular-nums; }
[dir="rtl"] .year { justify-content: flex-end; letter-spacing: 0; }
.year .dg { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.year .dg > span { display: block; transition: transform 520ms var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.year .dg > span > span { display: block; height: 1em; line-height: 1; }
.event { min-height: 7.5em; position: relative; }
.event p { position: absolute; inset: 0 0 auto; margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.35; font-weight: 400; color: rgba(255,255,255,.92); max-width: 26ch; }
.event p.out { opacity: 0; transform: translateY(-8px); transition: opacity 220ms var(--ease-in), transform 220ms var(--ease-in); }
.event p.enter { opacity: 0; transform: translateY(16px); }
.event p.now { opacity: 1; transform: none; transition: opacity 480ms var(--ease-out) 120ms, transform 480ms var(--ease-out) 120ms; }
.event .place { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); font-weight: 800; margin-bottom: 12px; }
[dir="rtl"] .event .place { letter-spacing: 0; font-size: 14px; }
.track { position: relative; margin-top: clamp(32px, 6vh, 64px); height: 64px; }
.track .rail { position: absolute; inset-inline: 0; top: 20px; height: 1px; background: rgba(255,255,255,.18); }
.track .fill { position: absolute; inset-inline-start: 0; top: 20px; height: 1px; width: 100%; background: var(--sky); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .track .fill { transform-origin: 100% 50%; }
.track .node { position: absolute; top: 14px; width: 13px; height: 13px; margin-inline-start: -6px; border-radius: 50%; background: var(--navy); border: 1px solid rgba(255,255,255,.4); transition: background 300ms var(--ease-out), border-color 300ms, transform 300ms var(--ease-out); padding: 0; }
.track .node.past { background: var(--sky); border-color: var(--sky); }
.track .node.cur { transform: scale(1.35); }
.track .node span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; transition: color 300ms; }
.track .node.cur span { color: #fff; font-weight: 700; }
.track .node.last { width: 30px; height: 30px; top: 6px; margin-inline-start: -15px; border-radius: 12%; overflow: hidden; border: 0; background: transparent; }
.track .node.last img { height: 100%; width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .35; transition: opacity 400ms; }
.track .node.last.cur img { opacity: 1; filter: none; }
.track .node.last.cur { box-shadow: 0 0 0 1.5px var(--sky); }
.track .node.last.cur { transform: scale(1.5); }
.track .node.last span { top: 38px; }
.her-ends { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 18px; font-weight: 700; }
[dir="rtl"] .her-ends { letter-spacing: 0; font-size: 13px; }

/* ── Leadership + numbers ────────────────────────── */
.lead-sec { background: var(--cream); }
.six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.six article { padding: 28px 28px 30px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); min-height: 230px; display: flex; flex-direction: column; }
.six .rank { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--facade-1); text-transform: uppercase; }
[dir="rtl"] .six .rank { letter-spacing: 0; font-size: 13px; }
.six h3 { margin: 10px 0 0; font-size: 22px; line-height: 1.2; color: var(--navy); }
.six p { margin: auto 0 0; padding-top: 22px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.six .bar { height: 3px; margin-top: 18px; background: var(--line-2); position: relative; overflow: hidden; border-radius: 2px; }
.six .bar i { position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
[dir="rtl"] .six .bar i { transform-origin: 100% 50%; }
.six.in .bar i { transform: scaleX(var(--v)); }

.numbers { margin-top: clamp(64px, 8vw, 110px); }
.numbers h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--navy); margin: 0 0 26px; letter-spacing: -.01em; }
.numbers h3 span { font-weight: 300; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 26px 24px 8px 0; border-inline-end: 1px solid var(--line); }
[dir="rtl"] .stat { padding: 26px 0 8px 24px; }
.stat:last-child { border: 0; }
.stat + .stat { padding-inline-start: 24px; }
.odo { display: flex; align-items: flex-start; font-size: clamp(48px, 6vw, 84px); line-height: 1; font-weight: 300; color: var(--navy); letter-spacing: -.04em; direction: ltr; font-variant-numeric: tabular-nums; }
[dir="rtl"] .odo { justify-content: flex-end; letter-spacing: 0; }
.odo .dg { display: inline-block; height: 1em; overflow: hidden; }
.odo .dg > span { display: block; transform: translateY(0); }
.odo .dg > span > span { display: block; height: 1em; }
.odo .plus { font-size: .4em; color: var(--facade-2); margin-inline-start: 4px; margin-top: .2em; }
.stat .lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--navy); margin-top: 14px; }
[dir="rtl"] .stat .lbl { letter-spacing: 0; font-size: 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 16px; max-width: 220px; }
.ticks i { width: 3px; height: 10px; background: var(--line); border-radius: 1px; transition: background 200ms; }
.ticks i.on { background: var(--facade-1); }
.stat .key { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ── Consultants ─────────────────────────────────── */
.docs-sec { background: #fff; }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.chips .chip { z-index: 1; background: transparent; }
.chips .chip[aria-pressed="true"] { background: transparent; color: #fff; border-color: transparent; }
.chips .slide { position: absolute; z-index: 0; border-radius: 999px; background: var(--navy); transition: transform 380ms var(--ease-out), width 380ms var(--ease-out), height 380ms var(--ease-out); top: 0; left: 0; }
.docs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.feat { position: relative; border-radius: var(--r-card); background: var(--tint); overflow: hidden; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.feat .ph { position: absolute; inset: 0 0 0 auto; width: 70%; mix-blend-mode: multiply; }
[dir="rtl"] .feat .ph { inset: 0 auto 0 0; }
.feat .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.feat .txt { position: relative; padding: 34px; background: linear-gradient(to top, var(--tint) 55%, rgba(232,235,240,0)); padding-top: 120px; }
.feat .badge { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--facade-1); }
[dir="rtl"] .feat .badge { letter-spacing: 0; font-size: 13px; }
.feat h3 { margin: 10px 0 6px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; color: var(--navy); letter-spacing: -.02em; }
.feat .role { font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.feat blockquote { margin: 18px 0 0; font-size: 19px; line-height: 1.45; color: var(--navy); max-width: 40ch; font-weight: 500; }
.feat .txt > * { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.feat.swap .txt > * { opacity: 0; transform: translateY(8px); }
.feat .actions { margin-top: 24px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dcard {
  position: relative; border-radius: var(--r-card); background: var(--tint); overflow: hidden; min-height: 270px; border: 0; padding: 0; text-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; transition: transform var(--t-press) var(--ease-out), opacity 300ms;
}
.dcard:active { transform: scale(.985); }
.dcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.dcard:hover img { transform: scale(1.04); }
.dcard .t { position: relative; padding: 70px 18px 16px; background: linear-gradient(to top, rgba(11,36,67,.92), rgba(11,36,67,0)); color: #fff; }
.dcard b { display: block; font-size: 17px; line-height: 1.2; }
.dcard small { display: block; font-size: 13px; opacity: .8; margin-top: 4px; line-height: 1.35; }
.dcard .sel { position: absolute; top: 14px; inset-inline-end: 14px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform 300ms var(--ease-out), opacity 200ms; }
.dcard .sel svg { width: 14px; color: var(--navy); }
.dcard[aria-current="true"] .sel { transform: none; opacity: 1; }
.dcard[aria-current="true"] { outline: 2px solid var(--navy); outline-offset: -2px; }
.dcard.dim { opacity: .35; }
.fly { position: fixed; z-index: 60; pointer-events: none; border-radius: var(--r-card); overflow: hidden; background: var(--tint); }
.fly img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; mix-blend-mode: multiply; }

/* ── Who we are ──────────────────────────────────── */
.who { background: var(--navy); color: #fff; }
.who .eyebrow { color: var(--sky); }
.who .h2 { color: #fff; max-width: 22ch; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.16); }
.vm div { padding: 30px 32px 30px 0; }
.vm div + div { border-inline-start: 1px solid rgba(255,255,255,.16); padding-inline: 32px 0; }
[dir="rtl"] .vm div { padding: 30px 0 30px 32px; }
[dir="rtl"] .vm div + div { padding-inline: 32px 0; }
.vm h3 { margin: 0 0 10px; font-size: 24px; }
.vm h3 small { display: block; font-size: 12px; color: var(--sky); font-weight: 700; margin-bottom: 8px; }
.vm p { margin: 0; color: rgba(255,255,255,.78); font-size: 16px; max-width: 48ch; }
.why { margin-top: 64px; }
.why h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin: 0 0 18px; }
[dir="rtl"] .why h3 { letter-spacing: 0; font-size: 15px; }
.prow { border-top: 1px solid rgba(255,255,255,.16); }
.prow:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.prow button { width: 100%; background: none; border: 0; color: #fff; padding: 22px 0; display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; text-align: start; font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.prow button .n { font-size: 13px; color: var(--sky); font-weight: 500; }
.prow button .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); position: relative; transition: background 250ms, border-color 250ms; }
.prow button:hover .pm { border-color: #fff; }
.prow .pm::before, .prow .pm::after { content: ""; position: absolute; inset: 50% 7px auto; height: 1.5px; margin-top: -.75px; background: #fff; }
.prow .pm::after { transform: rotate(90deg); transition: transform 320ms var(--ease-out); }
.prow.open .pm::after { transform: rotate(0); }
.prow .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.prow.open .body { grid-template-rows: 1fr; }
.prow .body > div { overflow: hidden; }
.prow .body p { margin: 0; padding: 0 0 26px 56px; max-width: 70ch; color: rgba(255,255,255,.78); }
[dir="rtl"] .prow .body p { padding: 0 56px 26px 0; }

/* ── Patient journey ─────────────────────────────── */
.journey { background: #fff; }
.j-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { margin-top: 40px; border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step button { width: 100%; text-align: start; background: none; border: 0; padding: 22px 0 20px; display: grid; grid-template-columns: 52px 1fr; gap: 6px 0; position: relative; }
.step .n { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.step .tt { font-size: 24px; font-weight: 700; color: var(--muted); transition: color 300ms var(--ease-out); }
.step .ds { grid-column: 2; font-size: 15px; color: var(--ink-2); display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.step .ds > span { overflow: hidden; }
.step.on .tt, .step button:hover .tt { color: var(--navy); }
.step.on .n { color: var(--navy); }
.step.on .ds { grid-template-rows: 1fr; }
.step .prog { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .step .prog { transform-origin: 100% 50%; }
.step.on .prog { animation: prog var(--dur, 4600ms) linear forwards; }
.journey.hold .step.on .prog { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }

.visit { position: relative; background: var(--cream); border-radius: var(--r-big); padding: clamp(28px, 4vw, 48px); min-height: 520px; display: flex; align-items: center; justify-content: center; }
.vcard { width: min(420px, 100%); background: #fff; border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; }
.vcard .vh { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.vcard .vh .tile-s { width: 40px; height: 40px; border-radius: 12%; overflow: hidden; flex: none; }
.vcard .vh .tile-s img { height: 100%; width: auto; max-width: none; }
.vcard .vh b { display: block; color: var(--navy); font-size: 16px; line-height: 1.2; }
.vcard .vh small { color: var(--muted); font-size: 13px; }
.vrow { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 520ms var(--ease-out); }
.vrow > div { overflow: hidden; }
.vrow.show { grid-template-rows: 1fr; }
.vrow .in-row { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; gap: 14px; align-items: flex-start; opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out) 160ms, transform 400ms var(--ease-out) 160ms; }
.vrow.show .in-row { opacity: 1; transform: none; }
.vrow:last-child .in-row { border-bottom: 0; }
.vrow .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--facade-1); }
[dir="rtl"] .vrow .lbl { letter-spacing: 0; font-size: 13px; }
.vrow .val { font-size: 16px; color: var(--navy); font-weight: 700; margin-top: 2px; }
.vrow .sm { font-size: 14px; color: var(--ink-2); }
.tick { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.tick path { fill: none; stroke: var(--facade-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 360ms var(--ease-out); transition-delay: var(--d, 300ms); }
.tick circle { fill: none; stroke: var(--line); stroke-width: 1.2; }
.vrow.show .tick path { stroke-dashoffset: 0; }
.list3 { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.list3 li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--navy); }
.list3 .tick { width: 18px; height: 18px; margin: 0; }

/* ── Closing card ────────────────────────────────── */
.closing { padding-block: 0 clamp(80px, 10vw, 120px); background: #fff; }
.ccard { position: relative; border-radius: 32px; background: var(--navy); color: #fff; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 520px; }
.ccard .copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.ccard .eyebrow { color: var(--sky); }
.ccard .h2 { color: #fff; }
.ccard .h2 .soft { color: var(--sky); }
.ccard p { color: rgba(255,255,255,.78); margin: 18px 0 0; max-width: 42ch; }
.ccard .actions { margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 14px; background: #fff; color: var(--navy); font-weight: 700; transition: transform var(--t-press) var(--ease-out), background var(--t-control); }
.store:hover { background: var(--tint); }
.store:active { transform: scale(.97); }
.store svg { width: 20px; height: 20px; }
.care-line { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.75); }
.copyb { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; border-radius: 999px; height: 40px; padding: 0 14px; font-weight: 700; transition: border-color 250ms, transform var(--t-press) var(--ease-out); direction: ltr; }
.copyb:hover { border-color: #fff; }
.copyb:active { transform: scale(.97); }
.copyb .ic { position: relative; width: 16px; height: 16px; }
.copyb .ic svg { position: absolute; inset: 0; width: 16px; height: 16px; transition: opacity 200ms, transform 300ms var(--ease-out); }
.copyb .ic svg + svg { opacity: 0; transform: scale(.6); }
.copyb.done .ic svg:first-child { opacity: 0; transform: scale(.6); }
.copyb.done .ic svg + svg { opacity: 1; transform: none; }
.dots { position: relative; min-height: 360px; cursor: crosshair; }
.dots canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dots .hint { position: absolute; bottom: 22px; inset-inline-end: 26px; font-size: 12px; color: rgba(255,255,255,.45); }
.dots .static { position: absolute; inset: 0; display: none; place-items: center; }
.dots .static div { width: 200px; aspect-ratio: 1; border-radius: 12%; overflow: hidden; }
.dots .static img { height: 100%; width: auto; max-width: none; filter: brightness(0) invert(1); }
.no-canvas .dots .static { display: grid; }

/* ── Footer ──────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,.72); padding-block: 72px 36px; font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer h4 { color: #fff; margin: 0 0 16px; font-size: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a:hover { color: #fff; }
footer .logo-w { width: 230px; filter: brightness(0) invert(1); }
footer .legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
footer .ltr { direction: ltr; unicode-bidi: isolate; }

/* ── Lab bar ─────────────────────────────────────── */
.lab {
  position: fixed; z-index: 80; bottom: 16px; inset-inline-start: 16px; display: flex; gap: 6px; align-items: center;
  background: rgba(17, 20, 26, .92); color: #fff; border-radius: 999px; padding: 6px; font-size: 13px; backdrop-filter: blur(10px);
  direction: ltr;
}
.lab span { padding: 0 8px 0 10px; opacity: .6; }
.lab button, .lab a { border: 0; background: transparent; color: #fff; border-radius: 999px; padding: 7px 12px; font-weight: 700; transition: background 200ms; }
.lab button[aria-pressed="true"] { background: #fff; color: #11141a; }
.lab .sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); padding: 0; }

/* ── Phones ──────────────────────────────────────── */
@media (max-width: 1020px) {
  .links, .util nav, .nav-bar .btn { display: none; }
  .burger { display: grid; }
  .find-grid, .j-grid, .docs, .ccard { grid-template-columns: 1fr; }
  .asker { position: static; }
  .six { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border: 0; }
  .stat:nth-child(3) { padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .her-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-b .wrap { grid-template-columns: 1fr; }
  .hero-b .facade { position: relative; width: 100%; height: 300px; order: -1; }
  .hero-b { display: flex; flex-direction: column; min-height: 0; }
  .hero-b .wrap { pointer-events: auto; }
  .hero-b .copy { padding-block: 32px 64px; }
  .facade::after { background: linear-gradient(to top, var(--cream), rgba(245,244,240,0) 30%) !important; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .dots { min-height: 320px; }
  .vm { grid-template-columns: 1fr; }
  .vm div + div { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.16); padding-inline: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .util .wrap { justify-content: center; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .six { grid-template-columns: 1fr; }
  .six article { min-height: 0; }
  .grid4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dcard { min-height: 220px; }
  .feat { min-height: 480px; }
  .feat .ph { width: 100%; height: 60%; }
  .window { height: 420px; }
  .window .caption { inset-inline: 20px; bottom: 112px; font-size: 16px; }
  .tile { inset-inline-start: 20px; bottom: 20px; }
  .crow .nm { font-size: 18px; }
  .crow > button { grid-template-columns: 34px 1fr auto 24px; }
  .crow ul { padding-inline-start: 46px; }
  .family-cta { flex-direction: column; align-items: flex-start; }
  .actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .event { min-height: 9em; }
  .track .node span { display: none; }
  .track .node.cur span, .track .node.last span { display: block; }
  .fgrid { grid-template-columns: 1fr; }
  .lab span { display: none; }
}

/* ── Reduced motion: keep the meaning, drop the movement ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 200ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js [data-rise] { transform: none; }
  .js [data-words]:not(.in) .w > span { transform: none; }
  .window .photo { transform: none !important; }
}

/* The logo file is 311×58 with the tile first: crop it from the left in both directions. */
.tile, .facade .sign, .vcard .tile-s, .track .node.last, .dots .static div { direction: ltr; }
