/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-sage: #B0C4C4;
  --deep-teal: #2D5B5E;
  --mid-teal: #5A8E8F;
  --faded-teal: rgba(45, 91, 94, 0.45);
  --very-faded-teal: rgba(45, 91, 94, 0.15);
  --white: #FFFFFF;
  --light: #EDF2F2;
  --light-gray: #F5F5F5;
  --font-mono: 'IBM Plex Mono', 'Courier Prime', 'Courier New', monospace;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-logo: 'Nunito', 'Varela Round', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-mono);
  color: var(--deep-teal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(45, 91, 94, 0.2);
  color: var(--deep-teal);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(176, 196, 196, 0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(45, 91, 94, 0.08);
  transition: transform 0.4s var(--ease-out-expo), background 0.3s ease;
}

.nav.scrolled {
  background: rgba(176, 196, 196, 0.88);
  box-shadow: 0 1px 24px rgba(45, 91, 94, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--deep-teal);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--deep-teal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--deep-teal);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--deep-teal);
  transition: all 0.3s ease;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-sage);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-texture-text {
  position: absolute;
  inset: -50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(45, 91, 94, 0.09);
  word-break: break-all;
  white-space: pre-wrap;
  transform: rotate(-3deg);
  animation: textureFloat 60s linear infinite;
}

@keyframes textureFloat {
  0% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-1.5%); }
  100% { transform: rotate(-3deg) translateY(0); }
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  filter: saturate(0.5);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.hero-logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 14rem);
  color: var(--deep-teal);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.2s var(--ease-out-expo) 0.3s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bottom {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 3rem 2.5rem 5rem;
  max-width: 580px;
  align-self: flex-end;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out-expo) 0.8s forwards;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--deep-teal);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--mid-teal);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hero-origin {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mid-teal);
  letter-spacing: 0.04em;
}

/* === SECTIONS === */
.section {
  padding: 8rem 2rem;
  position: relative;
}

.section--teal {
  background: var(--deep-teal);
  color: var(--white);
}

.section--white {
  background: var(--white);
}

.section--light {
  background: var(--light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-content {
  margin-bottom: 3.5rem;
}

.section-content--narrow {
  max-width: 700px;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid-teal);
  margin-bottom: 3rem;
}

/* === TYPOGRAPHY === */
.heading-display {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--deep-teal);
  line-height: 1.18;
  margin-bottom: 2.5rem;
  max-width: 800px;
  letter-spacing: -0.01em;
}

.heading-display--light {
  color: var(--white);
}

.body-large {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.body-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.body-text--light {
  color: rgba(255, 255, 255, 0.88);
}

.body-text--emphasis {
  font-weight: 600;
}

.body-text-sm {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.75;
}

/* === TABLES === */
.table-wrapper {
  margin: 3.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.data-table thead th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 2px solid var(--deep-teal);
  text-align: left;
  color: var(--deep-teal);
}

.data-table tbody tr {
  transition: background 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(45, 91, 94, 0.03);
}

.data-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(45, 91, 94, 0.08);
  vertical-align: top;
}

.data-table--compact tbody td {
  padding: 0.6rem 1rem;
}

.label-bold {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  white-space: nowrap;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.value-highlight {
  font-weight: 700;
  color: var(--deep-teal);
  font-size: 0.72rem;
}

.value-small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
}

/* === COMPARISON TABLE === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.comparison-table thead th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 2px solid var(--deep-teal);
  text-align: center;
  color: var(--deep-teal);
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
}

.comparison-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(45, 91, 94, 0.08);
  vertical-align: top;
}

.comparison-table .highlight-col {
  background: rgba(45, 91, 94, 0.05);
}

.comparison-table tbody tr:hover .highlight-col {
  background: rgba(45, 91, 94, 0.08);
}

.table-category-row td {
  background: rgba(45, 91, 94, 0.04);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.table-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--deep-teal);
}

/* === SOURCE GRID === */
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.source-card {
  padding: 2.25rem;
  border: 1px solid rgba(45, 91, 94, 0.12);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.3s ease;
}

.source-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45, 91, 94, 0.08);
  border-color: rgba(45, 91, 94, 0.25);
}

.source-card--highlight {
  background: rgba(45, 91, 94, 0.05);
  border-color: var(--deep-teal);
}

.source-card--highlight:hover {
  border-color: var(--deep-teal);
  box-shadow: 0 8px 32px rgba(45, 91, 94, 0.12);
}

.source-card-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deep-teal);
  margin-bottom: 1rem;
}

/* === PRODUCT BOTTLE === */
.product-intro-layout {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.product-bottle-wrapper {
  max-width: 320px;
  position: relative;
}

.product-bottle-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(45, 91, 94, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.product-bottle-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(45, 91, 94, 0.18));
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s ease;
}

.product-bottle-wrapper:hover .product-bottle-img {
  transform: translateY(-6px);
  filter: drop-shadow(0 20px 50px rgba(45, 91, 94, 0.22));
}

/* === BENCHMARK === */
.benchmark-hero {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.benchmark-stat {
  flex-shrink: 0;
}

.benchmark-number {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--deep-teal);
  line-height: 0.9;
  display: block;
}

.benchmark-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-teal);
  display: block;
  margin-top: 0.75rem;
}

/* === CLINICAL === */
.clinical-list {
  list-style: none;
  margin: 2.5rem 0;
}

.clinical-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.06em;
  padding: 0.6rem 0;
  text-transform: uppercase;
  position: relative;
  padding-left: 1.5rem;
}

.clinical-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.highlight-bar {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  margin: 3rem 0 3.5rem;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.highlight-bar p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.highlight-bar--dark {
  background: rgba(45, 91, 94, 0.05);
  border-left-color: var(--deep-teal);
}

.highlight-bar--dark p {
  color: var(--deep-teal);
}

/* === RESULTS GRID === */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.result-card {
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.result-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  min-height: 2.5em;
}

.result-stat {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-stat-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.result-sublabel {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}

.study-note {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.section--light .study-note {
  border-top-color: rgba(45, 91, 94, 0.12);
}

/* === BEFORE/AFTER === */
.ba-section {
  margin: 4rem 0;
}

.ba-pair {
  margin-bottom: 5rem;
}

.ba-pair:last-child {
  margin-bottom: 0;
}

.ba-info {
  margin-bottom: 2rem;
}

.ba-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deep-teal);
  margin-bottom: 0.5rem;
}

.ba-stat {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--deep-teal);
  line-height: 1;
}

.ba-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  max-width: 900px;
}

/* Vertical divider between before/after */
.ba-frames::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: calc(100% - 2.5rem);
  background: rgba(45, 91, 94, 0.15);
  transform: translateX(-0.5px);
  pointer-events: none;
  z-index: 2;
}

.ba-frame {
  text-align: center;
  padding: 0 1.5rem;
}

.ba-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out-expo);
  cursor: crosshair;
}

.ba-image:hover {
  transform: scale(1.03);
}

.ba-image--lg {
  aspect-ratio: 4/5;
}

.ba-caption {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mid-teal);
  text-transform: uppercase;
}

/* === DIAGNOSTIC SCAN SECTION === */
.scan-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(45, 91, 94, 0.1);
}

.scan-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  color: var(--deep-teal);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.scan-item {
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo);
}

.scan-item:hover {
  transform: translateY(-2px);
}

.scan-item--wide {
  grid-column: 1 / -1;
}

.scan-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(45, 91, 94, 0.1);
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.3s ease;
}

.scan-image:hover {
  box-shadow: 0 8px 32px rgba(45, 91, 94, 0.1);
}

.scan-caption {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-teal);
  margin-top: 0.85rem;
  text-align: center;
}

/* === SECONDARY CLINICAL IMAGE === */
.secondary-clinical {
  margin-top: 4rem;
  text-align: center;
}

.secondary-clinical-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: inline-block;
  border: 1px solid rgba(45, 91, 94, 0.1);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo);
}

.secondary-clinical-img:hover {
  transform: scale(1.01);
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 4rem;
}

.testimonial-card {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-out-expo);
  position: relative;
}

.testimonial-card:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateX(8px);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 800px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  position: absolute;
  top: -1.2rem;
  left: -0.25rem;
  line-height: 1;
}

.testimonial-author {
  margin-top: 1rem;
  padding-left: 0;
}

.testimonial-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* === SCIENCE === */
.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.science-card {
  padding: 2.25rem;
  border: 1px solid rgba(45, 91, 94, 0.1);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.science-card:hover {
  border-color: var(--deep-teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45, 91, 94, 0.06);
}

.science-card-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deep-teal);
  margin-bottom: 1rem;
}

/* === COMPOSITION === */
.composition-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.comp-table-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--deep-teal);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--deep-teal);
}

/* === FOOTER === */
.footer {
  padding: 8rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 500px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3.5rem;
}

.footer-cta {
  margin-bottom: 3.5rem;
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, letter-spacing 0.3s ease;
}

.footer-email:hover {
  border-color: var(--white);
  letter-spacing: 0.02em;
}

.footer-notes {
  margin-top: 3.5rem;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Counter animation */
.count-up {
  display: inline-block;
}

/* === PLACEHOLDER STYLES (unused but keep for compat) === */
.ba-placeholder {
  aspect-ratio: 1;
  border: 2px solid rgba(45, 91, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ba-placeholder--before {
  background: linear-gradient(135deg, rgba(45, 91, 94, 0.04) 0%, rgba(45, 91, 94, 0.08) 100%);
}

.ba-placeholder--after {
  background: linear-gradient(135deg, rgba(45, 91, 94, 0.08) 0%, rgba(45, 91, 94, 0.14) 100%);
}

.ba-placeholder--lg {
  aspect-ratio: 4/5;
}

.ba-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(45, 91, 94, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ba-placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mid-teal);
  outline-offset: 3px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(176, 196, 196, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(45, 91, 94, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .benchmark-hero {
    flex-direction: column;
    gap: 2rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .science-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ba-frames {
    max-width: 100%;
  }

  .scan-grid {
    grid-template-columns: 1fr;
  }

  .product-bottle-wrapper {
    max-width: 240px;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .hero-bottom {
    padding: 2rem 1.5rem 3rem;
  }

  .testimonial-quote {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .science-grid {
    grid-template-columns: 1fr;
  }

  .ba-frames {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ba-frames::after {
    display: none;
  }

  .ba-frame {
    padding: 0;
  }

  .ba-image {
    aspect-ratio: 4/3;
  }

  .ba-image--lg {
    aspect-ratio: 4/3;
  }

  .scan-grid {
    grid-template-columns: 1fr;
  }

  .data-table,
  .comparison-table {
    font-size: 0.7rem;
  }

  .data-table thead th,
  .comparison-table thead th {
    font-size: 0.62rem;
    padding: 0.75rem;
  }

  .data-table tbody td,
  .comparison-table tbody td {
    padding: 0.75rem;
  }

  .label-bold {
    font-size: 0.65rem;
  }

  .heading-display {
    font-size: 1.8rem;
  }

  .hero-logo {
    font-size: 4.5rem;
  }

  .benchmark-number {
    font-size: 5rem;
  }

  .result-stat {
    font-size: 2.2rem;
  }

  .ba-stat {
    font-size: 2.5rem;
  }

  .testimonial-quote {
    font-size: 0.92rem;
  }

  .testimonial-quote::before {
    font-size: 2.5rem;
    top: -0.8rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }
}

/* === BEFORE/AFTER SLIDER === */
.ba-slider {
  max-width: 700px;
  margin: 0 auto;
}

.ba-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 4/3;
}

.ba-slider-container img.ba-slider-after {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.ba-slider-before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Match the after image's rendered size */
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.ba-slider-line {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.ba-slider-knob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--teal-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 0.15s ease;
}

.ba-slider-knob:hover {
  transform: scale(1.1);
}

.ba-slider-label {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 5;
  pointer-events: none;
}

.ba-slider-label--before {
  left: 16px;
}

.ba-slider-label--after {
  right: 16px;
}

@media (max-width: 768px) {
  .ba-slider {
    max-width: 100%;
  }
  .ba-slider-knob {
    width: 34px;
    height: 34px;
    font-size: 9px;
  }
}
