:root {
  --ink: #283b43;
  --blue: #3bafbf;
  --blue-dark: #2b8998;
  --blue-soft: #e9f6f7;
  --yellow: #f8b42c;
  --paper: #ffffff;
  --soft: #f5f7f7;
  --muted: #66777d;
  --line: #dfe7e9;
  --radius: .45rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.18; margin-top: 0; }

.legacy-header {
  align-items: center;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #edf0f1;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  min-height: 112px;
  padding: 1rem clamp(1.25rem, 5vw, 5.75rem);
  position: sticky;
  top: 0;
  z-index: 30;
}
.legacy-brand { width: 140px; }
.legacy-brand img { max-height: 84px; width: auto; }
.legacy-header nav { display: flex; gap: clamp(1rem, 2.7vw, 2.6rem); justify-content: center; }
.legacy-header nav a {
  color: #2f3538;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .4rem 0;
  transition: color .2s ease;
}
.legacy-header nav a:hover,
.legacy-header nav a.is-active { color: var(--blue); }
.legacy-header-button,
.legacy-contact a,
.download-section > a {
  align-items: center;
  background: var(--blue);
  border-radius: .4rem;
  color: white;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 700;
  gap: .55rem;
  justify-content: center;
  letter-spacing: .05em;
  padding: .85rem 1.25rem;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}
.legacy-header-button:hover,
.legacy-contact a:hover,
.download-section > a:hover { background: var(--blue-dark); transform: translateY(-1px); }

.legacy-hero {
  align-items: center;
  background: linear-gradient(90deg, rgba(16,36,42,.82), rgba(16,36,42,.35)), url('assets/goldie.jpg') center 30% / cover;
  display: flex;
  min-height: 460px;
  position: relative;
}
.legacy-hero-overlay { color: white; padding: 5rem clamp(1.25rem, 10vw, 10rem); width: 100%; }
.legacy-hero-overlay p {
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}
.legacy-hero h1 { font-size: clamp(3.25rem, 7.2vw, 6.8rem); letter-spacing: -.045em; margin: 0 0 .65rem; }
.legacy-hero-overlay span { display: block; font-size: clamp(1.05rem, 2vw, 1.45rem); max-width: 820px; }

.legacy-status {
  align-items: center;
  background: var(--yellow);
  color: white;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  justify-content: center;
  padding: 1.7rem clamp(1.25rem, 5vw, 5rem);
  text-align: center;
}
.legacy-status strong { font-size: clamp(1.15rem, 2.1vw, 1.65rem); }
.legacy-status span { font-size: .95rem; }

.legacy-quicklinks {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1240px;
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 2rem;
}
.legacy-quicklinks a {
  align-items: center;
  background: var(--blue);
  border-radius: .35rem;
  color: white;
  display: flex;
  font-size: .88rem;
  font-weight: 700;
  gap: .55rem;
  justify-content: center;
  letter-spacing: .04em;
  padding: 1.05rem 1.25rem;
  text-align: center;
  text-transform: uppercase;
}
.legacy-quicklinks a:last-child { background: var(--blue-dark); }

.legacy-section { padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 7vw, 8rem); }
.legacy-kicker {
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.project-section { margin: 0 auto; max-width: 1260px; text-align: center; }
.project-section h2,
.section-intro h2,
.legacy-contact h2,
.download-section h2 { font-size: clamp(2.15rem, 4.5vw, 4rem); letter-spacing: -.035em; margin-bottom: 2.2rem; }
.project-copy {
  color: var(--muted);
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}
.project-copy p { margin: 0; }
.project-copy p:first-child { color: var(--ink); font-size: 1.07rem; }
.project-facts {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.5rem;
}
.project-facts div { padding: 1.6rem .7rem; }
.project-facts div + div { border-left: 1px solid var(--line); }
.project-facts strong, .project-facts span { display: block; }
.project-facts strong { color: var(--blue-dark); font-size: 1.25rem; }
.project-facts span { color: var(--muted); font-size: .78rem; margin-top: .2rem; }

.faq-section { background: var(--soft); }
.section-intro { margin: 0 auto 2.5rem; max-width: 1040px; }
.section-intro h2 { margin-bottom: .8rem; }
.section-intro > p:last-child { color: var(--muted); margin-top: 0; }
.section-intro.centered { text-align: center; }
.faq-list { margin: 0 auto; max-width: 1040px; }
.faq-item { background: white; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 650;
  list-style: none;
  padding: 1.1rem 3.5rem 1.1rem 3.25rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  align-items: center;
  background: #30383c;
  color: white;
  content: '+';
  display: flex;
  font-size: 1rem;
  height: 1.25rem;
  justify-content: center;
  left: 1rem;
  line-height: 1;
  position: absolute;
  top: 1.25rem;
  width: 1.25rem;
}
.faq-item[open] summary { color: var(--blue-dark); }
.faq-item[open] summary::before { background: var(--blue); content: '–'; }
.faq-answer { color: var(--muted); padding: 0 3.5rem 1.6rem 3.25rem; }
.faq-answer p { margin: 0 0 .9rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: .8rem 0 1rem; padding-left: 1.3rem; }
.inline-link { align-items: center; color: var(--blue-dark); display: inline-flex; font-weight: 700; gap: .4rem; }
.medical-intro { margin-top: 5.5rem; }

.process-section { background: white; }
.service-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 1260px; }
.service-grid article { border: 1px solid var(--line); min-height: 255px; padding: 2rem; }
.service-grid svg { color: var(--blue); height: 32px; margin-bottom: 2.5rem; width: 32px; }
.service-grid h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.service-grid p { color: var(--muted); font-size: .9rem; margin: 0; }

.team-section { background: var(--blue-soft); }
.legacy-team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); margin: 0 auto; max-width: 1100px; }
.legacy-team-grid article { background: white; display: grid; grid-template-columns: 43% 1fr; min-height: 340px; }
.legacy-team-grid img { height: 100%; object-fit: cover; width: 100%; }
.legacy-team-grid article > div { align-self: center; padding: 2rem; }
.legacy-team-grid span { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legacy-team-grid h3 { font-size: 1.45rem; margin: .65rem 0 1rem; }
.legacy-team-grid p { color: var(--muted); font-size: .92rem; margin: 0; }

.network-section { background: white; }
.network-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 1260px; }
.network-tiles article { background: var(--soft); min-height: 175px; padding: 2rem; }
.network-tiles strong { color: var(--blue-dark); display: block; font-size: 1.2rem; margin-bottom: .8rem; }
.network-tiles span { color: var(--muted); font-size: .9rem; }

.download-section {
  align-items: center;
  background: var(--yellow);
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr auto;
}
.download-section .legacy-kicker { color: #61470c; }
.download-section h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: .6rem; }
.download-section p:last-child { margin: 0; max-width: 760px; }
.download-section > a { background: white; color: var(--blue-dark); white-space: nowrap; }

.legacy-contact { background: var(--blue); color: white; padding: clamp(4.5rem, 8vw, 7rem) 1.25rem; text-align: center; }
.legacy-contact > div { margin: 0 auto; max-width: 900px; }
.legacy-contact .legacy-kicker { color: white; opacity: .78; }
.legacy-contact h2 { margin-bottom: 1rem; }
.legacy-contact p:not(.legacy-kicker) { margin: 0 auto 2rem; max-width: 720px; }
.legacy-contact a { background: white; color: var(--blue-dark); }
.legacy-contact a:hover { background: #f2fbfc; }

.legacy-footer { align-items: center; background: #50cbbb; color: #164954; display: grid; gap: 2rem; grid-template-columns: 190px 1fr auto; padding: 3.5rem clamp(1.25rem, 7vw, 8rem); }
.legacy-footer img { width: 150px; }
.legacy-footer p { font-size: .88rem; margin: 0; }
.legacy-footer > div { display: flex; font-size: .82rem; gap: 1.2rem; }

/* Public study page, using the same restrained visual language. */
.site-header {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: .9rem clamp(1.25rem, 5vw, 5.75rem);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .brand { width: 175px; }
.site-header nav { display: flex; gap: 2rem; font-size: .9rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--blue); }
.header-link { align-items: center; color: var(--blue-dark); display: flex; font-size: .85rem; font-weight: 700; gap: .4rem; justify-self: end; }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 7vw, 8rem); }
.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .15em; margin: 0 0 1rem; text-transform: uppercase; }
.study-hero { background: var(--blue-soft); padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 12vw, 13rem); }
.study-hero h1 { font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.045em; margin-bottom: 1.5rem; }
.study-lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 850px; }
.back-link { align-items: center; color: var(--blue-dark); display: inline-flex; font-size: .85rem; font-weight: 700; gap: .4rem; margin-bottom: 4rem; }
.study-complete { align-items: center; background: var(--yellow); display: inline-flex; font-size: .85rem; font-weight: 800; gap: .5rem; margin-top: 1.7rem; padding: .7rem 1rem; }
.study-layout { display: grid; gap: clamp(3rem, 8vw, 8rem); grid-template-columns: .8fr 1fr; }
.study-layout h2, .section-heading h2, .download-card h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); letter-spacing: -.035em; }
.prose { color: var(--muted); font-size: 1.03rem; }
.prose p:first-child { color: var(--ink); font-size: 1.12rem; }
.section-heading { margin-bottom: 3rem; text-align: center; }
.goal-list { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.goal-list li { background: #eef8f9; display: grid; gap: 1.3rem; grid-template-columns: auto 1fr; min-height: 135px; padding: 1.8rem; }
.goal-list span { color: var(--blue); font-size: .75rem; font-weight: 800; }
.study-design { background: var(--soft); }
.study-facts { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0 1rem; }
.study-facts div { padding: 1.2rem .7rem 1.2rem 0; }
.study-facts strong, .study-facts span { display: block; }
.study-facts strong { color: var(--blue-dark); font-size: 1.35rem; }
.study-facts span, .prose small { font-size: .75rem; }
.study-network { background: white; }
.network-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); }
.network-grid article { background: var(--soft); min-height: 190px; padding: 1.8rem; }
.network-grid h3 { color: var(--blue-dark); font-size: 1.15rem; }
.network-grid p { color: var(--muted); font-size: .9rem; }
.study-download { background: var(--blue-soft); }
.download-card { align-items: center; background: var(--yellow); display: grid; gap: 2rem; grid-template-columns: auto 1fr auto; padding: clamp(2rem, 4vw, 3.5rem); }
.download-card h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); margin-bottom: .8rem; }
.button { align-items: center; background: white; color: var(--blue-dark); display: inline-flex; font-size: .85rem; font-weight: 750; gap: .5rem; justify-content: center; padding: .85rem 1.2rem; }
.button-primary { background: var(--blue); color: white; }
.button-light { background: white; color: var(--blue-dark); }
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.8rem); margin: 0 auto 1rem; max-width: 900px; }
.cta > p:not(.eyebrow) { color: var(--muted); margin: 0 auto 2rem; max-width: 720px; }
.subpage footer { background: #50cbbb; color: #164954; padding: 3rem clamp(1.25rem, 7vw, 8rem); }
.footer-top { align-items: center; display: flex; justify-content: space-between; padding-bottom: 2rem; }
.footer-top img { width: 190px; }
.footer-top p { margin: 0; max-width: 500px; }
.footer-bottom { border-top: 1px solid rgba(22,73,84,.2); display: flex; font-size: .8rem; justify-content: space-between; padding-top: 1.4rem; }
.footer-bottom div { display: flex; gap: 1rem; }

@media (max-width: 960px) {
  .legacy-header { grid-template-columns: 150px 1fr auto; }
  .legacy-header nav { gap: 1.1rem; }
  .legacy-header nav a { font-size: .84rem; }
  .legacy-header-button { font-size: .7rem; padding-inline: .9rem; }
  .project-copy { grid-template-columns: 1fr; }
  .service-grid, .network-tiles { grid-template-columns: repeat(2, 1fr); }
  .legacy-team-grid { grid-template-columns: 1fr; }
  .study-layout { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card, .download-section { grid-template-columns: auto 1fr; }
  .download-card .button, .download-section > a { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .legacy-header { grid-template-columns: 1fr auto; min-height: 88px; padding: .7rem 1rem; }
  .legacy-brand { width: 108px; }
  .legacy-brand img { max-height: 66px; }
  .legacy-header nav { display: none; }
  .legacy-header-button { font-size: .64rem; }
  .legacy-hero { min-height: 430px; }
  .legacy-hero-overlay { padding-block: 4rem; }
  .legacy-hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .legacy-quicklinks { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .project-facts { grid-template-columns: repeat(2, 1fr); }
  .project-facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .project-facts div:nth-child(4) { border-top: 1px solid var(--line); }
  .faq-item summary { padding-right: 1rem; }
  .faq-answer { padding-right: 1rem; }
  .service-grid, .network-tiles { grid-template-columns: 1fr; }
  .legacy-team-grid article { grid-template-columns: 42% 1fr; }
  .legacy-footer { grid-template-columns: 1fr; text-align: center; }
  .legacy-footer img { margin: 0 auto; }
  .legacy-footer > div { justify-content: center; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .goal-list, .network-grid { grid-template-columns: 1fr; }
  .study-facts { grid-template-columns: 1fr; }
  .download-card, .download-section { grid-template-columns: 1fr; }
  .download-card .button, .download-section > a { grid-column: 1; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
}

@media (max-width: 480px) {
  .legacy-header-button { max-width: 145px; padding: .65rem .75rem; text-align: center; }
  .legacy-status { justify-content: flex-start; text-align: left; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .legacy-team-grid article { grid-template-columns: 1fr; }
  .legacy-team-grid img { height: 360px; object-position: center 15%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
