/* Shared gutters: 198px at the 1440px desktop design width. */
:root { --pad: clamp(32px, calc((100vw - 1044px) / 2), 198px); }
.container { max-width: 1280px; }
.section-heading { text-align: left; max-width: none; margin-inline: 0; }
.section-heading p { margin-inline: 0; }
.section-heading h2 { max-width: 900px; }
.section-lead { font: 400 clamp(24px, 2.3vw, 34px)/1.3 var(--font-editorial), Georgia, serif; }
.centered { justify-content: flex-start; }
.newsletter-card { text-align: left; justify-items: start; padding: 56px; }
.hero-copy { padding-left: var(--pad); padding-right: 32px; }
.hero-copy .eyebrow { letter-spacing: 0; text-transform: none; font-size: 12px; }
.hero-copy h1 { font-size: clamp(44px, 4.2vw, 64px); }
.brand { background: transparent; padding: 0; border-radius: 0; }
.brand img { filter: invert(1); }

/* One consistent navigation, on desktop and mobile. */
header { gap: 24px; }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.menu-toggle img { width: 24px; height: 24px; }
.menu-toggle[aria-expanded="true"] img { opacity: 0; }
.menu-toggle[aria-expanded="true"] { position: relative; }
.menu-toggle[aria-expanded="true"]::before,
.menu-toggle[aria-expanded="true"]::after { content: ''; position: absolute; width: 22px; height: 1px; background: currentColor; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
#mobile-nav { top: 76px; max-height: calc(100dvh - 76px); overflow-y: auto; padding: 20px var(--pad) 32px; }
#mobile-nav:not([hidden]) { display: grid; animation: menu-in .3s var(--ease); }
#mobile-nav a { font-size: clamp(22px, 2.4vw, 34px); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 15px 0; }
#mobile-nav a span { font: 18px 'Instrument Sans', sans-serif; transition: transform .3s var(--ease); }
#mobile-nav a:hover span { transform: translate(3px, -3px); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Three supplied identities, repeated as one seamless desktop track. */
.logos { padding-block: 44px; background: var(--cream); }
.logo-container { position: relative; }
.logo-window { overflow: hidden; }
.logo-track { display: flex; width: 200%; animation: logo-loop 32s linear infinite; }
.logo-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 0 0 50%; }
.logo-item { display: grid; place-items: center; min-width: 0; height: 76px; padding-inline: 28px; overflow: hidden; }
.logo-item img { width: 190px; max-width: 100%; height: 58px; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; }
.logo-barts img { height: auto; max-width: none; width: min(100%, 240px); }
.logo-baby-boosa img { width: 126px; }
.logo-container:hover .logo-track, .logo-container:focus-within .logo-track, .logo-container.is-paused .logo-track { animation-play-state: paused; }
.logo-pause { position: absolute; right: 0; bottom: -26px; width: 32px; height: 32px; font-size: 13px; border-radius: 50%; opacity: .6; }
.logo-pause:hover, .logo-pause:focus-visible { opacity: 1; background: #00000008; }
@keyframes logo-loop { to { transform: translateX(-50%); } }

/* Stable tabs avoid shifting the content below them. */
.about-copy { min-height: 306px; }

/* One compact patient pathway, driven by native page scroll. */
.pathways { padding-block: 88px; }
.pathway-stage { --step: 0; }
.pathway-stage .section-heading { margin-bottom: 36px; gap: 14px; }
.pathway-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 48px; align-items: start; }
.path-number-window { font: 400 126px/1 var(--font-editorial), Georgia, serif; letter-spacing: -.06em; height: 1em; width: 1.3em; overflow: hidden; }
.path-number-track { transform: translateY(calc(var(--step) * -1em)); transition: transform .65s var(--ease); }
.path-number-track span { display: block; height: 1em; }
.path-panels { display: grid; min-width: 0; }
.path-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s ease, transform .55s var(--ease), visibility .35s; }
.path-panel.is-active { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.path-panel h3 { font-size: clamp(30px, 2.8vw, 42px); margin-block: 16px 20px; max-width: 680px; }
.path-panel p { max-width: 600px; }
.path-panel .actions { margin-top: 24px; }
.path-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.path-controls button { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); min-height: 48px; color: #6c6c65; font-size: 13px; transition: color .3s, border-color .3s; }
.path-controls button span { font-size: 11px; margin-right: 12px; }
.path-controls button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.path-scroll-hint { display: none; margin-top: 8px; font-size: 10px; letter-spacing: .08em; }
.pathway-rail.is-scroll-driven { height: calc(var(--stage-height) + 140svh); }
.is-scroll-driven .pathway-stage { position: sticky; top: 100px; }
.is-scroll-driven .path-scroll-hint { display: block; }
.research .section-heading { margin-bottom: 32px; }

@media (min-width: 1600px) { .hero-copy { padding-left: var(--pad); } }
@media (max-width: 1100px) {
  .pathway-layout { grid-template-columns: 120px minmax(0, 1fr); gap: 30px; }
  .path-number-window { font-size: 108px; }
  .connected { gap: 32px; }
}
@media (max-width: 760px) {
  :root { --pad: 24px; }
  .section { padding-inline: var(--pad); }
  header { padding-inline: var(--pad); gap: 12px; }
  #mobile-nav { top: 64px; max-height: calc(100dvh - 64px); padding: 12px var(--pad) 24px; }
  #mobile-nav a { font-size: 25px; line-height: 1.22; padding-block: 17px; }
  .hero-copy { padding: 48px var(--pad) 36px; }
  .hero-copy h1 { font-size: clamp(42px, 10.8vw, 52px); }
  .hero-copy .eyebrow { font-size: 10px; }
  .hero .actions { gap: 12px; }
  .logos { padding-block: 24px; }
  .logo-track { width: 100%; animation: none; }
  .logo-group { flex-basis: 100%; }
  .logo-clone, .logo-pause { display: none; }
  .logo-item { padding-inline: 7px; height: 52px; }
  .logo-item img { height: auto; max-height: 42px; width: 100%; }
  .logo-barts { padding-inline: 0; }
  .logo-barts img { max-height: none; }
  .logo-baby-boosa img { width: 74%; }
  .section-heading h2 { font-size: clamp(37px, 10vw, 44px); }
  .connected { padding-inline: var(--pad); }
  .story-nav { flex-wrap: wrap; }
  .connected-intro h2 { max-width: none; font-size: 44px; }
  .newsletter-card { padding: 36px 24px; }
  .about-copy { min-height: 286px; }
  .pathways { padding-block: 64px; }
  .pathway-stage .section-heading { margin-bottom: 24px; gap: 12px; }
  .pathway-layout { grid-template-columns: 1fr; gap: 16px; }
  .path-number-window { font-size: 76px; }
  .path-panel h3 { font-size: 31px; margin-block: 12px 16px; }
  .path-panel p { font-size: 14px; }
  .path-panel .actions { margin-top: 20px; }
  .path-controls { gap: 12px; margin-top: 24px; }
  .path-controls button { font-size: 11px; }
  .path-controls button span { margin-right: 6px; font-size: 10px; }
  .is-scroll-driven .pathway-stage { top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; width: 100%; }
  .logo-group { flex-basis: 100%; }
  .logo-clone, .logo-pause { display: none; }
  .path-number-track, .path-panel { transition: none; }
  .pathway-rail.is-scroll-driven { height: auto; }
  .is-scroll-driven .pathway-stage { position: static; }
  .path-scroll-hint { display: none !important; }
}

/* Browser review: a quieter hero and clear actions for each part of Mira's story. */
header .brand img { width: 100.8px; height: 52.8px; }
.about .section-heading { gap: 0; }
.tabs button { justify-content: center; }
.about-copy { min-height: 340px; }
.about-copy h3 { margin-top: 0; }
.about-actions { gap: 12px; align-items: stretch; }
.about-actions .button { font-size: 12px; padding: 11px 14px; gap: 10px; text-align: center; }
.logo-item { overflow: visible; }
.logo-item img, .logo-item .barts-logo { height: 42px; width: auto; max-width: 100%; object-fit: contain; }
.logo-item .barts-logo { width: 239px; display: block; }
.logo-optimal img { mix-blend-mode: normal; filter: none; }
.logo-baby-boosa img { width: auto; }

/* Figures lead; The Female Mouth Project follows with an invitation. */
.research .stats { margin-top: 0; }
.research-invitation { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.research-story h2 { font-size: clamp(38px,3.5vw,54px); margin-bottom: 24px; }
.research-story p + p { margin-top: 18px; }
.preview-email-form { display: flex; flex-direction: column; gap: 18px; max-width: none; align-self: center; }
.preview-email-form label { font-family: var(--font-editorial),Georgia,serif; font-size: 28px; line-height: 1.25; }
.email-row { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; }
.email-row input { flex: 1 1 200px; min-height: 48px; }
.email-row .button { flex: 0 1 auto; }
.preview-email-form .caption { font-size: 11px; }
.preview-email-form .form-status:empty { display: none; }

/* Connected topics form a restrained molecular map around a mouth illustration. */
.story-nav.connection-map { position: relative; display: block; width: 100%; max-width: 440px; aspect-ratio: 440/300; margin: 30px 0 22px; }
.molecule-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: #b3afa1; }
.mouth-art { color: var(--ink); }
.molecule-satellites { opacity: .6; }
.story-nav .molecule-point { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; transform: translate(-50%,-50%); min-height: 44px; min-width: 76px; padding: 6px; border: 0; border-radius: 0; font-size: 11px; line-height: 1.2; background: transparent; color: var(--ink); }
.molecule-point i { display: block; flex: none; width: 11px; height: 11px; border: 1px solid var(--ink); border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 5px var(--cream); transition: background .3s, box-shadow .3s, transform .3s; }
.molecule-point span { background: var(--cream); padding: 2px 4px; }
.story-nav .molecule-point.active, .story-nav .molecule-point:hover { background: transparent; color: var(--ink); }
.molecule-point.active i, .molecule-point:hover i { background: var(--ink); box-shadow: 0 0 0 5px var(--cream),0 0 0 6px #bbb6a4; transform: scale(1.15); }
.point-microbiome { left:15.45%;top:21.33%; }
.point-sleep { left:78.18%;top:16%; }
.point-hormones { left:82.73%;top:71.33%; }
.point-nutrition { left:36.14%;top:87.33%; }
.point-airway { left:12.27%;top:67.67%; }
.connected-intro { padding-top: 72px; }
.connected-intro h2 { font-size: clamp(38px,3.7vw,54px); }
.story-card { top: calc(100px + var(--index)*10px); }

/* Booking sits with the image; email is an optional next step below the assessment. */
.assessment-booking { margin-top: 24px; }
.assessment-image .assessment-counter { top: 24px; bottom: auto; }
.assessment-email { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.assessment-email h3 { font-size: 40px; }
@media(max-width:1100px) {
 .research-invitation { gap: 36px; }
 .about-panel { gap: 28px; }
}
@media(max-width:760px) {
 header { gap: 8px; }
 header .brand img { width:100.8px;height:52.8px; }
 .header-actions { gap: 0; }
 .header-actions .button.small { font-size: 11px; padding-inline: 8px; }
 .header-actions .menu-toggle { width: 36px; }
 .logo-item { padding-inline: 5px; }
 .logo-item img, .logo-item .barts-logo { width: auto; height: clamp(14px,4.45vw,19px); max-width: 100%; }
 .logo-item .barts-logo { width: 108px; }
 .about-copy { min-height: 380px; }
 .about-actions { align-items: flex-start; flex-direction: column; }
 .about-actions .button { max-width: 100%; font-size: 12px; }
 .research-invitation { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; padding-top: 40px; }
 .research-story h2 { font-size: 40px; }
 .preview-email-form label { font-size: 25px; }
 .email-row { flex-direction: column; }
 .email-row input { flex: auto; }
 .email-row .button { align-self: flex-start; }
 .connected-intro h2 { font-size: 40px; }
 .story-nav.connection-map { margin-top: 28px; }
 .story-nav .molecule-point { font-size: 10px; min-width: 66px; }
 .assessment-email { margin-top: 48px; grid-template-columns: 1fr; gap: 24px; }
 .assessment-email h3 { font-size: 34px; }
 .assessment-booking .button { font-size: 12px; }
}
.logo-item .optimal-logo { display:block;width:139px;height:42px;max-width:100%; }
.logo-item .baby-logo { display:block;width:115px;height:42px;max-width:100%; }
@media(max-width:760px) {
 .logo-item .optimal-logo,.logo-item .baby-logo,.logo-item .barts-logo { width:100%;height:clamp(14px,4.45vw,19px); }
}
.story-nav .molecule-point { transform:translate(-50%,-5.5px);justify-content:flex-start;padding-block:0; }
