/* ============================================================================
   ENVIROTEC — Enhancement Layer  (atmospheric graphics + motion)
   Loaded AFTER styles.css. Purely additive & theme-aware. Safe to remove.
   ============================================================================ */

:root {
  --e-cold: #2fb6f6;   /* −73°C end */
  --e-mid:  #14b8a6;
  --e-hot:  #f97316;   /* +300°C end */
  --e-thermal: linear-gradient(90deg,
      var(--e-cold) 0%, #14b8a6 26%, var(--green-light) 50%,
      #eab308 74%, var(--e-hot) 100%);
}

/* ---------------------------------------------------------------- scroll bar */
.e-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 10001; pointer-events: none;
  background: var(--e-thermal);
  box-shadow: 0 0 14px rgba(17, 163, 87, 0.55);
  transition: width 0.12s linear;
}

/* ------------------------------------------------------- hero atmosphere */
.hero { position: relative; }
.hero-inner { position: relative; z-index: 2; }

.e-atmos {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.e-atmos-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 72% 38%, #000, transparent 76%);
          mask-image: radial-gradient(ellipse 68% 62% at 72% 38%, #000, transparent 76%);
}
.e-blob {
  position: absolute; border-radius: 50%;
  opacity: 0.6; will-change: transform;
}
.e-blob-1 {
  top: -20%; right: -8%; width: 52vw; height: 52vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 50% 50%, rgba(17,163,87,0.16), transparent 68%);
  animation: eDrift1 26s ease-in-out infinite;
}
.e-blob-2 {
  bottom: -26%; left: -12%; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle at 50% 50%, rgba(47,182,246,0.15), transparent 66%);
  animation: eDrift2 32s ease-in-out infinite;
}
.e-blob-3 {
  top: 18%; left: 30%; width: 38vw; height: 38vw; max-width: 520px; max-height: 520px;
  background: radial-gradient(circle at 50% 50%, rgba(249,115,22,0.11), transparent 64%);
  animation: eDrift3 30s ease-in-out infinite;
}
.e-grain {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes eDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4%, 5%) scale(1.08); } }
@keyframes eDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, -4%) scale(1.1); } }
@keyframes eDrift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5%, -6%) scale(1.12); } }

/* ------------------------------------------------------- headline shimmer */
.hero-title-accent {
  background: linear-gradient(100deg,
      var(--green) 0%, var(--green-light) 24%, #5fe0a0 44%,
      var(--green-light) 64%, var(--green) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: eShimmer 7s linear infinite;
}
@keyframes eShimmer { to { background-position: -220% 0; } }

/* ------------------------------------------------- hero showcase interaction */
.hero-showcase { perspective: 1300px; }
.hero-img-main {
  position: relative; overflow: hidden;
  transform: rotateX(var(--e-rx, 0deg)) rotateY(var(--e-ry, 0deg));
  transition: transform 0.35s var(--ease);
  transform-style: preserve-3d;
}
.hero-img-main::after {            /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: 4;
  border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(200px circle at var(--e-mx, 50%) var(--e-my, 50%),
              rgba(255,255,255,0.28), transparent 60%);
  mix-blend-mode: overlay; transition: opacity 0.3s;
}
.hero-img-main.e-active::after { opacity: 1; }
.e-scan {                          /* scanning sensor line */
  position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(17,163,87,0.14) 62%, rgba(17,163,87,0.26));
  border-bottom: 1px solid rgba(17,163,87,0.55);
  box-shadow: 0 0 18px rgba(17,163,87,0.35);
  animation: eScan 6s cubic-bezier(0.65,0,0.35,1) infinite;
}
@keyframes eScan {
  0%   { transform: translateY(0);    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(430%); opacity: 0; }
}

/* ---------------------------------------------------- operating envelope band */
.e-thermal { max-width: var(--max-w); margin: 0 auto; padding: 8px var(--pad) 28px; }
.e-thermal-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 20px; padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.e-thermal-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.e-thermal-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 9px;
}
.e-thermal-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(17,163,87,0.5);
  animation: ePulse 2s infinite;
}
@keyframes ePulse {
  0%   { box-shadow: 0 0 0 0 rgba(17,163,87,0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(17,163,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(17,163,87,0); }
}
.e-thermal-readout {
  font-family: var(--font-mono); font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 500; color: var(--text-primary); letter-spacing: 0.01em;
}
.e-thermal-readout .e-t-min { color: var(--e-cold); }
.e-thermal-readout .e-t-max { color: var(--e-hot); }
.e-thermal-readout .e-arrow { color: var(--text-faint); margin: 0 6px; }

.e-thermal-track {
  position: relative; height: 16px; border-radius: 10px;
  background: var(--light); overflow: hidden;
}
.e-thermal-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 10px;
  background: var(--e-thermal); transition: width 1.7s var(--ease);
}
.e-thermal-fill::after {          /* travelling sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  background-size: 42% 100%; background-repeat: no-repeat;
  animation: eSheen 2.4s linear infinite;
}
@keyframes eSheen { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.e-thermal-marker {
  position: absolute; top: -5px; bottom: -5px; left: 0; width: 3px;
  border-radius: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 10px rgba(0,0,0,0.25);
  transition: left 1.7s var(--ease);
}
.e-thermal-scale {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint);
}
.e-thermal.e-in .e-thermal-fill   { width: 100%; }
.e-thermal.e-in .e-thermal-marker { left: calc(100% - 3px); }

/* ----------------------------------------------------------- client marquee */
.e-marquee {
  position: relative; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.e-marquee-track {
  display: flex; align-items: center; gap: 60px; width: max-content;
  animation: eMarquee 36s linear infinite;
}
.e-marquee:hover .e-marquee-track { animation-play-state: paused; }
.e-marquee img {
  height: 52px; width: auto; flex: none; object-fit: contain;
  filter: grayscale(1); opacity: 0.62;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.e-marquee img:hover { filter: none; opacity: 1; transform: translateY(-3px); }
@keyframes eMarquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ magnetic btns */
.e-mag { transition: transform 0.25s var(--ease); will-change: transform; }

/* ============================ reduced-motion / mobile safety ============================ */
@media (prefers-reduced-motion: reduce) {
  .e-blob-1, .e-blob-2, .e-blob-3, .hero-title-accent,
  .e-scan, .e-thermal-fill::after, .e-thermal-label::before,
  .e-marquee-track { animation: none !important; }
  .hero-img-main { transform: none !important; }
  .e-thermal-fill { transition: none; }
  .e-thermal-marker { transition: none; }
}
@media (max-width: 640px) {
  .e-atmos-grid { background-size: 34px 34px; }
  .e-marquee img { height: 42px; }
  .e-marquee-track { gap: 40px; }
}
