/* ===================================================================
   Dependable Clinical Research, design system
   White and blue. Crisp white grounds, a clear medical blue, deep blue
   bands for contrast, photography led, motion used sparingly.
   =================================================================== */

/* -------------------------------------------------------------------
   1. Tokens. The light palette is defined on bare :root so there is
   always a complete definition to fall back on.
   ------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --c-bg:            #ffffff;
  --c-bg-subtle:     #f4f8fd;
  --c-bg-tint:       #e9f1fb;
  --c-surface:       #ffffff;
  --c-deep:          #0b3a75;
  --c-deep-2:        #082a56;

  /* Lines */
  --c-border:        #e2e9f2;
  --c-border-strong: #c6d5e8;

  /* Text */
  --c-ink:           #0d2440;
  --c-body:          #46586d;
  --c-muted:         #64778e;
  --c-on-deep:       #e3edfa;
  --c-on-deep-muted: #9fbadd;

  /* Brand */
  --c-primary:       #1668d9;
  --c-primary-hover: #1152ad;
  --c-primary-soft:  #e8f1fd;
  --c-primary-line:  #b4d2f5;
  --c-primary-glow:  rgba(22, 104, 217, 0.16);

  /* Signals, always paired with a text label, never color alone */
  --c-enroll:        #0f7a52;
  --c-enroll-soft:   #e6f5ee;
  --c-accent:        #b45309;
  --c-accent-soft:   #fdf1e1;

  /* Elevation, cool and soft */
  --sh-xs: 0 1px 2px rgba(13, 36, 64, 0.06);
  --sh-sm: 0 2px 8px rgba(13, 36, 64, 0.08);
  --sh-md: 0 10px 28px rgba(13, 36, 64, 0.10);
  --sh-lg: 0 24px 56px rgba(13, 36, 64, 0.14);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Type */
  --f-serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --f-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono:  ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  /* Layout */
  --w-max:  1160px;
  --w-text: 68ch;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* Light is the default and is not conditional on the visitor's system
   setting. Dark applies only when someone opts into it with the theme
   toggle, which stamps data-theme="dark" on the root element. There is
   deliberately no prefers-color-scheme rule here. */
:root[data-theme="dark"] {
  --c-bg:            #0a1421;
  --c-bg-subtle:     #101d2e;
  --c-bg-tint:       #16273c;
  --c-surface:       #142438;
  --c-deep:          #0a1b30;
  --c-deep-2:        #061222;

  --c-border:        #21344b;
  --c-border-strong: #35506e;

  --c-ink:           #e8f0fa;
  --c-body:          #b6c6d9;
  --c-muted:         #8496ac;
  --c-on-deep:       #e3edfa;
  --c-on-deep-muted: #9fbadd;

  --c-primary:       #5aa6f5;
  --c-primary-hover: #8bc2ff;
  --c-primary-soft:  #122d4d;
  --c-primary-line:  #2b5583;
  --c-primary-glow:  rgba(90, 166, 245, 0.20);

  --c-enroll:        #4ec08b;
  --c-enroll-soft:   #0e2a20;
  --c-accent:        #e0954a;
  --c-accent-soft:   #2f2213;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --sh-md: 0 10px 28px rgba(0, 0, 0, 0.5);
  --sh-lg: 0 24px 56px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* -------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* 17px base. Participants skew older and this is a real legibility win. */
  font: 400 1.0625rem/1.72 var(--f-sans);
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  color: var(--c-ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  /* Evens out ragged line lengths on short headings in supporting browsers. */
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.14;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.55rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.1875rem; line-height: 1.38; }
h4 { font-size: 1rem; line-height: 1.4; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-primary);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--c-primary-hover); text-decoration: underline; }

img, svg, video { max-width: 100%; display: block; }

hr { border: 0; border-top: 1px solid var(--c-border); margin: 40px 0; }

strong { color: var(--c-ink); font-weight: 650; }

::selection { background: var(--c-primary-soft); color: var(--c-ink); }

/* -------------------------------------------------------------------
   3. Accessibility primitives
   ------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 650;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.band-deep :focus-visible,
.site-footer :focus-visible,
.utility-bar :focus-visible { outline-color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------
   4. Reading progress bar
   ------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-primary), #58a6f7);
  z-index: 200;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* -------------------------------------------------------------------
   5. Layout
   ------------------------------------------------------------------- */
.container { max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-subtle { background: var(--c-bg-subtle); }
.section-tint { background: var(--c-bg-tint); }

.band-deep { background: var(--c-deep); color: var(--c-on-deep); }
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep h4 { color: #fff; }
.band-deep a { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split-media { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 940px) {
  .split, .split-media { grid-template-columns: 1fr; gap: 40px; }
  /* On one column the image should follow the words that introduce it. */
  .split-media > :first-child { order: 2; }
}

.stack > * + * { margin-top: 16px; }
.text-center { text-align: center; }
.measure { max-width: var(--w-text); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* -------------------------------------------------------------------
   6. Photography
   ------------------------------------------------------------------- */
.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-tint);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-wide   { aspect-ratio: 16 / 10; }
.media-tall   { aspect-ratio: 4 / 5; }
.media-square { aspect-ratio: 1 / 1; }
.media-band   { aspect-ratio: 21 / 7; border-radius: var(--r-xl); }
@media (max-width: 620px) { .media-band { aspect-ratio: 4 / 3; } }

.media-shadow { box-shadow: var(--sh-lg); }

/* A cool wash ties photography to the blue palette rather than letting
   each image bring its own color temperature to the page. */
.media-tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--c-primary) 18%, transparent),
    transparent 58%);
  pointer-events: none;
}

/* Slow zoom on hover, a small sign that the image is part of a live page. */
@media (hover: hover) {
  .media-zoom img { transition: transform 0.7s var(--ease-out); }
  .media-zoom:hover img { transform: scale(1.04); }
}

figure { margin: 0; }
figcaption {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: 10px;
  line-height: 1.5;
}

.media-stack { position: relative; }
.media-badge {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 18px 22px;
  max-width: 240px;
}
.media-badge .n {
  font-family: var(--f-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1;
  display: block;
}
.media-badge .t {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: 6px;
  line-height: 1.45;
}
@media (max-width: 620px) {
  .media-badge { position: static; margin-top: 16px; max-width: none; }
}

/* -------------------------------------------------------------------
   7. Section headings
   ------------------------------------------------------------------- */
.eyebrow {
  display: block;
  color: var(--c-primary);
  font-family: var(--f-sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 14px;
}

.section-head { max-width: 660px; margin: 0 0 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--c-muted); font-size: 1.125rem; margin-bottom: 0; }
.band-deep .section-head p { color: var(--c-on-deep-muted); }

/* -------------------------------------------------------------------
   8. Reveal on scroll. Guarded behind `.js` so that with JavaScript
   disabled the content is simply visible rather than invisible.
   ------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Children of a .stagger container arrive in sequence rather than at
   once, which reads as deliberate instead of twitchy. */
.js .stagger > *:nth-child(1) { transition-delay: 0ms; }
.js .stagger > *:nth-child(2) { transition-delay: 70ms; }
.js .stagger > *:nth-child(3) { transition-delay: 140ms; }
.js .stagger > *:nth-child(4) { transition-delay: 210ms; }
.js .stagger > *:nth-child(5) { transition-delay: 280ms; }
.js .stagger > *:nth-child(6) { transition-delay: 350ms; }

/* -------------------------------------------------------------------
   9. Buttons
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
              box-shadow 0.16s ease, transform 0.16s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 36, 64, 0.10);
}
.btn-primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  color: #fff;
  box-shadow: 0 8px 20px var(--c-primary-glow);
  transform: translateY(-1px);
}
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-primary:hover { color: #08182b; }

.btn-outline { background: transparent; border-color: var(--c-border-strong); color: var(--c-ink); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }

.btn-light { background: #fff; border-color: #fff; color: #0b3a75; }
.btn-light:hover { background: #dceafb; border-color: #dceafb; color: #0b3a75; transform: translateY(-1px); }

.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 0.9375rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.18s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------
   10. Utility bar and header
   ------------------------------------------------------------------- */
.utility-bar {
  background: var(--c-deep);
  color: var(--c-on-deep-muted);
  font-size: 0.8125rem;
}
.utility-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.utility-bar a { color: #fff; font-weight: 600; }
.utility-bar .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-enroll);
  margin-right: 8px;
  vertical-align: middle;
}
.utility-phone { display: inline-flex; align-items: center; gap: 7px; }
.utility-phone svg { width: 15px; height: 15px; }
@media (max-width: 620px) {
  .utility-inner { justify-content: center; gap: 10px; }
  .utility-note { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }

.nav-wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.15;
  flex-shrink: 0;
}
.brand:hover { color: var(--c-ink); text-decoration: none; }
.brand .mark { width: 36px; height: 36px; flex-shrink: 0; color: var(--c-primary); }
.brand small {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  color: var(--c-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--c-primary); text-decoration: none; }

/* Underline grows from the center rather than snapping in. */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform 0.22s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--c-primary); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover, .nav-toggle:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-soft);
}
.theme-toggle svg, .nav-toggle svg { width: 20px; height: 20px; }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Only one of the two theme icons is shown, decided by the active theme.
   The sun shows by default because the default theme is light. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--c-border); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links .nav-mobile-cta { margin-top: 16px; }
  .nav-links .nav-mobile-cta .btn { display: inline-flex; width: 100%; }
  .nav-links .nav-mobile-cta a { border-bottom: 0; }
}
@media (min-width: 1001px) {
  .nav-links .nav-mobile-cta { display: none; }
}

/* -------------------------------------------------------------------
   11. Hero
   ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--c-bg-subtle);
  border-bottom: 1px solid var(--c-border);
  padding: 76px 0 84px;
  overflow: hidden;
  isolation: isolate;
}

/* Two soft blue washes give the flat ground some depth without imagery. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  width: 640px; height: 640px;
  top: -280px; right: -180px;
  background: radial-gradient(circle at 35% 35%, var(--c-primary-glow), transparent 68%);
}
.hero::after {
  width: 440px; height: 440px;
  bottom: -240px; left: -160px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c-primary) 10%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero h1 { margin-bottom: 0.4em; }
.hero-lede {
  font-size: 1.1875rem;
  color: var(--c-body);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-creds {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.hero-creds span { display: inline-flex; align-items: center; gap: 7px; }
.hero-creds svg { width: 15px; height: 15px; color: var(--c-primary); }

.badge-enrolling {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--c-enroll-soft);
  color: var(--c-enroll);
  border: 1px solid color-mix(in srgb, var(--c-enroll) 26%, transparent);
  border-radius: 999px;
  padding: 6px 15px 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.badge-enrolling .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-enroll);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

/* -------------------------------------------------------------------
   12. Trust strip
   ------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 860px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-strip { grid-template-columns: 1fr; } }

.trust-item {
  background: var(--c-surface);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  transition: background 0.15s ease;
}
.trust-item:hover { background: var(--c-bg-subtle); }
.trust-item svg { width: 22px; height: 22px; color: var(--c-primary); flex-shrink: 0; margin-top: 2px; }
.trust-item .t { display: block; font-weight: 650; color: var(--c-ink); font-size: 0.9375rem; line-height: 1.35; }
.trust-item .d { display: block; font-size: 0.8125rem; color: var(--c-muted); line-height: 1.5; margin-top: 3px; }

/* -------------------------------------------------------------------
   13. Stats
   ------------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

.stat .num {
  font-family: var(--f-serif);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  /* Stops the row reflowing as the counter ticks up. */
  font-variant-numeric: tabular-nums;
}
.band-deep .stat .num { color: #fff; }
.stat .lbl { margin-top: 10px; font-size: 0.9375rem; color: var(--c-muted); line-height: 1.45; }
.band-deep .stat .lbl { color: var(--c-on-deep-muted); }

/* -------------------------------------------------------------------
   14. Cards
   ------------------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}
.card > :last-child { margin-bottom: 0; }
@media (hover: hover) {
  .card-hover:hover {
    border-color: var(--c-primary-line);
    box-shadow: 0 12px 28px var(--c-primary-glow);
    transform: translateY(-3px);
  }
}

.card .icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.18s ease, color 0.18s ease;
}
.card .icon svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .card-hover:hover .icon { background: var(--c-primary); color: #fff; }
}

.card p { font-size: 0.9375rem; color: var(--c-body); line-height: 1.62; }

.step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  border: 1.5px solid var(--c-primary-line);
  color: var(--c-primary);
  font-family: var(--f-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo .media { border-radius: 0; }
.card-photo .card-body { padding: 26px 28px; flex-grow: 1; }
.card-photo .card-body > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------
   15. Therapeutic area tiles
   ------------------------------------------------------------------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 860px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .area-grid { grid-template-columns: 1fr; } }

.area { background: var(--c-surface); padding: 30px 28px; transition: background 0.15s ease; }
.area:hover { background: var(--c-bg-subtle); }
.area .icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.area .icon svg { width: 20px; height: 20px; }
.area h3 { margin-bottom: 8px; }
.area p { font-size: 0.875rem; color: var(--c-body); margin-bottom: 14px; line-height: 1.58; }
.area .count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* -------------------------------------------------------------------
   16. Study cards
   ------------------------------------------------------------------- */
.study-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}
@media (hover: hover) {
  .study-card:hover {
    border-color: var(--c-primary-line);
    box-shadow: 0 12px 28px var(--c-primary-glow);
    transform: translateY(-3px);
  }
}

.study-card-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.study-card-body { padding: 24px; flex-grow: 1; }
.study-card-body h3 { margin-bottom: 10px; }
.study-card-body p { font-size: 0.9375rem; color: var(--c-body); margin-bottom: 18px; }
.study-card-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-enrolling { background: var(--c-enroll-soft); color: var(--c-enroll); }
.status-waitlist  { background: var(--c-accent-soft); color: var(--c-accent); }
.status-closed    { background: var(--c-bg-tint); color: var(--c-muted); }

.phase {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.study-meta { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.study-meta li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--c-body); }
.study-meta svg { width: 16px; height: 16px; color: var(--c-muted); flex-shrink: 0; margin-top: 3px; }

.nct { font-family: var(--f-mono); font-size: 0.75rem; color: var(--c-muted); }

/* -------------------------------------------------------------------
   17. Forms
   ------------------------------------------------------------------- */
.field { margin-bottom: 20px; }

label, .label {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--c-ink);
  margin-bottom: 7px;
}
.label-hint { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--c-muted); margin-top: 2px; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 120px; }

select {
  appearance: none;
  /* Chevron as an inline data URI so the page stays self contained. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364778e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--c-muted); opacity: 1; }

fieldset { border: 0; margin: 0 0 20px; padding: 0; }
legend { padding: 0; }

.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--c-primary); }
.choice input { margin: 3px 0 0; accent-color: var(--c-primary); flex-shrink: 0; }
.choice span { font-size: 0.9375rem; color: var(--c-ink); font-weight: 500; }
.choice:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }

.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--sh-sm);
}
@media (max-width: 620px) { .form-card { padding: 24px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--c-enroll-soft);
  color: var(--c-enroll);
  border: 1px solid color-mix(in srgb, var(--c-enroll) 26%, transparent);
}
.form-status[hidden] { display: none; }

.privacy-note { font-size: 0.8125rem; color: var(--c-muted); line-height: 1.58; margin-top: 16px; }

/* -------------------------------------------------------------------
   18. FAQ, native <details> so it is keyboard and screen reader correct
   without a line of JavaScript.
   ------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--c-border); }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--c-ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-primary); }
.faq summary::after {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  background: currentColor;
  transition: transform 0.22s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 0 24px; max-width: var(--w-text); color: var(--c-body); }
.faq .faq-answer > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------
   19. People
   ------------------------------------------------------------------- */
.person {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}
@media (hover: hover) {
  .person:hover {
    border-color: var(--c-primary-line);
    box-shadow: 0 12px 28px var(--c-primary-glow);
    transform: translateY(-3px);
  }
}

/* A monogram rather than a stock portrait. Attaching a photograph of a
   real, identifiable person to one of our investigators' names would
   misrepresent them, so we show initials until we have a real headshot
   and permission to publish it. */
.person .monogram {
  width: 78px; height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  border: 1.5px solid var(--c-primary-line);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--c-primary); font-size: 0.875rem; font-weight: 650; margin-bottom: 10px; }
.person .bio { font-size: 0.875rem; color: var(--c-body); line-height: 1.62; margin-bottom: 14px; }
.person .creds { font-size: 0.75rem; color: var(--c-muted); padding-top: 14px; border-top: 1px solid var(--c-border); }

/* -------------------------------------------------------------------
   20. Quotes
   ------------------------------------------------------------------- */
.quote {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: 28px;
}
.quote blockquote { margin: 0 0 20px; font-size: 1.0625rem; line-height: 1.66; color: var(--c-ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; margin-top: 0; }
.quote .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.quote .who { font-weight: 650; color: var(--c-ink); display: block; }
.quote .what { color: var(--c-muted); font-size: 0.8125rem; }

/* -------------------------------------------------------------------
   21. Locations
   ------------------------------------------------------------------- */
.location {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 26px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.location:hover { border-color: var(--c-primary-line); box-shadow: var(--sh-sm); }
.location h3 { margin-bottom: 12px; }
.location address { font-style: normal; font-size: 0.9375rem; color: var(--c-body); line-height: 1.62; margin-bottom: 16px; }
.location .loc-meta { font-size: 0.875rem; color: var(--c-muted); padding-top: 16px; border-top: 1px solid var(--c-border); }

.map-frame { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 400px; border: 0; }

/* -------------------------------------------------------------------
   22. Contact info list
   ------------------------------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 15px; align-items: flex-start; }
.info-list .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-list .icon svg { width: 20px; height: 20px; }
.info-list .t { display: block; font-weight: 650; color: var(--c-ink); margin-bottom: 2px; }
.info-list .d { font-size: 0.9375rem; color: var(--c-body); line-height: 1.58; }

/* -------------------------------------------------------------------
   23. Page header
   ------------------------------------------------------------------- */
.page-header {
  position: relative;
  background: var(--c-bg-subtle);
  border-bottom: 1px solid var(--c-border);
  padding: 56px 0;
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  top: -300px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--c-primary-glow), transparent 68%);
  z-index: -1;
  pointer-events: none;
}
.page-header h1 { margin-bottom: 0.35em; }
.page-header .lede { font-size: 1.125rem; color: var(--c-muted); max-width: 62ch; margin-bottom: 0; }

.breadcrumb { font-size: 0.8125rem; color: var(--c-muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); font-weight: 600; }

/* -------------------------------------------------------------------
   24. Callouts
   ------------------------------------------------------------------- */
.callout {
  background: var(--c-primary-soft);
  border: 1px solid var(--c-primary-line);
  border-radius: var(--r-md);
  padding: 26px 28px;
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: 8px; }
.callout p { font-size: 0.9375rem; }

.callout-warn {
  background: var(--c-accent-soft);
  border-color: color-mix(in srgb, var(--c-accent) 32%, transparent);
}
.callout-warn h3 { color: var(--c-accent); }

.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--c-deep), #14539e);
  border-radius: var(--r-xl);
  padding: 54px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  top: -180px; right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.16), transparent 68%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 720px) { .cta-band { padding: 36px 28px; } }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c8dcf6; margin-bottom: 0; max-width: 50ch; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.check-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--c-body); }
.check-list svg { width: 20px; height: 20px; color: var(--c-primary); flex-shrink: 0; margin-top: 2px; }

/* -------------------------------------------------------------------
   25. Back to top
   ------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-primary);
  box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), background 0.15s ease, color 0.15s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.to-top svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------
   26. Footer
   ------------------------------------------------------------------- */
.site-footer {
  background: var(--c-deep-2);
  color: var(--c-on-deep-muted);
  padding: 64px 0 28px;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--c-on-deep-muted); }
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand small { color: var(--c-on-deep-muted); }
.site-footer .brand .mark { color: #2f7ee0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-blurb { max-width: 34ch; line-height: 1.62; margin-top: 16px; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }

.footer-disclaimer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  line-height: 1.62;
  color: #7f9bc2;
  max-width: 90ch;
}

.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ease-out);
}
.social-row a:hover { background: var(--c-primary); border-color: var(--c-primary); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }

/* -------------------------------------------------------------------
   27. Print
   ------------------------------------------------------------------- */
@media print {
  .site-header, .utility-bar, .site-footer, .cta-band,
  .nav-toggle, .to-top, .scroll-progress { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .section { padding: 16pt 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
