/* ==========================================================================
   WADICO ENGINEERING SERVICES CO. — LIVING ENERGY WORLD (MAX MOTION EDITION)
   Deep Cosmic Obsidian + Molten Gold + Electric Cyan | 60fps GSAP + Canvas + SVG
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-primary: #050811;
  --bg-secondary: #0a1020;
  --bg-surface: rgba(14, 22, 40, 0.78);
  --bg-surface-solid: #0f182c;
  --bg-glass: rgba(5, 8, 17, 0.76);

  --text-primary: #f7f9fc;
  --text-secondary: #a8b7d0;
  --text-muted: #6f82a3;

  --accent: #ffb020;
  --accent-2: #00e5ff;
  --accent-3: #ff5d3a;
  --accent-contrast: #050811;
  --accent-dim: rgba(255, 176, 32, 0.14);
  --cyan-dim: rgba(0, 229, 255, 0.14);

  --grad-hero: linear-gradient(115deg, #ffffff 0%, #ffd27d 45%, #00e5ff 100%);
  --grad-gold: linear-gradient(135deg, #ffb020 0%, #ff7a18 50%, #ffd56b 100%);
  --grad-aurora: conic-gradient(from var(--angle, 0deg), #ffb020, #00e5ff, #6366f1, #ff5d3a, #ffb020);

  --line: rgba(168, 183, 208, 0.14);
  --line-strong: rgba(168, 183, 208, 0.28);
  --success: #22c55e;

  --font-display: "Space Grotesk", "Cairo", sans-serif;
  --font-body: "Plus Jakarta Sans", "Cairo", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  --container-max: 1240px;
  --header-height: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg-primary: #f5f7fc;
  --bg-secondary: #eaeff9;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-solid: #ffffff;
  --bg-glass: rgba(245, 247, 252, 0.86);

  --text-primary: #0b1324;
  --text-secondary: #3f4f6b;
  --text-muted: #647491;

  --accent: #d97706;
  --accent-2: #0284c7;
  --accent-3: #e11d48;
  --accent-contrast: #ffffff;
  --accent-dim: rgba(217, 119, 6, 0.12);
  --cyan-dim: rgba(2, 132, 199, 0.12);

  --grad-hero: linear-gradient(115deg, #0b1324 0%, #b45309 50%, #0284c7 100%);
  --grad-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 55%, #0284c7 100%);

  --line: rgba(11, 19, 36, 0.1);
  --line-strong: rgba(11, 19, 36, 0.2);
}

html[dir="rtl"] {
  --font-display: "Cairo", "Space Grotesk", sans-serif;
  --font-body: "Cairo", "Plus Jakarta Sans", sans-serif;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ==========================================================================
   BASE RESET & AMBIENT LAYERS
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Interactive Live Canvas Background */
#energy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

[data-theme="light"] #energy-canvas {
  opacity: 0.32;
}

/* Soft Cursor Spotlight Aura (Desktop) */
.cursor-aura {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.13) 0%, rgba(0, 229, 255, 0.06) 45%, transparent 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Ignition Preloader Curtain */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #050811;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #f7f9fc;
}

.preloader-logo {
  width: 72px;
  height: 72px;
}

.preloader-path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawLogo 0.9s var(--ease) forwards;
}

@keyframes drawLogo {
  to {
    stroke-dashoffset: 0;
  }
}

.preloader-bar {
  width: 180px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffb020, #00e5ff);
  animation: preloaderFill 0.95s var(--ease) forwards;
}

@keyframes preloaderFill {
  to {
    width: 100%;
  }
}

.preloader-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #ffb020;
}

/* Scroll Progress Energy Beam */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 14px var(--accent);
  z-index: 1200;
  pointer-events: none;
}

main,
section,
header,
footer {
  position: relative;
  z-index: 2;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 104px;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-border-y {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  letter-spacing: 0;
  line-height: 1.32;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 176, 32, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

html[dir="rtl"] .eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.86rem;
}

.section-header {
  max-width: 740px;
  margin-bottom: 54px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--grad-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 7s linear infinite;
}

@keyframes textShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.section-subtitle {
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.mono {
  font-family: var(--font-mono);
}

.text-accent {
  color: var(--accent);
}

/* Floating Animated Emoji / Micro-Motion Badges */
.emoji-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: floatBob 3.2s ease-in-out infinite;
}

.emoji-pulse {
  display: inline-block;
  animation: emojiBounce 2.4s ease-in-out infinite;
}

@keyframes floatBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(4deg);
  }
}

@keyframes emojiBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16) rotate(-5deg);
  }
}

/* ==========================================================================
   KINETIC SHIMMER BUTTONS
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-gold);
  color: #050811;
  box-shadow: 0 10px 30px rgba(255, 176, 32, 0.32);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-24deg);
  transition: inset-inline-start 0.65s var(--ease);
}

.btn-primary:hover::after {
  inset-inline-start: 140%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 176, 32, 0.48);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: 0 0 24px var(--cyan-dim);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

html[dir="rtl"] .icon-arrow {
  transform: scaleX(-1);
}

.btn:hover .icon-arrow,
.link-more:hover .icon-arrow {
  transform: translateX(4px);
}

html[dir="rtl"] .btn:hover .icon-arrow,
html[dir="rtl"] .link-more:hover .icon-arrow {
  transform: scaleX(-1) translateX(4px);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--accent);
}

/* ==========================================================================
   FLOATING GLASS HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-inline: 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.control-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.control-btn.icon-only {
  width: 36px;
  padding: 0;
}

.control-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.mobile-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.72);
  backdrop-filter: blur(8px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(310px, 88vw);
  background: var(--bg-surface-solid);
  border-inline-start: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

html[dir="rtl"] .mobile-drawer-panel {
  transform: translateX(-100%);
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-nav-list a.active,
.mobile-nav-list a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ==========================================================================
   LIVING ENERGY HERO SLIDER (KEN BURNS + AURORA RING + FLOATING ORBS)
   ========================================================================== */

.living-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 46px);
  padding-bottom: 64px;
  overflow: hidden;
}

/* Ambient Floating Glow Blobs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 14s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 460px;
  height: 460px;
  top: 40px;
  inset-inline-start: -120px;
  background: rgba(255, 176, 32, 0.18);
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  bottom: 20px;
  inset-inline-end: -100px;
  background: rgba(0, 229, 255, 0.16);
  animation-delay: -5s;
}

@keyframes orbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, -30px) scale(1.12);
  }
}

.hero-slides {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
}

.hero-title {
  font-size: clamp(2.15rem, 4.3vw, 3.65rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 540px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Animated Aurora-Bordered 3D Moving Image Frame */
.aurora-frame {
  position: relative;
  padding: 2.5px;
  border-radius: var(--radius-lg);
  background: var(--grad-aurora);
  animation: auroraSpin 14s linear infinite;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes auroraSpin {
  to {
    --angle: 360deg;
  }
}

.aurora-frame-inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #070c17;
}

/* Slow Cinematic Ken Burns Living Camera Motion on Every Slide Photo */
.aurora-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  animation: kenBurnsLive 38s ease-in-out infinite alternate;
}

@keyframes kenBurnsLive {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.055) translate3d(-0.8%, -0.6%, 0);
  }
}

/* Subtle Slow Holographic Scanning Laser Line over Moving Photo */
.scan-beam {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  box-shadow: 0 0 18px var(--accent-2);
  opacity: 0.55;
  pointer-events: none;
  animation: scanSweep 9s ease-in-out infinite;
}

@keyframes scanSweep {
  0% {
    top: 6%;
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    top: 94%;
    opacity: 0;
  }
}

/* Floating Live Telemetry Pill Inside Moving Photo */
.live-hud-pill {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(5, 8, 17, 0.78);
  border: 1px solid rgba(255, 176, 32, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f7f9fc;
  font-size: 0.84rem;
  line-height: 1.2;
}

.live-hud-pill strong {
  color: #ffb020;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-hud-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Emoji Orbit Chip on Top-End Corner */
.floating-emotion-chip {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(5, 8, 17, 0.74);
  border: 1px solid rgba(0, 229, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #00e5ff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  animation: floatBob 3.6s ease-in-out infinite;
}

/* Slider Pill Controller */
.slider-controls-bar {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.apple-dots-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding-inline: 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--text-muted);
  opacity: 0.45;
  overflow: hidden;
  transition: width 0.35s var(--ease), opacity 0.25s var(--ease);
}

.slider-dot.active {
  width: 42px;
  opacity: 1;
  background: rgba(255, 176, 32, 0.22);
}

.slider-dot-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--grad-gold);
}

.slider-dot.active .slider-dot-fill {
  animation: slideProgress 9s linear forwards;
}

.living-hero.paused .slider-dot.active .slider-dot-fill {
  animation-play-state: paused;
}

@keyframes slideProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.slider-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.circle-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s var(--ease);
}

.circle-ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--accent-dim);
}

html[dir="rtl"] .circle-ctrl-btn.arrow-btn svg {
  transform: scaleX(-1);
}

/* ==========================================================================
   FANTASTICAL INTERACTIVE ANIMATED SVG ENERGY DIORAMA ("LIVING WORLD")
   ========================================================================== */

.diorama-shell {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #070d1c 0%, #0b1630 58%, #050a14 100%);
  border: 1px solid rgba(0, 229, 255, 0.26);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  padding: 24px;
  color: #f7f9fc;
}

.diorama-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.diorama-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #00e5ff;
}

.live-blink {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  animation: blinkPulse 1.8s infinite;
}

@keyframes blinkPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.diorama-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diorama-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f7f9fc;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.22s var(--ease);
}

.diorama-btn:hover,
.diorama-btn.active {
  border-color: #ffb020;
  background: rgba(255, 176, 32, 0.22);
  color: #ffd56b;
  box-shadow: 0 0 20px rgba(255, 176, 32, 0.3);
}

.diorama-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* Fantastical SVG Keyframe Choreography inside Diorama */
.svg-wave-1 {
  animation: waveSlide 9s linear infinite;
}

.svg-wave-2 {
  animation: waveSlide 13s linear infinite reverse;
}

@keyframes waveSlide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-28px);
  }
  100% {
    transform: translateX(0);
  }
}

.svg-flame {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: flameFlicker 0.65s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% {
    transform: scaleY(0.92) skewX(-3deg);
    opacity: 0.9;
  }
  100% {
    transform: scaleY(1.16) skewX(4deg);
    opacity: 1;
  }
}

.svg-flow-gold {
  stroke-dasharray: 12 14;
  animation: flowPipe var(--flow-speed, 1.8s) linear infinite;
}

.svg-flow-cyan {
  stroke-dasharray: 10 12;
  animation: flowPipe var(--flow-speed, 1.4s) linear infinite;
}

@keyframes flowPipe {
  to {
    stroke-dashoffset: -52;
  }
}

.diorama-shell.turbo-mode {
  --flow-speed: 0.42s;
  border-color: rgba(255, 176, 32, 0.72);
  box-shadow: 0 0 60px rgba(255, 176, 32, 0.28);
}

.svg-gear-cw {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin360 var(--gear-speed, 10s) linear infinite;
}

.svg-gear-ccw {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin360 var(--gear-speed, 8s) linear infinite reverse;
}

.diorama-shell.turbo-mode .svg-gear-cw,
.diorama-shell.turbo-mode .svg-gear-ccw {
  --gear-speed: 2.2s;
}

@keyframes spin360 {
  to {
    transform: rotate(360deg);
  }
}

.svg-radar-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarExpand 2.8s ease-out infinite;
}

@keyframes radarExpand {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.svg-osc-wave {
  stroke-dasharray: 140;
  animation: oscShift 2.2s linear infinite;
}

@keyframes oscShift {
  from {
    stroke-dashoffset: 280;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Fire Suppression Spray Animation (toggled via interactive button) */
.fire-spray-group {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.diorama-shell.fire-active .fire-spray-group {
  opacity: 1;
}

.spray-drop {
  animation: sprayFall 0.75s linear infinite;
}

@keyframes sprayFall {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.95;
  }
  100% {
    transform: translateY(42px) scale(1.3);
    opacity: 0;
  }
}

/* ==========================================================================
   3D HOLOGRAPHIC AURORA SERVICE CARDS
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.holo-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease);
}

.holo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 32px var(--accent-dim);
}

.holo-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070c17;
}

.holo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.holo-card:hover .holo-media img {
  transform: scale(1.05);
}

.holo-emoji-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(5, 8, 17, 0.8);
  border: 1px solid rgba(255, 176, 32, 0.45);
  color: #ffd56b;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.holo-body {
  padding: 28px;
}

/* ==========================================================================
   ANIMATED CIRCULAR SVG METRIC GAUGES
   ========================================================================== */

.gauges-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.gauge-card {
  padding: 32px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.gauge-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
}

.gauge-ring-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  margin-inline: auto;
  margin-bottom: 18px;
}

.gauge-ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 7;
}

.gauge-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  filter: drop-shadow(0 0 6px rgba(255, 176, 32, 0.55));
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   KINETIC SUPPLY DIVISIONS WITH FLOATING ANIMATED ICONS
   ========================================================================== */

.division-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.division-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: 0 20px 50px rgba(0, 229, 255, 0.12);
}

.division-icon-orb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-dim), var(--cyan-dim));
  border: 1px solid rgba(255, 176, 32, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  animation: floatBob 3.8s ease-in-out infinite;
}

/* ==========================================================================
   ULTRA-CALM PARTNERS TICKER (72s / 84s)
   ========================================================================== */

.partners-strip {
  padding-block: 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.partners-strip-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

html[dir="rtl"] .partners-strip-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.88rem;
}

.partners-rail {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  will-change: transform;
  animation: partnerGlide 72s linear infinite;
}

.partners-rail:hover .partners-track,
.partners-rail:active .partners-track {
  animation-play-state: paused;
}

@keyframes partnerGlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partner-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.partner-item:hover {
  color: var(--accent);
}

/* ==========================================================================
   SHARED INNER PAGES & FORMS
   ========================================================================== */

.page-hero {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero .split-grid {
  text-align: start;
}

.page-hero .split-grid .page-hero-title,
.page-hero .split-grid .page-hero-desc {
  margin-inline: 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-inline: auto;
  margin-bottom: 14px;
  max-width: 820px;
}

.page-hero-desc {
  font-size: 1.06rem;
  color: var(--text-secondary);
  margin-inline: auto;
  max-width: 650px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.feature-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070c17;
}

.feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.8s var(--ease);
}

.feature-frame:hover img {
  transform: scale(1.04);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-body {
  padding: 28px;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-title {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 18px;
  max-width: 840px;
  margin-inline: auto;
}

.timeline-item {
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.tabs-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  margin-bottom: 42px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease);
}

.tab-btn.active {
  background: var(--grad-gold);
  color: #050811;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 8px 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.spec-table th,
.spec-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.spec-table th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

/* Catalog */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
}

.filter-pill.active {
  background: var(--grad-gold);
  border-color: transparent;
  color: #050811;
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px;
  padding-inline-start: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  font-size: 0.88rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box svg {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.product-cat-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.product-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.product-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* Modal & Forms */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.78);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-solid);
  border: 1px solid var(--line-strong);
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.94rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
}

.form-status.show {
  display: block;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--line);
}

.contact-info-card .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* CTA & Footer */
.cta-banner {
  position: relative;
  padding: 58px 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0b1428 0%, #111f3f 60%, #19263d 100%);
  border: 1px solid rgba(255, 176, 32, 0.38);
  color: #f7f9fc;
  text-align: center;
  overflow: hidden;
}

.cta-banner h2 {
  color: #f7f9fc;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: #a8b7d0;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 28px;
}

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
  padding-top: 60px;
  padding-bottom: 28px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.footer-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Smooth GPU-composited motion across all devices (fixed 0.01ms strobe bug) */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-slide,
  .split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gauges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding-block: 68px;
  }

  .living-hero {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 44px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .live-hud-pill {
    bottom: 12px;
    inset-inline-start: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 13px;
    gap: 8px;
    font-size: 0.76rem;
  }

  .live-hud-pill strong {
    font-size: 0.82rem;
  }

  .floating-emotion-chip {
    top: 10px;
    inset-inline-end: 10px;
    padding: 5px 11px;
    font-size: 0.66rem;
  }

  .diorama-shell {
    padding: 16px;
  }

  .grid-2,
  .grid-3,
  .gauges-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partners-track {
    animation-duration: 84s;
  }

  .cta-banner {
    padding: 36px 22px;
  }
}
