/* ============================================================
   Virtual Labs — Global Stylesheet
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:       #ffffff;
  --off-white:   #f5f5f7;
  --black:       #000000;
  --off-black:   #1d1d1f;
  --mid-gray:    #7c7c81;
  --light-gray:  #d2d2d7;
  --nav-height:  48px;
  --font:        'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont,
                 'Helvetica Neue', 'Segoe UI', sans-serif;
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--off-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}


/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
  background: rgba(255, 255, 255, 0.0);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav.dark-bg {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav.dark-bg.scrolled {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--off-black);
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}

.nav-logo .logo-default  { opacity: 1; }
.nav-logo .logo-inverted {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.nav.dark-bg .nav-logo .logo-default  { opacity: 0; }
.nav.dark-bg .nav-logo .logo-inverted { opacity: 1; }

.nav.dark-bg .nav-logo,
.nav.dark-bg .nav-link {
  color: var(--white);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1px;
  color: var(--off-black);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--mid-gray);
}

.nav.dark-bg .nav-link:hover {
  color: rgba(255,255,255,0.7);
}

/* Products dropdown trigger */
.nav-item-dropdown {
  position: relative;
}

.nav-link-products {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 9px;
  transition: transform 0.2s var(--ease-out);
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 12px;
  background: transparent;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease-out),
              transform 0.2s var(--ease-out),
              visibility 0.2s;
  pointer-events: none;
}

.dropdown-inner {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.nav-item-dropdown:hover .dropdown,
.nav-item-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--off-black);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.1px;
}

.dropdown a:hover {
  background: var(--off-white);
  color: var(--black);
}

/* Nav on dark panels — dropdown stays light */
.nav.dark-bg .dropdown-inner {
  background: rgba(255,255,255,0.96);
}

.nav.dark-bg .dropdown a {
  color: var(--off-black);
}


/* ============================================================
   Page Wrapper & Sections
   ============================================================ */

.page-wrap {
  padding-top: var(--nav-height);
}

/* Full-bleed sections */
section {
  position: relative;
  width: 100%;
}

.section-light {
  background: var(--white);
  color: var(--off-black);
}

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

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

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: min(120px, max(32px, 8vh)) 40px;
}

.section-inner.narrow {
  max-width: 720px;
}

.section-inner.mid {
  max-width: 1000px;
}

.section-inner.wide {
  max-width: 1280px;
}


/* ============================================================
   Typography
   ============================================================ */

.eyebrow {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 20px;
}

.section-dark .eyebrow {
  color: rgba(255,255,255,0.45);
}

h1, .h1 {
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h3, .h3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h4, .h4 {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--mid-gray);
  max-width: 640px;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.55);
}

p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--mid-gray);
}

.section-dark p {
  color: rgba(255,255,255,0.5);
}

.text-white { color: var(--white); }
.text-black { color: var(--black); }


/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.btn-dark {
  background: #1c1c1e; /* very dark gray, opaque */
  color: var(--white) !important;
}

.btn-dark:hover {
  background: #2c2c2e; /* slightly lighter on hover */
  color: var(--white);
}

.btn-light {
  background: #f0f0f2; /* slightly darker at rest */
  color: var(--off-black) !important;
}

.btn-light:hover {
  background: #ebebed;
}

.btn-outline-light {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--off-black) !important;
  border: 1px solid rgba(0,0,0,0.25);
}

.btn-outline-dark:hover {
  border-color: var(--off-black);
  background: rgba(0,0,0,0.03);
}

@media (max-width: 720px) {
  /* Global btn-light consistent light gray on mobile */
  .btn-light {
    background: #f5f5f7 !important;
  }

  /* ── Mobile button rules ─────────────────────────────────────
     Dark sections  → solid dark button, white text
     Light sections → solid light button, dark text
     Outline = semi-frosted version of same tone.
     Uses body > * chain for maximum specificity without JS.
     ──────────────────────────────────────────────────────────── */

  /* DARK CONTEXTS */
  .section-dark .btn-dark,
  .section-dark .btn-light,
  .hero-dark .btn-dark,
  .hero-dark .btn-light,
  .mission-hero-wrap .btn-dark,
  .mission-hero-wrap .btn-light {
    background: #1c1c1e !important; /* very dark gray opaque */
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.15) !important;
  }
  .section-dark .btn-outline-dark,
  .section-dark .btn-outline-light,
  .hero-dark .btn-outline-dark,
  .hero-dark .btn-outline-light,
  .mission-hero-wrap .btn-outline-dark,
  .mission-hero-wrap .btn-outline-light {
    background: #1c1c1e !important; /* very dark gray opaque */
    border-color: rgba(255,255,255,0.22) !important;
    color: var(--white) !important;
  }

  /* LIGHT CONTEXTS */
  .section-light .btn-dark,
  .section-light .btn-light,
  .section-off .btn-dark,
  .section-off .btn-light,
  [class*="bg-wp-"] .btn-dark,
  [class*="bg-wp-"] .btn-light,
  .hero.section-light .btn-dark,
  .hero.section-light .btn-light {
    background: #f5f5f7 !important; /* very very light gray opaque */
    color: var(--off-black) !important;
    border-color: transparent !important;
  }
  .section-light .btn-outline-dark,
  .section-light .btn-outline-light,
  .section-off .btn-outline-dark,
  .section-off .btn-outline-light,
  [class*="bg-wp-"] .btn-outline-dark,
  [class*="bg-wp-"] .btn-outline-light,
  .hero.section-light .btn-outline-dark,
  .hero.section-light .btn-outline-light {
    background: #f5f5f7 !important; /* very very light gray opaque */
    border-color: rgba(0,0,0,0.13) !important;
    color: var(--off-black) !important;
  }
}

.btn-link {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  color: #0071e3;
  gap: 4px;
}

.btn-link:hover {
  color: #0077ed;
  text-decoration: underline;
}

.section-dark .btn-link {
  color: #2997ff;
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  background: var(--white);
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 2.9s var(--ease-out) 0.2s forwards;
}

.hero h1 {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 3s var(--ease-out) 0.4s forwards;
}

.hero .lead {
  margin: 28px auto 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  animation: fadeIn 1s var(--ease-out) 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--light-gray);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Hero dark variant */
.hero-dark {
  background: var(--black);
  color: var(--white);
}

.hero-dark .hero-eyebrow {
  color: rgba(255,255,255,0.45);
}

.hero-dark .lead {
  color: rgba(255,255,255,0.55);
}


/* ============================================================
   Stat Rows
   ============================================================ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 60px;
  margin-top: 80px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Five-up stat row (home quick stats) — fit 5 tiles on one desktop line,
   tighter gaps, same font sizes */
.stat-row--five {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 16px;
}

.stat-row--five .stat-item {
  flex: 0 1 auto;
  min-width: 0;
}

.stat-row--five .stat-number {
  font-weight: 500; /* heavier top-line stats (per David 9/30) */
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 3.6vw, 52px);
}

.stat-number .stat-unit {
  font-size: 0.7em;
  font-weight: inherit; /* same weight as the digits (per David 9/30) */
  letter-spacing: -0.02em;
}

.stat-row--five .stat-label {
  max-width: 22ch;
}

@media (max-width: 1023px) {
  .stat-row--five {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px 40px;
  }
}

.stat-number {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--mid-gray);
  line-height: 1.4;
}

.section-dark .stat-label {
  color: rgba(255,255,255,0.45);
}


/* ============================================================
   Feature Splits (image + text side by side)
   ============================================================ */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-visual {
  border-radius: 20px;
  overflow: hidden;
  background: var(--off-white);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-dark .feature-visual {
  background: #1c1c1e;
}

.feature-visual-placeholder {
  font-size: 13px;
  font-weight: 400;
  color: var(--light-gray);
  letter-spacing: 0.05em;
}

.section-dark .feature-visual-placeholder {
  color: #3a3a3c;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-copy .eyebrow { margin-bottom: 8px; }


/* ============================================================
   Product Cards Grid
   ============================================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 60px;
}

.product-card {
  background: var(--off-white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  background: #ebebed;
}

.product-card-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.product-card h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.product-card p {
  font-size: 15px;
  font-weight: 400;
  color: var(--mid-gray);
  line-height: 1.55;
}

.product-card-link {
  font-size: 14px;
  font-weight: 400;
  color: #0071e3;
  margin-top: auto;
}

/* Dark card variant */
.product-card.dark {
  background: #111111;
  color: var(--white);
}

.product-card.dark:hover {
  background: #1c1c1e;
}

.product-card.dark p {
  color: rgba(255,255,255,0.45);
}

.product-card.dark .product-card-tag {
  color: rgba(255,255,255,0.35);
}

.product-card.dark .product-card-link {
  color: #2997ff;
}


/* ============================================================
   Product Detail Page
   ============================================================ */

.product-hero {
  padding: 100px 40px 80px;
  text-align: center;
  background: var(--white);
}

.product-hero .eyebrow {
  margin-bottom: 16px;
}

.product-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
}

.product-hero .lead {
  margin: 24px auto 0;
}

.product-visual-full {
  width: 100%;
  max-width: 1080px;
  margin: 80px auto;
  aspect-ratio: 16/9;
  background: var(--off-white);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-visual-full .placeholder-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--light-gray);
  letter-spacing: 0.06em;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--light-gray);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 60px;
}

.spec-item {
  background: var(--white);
  padding: 32px 28px;
}

/* Dark spec-items (#111 bg) get a thin holographic border */
.section-dark .spec-item,
[class*="bg-wp-"] .spec-item {
  position: relative;
}

.section-dark .spec-item::after,
[class*="bg-wp-"] .spec-item::after {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  pointer-events: none;
  background: linear-gradient(var(--holo-angle, 135deg),
    rgba(255,170,220,0.75) 0%,
    rgba(150,200,255,0.75) 20%,
    rgba(200,165,255,0.70) 40%,
    rgba(135,235,230,0.70) 60%,
    rgba(255,180,145,0.70) 80%,
    rgba(255,170,220,0.75) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: 2;
}

/* ── Mobile: spec-item bezel driven by gamma-only gyro ───────
   --holo-angle on mobile is now set from gamma (left/right tilt)
   only — beta (front/back) was causing scroll shimmer.
   No override needed here; var(--holo-angle) works correctly.
   ──────────────────────────────────────────────────────────── */

.spec-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.spec-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--off-black);
  line-height: 1.4;
}


/* ============================================================
   Team Cards
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--off-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 48px;
  font-weight: 300;
  color: var(--light-gray);
}

.team-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--off-black);
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid-gray);
  margin-top: -10px;
}

.team-bio {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid-gray);
  line-height: 1.6;
}


/* ============================================================
   Dividers & Separators
   ============================================================ */

.divider {
  width: 100%;
  height: 1px;
  background: var(--light-gray);
}

.section-dark .divider {
  background: rgba(255,255,255,0.1);
}


/* ============================================================
   CTA Sections
   ============================================================ */

.cta-section {
  text-align: center;
  padding: min(140px, max(32px, 8vh)) 40px;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section .lead {
  margin: 0 auto 44px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--off-black);
  color: var(--white);
  padding: 60px 40px 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 240px;
}

.footer-contact {
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer-contact a {
  color: inherit;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.6);
}


/* ============================================================
   Scroll Animations
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* ============================================================
   Keyframes
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1);   }
  50%       { transform: scaleY(0.6); }
}


/* ============================================================
   Utilities
   ============================================================ */

.text-center { text-align: center; }
.text-left   { text-align: left;   }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }


/* ============================================================
   Mobile Nav — Hamburger + Overlay
   ============================================================ */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--off-black);
  transition: background 0.3s;
}
.nav.dark-bg .nav-hamburger span { background: var(--white); }

#nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
#nav-mobile.open { display: flex; }
#nav-mobile a {
  font-size: 28px;
  font-weight: 200;
  color: var(--off-black);
  letter-spacing: -0.02em;
}
#nav-mobile .mobile-close {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-split.reverse { direction: ltr; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .nav-hamburger { display: flex; }

  /* Padding so buttons don't sit flush at bottom of dark hero sections */
  .hero-actions { padding-bottom: 48px; }
  .hero-dark { padding-bottom: 48px; }

  /* Darken body text on light/wallpaper sections for mobile legibility */
  .section-light p,
  .section-light .lead,
  .section-light .eyebrow,
  [class*="bg-wp-"] p,
  [class*="bg-wp-"] .lead,
  [class*="bg-wp-"] .eyebrow {
    color: #3a3a3c;
  }

  /* ── Wallpaper: smaller + tiling on mobile so more pattern transitions are visible ── */
  /* background handled via ::before pseudo-element below */



  /* Move wallpaper to ::before so filter only hits the background, not videos/content */
  .bg-wp-01, .bg-wp-02, .bg-wp-03, .bg-wp-04,
  .bg-wp-05, .bg-wp-06, .bg-wp-07,
  .bg-wp-01-r, .bg-wp-02-r, .bg-wp-03-r, .bg-wp-04-r,
  .bg-wp-05-r, .bg-wp-06-r, .bg-wp-07-r,
  .bg-wp-tall-01, .bg-wp-tall-02,
  .bg-wp-tall-01-r, .bg-wp-tall-02-r {
    background-image: none !important;
    position: relative;
    isolation: isolate;
  }

  /* All mobile wallpaper ::before elements — 3:1 portrait images, cover fills
     the section completely, no white space ever visible */
  .bg-wp-01::before,  .bg-wp-02::before,  .bg-wp-03::before,
  .bg-wp-04::before,  .bg-wp-05::before,  .bg-wp-06::before,
  .bg-wp-07::before,
  .bg-wp-01-r::before, .bg-wp-02-r::before, .bg-wp-03-r::before,
  .bg-wp-04-r::before, .bg-wp-05-r::before, .bg-wp-06-r::before,
  .bg-wp-07-r::before,
  .bg-wp-tall-01::before, .bg-wp-tall-02::before,
  .bg-wp-tall-01-r::before, .bg-wp-tall-02-r::before,
  .bg-wp-team::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    filter: saturate(1.8) contrast(1.15) brightness(0.98);
    pointer-events: none;
  }

  .bg-wp-team { background-image: none !important; position: relative; isolation: isolate; }
  .bg-wp-team::before { background-image: url('../assets/images/mobile-wp-portrait-team.png'); }

  .bg-wp-01::before    { background-image: url('../assets/images/mobile-wp-portrait-01.png'); }
  .bg-wp-02::before    { background-image: url('../assets/images/mobile-wp-portrait-02.png'); }
  .bg-wp-03::before    { background-image: url('../assets/images/mobile-wp-portrait-03.png'); }
  .bg-wp-04::before    { background-image: url('../assets/images/mobile-wp-portrait-04.png'); }
  .bg-wp-05::before    { background-image: url('../assets/images/mobile-wp-portrait-01.png'); }
  .bg-wp-06::before    { background-image: url('../assets/images/mobile-wp-portrait-02.png'); }
  .bg-wp-07::before    { background-image: url('../assets/images/mobile-wp-portrait-03.png'); }
  .bg-wp-01-r::before  { background-image: url('../assets/images/mobile-wp-portrait-01-r.png'); }
  .bg-wp-02-r::before  { background-image: url('../assets/images/mobile-wp-portrait-02-r.png'); }
  .bg-wp-03-r::before  { background-image: url('../assets/images/mobile-wp-portrait-03-r.png'); }
  .bg-wp-04-r::before  { background-image: url('../assets/images/mobile-wp-portrait-04-r.png'); }
  .bg-wp-05-r::before  { background-image: url('../assets/images/mobile-wp-portrait-01-r.png'); }
  .bg-wp-06-r::before  { background-image: url('../assets/images/mobile-wp-portrait-02-r.png'); }
  .bg-wp-07-r::before  { background-image: url('../assets/images/mobile-wp-portrait-03-r.png'); }
  .bg-wp-tall-01::before    { background-image: url('../assets/images/mobile-wp-portrait-tall-01.png'); }
  .bg-wp-tall-02::before    { background-image: url('../assets/images/mobile-wp-portrait-tall-02.png'); }
  .bg-wp-tall-01-r::before  { background-image: url('../assets/images/mobile-wp-portrait-tall-01-r.png'); }
  .bg-wp-tall-02-r::before  { background-image: url('../assets/images/mobile-wp-portrait-tall-02-r.png'); }

  .section-inner { padding: min(80px, max(28px, 7vh)) 24px; }

  .hero { padding: 0 24px; }

  .nav-inner { padding: 0 16px; }

  .nav-links {
    display: none; /* mobile menu handled by hamburger — future enhancement */
  }

  .footer { padding: 48px 24px 32px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-row { gap: 32px 40px; }
  .threer-row { margin-top: -32px !important; gap: 24px 40px; }
}


/* ============================================================
   Citations & References
   ============================================================ */

.cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--off-black);
  color: var(--white);
  font-size: 9px;
  font-weight: 400;
  border-radius: 50%;
  text-decoration: none;
  vertical-align: super;
  margin-left: 3px;
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1;
}

.cite:hover {
  background: var(--mid-gray);
}

.section-dark .cite {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

.section-dark .cite:hover {
  background: rgba(255,255,255,0.45);
}

.references-section {
  background: var(--off-white);
  padding: 56px 0;
  border-top: 1px solid var(--light-gray);
}

.references-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.references-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 28px;
}

.ref-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ref-item {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.65;
}

.ref-num {
  min-width: 18px;
  font-weight: 400;
  color: var(--off-black);
  flex-shrink: 0;
  padding-top: 1px;
}

.ref-item a {
  color: var(--off-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--light-gray);
}

.ref-item a:hover {
  text-decoration-color: var(--off-black);
}


/* ============================================================
   Holographic Wallpaper Backgrounds
   bg-wp-XX classes applied to .section-light / .section-off
   background-attachment: scroll so they move with the page
   ============================================================ */

.bg-wp-01,
.bg-wp-02,
.bg-wp-03,
.bg-wp-04,
.bg-wp-05,
.bg-wp-06,
.bg-wp-07 {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.bg-wp-01 { background-image: url('../assets/images/wallpaper-new-01.png'); }
.bg-wp-02 { background-image: url('../assets/images/wallpaper-new-02.png'); }
.bg-wp-03 { background-image: url('../assets/images/wallpaper-new-03.png'); }
.bg-wp-04 { background-image: url('../assets/images/wallpaper-new-04.png'); }
.bg-wp-05 { background-image: url('../assets/images/wallpaper-new-05.png'); }
.bg-wp-06 { background-image: url('../assets/images/wallpaper-new-06.png'); }
.bg-wp-07 { background-image: url('../assets/images/wallpaper-new-07.png'); }

/* ── Team hero — rose/magenta wallpaper (hue-05) ─────────────
   Distinct from all other pages; overrides bg-wp-03 on team.html.
   ──────────────────────────────────────────────────────────── */
.bg-wp-team {
  background-image: url('../assets/images/wallpaper-hue-05.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Tall portrait wallpapers for extra-long sections (product grids etc.) */
.bg-wp-tall-01 {
  background-image: url('../assets/images/wallpaper-tall-01.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.bg-wp-tall-02 {
  background-image: url('../assets/images/wallpaper-tall-02.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}





/* Also feather spec-grid items and product cards in wallpaper sections */
.bg-wp-04 .spec-grid,
.bg-wp-05 .spec-grid,
.bg-wp-03 .spec-grid {
  border-color: transparent;
  background: transparent;
}

.bg-wp-04 .spec-item,
.bg-wp-05 .spec-item,
.bg-wp-03 .spec-item {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}








/* ============================================================
   Feathered Edge Masks — mask-image with intersecting linear gradients
   ============================================================ */

.video-feather {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,  transparent 0%, black 24%, black 76%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 24%, black 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right,  transparent 0%, black 24%, black 76%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 24%, black 76%, transparent 100%);
  mask-composite: intersect;
}

.hero-mouse-wrap {
  overflow: visible;
}

.bg-wp-01 .feature-visual,
.bg-wp-02 .feature-visual,
.bg-wp-03 .feature-visual,
.bg-wp-04 .feature-visual,
.bg-wp-05 .feature-visual,
.bg-wp-06 .feature-visual,
.bg-wp-07 .feature-visual,
.bg-wp-tall-01 .feature-visual,
.bg-wp-tall-02 .feature-visual {
  background: transparent !important;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,  transparent 0%, black 22%, black 78%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right,  transparent 0%, black 22%, black 78%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
  mask-composite: intersect;
}

.bg-wp-06 .team-avatar,
.bg-wp-07 .team-avatar {
  background: transparent !important;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,  transparent 0%, black 26%, black 74%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 26%, black 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right,  transparent 0%, black 26%, black 74%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 26%, black 74%, transparent 100%);
  mask-composite: intersect;
}

/* Reversed (flipped L-R) wallpaper variants — alternate direction per section */
.bg-wp-01-r { background-image: url('../assets/images/wallpaper-new-01-r.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-02-r { background-image: url('../assets/images/wallpaper-new-02-r.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-03-r { background-image: url('../assets/images/wallpaper-new-03-r.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-04-r { background-image: url('../assets/images/wallpaper-new-04-r.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-05-r { background-image: url('../assets/images/wallpaper-new-05-r.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-06-r { background-image: url('../assets/images/wallpaper-new-06-r.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-07-r { background-image: url('../assets/images/wallpaper-new-07-r.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-tall-01-r { background-image: url('../assets/images/wallpaper-tall-01-r.png'); background-size: cover; background-position: top center; background-repeat: no-repeat; background-attachment: scroll; }
.bg-wp-tall-02-r { background-image: url('../assets/images/wallpaper-tall-02-r.png'); background-size: cover; background-position: top center; background-repeat: no-repeat; background-attachment: scroll; }

/* References section — dark variant */
.references-section.section-dark {
  background: var(--black) !important;
  border-top-color: rgba(255,255,255,0.1);
}
.references-section.section-dark .references-title {
  color: rgba(255,255,255,0.35);
}
.references-section.section-dark .ref-item {
  color: rgba(255,255,255,0.45);
}
.references-section.section-dark .ref-num {
  color: rgba(255,255,255,0.6);
}
.references-section.section-dark .ref-item a {
  color: rgba(255,255,255,0.6);
  text-decoration-color: rgba(255,255,255,0.2);
}
.references-section.section-dark .ref-item a:hover {
  color: var(--white);
  text-decoration-color: rgba(255,255,255,0.5);
}


/* ============================================================
   Increased font weight on dark backgrounds — improves legibility
   Bumps headings +100 weight, body text 400→500, eyebrow/labels 400→500
   ============================================================ */

.section-dark h1, .hero-dark h1,
.section-dark h2, .hero-dark h2,
.section-dark h3, .hero-dark h3,
.section-dark h4, .hero-dark h4,
.section-dark .h1, .section-dark .h2,
.section-dark .h3, .section-dark .h4 {
  font-weight: 400;   /* headings were 300 → now 400 */
}

.section-dark .eyebrow,
.hero-dark .eyebrow,
.section-dark .hero-eyebrow {
  font-weight: 500;   /* was 400 */
}

.section-dark p,
.hero-dark p {
  font-weight: 500;   /* was 400 */
}

.section-dark .lead,
.hero-dark .lead {
  font-weight: 500;   /* was 400 */
}

.section-dark .stat-number {
  font-weight: 400;   /* was 300 */
}

.section-dark .stat-label {
  font-weight: 500;   /* was 400 */
}

.section-dark .feature-copy p {
  font-weight: 500;
}

.section-dark .team-name {
  font-weight: 500;   /* was 400 */
}

.section-dark .team-role,
.section-dark .team-bio {
  font-weight: 500;   /* was 400 */
}

.section-dark .spec-value {
  font-weight: 600;   /* was 500 */
}

.section-dark .spec-label {
  font-weight: 500;   /* was 400 */
}

.section-dark .footer-col a,
.section-dark .footer-tagline,
.section-dark .footer-copy {
  font-weight: 400;   /* footer stays readable but not too heavy */
}

/* References on dark */
.references-section.section-dark .ref-item {
  font-weight: 500;
}


/* ============================================================
   Global heading weight increase — all sections, light and dark.
   h1-h3 move from 300 → 400 throughout.
   This is the midpoint between old light (300) and old dark (400).
   ============================================================ */

h1, .h1,
h2, .h2,
h3, .h3 {
  font-weight: 400;
}

/* References on dark — override with high specificity */
.references-section.section-dark .references-title,
section.references-section.section-dark .ref-item,
section.references-section.section-dark .ref-num,
section.references-section.section-dark p,
section.references-section.section-dark span {
  font-weight: 500 !important;
}


/* ============================================================
   HUE-SHIFTED WALLPAPER EXPERIMENT — 2026-03-24
   To revert: comment out everything between the START and END markers.
   wallpaper-01: unchanged (original pink/purple)
   wallpaper-02: +45° hue (shifts toward warm orange/gold)
   wallpaper-03: +90° hue (shifts toward green/teal)
   wallpaper-04: +135° hue (shifts toward cyan/blue)
   tall-01:      +45°  tall-02: +90°
   ============================================================ */
/* HUE-SHIFT START */

/* Desktop overrides
   -01:       original (untouched)
   -01-r:     rotated 90° CW (same hue, different angle)
   -02:       hue -90° (teal-blue) + rotated 90° CCW
   -02-r:     hue -90° (teal-blue) + rotated 90° CW
   -03:       hue -150° (green) + rotated 90° CCW
   -03-r:     hue -150° (green) + reflected only
   -04:       hue +60° (gold) + rotated 90° CW
   -04-r:     hue +60° (gold) + rotated 90° CCW
   -05:       hue +60° from green = rose/magenta — team page hero
   tall-01:   hue -130° (sage) + hflip
   tall-01-r: hue -130° (sage) + vflip
   tall-02:   hue -60° (blue) + hflip
   tall-02-r: hue -60° (blue) + vflip
*/
.bg-wp-01-r { background-image: url('../assets/images/wallpaper-rot-01-r.png') !important; }
.bg-wp-02   { background-image: url('../assets/images/wallpaper-hue-02.png') !important; }
.bg-wp-03   { background-image: url('../assets/images/wallpaper-hue-03.png') !important; }
.bg-wp-04   { background-image: url('../assets/images/wallpaper-hue-04.png') !important; }
.bg-wp-02-r { background-image: url('../assets/images/wallpaper-hue-02-r.png') !important; }
.bg-wp-03-r { background-image: url('../assets/images/wallpaper-hue-03-r.png') !important; }
.bg-wp-04-r { background-image: url('../assets/images/wallpaper-hue-04-r.png') !important; }
.bg-wp-tall-01   { background-image: url('../assets/images/wallpaper-hue-tall-01.png') !important; }
.bg-wp-tall-02   { background-image: url('../assets/images/wallpaper-hue-tall-02.png') !important; }
.bg-wp-tall-01-r { background-image: url('../assets/images/wallpaper-hue-tall-01-r.png') !important; }
.bg-wp-tall-02-r { background-image: url('../assets/images/wallpaper-hue-tall-02-r.png') !important; }

/* Mobile overrides (::before pseudo-element) */
@media (max-width: 768px) {
  .bg-wp-01-r::before { background-image: url('../assets/images/wallpaper-rot-01-r.png') !important; }
  .bg-wp-02::before   { background-image: url('../assets/images/wallpaper-hue-02.png') !important; }
  .bg-wp-03::before   { background-image: url('../assets/images/wallpaper-hue-03.png') !important; }
  .bg-wp-04::before   { background-image: url('../assets/images/wallpaper-hue-04.png') !important; }
  .bg-wp-02-r::before { background-image: url('../assets/images/wallpaper-hue-02-r.png') !important; }
  .bg-wp-03-r::before { background-image: url('../assets/images/wallpaper-hue-03-r.png') !important; }
  .bg-wp-04-r::before { background-image: url('../assets/images/wallpaper-hue-04-r.png') !important; }
  .bg-wp-tall-01::before   { background-image: url('../assets/images/wallpaper-hue-tall-01.png') !important; }
  .bg-wp-tall-02::before   { background-image: url('../assets/images/wallpaper-hue-tall-02.png') !important; }
  .bg-wp-tall-01-r::before { background-image: url('../assets/images/wallpaper-hue-tall-01-r.png') !important; }
  .bg-wp-tall-02-r::before { background-image: url('../assets/images/wallpaper-hue-tall-02-r.png') !important; }
}

/* wp-04 white veil — removed */

/* HUE-SHIFT END */
