/* ============================================================================
   THIRANETRAM — Four-Scene Cinematic Corporate Website
   Transparent Branding, Sheer Glass HUD, Continuous Floating Motion,
   Scene-to-Scene Handover Transitions & True CSS 3D Opening Intelligence Cube
   ============================================================================ */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Ink & Surface Tokens */
  --ink-navy: #07142B;
  --ink-slate: #1E293B;
  --ink-muted: #475569;
  --ink-white: #FFFFFF;
  --ink-ice: #E2EEFF;

  /* Luminous Brand Accents */
  --accent-blue: #1D63FF;
  --accent-cyan: #22D3EE;
  --accent-sky: #38BDF8;
  --accent-green: #22C55E;

  /* Layout & Timing */
  --header-h: 68px;
  --container-max: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shared 3D Intelligence Cube Geometry (Scene 3 -> Scene 4 continuity) */
  --cube-size: 152px;
  --cube-half: calc(var(--cube-size) / 2);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-white);
  background: #060E21;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: #060E21;
  color: var(--ink-white);
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2.5px solid var(--accent-cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--ink-navy);
  color: var(--ink-white);
  border: 2px solid var(--accent-cyan);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 14px;
}

/* ============================================================================
   ADAPTIVE TRANSPARENT FLOATING HEADER (GENUINELY TRANSPARENT LOGOS)
   ============================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
}

.site-header[data-theme="light"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0) 100%);
  color: var(--ink-navy);
}

.site-header[data-theme="dark"] {
  background: linear-gradient(180deg, rgba(5, 13, 32, 0.72) 0%, rgba(5, 13, 32, 0.18) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-white);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  background: transparent;
}

.brand-logo-light {
  display: block;
  line-height: 0;
}

.brand-logo-dark {
  display: none;
  filter: drop-shadow(0 2px 10px rgba(4, 12, 28, 0.65));
}

.site-header[data-theme="dark"] .brand-logo-light {
  display: none;
}

.site-header[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.scene-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 38px);
}

.scene-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.84;
  transition: opacity 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.scene-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-cinematic), background-color 0.3s ease;
}

.site-header[data-theme="dark"] .scene-nav-link::after {
  background: var(--accent-sky);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.scene-nav-link:hover,
.scene-nav-link.is-active {
  opacity: 1;
}

.scene-nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(29, 99, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ease-cinematic), box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-demo:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-demo-full {
  width: 100%;
  min-height: 46px;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  opacity: 0.9;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 990;
  padding: 18px 20px 24px;
  background: rgba(7, 17, 39, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(125, 211, 252, 0.16);
  color: var(--ink-white);
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-nav-link span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-sky);
  letter-spacing: 0.08em;
}

/* ============================================================================
   SHARED SCENE ARCHITECTURE, HANDOVER & CONTINUOUS FLOATING MOTION
   ============================================================================ */
.story-main {
  position: relative;
}

.scene {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
  isolation: isolate;
}

/* Continuous Atmospheric Edge Blending Between Scenes */
.scene::before,
.scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.scene-02::before {
  top: 0;
  height: 88px;
  background: linear-gradient(180deg, rgba(6, 16, 38, 0.95) 0%, rgba(6, 16, 38, 0) 100%);
}
.scene-02::after {
  bottom: 0;
  height: 80px;
  background: linear-gradient(0deg, rgba(6, 15, 36, 0.96) 0%, rgba(6, 15, 36, 0) 100%);
}

.scene-03::before {
  top: 0;
  height: 88px;
  background: linear-gradient(180deg, rgba(6, 15, 36, 0.96) 0%, rgba(6, 15, 36, 0) 100%);
}
.scene-03::after {
  bottom: 0;
  height: 80px;
  background: linear-gradient(0deg, rgba(4, 11, 28, 0.96) 0%, rgba(4, 11, 28, 0) 100%);
}

.scene-04::before {
  top: 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(4, 11, 28, 0.96) 0%, rgba(4, 11, 28, 0) 100%);
}

/* Background photographic plates remain completely stable */
.scene-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.scene-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.scene-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(12px, 1.8vh, 24px)) var(--pad-x) clamp(20px, 2.4vh, 32px);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.55s var(--ease-cinematic), transform 0.65s var(--ease-cinematic);
}

/* Subtle immersive scene handover cue */
@media (prefers-reduced-motion: no-preference) {
  .scene:not(.is-active-scene) .scene-content {
    opacity: 0.78;
    transform: scale(0.992);
  }
  .scene.is-active-scene .scene-content {
    opacity: 1;
    transform: scale(1);
  }
}

/* Independent Continuous Floating Animation Layer (Foreground Only) */
@media (prefers-reduced-motion: no-preference) {
  .scene.is-visible .float-layer {
    animation: ambientFloat var(--float-dur, 6.2s) ease-in-out var(--float-delay, 0s) infinite;
    will-change: transform;
  }

  .tile-float-wrap:hover,
  .tile-float-wrap:focus-within {
    animation-play-state: paused;
  }
}

@keyframes ambientFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, var(--float-y, -4px), 0);
  }
}

/* Kickers, Headlines, Leads */
.scene-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1vh, 12px);
}

.kicker-rule {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.55;
}

.kicker-light {
  color: #1E3A5F;
}

.kicker-dark {
  color: #BAE6FD;
}

.scene-headline {
  font-size: clamp(1.9rem, 3.15vw, 3.1rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin-bottom: clamp(8px, 1.1vh, 14px);
}

.headline-dark {
  color: var(--ink-navy);
}

.headline-light {
  color: var(--ink-white);
  text-shadow: 0 4px 28px rgba(4, 12, 28, 0.55);
}

.headline-accent-blue {
  color: var(--accent-blue);
}

.headline-accent-cyan {
  color: var(--accent-cyan);
}

.scene-lead {
  font-size: clamp(0.86rem, 1.02vw, 1rem);
  line-height: 1.48;
  max-width: 50ch;
}

.lead-dark {
  color: #1E293B;
  font-weight: 500;
}

.lead-light {
  color: rgba(236, 246, 255, 0.92);
  text-shadow: 0 2px 14px rgba(4, 12, 28, 0.5);
}

/* Progressive Storytelling Reveals */
.reveal-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-item {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
      opacity 0.72s var(--ease-cinematic) var(--stagger, 0ms),
      transform 0.72s var(--ease-cinematic) var(--stagger, 0ms);
  }

  .reveal-from-left {
    transform: translate3d(-24px, 0, 0);
  }

  .reveal-from-right {
    transform: translate3d(24px, 0, 0);
  }

  .scene.is-visible .reveal-item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .scene-01:not(.is-visible) .inv-bar {
    height: 0%;
  }

  .scene-02:not(.is-visible) .impact-item {
    opacity: 0;
    transform: translateY(14px);
  }
  .scene-02.is-visible .impact-item {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.55s var(--ease-cinematic) var(--item-delay, 0ms),
      transform 0.55s var(--ease-cinematic) var(--item-delay, 0ms),
      background-color 0.35s ease,
      color 0.35s ease;
  }

  .scene-03:not(.is-visible) .s3-out-row {
    opacity: 0;
    transform: translateX(12px);
  }
  .scene-03.is-visible .s3-out-row {
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.5s var(--ease-cinematic) var(--out-delay, 0ms),
      transform 0.5s var(--ease-cinematic) var(--out-delay, 0ms);
  }
}

.scene-connector-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.04) 0%, rgba(56, 189, 248, 0.65) 50%, rgba(56, 189, 248, 0.04) 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.58);
  z-index: 3;
}

/* ============================================================================
   SCENE 01 — THE INDUSTRY (GOLDEN HOUR + SHEER FLOATING GLASS INTELLIGENCE HUD)
   ============================================================================ */
.s1-bg-img {
  object-position: 56% center;
}

.s1-scrim {
  background:
    radial-gradient(ellipse 60% 54% at 18% 22%, rgba(255, 252, 246, 0.7) 0%, rgba(255, 252, 246, 0.2) 58%, rgba(255, 252, 246, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 28%, rgba(7, 19, 42, 0.14) 64%, rgba(6, 16, 38, 0.88) 93%, rgba(6, 16, 38, 0.96) 100%);
}

.s1-content {
  padding-top: calc(var(--header-h) + clamp(12px, 2vh, 26px));
  padding-bottom: 64px;
  gap: clamp(10px, 1.8vh, 22px);
}

.s1-upper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(370px, 455px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
}

.s1-hero-copy {
  max-width: 660px;
}

.inv-hud-wrap {
  width: 100%;
}

/* Sheer Translucent Floating Glass HUD — Preserves Visible Dubai Skyline Behind */
.inv-panel {
  position: relative;
  width: 100%;
  padding: 13px 16px 11px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.32) 0%, rgba(248, 251, 255, 0.22) 100%);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 16px 38px rgba(11, 25, 51, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--ink-navy);
}

.inv-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.inv-panel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inv-panel-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-navy);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

.inv-info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(29, 78, 216, 0.85);
  background: rgba(255, 255, 255, 0.42);
  color: #1D4ED8;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.inv-info-btn:hover,
.inv-info-btn[aria-expanded="true"] {
  background: #1D4ED8;
  color: #FFFFFF;
}

.inv-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.inv-tab {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--ink-navy);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: all 0.18s ease;
}

.inv-tab:hover {
  background: rgba(255, 255, 255, 0.72);
  color: #1D4ED8;
}

.inv-tab.is-active {
  background: #1D4ED8;
  color: #FFFFFF;
  border-color: #1D4ED8;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.inv-view[hidden] {
  display: none;
}

.inv-output-layout {
  display: grid;
  grid-template-columns: 1.24fr 0.96fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 8px;
}

.inv-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
  padding-right: 10px;
  border-right: 1px solid rgba(11, 25, 51, 0.18);
}

.inv-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.inv-bar-val {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-navy);
  margin-bottom: 4px;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.inv-bar-wrap {
  width: 100%;
  height: 66px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.inv-bar {
  width: 74%;
  height: var(--bar-h, 50%);
  border-radius: 6px 6px 3px 3px;
  box-shadow: 0 4px 14px rgba(11, 25, 51, 0.22);
  transition: height 0.85s var(--ease-cinematic) var(--bar-delay, 200ms);
}

.inv-bar-uae {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.94) 0%, rgba(13, 148, 136, 0.94) 100%);
}
.inv-bar-me {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.94) 0%, rgba(37, 99, 235, 0.94) 100%);
}
.inv-bar-global {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.94) 0%, rgba(79, 70, 229, 0.94) 100%);
}

.inv-bar-label {
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--ink-navy);
  margin-top: 5px;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.inv-bar-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: #1E293B;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

.inv-global-callout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-bottom: 4px;
}

.inv-callout-kicker {
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--ink-navy);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.inv-callout-figure {
  font-size: 1.34rem;
  font-weight: 800;
  color: var(--ink-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.92);
}

.inv-callout-horizon {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

.inv-cagr-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5EEAD4 0%, #2DD4BF 100%);
  color: #064E3B;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.inv-metric-list {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.inv-metric-row {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.inv-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}

.inv-metric-geo {
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--ink-navy);
}

.inv-metric-val {
  font-size: 0.83rem;
  font-weight: 800;
  color: #1D4ED8;
  white-space: nowrap;
}

.inv-metric-desc {
  font-size: 0.67rem;
  color: #0F172A;
  font-weight: 500;
  line-height: 1.35;
}

.inv-inline-src {
  display: block;
  margin-top: 2px;
  font-size: 0.63rem;
  color: #1E293B;
}

.inv-inline-src a,
.inv-attribution a {
  color: #1D4ED8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inv-attribution {
  font-size: 0.63rem;
  line-height: 1.38;
  color: #0F172A;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(11, 25, 51, 0.14);
  padding-top: 6px;
}

/* Methodology Popover */
.inv-popover {
  position: absolute;
  top: 46px;
  right: 12px;
  left: 12px;
  z-index: 30;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(11, 25, 51, 0.96);
  color: var(--ink-white);
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.inv-popover[hidden] {
  display: none;
}

.inv-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.inv-popover-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #E2EEFF;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inv-popover-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.inv-popover-list {
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #E2EEFF;
}

/* Scene 1 Bottom — 6 Category Tiles */
.s1-bottom {
  width: 100%;
  margin-top: auto;
}

.s1-tiles-heading {
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  font-weight: 700;
  color: var(--ink-white);
  text-shadow: 0 2px 14px rgba(4, 12, 28, 0.78);
  margin-bottom: 9px;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.1vw, 15px);
}

.tile-float-wrap {
  display: flex;
}

.cat-tile {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 20, 44, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(186, 230, 253, 0.3);
  text-align: left;
  transition:
    opacity 0.7s var(--ease-cinematic) var(--stagger, 0ms),
    transform 0.45s var(--ease-cinematic),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 12px 26px rgba(3, 10, 26, 0.38);
}

.cat-tile:hover,
.cat-tile.is-active {
  transform: translateY(-4px) !important;
  border-color: rgba(56, 189, 248, 0.92);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.cat-tile-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0B1933;
}

.cat-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-cinematic);
}

.cat-tile:hover .cat-tile-media img,
.cat-tile.is-active .cat-tile-media img {
  transform: scale(1.07);
}

.cat-tile-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  min-height: 48px;
  color: var(--ink-white);
}

.cat-tile-icon {
  color: #7DD3FC;
  flex-shrink: 0;
}

.cat-tile-label {
  font-size: clamp(0.7rem, 0.82vw, 0.8rem);
  font-weight: 700;
  line-height: 1.22;
  color: #F8FAFC;
}

/* Luminous Blue Pathway Wave + Scroll Cue */
.scene-pathway-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  z-index: 2;
  pointer-events: none;
}

.pathway-svg {
  width: 100%;
  height: 100%;
}

.pathway-pulse-line {
  stroke-dasharray: 220 1220;
  animation: waveFlow 5.5s linear infinite;
}

@keyframes waveFlow {
  from { stroke-dashoffset: 1440; }
  to { stroke-dashoffset: 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink-white);
}

.scroll-cue-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(4, 12, 28, 0.8);
}

.scroll-cue-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(186, 230, 253, 0.84);
  background: rgba(9, 24, 54, 0.62);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.scroll-cue:hover .scroll-cue-circle {
  transform: translateY(2px);
  background: rgba(37, 99, 235, 0.75);
}

/* ============================================================================
   SCENE 02 — THE PROBLEM (BLUE HOUR)
   ============================================================================ */
.s2-bg-img {
  object-position: center 42%;
}

.s2-scrim {
  background:
    radial-gradient(ellipse 60% 52% at 22% 20%, rgba(5, 16, 42, 0.76) 0%, rgba(5, 16, 42, 0.34) 58%, rgba(5, 16, 42, 0) 100%),
    linear-gradient(180deg, rgba(6, 16, 38, 0.56) 0%, rgba(6, 16, 38, 0.08) 38%, rgba(6, 16, 38, 0.25) 72%, rgba(5, 13, 32, 0.88) 100%);
}

.s2-upper {
  max-width: min(720px, 62%);
}

.impact-strip-wrap {
  width: 100%;
  margin-top: auto;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-radius: 20px;
  background: rgba(8, 19, 44, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 197, 255, 0.28);
  box-shadow: 0 22px 50px rgba(2, 8, 24, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.impact-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: clamp(14px, 1.8vh, 20px) 10px;
  min-height: 104px;
  color: rgba(226, 238, 255, 0.72);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.impact-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(148, 197, 255, 0.28) 50%, transparent 100%);
}

.impact-icon {
  color: rgba(226, 238, 255, 0.82);
  transition: color 0.35s ease, transform 0.35s var(--ease-cinematic), filter 0.35s ease;
}

.impact-icon-warn {
  color: #FACC15;
}

.impact-label {
  font-size: clamp(0.73rem, 0.86vw, 0.84rem);
  font-weight: 600;
  line-height: 1.28;
  max-width: 16ch;
}

.impact-item:hover,
.impact-item.is-lit {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(29, 99, 255, 0.12) 100%);
  color: #FFFFFF;
}

.impact-item.is-lit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #38BDF8, #E0F2FE, #38BDF8, transparent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

.impact-item.is-lit .impact-icon {
  color: #7DD3FC;
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.75));
}

.impact-item.is-lit .impact-icon-warn {
  color: #FDE047;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.75));
}

/* ============================================================================
   SHARED TRUE CSS 3D WIREFRAME INTELLIGENCE CUBE (SCENE 3 & SCENE 4)
   ============================================================================ */
.cube3d-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube3d-viewport {
  width: calc(var(--cube-size) * 1.46);
  height: calc(var(--cube-size) * 1.46);
  perspective: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube3d {
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-38deg);
  transition: transform 0.65s var(--ease-cinematic), filter 0.45s ease;
}

.cube3d-core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.95) 0%, rgba(56, 189, 248, 0.65) 45%, rgba(29, 78, 216, 0) 75%);
  filter: blur(12px);
  transform: translateZ(0);
  animation: coreBreathe 3.6s ease-in-out infinite;
}

.cube3d-face {
  position: absolute;
  inset: 0;
  border: 1.8px solid rgba(186, 230, 253, 0.9);
  background-color: rgba(14, 42, 96, 0.44);
  background-image:
    linear-gradient(135deg, rgba(56, 189, 248, 0.34) 0%, rgba(15, 23, 62, 0.56) 100%),
    repeating-linear-gradient(0deg, rgba(125, 211, 252, 0.32) 0 1px, transparent 1px calc(var(--cube-size) / 4)),
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.32) 0 1px, transparent 1px calc(var(--cube-size) / 4));
  box-shadow:
    inset 0 0 24px rgba(56, 189, 248, 0.32),
    0 0 18px rgba(56, 189, 248, 0.25);
  backface-visibility: visible;
  transition: transform 1.05s var(--ease-cinematic), box-shadow 0.45s ease, border-color 0.45s ease;
}

.cube3d-front  { transform: translateZ(var(--cube-half)); }
.cube3d-back   { transform: rotateY(180deg) translateZ(var(--cube-half)); opacity: 0.65; }
.cube3d-right  { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.cube3d-left   { transform: rotateY(-90deg) translateZ(var(--cube-half)); opacity: 0.72; }
.cube3d-top    {
  transform: rotateX(90deg) translateZ(var(--cube-half));
  background-color: rgba(56, 189, 248, 0.34);
}
.cube3d-bottom {
  transform: rotateX(-90deg) translateZ(var(--cube-half));
  background-color: rgba(29, 78, 216, 0.48);
}

.cube-floor-glow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(254, 240, 138, 0.68) 0%, rgba(56, 189, 248, 0.45) 48%, transparent 78%);
  filter: blur(9px);
  pointer-events: none;
}

@keyframes coreBreathe {
  0%, 100% { opacity: 0.7; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ============================================================================
   SCENE 03 — THE IDEA (TWILIGHT — CONVERGENCE & DOMINANT CSS 3D CUBE)
   ============================================================================ */
.s3-bg-img {
  object-position: 78% center;
}

.s3-scrim {
  background:
    radial-gradient(ellipse 68% 66% at 28% 36%, rgba(6, 17, 45, 0.76) 0%, rgba(6, 17, 45, 0.42) 56%, rgba(6, 17, 45, 0.08) 100%),
    linear-gradient(90deg, rgba(6, 17, 45, 0.78) 0%, rgba(6, 17, 45, 0.48) 54%, rgba(6, 17, 45, 0.1) 82%, rgba(6, 17, 45, 0.22) 100%);
}

.s3-content {
  justify-content: space-between;
  gap: clamp(12px, 1.8vh, 24px);
}

.s3-upper {
  max-width: min(700px, 60%);
}

.s3-convergence-stage {
  display: grid;
  grid-template-columns: 215px minmax(72px, 120px) minmax(215px, 255px) 52px minmax(230px, 270px);
  align-items: center;
  width: 100%;
  max-width: min(980px, 75%);
  margin-top: auto;
  margin-bottom: clamp(6px, 2vh, 24px);
}

.s3-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  perspective: 900px;
}

.s3-input-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 33, 76, 0.78) 0%, rgba(9, 22, 52, 0.66) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 10px 26px rgba(3, 10, 28, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--ink-white);
  text-align: left;
  transition:
    opacity 0.65s var(--ease-cinematic) var(--stagger, 0ms),
    transform 0.35s var(--ease-cinematic),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.scene-03.is-visible .s3-input-card {
  transform: rotateY(8deg);
  transform-origin: right center;
}

.s3-input-card:hover,
.s3-input-card.is-active {
  transform: rotateY(2deg) translateX(4px) !important;
  border-color: #7DD3FC;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.56) 0%, rgba(12, 34, 82, 0.84) 100%);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.s3-input-icon {
  color: #7DD3FC;
  flex-shrink: 0;
}

.s3-input-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.s3-streams-bridge {
  width: 100%;
  height: 290px;
}

.s3-streams-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stream-path {
  opacity: 0.72;
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
}

.stream-path.is-highlighted {
  opacity: 1;
  stroke-width: 3.4;
}

.stream-pulse {
  stroke-dasharray: 26 220;
  animation: streamFlow 2.6s linear infinite;
}

.stream-pulse[data-stream-pulse="1"] { animation-delay: 0.45s; }
.stream-pulse[data-stream-pulse="2"] { animation-delay: 0.9s; }
.stream-pulse[data-stream-pulse="3"] { animation-delay: 1.35s; }
.stream-pulse[data-stream-pulse="4"] { animation-delay: 1.8s; }

@keyframes streamFlow {
  from { stroke-dashoffset: 246; }
  to { stroke-dashoffset: 0; }
}

.s3-cube-stage .cube3d-closed {
  animation: cubeFloat 5.5s ease-in-out infinite;
}

.s3-cube-stage.is-pulsing .cube3d-face {
  border-color: #FFFFFF;
  box-shadow:
    inset 0 0 34px rgba(125, 211, 252, 0.58),
    0 0 28px rgba(56, 189, 248, 0.6);
}

@keyframes cubeFloat {
  0%, 100% { transform: rotateX(-24deg) rotateY(-38deg) translateY(0); }
  50% { transform: rotateX(-22deg) rotateY(-34deg) translateY(-6px); }
}

.s3-output-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.output-arrow-pulse {
  stroke-dasharray: 22 90;
  animation: arrowPulse 1.8s linear infinite;
}

@keyframes arrowPulse {
  from { stroke-dashoffset: 112; }
  to { stroke-dashoffset: 0; }
}

.s3-output-panel {
  padding: 18px 20px 14px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(12, 31, 70, 0.84) 0%, rgba(7, 19, 44, 0.88) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(125, 211, 252, 0.62);
  box-shadow: 0 18px 42px rgba(2, 9, 26, 0.56), 0 0 28px rgba(56, 189, 248, 0.22);
}

.s3-output-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.s3-output-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-white);
}

.s3-output-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.s3-output-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #F1F5F9;
}

.check-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.s3-model-tag {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 197, 255, 0.18);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #94A3B8;
}

/* ============================================================================
   SCENE 04 — THE SOLUTION (NIGHT — EXACT REVEAL -> INTRO -> TRANSPARENT LOGO)
   ============================================================================ */
.s4-bg-img {
  object-position: 18% bottom;
}

.s4-scrim {
  background:
    radial-gradient(ellipse 46% 48% at 46% 44%, rgba(251, 191, 36, 0.14) 0%, rgba(29, 78, 216, 0.22) 40%, rgba(6, 14, 34, 0) 74%),
    linear-gradient(180deg, rgba(4, 11, 28, 0.78) 0%, rgba(4, 11, 28, 0.24) 40%, rgba(4, 11, 28, 0.42) 78%, rgba(4, 10, 24, 0.88) 100%);
}

.s4-content {
  justify-content: flex-start;
  gap: clamp(8px, 1.4vh, 18px);
  padding-bottom: clamp(18px, 2.5vh, 32px);
}

.s4-top-kicker {
  flex-shrink: 0;
}

/* Solution Stage: Left space for Engineer, Center Reveal+Intro+Logo, Conduits, Right 5 Functions */
.s4-solution-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(140px, 0.58fr) minmax(320px, 430px) minmax(84px, 150px) minmax(265px, 330px);
  align-items: center;
  width: 100%;
  min-height: 0;
}

.s4-hero-center-col {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2vh, 22px);
}

/* 1. Opened 3D Intelligence Cube + Emerging Gradient T (Immediately Above Intro) */
.s4-cube-assembly {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 108px;
}

.s4-light-beam {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.2);
  transform-origin: bottom center;
  width: 240px;
  height: 270px;
  background: conic-gradient(from 180deg at 50% 100%, transparent 128deg, rgba(56, 189, 248, 0.36) 158deg, rgba(254, 243, 199, 0.72) 180deg, rgba(56, 189, 248, 0.36) 202deg, transparent 232deg);
  filter: blur(13px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-cinematic) 0.32s, transform 1.1s var(--ease-cinematic) 0.32s;
}

.s4-orbital-ring {
  position: absolute;
  top: 56px;
  left: 50%;
  width: 256px;
  height: 74px;
  transform: translateX(-50%) rotate(-7deg) scale(0.75);
  border-radius: 50%;
  border: 1.5px solid rgba(253, 224, 71, 0.44);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-cinematic) 0.6s, transform 1.1s var(--ease-cinematic) 0.6s;
}

.s4-emblem-chamber {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate3d(-50%, 118px, 0) scale(0.36);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition:
    transform 1.2s var(--ease-cinematic) 0.42s,
    opacity 0.72s ease 0.4s;
}

.s4-rising-t-img {
  width: clamp(86px, 7.6vw, 114px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(56, 189, 248, 0.75)) drop-shadow(0 8px 18px rgba(251, 191, 36, 0.35));
}

/* True CSS 3D Unfolding Top Lid Panels */
.cube3d-lid-wrap {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(90deg) translateZ(var(--cube-half));
}

.cube3d-lid-panel {
  position: absolute;
  inset: 0;
  background-color: rgba(56, 189, 248, 0.38);
  background-image:
    linear-gradient(135deg, rgba(186, 230, 253, 0.45) 0%, rgba(29, 78, 216, 0.48) 100%),
    repeating-linear-gradient(0deg, rgba(186, 230, 253, 0.35) 0 1px, transparent 1px calc(var(--cube-size) / 4)),
    repeating-linear-gradient(90deg, rgba(186, 230, 253, 0.35) 0 1px, transparent 1px calc(var(--cube-size) / 4));
  border: 1.5px solid rgba(224, 242, 254, 0.9);
  box-shadow: inset 0 0 18px rgba(125, 211, 252, 0.45);
  backface-visibility: visible;
  transition: transform 1.05s var(--ease-cinematic) 0.16s, background-color 0.8s ease 0.16s;
}

.lid-front {
  clip-path: polygon(0 100%, 100% 100%, 50% 50%);
  transform-origin: 50% 100%;
}
.lid-back {
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  transform-origin: 50% 0%;
}
.lid-left {
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  transform-origin: 0% 50%;
}
.lid-right {
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  transform-origin: 100% 50%;
}

.s4-cube-core {
  background: radial-gradient(circle, rgba(254, 243, 199, 1) 0%, rgba(56, 189, 248, 0.78) 46%, rgba(29, 78, 216, 0) 76%);
}

.s4-floor-glow {
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.85) 0%, rgba(56, 189, 248, 0.5) 48%, transparent 78%);
}

.scene-04.is-visible .lid-front { transform: rotateX(-124deg); }
.scene-04.is-visible .lid-back  { transform: rotateX(124deg); }
.scene-04.is-visible .lid-left  { transform: rotateY(-124deg); }
.scene-04.is-visible .lid-right { transform: rotateY(124deg); }

.scene-04.is-visible .s4-wall-front {
  transform-origin: 50% 100%;
  transform: translateZ(calc(var(--cube-half) + 6px)) rotateX(-11deg);
  box-shadow: inset 0 0 32px rgba(254, 243, 199, 0.35), 0 0 24px rgba(56, 189, 248, 0.45);
}
.scene-04.is-visible .s4-wall-right {
  transform-origin: 50% 100%;
  transform: rotateY(90deg) translateZ(calc(var(--cube-half) + 6px)) rotateX(-11deg);
  box-shadow: inset 0 0 32px rgba(254, 243, 199, 0.35), 0 0 24px rgba(56, 189, 248, 0.45);
}
.scene-04.is-visible .s4-wall-left {
  transform-origin: 50% 100%;
  transform: rotateY(-90deg) translateZ(calc(var(--cube-half) + 6px)) rotateX(-11deg);
}

.scene-04.is-visible .s4-light-beam {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
}

.scene-04.is-visible .s4-orbital-ring {
  opacity: 0.82;
  transform: translateX(-50%) rotate(-7deg) scale(1);
}

.scene-04.is-visible .s4-emblem-chamber {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.scene-04.is-visible .s4-rising-t-img {
  animation: emblemHover 4.2s ease-in-out 1.6s infinite;
}

@keyframes emblemHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* 2. Exact Hierarchy Below Opened Cube: Introducing -> Statement -> Transparent THIRANETRAM Identity */
.s4-intro-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 440px;
}

.s4-introducing {
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-shadow: 0 2px 14px rgba(6, 182, 212, 0.45);
}

.s4-intro-statement {
  font-size: clamp(1.28rem, 1.85vw, 1.72rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink-white);
  text-shadow: 0 4px 24px rgba(4, 12, 28, 0.72);
}

.s4-brand-identity {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.s4-identity-logo {
  height: clamp(32px, 3vw, 42px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(56, 189, 248, 0.35));
}

/* Curved Luminous Conduits */
.s4-conduits-bridge {
  grid-column: 3;
  width: 100%;
  height: 360px;
  align-self: center;
}

.s4-conduits-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.conduit-path {
  opacity: 0.74;
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
}

.conduit-path.is-highlighted {
  opacity: 1;
  stroke-width: 3.5;
}

.conduit-pulse {
  stroke-dasharray: 28 320;
  animation: conduitFlow 3s linear infinite;
}

.conduit-pulse[data-conduit-pulse="1"] { animation-delay: 0.55s; }
.conduit-pulse[data-conduit-pulse="2"] { animation-delay: 1.1s; }
.conduit-pulse[data-conduit-pulse="3"] { animation-delay: 1.65s; }
.conduit-pulse[data-conduit-pulse="4"] { animation-delay: 2.2s; }

@keyframes conduitFlow {
  from { stroke-dashoffset: 348; }
  to { stroke-dashoffset: 0; }
}

/* Five Connected Platform Functions */
.s4-functions-col {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}

.s4-fn-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 11px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(14, 34, 78, 0.78) 0%, rgba(8, 20, 48, 0.74) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 12px 28px rgba(2, 8, 24, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--ink-white);
  text-align: left;
  transition:
    opacity 0.65s var(--ease-cinematic) var(--stagger, 0ms),
    transform 0.35s var(--ease-cinematic),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.s4-fn-card:hover,
.s4-fn-card.is-active {
  transform: translateX(-4px) !important;
  border-color: #7DD3FC;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.s4-fn-icon {
  color: #E0F2FE;
  flex-shrink: 0;
}

.s4-fn-label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

/* ============================================================================
   COMPACT DESKTOP / LAPTOP VIEWPORT TUNING (1366 x 768 & short height <= 820px)
   ============================================================================ */
@media (max-width: 1440px) and (min-width: 1025px), (max-height: 820px) and (min-width: 1025px) {
  :root {
    --header-h: 60px;
    --cube-size: 120px;
  }

  .scene-content {
    padding: calc(var(--header-h) + 10px) var(--pad-x) 18px;
  }

  .s1-content {
    padding-bottom: 60px;
  }

  .scene-kicker {
    font-size: 0.68rem;
    margin-bottom: 5px;
  }

  .scene-headline {
    font-size: clamp(1.75rem, 2.75vw, 2.55rem);
    margin-bottom: 6px;
  }

  .scene-lead {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .s1-upper {
    grid-template-columns: minmax(0, 1.05fr) minmax(355px, 430px);
    gap: 24px;
  }

  .inv-panel {
    padding: 10px 13px 9px;
  }

  .inv-bar-wrap {
    height: 52px;
  }

  .inv-callout-figure {
    font-size: 1.18rem;
  }

  .s1-tiles-heading {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .cat-tile-footer {
    padding: 6px 9px;
    min-height: 40px;
  }

  .cat-tile-label {
    font-size: 0.68rem;
  }

  .impact-item {
    min-height: 88px;
    padding: 12px 8px;
    gap: 6px;
  }

  .impact-label {
    font-size: 0.72rem;
  }

  .s3-convergence-stage {
    grid-template-columns: 188px minmax(60px, 94px) minmax(175px, 205px) 42px minmax(210px, 245px);
    max-width: min(860px, 76%);
    margin-bottom: 4px;
  }

  .s3-input-card {
    min-height: 40px;
    padding: 7px 12px;
  }

  .s3-input-label {
    font-size: 0.8rem;
  }

  .s3-streams-bridge {
    height: 236px;
  }

  .s3-output-panel {
    padding: 14px 16px 11px;
  }

  .s3-output-title {
    font-size: 1.04rem;
  }

  .s3-output-list li {
    font-size: 0.82rem;
  }

  .s4-solution-stage {
    grid-template-columns: minmax(90px, 0.42fr) minmax(290px, 370px) minmax(68px, 118px) minmax(245px, 300px);
  }

  .s4-hero-center-col {
    gap: 10px;
  }

  .s4-cube-assembly {
    padding-top: 84px;
  }

  .s4-rising-t-img {
    width: 74px;
  }

  .s4-orbital-ring {
    top: 44px;
    width: 196px;
    height: 58px;
  }

  .s4-intro-statement {
    font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  }

  .s4-identity-logo {
    height: 28px;
  }

  .s4-conduits-bridge {
    height: 284px;
  }

  .s4-fn-card {
    min-height: 46px;
    padding: 8px 14px;
  }

  .s4-fn-label {
    font-size: 0.8rem;
  }
}

/* ============================================================================
   TABLET & MOBILE RESPONSIVE RECOMPOSITION (<= 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
    --cube-size: 124px;
  }

  .scene-nav,
  .header-actions .btn-demo {
    display: none;
  }

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

  .scene {
    height: auto;
    min-height: 100svh;
  }

  .scene-content {
    padding: calc(var(--header-h) + 20px) 18px 40px;
    gap: 22px;
  }

  .scene-headline {
    font-size: clamp(1.7rem, 6.5vw, 2.35rem);
  }

  .scene-lead {
    font-size: 0.92rem;
    max-width: 100%;
  }

  /* Scene 1 Mobile */
  .s1-bg-img {
    object-position: 68% top;
  }

  .s1-scrim {
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0.78) 0%, rgba(255, 252, 246, 0.56) 36%, rgba(8, 19, 44, 0.45) 62%, rgba(6, 15, 36, 0.95) 100%);
  }

  .s1-upper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .s1-hero-copy {
    max-width: 100%;
  }

  .inv-panel {
    background: rgba(255, 255, 255, 0.56);
    padding: 13px 13px 12px;
  }

  .inv-info-btn {
    width: 44px;
    height: 44px;
  }

  .inv-tab {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 0.74rem;
  }

  .inv-output-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .inv-bars {
    padding-right: 0;
    border-right: none;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.14);
  }

  .inv-attribution {
    font-size: 0.71rem;
    line-height: 1.46;
  }

  .category-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }

  .cat-tile-footer {
    min-height: 50px;
    padding: 9px;
  }

  .cat-tile-label {
    font-size: 0.77rem;
  }

  .s1-content {
    padding-bottom: 72px;
  }

  /* Scene 2 Mobile */
  .s2-upper {
    max-width: 100%;
  }

  .impact-strip {
    grid-template-columns: 1fr;
    border-radius: 16px;
    padding: 6px 0;
  }

  .impact-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    min-height: 54px;
    padding: 11px 16px;
    gap: 14px;
  }

  .impact-item:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 16px;
    right: 16px;
    width: auto;
    height: 1px;
    background: rgba(148, 197, 255, 0.16);
  }

  .impact-item.is-lit::before {
    top: 12%;
    bottom: 12%;
    left: 0;
    right: auto;
    width: 3.5px;
    height: auto;
  }

  .impact-label {
    font-size: 0.88rem;
    max-width: none;
  }

  /* Scene 3 Mobile */
  .s3-upper {
    max-width: 100%;
  }

  .s3-convergence-stage {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    margin-bottom: 8px;
  }

  .s3-inputs-col {
    perspective: none;
  }

  .scene-03.is-visible .s3-input-card {
    transform: none;
  }

  .s3-input-card {
    min-height: 46px;
  }

  .s3-input-card:hover,
  .s3-input-card.is-active {
    transform: none !important;
  }

  .s3-streams-bridge {
    display: none;
  }

  .s3-cube-stage {
    padding: 10px 0;
  }

  .s3-output-arrow {
    transform: rotate(90deg);
    height: 34px;
  }

  /* Scene 4 Mobile */
  .s4-solution-stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .s4-hero-center-col,
  .s4-functions-col {
    grid-column: 1;
  }

  .s4-conduits-bridge {
    display: none;
  }

  .s4-cube-assembly {
    padding-top: 96px;
  }

  .s4-rising-t-img {
    width: 84px;
  }

  .s4-orbital-ring {
    width: 210px;
    height: 62px;
  }

  .s4-intro-statement {
    font-size: 1.24rem;
  }

  .s4-identity-logo {
    height: 30px;
  }

  .s4-fn-card {
    min-height: 52px;
    border-radius: 14px;
  }
}

/* ============================================================================
   REDUCED MOTION FALLBACK
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .float-layer {
    animation: none !important;
    transform: none !important;
  }

  .scene:not(.is-active-scene) .scene-content {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-item,
  .impact-item,
  .s3-out-row {
    opacity: 1 !important;
    transform: none !important;
  }

  .inv-bar {
    height: var(--bar-h, 50%) !important;
  }

  .lid-front { transform: rotateX(-124deg) !important; }
  .lid-back  { transform: rotateX(124deg) !important; }
  .lid-left  { transform: rotateY(-124deg) !important; }
  .lid-right { transform: rotateY(124deg) !important; }

  .s4-light-beam {
    opacity: 1 !important;
    transform: translateX(-50%) scaleY(1) !important;
  }

  .s4-orbital-ring {
    opacity: 0.82 !important;
    transform: translateX(-50%) rotate(-7deg) scale(1) !important;
  }

  .s4-emblem-chamber {
    opacity: 1 !important;
    transform: translate3d(-50%, 0, 0) scale(1) !important;
  }
}
