/* ====== Fonts ====== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Montserrat:wght@700;800;900&family=Space+Grotesk:wght@700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Prevent layout shift during font loading */
body {
  font-display: swap;
}

/* ====== DESIGN SYSTEM TOKENS ====== */
:root {
  /* Primary Colors - Modern Editorial Style */
  --color-background: #ffffff;
  --color-text-primary: #2a2a2a;
  --color-text-secondary: #5a5a5a;
  --color-text-tertiary: #6a6a6a;
  --color-text-light: #b0b0b0;

  /* Accent Colors */
  --color-orange-primary: #ff6b35;
  --color-orange-secondary: #f7931e;
  --brand-orange: #ff6b35; /* Keep for compatibility */
  --spotlight-color: rgba(255, 210, 120, 0.85);
  --gradient-orange: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  --gradient-orange-diagonal: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);

  /* Borders & Backgrounds */
  --color-border: #e5e5e5;
  --color-bg-gray: #f8f8f8;
  --color-highlight-bg: #fff3ed;
  --color-gradient-bg: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(255, 107, 53, 0.15);
  --shadow-button: 0 4px 20px rgba(255, 107, 53, 0.3);

  /* Fonts */
  --font-header: 'IBM Plex Sans', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;

  /* Layout */
  --nav-h: 72px;

  /* Fluid Typography */
  --fs-1: clamp(2.0rem, 1.5rem + 1.8vw, 3.2rem);
  --fs-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  --fs-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-body: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-title: clamp(32px, 4vw, 52px);
  --fs-subtitle: clamp(24px, 3vw, 42px);

  /* Spacing */
  --space-1: clamp(8px, 0.5vw, 12px);
  --space-2: clamp(16px, 1vw, 20px);
  --space-3: clamp(24px, 1.5vw, 32px);
  --space-4: clamp(32px, 2vw, 48px);
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --spacing-2xl: 60px;
  --spacing-3xl: 80px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 25px;

  /* Transitions */
  --transition-standard: all 0.3s ease;

  /* Animations */
  --drift-amplitude: 14px;
  --drift-duration: 7s;
}

.text-orange { color: var(--color-orange-primary); }
.bg-orange   { background-color: var(--color-orange-primary); }
.text-gradient {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== AAYUNA Brand Logo ====== */
.aayuna-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff6b35;
  text-shadow:
    1px 1px 0px rgba(255, 107, 53, 0.6),
    0 0 12px rgba(255, 107, 53, 0.25);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.3s ease;
}

.aayuna-brand:hover {
  color: #ff6b35;
  text-shadow:
    1px 1px 0px rgba(255, 107, 53, 0.8),
    0 0 20px rgba(255, 107, 53, 0.4),
    0 0 30px rgba(255, 107, 53, 0.2);
}

/* Navbar brand specific sizing */
.navbar-brand.aayuna-brand {
  font-size: 1.6rem;
  padding: 0.25rem 0;
}

/* Large brand variant for headers/hero contexts */
.aayuna-brand-lg {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ff6b35;
  text-shadow:
    2px 2px 0px rgba(255, 107, 53, 0.7),
    0 0 20px rgba(255, 107, 53, 0.4);
}

/* ====== Base ====== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* ===== Global tiled background ===== */
body {
  background-image: url("{{ url_for('static', filename='images/wafer.jpg') }}");
  background-repeat: repeat;
  background-size: 220px 220px;   /* tweak size of the tile */
  background-attachment: fixed;   /* keeps texture steady while scrolling */
  background-color: #fff;         /* fallback */
}
/* Snap panel base styling - backgrounds handled by section-transitions.css */
.snap-panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100vw;
}

/* Headings use brand color and IBM Plex Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--brand-orange);
}

h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
h4, h5, h6 { font-weight: 500; }

/* Footer */
footer {
  background-color: var(--brand-orange);
  color: #fff;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #e06012;
  border-color: #e06012;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Navbar styling */
.navbar {
  background-color: white !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: none;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

/* Mobile navbar - white background */
@media (max-width: 991px) {
  .navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
}

/* Navbar link chips */
.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 12px;
  transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
  background-color: var(--brand-orange);
  color: #fff !important;
}

/* Navbar brand (logo) */
.navbar-brand {
  font-family: var(--font-header);
  font-weight: 700;
}

/* Dropdown Menu Styling */
.navbar-nav .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: block;
}

/* Show dropdown when Bootstrap adds .show class (click/tap) */
.navbar-nav .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
}

/* Hover to show dropdown (desktop only) */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  .navbar-nav .dropdown > .dropdown-toggle:active {
    pointer-events: none;
  }
}

/* Mobile dropdown adjustments */
@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding-left: 1rem;
    /* Reset to Bootstrap's default behavior on mobile */
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .navbar-nav .dropdown-menu.show {
    display: block;
  }

  .navbar-nav .dropdown-item {
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--brand-orange);
  }
}

.navbar-nav .dropdown-item {
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background-color: var(--brand-orange);
  color: #fff;
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.4rem;
  vertical-align: 0.1rem;
}

.navbar-nav .dropdown-divider {
  border-top: 1px solid rgba(255, 107, 53, 0.15);
  margin: 0.25rem 0;
}

/* Learn More Link */
.learn-more-link {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: none;
  font-style: italic;
  transition: color 0.2s ease;
}

.learn-more-link:hover {
  color: #e55d00;
  text-decoration: underline;
}

/* Scroll offset for anchor links with fixed navbar */
.product-card {
  scroll-margin-top: calc(var(--nav-h) + 2rem);
}

/* ====== Hero / Reveal helpers ====== */
.transition-all { transition: all 0.8s ease-in-out; }
.opacity-0      { opacity: 0; }
.translate-down { transform: translateY(50px); opacity: 0; }

.reveal {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Shrink hero on scroll (kept subtle so it doesn’t vanish) */
.shrink-hero {
  transform: scale(0.92);
  opacity: 0.85;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* ====== Product sections ====== */
.product-section {
  overflow-y: auto;
}

/* One canonical definition + active state */
.product-fullscreen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #f8f9fa;

  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 0;
}
.product-fullscreen.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 10;
}

.product-card {
  width: 80vw;
  background: #fff;
  border-radius: 1rem;
  transition: transform 0.4s ease;
}
.product-card:hover { transform: scale(1.02); }

/* Optional "first reveal" support if you keep a #products wrapper */
#products {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
  width: 100%;
  max-width: 100vw;
}
#products.visible { visibility: visible; opacity: 1; }

/* ====== Media / Video ====== */
.scroll-video-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-video-wrapper.short-video { height: 75vh; }

.scroll-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Consistent media frame for image/video pairs */
.media-box {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.media-box img,
.media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative borders/glow on all images/videos */
img, video {
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
  transition: border-color 1s ease, box-shadow 1s ease;
}
img:hover, video:hover,
img:focus, video:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

/* Specific sizing for second video (also set inline in HTML) */
#scrollVideo2 {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ====== Pair headline animation (Innovation / Solution) ====== */
/* Initial (hidden) */
#innovationText,
#solutionText {
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

/* When container gets .pair-animate, reveal both */
#pairTrigger.pair-animate #innovationText,
#pairTrigger.pair-animate #solutionText {
  transform: translateX(0) translateY(-100%);
  opacity: 1;
}

/* ====== Team grid polish ====== */
#team-grid img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#team-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.bio-card .card {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* ====== Page layout tweaks ====== */
#heroContent { margin-top: -10rem; } /* adjust to taste */
/* --- Spotlight Sweep --------------------------- */

.logo-spotlight {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.logo-spotlight::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -20%;
  width: 140%;                      /* wider than text box so the sweep exits fully */
  background: linear-gradient(
    60deg,
    transparent 44%,
    var(--spotlight-color) 50%,
    transparent 56%
  );
  filter: blur(4px);
  mix-blend-mode: screen;
  transform: translateX(-110%);     /* start off the left */
  opacity: 0;
  pointer-events: none;
}

.logo-spotlight.run::before {
  animation: aayuna-sweep-ltr 6.5s ease-out forwards;
}

@keyframes aayuna-sweep-ltr {
  0%   { transform: translateX(-110%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(110%);  opacity: 0; }  /* exits to the right */
}

@media (prefers-reduced-motion: reduce) {
  .logo-spotlight.run::before { animation: none; }
}
#brandLogo {
  font-size: clamp(3.5rem, 10vw, 9rem); /* bigger at all breakpoints */
  line-height: 1.05;                    /* keep it tight */
}
/* ===== Product 1: Passive Pluggable Interconnect ===== */
.product-ppi {
  min-height: 100vh;              /* give it presence like your other full-screen sections */
  display: grid;
  place-items: center;
  padding: 6rem 0;
  background: #fff;               /* adjust if needed */
}

.product-ppi .ppi-canvas {
  width: min(100%, 980px);
  aspect-ratio: 16 / 9;           /* keeps a nice stage; adjusts responsively */
}

.ppi-circle {
  position: absolute;
  width: clamp(160px, 28vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ppi-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* positions: top-left and bottom-right */
.ppi-circle-tl { top: 6%;  left: 6%;  }
.ppi-circle-br { bottom: 6%; right: 6%; }

/* Large headline spacing */
.product-ppi h2 {
  line-height: 1.1;
  margin-left: auto;
  margin-right: auto;
  will-change: transform;
}


/* Mobile tweaks */
@media (max-width: 576px) {
  .ppi-circle {
    width: clamp(140px, 40vw, 220px);
  }
  .ppi-circle-tl { top: 4%; left: 4%; }
  .ppi-circle-br { bottom: 4%; right: 4%; }
}
/* ===== Product 1 diagonal layout ===== */
.product-ppi {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background: #fff;
}

.product-ppi .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ppi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Circle look */
.ppi-circle {
  width: clamp(180px, 30vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Left vs Right vertical offset */
.ppi-left {
  margin-top: 17rem;   /* push left lower */
}

.ppi-right {
  margin-bottom: 17rem; /* pull right higher */
}



@media (max-width: 768px) {
  .product-ppi .container {
    grid-template-columns: 1fr;
  }
  .ppi-left, .ppi-right {
    margin: 2rem 0;
  }
}
/* Keep the diagonal offset: left lower, right higher */
.ppi-left  { margin-top: 17rem; }
.ppi-right { margin-bottom: 17rem; }

/* Bottom-right button pinned inside the section */
.ppi-cta {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
}

/* Section baseline */
.product-ppi {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background: #fff;
  position: relative;
}

.ppi-circle {
  width: clamp(200px, 28vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: absolute;
}

/* Symmetric positions */
.ppi-bottom-left {
  bottom: 10%;
  left: 10%;
}

.ppi-top-right {
  top: 10%;
  right: 10%;
}

/* Learn More button in bottom-right */
.ppi-cta {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
}

/* Responsive tweak: stack images closer on small screens */
@media (max-width: 768px) {
  .ppi-bottom-left {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
  }
  .ppi-top-right {
    top: 5%;
    right: 50%;
    transform: translateX(50%);
  }
}
/* Section baseline */
.product-ppi {
  min-height: 100vh;
  background: #fff;
  position: relative;
  padding: 6rem 0;
}

/* Circles */
.ppi-circle {
  width: clamp(200px, 28vw, 320px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: absolute;
}

.ppi-bottom-left { bottom: 10%; left: 10%; }
.ppi-top-right   { top: 10%; right: 10%; }

/* Headings */
.ppi-text {
  position: absolute;
  line-height: 1.1;
  margin: 0;
  transition: transform 600ms ease;
}

.ppi-top-left {
  top: 5%;
  left: 10%;
  text-align: left;
}

.ppi-bottom-right {
  bottom: 10%;
  right: 10%;
  text-align: right;
}

/* Button bottom-right */
.ppi-cta {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ppi-circle {
    position: static;
    margin: 2rem auto;
    display: block;
  }
  .ppi-text {
    position: static;
    text-align: center;
    margin: 1rem 0;
  }
  .ppi-cta {
    position: static;
    text-align: center;
    margin-top: 2rem;
  }
}
/* Make the section the positioning container */
#product1 { position: relative; background:#fff; }

/* Circles */
#product1 .ppi-circle{
  position: absolute;
  width: clamp(200px, 28vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Precise anchoring (no conflicts with old classes) */
#product1 .ppi-img-left  { left: 8%;  bottom: 10%; }
#product1 .ppi-img-right { right: 8%; top:    10%; }

/* Headings */
#product1 .ppi-text-top-left{
  position:absolute; top: 5%; left: 8%;
  margin:0; line-height:1.1; text-align:left;
}
#product1 .ppi-text-bottom-right{
  position:absolute; bottom: 8%; right: 8%;
  margin:0; line-height:1.1; text-align:right;
}

/* CTA */
#product1 .ppi-cta{ position:absolute; right:2rem; bottom:2rem; z-index:2; }

/* Responsive stack for small screens */
@media (max-width: 768px){
  #product1 { min-height:auto; padding: 4rem 0 6rem; }

  #product1 .ppi-text-top-left,
  #product1 .ppi-text-bottom-right,
  #product1 .ppi-circle,
  #product1 .ppi-cta{
    position: static;
  }

  #product1 .ppi-text-top-left,
  #product1 .ppi-text-bottom-right{ text-align:center; margin: 1rem 0; }
  #product1 .ppi-circle{ display:block; margin: 1rem auto; width: clamp(180px, 60vw, 320px); }
  #product1 .ppi-cta{ text-align:center; margin-top: 1rem; }
}
/* ===== Quadrants (conflict-proof) ===== */
#aayuna-dummy {} /* (no-op guard so your tooling doesn't collapse the block) */

#product1-quad.aay-quad {
  position: relative;
  min-height: 100vh;
  background: #fff;
  padding: 6rem 0;
  /* easy knobs */
  --edge: 10%;
  --top-text: 20%;
  --bottom-text: 25%;
  --circle-size: min(38vw, 320px);
}


/* Headings */
#product1-quad .quad-text {
  position: absolute;
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  color: var(--bs-orange, #fd7e14); /* fallback if no Bootstrap var */
  z-index: 1;
}

/* TL text */
#product1-quad .quad-text.tl {
  top: var(--top-text);
  left: var(--edge);
  text-align: left;
}

/* BR text */
#product1-quad .quad-text.br {
  right: var(--edge);
  bottom: var(--bottom-text);
  text-align: right;
}

/* Circular images */
#product1-quad .quad-img {
  position: absolute;
  width: var(--circle-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 1;
}

/* TR image */
#product1-quad .quad-img.tr {
  top: var(--edge);
  right: var(--edge);
}

/* BL image */
#product1-quad .quad-img.bl {
  bottom: var(--edge);
  left: var(--edge);
}



@media (max-width: 768px) {
  #product1-quad.aay-quad {
    min-height: auto;
    padding: 4rem 0 6rem;
  }
  #product1-quad .quad-text,
  #product1-quad .quad-img {
    position: static !important;
    text-align: center;
  }
  #product1-quad .quad-img {
    width: clamp(180px, 60vw, 320px);
    margin: 1rem auto;
  }
}

#product1-quad .quad-text.tl {
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* scales with screen */
  font-weight: 800;                       /* heavier */
  color: var(--bs-orange, #fd7e14);
}
#product1-quad .quad-text.br {
  font-size: clamp(1.5rem, 4vw, 2.5rem); /* smaller range */
  font-weight: 600;
}
/* ===== Scroll Snap Setup ===== */
html, body { height: 100%; }


/* The scrolling viewport (under the fixed navbar) */
#snap {
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

/* Each full-screen "panel" */
.snap-section {
  min-height: calc(100vh - var(--nav-h));  /* full view minus navbar */
  position: relative;
  padding-top: 2rem;                        /* optional breathing room */
}

/* Optional: only snap on larger screens */
@media (max-width: 768px) {
  #snap { /* snapping removed */ }
}

/* If you have sections that must be truly full-bleed (no nav overlap), target them: */
.snap-section.vh-100 {
  min-height: calc(100vh - var(--nav-h));
}
/* Navbar height variable (JS below updates it) */

/* Make the page the snap container */
html, body {
  height: 100%;
}

/* Each full-screen panel snaps to the top */
.snap-panel {
  min-height: calc(100vh - var(--nav-h)); /* full viewport minus fixed navbar */
  /* optional padding if content feels tight */
}

/* Ensure the fixed navbar doesn't cover the snap target */
.snap-panel {
  scroll-margin-top: var(--nav-h);
}

/* If it feels too “sticky” on phones, loosen it: */
@media (max-width: 768px) {
  html, body { scroll-snap-type: y proximity; }
}
/* Navbar height (JS below will set actual height) */

/* Turn the page into the snap container */
html, body {
  height: 100%;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Each full-screen panel snaps neatly below the fixed navbar */
.snap-panel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100vh - var(--nav-h));
  /* Ensure snap target isn’t hidden by the navbar */
  scroll-margin-top: var(--nav-h);
}

/* Optional: soften on phones */
@media (max-width: 768px) {
  html, body { scroll-snap-type: y proximity; }
}

/* turn off mandatory snap; keep proximity as a fallback */
html, body {
  height: 100%;
  scroll-snap-type: y proximity;   /* was: mandatory */
  scroll-behavior: auto;           /* JS will handle easing */
}

/* your snap panels stay the same */
.snap-panel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100vh - var(--nav-h));
  scroll-margin-top: var(--nav-h);
}
/* ========= Product 1 subtle motion ========= */

/* Only animate when the section has .inview (set by JS below) */
#product1-quad.inview .quad-img.tr   { animation: p1-floatTR 10s ease-in-out infinite alternate; }
#product1-quad.inview .quad-img.bl   { animation: p1-floatBL 11s ease-in-out infinite alternate; }
#product1-quad.inview .quad-text.tl  { animation: p1-driftTL 12s ease-in-out infinite alternate; }
#product1-quad.inview .quad-text.br  { animation: p1-driftBR 12s ease-in-out infinite alternate; }

/* Make transforms smooth and inexpensive */
#product1-quad .quad-img,
#product1-quad .quad-text { will-change: transform; }

/* Tiny, noticeable motion (~8–12px) */
@keyframes p1-floatTR {
  0%   { transform: translate(0px, 0px); }
  100% { transform: translate(-10px, 8px); }   /* up-left gently */
}
@keyframes p1-floatBL {
  0%   { transform: translate(0px, 0px); }
  100% { transform: translate(10px, -8px); }   /* down-right gently */
}
@keyframes p1-driftTL {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(10px); }        /* left→right drift */
}
@keyframes p1-driftBR {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(-10px); }       /* right→left drift */
}

/* Optional: slight phase offsets so they don’t move in sync */
#product1-quad.inview .quad-img.tr  { animation-delay: .2s; }
#product1-quad.inview .quad-text.br { animation-delay: .4s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #product1-quad .quad-img,
  #product1-quad .quad-text { animation: none !important; transform: none !important; }
}
.quad-img {
  width: var(--circle-size, 280px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
/* Make the section fill the viewport under the fixed navbar */
#product1-quad.aay-quad {
  position: relative;
  min-height: calc(100vh - var(--nav-h)); /* ensure bottom is in frame after snap */
  padding: 6rem 0;
}



/* Larger CTA style */
.btn-cta-lg {
  font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.5rem);
  padding: 0.9rem 1.4rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

/* Mobile: center it */
@media (max-width: 768px) {
  #product1-quad .quad-cta {
    position: static;
    text-align: center;
    margin-top: 1.5rem;
  }
}
/* Base quadrant layout shared by product sections */
.aay-quad {
  position: relative;
  min-height: calc(100vh - var(--nav-h)); /* keeps CTA in frame under fixed navbar */
  background: #fff;
  padding: 6rem 0;
}

.aay-quad .quad-text,
.aay-quad .quad-img,
.aay-quad .quad-cta { position: absolute; z-index: 1; }

.aay-quad .quad-text {
  margin: 0; line-height: 1.1; font-weight: 700;
  color: var(--bs-orange, #fd7e14);
}

.aay-quad .quad-img {
  width: var(--circle-size, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.aay-quad .quad-cta { right: var(--edge, 8%); bottom: var(--edge, 8%); z-index: 2; }
.btn-cta-lg { font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.5rem); padding: .9rem 1.4rem; border-radius: .75rem; font-weight: 700; }

/* Mobile stack */
@media (max-width: 768px) {
  .aay-quad { min-height: auto; padding: 4rem 0 6rem; }
  .aay-quad .quad-text,
  .aay-quad .quad-img,
  .aay-quad .quad-cta { position: static !important; text-align: center; }
  .aay-quad .quad-img { width: clamp(180px, 60vw, 320px); margin: 1rem auto; }
  .aay-quad .quad-cta { margin-top: 1rem; }
}
/* Product 1 knobs (you already have something similar) */
#product1-quad {
  --edge: 10%;
  --top-text: 20%;
  --bottom-text: 30%;
  --circle-size: min(38vw, 320px);
}
#product1-quad .quad-text.tl { top: var(--top-text); left: var(--edge); }
#product1-quad .quad-text.br { bottom: var(--bottom-text); right: var(--edge); }
#product1-quad .quad-img.tr  { top: var(--edge); right: var(--edge); }
#product1-quad .quad-img.bl  { bottom: var(--edge); left: var(--edge); }

/* Product 2 knobs (identical for now; tweak independently later) */
#product2-quad {
  --edge: 10%;
  --top-text: 20%;
  --bottom-text: 30%;
  --circle-size: min(38vw, 320px);
}
#product2-quad .quad-text.tl { top: var(--top-text); left: var(--edge); }
#product2-quad .quad-text.br { bottom: var(--bottom-text); right: var(--edge); }
#product2-quad .quad-img.tr  { top: var(--edge); right: var(--edge); }
#product2-quad .quad-img.bl  { bottom: var(--edge); left: var(--edge); }

/* Optional: bigger title for TL text (section “headline”) */
#product1-quad .quad-text.tl,
#product2-quad .quad-text.tl { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
#product1-quad .quad-text.br,
#product2-quad .quad-text.br { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 600; }
/* Product 2 top-left text tweaks */
#product2-quad .quad-text.tl {
  max-width: 40%;               /* prevents text from spanning too wide */
  white-space: normal;           /* allow line breaks (important if it was nowrap before) */
  line-height: 1.2;              /* tighter than default, but still readable */
  font-size: clamp(2rem, 5vw, 3.5rem); /* scale nicely for 2 lines */
}
@media (max-width: 768px) {
  #product2-quad .quad-text.tl {
    max-width: 90%;
    text-align: center;
    margin: 0 auto 1rem;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
}
/* Product 1 headline (top-left) */
#product1-quad .quad-text.tl {
  max-width: 40%;
  white-space: normal;
  line-height: 1.2;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

/* Product 1 tagline (bottom-right) */
#product1-quad .quad-text.br {
  max-width: 35%;
  white-space: normal;
  line-height: 1.2;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #product1-quad .quad-text.tl,
  #product1-quad .quad-text.br {
    max-width: 90%;
    text-align: center;
    margin: 0 auto 1rem;
  }
}

/* Bigger call-to-action button */
.btn-cta-lg {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glow + lift on hover */
.btn-cta-lg:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); /* warm brand glow */
}

/* Subtle background sweep effect */
.btn-cta-lg::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  z-index: -1;
  transition: left 0.6s ease;
}
.btn-cta-lg:hover::before {
  left: 100%; /* sweep across */
}
/* Put near the END of your stylesheet */
/* Shared knobs for ALL product sections */
.aay-quad {
  --edge: 15%;
  --top-text: 25%;
  --bottom-text: 10%;
  --circle-size: min(38vw, 320px);
}

/* Shared positions (applies to both #product1-quad and #product2-quad) */
.aay-quad .quad-text.tl { top: var(--top-text); left: var(--edge); }
.aay-quad .quad-text.br { bottom: var(--bottom-text); right: var(--edge); }
.aay-quad .quad-img.tr  { top: 8%;  right: 9%; }
.aay-quad .quad-img.bl  { bottom: 12%; left: 14%; }
/* === Keep both product sections perfectly in sync (non-destructive) === */
#product1-quad,
#product2-quad {
  --edge: 15%;
  --top-text: 25%;
  --bottom-text: 10%;
  --circle-size: min(38vw, 320px);
}

/* Text positions (shared) */
#product1-quad .quad-text.tl,
#product2-quad .quad-text.tl {
  top: var(--top-text);
  left: var(--edge);
}

#product1-quad .quad-text.br,
#product2-quad .quad-text.br {
  bottom: var(--bottom-text);
  right: var(--edge);
}

/* Bubble positions (shared) */
#product1-quad .quad-img.tr,
#product2-quad .quad-img.tr {
  top: 8%;
  right: 9%;
}

#product1-quad .quad-img.bl,
#product2-quad .quad-img.bl {
  bottom: 12%;
  left: 14%;
}
/* Apply the same subtle motion to Product 2 as Product 1 */
#product2-quad.inview .quad-img.tr   { animation: p1-floatTR 10s ease-in-out infinite alternate; }
#product2-quad.inview .quad-img.bl   { animation: p1-floatBL 11s ease-in-out infinite alternate; }
#product2-quad.inview .quad-text.tl  { animation: p1-driftTL 12s ease-in-out infinite alternate; }
#product2-quad.inview .quad-text.br  { animation: p1-driftBR 12s ease-in-out infinite alternate; }

/* And unify the same knobs/anchors for both (put at end) */
#product1-quad, #product2-quad {
  --edge: 15%;
  --top-text: 25%;
  --bottom-text: 10%;
  --circle-size: min(38vw, 320px);
}
#product1-quad .quad-text.tl, #product2-quad .quad-text.tl { top: var(--top-text); left: var(--edge); }
#product1-quad .quad-text.br, #product2-quad .quad-text.br { bottom: var(--bottom-text); right: var(--edge); }
#product1-quad .quad-img.tr,  #product2-quad .quad-img.tr  { top: 8%;  right: 9%; }
#product1-quad .quad-img.bl,  #product2-quad .quad-img.bl  { bottom: 12%; left: 14%; }
/* Keep AOS fade but kill its X-translation for these absolute elements */
#product1-quad .quad-text.tl,
#product1-quad .quad-text.br,
#product2-quad .quad-text.tl,
#product2-quad .quad-text.br {
  transform: none !important;
}
/* ===== Force identical positions on both products, with CTA always below BR text ===== */
#product1-quad, #product2-quad {
  /* shared knobs just for the bottom-right cluster */
  --br-text-bottom: 17%;   /* distance of the BR text from the bottom */
  --br-text-right:  10%;   /* distance of the BR text from the right  */
  --cta-bottom:      6%;   /* CTA sits closer to the bottom than the text */
  --cta-right:       8%;
}

/* Bottom-right headline in the exact same spot on both */
#product1-quad .quad-text.br,
#product2-quad .quad-text.br {
  bottom: var(--br-text-bottom);
  right:  var(--br-text-right);
  margin: 0;                 /* belt-and-suspenders: no stray margins */
}


/* Same anchors for both pages (you already added something like this) */
#product1-quad, #product2-quad {
  --br-text-bottom: 17%;
  --br-text-right:  10%;
  --cta-bottom:      6%;
  --cta-right:       8%;
}

#product1-quad .quad-text.br, #product2-quad .quad-text.br {
  bottom: var(--br-text-bottom);
  right:  var(--br-text-right);
  margin: 0;
}

#product1-quad .quad-cta, #product2-quad .quad-cta {
  position: absolute;
  bottom: var(--cta-bottom);
  right:  var(--cta-right);
  z-index: 3;             /* above text/images */
  opacity: 0;             /* start hidden; we reveal via JS */
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
}



/* Optional: if AOS still injects transforms, neutralize for CTA only */
#product1-quad .quad-cta[data-aos],
#product2-quad .quad-cta[data-aos] {
  transform: none;
}
/* Flash effect when button first appears */
.btn-cta-lg.flash::before {
  left: 100%; /* sweep across immediately */
  transition: none;
  animation: sweep-once 1s ease-out forwards;
}
.btn-cta-lg.flash {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Reuse the same gradient sweep but as a one-time animation */
@keyframes sweep-once {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: -100%; }
}
/* === Quadrants: single source of truth (place at end) === */
.aay-quad {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background:#fff;
  padding: 6rem 0;

  /* master knobs (shared) */
  --edge: 15%;
  --top-text: 25%;
  --bottom-text: 10%;
  --circle-size: min(38vw, 320px);

  /* fine-tune offsets (per-section overrides allowed inline) */
  --tr-x: 0px;  --tr-y: 0px;   /* top-right circle nudge */
  --bl-x: 0px;  --bl-y: 0px;   /* bottom-left circle nudge */
}

/* text */
.aay-quad .quad-text {
  position:absolute; z-index:1; margin:0; line-height:1.1; font-weight:700;
  color: var(--bs-orange, #fd7e14);
}
.aay-quad .quad-text.tl { top: var(--top-text); left: var(--edge); }
.aay-quad .quad-text.br { bottom: var(--bottom-text); right: var(--edge); }

/* bubbles */
.aay-quad .quad-img {
  position:absolute; z-index:1;
  width: var(--circle-size); aspect-ratio:1/1; border-radius:50%;
  background-size:cover; background-position:center; box-shadow:0 10px 30px rgba(0,0,0,.15);
  will-change: transform;
}
.aay-quad .quad-img.tr { top: 8%; right: 9%; transform: translate(var(--tr-x), var(--tr-y)); }
.aay-quad .quad-img.bl { bottom: 12%; left: 14%; transform: translate(var(--bl-x), var(--bl-y)); }

/* CTA pinned below BR text (same spot on both) */
.aay-quad .quad-cta {
  position:absolute; right: 8%; bottom: 6%; z-index:3;
  opacity:0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
}
.aay-quad .quad-cta.cta-reveal { opacity:1; transform:none; }

/* subtle in-view motion */
.aay-quad.inview .quad-img.tr { animation: p1-floatTR 10s ease-in-out infinite alternate; }
.aay-quad.inview .quad-img.bl { animation: p1-floatBL 11s ease-in-out infinite alternate; }
.aay-quad.inview .quad-text.tl { animation: p1-driftTL 12s ease-in-out infinite alternate; }
.aay-quad.inview .quad-text.br { animation: p1-driftBR 12s ease-in-out infinite alternate; }

@keyframes p1-floatTR { 0%{transform:translate(var(--tr-x),var(--tr-y))} 100%{transform:translate(calc(var(--tr-x) - 10px), calc(var(--tr-y) + 8px))} }
@keyframes p1-floatBL { 0%{transform:translate(var(--bl-x),var(--bl-y))} 100%{transform:translate(calc(var(--bl-x) + 10px), calc(var(--bl-y) - 8px))} }
@keyframes p1-driftTL { 0%{transform:translateX(0)} 100%{transform:translateX(10px)} }
@keyframes p1-driftBR { 0%{transform:translateX(0)} 100%{transform:translateX(-10px)} }

/* mobile stack */
@media (max-width: 768px) {
  .aay-quad { min-height:auto; padding: 4rem 0 6rem; }
  .aay-quad .quad-text, .aay-quad .quad-img, .aay-quad .quad-cta {
    position:static !important; text-align:center; transform:none !important; animation:none !important;
  }
  .aay-quad .quad-img { width: clamp(180px, 60vw, 320px); margin: 1rem auto; }
  .aay-quad .quad-cta { margin-top: 1rem; opacity:1; }
}
/* When we flip the switch in JS, show CTA on both sections */
#product1-quad .quad-cta.cta-reveal,
#product2-quad .quad-cta.cta-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* CTA default: hidden */
#product1-quad .quad-cta,
#product2-quad .quad-cta {
  position: absolute;
  bottom: var(--cta-bottom, 6%);
  right:  var(--cta-right, 8%);
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

/* Flip the switch when JS adds .cta-reveal */
#product1-quad .quad-cta.cta-reveal,
#product2-quad .quad-cta.cta-reveal {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

/* Optional: one-time flash class you already had */
.btn-cta-lg.flash::before {
  left: 100%;
  transition: none;
  animation: sweep-once 1s ease-out forwards;
}
.btn-cta-lg.flash { box-shadow: 0 6px 20px rgba(249,115,22,.4); }
@keyframes sweep-once { 0%{left:-100%} 50%{left:100%} 100%{left:-100%} }
/* Make right-side bubble 1.5x larger than the left */
#product1-quad .quad-img.tr,
#product2-quad .quad-img.tr {
  width: calc(var(--circle-size) * 1.5);
  aspect-ratio: 1 / 1;
}

#product1-quad .quad-img.bl,
#product2-quad .quad-img.bl {
  width: var(--circle-size); /* keep default */
  aspect-ratio: 1 / 1;
}
/* Subtle horizontal drift for quadrant bubbles — start left */
@keyframes bubble-drift-leftFirst {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-70px); }
  100% { transform: translateX(0); }
}

@keyframes bubble-drift-rightFirst {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(70px); }
  100% { transform: translateX(0); }
}

/* Right bubble: start drifting left */
#product1-quad .quad-img.tr,
#product2-quad .quad-img.tr {
  animation: bubble-drift-leftFirst 30s ease-in-out infinite;
  will-change: transform;
}

/* Left bubble: start drifting left too (but slower, offset) */
#product1-quad .quad-img.bl,
#product2-quad .quad-img.bl {
  animation: bubble-drift-rightFirst 30s ease-in-out infinite;
  will-change: transform;
}

/* Bigger tagline text */
.hero-subline {
  font-size: clamp(1.5rem, 3vw, 2.25rem); /* bigger than before */
  line-height: 1.3;
  opacity: 0;                /* start hidden */
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

/* Staggered timing */
.tagline-1 { animation-delay: 1s; }  /* start after logo sweep kicks off */
.tagline-2 { animation-delay: 1.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Force consistent top alignment for TL quadrant text */
#product1-quad .quad-text.tl,
#product2-quad .quad-text.tl {
  top: var(--top-text);
  line-height: 1.1;        /* tighter control */
  display: inline-block;   /* shrink-wraps to first line */
  vertical-align: top;
}
#product1-quad .quad-text.tl,
#product2-quad .quad-text.tl {
  max-width: 40%; /* keep both constrained the same */
}

/* Side images on jobs landing */
.side-image {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 1rem);
  max-height: calc(100vh - var(--nav-h, 64px) - 2rem);
}
.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Equal-size side images on jobs sections */
.side-image {
  width: 100%;
  aspect-ratio: 3 / 4;        /* fixed ratio for symmetry (taller portrait look) */
  max-height: 600px;          /* adjust to taste */
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* crop edges if necessary */
  object-position: center;     /* center the crop */
  display: block;
}
/* Equal-size side images (same for homepage & /jobs) */
.side-image {
  width: 100%;
  aspect-ratio: 3 / 4;     /* keep symmetry; adjust to 1/1 or 16/9 if you prefer */
  max-height: 600px;
  position: sticky;
  top: calc(var(--nav-h, 64px) + 1rem);
  overflow: hidden;
}
.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crops wider/taller sources to match */
  object-position: center;
  display: block;
}

/* Gentle vertical drift — starts ONLY after AOS reveals the element */
@keyframes job-floatY-up {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-16px); }  /* drift up slightly */
  100% { transform: translateY(0); }
}
@keyframes job-floatY-down {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(16px); }   /* drift down slightly */
  100% { transform: translateY(0); }
}

/* When AOS has run, it adds .aos-animate to the element itself */
.side-image[data-aos].aos-animate {
  will-change: transform;
  animation: job-floatY-up 18s ease-in-out infinite;
}

/* Right side: opposite phase so they don't mirror perfectly */
@media (min-width: 992px) {
  /* assuming 3 columns: left (col 1), center (col 2), right (col 3) */
  .row .col-lg-4:nth-child(3) .side-image[data-aos].aos-animate,
  .row .col-lg-3:nth-child(3) .side-image[data-aos].aos-animate { /* supports 3-6-3 too */
    animation: job-floatY-down 20s ease-in-out infinite;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .side-image[data-aos].aos-animate {
    animation: none !important;
    transform: none !important;
  }
}
/* Circular side images (careers + jobs pages) */
.side-image {
  width: clamp(220px, 30vw, 340px);  /* a bit larger than before */
  aspect-ratio: 1 / 1;               /* always a square container */
  border-radius: 50%;                /* round the container */
  overflow: hidden;                  /* hide anything outside circle */
  margin: 0 auto;                    /* center in column */
  position: sticky;
  top: calc(var(--nav-h, 64px) + 2rem);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* fills circle */
  object-position: 50% 50%;
  border-radius: 50%;   /* also round the image itself */
  display: block;
}

/* Circular side images flanking the demo form */
.side-image {
  width: clamp(220px, 30vw, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  position: sticky; /* stays visible on tall content */
  top: calc(var(--nav-h, 64px) + 2rem);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
  display: block;
}

/* Gentle vertical drift – begins after AOS fade-up */
@keyframes floatYUp   { 0%{transform:translateY(0)} 50%{transform:translateY(-16px)} 100%{transform:translateY(0)} }
@keyframes floatYDown { 0%{transform:translateY(0)} 50%{transform:translateY(16px)}  100%{transform:translateY(0)} }

.side-image[data-aos].aos-animate { animation: floatYUp 18s ease-in-out infinite; will-change: transform; }

/* Right column: opposite phase (works with 4-4-4) */
@media (min-width: 992px) {
  .row .col-lg-4:nth-child(3) .side-image[data-aos].aos-animate {
    animation: floatYDown 20s ease-in-out infinite;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .side-image[data-aos].aos-animate { animation: none !important; transform: none !important; }
}
/* Circular side images flanking sections */
.side-image {
  width: clamp(220px, 30vw, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  position: sticky;
  top: calc(var(--nav-h, 64px) + 2rem);

  background: transparent;   /* remove default white background */
  box-shadow: none;          /* kill square shadow */
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;         /* makes the img itself circular */
  display: block;

  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* shadow just for the circle */
}
/* Bigger section titles for Careers + Contact */
#contact h2,
#careers h2 {
  font-size: clamp(2.5rem, 6vw, 4rem); /* scale responsively */
  font-weight: 800;                     /* bold and strong */
  margin-bottom: 3rem;                  /* push everything below further down */
}

/* Extra spacing below headings before content/images */
#contact .row,
#careers .row {
  margin-top: 2rem; /* space between title and side images/content */
}
/* Bigger titles for About + Team sections */
#about h2,
#team-grid h2 {
  font-size: clamp(2.5rem, 6vw, 4rem); /* responsive scaling */
  font-weight: 800;                     /* bold */
  margin-bottom: 3rem;                  /* extra breathing room */
}
/* Nudge side images outward */
#careers .side-image {
  margin-left: -1rem;  /* left image shifts outward */
  margin-right: -1rem; /* right image shifts outward */
}
.about-lead {
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
}
/* ---- Opposing drift for About callouts (AOS-safe) ---- */

/* Tuning knobs */

/* Base (no animation yet) */
.drift {
  display: inline-block;
  position: relative;
  will-change: transform;
}

/* Only start drifting AFTER AOS reveals the element to avoid transform conflicts */
.aos-animate .drift--right {
  animation: about-drift-right var(--drift-duration) ease-in-out infinite alternate;
}
.aos-animate .drift--left {
  animation: about-drift-left  var(--drift-duration) ease-in-out infinite alternate;
}

/* Opposing keyframes */
@keyframes about-drift-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--drift-amplitude)); }
}
@keyframes about-drift-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--drift-amplitude))); }
}

/* Optional: tiny desync so they never align perfectly */
#photonics-pioneer.drift--left {
  animation-duration: calc(var(--drift-duration) + 0.7s);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .drift,
  .aos-animate .drift--right,
  .aos-animate .drift--left {
    animation: none !important;
    transform: none !important;
  }
}

/* Always-on drift (not tied to AOS so it won't resync on re-entry) */
.drift{ display:inline-block; position:relative; will-change:transform; }

.drift--right{
  animation: about-drift-right var(--drift-duration) ease-in-out infinite alternate;
}

/* Opposite direction + opposite phase (negative delay keeps them out of sync) */
.drift--left{
  animation: about-drift-left var(--drift-duration) ease-in-out infinite alternate;
  animation-delay: calc(-0.5 * var(--drift-duration)); /* half-cycle offset */
}

@keyframes about-drift-right{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(var(--drift-amplitude)); }
}
@keyframes about-drift-left{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(calc(-1 * var(--drift-amplitude))); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .drift--right, .drift--left{ animation: none !important; transform:none !important; }
}
.team-modal { border-radius: 16px; overflow: hidden; }
.team-modal-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.team-modal-name { color: var(--brand-orange); font-weight: 800; font-size: 1.25rem; }
.team-modal-title { font-size: .95rem; }
.team-modal-bio { line-height: 1.6; font-size: 1rem; }
.modal-backdrop.show { background-color: rgba(0,0,0,0.35); backdrop-filter: blur(3px); }

/* Larger, more readable text for bios in the modal */
.team-bio-text {
  font-size: 1.2rem;   /* bump up size */
  line-height: 1.6;   /* nice spacing */
  color: #333;        /* clean dark text */
}

.team-bio-text{
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
}
/* Reuse About-Us styling for product pages */
.about-lead {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.about-divider {
  width: 80px;
  border: 0;
  border-top: 3px solid var(--brand-orange);
  opacity: 0.85;
}

/* Middle column: two circular images, equal size */
.dual-circles {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.dual-circle {
  width: clamp(180px, 38vw, 240px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  /* Clean edge—no white box halo */
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  background: transparent;
  will-change: transform;
}

/* Gentle opposing drift to echo product bubbles */
@keyframes prod-drift-right { 0% { transform: translateX(0) } 100% { transform: translateX(12px) } }
@keyframes prod-drift-left  { 0% { transform: translateX(0) } 100% { transform: translateX(-12px) } }

.dual-circle:first-child { animation: prod-drift-right 7s ease-in-out infinite alternate; }
.dual-circle:last-child  { animation: prod-drift-left  7s ease-in-out infinite alternate; animation-delay: -3.5s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dual-circle { animation: none !important; transform: none !important; }
}

/* Spacing polish on large screens */
@media (min-width: 992px) {
  .dual-circles { gap: 1.5rem; }
}
/* Request a Demo: side bubbles */
.demo-circle {
  width: clamp(180px, 20vw, 240px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  border: none;
  background: transparent;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  will-change: transform;
  /* subtle drift */
  animation: demo-drift 7s ease-in-out infinite alternate;
}

/* Opposing drift on the right bubble via reverse */
#contact .col-lg-3:last-child .demo-circle {
  animation-direction: alternate-reverse;
}

/* Keyframes for gentle vertical+horizontal drift */
@keyframes demo-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(10px, -10px); } /* tiny, tasteful motion */
}

/* Title sizing and spacing to match About style */
#contact h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 2.5rem; /* a touch more space above the row */
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .demo-circle { animation: none !important; transform: none !important; }
}
.btn-cta-lg {
  font-size: 1.1rem;
  padding: 0.65rem 1.5rem;
  border-radius: 2rem;
}
/* Product section text adjustments */
.product-text {
  font-size: 1.1rem;   /* slightly larger than default */
  line-height: 1.6;    /* add breathing room */
}

@media (min-width: 992px) {
  .product-text {
    font-size: 1.15rem;  /* a bit larger on desktops */
  }
}
/* Bigger subtitles for product sections */
.product-subtitle {
  font-size: 1.5rem;        /* larger than default h5 (~1.25rem) */
  font-weight: 600;         /* make them stand out */
  line-height: 1.3;
}

@media (min-width: 992px) {
  .product-subtitle {
    font-size: 1.65rem;     /* a touch bigger on desktop */
  }
}
/* Keep Product 1 timing as-is */
#product1-quad .quad-cta {
  transition-delay: 0.6s; /* adjust if yours was different */
}

/* Slow Product 2 a bit more (appears later) */
#product2-quad .quad-cta { transition-delay: 1.0s !important; }





.job-list {
  margin: .25rem 0 0;
  padding-left: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.job-list li + li { margin-top: .25rem; }


/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--brand-orange);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.6s infinite;
}

/* Bouncing animation */
@keyframes scrollBounce {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  60%  { transform: translate(-50%, 12px); opacity: 0.6; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}
/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  text-align: center;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--brand-orange);
  border-radius: 20px;
  position: relative;
  margin: 0 auto 0.5rem;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.6s infinite;
}

/* Bouncing dot */
@keyframes scrollBounce {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  60%  { transform: translate(-50%, 12px); opacity: 0.6; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Text styling */
.scroll-indicator p {
  font-size: 0.9rem;
  color: var(--brand-orange);
  font-weight: 500;
  opacity: 0.8;
  animation: fadeInOut 2.5s ease-in-out infinite;
}

/* Fade in/out animation */
@keyframes fadeInOut {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}
/* Tabs styled to match brand */
.nav-pills .nav-link {
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  border-radius: 999px;
}
.nav-pills .nav-link.active {
  background-color: var(--brand-orange);
  color: #fff;
}

/* Investor logos */
.investor-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
  background: transparent;
  border: none;
}
.investor-logo:hover {
  transform: translateY(-4px);
  filter: grayscale(0%);
  opacity: 1;
}

.btn-orange {
  background-color: #ff7f32;  /* AAYUNA orange */
  color: #fff;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.btn-orange:hover,
.btn-orange:focus {
  background-color: #e66f24; /* slightly darker hover */
  color: #fff;
}

.btn-orange.disabled,
.btn-orange:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-orange {
  box-shadow: 0 0 8px rgba(255, 127, 50, 0.6);
}

.btn-orange:hover {
  box-shadow: 0 0 12px rgba(255, 127, 50, 0.8);
}
#products { visibility: visible !important; opacity: 1 !important; }
/* If your main scroller is the page itself */
html {
  /* or your dedicated scroller: .snap-container { ... } */
  scroll-snap-type: y mandatory;  /* Back to mandatory for earlier snapping */
  /* account for your fixed navbar height */
  scroll-padding-top: var(--nav-h, 80px);
}

/* All snap panels */
.snap-panel {
  scroll-snap-align: start;  /* Align to start for consistent snapping */
  /* Removed scroll-snap-stop: always - allow skipping past sections */
  min-block-size: calc(100svh - var(--nav-h, 80px)); /* tall enough to snap even with a fixed nav */
  display: grid;
  place-items: center;                   /* centers your H2 + paragraph nicely */
}

/* ===== Hero Section ===== */
#hero-intro {
  background-color: #f8f9fa;
  background-image: none !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding-top: calc(var(--nav-h, 80px) + 3rem);
  padding-bottom: 2rem;
}

#hero-intro::before {
  display: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
}

@keyframes blobGrowIn {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0;
  }
  30% {
    width: 300px;
    height: 300px;
    opacity: 0.5;
  }
  100% {
    width: 700px;
    height: 700px;
    opacity: 1;
  }
}

.gradient-blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0px;
  height: 0px;
  opacity: 0;
  border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0%, #ffc1075c 20%, rgba(255, 160, 70, 0.6) 40%, rgba(255, 200, 100, 0.4) 60%, rgba(255, 220, 130, 0.2) 80%, rgba(255, 220, 130, 0) 100%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: blobGrowIn 2s ease-out 0.3s forwards;
}

#hero-intro .hero-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(10rem, 8vw, 6rem);
  line-height: 1;
  background: linear-gradient(135deg, #ff8c32 0%, #ff7020 50%, #ffb84d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#hero-intro .hero-headline {
  font-family: var(--font-header);
  font-size: 2rem;
  line-height: 1.2;
  color: #000;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#hero-intro .hero-subheading {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #333;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#hero-intro .hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #666;
  font-weight: 400;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Body text */
p, .lead {
  font-family: var(--font-body);
  font-weight: 400;
}

#hero-intro .hero-buttons .btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .gradient-blob-bg {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #hero-intro .hero-brand-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  #hero-intro .hero-headline {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  #hero-intro .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  #hero-intro .hero-buttons .btn {
    width: auto;
    min-width: 200px;
  }
}

/* ===== Technology section layout ===== */
#technology.snap-panel {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-block-size: calc(100svh - var(--nav-h, 80px));
  display: flex;
  align-items: flex-start;  /* push content toward top */
  justify-content: center;
}

.tech-stage {
  position: relative;
  width: 100%;
  padding-inline: clamp(12px, 6vw, 120px);
}

/* ===== Text ===== */
.tech-text {
  text-align: center;
  margin-bottom: 1rem;
}

/* ===== Orb visuals ===== */
.tech-orb {
  width: clamp(96px, 12vw, 160px);
  height: clamp(96px, 12vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: inline-block;
}
.tech-orb-lg {
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
}

/* ===== Side orbs placement ===== */
.tech-orb-left,
.tech-orb-right {
  position: absolute;
  top: 45%; /* keep around text vertical zone */
  transform: translateY(-50%);
}
.tech-orb-left  { left: clamp(-60px, -8vw, -160px); }
.tech-orb-right { right: clamp(-60px, -8vw, -160px); }

/* ===== Floating animation ===== */
@keyframes driftX { from { transform: translate(-8px, -50%); } to { transform: translate(8px, -50%); } }
@keyframes driftXrev { from { transform: translate(8px, -50%); } to { transform: translate(-8px, -50%); } }
@keyframes driftY { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

.orb-float-x     { animation: driftX 8s ease-in-out infinite alternate; }
.orb-float-x-rev { animation: driftXrev 8s ease-in-out infinite alternate; }
.orb-float-y     { animation: driftY 10s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .orb-float-x, .orb-float-x-rev, .orb-float-y { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .tech-orb-left, .tech-orb-right { display: none; }
  #technology.snap-panel {
    padding-top: 80px; /* keeps good spacing on phones */
  }
}


#technology p.lead {
  font-size: 1.5rem; /* bigger body text */
  line-height: 1.6;
  font-weight: 600;
  color: #555; /* tweak for readability if you like */
}

/* Optional: give extra breathing room under heading */
#technology h2 + p {
  margin-top: 0.75rem;
}
#product3-quad .quad-cta {
  bottom: 1.5rem;  /* push it down a bit */
}

/* === PRODUCT 1 – CLEAN LAYOUT === */

/* Full section layout */
#product1-quad .container-xl {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Big full-width title across the top */
#product1-quad .title-main {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

/* Under the title: 3-column layout */
#product1-quad .production-layout {
  display: flex;
  align-items: center;          /* center center+right relative to left stack */
  justify-content: space-between;
  gap: 2rem;
}

/* LEFT: steps */
#product1-quad .production-left {
  flex: 1 1 40%;
  min-width: 280px;
}

#product1-quad .steps-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#product1-quad .step-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

/* Step text */
#product1-quad .step-text {
  max-width: 260px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Step images (rectangular) */
#product1-quad .step-circle img {
  width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* CENTER: COMBO image */
#product1-quad .production-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product1-quad .final-circle img {
  width: 320px;       /* adjust to taste */
  height: auto;
  display: block;
  object-fit: contain;
}

/* RIGHT: text + CTA */
#product1-quad .production-right {
  flex: 0 0 24%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* vertically align with COMBO */
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

#product1-quad .right-text {
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 100%;
  margin: 0;
}

/* === RESPONSIVE BEHAVIOR === */

@media (max-width: 1100px) {
  #product1-quad .production-layout {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  #product1-quad .production-center {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  #product1-quad .production-right {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 576px) {
  #product1-quad .production-layout {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  #product1-quad .step-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #product1-quad .step-circle img {
    width: 180px;
  }

  #product1-quad .final-circle img {
    width: 260px;
  }
}
/* === FADING TIMELINE FOR PRODUCT 1 === */

/* Hide all fade-in targets initially */
#product1-quad .step-row:nth-child(2),
#product1-quad .step-row:nth-child(3),
#product1-quad .production-center,
#product1-quad .production-right {
  opacity: 0;
  transform: translateY(10px);
}

/* Step 1 is already visible — no changes needed */

/* Step 2 fades in after 2 seconds */
#product1-quad .step-row:nth-child(2) {
  animation: fadeInUp 0.9s ease forwards;
  animation-delay: 2s;
}

/* Step 3 fades in after 4 seconds */
#product1-quad .step-row:nth-child(3) {
  animation: fadeInUp 0.9s ease forwards;
  animation-delay: 4s;
}

/* Center COMBO image fades in after 6 seconds */
#product1-quad .production-center {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 6s;
}

/* Right text + Learn More fades in after 6 seconds (same as COMBO) */
#product1-quad .production-right {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 6.2s;
}

/* Fade + slide animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
#product1-quad .right-text {
  font-size: 1.25rem !important;     /* was ~0.98–1.0rem */
  line-height: 1.55 !important;
  max-width: 480px;                  /* widen slightly so it wraps nicely */
}
/* Step 2 fades in after 3 seconds (was 2s) */
#product1-quad .step-row:nth-child(2) {
  animation-delay: 3s !important;
}

/* Step 3 now follows at 5 seconds */
#product1-quad .step-row:nth-child(3) {
  animation-delay: 5s !important;
}

/* COMBO image + right column follow at 7 seconds */
#product1-quad .production-center {
  animation-delay: 7s !important;
}
#product1-quad .production-right {
  animation-delay: 7.2s !important;
}
.product1-bg {
  position: relative;
  background-image: url("{{ url_for('static', filename='images/wafer.jpg') }}");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* subtle parallax */
  padding: 80px 0;
  overflow: hidden;
}
/* Step 2 fades in after 3 seconds (was 2s) */
#product1-quad .step-row:nth-child(2) {
  animation-delay: 3s !important;
}

/* Step 3 now follows at 5 seconds */
#product1-quad .step-row:nth-child(3) {
  animation-delay: 5s !important;
}

/* COMBO image + right column follow at 7 seconds */
#product1-quad .production-center {
  animation-delay: 7s !important;
}
#product1-quad .production-right {
  animation-delay: 7.2s !important;
}


/* TEXT BLOCK ON RIGHT */
.right-text {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 25px;
  max-width: 420px; /* prevents overlap */
}

/* LEARN MORE BUTTON */
.btn-cta-lg {
  margin-top: 10px;
}

/* CENTER IMAGE — make it big but NEVER overlap */
.production-center .final-circle {
  max-width: 480px;       /* increased from ~350–400 */
  width: 100%;
  margin: 0 auto;
}

.production-center .final-circle img {
  width: 100%;
  height: auto;
  display: block;
}

/* RIGHT COLUMN IMAGE — scale up safely */
.production-right img {
  width: 95%;              /* increase size safely */
  max-width: 500px;        /* HARD limit (no overlap) */
  height: auto;
  margin-left: auto;       /* pushes image right */
}

/* RESPONSIVE RULES FOR TABLET */
@media (max-width: 1200px) {
  .production-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left center"
      "right right";
  }

  .production-right {
    grid-area: right;
    margin-top: 20px;
  }

  .production-center .final-circle {
    max-width: 420px;
  }
}

/* RESPONSIVE MOBILE STACK */
@media (max-width: 768px) {
  .production-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .production-right img {
    width: 100%;
    max-width: 100%;
  }
}
/* FORCE RIGHT IMAGE TO BE MUCH BIGGER */
.production-right img {
  width: 140%;              /* huge increase */
  max-width: 600px;         /* hard cap to avoid destroying layout */
  height: auto;
  display: block;
  margin-left: auto;        /* keeps it to the right side */
  margin-right: 0;
  transform: translateX(10%); /* pushes it outward so it doesn’t collide with text */
}
/* === OVERRIDE FOR PRODUCT 1 FINAL IMAGE === */
#product1-quad .final-circle img {
  width: 700px !important;  /* bigger than 320px */
  height: auto;
  display: block;
  object-fit: contain;
}

/* Keep the right column from colliding with the image */
#product1-quad .production-right {
  flex: 0 0 26%;   /* slightly wider than 24% so text wraps nicer */
  max-width: 26%;
}
#product1-quad .production-right .right-photo img {
  width: 360px;
  max-width: 95%;
  height: auto;
  margin-bottom: 1rem;
  transform: translateY(-500px);  /* moved up more */
}
#product1-quad .production-right {
  justify-content: flex-start !important;  /* stop forcing vertical center */
}
/* Push the right column further right so text & button stop overlapping */
#product1-quad .production-right {
  padding-left: 135px !important;   /* moves everything right */
  transform: translateX(40px) !important;  /* add extra push if needed */
  max-width: 28% !important;       /* give it more breathing room */
}

/* Optional: narrow the text block so it doesn't creep left */
#product1-quad .right-text {
  max-width: 380px !important;
}
/* Hide scrollbar only for the product step scroller */
#products .snap-wrapper {
  scrollbar-width: none;      /* Firefox */
  /* Removed scroll-snap-type - let main page handle snapping */
  /* Removed overflow-y and height to prevent scroll trapping */
  scroll-padding-top: 0;  /* No padding - snap directly to top */
  scroll-padding-bottom: 0;  /* No padding at bottom */
  overflow-x: hidden;  /* Prevent horizontal scrollbar */
}

/* Chrome / Safari / Edge */
#products .snap-wrapper::-webkit-scrollbar {
  display: none;
}
/* Make Step 1 image larger */
#products .snap-page[data-step="1"] .step-img {
width: min(75vw, 1100px);
max-height: 75vh;
transform: scale(1.1);      /* subtle scale bump */
}
/* Move Step 1 image upward */
#products .snap-page[data-step="1"] .step-img {
  margin-top: -1.2rem;   /* adjust upward amount */
}

/* Step 1 responsive scaling for smaller screens */
@media (max-width: 1500px) {
  #products .snap-page[data-step="1"] .step-img {
    width: 75vw;
    max-width: 75vw;
  }
}



/* STEP 3 layout: two stacked small images + big centered image */
#products .snap-page[data-step="3"] .step3-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;                 /* space between the stacked images */
  margin-top: 1.5rem;
}

/* two smaller stacked images */
#products .snap-page[data-step="3"] .step3-small {
  width: min(40vw, 650px);
  max-height: 40vh;
  object-fit: contain;
}

/* Step 3 responsive scaling for smaller screens */
@media (max-width: 1500px) {
  #products .snap-page[data-step="3"] .step3-small {
    width: 40vw;
    max-width: 40vw;
  }
}


/* ================================
   STEP 3 — stacked parts + single arrow
   ================================ */

/* Consolidated base for STEP 3 to reduce duplication.
   This centralizes common layout rules while preserving later
   step-specific overrides further down in the file.
*/
#products .snap-page[data-step="3"] .step3-row,
#products .snap-page[data-step="3"] .step3-left,
#products .snap-page[data-step="3"] .step3-right,
#products .snap-page[data-step="3"] .step3-piece,
#products .snap-page[data-step="3"] .step3-small,
#products .snap-page[data-step="3"] .step3-arrow-to-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

#products .snap-page[data-step="3"] .step3-row {
  gap: 3rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

#products .snap-page[data-step="3"] .step3-left,
#products .snap-page[data-step="3"] .step3-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#products .snap-page[data-step="3"] .step3-piece {
  display: flex;
  justify-content: center;
  align-items: center;
}

#products .snap-page[data-step="3"] .step3-small {
  object-fit: contain;
}

#products .snap-page[data-step="3"] .step3-arrow-to-main {
  pointer-events: none;
  width: clamp(80px, 10vw, 120px);
  height: 4px;
  background: #f97316;
  opacity: 0;
  transition: opacity 0.6s ease 1.2s;
}

#products .snap-page[data-step="3"].is-active .step3-arrow-to-main {
  opacity: 1;
}

/* ================================
   CONSOLIDATED: Product step shared base
   Non-destructive: centralizes safe, common rules for all product steps
   This reduces repetition without removing step-specific overrides.
   ================================ */
#products .snap-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  scroll-snap-align: none;  /* Disable snapping on inner product steps */
  scroll-margin-top: 0;
  scroll-margin-block-start: 0;
  /* Removed scroll-snap-stop: always - allow skipping past sections */
  min-height: 100vh;
  height: auto;
  overflow: visible;  /* ensure content isn't clipped */
}

/* Override the html scroll-padding for products section */
#products {
  scroll-margin-top: 0 !important;
}

#products .snap-page img,
#products .snap-page video {
  height: auto;
  display: block;
}

#products .snap-page .step-img,
#products .snap-page .step-gif,
#products .snap-page .step3-small,
#products .snap-page .base-img,
#products .snap-page .overlay-img {
  object-fit: contain;
  width: 100%;
}

/* Only apply max-width on large screens */
@media (min-width: 1501px) {
  #products .snap-page .step-img,
  #products .snap-page .step-gif,
  #products .snap-page .step3-small,
  #products .snap-page .base-img,
  #products .snap-page .overlay-img {
    max-width: 650px;
  }
}

#products .snap-page .step-cta {
  scroll-margin-top: var(--nav-h, 64px);
}

#products .snap-page[data-step="3"] .step3-arrow-to-main::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 0 7px 11px;
  border-style: solid;
  border-color: transparent transparent transparent #f97316;
}

#products .snap-page[data-step="3"] .step3-small {
  width: 40vw;
  max-height: 30vh;
}

/* Only apply max-width on large screens */
@media (min-width: 1501px) {
  #products .snap-page[data-step="3"] .step3-small {
    width: min(35vw, 480px);
  }
}

#products .snap-page[data-step="3"] .step3-piece--top .step3-small {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#products .snap-page[data-step="3"] .step3-piece--bottom .step3-small {
  transition-delay: 0.8s;  /* appears second */
}

#products .snap-page[data-step="3"] .step3-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* responsive */
}

/* LEFT: stacked parts */
#products .snap-page[data-step="3"] .step3-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* wrapper around each part so we can animate movement */
#products .snap-page[data-step="3"] .step3-piece {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* keyframes for step3 float are consolidated further down to a single
   authoritative definition to avoid duplicate conflicting declarations. */

#products .snap-page[data-step="3"] .step3-piece--top {
  animation: step3-float-down 2.4s ease-in-out infinite alternate;
}

#products .snap-page[data-step="3"] .step3-piece--bottom {
  animation: step3-float-up 2.4s ease-in-out infinite alternate;
}

/* Small stacked images */
#products .snap-page[data-step="3"] .step3-small {
  width: min(35vw, 480px);
  max-height: 30vh;
  object-fit: contain;
}

/* Fade behavior */

/* Top image: always visible instantly */
#products .snap-page[data-step="3"] .step3-piece--top .step3-small {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Bottom image: fades in second */
#products .snap-page[data-step="3"] .step3-piece--bottom .step3-small {
  transition-delay: 0.8s;  /* appears second */
}

/* RIGHT: final assembly */
#products .snap-page[data-step="3"] .step3-right {
  display: flex;
  justify-content: center;
  align-items: center;
}




/* SINGLE REMAINING ARROW — fades in before the final assembly */
#products .snap-page[data-step="3"] .step3-arrow-to-main {
  position: absolute;
  top: 50%;
  left: 44%;              /* slightly shifted left */
  transform: translate(-50%, -50%);
  width: clamp(80px, 10vw, 120px);
  height: 4px;            /* bold line */
  background: #f97316;
  pointer-events: none;

  /* fading in third */
  opacity: 0;
  transition: opacity 0.6s ease 1.2s;
}

#products .snap-page[data-step="3"].is-active .step3-arrow-to-main {
  opacity: 1;
}

#products .snap-page[data-step="3"] .step3-arrow-to-main::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 0 7px 11px;
  border-style: solid;
  border-color: transparent transparent transparent #f97316;
}

/* Mobile behavior */
@media (max-width: 1100px) {
  #products .snap-page[data-step="3"] .step3-row {
    flex-direction: column;
    gap: 2rem;
  }

  #products .snap-page[data-step="3"] .step3-arrow-to-main {
    position: static;
    transform: none;
    margin: 0.5rem 0;
  }


  #products .snap-page[data-step="3"] .step3-small {
    width: 70vw;
  }
}
/* -----------------------------------------
/* ================================
   STEP 3 — clean layout + shifts
   ================================ */

/* Row: left stack + right final image */
#products .snap-page[data-step="3"] .step3-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* responsive */
}

/* LEFT: stacked parts (both shifted up a bit) */
#products .snap-page[data-step="3"] .step3-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  top: -2rem;   /* move left images upward */
}

/* RIGHT: final assembly (also shifted up) */
#products .snap-page[data-step="3"] .step3-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -2rem;   /* move right image upward same amount */
}

/* Wrapper around each part so float anim works */
#products .snap-page[data-step="3"] .step3-piece {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Gentle float animations */
@keyframes step3-float-down {
  0%   { transform: translateY(-10px); }
  100% { transform: translateY(10px); }
}

@keyframes step3-float-up {
  0%   { transform: translateY(-10px); }
  100% { transform: translateY(10px); }
}

#products .snap-page[data-step="3"] .step3-piece--top {
  animation: step3-float-down 2.4s ease-in-out infinite alternate;
}

#products .snap-page[data-step="3"] .step3-piece--bottom {
  animation: step3-float-up 2.4s ease-in-out infinite alternate;
}

/* Size of the stacked images */
#products .snap-page[data-step="3"] .step3-small {
  width: min(24vw, 320px);
  max-height: 22vh;
  object-fit: contain;
}

/* Fade behavior: top image always visible immediately */
#products .snap-page[data-step="3"] .step3-piece--top .step3-small {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Bottom image uses base step-img fade; delay its appearance slightly */
#products .snap-page[data-step="3"] .step3-piece--bottom .step3-small {
  transition-delay: 0s;
}

/* ARROW → final assembly */
#products .snap-page[data-step="3"] .step3-arrow-to-main {
  position: absolute;
  width: clamp(80px, 10vw, 120px);
  height: 4px;
  background: #f97316;
  pointer-events: none;

  /* Base placement, then offset -20px left and -20px up */
  left: calc(40% - 20px);
  top: calc(50% - 20px);

  opacity: 0;
  transition: opacity 0.6s ease 1.2s;
}

#products .snap-page[data-step="3"].is-active .step3-arrow-to-main {
  opacity: 1;
}

#products .snap-page[data-step="3"] .step3-arrow-to-main::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 0 7px 11px;
  border-style: solid;
  border-color: transparent transparent transparent #f97316;
}

/* Mobile tweaks */
@media (max-width: 1100px) {
  #products .snap-page[data-step="3"] .step3-row {
    flex-direction: column;
    gap: 2rem;
  }

  #products .snap-page[data-step="3"] .step3-arrow-to-main {
    position: static;
    transform: none;
    margin: 0.5rem 0;
  }

  #products .snap-page[data-step="3"] .step3-small {
    width: 70vw;
  }
}
/* HARD OVERRIDE: Step 3 arrow position */
#products .snap-page[data-step="3"] .step3-arrow-to-main {
  position: absolute !important;
  left: calc(40% - 150px) !important;  /* 20px left */
  top: calc(50% - 20px) !important;   /* 20px up */
  transform: none !important;         /* kill any old translate() */
}



/* STEP 3 – squeeze stacked images + tighter float */
#products .snap-page[data-step="3"] .step3-left {
  gap: 0.25rem !important;  /* bring the two images much closer */
}

/* Stronger but controlled up/down motion so they almost meet */
/* step3-close keyframes consolidated later to a single authoritative
   definition to avoid conflicting duplicate animations. */

#products .snap-page[data-step="3"] .step3-piece--top {
  animation: step3-close-top 2.4s ease-in-out infinite alternate !important;
}

#products .snap-page[data-step="3"] .step3-piece--bottom {
  animation: step3-close-bottom 2.4s ease-in-out infinite alternate !important;
}
/* STEP 3 – gentle wiggle on the arrow between stack and final image */
@keyframes step3-arrow-wiggle {
  0%   { transform: translateX(-6px); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(6px); }
}

#products .snap-page[data-step="3"] .step3-arrow-to-main {
  animation: step3-arrow-wiggle 2.2s ease-in-out infinite alternate !important;
}
/* STEP 3 — enlarge *only* the top image */
#products .snap-page[data-step="3"] .step3-piece--top {
  width: calc(min(24vw, 320px) * 1.12) !important;   /* +12% growth */
  max-height: calc(22vh * 1.12) !important;          /* match proportional height */
}
/* STEP 3 — make ONLY the top image a bit larger */
#products .snap-page[data-step="3"] .step3-piece--top .step3-small {
  width: min(30vw, 380px) !important;  /* was 24vw/320px → bump up */
  max-height: 26vh !important;         /* slightly taller to match */
}
/* ============================================
   STEP 3 — shift ENTIRE layout +100px right
   ============================================ */

/* Shift left stack */
#products .snap-page[data-step="3"] .step3-left {
  position: relative !important;
  left: 100px ;
}

/* Shift arrow with them */
#products .snap-page[data-step="3"] .step3-arrow-to-main {
  left: calc(40% + 100px) !important;
}

/* Shift right-side final image equally */
#products .snap-page[data-step="3"] .step3-right {
  position: relative !important;
  left: 175px;
}
/* STEP 3 — nudge arrow left by 40px */
#products .snap-page[data-step="3"] .step3-arrow-to-main {
  left: calc(40% + 100px - 100px) !important;  /* subtract 40px from current position */
}
/* STEP 3 — tighten the vertical gap between stacked images */
#products .snap-page[data-step="3"] .step3-left {
  gap: 0rem !important;          /* remove remaining gap */
}

/* Reduce any padding/margin applied by images */
#products .snap-page[data-step="3"] .step3-piece {
  margin: 0 !important;
  padding: 0 !important;
}

/* Slightly increase the float motion so they nearly touch */
@keyframes step3-close-top {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(18px); }
}

@keyframes step3-close-bottom {
  0%   { transform: translateY(18px); }
  100% { transform: translateY(0px); }
}

#products .snap-page[data-step="3"] .step3-piece--top {
  animation: step3-close-top 2.4s ease-in-out infinite alternate !important;
}

#products .snap-page[data-step="3"] .step3-piece--bottom {
  animation: step3-close-bottom 2.4s ease-in-out infinite alternate !important;
}
/* Half-degree CCW rotation for the CoWoS-step image */
#product1-quad .step2-photo {
  transform: rotate(-0.5deg);
  transform-origin: center;

}







/* Keyframes:
   0–10%: fade in
   10–50%: visible
   50–60%: fade out
   60–100%: invisible
*/
@keyframes step2LoopFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  50%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}

/* === STEP 2 – stacked chip images with looping fade === */

#products .snap-page[data-step="2"] .step2-img-wrapper {
  position: relative;
  display: inline-block;
  max-width: min(80vw, 900px);
}

/* Base + overlay same size */
#products .snap-page[data-step="2"] .step2-img-wrapper .step-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Base chip image (Chip_Only) */
#products .snap-page[data-step="2"] .step2-img-wrapper .base-img {
  position: relative;
  z-index: 1;
}

#products .snap-page[data-step="2"] .step2-img-wrapper .overlay-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;

  /* Loop fade in/out */
  animation: step2LoopFade 10s ease-in-out infinite;
  animation-delay: 4s;   /* ⬅️ hold base-only for ~4 seconds */
}


/* 0–10%: fade in
   10–50%: visible
   50–60%: fade out
   60–100%: invisible
*/
@keyframes step2LoopFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  50%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}

/* === Normalize step layout & phrase position for all steps === */

#products .snap-page.step-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  /* This controls how far down from the top
     the title + phrase block starts */
  padding-top: 0.5rem;  /* Minimal padding to snap right to top */
  padding-bottom: 8rem;  /* Increased padding to ensure bottom content is visible */
  height: auto;  /* allow content to expand if needed */
  margin-top: 0;
  padding-top: 0;
}

/* Hide content when step is not active */
#products .snap-page.step-page:not(.is-active) > * {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show content when step is active */
#products .snap-page.step-page.is-active > * {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Phrase under the main title – same spot on every step */
#products .snap-page.step-page .step-phrase {
  margin-top: 0rem;      /* space under the title */
  margin-bottom: 2rem;      /* space above the image */
  text-align: center;

  /* lock the height so 1–2 line phrases don't shift layout */
  min-height: 2.8rem;       /* bump up if you get 3+ lines */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}
/* === STEP 1 — enlarge the main image by 1.5x === */

#products .snap-page[data-step="1"] .step-img {
  transform: scale(1.5);
  transform-origin: center;
}

/* === HARD OVERRIDE — STEP 1: enlarge main image === */
#products .snap-page[data-step="2"] .step-img {
  transform: scale(1.25) !important;
  transform-origin: center !important;
}

/* === STEP 2 — slide the images downward === */
#products .snap-page[data-step="2"] .step2-img-wrapper {
  transform: translateY(100px) !important;
}

/* Product 1: align content toward top instead of perfectly centered */
#product1-quad.snap-panel {
  align-items: flex-start !important;
}

/* Push the title/content block down ~50px more */
#product1-quad .container-xl {
  padding-top: calc(3rem + 50px) !important;  /* was 3rem before */
}
/* === STEP 2 — SLOWER OVERLAY FADE WITH LONGER INITIAL HOLD === */

#products .snap-page[data-step="2"] .step2-img-wrapper .overlay-img {
  position: absolute;
  inset: 0;
  z-index: 2;

  /* slower + longer cycle */
  animation: step2LoopFadeSlow 14s ease-in-out infinite;
  animation-delay: 5s;  /* ⬅️ base-only visible for ~7s before first overlay */
}

/* 0–10%: fade in
   10–55%: fully visible
   55–65%: fade out
   65–100%: invisible
   (all scaled over 14s) */
@keyframes step2LoopFadeSlow {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: 1; }
  65%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ========================================
   STEP 2 - MODERN DESIGN
   ======================================== */

/* Override old step2-linear styles */
#products .snap-page[data-step="2"].step2-linear {
  padding-top: 80px !important;
}

/* Ensure Step 2 content is always visible when active */
#products .snap-page[data-step="2"].is-active .step2-modern-header,
#products .snap-page[data-step="2"].is-active .step2-video-row,
#products .snap-page[data-step="2"].is-active .step2-description-section {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Modern header for Step 2 */
.step2-modern-header {
  text-align: center;
  margin-bottom: 30px;
  max-width: 1400px;
  width: 100%;
}

/* Thin orange accent line */
.step2-accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  margin: 0 auto 30px;
  border-radius: 2px;
}

/* Main title */
.step2-main-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: #ff6b35;
  margin: 0;
  margin: 0 auto;
}

/* Process flow grid */
/* VIDEO ROW - Replaces process flow */
.step2-video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  padding: 20px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 60px auto;
  box-sizing: border-box;
}

.step2-video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step2-video,
.step2-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.step2-image {
  object-fit: cover;
  object-position: center;
  max-height: 100%;
}

.step2-process-flow {
  display: none; /* Hidden - replaced by video row */
}

/* Component cards */
.step2-component-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 40px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step2-component-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

/* Orange accent on top of card on hover */
.step2-component-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step2-component-card:hover::before {
  opacity: 1;
}

/* Card images */
.step2-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 320px;
}

/* Operator (plus sign) */
.step2-operator {
  font-size: 48px;
  color: #ff6b35;
  font-weight: 600;
}

/* Arrow */
.step2-arrow {
  width: 60px;
  height: 60px;
  position: relative;
}

.step2-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  transform: translateY(-50%);
}

.step2-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 20px;
  height: 20px;
  border-right: 3px solid #f7931e;
  border-top: 3px solid #f7931e;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}

/* Description section */
.step2-description-section {
  text-align: center;
  padding: 60px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Label tag */
.step2-label-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #fff3ed;
  color: #ff6b35;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

/* Description title */
.step2-description-title {
  font-size: clamp(20px, 3vw, 36px);
  color: #ff6b35;
  font-weight: 600;
  margin: 0 0 30px 0;
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto 60px auto;
}

/* Feature grid */
.step2-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* Feature item */
.step2-feature-item {
  text-align: left;
  padding: 30px;
  background: #f8f8f8;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

.step2-feature-item:hover {
  border-color: #ff6b35;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

/* Feature icon (orange dot) */
.step2-feature-icon {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Feature title */
.step2-feature-title {
  font-size: 18px;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 12px;
}

/* Feature description */
.step2-feature-description {
  font-size: 15px;
  color: #6a6a6a;
  line-height: 1.7;
}

/* Responsive design for Step 2 */
@media (max-width: 1200px) {
  .step2-process-flow {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 40px !important;
  }

  .step2-operator,
  .step2-arrow {
    transform: rotate(90deg);
    display: block !important;
  }

  .step2-arrow {
    margin: 20px auto;
    display: block !important;
  }

  .step2-component-card {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .step2-video-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .step2-process-flow,
  .step2-description-section {
    padding: 30px 20px !important;
  }

  .step2-component-card {
    min-height: 300px !important;
    padding: 20px !important;
  }

  #products .snap-page[data-step="2"] {
    padding: 40px 20px !important;
  }
}

/* CTA on final product step */
#products .step-cta {
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Reveal CTA only when Step 4 is active in the snap flow */
#products .snap-page[data-step="4"].is-active .step-cta {
  opacity: 1;
  transform: translateY(0);
}
/* Nudge Products title down a bit below the top */
#product-title .main-title {
  top: calc(var(--nav-h) + 12px) !important;  /* try 12–24px extra */
}
/* Title section can act as positioning context */
#product-title {
  position: relative;
}

/* Learn More: overlayed under the sticky title, no layout shift */
#product-learnmore-wrapper {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 110%);  /* ~just below the title */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* When Step 4 is active, show the button */
#product-learnmore-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 100%);  /* tiny upward ease-in */
}
#product-learnmore-wrapper {
  position: absolute;
  left: 50%;
  transform: translate(-50%, calc(110% - 50px)); /* shifted up */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#product-learnmore-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(100% - 50px)); /* same upward offset */
}
/* Make the product title a stacking context */
#product-title {
  position: relative;
  z-index: 40;  /* above most stuff */
}

/* Learn More wrapper – sits above the title background + snap content */
#product-learnmore-wrapper {
  position: absolute;
  left: 50%;
  transform: translate(-50%, calc(110% - 50px)); /* your 50px-up version */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 50;  /* ⬅️ key: above everything in this section */
}

/* When Step 4 is active, show + make clickable */
#product-learnmore-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(100% - 50px));
}

/* Just in case, make sure the button itself is a solid click target */
#product-learnmore-wrapper .btn {
  display: inline-block;
}
/* === STEP 1 TWO-COLUMN LAYOUT === */
.step1-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

/* Center image stays centered in its own column */
.step1-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Right image sizing */
.step1-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step1-right .side-img {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  object-fit: contain;
}
/* ============================
   STEP 1 – layout + styling
   ============================ */

/* Stack image + caption vertically in each column */
#products .snap-page[data-step="1"] .step1-center,
#products .snap-page[data-step="1"] .step1-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* STEP 1 – right-hand image size */
#products .snap-page[data-step="1"] .step1-right .side-img {
  width: min(26vw, 320px) !important;  /* a bit smaller than center, but not tiny */
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* STEP 1 – right column (image + caption as a unit) */
#products .snap-page[data-step="1"] .step1-right {
  display: flex;
  flex-direction: column;      /* caption below image */
  align-items: center;         /* center horizontally */
  transform: translate(-110px, 100px) !important;  /* 110px left, 100px down */
}

/* Left caption */
#products .snap-page[data-step="1"] .step1-left-caption {
  margin-top: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--orange, #f97316);
  transform: translate(-250px, -125px) !important;  /* manual alignment tweak */
}

/* Right caption (matches left styling) */
#products .snap-page[data-step="1"] .step1-caption {
  margin-top: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--orange, #f97316);
}


/* Make STEP 3 section a positioning context */
.snap-page[data-step="3"] {
  position: relative;
}



  display: flex;
  align-items: center;
  gap: 0.5rem;

  z-index: 10; /* above images/arrows */
}


/* Make STEP 3 section a positioning context */
.snap-page[data-step="3"] {
  position: relative;
}



  /* Move up + right (from the bottom-left reference) */
  bottom: 300px;  /* ⬅️ pushes it UP */
  left: 300px;    /* ⬅️ pushes it to the RIGHT */

  display: flex;
  align-items: center;
  gap: 0.75rem;

  z-index: 10;
}
/* === STEP 3 – floating boomerang video + caption === */

#products .snap-page[data-step="3"] {
  position: relative; /* positioning context */
}

#products .snap-page[data-step="3"] .step3-floating-video {
  position: absolute;

  /* 300px up + right from bottom-left corner */
  bottom: 200px;
  left: 500px;

  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

/* Bigger video */
#products .snap-page[data-step="3"] .step3-boomerang {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  overflow: hidden;
}

/* “easy pluggability” text */
#products .snap-page[data-step="3"] .step3-video-caption {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange, #f97316);
  line-height: 1.2;
  text-transform: lowercase;
}
/* ============================
   STEP 3 – explode boomerang + attach video
   ============================ */

#products .snap-page[data-step="3"] {
  position: relative;
}

/* Top row: 3 columns */
#products .snap-page[data-step="3"] .step3-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* keeps it ok on smaller screens */
}
/* On wider screens, keep all three in a single row */
@media (min-width: 900px) {
  #products .snap-page[data-step="3"] .step3-row {
    flex-wrap: nowrap;
  }
}



/* Middle text block */
#products .snap-page[data-step="3"] .step3-col--middle {
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
}

#products .snap-page[data-step="3"] .step3-kicker {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange, #f97316);
  text-transform: lowercase;
  margin-bottom: 0.25rem;
}

#products .snap-page[data-step="3"] .step3-line {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
#products .snap-page[data-step="3"] .step3-gif {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

/* ============================
   STEP 3 – horizontal layout
   left GIF / middle text / right video
   ============================ */

#products .snap-page[data-step="3"] .step3-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: nowrap;              /* stay horizontal on desktop */
}



#products .snap-page[data-step="3"] .step3-kicker {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange, #f97316);
  text-transform: lowercase;
  margin-bottom: 0.25rem;
}

#products .snap-page[data-step="3"] .step3-line {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* On small screens, stack them again so it doesn't explode */
@media (max-width: 1100px) {
  #products .snap-page[data-step="3"] .step3-row {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}
/* ============================
   STEP 3 – bottom strip
   left text —— big video —— right text
   ============================ */

#products .snap-page[data-step="3"] {
  position: relative; /* anchor for the bottom block */
}

/* Container: bottom, centered-ish */
#products .snap-page[data-step="3"] .step3-floating-video {
  position: absolute;
  left: calc(50% + 40px);    /* slight push to the right */
  bottom: 150px;             /* lift off the bottom */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;               /* space between text and video */
  z-index: 10;
}

/* Big center video */
#products .snap-page[data-step="3"] .step3-boomerang {
  width: min(50vw, 520px) !important;  /* make it BIG */
  height: auto !important;
  border-radius: 16px;
  object-fit: contain !important;
  display: block;
}

/* Left & right text blocks */
#products .snap-page[data-step="3"] .step3-floating-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1.9rem;              /* bigger text */
  font-weight: 800;
  color: var(--orange, #f97316);  /* AAYUNA orange */
  white-space: nowrap;
}

/* Kill any leftover animations on these lines */
#products .snap-page[data-step="3"] .step3-floating-text,
#products .snap-page[data-step="3"] .step3-floating-text * {
  animation: none !important;
  transform: none !important;
}

/* Optional slight nudge so the text doesn't hug the video */
#products .snap-page[data-step="3"] .step3-floating-text--right {
  margin-left: 10px;
}
#products .snap-page[data-step="3"] .step3-floating-text--left {
  margin-right: 10px;
}

/* Mobile: stack and center */
@media (max-width: 1100px) {
  #products .snap-page[data-step="3"] .step3-floating-video {
    position: static;
    transform: none;
    margin-top: 2rem;
    flex-direction: column;
    gap: 1.25rem;
  }

  #products .snap-page[data-step="3"] .step3-floating-text {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  #products .snap-page[data-step="3"] .step3-boomerang {
    width: 90vw !important;
    max-width: 90vw !important;
  }
}
/* ============================
   STEP 3 – TOP ROW: GIF / TEXT / VIDEO
   ============================ */

/* Headline at the top of Step 3 */
#products .snap-page[data-step="3"] .step3-benefits {
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--orange, #f97316);
  margin-bottom: 1.75rem;
}

/* Top row layout */
#products .snap-page[data-step="3"] .step3-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;                 /* extra buffer between columns */
  margin-top: 0;
  flex-wrap: nowrap;
}

/* Middle lines – BIG + ORANGE */
#products .snap-page[data-step="3"] .step3-col--middle .step3-line {
  font-size: 1.5rem !important;          /* larger */
  line-height: 1.5;
  font-weight: 600;
  color: var(--orange, #f97316) !important;
  margin-bottom: 0.4rem;
}





/* Mobile: stack nicely */
@media (max-width: 1100px) {
  #products .snap-page[data-step="3"] .step3-row {
    flex-direction: column;
    gap: 1.75rem;
  }
}

/* --- STEP 1 TOGGLE LAYOUT --- */
#products .snap-page[data-step="1"] .step1-center--toggle {
  position: relative;
  width: 100%;
  display: grid;           /* stacks images on top of each other */
  place-items: center;
}

/* both images live in same spot */
#products .snap-page[data-step="1"] .step-img--variant {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateZ(0) scale(0.995);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

#products .snap-page[data-step="1"] .step-img--variant.is-active {
  opacity: 1;
  transform: translateZ(0) scale(1);
  pointer-events: auto;
}

/* RIGHT column still same footprint */
#products .snap-page[data-step="1"] .step1-right--node{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(160px, 18vw, 280px);
}

/* toggle container - horizontal segmented control */
#products .snap-page[data-step="1"] .step1-toggle{
  display: flex;
  flex-direction: row;
  align-items: center;
  pointer-events: auto;
  z-index: 10;
}

/* Pitch Size label */
#products .snap-page[data-step="1"] .pitch-label{
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 500;
  color: #333;
  margin-right: 0.3rem;
}

/* button styling - segmented control */
#products .snap-page[data-step="1"] .node-btn{
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem 1.5rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 220ms ease;
  border-radius: 0;
  margin: 0;
  position: relative;
  pointer-events: auto;
  z-index: 10;
}

/* First button - left rounded corners */
#products .snap-page[data-step="1"] .node-btn[data-variant-btn="250"]{
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-right: none;
}

/* Second button - right rounded corners */
#products .snap-page[data-step="1"] .node-btn[data-variant-btn="127"]{
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-left: none;
}

#products .snap-page[data-step="1"] .node-btn:hover{
  background: #f9fafb;
}

/* active state */
#products .snap-page[data-step="1"] .node-btn.is-active{
  background: #f97316;
  color: white;
  border-color: #f97316;
  z-index: 1;
}

/* When active, restore borders */
#products .snap-page[data-step="1"] .node-btn.is-active[data-variant-btn="250"]{
  border-right: 1px solid #f97316;
}

#products .snap-page[data-step="1"] .node-btn.is-active[data-variant-btn="127"]{
  border-left: 1px solid #f97316;
}

#products .snap-page[data-step="1"] .node-btn:focus-visible{
  outline: 3px solid rgba(249,115,22,0.9);
  outline-offset: 3px;
}
/* Force stacking + fade to work no matter what other CSS exists */
.snap-page[data-step="1"] .step1-center--toggle {
  position: relative;
  display: block;
}



/* active one shows */
.snap-page[data-step="1"] .step1-center--toggle .step-img--variant.is-active {
  opacity: 1 !important;
  transform: translateZ(0) scale(1);
  z-index: 1;
  pointer-events: auto;
}

/* --- Center: stack images without leaving flow --- */
.snap-page[data-step="1"] .step1-center--toggle{
  position: relative;
  flex: 1 1 auto;          /* center takes remaining width */
  display: grid;           /* overlaps children */
  place-items: center;
}

/* both images sit in the same grid cell */
.snap-page[data-step="1"] .step1-center--toggle .step-img--variant{
  grid-area: 1 / 1;
  opacity: 0 !important;
  transition: opacity 450ms ease, transform 450ms ease;
  transform: translateZ(0) scale(0.995);
  pointer-events: none;
}

/* active image visible */
.snap-page[data-step="1"] .step1-center--toggle .step-img--variant.is-active{
  opacity: 1 !important;
  transform: translateZ(0) scale(1);
  pointer-events: auto;
}

/* --- Right: reserve space + keep toggle above anything --- */
.snap-page[data-step="1"] .step1-right--node{
  flex: 0 0 clamp(170px, 18vw, 280px); /* fixed-ish column so it doesn't drift */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5; /* always above center visuals */
}

/* toggle container */
.snap-page[data-step="1"] .step1-toggle{
  display: flex;
  flex-direction: column;
}
/* NEW: Variant text above the images */
.step1-variant-text {
  text-align: center;
  font-size: 1.35rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: var(--orange, #f97316);
}
/* === STEP 3: Soft blurred/faded edges on GIF + video === */

.step3-gif,
.step3-video {
  border-radius: 12px; /* optional, looks nice */
  -webkit-mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );

  /* This softens the transition even more */
  -webkit-mask-size: 120% 120%;
  mask-size: 120% 120%;
}


/* ================================
   STEP 2: split layout (left anim / right orb)
   ================================ */

#products .snap-page.step2-split {
  gap: var(--space-3);
}

/* Row that holds left + right halves */
#products .step2-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 5rem);
  width: 100%;
  max-width: 1400px;
}

/* Left half: your fading overlay animation */
#products .step2-left {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Keep your animation wrapper behaving nicely */
#products .step2-left .step2-img-wrapper {
  width: 100%;
  max-width: 640px;
  position: relative;
}

/* Right half: orb + caption */
#products .step2-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Orb container */
#products .step2-orb-wrap {
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Orb image itself */
#products .step2-orb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Orange caption under orb */
#products .step2-orb-caption {
  text-align: center;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 700;
  color: var(--orange, #f97316);
  max-width: 22ch;   /* good for ~6–10 words */
  line-height: 1.25;
}

/* Stack on mobile */
@media (max-width: 1100px) {
  #products .step2-row {
    flex-direction: column;
    gap: var(--space-3);
  }

  #products .step2-left,
  #products .step2-right {
    flex: 1 1 auto;
    width: 100%;
  }

  #products .step2-left .step2-img-wrapper {
    max-width: 90vw;
  }
}
/* =========================================================
   FORCE tiled background + center fade to be visible
   (put at END of CSS)
   ========================================================= */

/* 1) Tiled background on the whole site */
html, body {
  background-repeat: repeat;
  background-size: 220px 220px;
  background-attachment: fixed;
  background-color: #fff;
}

/* 2) Make sure your main wrapper isn't covering it */
.page,
.snap-panel,
#products,
#products .snap-wrapper,
#products .snap-page {
  background: transparent !important;
}

/* 3) Center white fade overlay on each snap panel */
.snap-panel {
  position: relative !important;
  isolation: isolate;
}

.snap-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;  /* overlay above background */
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.85) 22%,
    rgba(255,255,255,0.98) 50%,
    rgba(255,255,255,0.85) 78%,
    rgba(255,255,255,0.0) 100%
  );
}

/* 4) Ensure actual content sits above the overlay */
.snap-panel > * {
  position: relative;
  z-index: 2;
}
.step1-center--toggle {
  position: relative;
}

/* Callout container */
.step1-callout {
  position: absolute;
  left: -170px;        /* pushed further left */
  top: 33%;            /* visually centered for both images */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}

/* Bigger curved arrow */
.step1-callout-arrow {
  width: 115px;        /* larger than before */
  height: auto;
  color: #000;
  transform: rotate(-10deg);
}

/* Bigger, shorter callout text */
.step1-callout-text {
  max-width: 160px;
  text-align: right;
  font-size: 1.15rem;   /* increased */
  line-height: 1.25;
  font-weight: 600;     /* bold-ish */
  color: #000;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .step1-callout {
    position: static;
    align-items: center;
    margin-bottom: 10px;
    left: 0;
    top: 0;
    transform: none;
  }

  .step1-callout-text {
    text-align: center;
    max-width: 260px;
    font-size: 1.1rem;
  }

  .step1-callout-arrow {
    transform: rotate(0deg);
    width: 90px;
  }
}
/* Nudge entire Step 1 content right */
.step1-row {
  transform: translateX(40px);
}
/* Make arrow + text AAYUNA orange */
.step1-callout-arrow,
.step1-callout-text {
  color: var(--brand-orange);
  font-weight: 700;/* AAYUNA orange */

}
/* STEP 2 image container */
.step2-img-wrapper{
  position: relative;  /* anchor for callout */
}

/* Scale + shift BOTH fading images together */
.step2-img-scale{
  position: relative;
  transform: translate(-20px, -20px) scale(0.8);
  transform-origin: center center;
}

/* Bottom arrow + text */
.step2-callout{
  position: absolute;
  left: 50%;
  bottom: -70px;          /* sits just below image */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 6;
  pointer-events: none;
}

.step2-callout-arrow{
  width: 48px;
  height: auto;
}

.step2-callout-text{
  max-width: 260px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
}

/* AAYUNA orange (same style as step1 callout) */
.step2-callout-arrow,
.step2-callout-text{
  color: var(--brand-orange);
  font-weight: 700;
}
.step2-img-scale{
  position: relative;
  transform: translate(-20px, -50px) scale(0.8);
  /*            X     ,   Y     */
  transform-origin: center center;
}
/* Callout starts hidden and can fade */
.step2-callout{
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* JS will toggle this */
.step2-callout.is-visible{
  opacity: 1;
}
.step2-callout-text{
  max-width: 300px;        /* optional – gives it more breathing room */
  text-align: center;
  font-size: 1.25rem;      /* ↑ larger text */
  line-height: 1.3;        /* ↑ keeps balance */
  font-weight: 700;
}

/* Flip STEP 1 callout arrow so it points toward the image */
.step1-callout-arrow {
  transform: scaleX(-1) rotate(-100deg);  /* mirror + keep your slight tilt */
  transform-origin: center;
}

/* STEP 1: much closer to sticky title */
#products .snap-page[data-step="1"] {
  justify-content: flex-start;
  background: #ffffff;
}

/* Modern header container */
.step1-modern-header {
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: none;
  margin-bottom: 1.5rem;;
}

/* Enable pointer events on child elements that need to be interactive */
.step1-modern-header * {
  pointer-events: auto;
}

/* Thin orange accent line */
.step1-accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 2px;
}

/* Main title with large, lightweight font */
.step1-main-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.3;
  color: #2a2a2a;
  margin: 0;
}

/* Orange gradient text */
.text-gradient {
  background: linear-gradient(90deg, #ff6b35 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}

/* Section label - small caps, uppercase */
.step1-section-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ff6b35;
  margin-top: 1rem;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .step1-modern-header {
    padding: 0 1.5rem;
  }

  .step1-main-title {
    font-size: 28px;
  }

  .step1-subtitle {
    font-size: 16px;
  }

  #products .snap-page[data-step="1"] .step1-toggle {
    flex-wrap: wrap;
  }
}


/* stack: variant text + buttons */
#products .snap-page[data-step="1"] .step1-header-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;          /* keeps them close but not cramped */
  margin-bottom: var(--space-2);
  pointer-events: auto;
  z-index: 10;
}

/* variant text - hidden since it's not being used */
#products .snap-page[data-step="1"] .step1-variant-text {
  display: none;
}

/* buttons closer together vertically */
#products .snap-page[data-step="1"] .step1-toggle {
  margin: 0;
}
/* STEP 1: toggle layout */
#products .snap-page[data-step="1"] .step1-toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 0;
  /* make room for the glow; prevents white borders from showing */
  padding: 0.4rem;
  overflow: visible;
}

/* Bigger buttons */
#products .snap-page[data-step="1"] .node-btn {
  border: 2px solid #ff7a1a;
  background: #ffffff;
  color: #ff7a1a;
  font-size: 1.15rem;         /* bigger text */
  letter-spacing: 0.045em;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    transform 0.15s ease;
  opacity: 0.45;              /* dulled */
}

/* Active is loud */
#products .snap-page[data-step="1"] .node-btn.is-active {
  background: #ff7a1a;
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 0 26px rgba(255, 122, 26, 0.75);
}

/* Stronger, cleaner animation without white flash */
@keyframes step1-toggle-pulse-stronger {
  0% {
    transform: scale(1);
    outline: 0 solid rgba(255, 122, 26, 0);
  }
  40% {
    transform: scale(1.10);   /* more noticeable bounce */
    outline: 10px solid rgba(255, 122, 26, 0.45);
  }
  70% {
    transform: scale(1.04);
    outline: 4px solid rgba(255, 122, 26, 0.25);
  }
  100% {
    transform: scale(1);
    outline: 0 solid rgba(255, 122, 26, 0);
  }
}

/* Squeeze the sticky Technology bar */
#product-title .main-title {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}
/* --- NEW STEP 2 LAYOUT --- */

.step2-circles {
  text-align: center;
  padding-top: 3rem;
}

.step2-circle-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.circle-col {
  display: flex;
  justify-content: center;
}

.circle-wrap {
  width: 220px;              /* adjust to taste */
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-operator {
  font-size: 3rem;
  font-weight: 600;
  color: #ff7a00;            /* your orange accent */
}

.step2-bottom-row {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;          /* so it doesn't blow up on small screens */
}

.step2-bottom-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  flex: 1 1 260px;          /* let the text take the left side */
}


/* Fader stays same as current Step 2 */
.step2-fader {
  position: relative;
  width: 280px; /* tweak based on your current images */
}
/* Bottom-right fade block */
.step2-fader {
  position: relative;
  flex: 0 0 auto;
  width: 260px;             /* tweak to taste */
  max-width: 100%;
}

/* Inner wrapper for animation images */
.step2-fader .step2-img-scale {
  position: relative;
  width: 100%;
  padding-top: 75%;         /* aspect ratio box (4:3). Adjust if needed */
  overflow: hidden;
}

/* Force base + overlay to overlap instead of stack */
.step2-fader .step-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Inner wrapper for the two images */
.step2-fader .step2-img-scale {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Stack both images on top of each other */
.step2-fader .step-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- CROSSFADE ANIMATION --- */
.step2-fader .base-img {
  animation: step2-base-fade 4s infinite ease-in-out;
}

.step2-fader .overlay-img {
  animation: step2-overlay-fade 4s infinite ease-in-out;
}

/* Base visible first, then fades out */
@keyframes step2-base-fade {
  0%, 40% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Overlay hidden first, then fades in */
@keyframes step2-overlay-fade {
  0%, 40% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
/* Scoped only to the small fader on the bottom right */
.step2-fader .step2-img-scale {
  position: relative;
  width: 100%;
  padding-top: 75%;              /* controls height -> ~4:3 box */
  overflow: hidden;
}

/* Stack both images perfectly on top of each other */
.step2-fader .step-img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Crossfade animation */
.step2-fader .base-img {
  animation: step2-base-fade 4s infinite ease-in-out;
}

.step2-fader .overlay-img {
  animation: step2-overlay-fade 4s infinite ease-in-out;
}

@keyframes step2-base-fade {
  0%, 40% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes step2-overlay-fade {
  0%, 40% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
/* --- THREE RECTANGULAR IMAGES ACROSS --- */

/* === STEP 2: MAIN ROW IMAGES + OPERATORS === */

/* --- MAIN ROW --- */

.step2-linear-row {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  overflow-x: clip;
  max-width: 100%;
}

.step2-img-wrap {
  width: 340px;            /* make these big on large screens */
  max-width: 100%;
}

/* Scale step2 images responsively below 1500px */
@media (max-width: 1500px) {
  .step2-img-wrap {
    width: 25vw;
    min-width: 180px;
    max-width: 340px;
  }
}

.step2-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bigger + and → */
.step2-operator {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ff7a00;          /* AAYUNA orange */
}

/* Change arrow to point down on smaller screens */
@media (max-width: 769px) {
  .step2-operator {
    writing-mode: vertical-lr;
    transform: rotate(0deg);
    margin:auto;
  }
}

/* --- BOTTOM ROW --- */

.step2-bottom-row {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.step2-bottom-text {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
  flex: 1 1 260px;
  color: #ff7a00;          /* AAYUNA orange */
}

/* --- BOTTOM-RIGHT FADER: NO CROPPING --- */

/* IMPORTANT: remove any old .step2-fader { height: xxx; overflow: hidden; } rules */

.step2-fader {
  position: relative;
  flex: 0 0 auto;
  width: 260px;            /* tile width */
}

/* container uses base image's height */
.step2-fader .step2-img-scale {
  position: relative;
  width: 100%;
}

/* base image in normal flow, sets height */
.step2-fader .base-img {
  display: block;
  width: 100%;
  height: auto;
}

/* overlay sits on top, same size, but NOT cropped */
.step2-fader .overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
}

/* Crossfade between base and overlay */
.step2-fader .base-img {
  animation: step2-base-fade 4s infinite ease-in-out;
}

.step2-fader .overlay-img {
  animation: step2-overlay-fade 4s infinite ease-in-out;
}

/* Smooth loop: base visible start+end, hidden in middle */
@keyframes step2-base-fade {
  0%, 40%, 100% { opacity: 1; }
  50%, 90%      { opacity: 0; }
}

/* Overlay: opposite of base, so they crossfade */
@keyframes step2-overlay-fade {
  0%, 40%, 100% { opacity: 0; }
  50%, 90%      { opacity: 1; }
}
/* Shared fade-in animation */
@keyframes step2-seq-fade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-seq {
  opacity: 0;
  animation: step2-seq-fade 0.6s ease-out forwards;
}

/* left-to-right on top row */
.fade-seq-1 { animation-delay: 0.10s; }  /* img 1 */
.fade-seq-2 { animation-delay: 0.25s; }  /* + */
.fade-seq-3 { animation-delay: 0.40s; }  /* img 2 */
.fade-seq-4 { animation-delay: 0.55s; }  /* → */
.fade-seq-5 { animation-delay: 0.70s; }  /* img 3 */

/* then bottom text */
.fade-seq-6 { animation-delay: 0.90s; }  /* orange tagline */

/* and LAST: the animated tile bottom-right */
.fade-seq-7 { animation-delay: 1.10s; }  /* fader tile */
/* STEP 2 – three images across */

.step2-linear {
  text-align: center;
  padding-top: 3rem;
}

.step2-linear-row {
  margin-top: 3rem;
  display: flex;
  justify-content: center;   /* center whole row */
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;           /* keeps it nice on smaller screens */
}

.step2-img-wrap {
  width: 340px;              /* make images nicely large */
  max-width: 100%;
}

.step2-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bigger + and → in AAYUNA orange */
.step2-operator {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ff7a00;            /* AAYUNA orange */
}

/* Bottom tagline centered + orange */
.step2-bottom-text {
  margin-top: 2rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #ff7a00;            /* AAYUNA orange */
}
.step2-img-wrap {
  width: 480px;        /* ⬅️ Make them way larger */
  max-width: 100%;
}

.step2-img {
  width: 100%;
  height: auto;
  display: block;
}
.step3-bottom-phrase {
  margin-top: 2rem;
  font-size: var(--fs-3);
  text-align: center;
  max-width: 900px;
}

/* ========================================
   STEP 3 - MODERN DESIGN SYSTEM
   ======================================== */

/* Step 3 Section Styling */
#products .snap-page[data-step="3"] {
  padding: 80px 40px;
  background: var(--color-background);
}

/* Modern header for Step 3 */
.step3-modern-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 1600px;
  width: 100%;
  margin: 1rem;
}

.step3-accent-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-orange);
  margin: 0 auto 30px;
  border-radius: 2px;
}

.step3-main-title {
  font-family: var(--font-stack);
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--color-orange-primary);
  margin: 0;
}

/* Before/After Attachment Section */
.step3-before-after-section {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: 3rem 5rem;
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-hover);
  max-width: 1600px;
  margin: 0 auto 60px auto;
}

.step3-before-after-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  align-items: center;
}

.step3-state-card {
  position: relative;
}

.step3-state-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-orange-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.step3-image-box {
  background: var(--color-background);
  border-radius: var(--radius-sm);
  padding: 40px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.step3-image-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step3-image-box:hover {
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.step3-image-box:hover::before {
  opacity: 1;
}

.step3-before-after-img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
}

.step3-before-after-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 30px rgba(249, 115, 22, 0.3));
}

/* Special styling for the before box with animation */
.step3-before-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  min-height: 274px;
  gap: 0rem;
}

.step3-top-float {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: step3-float-down 2.4s ease-in-out infinite alternate;
}

.step3-floating-lid {
  max-width: 280px;
  max-height: 180px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

.step3-bottom-part {
  max-width: 280px;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

.step3-arrow-divider {
  width: 80px;
  height: 80px;
  position: relative;
}

.step3-arrow-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-orange);
  transform: translateY(-50%);
}

.step3-arrow-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 24px;
  border-right: 3px solid var(--color-orange-secondary);
  border-top: 3px solid var(--color-orange-secondary);
  transform: translateY(-50%) rotate(45deg);
}


.step3-component-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.step3-component-item {
  text-align: center;
}

.step3-component-box {
  background: var(--color-background);
  border-radius: var(--radius-sm);
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.step3-component-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step3-component-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step3-component-box:hover::before {
  opacity: 1;
}

#products .snap-page img.step3-component-img {
  max-width: 100%;
  max-height: 220px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.12));
  transition: all 0.3s ease;
}

#products .snap-page img.step3-component-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 25px rgba(249, 115, 22, 0.25));
}
  object-position: center;
  width: 210px;
    height: 220px;
}

.step3-component-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-orange-primary);
  margin-top: 10px;
}

.step3-operator-symbol {
  font-size: 36px;
  color: var(--color-orange-primary);
  font-weight: 600;
  display: flex;
  justify-content: center;
  height: 200px;
}

/* Precision Results Section */
.step3-results-section, .step3-assembly-section {
  background: var(--color-gradient-bg);
  border-radius: var(--radius-lg);
  padding: 3rem 5rem;
  text-align: center;
  max-width: 1500px;
  margin: 0 auto;
    box-shadow: var(--shadow-hover);

}

.step3-badge {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-highlight-bg);
  color: var(--color-orange-primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: var(--spacing-md);
}

.step3-results-title {
  font-size: var(--fs-subtitle);
  color: var(--color-orange-primary);
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.4;
}

.step3-precision-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.step3-stat-card {
  background: var(--color-background);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl) var(--spacing-lg);
  transition: var(--transition-standard);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.step3-stat-card:hover {
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.step3-stat-icon {
  width: 16px;
  height: 16px;
  background: var(--gradient-orange-diagonal);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
}

.step3-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-orange-primary);
  margin-bottom: 10px;
}

.step3-stat-label {
  font-size: 16px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

/* Responsive for Step 3 Modern Design */
@media (max-width: 1200px) {
  .step3-component-flow {
    grid-template-columns: 1fr;
  }

  .step3-operator-symbol {
    transform: rotate(90deg);
    height: auto;
    padding: 20px 0;
  }

  .step3-before-after-grid {
    grid-template-columns: 1fr;
  }

  .step3-arrow-divider {
    transform: rotate(90deg);
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  #products .snap-page[data-step="3"] {
    padding: 40px 20px;
  }

  .step3-before-after-section,
  .step3-assembly-section,
  .step3-results-section {
    padding: 30px 20px;
  }

  .step3-image-box {
    padding: 20px;
    min-height: 200px;
  }
}
/* =============================
   STEP 4 — Circular equation
   ============================= */

/* =============================
   STEP 4 — Circular equation (clean version)
   ============================= */

.step4-equation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;         /* tight horizontal spacing */
  margin-top: 1.25rem;  /* small gap below the heading */
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.step4-circle-wrap {
  text-align: center;
}

.step4-circle {
  width: 300px;
  height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.25rem;  /* tiny space under circle */
}

/* Scale circular images below 1500px */
@media (max-width: 1500px) {
  .step4-circle {
    width: 20vw;
    height: 20vw;
    min-width: 150px;
    min-height: 150px;
    max-width: 300px;
    max-height: 300px;
  }
}

.step4-caption {
  margin: 0.1rem 0 0;     /* almost touching circle */
  font-weight: 600;
}

.step4-operator {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: #ff7a00;         /* AAYUNA orange */
}

/* ARROW sits between equation row and video */
.step4-down-arrow {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  line-height: 1;
  color: #ff7a00;
  margin: 0.25rem 0;      /* very tight */
}

/* VIDEO directly under arrow */
.step4-video-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;    /* tiny gap under arrow */
}

.step4-video {
  width: min(44vw, 420px);
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0,0,0,0.15);
}

/* === CLEAN STEP 3 LAYOUT === */

.step3-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.step3-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* right side: final assembly */
.step3-right {
  flex: 0 0 auto;
}

/************************************
 STEP 3 — POSITION FIXES (both sides)
************************************/


/* Move the LEFT stack further left */
.step3-left {
  transform: translateX(-200px);  /* tweak: -20, -40, -70, etc */
}


.step3-bullets {
  list-style: disc;        /* normal bullet */
  margin: 0 auto;          /* center container */
  padding-left: 1.2rem;    /* indent bullet slightly */
  text-align: left;        /* cleaner bullet alignment */
}

.step3-bullets li {
  color: var(--brand-orange);   /* or #ff7a00 / whatever your orange is */
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.step3-bullets li::marker {
  color: var(--brand-orange);  /* or any color */
}
/* STEP 3 – visually shift content down without affecting layout height */
section.step-page[data-step="3"] .step3-row {
  position: relative;
  top: 4vh;    /* adjust: 2–6vh depending on how low you want it */
}

section.step-page[data-step="3"] .step3-bottom {
  position: relative;
  top: 4vh;
  margin-bottom: 8rem;  /* Add more space at bottom so button is visible before snap */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Benefits text styling */
.step3-benefits {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--brand-orange, #f97316);
  margin: 0;
}

.benefit-word {
  font-weight: 300;
}

.benefit-separator {
  color: var(--brand-orange, #f97316);
  font-weight: 300;
}

/* Learn More button wrapper */
.learn-more-wrapper {
  display: flex;
  justify-content: center;
}

/* Learn More button styling */
.lrn-more-button {
  background-color: var(--brand-orange, #f97316);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.lrn-more-button:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  color: white;
}

.step3-circles-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  text-align: center;
}
/* FORCE larger bullet text on Step 3 */
section[data-step="3"] .step3-bullets,
section[data-step="3"] .step3-bullets li {
  font-size: 1.9rem !important;
  line-height: 1.65 !important;
}

/* Reduce left-side About text — safer than removing .lead everywhere */
#about .col-md-5 .lead {
  font-size: 1.18rem;     /* was ~1.25rem from Bootstrap */
  line-height: 1.55;
  font-weight: 400;       /* still readable but not huge */
}
/* top stack moves */
.step3-top-float {
  display: inline-block;          /* keep layout sane */
  animation: step3-float-up 3s ease-in-out infinite alternate;
}

/* just in case anything global is hitting the bottom piece */
.step3-piece--bottom {
  animation: none;
}
/* FORCE SCALE — STEP 1 ONLY */
.step-page[data-step="1"] .step-img--variant {
  transform: scale(1.2) !important;
  transform-origin: center center !important;
  position: relative; /* needed so scaling can escape layout box */
  z-index: 5;
}
/* STEP 1 — move + scale the litho images */
.step-page[data-step="1"] .step-img--variant {
  transform: translate(-25px, 25px) scale(1.2) !important;
  transform-origin: center center !important;
  max-width: none !important;
  position: relative;
  z-index: 5;
}

/* Prevent transform overflow on smaller screens */
@media (max-width: 1500px) {
  .step-page[data-step="1"] .step-img--variant {
    transform: scale(1.05) !important;
  }
}
/* ============ STEP 3 ONLY ============ */

/* Make left + right columns a bit wider than the middle text */
section[data-step="3"] .step3-row {
  display: flex;
  align-items: center;
}


/* ==========================================
   ADDITIONAL LAYOUT & COMPONENTS
   ========================================== */

/* Page Layout */
.page {
  margin: 0 auto;
  padding-top: var(--nav-h);
  overflow-x: clip;
  width: 100%;
}

/* Content Width Helpers */
.content-max-900 {
  max-width: 900px;
}

.content-max-500 {
  max-width: 500px;
}

/* Products Section - Technology Flow */
#products {
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

#product-title{
  margin-top: 4rem;;
}
/* Product Pages */
#product-page-1,
#product-page-2,
#product-page-3,
#product-page-4 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  background: #fff;
}

/* Technology Section */
.tech-orb {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
}

.tech-orb-container {
  gap: 6rem;
  margin-top: 1.5rem;
}

/* Team Photos */
.team-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 0 0 2px rgba(255, 102, 0, 0.1);
  transition: all 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
              0 0 0 3px rgba(255, 102, 0, 0.3);
}

.team-photo-lg {
  max-width: 200px;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 0 0 2px rgba(255, 102, 0, 0.1);
}

/* Team Member Card Styles */
.team-member-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.team-member-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Clickable Card Styles */
.team-member-card.clickable-card {
  cursor: pointer;
}

.team-member-card.clickable-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
}

/* Card Chevron Icon */
.card-chevron {
  color: #ff6b35;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Rotate chevron when card is expanded */
.team-member-card.clickable-card[aria-expanded="true"] .card-chevron,
.team-member-card.clickable-card .bio-collapse.show ~ .text-center .card-chevron {
  transform: rotate(180deg);
}

/* Bio Toggle Button */
.bio-toggle {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bio-toggle:hover {
  text-decoration: none;
  opacity: 0.8;
}

.bio-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

.bio-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Bio Collapse Content */
.bio-collapse {
  margin-top: 1rem;
  overflow: hidden;
}

.bio-content {
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
  border-left: 3px solid var(--brand-orange);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bio-content br {
  display: block;
  content: "";
  margin-top: 0.75rem;
}

/* Animation for collapse */
.bio-collapse.collapsing {
  transition: height 0.35s ease;
}

/* Removed fadeIn animation to prevent flashing on repeated opens */
.bio-collapse.show {
  /* Animation removed - Bootstrap handles the collapse smoothly */
}

/* Tablet Responsive Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Step 1 Tablet Fixes - scale images properly */
  #products .snap-page[data-step="1"] .step-phrase {
    max-width: 85vw;
    padding: 0 1.5rem;
  }

  #products .snap-page[data-step="1"] .step-img--variant,
  .step-page[data-step="1"] .step-img--variant {
    max-width: 75vw !important;
    width: 75vw !important;
  }

  #products .snap-page[data-step="1"] .step1-center,
  .step-page[data-step="1"] .step1-center {
    max-width: 80vw !important;
  }

  #products .snap-page[data-step="1"] .step1-center--toggle {
    max-width: 75vw !important;
  }

  .tech-orb {
    max-width: min(280px, 30vw);
    max-height: min(280px, 30vw);
    width: 30vw;
    height: 30vw;
  }

  .tech-orb-container {
    gap: 3rem;
  }

  /* Step 2 tablet - scale to viewport and stack if needed */
  .step2-linear-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .step2-img-wrap {
    width: 28vw !important;
    min-width: 200px !important;
    max-width: 280px !important;
  }

  .step2-img {
    width: 100%;
    height: auto;
  }

  .step2-operator {
    font-size: 2.5rem;
    margin:auto;
  }

  /* Step 3 tablet - scale better */
  #products .snap-page[data-step="3"] .step3-small {
    max-width: 42vw !important;
    width: 42vw !important;
  }

  .step4-circle {
    width: 20vw !important;
    height: 20vw !important;
    max-width: 220px;
    max-height: 220px;
  }
}

/* Medium Desktop Adjustments (1025px - 1500px) */
@media (min-width: 1025px) and (max-width: 1500px) {
  /* Step 1 medium desktop - scale images better */
  #products .snap-page[data-step="1"] .step-img--variant,
  .step-page[data-step="1"] .step-img--variant {
    max-width: 70vw !important;
    width: 70vw !important;
  }

  #products .snap-page[data-step="1"] .step1-center,
  .step-page[data-step="1"] .step1-center {
    max-width: 75vw !important;
  }

  #products .snap-page[data-step="1"] .step1-center--toggle {
    max-width: 70vw !important;
  }

  #products .snap-page[data-step="1"] .step-phrase {
    max-width: 80vw;
  }

  /* Step 2 medium desktop - scale to screen */
  .step2-linear-row {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .step2-img-wrap {
    width: 24vw !important;
    min-width: 220px !important;
    max-width: 320px !important;
  }

  .step2-img {
    width: 100%;
    height: auto;
  }

  .step2-operator {
    font-size: 3rem;
  }

  /* Step 3 medium desktop - scale better */
  #products .snap-page[data-step="3"] .step3-small {
    max-width: 40vw !important;
    width: 40vw !important;
  }

  .step4-circle {
    width: 18vw !important;
    height: 18vw !important;
    max-width: 250px;
    max-height: 250px;
  }

  /* Tech section */
  .tech-orb {
    max-width: min(300px, 28vw);
    max-height: min(300px, 28vw);
    width: 28vw;
    height: 28vw;
  }

  .tech-orb-container {
    gap: 4rem;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .tech-orb {
   text-align: center;;
  }

  .tech-stage .d-flex {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  /* Step 1 Mobile Fixes */
  #products .snap-page[data-step="1"] .step-phrase {
    font-size: 1.1rem !important;
    max-width: 90vw;
    padding: 0 1rem;
    line-height: 1.4;
  }

  #products .snap-page[data-step="1"] .step1-toggle {
    flex-direction: row;
    justify-content: center;
    margin-top: 1rem;
  }

  #products .snap-page[data-step="1"] .node-btn {
    font-size: 1.5rem !important;
    padding: 0.5rem 1.5rem !important;
    min-width: 100px;
  }
  #products .snap-page[data-step="1"] .step-img--variant,
  .step-page[data-step="1"] .step-img--variant {
    transform: none !important;
    translate: none !important;
    width: 100% !important;
    max-width: 85vw !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  #products .snap-page[data-step="1"] .step1-center,
  .step-page[data-step="1"] .step1-center {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
  }

  #products .snap-page[data-step="1"] .step1-center--toggle {
    overflow: visible;
    max-width: 85vw;
    margin: 0 auto;
  }

  #products .snap-page[data-step="1"] {
    padding-top: var(--space-2) !important;
  }

  /* Product title mobile */
  #product-title .main-title {
    font-size: 1.5rem !important;
    padding: 0.5rem 0 !important;
  }

  /* General products section mobile */
  #products .snap-page {
    padding: var(--space-2) var(--space-1) !important;
  }

  /* Step 1 variant text mobile */
  #products .snap-page[data-step="1"] .step1-variant-text {
    font-size: 0.9rem !important;
    margin: 0.5rem 0 !important;
  }

  /* Step 1 header stack mobile */
  #products .snap-page[data-step="1"] .step1-header-stack {
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    overflow-x: hidden;
  }

  /* Ensure no overflow on mobile */
  #products,
  #products .snap-wrapper,
  #products .snap-page {
    max-width: 100vw;
  }

  /* Force all step 1 content to fit */
  #products .snap-page[data-step="1"] * {
    max-width: 100%;
  }

  /* Step 3 benefits - stack on mobile */
  .step3-benefits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.2rem !important;
  }

  .benefit-word {
    display: block;
  }

  .benefit-separator {
    display: block;
  }

  /* Step 2 - Stack vertically and change arrow to point down */
  .step2-linear-row {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .step2-operator {
    font-size: 2.5rem !important;
  }

  /* Change arrow to point down on mobile */
  .step2-operator:last-of-type {
    transform: rotate(90deg);
  }

  /* Step 2 images on mobile */
  .step2-img-wrap {
    width: 100% !important;
    max-width: 300px !important;
  }
}

/* native CSS scroll-snap retained (JS-controlled snap removed) */
.learn-more-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.lrn-more-button {
  margin: auto;
}

/* Desktop - keep benefits horizontal */
@media (min-width: 769px) {
  .step3-benefits {
    display: inline;
  }

  .benefit-word,
  .benefit-separator {
    display: inline;
  }
}

@media (max-width: 1100px) {
  #products .snap-page[data-step="3"] .step3-left{
      transform: unset;
      left:unset;
    }
    #products .snap-page[data-step="3"].is-active .step3-right{
      left:unset;
      top:unset;
    }
}


@media (max-width: 1500px) {
  #products .snap-page[data-step="3"] .step3-left{
      transform: unset;
      left:unset;
    }
    #products .snap-page[data-step="3"].is-active .step3-right{
      left:unset;
      top:unset;
    }
  
}
.step3-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* spacing between elements */
  position: relative;
}

.step3-left,
.step3-right {
  flex: 1; /* makes both sides equal width */
}

.step3-arrow {
position: relative;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    width: clamp(80px, 10vw, 120px);
    height: 4px;
    background: #f97316;
    pointer-events: none;
}
.step3-arrow::after{
  content:"";
  position:absolute;
  right:-10px;
  top:50%;
  transform:translateY(-50%);
  border-width:7px 0 7px 11px;
  border-style:solid;
  border-color:transparent transparent transparent var(--brand-orange, #f97316);
}

/* Point arrow down on smaller screens */
@media (max-width: 1099px) {
  .step3-arrow {
    width: 4px;
    height: clamp(80px, 10vw, 120px);
    left: 0;
  }
  .step3-arrow::after {
    right: auto;
    top: auto;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 11px 7px 0 7px;
    border-color: var(--brand-orange, #f97316) transparent transparent transparent;
  }
}

/* Enhanced styling for step3 videos and images in columns */
.step3-col--left img,
.step3-col--left video,
.step3-col--right img,
.step3-col--right video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.step3-col--left img:hover,
.step3-col--left video:hover,
.step3-col--right img:hover,
.step3-col--right video:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.3);
}

@media (min-width: 1100px) {
  .step3-col--left, .step3-col--right{
    width:35%;
  }
  .step3-col--middle{
    width:28%;
  }
}

@media (max-width: 1099px) {
  #products .videos.snap-page[data-step="3"] .step3-row{
    align-items: flex-start;
  }
}
  .step3-col--left, .step3-col--right{
    max-width:800px;
  }
  .videos .step3-row{
    margin-bottom: 1rem;
  }

  #products .snap-page .step3-circles-row img{
    height:250px;
  }
  .step3-circles-row{
    margin-top: 4.5rem;;
  }
.step2-video, .step2-image{
    border:unset;
    box-shadow: unset;
}
.step2-video-container.image-container{
    box-shadow: unset;
}
.step3-assembly-section, .step3-results-section, .step3-before-after-section{
    width: 100%;
    max-width: 1500px;
}
.step3-col img, .step3-col video{
  border:0;
}

/* =====================================================
   PRODUCT SHOWCASE - INTERACTIVE CARDS
   ===================================================== */

/* Product Showcase Header */
.product-showcase-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-tertiary);
  font-weight: 400;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  align-items: start;
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Card */
.product-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-standard);
  box-shadow: var(--shadow-subtle);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
}

.product-card.expanded {
  border-color: var(--color-orange-primary);
}

/* Product Header */
.product-header {
  padding: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-header:hover {
  background: var(--color-bg-gray);
}

.product-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-orange-primary);
  margin-bottom: 10px;
}

.product-tagline {
  font-size: 1.3rem;
  color: var(--color-text-tertiary);
  margin-bottom: 0;
}

/* Product Badge */
.product-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-highlight-bg);
  color: var(--color-orange-primary);
  border-radius: var(--radius-lg);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* Product Image */
.product-image {
  width: 100%;
  height: 280px;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  color: var(--color-text-light);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

/* OCS Layout with Background */
.product-card .product-content-layout.ocs-layout {
  position: relative;
  background-image: url('/static/images/OCS_background/ocs_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 12px 12px;
}

.product-card .product-content-layout.ocs-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 0 12px 12px;
  z-index: 0;
}

.product-card .product-content-layout.ocs-layout > * {
  position: relative;
  z-index: 1;
}

.product-content-layout.ocs-layout {
  align-items: stretch;
}

.product-content-layout.ocs-layout .product-image-side,
.product-content-layout.ocs-layout .product-details-side {
  display: flex;
}

.product-content-layout.ocs-layout .product-image-side .ocs-description-block,
.product-content-layout.ocs-layout .product-details-side {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-content-layout.ocs-layout .product-details-side {
  background: linear-gradient(135deg, rgba(255, 248, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
}

/* OCS Description Block Styling */
.ocs-description-block {
  background: linear-gradient(135deg, rgba(255, 248, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;

}
.ocs-description-block h3{
      font-family: 'Orbitron', monospace;

}

.ocs-description-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ocs-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.ocs-description-header h4 {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ocs-description-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
  flex-grow: 1;
}

.ocs-description-text strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.ocs-contact-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-orange);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 107, 53, 0.15);
  font-style: italic;
}

/* Expand Button */
.expand-button {
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-standard);
  background: var(--color-background);
  flex-shrink: 0;
}

.expand-button:hover {
  background: var(--color-highlight-bg);
}

.expand-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-orange-primary);
}

.expand-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-orange-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
  position: relative;
}

.expand-icon::before {
  content: '';
  width: 10px;
  height: 2px;
  background: var(--color-orange-primary);
  position: absolute;
}

.expand-icon::after {
  content: '';
  width: 2px;
  height: 10px;
  background: var(--color-orange-primary);
  position: absolute;
  transition: var(--transition-standard);
}

.product-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.product-card.expanded .expand-icon::after {
  height: 0;
}

/* Product Details (Dropdown) */
.product-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--color-bg-gray);
  border-top: 0px solid var(--color-border);
  padding: 0;
}

.product-card.expanded .product-details {
  max-height: 800px;
  padding: 30px;
  border-top: 1px solid var(--color-border);
}

.details-content h3 {
  font-size: 18px;
  color: var(--color-text-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.details-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.specs-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.spec-item {
  display: flex;
  align-items: start;
  gap: 15px;
  margin-bottom: 12px;
}

.spec-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-orange-primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}


.cta-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--gradient-orange-diagonal);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-standard);
}

.cta-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase-header {
    margin-bottom: 40px;
  }
}