/* ==========================================================================
   Edith Pharmaceuticals — main stylesheet (V2, corporate)
   Navy and white only: shades of the brand navy on white and pale blue-grey sections,
   sans-serif type, restrained motion.
   ========================================================================== */

:root {
  --color-navy: #091B36;
  --color-navy-2: #0F2547;
  --color-navy-3: #16305A;
  --color-accent: #2C5C96;       /* lighter navy-blue: lines and small details on white */
  --color-accent-light: #9CB8DC; /* pale navy-blue: highlights on navy backgrounds */
  --color-tint: #E7EEF7;         /* very pale navy: icon circles, pills, callouts */
  --color-accent-text: #2C5C96;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F3F5F8;
  --color-border: #E1E6ED;
  --color-ink: #243247;
  --color-slate: #5B6A80;
  --color-muted-on-navy: #B4C0D2;

  --font-head: "Plus Jakarta Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --content-max: 1240px;
  --page-gutter: clamp(16px, 4vw, 48px);
  --section-pad: clamp(56px, 7vw, 104px);
  --radius: 12px;
  --radius-sm: 6px;
  --header-h: 80px;
  --shadow: 0 1px 2px rgba(9, 27, 54, .04), 0 12px 32px -16px rgba(9, 27, 54, .18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--color-navy); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: 200;
  background: var(--color-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transform: translateY(-200%); transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

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

/* ---------- Type ---------- */
.h1 { font-size: clamp(32px, 4.2vw, 52px); }
.h2 { font-size: clamp(26px, 2.8vw, 38px); }
.h3 { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.35; }
.lead { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.7; color: var(--color-slate); }
.muted { color: var(--color-slate); }
.accent { color: var(--color-accent-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--color-accent); }
.prose { max-width: 68ch; }
.note { font-size: 14px; color: var(--color-slate); font-style: italic; }

/* Hover effects only apply on devices with a real pointer (mouse, trackpad), inside @media (hover: hover).
   On phones a hover style makes the first tap only "hover" (the button plays its animation and nothing else
   happens), so a second tap was needed. Keyboard focus styles stay outside, so they work everywhere. */
/* ---------- Buttons & links ----------
   Capsule-shaped. On hover a fill sweeps in from the left like a capsule filling (--fill, --fill-text),
   the arrow slides through, and the button sinks slightly when pressed. */
.btn {
  --fill: var(--color-accent); --fill-text: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--color-navy);
  background: var(--color-navy); color: #fff; font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: color .35s ease, border-color .35s ease, transform .15s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease-out);
}
.btn:focus-visible::before { transform: scaleX(1); }
@media (hover: hover) { .btn:hover::before { transform: scaleX(1); } }
.btn:focus-visible { color: var(--fill-text); border-color: var(--fill); }
@media (hover: hover) { .btn:hover { color: var(--fill-text); border-color: var(--fill); } }
.btn:active { transform: scale(.97); }
.btn--light { --fill: var(--color-accent-light); --fill-text: var(--color-navy); background: #fff; border-color: #fff; color: var(--color-navy); }
.btn--ghost { --fill: var(--color-navy); background: transparent; color: var(--color-navy); }
.btn--ghost-light { --fill: #fff; --fill-text: var(--color-navy); background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
/* see-through button for the hero video: the fill stays translucent so the video shows through */
.btn--glass { --fill: rgba(255, 255, 255, .18); --fill-text: #fff; background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn--glass:focus-visible { border-color: #fff; }
@media (hover: hover) { .btn--glass:hover { border-color: #fff; } }
/* a streak of light sweeps across the glass button on hover */
.btn--glass::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
}
@media (hover: hover) { .btn--glass:hover::after { left: 130%; transition: left .9s ease; } }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn[disabled]::before { transform: scaleX(0); }
.btn__arrow { display: inline-block; }
.btn:focus-visible .btn__arrow { animation: arrow-through .5s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn__arrow { animation: arrow-through .5s var(--ease-out); } }
.btn__arrow--down { animation: arrow-bob 3s ease-in-out infinite; }
.btn:focus-visible .btn__arrow--down { animation: arrow-through-down .5s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn__arrow--down { animation: arrow-through-down .5s var(--ease-out); } }
@keyframes arrow-through { 0% { transform: none; opacity: 1; } 45% { transform: translateX(14px); opacity: 0; } 46% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arrow-through-down { 0% { transform: none; opacity: 1; } 45% { transform: translateY(12px); opacity: 0; } 46% { transform: translateY(-12px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arrow-bob { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(5px); } 90% { transform: translateY(-1px); } }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--color-navy); text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 0 2px no-repeat;
  transition: background-size .4s var(--ease-out), color .2s ease;
}
/* on hover the underline draws in from left to right: over the link itself, or anywhere over a card that is a link */
.link-arrow:focus-visible, .card--link:focus-visible .link-arrow { color: var(--color-accent-text); background-size: 100% 2px; }
@media (hover: hover) { .link-arrow:hover, .card--link:hover .link-arrow { color: var(--color-accent-text); background-size: 100% 2px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--color-border); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(9, 27, 54, .25); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 54px; width: auto; }
.primary-nav { margin-left: auto; height: 100%; }
.primary-nav > ul { display: flex; height: 100%; gap: 4px; }
.primary-nav > ul > li { position: relative; display: flex; align-items: center; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px;
  font-size: 15px; font-weight: 500; color: var(--color-navy); text-decoration: none; position: relative;
}
.primary-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--color-accent); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.primary-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) { .primary-nav > ul > li:hover > a::after { transform: scaleX(1); } }
.primary-nav .caret { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .2s ease; }
.has-dropdown:focus-within .caret { transform: rotate(180deg); }
@media (hover: hover) { .has-dropdown:hover .caret { transform: rotate(180deg); } }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px 0;
  background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; } }
.dropdown a { display: block; padding: 10px 22px; font-size: 14.5px; color: var(--color-ink); text-decoration: none; }
.dropdown a:focus-visible { background: var(--color-bg-alt); color: var(--color-navy); }
@media (hover: hover) { .dropdown a:hover { background: var(--color-bg-alt); color: var(--color-navy); } }
.header-cta { flex: none; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--color-navy); transition: transform .25s ease, opacity .2s ease; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__inner { padding: 12px var(--page-gutter) 40px; }
.mobile-menu__list > li { border-bottom: 1px solid var(--color-border); }
.mobile-menu__list a { display: block; padding: 16px 0; font: 600 17px/1.3 var(--font-head); color: var(--color-navy); text-decoration: none; }
.mobile-menu__list a[aria-current="page"] { color: var(--color-accent-text); }
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mobile-menu__row > a { flex: 1; }
/* round button with a triangle: shows and hides the About Us sections */
.mobile-menu__more { flex: none; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--color-navy); }
.mobile-menu__more svg { width: 30px; height: 30px; transition: transform .25s var(--ease-out); }
.mobile-menu__more circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.mobile-menu__more path { fill: currentColor; }
.mobile-menu__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu__more:focus-visible { outline-offset: 2px; }
.mobile-menu__sub { padding: 0 0 12px 16px; }
.mobile-menu__sub a { padding: 8px 0; font: 400 15px/1.4 var(--font-body); color: var(--color-slate); }
.mobile-menu__foot { margin-top: 28px; display: grid; gap: 8px; font-size: 15px; }
.mobile-menu__foot a { color: var(--color-navy); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--color-navy); color: var(--color-muted-on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--color-accent-light); }
.section--navy .eyebrow::before, .hero .eyebrow::before { background: var(--color-accent-light); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .h2 + p { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Homepage intro ----------
   About 2 seconds: the capsule outline draws (0-0.6s), its halves part (0.6-1s) as the logo opens out
   between them (0.75-1.15s), a short hold, then the navy screen splits down the middle and each half
   slides off its side carrying its capsule half while the logo fades (1.45-2.05s). */
.intro { display: none; }
.intro-on .intro {
  --gap: min(25vw, 150px);
  position: fixed; inset: 0; z-index: 300; display: block; cursor: pointer;
  animation: intro-done .01s linear 2.05s forwards;
}
/* each door is half the screen (plus 1px so no seam shows down the middle) */
.intro__door { position: absolute; top: 0; bottom: 0; width: calc(50% + 1px); background: var(--color-navy); animation: .6s cubic-bezier(.7, 0, .3, 1) 1.45s forwards; }
.intro__door--l { left: 0; animation-name: intro-door-l; }
.intro__door--r { right: 0; animation-name: intro-door-r; }
.intro__half { position: absolute; top: 50%; width: 82px; height: 60px; margin-top: -30px; overflow: visible; }
.intro__half--l { right: 1px; animation: intro-part-l .45s var(--ease-out) .6s forwards; }
.intro__half--r { left: 1px; animation: intro-part-r .45s var(--ease-out) .6s forwards; }
.intro__half path { fill: none; stroke: var(--color-accent-light); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .6s ease-in-out forwards; }
.intro__logo {
  position: absolute; left: 50%; top: 50%; width: min(44vw, 230px); height: auto; transform: translate(-50%, -50%) scale(.92);
  clip-path: inset(0 50% 0 50%); opacity: 0;
  animation: intro-logo .4s var(--ease-out) .75s forwards, intro-logo-out .3s ease 1.45s forwards;
}
.intro.is-skipped { animation: intro-fade .3s ease forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-part-l { to { transform: translateX(calc(-1 * var(--gap))) rotate(-6deg); } }
@keyframes intro-part-r { to { transform: translateX(var(--gap)) rotate(6deg); } }
@keyframes intro-logo { to { clip-path: inset(0 0 0 0); opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes intro-logo-out { from { clip-path: inset(0 0 0 0); opacity: 1; transform: translate(-50%, -50%) scale(1); } to { clip-path: inset(0 0 0 0); opacity: 0; transform: translate(-50%, -50%) scale(1.04); } }
@keyframes intro-door-l { to { transform: translateX(-100%); } }
@keyframes intro-door-r { to { transform: translateX(100%); } }
@keyframes intro-done { to { visibility: hidden; } }
@keyframes intro-fade { to { opacity: 0; visibility: hidden; } }

/* ---------- Home hero ---------- */

/* fills the first screen below the menu (the menu has a 1px bottom border). Sized to the screen's tallest
   height (browser toolbars tucked away): some phone browsers, e.g. the Google app, report a smaller "visible"
   height than they show, which left a white strip under the video. With this, the bottom few points can sit
   behind a toolbar instead, and no gap can appear. Older browsers use 100vh. */
.hero { position: relative; min-height: calc(100vh - var(--header-h) - 1px); min-height: calc(100lvh - var(--header-h) - 1px); display: flex; align-items: center; color: #fff; background: var(--color-navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 27, 54, .94) 0%, rgba(9, 27, 54, .82) 42%, rgba(9, 27, 54, .25) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: 80px; }
.hero__copy { max-width: 620px; }
.hero__title { font-size: clamp(38px, 5.4vw, 66px); color: #fff; line-height: 1.08; margin-bottom: 22px; }
.hero__title span { color: var(--color-accent-light); }
.hero__body { font-size: clamp(17px, 1.3vw, 20px); color: #DCE3EE; margin-bottom: 36px; text-wrap: pretty; }

/* ---------- Inner page banner ---------- */
.page-banner { position: relative; background: var(--color-navy); color: var(--color-muted-on-navy); padding-block: clamp(48px, 6vw, 88px); overflow: hidden; }
.page-banner::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: url("/assets/img/logo-emblem-white.png") center / contain no-repeat; opacity: .05; pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .h1 { color: #fff; margin-bottom: 14px; }
.page-banner p { max-width: 720px; font-size: clamp(16px, 1.2vw, 18px); text-wrap: pretty; }
/* Banner with a photo: the photo fills the banner, a navy tint keeps the title readable */
.page-banner--photo { padding-block: clamp(64px, 9vw, 136px); }
.page-banner--photo::after { display: none; }
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.page-banner--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9, 27, 54, .95) 0%, rgba(9, 27, 54, .85) 38%, rgba(9, 27, 54, .35) 75%, rgba(9, 27, 54, .15) 100%); }
.page-banner--photo .container { z-index: 2; }
.page-banner--photo p { color: #DCE3EE; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13.5px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--color-accent-light); text-decoration: none; }
@media (hover: hover) { .breadcrumb a:hover { text-decoration: underline; } }

/* ---------- In-page tabs (About) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--color-border); }
.subnav ol { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav ol::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 16px 14px; font-size: 14.5px; font-weight: 500; color: var(--color-slate); text-decoration: none; border-bottom: 3px solid transparent; }
@media (hover: hover) { .subnav a:hover { color: var(--color-navy); } }
.subnav a.is-active { color: var(--color-navy); border-bottom-color: var(--color-accent); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(24px, 2.4vw, 32px); transition: box-shadow .25s ease, transform .25s ease; }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow); transform: translateY(-3px); } }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--color-slate); font-size: 15.5px; }
/* Card with a photo filling it: navy tint rises from the bottom; on hover the photo zooms in slightly and the tint lifts */
.card--photo {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: flex-end; border: 0; color: #fff; background: var(--color-navy);
}
.card--photo .card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .5s ease;
  background: linear-gradient(180deg, rgba(9, 27, 54, .25) 0%, rgba(9, 27, 54, .55) 42%, rgba(9, 27, 54, .94) 100%);
}
@media (hover: hover) { .card--photo:hover .card__bg { transform: scale(1.06); } }
@media (hover: hover) { .card--photo:hover::before { opacity: .85; } }
.card--photo .icon {
  position: absolute; top: clamp(20px, 2.2vw, 28px); left: clamp(20px, 2.2vw, 28px); margin: 0;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.card--photo .icon svg, .card--photo .icon svg .g { stroke: #fff; }
.card--photo .h3 { color: #fff; }
.card--photo p { color: #DCE3EE; margin: 0; }
.icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-tint); margin-bottom: 20px; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--color-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon svg .g { stroke: var(--color-accent-text); }
/* Photos inside the page */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--color-tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.split--photo-end { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

/* Products status panel with a photo instead of the emblem */
.status-panel.status-panel--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Navy call-to-action band with a faint photo behind it */
.cta-band--photo .cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
/* a photo that is mostly black (Earth from space) can show more strongly without hurting the text */
.cta-band--photo .cta-band__bg--strong { opacity: .6; object-position: right center; }

/* Card with a photo on top */
.card--media { padding: 0; overflow: hidden; }
.card--media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.2vw, 28px); }
.card--media .pill { align-self: flex-start; }

/* Section with a photo behind it, lightly tinted so the cards stay readable */
.section--photo { position: relative; overflow: hidden; }
.section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section--photo::before { content: ""; position: absolute; inset: 0; background: rgba(243, 245, 248, .55); }
.section--photo > .container { position: relative; }


.card--link { display: flex; flex-direction: column; text-decoration: none; }
.card--link .link-arrow { margin-top: auto; align-self: flex-start; }
.card--link p { margin-bottom: 24px; }

/* At a glance */
.glance { background: var(--color-navy); color: var(--color-muted-on-navy); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); }
.glance h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.glance dl { margin: 0; }
.glance dl > div { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.glance dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-light); margin-bottom: 4px; }
.glance dd { margin: 0; color: #fff; font: 600 17px/1.4 var(--font-head); }

/* "At a glance" as medicine capsules: blue half holds the label, white half the fact */
.glance.glance--capsules { margin-top: clamp(24px, 3vw, 40px); padding: 0; background: none; border-radius: 0; }
.glance--capsules h3 { margin-bottom: clamp(24px, 3vw, 36px); text-align: center; color: var(--color-accent); font-size: clamp(20px, 1.8vw, 26px); }
.glance--capsules dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.glance--capsules dl > div {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  min-height: 84px; padding: 0; border: 0; border-radius: 999px; overflow: hidden;
  box-shadow: 0 14px 28px -16px rgba(9, 27, 54, .45), 0 0 0 1px rgba(9, 27, 54, .10);
}
.glance--capsules dl > div:last-child { padding: 0; }
.glance--capsules dt {
  display: flex; align-items: center; justify-content: center; text-align: center; margin: 0; padding: 14px 14px 14px 26px;
  background: linear-gradient(180deg, #4A7BC0 0%, #2C5C96 55%, #234B7E 100%); color: #fff; font-size: 12px; font-weight: 600;
}
.glance--capsules dd {
  display: flex; align-items: center; padding: 14px 30px 14px 20px; border-left: 2px solid rgba(9, 27, 54, .18);
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F8 60%, #DCE4EF 100%); color: var(--color-navy); font-size: 16px;
}
/* glossy highlight along the top, like light on a capsule shell */
.glance--capsules dl > div::after {
  content: ""; position: absolute; left: 7%; right: 7%; top: 7px; height: 32%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
}

/* Vision & mission */
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vm__item { position: relative; background: #fff; border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); border-top: 4px solid var(--color-navy); box-shadow: var(--shadow); }
.vm__item .h3 { font-size: clamp(20px, 1.6vw, 24px); margin-bottom: 14px; }
.vm__item p { color: var(--color-slate); }
.vm__item ul { display: grid; gap: 10px; }
.vm__item li { position: relative; padding-left: 26px; color: var(--color-slate); }
.vm__item li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--color-accent); }

/* Globe band */
.globe-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.globe { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-left: auto; touch-action: pan-y; cursor: grab; }
.globe:active { cursor: grabbing; }
.globe canvas { width: 100%; height: 100%; }
.globe__legend { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); display: inline-flex; gap: 10px; align-items: center; margin: 0; font-size: 13px; white-space: nowrap; color: var(--color-muted-on-navy); }
.globe__legend i { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(156, 184, 220, .3); }

/* Text blocks with a heading column (About) */
.block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); padding-block: 32px; border-top: 1px solid var(--color-border); }
.block:first-of-type { border-top: 0; padding-top: 0; }
.block .h3 { color: var(--color-navy); }
.block__body { color: var(--color-slate); }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 12.5l3.2 3L17 9' fill='none' stroke='%23091B36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px no-repeat;
}

/* Products: portfolio status */
.status-panel { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 3vw, 40px); align-items: center; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.status-panel__badge { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--color-navy); }
.status-panel__badge img { width: 64px; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--color-tint); color: var(--color-accent-text); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }

/* Call-to-action band */
.cta-band { background: var(--color-navy); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; color: var(--color-muted-on-navy); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band > div { max-width: 640px; position: relative; }
.cta-band .actions { position: relative; }
.cta-band__note { margin-top: 14px; font-size: 14.5px; }
.cta-band__note a { color: #fff; }

/* Notice (careers) */
.notice { display: flex; gap: 16px; padding: 22px 24px; border: 1px solid #C9D7EA; border-left: 4px solid var(--color-navy); background: var(--color-tint); border-radius: var(--radius-sm); color: var(--color-ink); font-size: 15px; }
.notice svg { flex: none; width: 22px; height: 22px; stroke: var(--color-navy); fill: none; stroke-width: 1.8; margin-top: 2px; }
.notice strong { color: var(--color-navy); }

/* ---------- About page pieces ---------- */
.page-banner .eyebrow { color: var(--color-accent-light); }
.page-banner .eyebrow::before { background: var(--color-accent-light); }
/* heading + intro that opens a group of items inside a section */
.sub-head { max-width: 760px; margin: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 36px); }
.sub-head--first { margin-top: 0; }
.sub-head .h3, .h3--lg { font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; }
.sub-head p { color: var(--color-slate); }
.section--navy .sub-head p { color: var(--color-muted-on-navy); }
.num { display: block; margin-bottom: 12px; font: 700 13px/1 var(--font-head); letter-spacing: .14em; color: var(--color-accent); }
/* highlighted statement that closes a section */
.statement { max-width: 880px; margin: clamp(56px, 7vw, 96px) 0 0; padding-left: clamp(20px, 2.4vw, 32px); border-left: 3px solid var(--color-accent); font: 600 clamp(20px, 2vw, 27px)/1.45 var(--font-head); letter-spacing: -.01em; color: var(--color-navy); }
/* short items with a navy rule on top */
.feature { border-top: 2px solid var(--color-navy); padding-top: 20px; }
.feature h4 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--color-slate); font-size: 15.5px; }
.card h4.h3 { margin-bottom: 10px; }
/* vision statement in large type, mission beside its four points */
.vision { max-width: 960px; margin-inline: auto; text-align: center; }
.vision__label { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-text); }
.vision__statement { margin-bottom: 28px; font: 600 clamp(22px, 2.4vw, 32px)/1.4 var(--font-head); letter-spacing: -.01em; color: var(--color-navy); }
.vision__body { max-width: 760px; margin-inline: auto; color: var(--color-slate); }
.mission { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--color-border); }
.mission__statement { font: 600 clamp(18px, 1.4vw, 21px)/1.5 var(--font-head); color: var(--color-navy); }
.mission__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mission__list li { background: #fff; border-radius: var(--radius); border-top: 3px solid var(--color-navy); padding: clamp(20px, 2vw, 28px); box-shadow: var(--shadow); }
.mission__list h4 { font-size: 17px; margin-bottom: 8px; }
.mission__list p { color: var(--color-slate); font-size: 15px; }
/* heritage timeline: a line with a dot for each date */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--color-border); }
.timeline li { position: relative; padding-top: 40px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--color-accent); }
.timeline li:last-child::before { background: var(--color-navy); border-color: var(--color-navy); }
.timeline__year { display: block; margin-bottom: 10px; font: 700 clamp(22px, 2vw, 28px)/1 var(--font-head); color: var(--color-navy); }
.timeline p { color: var(--color-slate); font-size: 15px; }
/* journey of medicine: numbered steps joined by arrows (on navy) */
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.journey li { position: relative; padding: 20px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); color: #fff; font: 600 15px/1.35 var(--font-head); }
.journey li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .14em; color: var(--color-accent-light); }
.journey li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--color-accent-light); border-right: 2px solid var(--color-accent-light); transform: translateY(-50%) rotate(45deg); }
/* the climb: three stages rising in height (on navy) */
.climb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.climb li { background: var(--color-navy-2); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 30px); }
.climb li:nth-child(1) { min-height: 250px; }
.climb li:nth-child(2) { min-height: 300px; }
.climb li:nth-child(3) { min-height: 350px; }
.climb .num { color: var(--color-accent-light); }
.climb h4 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.climb p { font-size: 15px; }
.pill--here { background: var(--color-accent-light); color: var(--color-navy); }
.directions .card { padding: 24px; }
.directions h4 { font-size: 17px; margin-bottom: 8px; }
.directions p { font-size: 15px; }
.principles .num { font-size: 15px; }
/* navy panel of numbered questions */
.questions { margin-top: clamp(48px, 6vw, 80px); background: var(--color-navy); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.questions .h3 { color: #fff; margin-bottom: 28px; }
.questions ol { counter-reset: q; }
.questions li { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); color: #fff; font: 600 16px/1.45 var(--font-head); }
.questions li::before { counter-increment: q; content: "0" counter(q); display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .14em; color: var(--color-accent-light); }

/* ---------- About page: interactive parts (about.js) ---------- */
/* banner that fills the first screen below the menu, like the homepage hero (the menu has a 1px bottom border) */
.page-banner--full { display: flex; align-items: center; min-height: calc(100vh - var(--header-h) - 1px); min-height: calc(100lvh - var(--header-h) - 1px); }
.page-banner--full .container { width: 100%; }
/* iPhones and iPads only (all their browsers): the page is drawn about 60pt further down than the height
   the browser reports, under its bottom toolbar and the home bar, so a banner sized to the screen stops
   short and the next section shows as a white strip. Make the full-screen banners 80px taller there so the
   navy runs to the bottom edge. -webkit-touch-callout exists only in iOS/iPadOS browsers. */
@supports (-webkit-touch-callout: none) {
  .hero, .page-banner--full { min-height: calc(100lvh - var(--header-h) - 1px + 80px); }
}
/* its title and intro are set like the homepage hero: same title size, and the intro kept to about the
   width of the title so the lines end evenly under it */
.page-banner--full .h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.08; margin-bottom: 22px; }
.page-banner--full p { max-width: 620px; font-size: clamp(17px, 1.3vw, 20px); }
/* reading progress along the bottom of the section bar */
.subnav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left center; }
.section--photo-strong::before { background: rgba(243, 245, 248, .8); }
/* holds a section's background video; on phones it is pinned to the screen (see the phone rules) */
.section__pin { position: absolute; inset: 0; }
/* statements darken word by word as they scroll into view */
.is-inking span { color: rgba(9, 27, 54, .16); transition: color .35s ease; }
.is-inking span.is-lit { color: inherit; }
/* "years since 1901" beside the heritage sub-heading */
.since-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 48px; margin-top: clamp(56px, 7vw, 96px); margin-bottom: clamp(24px, 3vw, 36px); }
.since-row .sub-head { margin: 0; }
.since { display: flex; align-items: center; gap: 16px; max-width: 360px; margin: 0; }
.since__num { font: 800 clamp(48px, 5vw, 72px)/1 var(--font-head); color: var(--color-navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.since__label { font-size: 14px; line-height: 1.5; color: var(--color-slate); }
/* timeline line draws across, then each date lights up in turn */
.timeline--animated::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--color-accent); transform-origin: left center; transition: transform 2.2s var(--ease-out); }
.timeline--animated.is-waiting::after { transform: scaleX(0); }
.timeline--animated.is-on::after { transform: none; }
.timeline--animated.is-waiting li { opacity: .35; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease-out); }
.timeline--animated.is-waiting li::before { border-color: var(--color-border); transition: border-color .4s ease, background-color .4s ease, box-shadow .4s ease; }
.timeline--animated.is-on li { opacity: 1; transform: none; }
.timeline--animated.is-on li::before { border-color: var(--color-accent); box-shadow: 0 0 0 6px rgba(44, 92, 150, .12); }
.timeline--animated.is-on li:last-child::before { background: var(--color-navy); border-color: var(--color-navy); }
.timeline--animated li:nth-child(2), .timeline--animated li:nth-child(2)::before { transition-delay: .4s; }
.timeline--animated li:nth-child(3), .timeline--animated li:nth-child(3)::before { transition-delay: .8s; }
.timeline--animated li:nth-child(4), .timeline--animated li:nth-child(4)::before { transition-delay: 1.2s; }
.timeline--animated li:nth-child(5), .timeline--animated li:nth-child(5)::before { transition-delay: 1.6s; }
/* journey of medicine: a capsule travels the track and lights each step it reaches */
.journey-wrap { --p: 0; position: relative; }
.journey__track { position: relative; height: 26px; margin: 0 8px 18px; }
.journey__track::before, .journey__fill { content: ""; position: absolute; left: 0; top: 12px; height: 2px; border-radius: 2px; }
.journey__track::before { right: 0; background: rgba(255, 255, 255, .16); }
.journey__fill { width: calc(var(--p) * 100%); background: var(--color-accent-light); }
.journey__capsule {
  position: absolute; top: 2px; left: calc(var(--p) * (100% - 44px)); width: 44px; height: 22px; border-radius: 999px;
  background: linear-gradient(90deg, #fff 0 50%, var(--color-accent-light) 50% 100%); box-shadow: 0 0 0 4px rgba(156, 184, 220, .22), 0 6px 16px rgba(0, 0, 0, .35);
}
.journey__capsule::after { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.journey-wrap .journey li { opacity: .5; transition: opacity .35s ease, border-color .35s ease, background-color .35s ease; }
.journey-wrap .journey li.is-lit { opacity: 1; border-color: var(--color-accent-light); background: rgba(156, 184, 220, .12); }
/* the climb: stages rise one after another, and "We are here" pulses */
.climb--rise.is-waiting li { opacity: 0; transform: translateY(48px); transition: opacity .7s ease, transform .9s var(--ease-out); }
.climb--rise.is-on li { opacity: 1; transform: none; }
.climb--rise li:nth-child(2) { transition-delay: .2s; }
.climb--rise li:nth-child(3) { transition-delay: .4s; }
.pill--here { position: relative; padding-left: 26px; }
.pill--here::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--color-navy); animation: here-pulse 2s ease-out infinite; }
@keyframes here-pulse { 0% { box-shadow: 0 0 0 0 rgba(9, 27, 54, .45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(9, 27, 54, 0); } }
/* future directions explorer: tabs on the left, photo and text on the right */
.explorer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.explorer__tabs { display: grid; gap: 8px; }
.explorer__tabs button {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-navy); font: 600 16px/1.35 var(--font-head);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.explorer__tabs .num { margin: 0; flex: none; }
@media (hover: hover) { .explorer__tabs button:hover { border-color: var(--color-accent); } }
.explorer__tabs button[aria-selected="true"] { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.explorer__tabs button[aria-selected="true"] .num { color: var(--color-accent-light); }
.explorer__tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--color-accent-light); transform: scaleX(0); transform-origin: left center; }
.explorer.is-playing button[aria-selected="true"]::after { animation: explorer-fill 6s linear forwards; }
@keyframes explorer-fill { to { transform: scaleX(1); } }
.explorer__panel .photo { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.explorer__panel h4 { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 8px; }
.explorer__panel p { color: var(--color-slate); max-width: 56ch; }
.explorer.is-ready .explorer__panel:not([hidden]) { animation: panel-in .5s var(--ease-out); }
.explorer.is-ready .explorer__panel:not([hidden]) img { animation: panel-zoom 6s ease-out both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes panel-zoom { from { transform: scale(1.06); } to { transform: none; } }
.explorer:not(.is-ready) .explorer__panel + .explorer__panel { margin-top: 32px; }
/* earth photo drifts very slowly */
.photo--drift img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-2%); } }
/* principles turn navy under the pointer */
.principles--live .card { transition: background-color .35s ease, border-color .35s ease, box-shadow .25s ease, transform .25s ease; }
.principles--live .card .h3, .principles--live .card p, .principles--live .card .num { transition: color .35s ease; }
@media (hover: hover) { .principles--live .card:hover { background: var(--color-navy); border-color: var(--color-navy); } }
@media (hover: hover) { .principles--live .card:hover .h3 { color: #fff; } }
@media (hover: hover) { .principles--live .card:hover p { color: var(--color-muted-on-navy); } }
@media (hover: hover) { .principles--live .card:hover .num { color: var(--color-accent-light); } }
/* decision checklist */
.questions__hint { margin: -16px 0 24px; font-size: 14px; color: var(--color-muted-on-navy); }
.checklist button {
  display: block; width: 100%; height: 100%; padding: 16px 0 0; text-align: left; cursor: pointer; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font: 600 16px/1.45 var(--font-head); position: relative;
}
.checklist li { padding: 0; border: 0; }
.checklist li::before { display: none; }
.checklist .num { color: var(--color-accent-light); margin-bottom: 10px; }
.checklist__box { position: absolute; right: 0; top: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.checklist__box::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--color-navy); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease-out); }
@media (hover: hover) { .checklist button:hover .checklist__box { border-color: #fff; } }
.checklist button[aria-pressed="true"] { border-top-color: var(--color-accent-light); }
.checklist button[aria-pressed="true"] .checklist__box { background: var(--color-accent-light); border-color: var(--color-accent-light); transform: scale(1.08); }
.checklist button[aria-pressed="true"] .checklist__box::after { transform: rotate(45deg) scale(1); }
.checklist__done { min-height: 1.6em; margin: 24px 0 0; color: var(--color-accent-light); font: 600 17px/1.5 var(--font-head); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-details { display: grid; gap: 16px; margin: 0; }
.contact-details > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; }
.contact-details > div::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: var(--color-tint) var(--ic) center / 22px no-repeat; grid-row: span 2; }
.contact-details .cd-email { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23091B36' stroke-width='1.8'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>"); }
.contact-details .cd-phone { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23091B36' stroke-width='1.8'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/></svg>"); }
.contact-details .cd-address { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23091B36' stroke-width='1.8'><path d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>"); }
.contact-details dt { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-text); }
.contact-details dd { margin: 0; color: var(--color-navy); font-weight: 500; overflow-wrap: anywhere; }
.contact-details dd a { text-decoration: none; }
@media (hover: hover) { .contact-details dd a:hover { text-decoration: underline; } }

/* ---------- Form ---------- */
.form { background: #fff; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { position: relative; margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--color-navy); margin-bottom: 8px; }
.field label .opt { color: var(--color-slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C9D1DC; border-radius: var(--radius-sm);
  background: #fff; color: var(--color-ink); font: 400 16px/1.4 var(--font-body); appearance: none; -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23091B36' stroke-width='1.4'/></svg>") right 14px center no-repeat; padding-right: 36px; cursor: pointer; }
.field textarea { display: block; min-height: 140px; resize: vertical; line-height: 1.6; }
.field__control { position: relative; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(44, 92, 150, .22); }
.field .error { display: none; margin: 6px 0 0; font-size: 13px; color: #A1261B; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A1261B; }
.field.has-error .error { display: block; }
.field .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--color-ink); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check__box { width: 22px; height: 22px; margin-top: 1px; border: 1px solid #A9B2BF; border-radius: 4px; background: #fff; position: relative; transition: background-color .2s ease, border-color .2s ease; }
.check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s ease; }
.check input:checked + .check__box { background: var(--color-navy); border-color: var(--color-navy); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--color-accent-text); outline-offset: 3px; }
.field--check.has-error .check__box { border-color: #A1261B; }
.check a { color: var(--color-navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { display: flex; gap: 12px; font-size: 13.5px; color: var(--color-slate); margin: 4px 0 22px; line-height: 1.6; padding: 14px 16px; background: var(--color-bg-alt); border-radius: var(--radius-sm); }
.form__privacy svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--color-accent-text); fill: none; stroke-width: 1.5; }
.form__foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.form__status { margin-top: 20px; padding: 16px 18px; font-size: 15px; border-left: 3px solid; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; display: none; }
.form__status.is-success { display: block; border-color: #2E6B4F; background: #EEF5F1; color: #1E4A36; }
.form__status.is-error { display: block; border-color: #A1261B; background: #FBEFED; color: #7A1D14; }

/* ---------- Legal ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: clamp(20px, 1.7vw, 24px); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .55em; padding-left: .2em; }
.legal a { color: var(--color-navy); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px var(--page-gutter); }
.notfound__code { font: 800 clamp(80px, 12vw, 140px)/1 var(--font-head); color: var(--color-tint); margin-bottom: 12px; }
.notfound .actions { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: var(--color-muted-on-navy); font-size: 15px; }
.site-footer a { color: inherit; text-decoration: none; }
/* footer links: a thin underline draws in from left to right on hover */
.site-footer__col a, .site-footer__legal a {
  padding-bottom: 2px; background: linear-gradient(var(--color-accent-light), var(--color-accent-light)) left bottom / 0 1px no-repeat;
  transition: background-size .4s var(--ease-out), color .2s ease;
}
.site-footer__col a:focus-visible, .site-footer__legal a:focus-visible { color: #fff; background-size: 100% 1px; }
@media (hover: hover) { .site-footer__col a:hover, .site-footer__legal a:hover { color: #fff; background-size: 100% 1px; } }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 72px) 40px; }
.site-footer__brand img { width: 190px; margin-bottom: 18px; }
.site-footer__tagline { color: var(--color-accent-light); font: 600 16px/1.4 var(--font-head); margin-bottom: 10px; }
.site-footer__heading { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col address { margin-top: 10px; line-height: 1.6; }
/* "Reach us": a small icon before each contact detail, brightening on hover */
.reach-list { display: grid; gap: 10px; }
.reach-list li, .site-footer__col address.reach-item { display: flex; gap: 12px; align-items: flex-start; }
.reach-list svg, .reach-item svg { flex: none; width: 16px; height: 16px; margin-top: 4px; fill: none; stroke: var(--color-accent-light); stroke-width: 1.7; transition: stroke .2s ease; }
@media (hover: hover) { .reach-list li:hover svg { stroke: #fff; } }
.site-footer__disclaimer { font-size: 13px; line-height: 1.65; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12); margin: 0; color: #93A1B7; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 24px; }

/* ---------- Gentle reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .split, .globe-band, .contact-grid, .vm, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .globe { margin-inline: auto; margin-bottom: 40px; width: min(100%, 400px); }
  .block { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero::after { background: linear-gradient(180deg, rgba(9, 27, 54, .3) 0%, rgba(9, 27, 54, .66) 34%, rgba(9, 27, 54, .66) 76%, rgba(9, 27, 54, .35) 100%); }
  .hero__content { padding-block: 72px 64px; }
  .page-banner::after { width: 300px; height: 300px; right: -100px; }
  .page-banner--photo::before { background: linear-gradient(180deg, rgba(9, 27, 54, .72) 0%, rgba(9, 27, 54, .9) 100%); }
  /* the About page's full-screen video is kept bright like the homepage hero, darker only behind the text */
  /* the About page's Vision video stays pinned to the screen while the text scrolls over it, instead of
     being stretched over the whole (very tall) section; its own pale layer keeps the text readable */
  .section--photo-pin { overflow: clip; padding-block: 0; }
  .section--photo-pin::before { display: none; }
  .section--photo-pin > .container { padding-block: var(--section-pad); }
  .section--photo-pin .section__pin { position: sticky; top: var(--header-h); height: calc(100lvh - var(--header-h)); margin-bottom: calc(var(--header-h) - 100lvh); }
  .section--photo-pin .section__pin::after { content: ""; position: absolute; inset: 0; background: rgba(243, 245, 248, .5); }
  .page-banner--full::before { background: linear-gradient(180deg, rgba(9, 27, 54, .3) 0%, rgba(9, 27, 54, .66) 22%, rgba(9, 27, 54, .66) 86%, rgba(9, 27, 54, .35) 100%); }
  .photo--portrait { aspect-ratio: 4 / 3; }
  .split--photo-end, .status-panel.status-panel--photo { grid-template-columns: minmax(0, 1fr); }
  .mission { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 44px; }
  /* journey of medicine on phones: steps run down the page beside a vertical track */
  .journey { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .journey li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; font-size: 16px; }
  .journey li::before { margin: 0; flex: none; }
  .journey li::after { display: none; }
  .climb { grid-template-columns: minmax(0, 1fr); }
  .climb li { min-height: 0 !important; }
  .journey-wrap { padding-left: 40px; }
  .journey__track { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; height: auto; margin: 0; }
  .journey__track::before, .journey__fill { left: 12px; top: 0; width: 2px; }
  .journey__track::before { right: auto; bottom: 0; height: auto; }
  .journey__fill { height: calc(var(--p) * 100%); }
  .journey__capsule { left: 2px; top: calc(var(--p) * (100% - 44px)); width: 22px; height: 44px; background: linear-gradient(180deg, #fff 0 50%, var(--color-accent-light) 50% 100%); }
  .journey__capsule::after { left: 4px; right: auto; top: 6px; bottom: 6px; width: 5px; height: auto; }
  .cta-band--photo .cta-band__bg--strong { object-position: 68% center; }
  .timeline--animated::after { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top center; }
  .timeline--animated.is-waiting::after { transform: scaleY(0); }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); }
  .explorer__tabs::-webkit-scrollbar { display: none; }
  .explorer__tabs button { flex: none; width: auto; white-space: nowrap; padding: 12px 16px; font-size: 15px; }
  .since-row { align-items: flex-start; }
  .photo--portrait img { object-position: center 20%; }
}
@media (max-width: 560px) {
  .grid--4, .form__row, .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .card--photo { aspect-ratio: 4 / 3; }
  .status-panel { grid-template-columns: minmax(0, 1fr); }
  .mission__list { grid-template-columns: minmax(0, 1fr); }
  .glance--capsules dl { grid-template-columns: minmax(0, 1fr); }
  .glance--capsules dl { gap: 16px; }
  .glance--capsules dl > div { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); min-height: 76px; }
  .glance--capsules dt { font-size: 10.5px; letter-spacing: .06em; padding: 12px 8px 12px 18px; }
  .glance--capsules dd { font-size: 15px; padding: 12px 22px 12px 14px; }
  .status-panel__badge { width: 88px; height: 88px; }
  .status-panel__badge img { width: 46px; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn__arrow, .btn:hover .btn__arrow { animation: none !important; }
  .btn--glass::after { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .photo--drift img, .explorer__panel img, .pill--here::before { animation: none !important; }
}
@media print {
  .site-header, .mobile-menu, .subnav, .hero__media { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
