/* =========================================
   BAKEQUIP — MODERN WEBSITE CSS v2
   Vectrfl-inspired header + scroll flow
   ========================================= */

:root {
  --brand: #FF6B35;
  --brand-dark: #E5571F;
  --brand-light: #FF9068;
  --bg-deep: #080810;
  --bg-dark: #0C0C18;
  --bg-card: #101020;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.07);
  --text-1: #F0F0F8;
  --text-2: #8888AA;
  --text-3: #4A4A68;
  --border-subtle: rgba(255,255,255,0.05);
  --border-normal: rgba(255,255,255,0.09);
  --border-brand: rgba(255,107,53,0.3);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-out: cubic-bezier(0.19,1,0.22,1);
  --ease-bounce: cubic-bezier(0.34,1.56,0.64,1);
  --max-w: 1320px;
  --pad: clamp(1.25rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
html.preload * { transition: none !important; animation-play-state: paused !important; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
em { font-style: normal; color: var(--brand); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Inner wrapper — becomes the stacking context for the SVG rings */
.preloader__inner {
  text-align: center;
  position: relative;
  /* Extra padding below logo to make room for the ring stack */
  padding-bottom: 120px;
}

/* Logo stays on top, slightly lifted */
.preloader__logo {
  font-family: var(--font-head); font-size: 2.75rem; font-weight: 900;
  margin-bottom: 0;         /* bar now sits below via absolute */
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.2s forwards;
  position: relative; z-index: 2;
}
.preloader__b { color: var(--brand); }

/* ── HIDE the old flat bar/fill completely ── */
.preloader__bar  { display: none; }
.preloader__fill { display: none; }

/* ─────────────────────────────────────────
   SVG-STYLE ANIMATED RING STACK
   We use .preloader__inner::before  = outer orbit ring
           .preloader__inner::after  = spinning conic arc (the "progress" look)
   Plus two layered box-shadows for the glow
   ───────────────────────────────────────── */

/* Outer dashed orbit ring — slow counter-spin */
.preloader__inner::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 107, 53, 0.25);
  animation: preload-orbit-ccw 6s linear infinite;
  /* Small dots on the orbit ring using radial-gradient mask */
  background:
    radial-gradient(circle at 50%   2%, rgba(255,107,53,0.8) 2px, transparent 3px),
    radial-gradient(circle at 50%  98%, rgba(255,107,53,0.5) 2px, transparent 3px),
    radial-gradient(circle at  2%  50%, rgba(255,107,53,0.4) 2px, transparent 3px),
    radial-gradient(circle at 98%  50%, rgba(255,107,53,0.6) 2px, transparent 3px);
}

/* Inner conic spinner — the main progress arc */
.preloader__inner::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 10px;     /* nudge up slightly to center in ring */
  transform: translateX(-50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: conic-gradient(
    var(--brand)           0deg,
    var(--brand-light)     90deg,
    rgba(255,107,53,0.15)  180deg,
    transparent            260deg,
    transparent            360deg
  );
  animation: preload-spin 1.1s linear infinite;
  /* Soft glow */
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.55));
}

/* Centre "hole" — punched out via a pseudo on .preloader__logo */
/* We fake it with a fixed-size white-core circle via box-shadow on ::after */
.preloader__logo::after {
  content: '';
  position: absolute;
  left: 50%; top: calc(100% + 48px);   /* 48px gap from logo bottom */
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-deep);
  z-index: 3;
  /* Inner pulsing glow dot */
  box-shadow:
    0 0  0   6px rgba(255,107,53,0.08),
    0 0  0  12px rgba(255,107,53,0.05),
    0 0 12px 0px rgba(255,107,53,0.3);
  animation: preload-pulse 1.6s ease-in-out infinite;
}

/* Brand-colour centre dot inside the hole */
.preloader__logo::before {
  content: '';
  position: absolute;
  left: 50%; top: calc(100% + 60px);
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-light) 0%, var(--brand) 60%, var(--brand-dark) 100%);
  z-index: 4;
  animation: preload-dot-pulse 1.6s ease-in-out infinite;
}

/* ── Keyframes ── */
@keyframes preload-spin    { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes preload-orbit-ccw { to { transform: translateX(-50%) rotate(-360deg); } }

@keyframes preload-pulse {
  0%, 100% {
    box-shadow:
      0 0  0   6px rgba(255,107,53,0.08),
      0 0  0  12px rgba(255,107,53,0.05),
      0 0 12px 0px rgba(255,107,53,0.30);
  }
  50% {
    box-shadow:
      0 0  0  10px rgba(255,107,53,0.12),
      0 0  0  20px rgba(255,107,53,0.06),
      0 0 24px 0px rgba(255,107,53,0.50);
  }
}

@keyframes preload-dot-pulse {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 1; }
  50%       { transform: translateX(-50%) scale(1.25); opacity: 0.8; }
}

/* Keep existing fadeUp used by the logo */
/* @keyframes fadeUp is already defined later in the file — no conflict */


/* ============================================================
   PILL BUTTONS (Vectrfl style)
   ============================================================ */
.pill-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  padding: 0.6rem 1.4rem; border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease);
  white-space: nowrap; letter-spacing: 0.01em;
}
.pill-btn--glass {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-1);
  backdrop-filter: blur(10px);
}
.pill-btn--glass:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.pill-btn--dark {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pill-btn--dark:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,53,0.4);
}
.pill-btn--light {
  background: #fff; border-color: #fff; color: #0C0C18;
}
.pill-btn--light:hover {
  background: #f0f0f0; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}
.pill-btn--outline-light {
  background: transparent; border-color: rgba(255,255,255,0.4); color: #fff;
}
.pill-btn--outline-light:hover {
  background: rgba(255,255,255,0.08); transform: translateY(-1px);
}
.pill-btn--large { font-size: 0.9875rem; padding: 0.8rem 2rem; }
.pill-btn--full { width: 100%; justify-content: center; }

/* ============================================================
   PREMIUM NAVBAR  (replaces old header/dropdown/mobile-nav)
   ============================================================ */

/* ── Bar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar--scrolled {
  background: rgba(8,8,16,0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-color: var(--border-subtle);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

/* ── Inner row ── */
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Logo ── */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar__logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1;
  white-space: nowrap;
}
.navbar__logo-text em {
  color: var(--brand);
  font-style: normal;
}

/* ── Links ── */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(240,240,248,0.65);
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  white-space: nowrap;
}
.navbar__link:hover,
.navbar__link[aria-expanded="true"] {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}

/* chevron spin */
.navbar__chevron {
  width: 12px; height: 12px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.navbar__services-btn[aria-expanded="true"] .navbar__chevron {
  transform: rotate(180deg);
}

/* ── Right actions ── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(255,107,53,0);
}
.navbar__cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,107,53,0.35);
}

/* ── Hamburger ── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-normal);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.navbar__hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.navbar__hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MEGA MENU ── */
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: rgba(10,10,20,0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  pointer-events: none;
  z-index: 999;
}
.mega--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 2.5rem;
}
.mega__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

/* Card */
.mega__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.mega__card:hover {
  border-color: rgba(255,107,53,0.4);
  background: rgba(255,107,53,0.06);
  transform: translateY(-3px);
}

/* Art pane (the animated SVG) */
.mega__card-art {
  width: 100%;
  aspect-ratio: 200/140;
  overflow: hidden;
  background: #0a0a16;
  flex-shrink: 0;
}
.mega__art-svg {
  width: 100%;
  height: 100%;
}

/* Text body */
.mega__card-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mega__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,107,53,0.12);
  color: var(--brand);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}
.mega__card-icon svg { width: 14px; height: 14px; }
.mega__card-title {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
  margin: 0;
}
.mega__card-desc {
  font-size: 0.72rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

/* ── Mega menu SVG animations ── */
@keyframes mmPulse {
  0%,100% { opacity: .9; }
  50% { opacity: .3; }
}
@keyframes mmScan {
  0% { transform: translateX(-30px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(30px); opacity: 0; }
}
@keyframes mmSpin  { to { transform: rotate(360deg); transform-origin: center; } }
@keyframes mmSpinR { to { transform: rotate(-360deg); transform-origin: center; } }
@keyframes mmFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes mmWave {
  0% { r: 10; opacity: .8; }
  100% { r: 55; opacity: 0; }
}
.mm-pulse { animation: mmPulse 2s ease-in-out infinite; }
.mm-scan  { animation: mmScan 3s ease-in-out infinite; }
.mm-spin  { animation: mmSpin 6s linear infinite; transform-box: fill-box; }
.mm-spin-rev { animation: mmSpinR 4s linear infinite; transform-box: fill-box; }
.mm-float { animation: mmFloat 3s ease-in-out infinite; }
.mm-blueprint { animation: mmPulse 3s ease-in-out infinite; }
.mm-wave1 { animation: mmWave 2.2s ease-out infinite; }
.mm-wave2 { animation: mmWave 2.2s ease-out infinite 0.7s; }
.mm-wave3 { animation: mmWave 2.2s ease-out infinite 1.4s; }
@keyframes mmSpark1 { 0% { transform:translate(0,0); opacity:1; } 100% { transform:translate(20px,-28px) scale(.4); opacity:0; } }
@keyframes mmSpark2 { 0% { transform:translate(0,0); opacity:1; } 100% { transform:translate(-14px,-34px) scale(.4); opacity:0; } }
.mm-spark1 { animation: mmSpark1 1.4s ease-out infinite; }
.mm-spark2 { animation: mmSpark2 1.8s ease-out infinite 0.4s; }

/* ── MOBILE NAV ── */
.mobile-nav__overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  z-index: 1100; opacity: 0; transition: opacity 0.3s;
}
.mobile-nav__panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px,90vw); background: #0a0a16;
  border-left: 1px solid var(--border-subtle);
  z-index: 1200; padding: 1.5rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav__overlay { display: block; opacity: 1; }
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.mobile-nav__close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-glass); border: 1px solid var(--border-normal);
  border-radius: 8px; cursor: pointer; color: var(--text-2); transition: all 0.2s;
}
.mobile-nav__close:hover { color: var(--text-1); background: var(--bg-glass-hover); }
.mobile-nav__list { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 2rem; list-style:none; padding:0; margin:0 0 2rem; }
.mobile-nav__link {
  display: block; font-size: 1rem; font-weight: 500; color: var(--text-2);
  padding: 0.7rem 1rem; border-radius: 10px; transition: all 0.2s;
}
.mobile-nav__link:hover { color: var(--text-1); background: var(--bg-glass); }
.mobile-nav__services-group { padding: 0.5rem 0; }
.mobile-nav__group-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 0.4rem 1rem;
}
.mobile-nav__sub { list-style: none; padding: 0; margin: 0; }
.mobile-nav__sub-link { font-size: 0.9rem; padding: 0.5rem 1.5rem; }
.mobile-nav__ctas { display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; margin-top: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .navbar__links { display: none; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mega__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 5rem var(--pad) 4rem;
  overflow: hidden;
}

.hero__content { position: relative; z-index: 2; max-width: 720px; }

.hero__eyebrow { margin-bottom: 1.75rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.2);
  padding: 0.375rem 1rem; border-radius: 100px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.hero__title-line { display: block; }
.hero__title-accent { color: var(--brand); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2); line-height: 1.75; margin-bottom: 2.75rem;
  max-width: 540px; margin-left: auto; margin-right: auto;
}

.hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: 0.875rem; flex-wrap: wrap;
}

/* Scroll hint wrapper to handle absolute centering independently from scroll animation */
.hero__scroll-hint-wrapper {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
}
.hero__scroll-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
}
.hero__scroll-line {
  width: 1.5px; height: 40px;
  background: linear-gradient(to bottom, var(--brand), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* Hero 3D scene */
.hero__scene {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
}
.hero__scene-inner {
  position: absolute; bottom: -5%; left: 50%; transform: translateX(-50%);
  width: 110%; max-width: 1200px;
}
.hero__scene-svg { width: 100%; height: auto; opacity: 0.8; }

/* Animated SVG elements in hero */
.hero-machine { animation: heroFloat 6s ease-in-out infinite; }
.hero-conveyor { animation: heroFloat 7s ease-in-out 1s infinite reverse; }
.hero-mixer { animation: heroFloat 5.5s ease-in-out 0.5s infinite; }
@keyframes heroFloat {
  0%,100% { transform: translateY(0) var(--translate, translateX(0)); }
  50% { transform: translateY(-12px) var(--translate, translateX(0)); }
}

.ctrl-dot-1 { animation: ctrlBlink 1.8s ease-in-out infinite; }
.ctrl-dot-2 { animation: ctrlBlink 1.8s ease-in-out 0.6s infinite; }
.ctrl-dot-3 { animation: ctrlBlink 1.8s ease-in-out 1.2s infinite; }
@keyframes ctrlBlink {
  0%,100% { opacity: 0.9; } 50% { opacity: 0.2; }
}

.mixer-spin { animation: mixerRotate 3s linear infinite; transform-origin: 60px 30px; }
@keyframes mixerRotate {
  from { stroke-dashoffset: 0; } to { stroke-dashoffset: -120; }
}

.particle { animation: particleFloat 3s ease-in-out infinite; }
.p1 { animation-delay: 0s; animation-duration: 3.2s; }
.p2 { animation-delay: 0.5s; animation-duration: 2.8s; }
.p3 { animation-delay: 1s; animation-duration: 3.5s; }
.p4 { animation-delay: 1.5s; animation-duration: 2.5s; }
.p5 { animation-delay: 0.8s; animation-duration: 3.8s; }
@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.5; }
  100% { transform: translateY(0) scale(1); opacity: 0.8; }
}

.hero-stream { stroke-dashoffset: 0; animation: streamFlow 2s linear infinite; }
@keyframes streamFlow { to { stroke-dashoffset: -28; } }

/* Hero entrance animations */
[data-anim="fade-up"] { opacity: 0; transform: translateY(28px); }
[data-anim="fade-up"].anim-in {
  animation: fadeUp 0.85s var(--ease-out) forwards;
}
[data-delay="0"].anim-in { animation-delay: 0.3s; }
[data-delay="1"].anim-in { animation-delay: 0.5s; }
[data-delay="2"].anim-in { animation-delay: 0.65s; }
[data-delay="3"].anim-in { animation-delay: 0.8s; }
[data-delay="4"].anim-in { animation-delay: 0.95s; }
[data-delay="5"].anim-in { animation-delay: 1.1s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FLOW SECTION — Vectrfl pinned scroll style
   ============================================================ */
/* ============================================================
   FLOW SECTION — Vectrfl pinned scroll style
   ============================================================ */
.flow-container {
  position: relative;
}

/* Scroll space fills the scroll travel distance (set via JS) */
.flow-scroll-space {
  width: 100%;
  /* height set by JS: window.innerHeight * (TOTAL_STEPS + 0.5) */
}

/* Pinned container — sticks to top while scroll-space below drives progress */
.flow-pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: block;
  pointer-events: none; /* re-enabled on children */
}

/* ---- Scene (SVG Container) ---- */
.flow-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.scene-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.scene-panel.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.scene-panel.is-leaving {
  opacity: 0;
  transform: scale(1.04) translateY(-20px);
}

.scene-svg {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

/* ---- Step list (Vectrfl style) ---- */
.flow-steps-list {
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: calc(100% - 80px);
  max-width: 450px;
  z-index: 10;
  display: grid; /* Grid stacks children inside */
  pointer-events: all;
  background: rgba(14, 14, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.flow-step-item {
  grid-area: 1 / 1; /* Stack all items in the exact same cell */
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  cursor: default;
}
.flow-step-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 2;
}
.flow-step-item.is-leaving {
  opacity: 0;
  transform: translateY(-20px);
  z-index: 1;
}

.flow-step-num {
  font-family: var(--font-head);
  font-size: 1.125rem; font-weight: 800;
  color: var(--brand);
  padding-top: 0.1rem;
  letter-spacing: -0.02em;
}

.flow-step-title {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0;
}

/* Expandable body (always open for the active step) */
.flow-step-body {
  display: block;
}

.flow-step-track {
  margin: 0.75rem 0 0.5rem;
  height: 2px; background: var(--border-subtle); border-radius: 2px; overflow: hidden;
}
.flow-step-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
  transition: width 1s var(--ease-out) 0.2s;
}
.flow-step-item.is-active .flow-step-fill { width: 100%; }

.flow-step-desc {
  font-size: 0.9rem; color: var(--text-2); line-height: 1.7;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
}
.flow-step-desc strong { color: var(--brand); font-weight: 600; }

/* Responsive adjustments for flow section */
@media (max-width: 768px) {
  .flow-steps-list {
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 100%;
    padding: 1rem;
  }
}


/* ---- Scene-specific CSS animations ---- */

/* Scene 1: Error pulse */
.s1-error-pulse { animation: errPulse 1.5s ease-in-out infinite; }
@keyframes errPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}
.s1-ctrl-red { animation: ctrlBlink 0.8s ease-in-out infinite; }
.s1-broken-glow { animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}
.s1-smoke path { animation: smokeRise 3s ease-in-out infinite; opacity: 0; }
.s1-smoke path:nth-child(1) { animation-delay: 0s; }
.s1-smoke path:nth-child(2) { animation-delay: 0.8s; }
.s1-smoke path:nth-child(3) { animation-delay: 1.6s; }
@keyframes smokeRise {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-20px); }
}
.s1-warning-float { animation: warnFloat 2.5s ease-in-out infinite; }
@keyframes warnFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.s1-spark { animation: sparkle 1.2s ease-in-out infinite; }
.s1-sp1 { animation-delay: 0s; }
.s1-sp2 { animation-delay: 0.3s; }
.s1-sp3 { animation-delay: 0.6s; }
.s1-sp4 { animation-delay: 0.9s; }
@keyframes sparkle {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.5); }
}
.s1-scanline { animation: scanlineMove 4s linear infinite; }
@keyframes scanlineMove {
  0% { transform: translateY(-300px); } 100% { transform: translateY(300px); }
}

/* Scene 2: Call animation */
.s2-ring { animation: ringExpand 2s ease-out infinite; opacity: 0; }
.s2-r1 { animation-delay: 0s; }
.s2-r2 { animation-delay: 0.4s; }
.s2-r3 { animation-delay: 0.8s; }
@keyframes ringExpand {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.4); }
}
.s2-call-beam {
  stroke-dasharray: 10 6;
  animation: beamFlow 1.5s linear infinite;
}
@keyframes beamFlow { to { stroke-dashoffset: -32; } }
.s2-dot { animation: dotPulse 1.5s ease-in-out infinite; }
.s2-d1 { animation-delay: 0s; }
.s2-d2 { animation-delay: 0.2s; }
.s2-d3 { animation-delay: 0.4s; }
.s2-d4 { animation-delay: 0.6s; }
@keyframes dotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}
.s2-office-ring { animation: ringExpand 3s ease-out 0.5s infinite; }
.s2-connected { animation: connectedFloat 3s ease-in-out infinite; }
@keyframes connectedFloat {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); }
}

/* Scene 3: Van movement */
.s3-van { animation: vanDrive 0.15s ease-in-out infinite; }
@keyframes vanDrive {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); }
}
.s3-wheel1-spoke { animation: wheelSpin 0.5s linear infinite; transform-origin: 40px 100px; }
.s3-wheel1-spoke2 { animation: wheelSpin 0.5s linear infinite; transform-origin: 40px 100px; animation-delay: -0.25s; }
.s3-wheel2-spoke { animation: wheelSpin 0.5s linear infinite; transform-origin: 170px 100px; }
.s3-wheel2-spoke2 { animation: wheelSpin 0.5s linear infinite; transform-origin: 170px 100px; animation-delay: -0.25s; }
@keyframes wheelSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.s3-speed { animation: speedLines 0.6s linear infinite; }
.s3-sp1 { animation-delay: 0s; }
.s3-sp2 { animation-delay: 0.2s; }
.s3-sp3 { animation-delay: 0.4s; }
@keyframes speedLines {
  0% { opacity: 0.5; transform: translateX(20px); }
  100% { opacity: 0; transform: translateX(-20px); }
}
.s3-ping { animation: pingExpand 2.5s ease-out infinite; }
.s3-p1 { animation-delay: 0s; }
.s3-p2 { animation-delay: 0.8s; }
@keyframes pingExpand {
  0% { opacity: 0.5; r: 40; } 100% { opacity: 0; r: 75; }
}
.s3-destination { animation: destFloat 3s ease-in-out infinite; }
@keyframes destFloat {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); }
}
.s3-route { stroke-dashoffset: 0; animation: routeFlow 2s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -40; } }
.s3-beam { animation: headlightPulse 2s ease-in-out infinite; }
@keyframes headlightPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Scene 4: Repair */
.s4-gear1 { animation: gearSpin 4s linear infinite; transform-origin: 40px 40px; }
.s4-gear2 { animation: gearSpin 4s linear infinite reverse; transform-origin: 25px 25px; }
@keyframes gearSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.s4-spark { animation: sparkle 0.8s ease-in-out infinite; }
.s4-s1 { animation-delay: 0s; }
.s4-s2 { animation-delay: 0.2s; }
.s4-s3 { animation-delay: 0.4s; }
.s4-s4 { animation-delay: 0.6s; }
.s4-inner-glow { animation: glowPulse 1.5s ease-in-out infinite; }
.s4-ctrl-ok { animation: ctrlBlink 2s ease-in-out infinite; }
.s4-cursor { animation: cursorBlink 1s linear infinite; }
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.s4-tech { animation: techWork 1.5s ease-in-out infinite; }
@keyframes techWork {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-1deg); }
  75% { transform: translateY(1px) rotate(1deg); }
}

/* Scene 5: Happy */
.s5-door-glow { animation: glowPulse 2s ease-in-out infinite; }
.s5-ctrl { animation: ctrlOkBlink 2s ease-in-out infinite; }
@keyframes ctrlOkBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.s5-heat path { animation: heatRise 2.5s ease-in-out infinite; opacity: 0; }
.s5-h1 { animation-delay: 0s; }
.s5-h2 { animation-delay: 0.7s; }
.s5-h3 { animation-delay: 1.4s; }
@keyframes heatRise {
  0% { opacity: 0; transform: translateY(5px); }
  40% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-30px); }
}
.s5-bread { animation: breadMove 4s linear infinite; }
.s5-br1 { animation-delay: 0s; }
.s5-br2 { animation-delay: 1.3s; }
.s5-br3 { animation-delay: 2.6s; }
@keyframes breadMove {
  from { transform: translateX(0); }
  to { transform: translateX(-250px); }
}
.s5-handshake { animation: shakeHands 0.5s ease-in-out infinite alternate; }
@keyframes shakeHands {
  from { transform: translateY(0); } to { transform: translateY(-4px); }
}
.s5-hs-glow { animation: glowPulse 1.5s ease-in-out infinite; }
.s5-star { animation: starTwinkle 2s ease-in-out infinite; }
.s5-s1 { animation-delay: 0s; }
.s5-s2 { animation-delay: 0.5s; }
.s5-s3 { animation-delay: 1s; }
.s5-s4 { animation-delay: 0.3s; }
.s5-s5 { animation-delay: 0.8s; }
@keyframes starTwinkle {
  0%,100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.4; transform: scale(0.6) rotate(15deg); }
}
.s5-checkmark { animation: checkFloat 3s ease-in-out infinite; }
@keyframes checkFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-label {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.2);
  padding: 0.3rem 0.875rem; border-radius: 100px; margin-bottom: 1rem;
}
.section-label--light {
  color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.12; color: var(--text-1); margin-bottom: 1.5rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: 7rem 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}
.services__container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.services__header { text-align: center; margin-bottom: 3.5rem; }
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 18px; padding: 1.75rem;
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,53,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover {
  background: var(--bg-glass-hover); border-color: var(--border-brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,53,0.1);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 52px; height: 52px; background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.18); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); margin-bottom: 1.125rem;
  transition: all 0.3s;
}
.service-card:hover .service-card__icon { background: rgba(255,107,53,0.15); transform: scale(1.08); }
.service-card__title {
  font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 0.6rem;
}
.service-card__desc { font-size: 0.9rem; color: var(--text-3); line-height: 1.65; margin-bottom: 1.125rem; }
.service-card__link { font-size: 0.8125rem; font-weight: 600; color: var(--brand); opacity: 0.6; transition: opacity 0.2s; }
.service-card:hover .service-card__link { opacity: 1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 7rem 0; }
.about__container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about__lead { font-size: 1.125rem; font-weight: 600; color: var(--text-1); margin-bottom: 1rem; }
.about__text { font-size: 0.9625rem; color: var(--text-2); line-height: 1.8; margin-bottom: 1.75rem; }
.about__points { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2.25rem; }
.about__points li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.9rem; color: var(--text-2);
}
.about__points li svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.about__stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about__stat-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 18px; padding: 2rem 1.5rem; text-align: center;
  transition: all 0.3s var(--ease);
}
.about__stat-card:hover { border-color: var(--border-brand); transform: translateY(-3px); box-shadow: 0 0 30px rgba(255,107,53,0.1); }
.stat__number { display: block; font-family: var(--font-head); font-size: 2.5rem; font-weight: 900; color: var(--brand); line-height: 1; margin-bottom: 0.5rem; }
.stat__label { font-size: 0.8rem; color: var(--text-3); font-weight: 500; }

/* ============================================================
   MACHINES BANNER
   ============================================================ */
.machines-banner {
  padding: 6rem var(--pad);
  background: linear-gradient(135deg,#120A04 0%,#0D0D18 50%,#05100D 100%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  position: relative; overflow: hidden;
}
.machines-banner::before {
  content: ''; position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle,rgba(255,107,53,0.1) 0%,transparent 70%);
  border-radius: 50%;
}
.machines-banner__content { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.machines-banner__title { font-family: var(--font-head); font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 800; color: var(--text-1); line-height: 1.15; margin-bottom: 0.625rem; }
.machines-banner__sub { font-size: 0.9375rem; color: var(--text-3); margin-bottom: 2rem; }
.machines-banner__grid { display: flex; flex-wrap: wrap; gap: 0.625rem; align-content: center; position: relative; z-index: 1; }
.machine-chip {
  background: var(--bg-glass); border: 1px solid var(--border-normal);
  border-radius: 100px; padding: 0.45rem 1rem; font-size: 0.8125rem;
  font-weight: 500; color: var(--text-2);
  transition: all 0.3s var(--ease); cursor: default;
}
.machine-chip:hover {
  background: rgba(255,107,53,0.08); border-color: rgba(255,107,53,0.25);
  color: var(--brand); transform: translateY(-2px);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 5rem var(--pad);
  background: linear-gradient(135deg,#180D04 0%,#1A1A2E 100%);
  position: relative; overflow: hidden;
}
.cta-banner__bg { position: absolute; inset: 0; }
.cta-banner__glow {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle,rgba(255,107,53,0.16) 0%,transparent 70%);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.cta-banner__content {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
}
.cta-banner__title {
  font-family: var(--font-head); font-size: clamp(1.75rem,3.5vw,2.75rem);
  font-weight: 800; color: var(--text-1); margin-bottom: 0.5rem; line-height: 1.15;
}
.cta-banner__title span { color: var(--brand); }
.cta-banner__sub { font-size: 1rem; color: var(--text-2); }
.cta-banner__actions { display: flex; gap: 0.875rem; flex-wrap: wrap; flex-shrink: 0; }

/* ============================================================
   NEW MODERN FOOTER
   ============================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 5rem var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-1);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.footer__logo svg {
  color: var(--brand);
}

.footer__desc {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-out);
}
.footer__socials a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-3px);
}

.footer__heading {
  color: var(--text-1);
  font-family: var(--font-head);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}
.footer__links a:hover {
  color: var(--brand);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}
.footer__contact-item svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.footer__contact-item a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.3s;
}
.footer__contact-item a:hover {
  color: var(--brand);
}

.footer__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 100px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  align-self: flex-start;
}

.footer__bottom {
  padding: 1.75rem var(--pad);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}
.footer__bottom-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer__copyright { font-size: 0.8125rem; color: var(--text-3); }
.footer__meta-links { display: flex; gap: 1.5rem; }
.footer__meta-links a { font-size: 0.8125rem; color: var(--text-3); transition: color 0.2s; }
.footer__meta-links a:hover { color: var(--brand); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }



/* ── SVG Animations for hero sections ── */
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
.gear-spin     { transform-origin: center; animation: spin-cw  20s linear infinite; }
.gear-spin-rev { transform-origin: center; animation: spin-ccw 20s linear infinite; }
@keyframes pulseOpacity { 0%,100%{opacity:.3} 50%{opacity:1} }
.pulse-line { animation: pulseOpacity 3s ease-in-out infinite alternate; }
@keyframes ripple { 0%{r:10px;opacity:1;stroke-width:4} 100%{r:180px;opacity:0;stroke-width:1} }
.network-wave { transform-origin: center; fill: none; stroke: rgba(255,107,53,.8); }
.wave-1 { animation: ripple 4s linear infinite; }
.wave-2 { animation: ripple 4s linear infinite 1.33s; }
.wave-3 { animation: ripple 4s linear infinite 2.66s; }
@keyframes drawPath { 0%{stroke-dashoffset:1500} 100%{stroke-dashoffset:0} }
.blueprint-path  { stroke-dasharray:1500; stroke-dashoffset:1500; animation: drawPath 8s linear infinite alternate; }
.blueprint-block { animation: pulseOpacity 4s ease-in-out infinite alternate; }
@keyframes laserScan { 0%{transform:translateY(-30px);opacity:0} 25%{opacity:1} 75%{opacity:1} 100%{transform:translateY(180px);opacity:0} }
.laser-scan { animation: laserScan 4s linear infinite; }
@keyframes floatAnim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
.float-anim { animation: floatAnim 4s ease-in-out infinite; }
@keyframes sparkAnim1 { 0%{transform:translate(0,0);opacity:1} 100%{transform:translate(30px,-40px) scale(.5);opacity:0} }
@keyframes sparkAnim2 { 0%{transform:translate(0,0);opacity:1} 100%{transform:translate(-20px,-50px) scale(.5);opacity:0} }
.spark-anim-1 { animation: sparkAnim1 1.5s ease-out infinite; }
.spark-anim-2 { animation: sparkAnim2 2s ease-out infinite .5s; }

/* ── Top bar ── */
.top-bar-wrapper { position: absolute; top: 0; left: 0; right: 0; z-index: 1002; }
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 2.5rem;
  background: rgba(14,14,24,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,107,53,.15);
  font-size: .8rem; color: var(--text-2); height: 40px;
}
.top-bar__left { display: flex; gap: 1.5rem; }
.top-bar__left a, .top-bar__left span { display: flex; align-items: center; gap: .5rem; color: var(--text-2); transition: color .3s; }
.top-bar__left a:hover { color: var(--brand); }
.top-bar__right { display: flex; gap: 1.25rem; }
.top-bar__right a { color: var(--text-2); transition: color .3s, transform .3s; display: flex; align-items: center; }
.top-bar__right a:hover { color: var(--brand); transform: translateY(-2px); }
@media (max-width: 900px) { .top-bar { display: none; } }

/* ── Page-level responsive breakpoints ── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .about__container { grid-template-columns: 1fr; gap: 3rem; }
  .machines-banner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .flow-step-desc { font-size: 0.85rem; }
  .cta-banner__content { flex-direction: column; align-items: flex-start; }
  .cta-banner__actions { width: 100%; }
  .cta-banner__actions .pill-btn { flex: 1; justify-content: center; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .navbar { padding: 0 1.25rem; }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.5rem,10vw,4rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .pill-btn { justify-content: center; }
  .about__stats-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Conveyor belt move animation (machines page) ── */
@keyframes conveyorMove {
  0%   { transform: translateX(-180px); }
  100% { transform: translateX(180px); }
}

/* ══════════════════════════════════════════════
   HOME HERO — Photo background layer + toggle
   ══════════════════════════════════════════════ */

/* Photo layer sits behind scene SVG, hidden by default */
.hero__bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero__bg-photo--visible {
  opacity: 1;
}
.hero__bg-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__bg-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,16,0.72) 0%,
    rgba(8,8,18,0.55) 50%,
    rgba(8,8,16,0.80) 100%
  );
}

/* When photo mode is active, hide the SVG scene smoothly */
.hero--photo-mode .hero__scene {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.hero .hero__scene {
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  opacity: 1;
}

/* ── Toggle pill ── */
.hero__bg-toggle {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(10,10,20,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 4px;
}
.hero__bg-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  border-radius: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.hero__bg-toggle-btn svg { flex-shrink: 0; }
.hero__bg-toggle-btn.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,107,53,0.45);
}
.hero__bg-toggle-btn:not(.active):hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07);
}

/* ══════════════════════════════════════════════
   RESPONSIVE GRID UTILITIES
   ══════════════════════════════════════════════ */
.grid-responsive-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.grid-responsive-contact {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.grid-responsive-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-responsive-2 {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .grid-responsive-contact {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  .grid-responsive-form {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}
