/* ==========================================================================
   BEATUM HEALTHCARE — UNIFIED DESIGN SYSTEM & THEME
   Based on Beatum Product Slider Aesthetic:
   Warm Cream (#faf6f0), Rich Slate (#4a5363), Dynamic Brand Color Tints,
   Plus Jakarta Sans (800) + Inter Typography, 3D Stage Depth & Parallax
   ========================================================================== */

:root {
  --cream: #faf6f0;
  --cream-dark: #f3ede2;
  --white: #ffffff;
  --text: #4a5363;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --brand-default: #3f9a2a;
  --tint-default: #dcebc4;
  --brand: var(--brand-default);
  --tint: var(--tint-default);
  --navy: #091e3a;
  --navy-dark: #051326;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-cream: #e8ded2;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 900ms;
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Global Scroll Progress Bar
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.04);
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3f9a2a, #0284c7, #d6246e);
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background: #f3ede2;
  color: #5d6b80;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-cream);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2.5rem);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.top-bar-item a:hover {
  color: #38bdf8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cream);
  transition: all 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo-img {
  height: clamp(38px, 4vw, 46px);
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: var(--brand);
  background: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
  color: #fff;
  background: var(--brand);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px var(--brand);
  transition: all 0.3s var(--ease);
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px var(--brand);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section: Beatum Product Slider (.bps)
   ========================================================================== */
.bps {
  --brand: #3f9a2a;
  --tint: #dcebc4;
  --cream: #faf6f0;
  --text: #4a5363;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 900ms;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  height: clamp(520px, 42vw, 620px);
  isolation: isolate;
  user-select: none;
}
.bps * { box-sizing: border-box; }

/* Right panel colour layer (morphs between slides) */
.bps__panel {
  position: absolute;
  inset: 0 0 0 50%;
  background-color: var(--tint);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 55%);
  transition: background-color var(--dur) var(--ease);
  z-index: 0;
  overflow: hidden;
}
.bps__panel::before,
.bps__panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  animation: bpsDrift 14s ease-in-out infinite alternate;
}
.bps__panel::before {
  width: 520px;
  height: 520px;
  top: -220px;
  right: -160px;
}
.bps__panel::after {
  width: 300px;
  height: 300px;
  bottom: -140px;
  right: -60px;
  animation-delay: -6s;
}

/* Wipe that sweeps across the panel on change */
.bps__wipe {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 1;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  opacity: .12;
}
.bps.is-changing .bps__wipe {
  animation: bpsWipe var(--dur) var(--ease);
}

.bps__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 2;
  visibility: hidden;
}
.bps__slide.is-active,
.bps__slide.is-leaving {
  visibility: visible;
}

/* ---------- Left: copy ---------- */
.bps__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4.5vw, 5rem);
  padding-right: 2rem;
}
.bps__num {
  font-style: italic;
  font-size: 1.4rem;
  color: #5d6b80;
  margin: 0 0 .9rem;
  letter-spacing: .02em;
}
.bps__title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  color: var(--brand);
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.bps__line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.bps__line > span {
  display: inline-block;
}
.bps__desc {
  max-width: 36rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.75;
  margin: 0 0 2rem;
}
.bps__btn {
  align-self: flex-start;
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 1.05rem 2.4rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bps__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.bps__btn:hover,
.bps__btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px var(--brand);
}
.bps__btn:hover::after {
  transform: translateX(120%);
}
.bps__btn:focus-visible,
.bps button:focus-visible {
  outline: 3px solid #1f1d55;
  outline-offset: 3px;
}

/* ---------- Right: product stage ---------- */
.bps__stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0) rotate(var(--sr, 0deg));
  transition: transform .25s ease-out;
}
.bps__video-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
}
.bps__canvas {
  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
  filter: blur(0.5px);
}
/* Big white glowing disc with soft concentric halo rings */
.bps__circle {
  position: absolute;
  width: min(80%, 36vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62) 60%, rgba(255, 255, 255, .45));
  box-shadow: 0 0 90px 24px rgba(255, 255, 255, .5), inset 0 0 70px rgba(255, 255, 255, .6);
}
.bps__product {
  position: relative;
  height: clamp(300px, 34vw, 520px);
  width: auto;
  max-width: none;
  filter: drop-shadow(0 22px 22px rgba(60, 20, 40, .22));
  will-change: transform;
}
.bps__float {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.bps__slide.is-active .bps__float {
  animation: bpsFloat 5s ease-in-out 1.4s infinite;
}

/* ---------- IN animations ---------- */
.bps__slide.is-active .bps__num {
  animation: bpsFadeUp .7s var(--ease) both .15s;
}
.bps__slide.is-active .bps__line > span {
  animation: bpsReveal 1s var(--ease) both;
}
.bps__slide.is-active .bps__line:nth-child(1) > span { animation-delay: .25s; }
.bps__slide.is-active .bps__line:nth-child(2) > span { animation-delay: .37s; }
.bps__slide.is-active .bps__line:nth-child(3) > span { animation-delay: .49s; }
.bps__slide.is-active .bps__desc {
  animation: bpsFadeUp .9s var(--ease) both .55s;
}
.bps__slide.is-active .bps__btn {
  animation: bpsFadeUp .9s var(--ease) both .7s;
}
.bps__slide.is-active .bps__circle {
  animation: bpsCircleIn 1.1s var(--ease) both .1s;
}
.bps__slide.is-active .bps__product {
  animation: bpsDropIn 1.3s cubic-bezier(.34, 1.45, .5, 1) both .35s;
}

/* ---------- OUT animations ---------- */
.bps__slide.is-leaving .bps__copy > * {
  animation: bpsFadeOutUp .55s var(--ease) both;
}
.bps__slide.is-leaving .bps__circle {
  animation: bpsCircleOut .7s var(--ease) both;
}
.bps__slide.is-leaving .bps__product {
  animation: bpsDropOut .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes bpsFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes bpsReveal {
  from { transform: translateY(110%) skewY(6deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes bpsFadeOutUp {
  to { opacity: 0; transform: translateY(-24px); }
}
@keyframes bpsCircleIn {
  from { transform: scale(.35); opacity: 0; filter: blur(8px); }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}
@keyframes bpsCircleOut {
  to { transform: scale(1.25); opacity: 0; }
}
@keyframes bpsDropIn {
  0% {
    transform: translate3d(0, -110%, 0) rotate(-35deg) rotateY(75deg) rotateX(-20deg) scale(0.65);
    opacity: 0;
    filter: blur(6px);
  }
  55% {
    transform: translate3d(0, 8%, 0) rotate(6deg) rotateY(-15deg) scale(1.04);
    opacity: 1;
    filter: blur(0);
  }
  80% {
    transform: translate3d(0, -3%, 0) rotate(-2deg) rotateY(5deg) scale(0.99);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) rotateY(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes bpsDropOut {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) rotateY(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translate3d(0, 110%, 0) rotate(35deg) rotateY(-75deg) rotateX(20deg) scale(0.65);
    opacity: 0;
    filter: blur(6px);
  }
}
@keyframes bpsFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}
@keyframes bpsWipe {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes bpsDrift {
  to { transform: translate(-40px, 30px) scale(1.08); }
}

/* ---------- Controls ---------- */
.bps__ui {
  position: absolute;
  z-index: 5;
  left: clamp(1.5rem, 4.5vw, 5rem);
  bottom: clamp(1.2rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.bps__dots {
  display: flex;
  gap: .5rem;
}
.bps__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: var(--brand);
  opacity: .25;
  transition: width .4s var(--ease), opacity .4s, background-color .6s;
}
.bps__dots button[aria-current="true"] {
  width: 34px;
  opacity: 1;
}
.bps__arrows {
  position: absolute;
  z-index: 5;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  gap: .6rem;
}
.bps__arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(40, 20, 60, .25);
  color: #1f1d55;
  font-size: 1.25rem;
  transition: background-color .3s, transform .3s var(--ease);
}
.bps__arrows button:hover {
  background: #fff;
  transform: scale(1.08);
}
.bps__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50%;
  z-index: 5;
  background: rgba(0, 0, 0, .05);
}
.bps__progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: background-color .6s;
}
.bps__progress i.run {
  animation: bpsBar var(--delay, 6000ms) linear forwards;
}
.bps.is-paused .bps__progress i {
  animation-play-state: paused;
}
@keyframes bpsBar {
  to { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
.bps { touch-action: pan-y; }
@media (max-width: 1100px) {
  .bps__copy { padding: 2.5rem 1.5rem 5rem 2.5rem; }
  .bps__desc { font-size: 1rem; margin-bottom: 1.5rem; }
  .bps__ui { left: 2.5rem; }
}
@media (max-width: 860px) {
  .bps {
    --stageH: clamp(290px, 82vw, 440px);
    display: grid;
    height: auto;
    min-height: 0;
  }
  .bps__slide {
    position: relative;
    inset: auto;
    grid-area: 1/1;
    grid-template-columns: 1fr;
    grid-template-rows: var(--stageH) auto;
  }
  .bps__panel,
  .bps__wipe {
    inset: 0 0 auto 0;
    height: var(--stageH);
  }
  .bps__panel::before {
    width: 300px;
    height: 300px;
    top: -140px;
    right: -120px;
  }
  .bps__panel::after {
    width: 180px;
    height: 180px;
    bottom: -90px;
    right: -40px;
  }
  .bps__stage { order: -1; }
  .bps__circle { width: min(80vw, 360px); }
  .bps__product { height: calc(var(--stageH) * .84); }
  .bps__copy {
    justify-content: flex-start;
    padding: 1.6rem 1.25rem 4.75rem;
  }
  .bps__num { font-size: 1.1rem; margin-bottom: .5rem; }
  .bps__title { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: .8rem; }
  .bps__desc { font-size: 1rem; line-height: 1.65; margin-bottom: 1.4rem; }
  .bps__btn {
    align-self: stretch;
    max-width: 26rem;
    text-align: center;
    padding: 1rem 1.5rem;
  }
  .bps__ui {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.75rem;
  }
  .bps__arrows {
    top: calc(var(--stageH) - 62px);
    bottom: auto;
    right: 1rem;
  }
  .bps__arrows button {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .bps__progress { width: 100%; }
}
@media (max-width: 380px) {
  .bps__title { font-size: 1.85rem; }
  .bps__desc { font-size: .95rem; }
  .bps__copy { padding-inline: 1rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .bps { display: block; height: max(340px, 100svh); }
  .bps__slide {
    position: absolute;
    inset: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .bps__stage { order: 0; }
  .bps__panel,
  .bps__wipe { inset: 0 0 0 50%; height: auto; }
  .bps__product { height: 72svh; }
  .bps__circle { width: min(80svh, 40vw); }
  .bps__copy { justify-content: center; padding: 1rem 1.5rem 3.5rem; }
  .bps__title { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
  .bps__desc {
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bps__btn { align-self: flex-start; padding: .75rem 1.4rem; }
  .bps__ui { left: 1.5rem; transform: none; bottom: 1rem; }
  .bps__arrows { top: auto; bottom: 1rem; }
  .bps__progress { width: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .bps *,
  .bps *::before,
  .bps *::after {
    animation: none !important;
    transition: none !important;
  }
  .bps__slide:not(.is-active) { visibility: hidden; }
}

/* ==========================================================================
   Right-to-Left Continuous Clinical Ticker Marquee
   ========================================================================== */
.rtl-ticker-strip {
  width: 100%;
  background: #111827;
  color: #ffffff;
  padding: 0.9rem 0;
  overflow: hidden;
  position: relative;
  display: flex;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.rtl-ticker-strip::before,
.rtl-ticker-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.rtl-ticker-strip::before {
  left: 0;
  background: linear-gradient(to right, #111827, rgba(17, 24, 39, 0));
}

.rtl-ticker-strip::after {
  right: 0;
  background: linear-gradient(to left, #111827, rgba(17, 24, 39, 0));
}

.rtl-ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: rtlMarquee 26s linear infinite;
  will-change: transform;
}

.rtl-ticker-strip:hover .rtl-ticker-track {
  animation-play-state: paused;
}

.rtl-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.rtl-ticker-item strong {
  font-weight: 700;
}

.rtl-ticker-item span {
  font-size: 1rem;
}

@keyframes rtlMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   Section Layouts & General Typography
   ========================================================================== */
.section-pad {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  position: relative;
}

.section-cream-dark {
  background-color: var(--cream-dark);
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
}

.section-tint-bg {
  background-color: #f3f7ee;
  border-top: 1px solid #dcebc4;
  border-bottom: 1px solid #dcebc4;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  font-style: italic;
  font-size: 1.15rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-dark);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--brand);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

/* ==========================================================================
   About Section & Cards
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

.about-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.editorial-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border-cream);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

.card-num {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ==========================================================================
   Product Catalog Grid
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--border-cream);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  background: var(--cream-dark);
  color: var(--text-dark);
}

.filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 6px 16px -4px var(--brand);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-cream);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.12);
  border-color: var(--brand);
}

.product-card-stage {
  position: relative;
  height: 260px;
  background: var(--tint, #dcebc4);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1.25rem;
}

.product-card-circle {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35) 60%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.08);
}

.product-card-img {
  position: relative;
  max-height: 210px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 18px rgba(30, 30, 60, 0.15));
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-card-img {
  transform: scale(1.06) translateY(-4px);
}

.product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--tint, #dcebc4);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.product-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.product-card-formula {
  font-family: monospace;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.product-card-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-card-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--brand);
  border-top: 1px solid var(--border-cream);
  padding-top: 1rem;
  transition: color 0.2s;
}

.product-card-btn:hover {
  color: var(--text-dark);
}

/* ==========================================================================
   Interactive 3D Ophthalmic Matrix
   ========================================================================== */
.matrix-wrap {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border-cream);
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.08);
}

.matrix-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.matrix-tab-btn {
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--border-cream);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.matrix-tab-btn.active {
  background: var(--tint, #dcebc4);
  border-color: var(--brand);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
}

.matrix-tab-num {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brand);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.matrix-tab-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.matrix-content-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-cream);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 2.5rem;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: auto;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--brand);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -8px;
}

/* ==========================================================================
   Contact & Form Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.contact-info-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-cream);
}

.contact-detail-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tint, #dcebc4);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border: 1px solid var(--border-cream);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border-cream);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(63, 154, 42, 0.15);
}

/* ==========================================================================
   Footer (Light Cream Editorial Luxury Theme)
   ========================================================================== */
 .site-footer {
  background: #f0eae0;
  color: #5d6b80;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #e2d7c7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #5d6b80;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid #e2d7c7;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #718096;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid,
  .contact-grid,
  .matrix-content-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .top-bar {
    display: none;
  }
  .nav-menu,
  .header-cta-btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  
  /* Mobile menu drawer */
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-cream);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  
  .matrix-nav {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-wrap::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-item:nth-child(even) {
    padding-left: 50px;
  }
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }

  /* Beatum Product Slider on Mobile */
  .bps {
    --stageH: clamp(290px, 82vw, 440px);
    display: grid;
    height: auto;
    min-height: 0;
  }
  .bps__slide {
    position: relative;
    inset: auto;
    grid-area: 1/1;
    grid-template-columns: 1fr;
    grid-template-rows: var(--stageH) auto;
  }
  .bps__panel,
  .bps__wipe {
    inset: 0 0 auto 0;
    height: var(--stageH);
  }
  .bps__stage {
    order: -1;
  }
  .bps__circle {
    width: min(80vw, 360px);
  }
  .bps__product {
    height: calc(var(--stageH) * 0.84);
  }
  .bps__copy {
    justify-content: flex-start;
    padding: 1.6rem 1.25rem 4.75rem;
  }
  .bps__num {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .bps__title {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 0.8rem;
  }
  .bps__desc {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
  }
  .bps__btn {
    align-self: stretch;
    max-width: 26rem;
    text-align: center;
    padding: 1rem 1.5rem;
  }
  .bps__ui {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.75rem;
  }
  .bps__arrows {
    top: calc(var(--stageH) - 62px);
    bottom: auto;
    right: 1rem;
  }
  .bps__arrows button {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .bps__progress {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-card-stack {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .matrix-nav {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3D Entrance Reveal & Scroll Animations
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

[data-reveal-right] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

[data-reveal-scale] {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* 3D Tilt Card Container */
.tilt-card {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.tilt-inner {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.product-card:hover,
.editorial-card:hover {
  transform: translateY(-8px) scale(1.015);
}

/* ==========================================================================
   Vision & Purpose 3D Interactive Animated Slider (.vision-slider)
   ========================================================================== */
.vision-slider-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f4eee2 100%);
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  position: relative;
  overflow: hidden;
}

.vision-slider-wrap {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid var(--border-cream);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.vision-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8f4ec;
  border-bottom: 1px solid var(--border-cream);
}

.vision-tab-btn {
  padding: 1.25rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.vision-tab-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.vision-tab-btn.active {
  background: #ffffff;
  border-bottom-color: var(--brand);
}

.vision-tab-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.vision-tab-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.vision-slide-stage {
  padding: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.vision-slide-item {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}

.vision-slide-item.active {
  display: grid;
  animation: visionFadeIn 0.7s var(--ease) forwards;
}

@keyframes visionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vision-quote-box {
  background: #faf6f0;
  border-left: 4px solid var(--brand);
  padding: 1.5rem 1.75rem;
  border-radius: 0 16px 16px 0;
  margin: 1.5rem 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-weight: 600;
  font-style: italic;
}

.vision-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.vision-metric-card {
  background: #faf6f0;
  border: 1px solid var(--border-cream);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.vision-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

.vision-metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.vision-metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* 3D Holographic Concentric Scanner Stage */
.vision-3d-visual {
  position: relative;
  height: 380px;
  background: radial-gradient(circle at center, var(--tint, #dcebc4) 0%, rgba(250, 246, 240, 0.3) 70%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-cream);
}

.scanner-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(63, 154, 42, 0.3);
  animation: rotateClockwise 25s linear infinite;
}

.scanner-ring.ring-1 {
  width: 280px;
  height: 280px;
}

.scanner-ring.ring-2 {
  width: 200px;
  height: 200px;
  border-style: dotted;
  animation-duration: 18s;
  animation-direction: reverse;
}

.scanner-ring.ring-3 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(63, 154, 42, 0.5);
  animation-duration: 12s;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scanner-core {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px -5px var(--brand);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px -5px var(--brand); }
  50% { transform: scale(1.08); box-shadow: 0 16px 40px 0px var(--brand); }
}

@media (max-width: 900px) {
  .vision-tabs-nav {
    grid-template-columns: 1fr 1fr;
  }
  .vision-slide-item {
    grid-template-columns: 1fr;
  }
  .vision-metrics-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3D Holographic Concentric Ocular Scanner (L1, L2, L3, L4)
   ========================================================================== */
.depth-scanner-section {
  background: #f7f3eb;
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  position: relative;
  overflow: hidden;
}

.depth-scanner-wrap {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid var(--border-cream);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.08);
}

.depth-stage-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

/* 3D Rotating Rings Stage */
.depth-rings-viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.depth-rings-stage {
  position: relative;
  width: clamp(290px, 32vw, 380px);
  height: clamp(290px, 32vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 235, 196, 0.35) 0%, rgba(250, 246, 240, 0) 70%);
}

.ocular-ring-btn {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(74, 83, 99, 0.25);
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: all 0.4s var(--ease);
}

.ocular-ring-btn:hover {
  border-color: var(--brand);
  background: rgba(63, 154, 42, 0.04);
}

.ocular-ring-btn.active {
  border: 2px solid var(--brand);
  box-shadow: 0 0 30px rgba(63, 154, 42, 0.25);
  background: rgba(63, 154, 42, 0.08);
}

.ocular-ring-btn.ring-l1 {
  width: 96%;
  height: 96%;
  animation: rotateClockwise 35s linear infinite;
}

.ocular-ring-btn.ring-l2 {
  width: 76%;
  height: 76%;
  animation: rotateClockwise 28s linear infinite reverse;
}

.ocular-ring-btn.ring-l3 {
  width: 56%;
  height: 56%;
  animation: rotateClockwise 20s linear infinite;
}

.ocular-ring-btn.ring-l4 {
  width: 36%;
  height: 36%;
  animation: rotateClockwise 14s linear infinite reverse;
}

.ring-node-badge {
  margin-top: -12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-cream);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.ocular-ring-btn.active .ring-node-badge {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  transform: scale(1.15);
  box-shadow: 0 6px 16px -4px var(--brand);
}

.central-optical-core {
  position: relative;
  z-index: 5;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f9a2a 0%, #0284c7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(63, 154, 42, 0.5);
  border: 3px solid #ffffff;
}

.central-optical-core span {
  font-size: 1.5rem;
  line-height: 1;
}

.central-optical-core small {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Layer Depth Switcher Tabs (Below Rings) */
.layer-depth-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.75rem;
}

.layer-depth-tab {
  padding: 0.85rem 0.5rem;
  background: #faf6f0;
  border: 1px solid var(--border-cream);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.layer-depth-tab:hover {
  background: #f0eae0;
  transform: translateY(-2px);
}

.layer-depth-tab.active {
  background: var(--tint, #dcebc4);
  border-color: var(--brand);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.1);
}

.layer-tab-code {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  display: block;
}

.layer-tab-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
}

/* Right Breakdown Card */
.depth-breakdown-card {
  background: #faf6f0;
  border: 1px solid var(--border-cream);
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.06);
  display: none;
}

.depth-breakdown-card.active {
  display: block;
  animation: visionFadeIn 0.5s var(--ease) forwards;
}

.depth-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-cream);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.depth-indicator-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.depth-card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0.3rem 0;
}

.depth-pathology-box {
  background: #ffffff;
  border: 1px solid var(--border-cream);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.depth-pathology-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  display: block;
  margin-bottom: 0.3rem;
}

.depth-pathology-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

.depth-showcase-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-cream);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.depth-product-thumb {
  width: 75px;
  height: 85px;
  background: var(--tint, #dcebc4);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0.3rem;
}

.depth-product-thumb img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.depth-showcase-info strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
  text-transform: uppercase;
}

.depth-showcase-info p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.2rem 0 0;
}

@media (max-width: 900px) {
  .depth-stage-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Hero slider — "cream card + full-bleed colour" style (overrides above)
   ========================================================================== */
.bps { --card: #f3ece0; --gap: clamp(1rem, 2vw, 1.75rem); background: #1a1a1a; }
.bps__panel,
.bps__wipe,
.bps__video-bg,
.bps__circle { display: none; }

.bps__slide {
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .22), transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(255, 255, 255, .14), transparent 30%),
    radial-gradient(circle at 66% 68%, rgba(0, 0, 0, .2), transparent 36%),
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
}
.bps__slide.is-active { z-index: 3; }
.bps__slide::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(circle 90px at 70% 25%, rgba(255, 255, 255, .13), transparent 70%),
    radial-gradient(circle 150px at 86% 60%, rgba(255, 255, 255, .1), transparent 70%),
    radial-gradient(circle 60px at 60% 82%, rgba(255, 255, 255, .15), transparent 70%),
    radial-gradient(circle 120px at 96% 14%, rgba(0, 0, 0, .14), transparent 70%);
  animation: bpsDrift 14s ease-in-out infinite alternate;
}

/* Cream card holding the copy */
.bps__copy {
  position: absolute;
  z-index: 2;
  left: var(--gap);
  top: var(--gap);
  bottom: var(--gap);
  width: calc(50% - var(--gap));
  justify-content: center;
  background: var(--card);
  border-radius: 8px;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  padding-right: clamp(5rem, 9vw, 9rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.bps__title { font-size: clamp(2rem, 3.8vw, 3.6rem); }
.bps__desc { font-size: clamp(.95rem, 1.1vw, 1.1rem); }

/* Product straddles the card's right edge */
.bps__stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  pointer-events: none;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0) rotate(calc(var(--sr, 0deg) * .5));
  transition: transform .25s ease-out;
}
.bps__float {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bps__product { height: clamp(260px, 27vw, 410px); }

/* Transition: new background wipes in from the right while card + jar
   slide in from the left (old ones exit to the right). */
.bps__slide { background: none; }
.bps__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .22), transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(255, 255, 255, .14), transparent 30%),
    radial-gradient(circle at 66% 68%, rgba(0, 0, 0, .2), transparent 36%),
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
}
.bps__slide::before { z-index: 1; }
.bps__slide.is-active .bps__line > span,
.bps__slide.is-active .bps__num,
.bps__slide.is-active .bps__desc,
.bps__slide.is-active .bps__btn,
.bps__slide.is-leaving .bps__copy > * { animation: none; }

.bps.is-changing .bps__slide.is-active::after { animation: bpsBgWipe 1s var(--ease) both; }
.bps.is-changing .bps__slide.is-active .bps__copy { animation: bpsCardIn 1s var(--ease) both; }
.bps.is-changing .bps__slide.is-active .bps__product { animation: bpsJarIn 1.15s var(--ease) both; }
.bps__slide.is-leaving .bps__copy { animation: bpsCardOut 1s var(--ease) both; }
.bps__slide.is-leaving .bps__product { animation: bpsJarOut 1.15s var(--ease) both; }
.bps.is-back.is-changing .bps__slide.is-active::after { animation-name: bpsBgWipeBack; }
.bps.is-back.is-changing .bps__slide.is-active .bps__copy { animation-name: bpsCardInBack; }
.bps.is-back.is-changing .bps__slide.is-active .bps__product { animation-name: bpsJarInBack; }
.bps.is-back .bps__slide.is-leaving .bps__copy { animation-name: bpsCardOutBack; }
.bps.is-back .bps__slide.is-leaving .bps__product { animation-name: bpsJarOutBack; }
.bps__slide.is-active .bps__product { animation: none; }

@keyframes bpsBgWipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes bpsBgWipeBack { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes bpsCardIn { from { transform: translateX(-130%); } to { transform: none; } }
@keyframes bpsCardInBack { from { transform: translateX(130%); } to { transform: none; } }
@keyframes bpsCardOut { to { transform: translateX(130%); } }
@keyframes bpsCardOutBack { to { transform: translateX(-130%); } }
@keyframes bpsJarIn { from { transform: translateX(-40vw) rotate(-10deg); } to { transform: none; } }
@keyframes bpsJarInBack { from { transform: translateX(40vw) rotate(10deg); } to { transform: none; } }
@keyframes bpsJarOut { to { transform: translateX(40vw) rotate(10deg); } }
@keyframes bpsJarOutBack { to { transform: translateX(-40vw) rotate(-10deg); } }

/* Controls: PREV / NEXT text + white dots */
.bps__arrows { right: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.1rem, 2.2vw, 1.8rem); gap: 1.6rem; }
.bps__arrows button {
  width: auto;
  height: auto;
  padding: .3rem 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bps__arrows button:hover { background: none; transform: translateY(-2px); opacity: .8; }
.bps button:focus-visible { outline-color: #fff; }
.bps__ui { left: auto; right: clamp(9rem, 14vw, 13rem); bottom: clamp(1.4rem, 2.5vw, 2.1rem); }
.bps__dots button { background: #fff; }
.bps__progress { width: 100%; background: rgba(255, 255, 255, .15); }
.bps__progress i { background: #fff; }

@media (max-width: 860px) {
  .bps__slide {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: var(--stageH) auto;
  }
  .bps__stage { inset: 0 0 auto 0; height: var(--stageH); }
  .bps__float { inset: 0; width: 100%; }
  .bps__product { height: calc(var(--stageH) * .86); }
  .bps__copy {
    grid-row: 2;
    position: relative;
    inset: auto;
    width: auto;
    margin: 0 var(--gap) var(--gap);
    padding: 1.6rem 1.25rem 4.5rem;
  }
  .bps__title { font-size: clamp(2rem, 9vw, 3rem); }
  .bps__ui { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(var(--gap) + 1.3rem); }
  .bps__dots button { background: var(--brand); }
  .bps__arrows { top: calc(var(--stageH) - 3rem); bottom: auto; right: 1.25rem; }
  .bps__arrows button { width: auto; height: auto; font-size: .95rem; }
}

/* Looping background video (blended into each slide's colour) */
.bps__bgvid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .7;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.bps.is-changing .bps__slide.is-active .bps__bgvid { animation: bpsBgWipe 1s var(--ease) both; }
.bps.is-back.is-changing .bps__slide.is-active .bps__bgvid { animation-name: bpsBgWipeBack; }
@media (prefers-reduced-motion: reduce) { .bps__bgvid { display: none; } }
