/* =========================================================
   BioRenew Landing Page
   Single stylesheet — organized top-to-bottom by section.
   ========================================================= */


/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --color-navy: #1d2836;
  --color-cream: #f3f0ea;
  --color-green: #3e4d42;
  --color-green-hover: #4f6354;
  --color-white: #ffffff;

  --font-display: "optima-lt-pro", "Optima", "Optima Nova", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  --radius-pill: 999px;
  --radius-card: 24px;
  --container-max: 1280px;
  --header-height: 88px;

  --letter-spacing-caps: 0.08em;
}


/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-navy);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.heading-optima {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
}

h1, h2, h3, h4, h5, h6,
.heading-optima {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: clamp(32px, 5vw, 64px);
}


/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-green-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* ---------- 4. HEADER / NAVIGATION ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: rgba(61, 47, 37, 0.55);
}

.site-header.is-scrolled {
  background-color: rgba(243, 240, 234, 0.78);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
}

.site-header.is-scrolled::after {
  background: rgba(61, 47, 37, 0.55);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-inline: clamp(20px, 4vw, 48px);
}

.site-header__logo img {
  height: 60px;
  width: auto;
  transition: filter 0.3s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 48px);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

.site-nav__list a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: #3d2f25;
  transition: opacity 0.2s ease, color 0.3s ease;
}
.site-nav__list a:hover {
  opacity: 0.75;
}
.site-header.is-scrolled .site-nav__list a {
  color: #3d2f25;
}

.site-header .btn--outline {
  color: #3d2f25;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(61, 47, 37, 0.70);
}
.site-header .btn--outline:hover {
  background: rgba(255, 255, 255, 0.82);
}
.site-header.is-scrolled .btn--outline {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.site-header.is-scrolled .btn--outline:hover {
  background: var(--color-green-hover);
  border-color: var(--color-green-hover);
}

.nav-toggle span {
  background: rgba(61, 47, 37, 0.9);
}
.site-header.is-scrolled .nav-toggle span {
  background: rgba(61, 47, 37, 0.9);
}

.site-nav__cta {
  padding: 13px 28px;
  font-size: 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: auto;
  background: rgba(243, 240, 234, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  z-index: 60;
  box-shadow: 0 12px 30px rgba(29, 40, 54, 0.12);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.mobile-menu__list li {
  width: 100%;
  border-bottom: 1px solid rgba(61, 47, 37, 0.12);
}
.mobile-menu__list li:last-child {
  border-bottom: 0;
}
.mobile-menu__list a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  color: rgba(61, 47, 37, 1);
}
.mobile-menu__cta {
  margin-top: 12px;
  align-self: center;
}


/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--color-cream);
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(243, 240, 234, 0.62) 0%,
    rgba(243, 240, 234, 0.32) 38%,
    rgba(243, 240, 234, 0) 65%
  );
  z-index: 1;
}

.hero__panel--left {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  z-index: 2;
  pointer-events: none;
}
.hero__panel--left .hero__copy {
  pointer-events: auto;
}

.hero__panel--right {
  display: none;
}

.hero__copy {
  padding: clamp(24px, 5vw, 80px);
  padding-right: 0;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(40px, 4vw + 16px, 66px);
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: clamp(14px, 1.6vw, 18px);
  max-width: 800px;
}
.hero__title em {
  font-style: italic;
}

.hero__supporting {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 0.5vw + 14px, 20px);
  line-height: 1.55;
  color: rgba(29, 40, 54, 0.82);
  margin: 0 0 clamp(24px, 3vw, 36px);
  max-width: 575px;
  text-wrap: pretty;
}


/* ---------- 6. HOW IT WORKS ---------- */
#how-it-works {
  scroll-margin-top: var(--header-height);
}

.steps {
  background: var(--color-cream);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(72px, 10vw, 128px);
  color: var(--color-navy);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 72px);
}

.steps__grid--four {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.steps__grid--four .step {
  text-align: left;
  padding: clamp(22px, 2vw, 30px);
  background: #fbf9f4;
  border: 1px solid rgba(29, 40, 54, 0.08);
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(29, 40, 54, 0.04),
    0 12px 32px rgba(29, 40, 54, 0.05);
  padding-inline: clamp(22px, 2vw, 30px);
}

.steps__grid--four .step__num {
  width: 32px;
  height: 32px;
  font-size: 15px;
  margin: 0 0 18px;
}

.steps__grid--four .step__title {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.steps__grid--four .step__body {
  font-size: 15px;
  line-height: 1.55;
  max-width: none;
  margin-inline: 0;
  color: rgba(29, 40, 54, 0.72);
}

.steps__cta {
  margin-top: clamp(36px, 4.5vw, 56px);
  text-align: center;
}

.steps__cta-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--color-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 77, 66, 0.35);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.steps__cta-link:hover {
  color: var(--color-green-hover);
  border-bottom-color: var(--color-green-hover);
}

.steps__cta-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.steps__cta-link:hover .steps__cta-arrow {
  transform: translateX(3px);
}

.step {
  text-align: center;
  padding-inline: clamp(8px, 2vw, 24px);
}

.step__num {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  border: 1px solid var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}
.step__num span {
  transform: translateY(-1px);
  display: block;
}

.step__title {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: var(--space-md);
}

.step__body {
  font-size: 16px;
  line-height: 1.55;
  max-width: 280px;
  margin-inline: auto;
}


/* ---------- 7. WHAT CAN STEM CELLS HELP WITH? — STATIC GLASS BUBBLES ---------- */
.bubbles {
  background: var(--color-navy);
  color: var(--color-white);
  padding-top: 72px;
  padding-bottom: 72px;
}

.bubbles__title {
  color: var(--color-white);
  margin-bottom: 14px;
}

.bubbles__lede {
  max-width: 56ch;
  margin: 0 auto 32px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.bubble-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1100px;
  margin-inline: auto;
}

.bubble-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 6px 16px rgba(0, 0, 0, 0.22);

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.bubble:hover,
.bubble:focus-visible {
  transform: translateY(-2px) scale(1.03);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.14) 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.28);
  outline: none;
}


/* ---------- 8. PROCESS — FROM SOURCE TO CLINIC ---------- */
.process {
  background: #EEF4EC;
  color: var(--color-navy);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(72px, 10vw, 128px);
  border-bottom: 1px solid rgba(29, 40, 54, 0.08);
}

.process__title {
  color: var(--color-navy);
  margin-bottom: 12px;
}

.process__subtitle {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto clamp(36px, 4vw, 52px);
  color: rgba(29, 40, 54, 0.74);
  text-wrap: pretty;
  hyphens: none;
}

.process__flow {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1.4vw, 22px);
  align-items: start;
  max-width: 1240px;
  margin-inline: auto;
}

.process__flow::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: calc(clamp(140px, 13vw, 176px) + 14px + 16px);
  height: 1px;
  background: rgba(29, 40, 54, 0.18);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 6px;
}

.process-step__art {
  width: clamp(140px, 13vw, 176px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.process-step__icon {
  display: block;
  width: 78%;
  height: 78%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 768px) {
  .process-step:nth-child(2) .process-step__icon {
    width: 100%;
    height: 100%;
  }
  .process-step:nth-child(4) .process-step__icon {
    width: 68%;
    height: 68%;
  }
  .process-step:nth-child(5) .process-step__icon {
    transform: translateY(6%);
  }
}

.process-step__num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EEF4EC;
  color: rgba(29, 40, 54, 0.78);
  border: 1px solid rgba(29, 40, 54, 0.22);
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.process-step__title {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--color-navy);
  text-wrap: balance;
  max-width: 210px;
}

.process-step__body {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  color: rgba(29, 40, 54, 0.66);
  max-width: 220px;
  text-wrap: pretty;
}


/* ---------- 9. THE SCIENCE ---------- */
.science {
  background: var(--color-navy);
  color: var(--color-white);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.science__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.science__intro {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: clamp(32px, 4vw, 48px);
  text-wrap: pretty;
  hyphens: none;
}

.science__diagram {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.science__orbit {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.science__sphere-wrap {
  --core-label-x: 50%;
  --core-label-y: 43%;
  position: relative;
  width: 60%;
  max-width: 620px;
  margin-inline: auto;
}

.science__sphere {
  display: block;
  width: 100%;
  height: auto;
  animation: sphereGlow 8s ease-in-out infinite;
}
@keyframes sphereGlow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}

.science__core-label {
  position: absolute;
  top: var(--core-label-y);
  left: var(--core-label-x);
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--color-white);
  line-height: 1.05;
  pointer-events: none;
  z-index: 1;
}

.science__core-label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 8px;
  line-height: 1.3;
}

.node {
  position: absolute;
  width: 18%;
  max-width: 210px;
  color: var(--color-white);
}

.node__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--letter-spacing-caps);
  margin-bottom: 8px;
}

.node__body {
  font-size: 14px;
  line-height: 1.55;
}

.node--tl {
  top: 14%;
  left: 2%;
  text-align: right;
}
.node--tr {
  top: 14%;
  right: 2%;
  text-align: left;
}
.node--bl {
  top: 58%;
  left: 2%;
  text-align: right;
}
.node--br {
  top: 58%;
  right: 2%;
  text-align: left;
}

.science__callout {
  text-align: center;
  width: 100%;
  max-width: 460px;
  margin: -2% auto 0;
}
.science__footnote {
  font-size: 14px;
  line-height: 1.55;
  padding: 15px 0 0;
}


/* ---------- 10. LAB CREDIBILITY ---------- */
.lab {
  background: var(--color-cream);
  color: var(--color-navy);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
}

.lab__inner {
  text-align: center;
}

.lab__title {
  margin: 0 0 14px;
}

.lab__body {
  max-width: 64ch;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(29, 40, 54, 0.78);
}

.lab__badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3.2vw, 44px);
  max-width: 1160px;
  margin: 0 auto 32px;
  padding-inline: clamp(16px, 2.5vw, 32px);
}
.lab__badges img {
  height: clamp(64px, 7vw, 92px);
  width: auto;
  min-width: 0;
}


/* ---------- 11. LEGAL DISCLAIMER ---------- */
.legal-disclaimer {
  background: var(--color-cream);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(29, 40, 54, 0.08);
}

.legal-disclaimer__inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: left;
}

.legal-disclaimer p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(29, 40, 54, 0.55);
  margin: 0 0 12px;
}
.legal-disclaimer p:last-child {
  margin-bottom: 0;
}


/* ---------- 12. TESTIMONIALS (PLACEHOLDER) ---------- */
.testimonials {
  background: var(--color-navy);
  color: var(--color-white);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.testimonials__title {
  color: var(--color-white);
  margin-bottom: 14px;
}

.testimonials__intro {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto clamp(40px, 5vw, 56px);
  color: rgba(255, 255, 255, 0.68);
  text-wrap: pretty;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin-inline: auto;
}

.testimonial-card {
  padding: 8px clamp(24px, 2.5vw, 36px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.testimonial-card:first-child {
  border-left: 0;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-wrap: pretty;
}

.testimonial-card__attrib {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.testimonials__dots {
  display: none;
}


/* ---------- 13. BOTTOM CTA ---------- */
.cta-final {
  position: relative;
  min-height: clamp(360px, 36vw, 460px);
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(32px, 6vw, 80px);
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: image-set(
    url("assets/images/cta-bubbles.webp") type("image/webp"),
    url("assets/images/cta-bubbles.png") type("image/png")
  );
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  z-index: 0;
}

.cta-final__card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 64px);
  width: min(560px, 100%);
  text-align: center;
}

.cta-final__title {
  font-size: clamp(26px, 3vw, 40px);
  color: var(--color-navy);
  margin-bottom: clamp(24px, 3vw, 36px);
  text-align: center;
}
.cta-final__title em {
  font-style: italic;
}


/* ---------- 14. FOOTER ---------- */
.site-footer {
  background: #0c121b;
  color: var(--color-white);
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: clamp(28px, 3vw, 40px);
}

.site-footer__inner {
  display: block;
}

.site-footer__logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.footer-tagline {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col--signup .footer-heading--lg {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-white);
  margin-bottom: 12px;
}
.footer-signup-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  max-width: 48ch;
}
.footer-signup {
  display: flex;
  gap: 10px;
  max-width: 440px;
  flex-wrap: wrap;
}
.footer-signup__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.footer-signup__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.footer-signup__input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}
.footer-signup__btn {
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  color: var(--color-white);
  border: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.footer-signup__btn:hover { background: var(--color-green-hover); }

.footer-mid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 56px);
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--color-white); }

.footer-links--contact li {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-contact__label {
  color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: clamp(36px, 4vw, 56px) 0 clamp(20px, 2vw, 28px);
}
.footer-disclaimer {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.50);
  max-width: 80ch;
  margin-bottom: 20px;
}
.site-footer__legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  margin-top: 0;
}


/* =========================================================
   RESPONSIVE — TABLET (<= 1023px)
   ========================================================= */
@media (max-width: 1023px) {

  .site-header__logo img { height: 50px; }

  .hero__image {
    object-position: 35% center;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(243, 240, 234, 0.68) 0%,
      rgba(243, 240, 234, 0.45) 52%,
      rgba(243, 240, 234, 0.18) 100%
    );
  }

  .lab__badges {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: center;
    gap: 36px 64px;
    max-width: none;
    padding-inline: 0;
  }
  .lab__badges img { height: 72px; }

  .process__flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: clamp(48px, 7vw, 64px);
  }
  .process__flow::before {
    display: none;
  }

  .steps__grid--four {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(20px, 3vw, 28px);
    column-gap: clamp(20px, 3vw, 28px);
    max-width: 760px;
    margin-inline: auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-mid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 40px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 480px;
    gap: 0;
    position: relative;
  }
  .testimonial-card {
    grid-area: 1 / 1;
    border-left: 0;
    border-top: 0;
    padding: 8px 4px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 600ms ease, transform 600ms ease;
    pointer-events: none;
  }
  .testimonial-card:first-child {
    border-top: 0;
    padding-top: 8px;
  }
  .testimonial-card.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
  }
  .testimonials__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
  }
  .testimonials__dot::after {
    content: "";
    position: absolute;
    inset: -10px;
  }
  .testimonials__dot.is-active {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.15);
  }

  @media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonials__dot { transition: none; }
  }
}


/* =========================================================
   RESPONSIVE — MOBILE (<= 767px)
   ========================================================= */
@media (max-width: 767px) {

  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header__logo img { height: 42px; }

  .site-header:not(.is-scrolled)::after {
    background: rgba(61, 47, 37, 0.55);
  }
  .site-header:not(.is-scrolled) .nav-toggle span {
    background: rgba(61, 47, 37, 0.9);
  }

  .hero {
    height: clamp(460px, 88vw, 600px);
  }
  .hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }
  .hero__panel--left {
    padding-top: clamp(152px, 28vw, 200px);
    padding-bottom: clamp(56px, 12vw, 88px);
    align-items: center;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(243, 240, 234, 0.86) 0%,
      rgba(243, 240, 234, 0.62) 50%,
      rgba(243, 240, 234, 0.28) 100%
    );
  }
  .hero__copy {
    padding: 0 28px;
    max-width: 100%;
    text-align: left;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 38px);
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .hero__supporting {
    max-width: 300px;
    font-size: 16px;
    line-height: 1.5;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .process {
    padding-block: clamp(40px, 8vw, 56px);
  }
  .process__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    padding-inline: 16px;
  }
  .process__flow {
    grid-template-columns: 1fr;
    row-gap: 0;
    max-width: 360px;
    margin-inline: auto;
  }
  .process__flow::before {
    display: none;
  }
  .process-step {
    padding-inline: 0;
    padding-bottom: 22px;
  }
  .process-step__art {
    width: 92px;
    margin-bottom: 4px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .process-step__icon {
    width: 100%;
    height: 100%;
  }
  .process-step__num {
    margin-bottom: 6px;
  }
  .process-step__title {
    font-size: 17px;
    margin-bottom: 6px;
    max-width: none;
  }
  .process-step__body {
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
    margin-inline: auto;
  }

  .process-step:nth-child(2) .process-step__art {
    margin-bottom: -10px;
  }
  .process-step:nth-child(2) .process-step__num {
    margin-bottom: 4px;
  }

  .steps {
    padding-block: clamp(48px, 9vw, 64px);
  }
  .steps .section-title {
    margin-bottom: clamp(20px, 5vw, 28px);
  }
  .steps__grid--four {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
    margin-inline: 0;
  }
  .steps__grid--four .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow:
      0 1px 2px rgba(29, 40, 54, 0.04),
      0 4px 16px rgba(29, 40, 54, 0.04);
  }
  .steps__grid--four .step__num {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    font-size: 13px;
    margin: 0;
  }
  .steps__grid--four .step__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 17px;
    margin: 0;
    line-height: 1.2;
  }
  .steps__grid--four .step__body {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 14px;
    line-height: 1.45;
    max-width: none;
    margin-inline: 0;
  }

  .science__diagram {
    max-width: 100%;
  }
  .science__title {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: normal;
    margin-bottom: 16px;
  }
  .science__intro {
    font-size: 17px;
    line-height: 1.45;
    max-width: 360px;
    letter-spacing: normal;
    margin-inline: auto;
    padding-inline: 8px;
  }
  .science__orbit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .science__sphere-wrap {
    width: clamp(280px, 90vw, 460px);
    order: 1;
  }

  .node {
    position: static !important;
    width: 100% !important;
    max-width: 360px;
    text-align: center !important;
  }
  .node--tl { order: 2; }
  .node--tr { order: 3; }
  .node--bl { order: 4; }
  .node--br { order: 5; }

  .science__callout {
    margin-top: var(--space-md);
  }

  .lab__badges {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 28px 36px;
    max-width: none;
    padding-inline: 0;
  }
  .lab__badges img { height: 56px; }

  .bubble-cloud {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-inline: 8px;
  }
  .bubble-row {
    display: contents;
  }
  .bubble {
    padding: 11px 20px;
    font-size: 14px;
  }

  .cta-final {
    justify-content: center;
    padding: 24px;
  }

  .lab__title,
  .cta-final__title {
    font-size: 28px;
    line-height: 1.15;
  }

  .footer-top {
    display: block;
    margin-bottom: 32px;
  }
  .footer-col--signup {
    display: none;
  }
  .footer-tagline {
    margin-top: 12px;
  }
  .footer-mid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-heading {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .footer-links li,
  .footer-links a {
    font-size: 14px;
  }
  .footer-divider {
    margin: 28px 0 16px;
  }
  .footer-disclaimer {
    font-size: 11.5px;
    line-height: 1.55;
  }
  .legal-disclaimer p {
    font-size: 11px;
  }
}


/* =========================================================
   FORM STATUS MESSAGES (injected by analytics.js)
   Status slot is now only used for inline error feedback —
   success swaps the form for a confirmation panel below.
   ========================================================= */
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}
.form-status--error {
  background: rgba(180, 60, 60, 0.08);
  color: #8b2a2a;
  border: 1px solid rgba(180, 60, 60, 0.30);
}
form.is-submitting button[type="submit"] {
  opacity: 0.7;
  cursor: wait;
}


/* =========================================================
   FORM SUCCESS PANEL (replaces the form on successful submit)
   Lives wherever the form was (.consultation-form,
   .info-form, etc.) so the surrounding section styling
   carries over. Centered, calm, on-brand.
   ========================================================= */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px);
  outline: none;
  /* Subtle entrance — keeps the swap from feeling abrupt */
  animation: form-success-in 320ms ease-out;
}
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-success__check {
  color: var(--color-green);
  margin-bottom: clamp(16px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-success__check svg {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
}

.form-success__title {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 clamp(12px, 1.6vw, 18px);
  max-width: 28ch;
}

.form-success__body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: rgba(29, 40, 54, 0.78);
  margin: 0 0 12px;
  max-width: 44ch;
}
.form-success__body--muted {
  color: rgba(29, 40, 54, 0.55);
  margin-bottom: 18px;
}

.form-success__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--color-green);
  border-bottom: 1px solid rgba(62, 77, 66, 0.35);
  padding-bottom: 3px;
  margin-top: 4px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.form-success__link:hover {
  color: var(--color-green-hover);
  border-bottom-color: var(--color-green-hover);
}
.form-success__link:hover span {
  transform: translateX(3px);
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Footer newsletter inline confirmation — replaces the small signup form
   with a quiet line that fits the footer's compressed visual rhythm. */
.newsletter-confirm {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  padding: 13px 4px;
}


/* =========================================================
   ACCESSIBILITY — reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
