/* ============================================================
   VANCENCO V2 — COMPONENTS
   Shared UI components: nav, footer, chatbot widget, image track.
   Updated for Exo Ape architecture (full-screen menu, video footer).
   ============================================================ */


/* ===================
   NAVIGATION (TOP BAR)
   =================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 10); /* Must be above .nav-overlay (z-700) */
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  /* mix-blend-mode removed to allow explicit JS-controlled inversion */
  transition: background-color var(--duration-normal) var(--ease-out-expo);
}


.nav > * {
  pointer-events: auto;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out-expo), color var(--duration-normal) var(--ease-out-expo);
}

/* Dynamic Inversion for Light Zones */
.nav--invert .nav-wordmark {
  color: var(--color-dark); /* #070707 */
}

/* Highlighted second N in the wordmark — teal accent */
.nav-wordmark__n {
  color: var(--accent-cyan);
}

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

/* Hamburger Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1; /* Local stacking — parent .nav is already above overlay */
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #fff;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    opacity var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-normal) var(--ease-out-expo);
  transform-origin: center;
}

/* Dynamic Inversion for Light Zones */
.nav--invert .nav-toggle__line {
  background-color: var(--color-dark);
}

/* Hamburger → X animation */
.nav-toggle.is-active .nav-toggle__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}


/* ===================
   FULL-SCREEN MENU (OVERLAY)
   =================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background-color: var(--color-dark); /* Pure dark for menu */
  color: var(--color-white);
  padding: var(--section-pad) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  clip-path: inset(0 0 100% 0); /* Reveals from top down via GSAP */
  visibility: hidden;
  will-change: clip-path;
}

.nav-overlay.is-active {
  visibility: visible;
}

.nav-overlay__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Main Navigation Links (Massive typography) */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0; /* Tight grouping, let line-height handle it */
  margin-top: auto;
  margin-bottom: auto;
}

.nav-menu__item {
  overflow: hidden; /* For stagger line reveal */
}

.nav-menu__link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h1); /* 10vw */
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  transform: translateY(100%); /* Initial state for GSAP */
  transition: opacity var(--duration-fast) var(--ease-out-expo);
  will-change: transform;
}

.nav-menu__link:hover {
  opacity: 0.6;
}

.nav-menu__number {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--accent-cyan);
  transform: translateY(-30%); /* Align superscript style */
}

.nav-menu__link.is-active {
  color: var(--accent-cyan);
}

.nav-menu__link.is-active .nav-menu__number {
  color: var(--color-white);
}

/* Menu Footer (Contact & Address) */
.nav-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  border-top: 1px solid var(--border-medium);
  padding-top: var(--space-8);
  opacity: 0; /* Revealed by GSAP */
  transform: translateY(20px);
}

.nav-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-footer__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-white-04);
}

.nav-footer__text,
.nav-footer__link {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--color-white);
}

.nav-footer__link {
  transition: color var(--duration-fast);
}

.nav-footer__link:hover {
  color: var(--accent-cyan);
}


/* ===================
   FOOTER (STORY ZONE & VIDEO)
   =================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--color-story); /* #070707 */
  color: var(--color-sand); /* #E0CCBB */
  padding: clamp(6rem, 13.89vw, 12rem) var(--gutter) clamp(3rem, 5.56vw, 6rem);
  z-index: 1;
}

/* Video Background with Radial Gradient Mask */
.site-footer__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.site-footer__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6; /* Dim the video slightly */
  mix-blend-mode: screen; /* Helps particle effect blend with dark bg */
}

/* The Exo Ape radial gradient fade */
.site-footer__mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    var(--color-story) 70%,
    var(--color-story) 100%
  );
  z-index: 0;
}

/* Ambient breathing glow effect */
@keyframes footer-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.3;  transform: scale(1.05); }
}

.site-footer__bg::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: footer-glow 8s ease-in-out infinite;
  pointer-events: none;
}

.site-footer__content {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.footer-top__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  text-transform: uppercase;
  max-width: 90%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  border-top: 1px solid var(--color-sand-06);
  padding-top: var(--space-12);
}

@media (min-width: 601px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--color-sand);
}

.footer-brand__tagline {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--color-sand-08);
  max-width: 320px;
}

.footer-backers {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding-top: var(--space-4);
}

.footer-backers img {
  height: clamp(24px, 2vw, 32px);
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%) sepia(10%) brightness(1.2); /* Adjust logos for sand theme */
  transition: opacity var(--duration-fast) var(--ease-out-expo);
}

.footer-backers img:hover {
  opacity: 1;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-sand-06);
  margin-bottom: var(--space-6);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-col__link {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-sand);
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

/* Reusing the link-underline utility from design-system, but specific color */
.footer-col__link::after {
  background: var(--color-sand);
}

.footer-bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-bottom__text {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-sand-06);
}


/* ===================
   CHATBOT WIDGET
   =================== */
.chatbot-trigger {
  position: fixed;
  bottom: var(--space-8);
  right: var(--gutter); /* Align with main layout gutter */
  z-index: var(--z-chatbot);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-out-expo);
  /* Make sure it's visible against any zone */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.chatbot-trigger:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-cyan);
}

.chatbot-trigger__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

.chatbot-trigger__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem; /* Fixed size, not viewport scaled to keep widget compact */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.chatbot-panel {
  position: fixed;
  bottom: var(--space-8);
  right: var(--gutter);
  z-index: var(--z-chatbot);
  width: min(480px, calc(100vw - var(--gutter) * 2));
  height: min(640px, calc(100vh - var(--space-16)));
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    opacity var(--duration-normal) var(--ease-out-expo),
    visibility var(--duration-normal);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 229, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chatbot-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.chatbot-panel__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chatbot-panel__close {
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration-fast);
}

.chatbot-panel__close:hover {
  color: var(--text-primary);
}

.chatbot-panel__body {
  flex: 1;
  overflow: hidden;
  overscroll-behavior: contain;
}


/* ===================
   IMAGE TRACK (Portfolio / Lab)
   =================== */
.image-track-section {
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
}

.image-track {
  display: flex;
  gap: 4vw;
  position: relative;
  user-select: none;
  cursor: grab;
  will-change: transform;
}

.image-track:active {
  cursor: grabbing;
}

/* Card wrapper for each image */
.image-track__card {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.image-track__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.15); /* Ambient inner glow */
  transition: box-shadow 0.4s var(--ease-out-expo);
}

.image-track__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.7) 0%,
    rgba(10, 10, 15, 0.0) 50%
  );
  opacity: 0;
  transition: opacity 600ms var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}

.image-track__card:hover::after {
  opacity: 1;
}

.image-track__card:hover::before {
  box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.5); /* Stronger inner glow on hover */
}

.image-track__card:hover .image-track__image {
  transform: scale(1.05);
}

.image-track__card:hover .image-track__overlay {
  opacity: 1;
  transform: translateY(0);
}

.image-track__image {
  width: 40vw;
  height: 56vw;
  max-width: 600px;
  max-height: 840px;
  object-fit: cover;
  object-position: 100% center;
  pointer-events: none;
  display: block;
  transition: transform 800ms var(--ease-out-expo);
  will-change: transform, object-position;
}

/* Label overlay — appears on hover */
.image-track__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms var(--ease-out-expo),
    transform 600ms var(--ease-out-expo);
  z-index: 2;
  pointer-events: none;
}

.image-track__number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.image-track__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.image-track__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-white-06);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .image-track__image {
    width: 70vw;
    height: 98vw;
  }
}

/* Accessibility: arrow navigation */
.image-track__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

.image-track__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out-expo),
    color var(--duration-fast) var(--ease-out-expo);
}

.image-track__arrow:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  .image-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    cursor: auto;
    left: 0;
    transform: none;
    padding: 0 var(--gutter);
  }

  .image-track__image {
    scroll-snap-align: center;
    object-position: center center;
  }

  .image-track__nav {
    display: none;
  }
}


/* ===================
   CLICK-TO-EXPAND OVERLAY
   Full-screen overlay for the image expansion animation.
   =================== */
.track-expand {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

.track-expand__image {
  position: fixed;
  z-index: 9999;
  object-fit: cover;
}

.track-expand__content {
  position: fixed;
  bottom: 10vh;
  left: var(--gutter);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.track-expand__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.track-expand__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.track-expand__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  color: var(--color-white-06);
  letter-spacing: 0.05em;
}


/* ===================
   PRODUCT INDEX (Obys/Exo Ape Style)
   For the Light Zone on the Homepage & Products page.
   =================== */
.product-index {
  display: flex;
  flex-direction: column;
}

.product-index__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-6);
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-medium);
  cursor: pointer;
  text-decoration: none;
  transition: padding-left var(--duration-normal) var(--ease-out-expo);
}

.product-index__item:first-child {
  border-top: 1px solid var(--border-medium);
}

@media (min-width: 601px) {
  .product-index__item:hover {
    padding-left: var(--space-8);
  }
}

.product-index__number {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  min-width: 3rem;
  /* Colour inherited from parent zone */
}

.product-index__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  transition: opacity var(--duration-fast) var(--ease-out-expo);
}

.product-index__item:hover .product-index__name {
  opacity: 0.8;
}

.product-index__meta {
  margin-left: auto;
  display: flex;
  gap: var(--space-6);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

@media (min-width: 601px) {
  .product-index__item:hover .product-index__meta {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-index__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hover background image reveal - locked to viewport */
.product-index__hover-img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 40vw;
  height: 56vw;
  max-width: 600px;
  max-height: 840px;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

.product-index__hover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.product-index__item:hover .product-index__hover-img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Hide hover meta/img on mobile */
@media (max-width: 600px) {
  .product-index__meta,
  .product-index__hover-img {
    display: none;
  }
}

/* ===================
   VISION SCANNER EFFECT (Cyber-Physical Thesis)
   Cinematic crossfade for side-by-side layout
   =================== */
.vision-scanner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15); /* Soft shadow for light zone */
  transform: translateZ(0); /* Hardware acceleration */
}

.vision-scanner__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.vision-scanner__ai {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  /* Pulses the opacity from 0 to 1 to reveal the AI tracking */
  animation: ai-scan-pulse 8s ease-in-out infinite;
}

@keyframes ai-scan-pulse {
  0%, 10% { opacity: 0; }           /* Raw street */
  40%, 60% { opacity: 1; }          /* AI tracked */
  90%, 100% { opacity: 0; }         /* Raw street */
}

/* Pause and reveal on hover */
@media (hover: hover) {
  .vision-scanner:hover .vision-scanner__ai {
    opacity: 1 !important;
    animation: none !important;
    transition: opacity var(--duration-slow) var(--ease-out-expo);
  }
}

/* ===================
   THESIS MARQUEE
   =================== */
.thesis-section {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
}

.thesis-section__static-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.thesis-section__static-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.thesis-track {
  display: flex;
  gap: 4vw;
  position: relative;
  user-select: none;
  cursor: grab;
  will-change: transform;
  z-index: 1;
}

.thesis-track:active {
  cursor: grabbing;
}

.thesis-card {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  cursor: default; /* No click-to-expand */
  width: 50vw;
  height: 70vh;
  max-width: 800px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.thesis-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.15); /* Ambient inner glow */
  transition: box-shadow 0.4s var(--ease-out-expo);
}

.thesis-card:hover::before {
  box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.5); /* Stronger inner glow on hover */
}

.thesis-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% center; 
  pointer-events: none;
  display: block;
  z-index: 0;
  will-change: object-position;
}

.thesis-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: var(--space-8);
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.7) 70%, transparent 100%);
  width: 100%;
  height: 60%;
  text-align: left;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
}

.thesis-card__eyebrow {
  display: block;
  align-self: start;
  margin-bottom: var(--space-2);
}

.thesis-card__title {
  align-self: start;
  max-width: 90%;
}

.thesis-card__text {
  opacity: 1;
  color: rgba(255, 255, 255, 0.85);
  max-width: 95%;
  align-self: end;
}

@media (max-width: 768px) {
  .thesis-card {
    width: 85vw;
    height: 60vh;
  }
  .thesis-card__overlay {
    padding: var(--space-6) var(--space-4);
    height: 65%;
  }
}

/* ===================
   PRODUCT META HEADER (Unified)
   =================== */
.product-meta-header-wrapper {
  padding-top: clamp(4.5rem, 5.5vw, 6.5rem); /* Ensure it clears the fixed nav bar without excess gap */
  padding-bottom: var(--space-4);
  position: relative;
  z-index: 10;
}

.product-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.product-meta-header__back {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
}

.product-status-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.product-status-badge:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-status-badge__dot {
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--status-dot-color, var(--accent-cyan));
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px var(--status-dot-color, var(--accent-cyan));
  animation: status-pulse 2s infinite ease-in-out;
}

.product-status-badge__text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--color-white);
  text-transform: uppercase;
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.9);
    box-shadow: 0 0 4px var(--status-dot-color, var(--accent-cyan));
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--status-dot-color, var(--accent-cyan));
  }
}

@media (max-width: 768px) {
  .product-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

/* ===================
   DISTRIBUTOR EDITION ZONE (Washed Teal)
   =================== */
.zone-distributor {
  background-color: #D3E2E4 !important;
  color: #0F2527 !important;
}

.zone-distributor .t-eyebrow {
  color: #008B9B !important;
}

.zone-distributor .t-h2, 
.zone-distributor .t-h3, 
.zone-distributor .t-h4 {
  color: #06181A !important;
}

.zone-distributor .t-body, 
.zone-distributor .t-subhead {
  color: #173639 !important;
}

/* White Card Overrides in the Teal Zone */
.zone-distributor .salonetic-details-box,
.zone-distributor .salonetic-feature-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(15, 37, 39, 0.15) !important;
  color: #0F2527 !important;
  box-shadow: 0 15px 35px rgba(15, 37, 39, 0.06) !important;
  border-radius: 6px;
  padding: var(--space-8);
}

.zone-distributor .salonetic-details-box h3,
.zone-distributor .salonetic-feature-card h3 {
  color: #06181A !important;
  border-bottom: 1px solid rgba(15, 37, 39, 0.1) !important;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
}

.zone-distributor .salonetic-feature-card ul li {
  color: #173639 !important;
}

.zone-distributor .distributor-graphic {
  width: 100%;
  max-width: 500px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15, 37, 39, 0.08);
  border: 1px solid rgba(15, 37, 39, 0.1);
  display: block;
  margin: 0 auto;
}
