/* ==========================================================================
   Cyntra Technologies — 3D / dimensional visual system
   --------------------------------------------------------------------------
   Pure CSS 3D transforms: no WebGL payload, no library, GPU-composited,
   fully reduced-motion aware, with static fallbacks on small screens.
   ========================================================================== */

/* ------------------------------------------------------- hero composition */
.hero-3d {
  position: relative;
  perspective: 1500px;
  perspective-origin: 52% 42%;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateZ(-4deg);
  animation: stage-drift 26s ease-in-out infinite;
}

@keyframes stage-drift {
  0%, 100% { transform: rotateX(16deg) rotateZ(-4deg) translateY(0); }
  50% { transform: rotateX(13deg) rotateZ(-2.5deg) translateY(-10px); }
}

/* --- the enterprise technology core (central object) --- */
.core {
  position: absolute;
  top: 50%; left: 50%;
  width: 168px; height: 168px;
  margin: -84px 0 0 -84px;
  transform-style: preserve-3d;
  animation: core-spin 34s linear infinite;
}

@keyframes core-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.core-face {
  position: absolute; inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(55, 227, 240, 0.32);
  background:
    linear-gradient(155deg, rgba(18, 195, 214, 0.16) 0%, rgba(11, 118, 136, 0.07) 100%);
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 30px rgba(18, 195, 214, 0.14);
}
.core-face:nth-child(1) { transform: translateZ(84px); }
.core-face:nth-child(2) { transform: rotateY(90deg) translateZ(84px); }
.core-face:nth-child(3) { transform: rotateY(180deg) translateZ(84px); }
.core-face:nth-child(4) { transform: rotateY(-90deg) translateZ(84px); }
.core-face:nth-child(5) { transform: rotateX(90deg) translateZ(84px); }
.core-face:nth-child(6) { transform: rotateX(-90deg) translateZ(84px); }

/* Inner brand mark, counter-rotating so the CT stays legible */
.core-mark {
  position: absolute;
  top: 50%; left: 50%;
  width: 82px; height: 82px;
  margin: -41px 0 0 -41px;
  transform-style: preserve-3d;
  display: grid; place-items: center;
  animation: mark-counter 34s linear infinite reverse;
}
@keyframes mark-counter {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.core-mark-plate {
  width: 100%; height: 100%;
  border-radius: 16px;
  background: linear-gradient(148deg, #0E2C36 0%, #071A21 100%);
  border: 1px solid rgba(55, 227, 240, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
}
.core-mark-plate svg { width: 42px; height: 42px; }

/* --- orbiting module nodes --- */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform-style: preserve-3d;
  animation: orbit-turn var(--orbit-dur, 30s) linear infinite;
}
.orbit-2 { animation-direction: reverse; }
@keyframes orbit-turn {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.node {
  position: absolute;
  transform-style: preserve-3d;
  width: 118px;
  margin: -26px 0 0 -59px;
}

/* Billboarding is a two-stage cancellation. The orbit rotates every node by
   the shared angle θ, and each node is additionally placed at its own fixed
   angle α via rotateY(α) translateZ(r). To keep a label facing the camera we
   must undo BOTH: .node-spin cancels θ (animated, mirrors the orbit), and
   .node-card cancels α (static, set inline per node). Cancelling only θ — as
   an earlier revision did — leaves a permanent rotateY(α), which renders any
   node near α≈180° back-to-front, i.e. mirrored text. */
.node-spin {
  transform-style: preserve-3d;
  animation: node-face var(--orbit-dur, 30s) linear infinite reverse;
}
.orbit-2 .node-spin { animation-direction: normal; }
@keyframes node-face {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.node-card {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: linear-gradient(158deg, rgba(12, 22, 36, 0.94) 0%, rgba(8, 15, 26, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  /* transform: rotateY(-α) is applied inline by HeroCore */
}
.node-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--cyan-400);
  box-shadow: 0 0 8px rgba(55, 227, 240, 0.8);
}
.node-dot.amber { background: var(--amber-400); box-shadow: 0 0 8px rgba(242, 180, 87, 0.75); }
.node-dot.teal { background: var(--teal-400); box-shadow: 0 0 8px rgba(79, 214, 176, 0.75); }
.node-dot.violet { background: var(--violet-400); box-shadow: 0 0 8px rgba(167, 139, 232, 0.7); }
.node-label {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600;
  color: #D6DEEA; letter-spacing: 0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- connective data lines (minimal, not circuit-board) --- */
.core-rings {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(55, 227, 240, 0.14);
  transform-style: preserve-3d;
}
.ring-1 {
  width: 340px; height: 340px; margin: -170px 0 0 -170px;
  transform: rotateX(78deg);
  animation: ring-pulse 8s ease-in-out infinite;
}
.ring-2 {
  width: 440px; height: 440px; margin: -220px 0 0 -220px;
  transform: rotateX(78deg) rotateZ(30deg);
  border-color: rgba(242, 180, 87, 0.1);
  animation: ring-pulse 8s ease-in-out infinite 1.4s;
}
.ring-3 {
  width: 250px; height: 250px; margin: -125px 0 0 -125px;
  transform: rotateY(74deg);
  border-color: rgba(79, 214, 176, 0.1);
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- floating dashboard panels (hero cards) --- */
.hero-panels {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.panel {
  position: absolute;
  width: 196px;
  padding: 13px 15px;
  border-radius: 12px;
  background: linear-gradient(158deg, rgba(14, 24, 40, 0.95) 0%, rgba(8, 14, 25, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  animation: panel-float 9s ease-in-out infinite;
  pointer-events: auto;
}
@keyframes panel-float {
  0%, 100% { transform: translate3d(0, 0, var(--pz, 80px)); }
  50% { transform: translate3d(0, -11px, var(--pz, 80px)); }
}
/* Panel placement is constrained by how CSS perspective works, and the
   constraint is easy to get wrong.
   translateZ(--pz) does NOT scale a panel about its own centre: it scales it
   about the perspective origin on .hero-3d. A panel whose centre sits a
   distance d from that origin is displaced outward by d * (P/(P − pz) − 1).
   So the outward spill grows with BOTH the depth push and the panel's
   distance from the origin — which is why large negative offsets combined
   with a deep --pz threw panels over the headline on the left and past the
   viewport on the right, and why per-breakpoint percentage nudges could not
   fix it consistently.
   Keeping --pz shallow (≤76px ⇒ ≤1.053x) holds that displacement to a few
   pixels, so the panels stay inside the hero column at every width while
   still reading as floating above the core. */
.panel-tl { top: 2%; left: 2%; --pz: 70px; animation-delay: 0s; }
.panel-tr { top: 12%; right: 2%; --pz: 52px; animation-delay: 1.3s; }
.panel-bl { bottom: 14%; left: 1%; --pz: 60px; animation-delay: 2.4s; }
.panel-br { bottom: 3%; right: 2%; --pz: 76px; animation-delay: 3.1s; }

/* The stage is rotated (rotateX/rotateZ), so its rendered bounding box is
   wider than its layout box — around 1024px the box overhangs the hero column
   by ~15px per side and carries the right-hand panels past the viewport.
   Inset the whole stage in that band instead of nudging individual panels. */
@media (max-width: 1100px) {
  .hero-3d { padding-inline: 20px; }
  .panel { width: 176px; }
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 9px;
}
.panel-title {
  font-size: 9.5px; font-weight: 660;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: #7E8DA5;
}
.panel-metric {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 720; letter-spacing: -0.03em;
  color: #FFFFFF; line-height: 1.1;
}
.panel-sub { font-size: 10.5px; color: #8C9AB1; margin-top: 2px; line-height: 1.4; }

.panel-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 10px; }
.panel-bars i {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(18, 195, 214, 0.28), rgba(55, 227, 240, 0.78));
  animation: bar-rise 3.4s ease-in-out infinite;
}
.panel-bars i:nth-child(2) { animation-delay: 0.22s; }
.panel-bars i:nth-child(3) { animation-delay: 0.44s; }
.panel-bars i:nth-child(4) { animation-delay: 0.66s; }
.panel-bars i:nth-child(5) { animation-delay: 0.88s; }
.panel-bars i:nth-child(6) { animation-delay: 1.1s; }
@keyframes bar-rise {
  0%, 100% { transform: scaleY(0.62); }
  50% { transform: scaleY(1); }
}
.panel-bars.amber i { background: linear-gradient(to top, rgba(224, 154, 51, 0.26), rgba(242, 180, 87, 0.76)); }

.panel-track {
  height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden; margin-top: 10px;
}
.panel-track i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-600), var(--cyan-400));
  animation: track-fill 4.5s ease-in-out infinite;
}
.panel-track.teal i { background: linear-gradient(90deg, #178F72, var(--teal-400)); }
@keyframes track-fill {
  0%, 100% { width: var(--fill, 68%); }
  50% { width: calc(var(--fill, 68%) + 12%); }
}

.panel-rows { display: grid; gap: 6px; margin-top: 9px; }
.panel-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 10px; color: #92A0B6;
}
.panel-row b { color: #DCE3ED; font-weight: 620; }
.panel-pill {
  font-size: 8.5px; font-weight: 660; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 4px;
}
.panel-pill.ok { background: rgba(45, 175, 127, 0.2); color: #63D8AC; }
.panel-pill.warn { background: rgba(224, 163, 58, 0.2); color: #F2C075; }
.panel-pill.info { background: rgba(18, 195, 214, 0.2); color: #64E4F2; }

/* ---------------------------------------------------- layered architecture */
.layers {
  perspective: 1300px;
  perspective-origin: 50% 40%;
  padding: 26px 0;
}
.layers-stack {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-38deg);
  width: 290px; height: 290px;
  margin: 44px auto;
}
.layer {
  position: absolute; inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(152deg, rgba(22, 36, 56, 0.92), rgba(11, 18, 32, 0.86));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.3s ease;
}
.layer-label {
  transform: rotateZ(38deg) rotateX(-52deg) translateZ(1px);
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 660;
  letter-spacing: 0.03em; color: #E4EAF2;
  text-align: center; line-height: 1.3;
  padding: 0 12px;
}
.layer-num {
  display: block; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--cyan-400);
  margin-bottom: 3px; opacity: 0.85;
}
.layers-stack .layer:nth-child(1) { transform: translateZ(0px); }
.layers-stack .layer:nth-child(2) { transform: translateZ(26px); }
.layers-stack .layer:nth-child(3) { transform: translateZ(52px); }
.layers-stack .layer:nth-child(4) { transform: translateZ(78px); }
.layers-stack .layer:nth-child(5) { transform: translateZ(104px); }
.layers-stack .layer:nth-child(6) { transform: translateZ(130px); }
.layers-stack .layer:nth-child(7) { transform: translateZ(156px); }
.layers-stack .layer:nth-child(8) { transform: translateZ(182px); }
.layers-stack:hover .layer:nth-child(1) { transform: translateZ(0px); }
.layers-stack:hover .layer:nth-child(2) { transform: translateZ(36px); }
.layers-stack:hover .layer:nth-child(3) { transform: translateZ(72px); }
.layers-stack:hover .layer:nth-child(4) { transform: translateZ(108px); }
.layers-stack:hover .layer:nth-child(5) { transform: translateZ(144px); }
.layers-stack:hover .layer:nth-child(6) { transform: translateZ(180px); }
.layers-stack:hover .layer:nth-child(7) { transform: translateZ(216px); }
.layers-stack:hover .layer:nth-child(8) { transform: translateZ(252px); }
.layer:hover { border-color: rgba(55, 227, 240, 0.45); }

/* ------------------------------------------------------ modular cube grid */
.cube-grid {
  perspective: 1000px;
  display: grid; place-items: center;
  padding: 30px 0;
}
.cube-set {
  transform-style: preserve-3d;
  transform: rotateX(22deg) rotateY(-26deg);
  display: grid; grid-template-columns: repeat(3, 58px);
  gap: 12px;
  animation: cube-sway 20s ease-in-out infinite;
}
@keyframes cube-sway {
  0%, 100% { transform: rotateX(22deg) rotateY(-26deg); }
  50% { transform: rotateX(19deg) rotateY(-18deg); }
}
.cube {
  width: 58px; height: 58px;
  transform-style: preserve-3d;
  position: relative;
}
.cube i {
  position: absolute; inset: 0;
  border: 1px solid rgba(55, 227, 240, 0.26);
  background: linear-gradient(150deg, rgba(18, 195, 214, 0.14), rgba(11, 118, 136, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cube i:nth-child(1) { transform: translateZ(29px); }
.cube i:nth-child(2) { transform: rotateY(90deg) translateZ(29px); background: linear-gradient(150deg, rgba(18, 195, 214, 0.08), rgba(11, 118, 136, 0.03)); }
.cube i:nth-child(3) { transform: rotateX(90deg) translateZ(29px); background: linear-gradient(150deg, rgba(242, 180, 87, 0.1), rgba(184, 123, 36, 0.03)); }
.cube.dim i { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); }

/* ------------------------------------------------------- pipeline / flow */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  counter-reset: step;
  perspective: 1200px;
}
.pipe-step {
  position: relative;
  padding: 26px 20px;
  border: 1px solid var(--hairline-dark);
  border-right: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  transition: transform 0.26s ease, background 0.26s ease, border-color 0.26s ease;
  counter-increment: step;
}
.pipe-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pipe-step:last-child { border-right: 1px solid var(--hairline-dark); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.pipe-step:hover {
  transform: translateY(-6px) translateZ(20px);
  background: linear-gradient(160deg, rgba(18, 195, 214, 0.1), rgba(18, 195, 214, 0.03));
  border-color: rgba(55, 227, 240, 0.32);
  z-index: 2;
}
.pipe-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--cyan-400);
  display: block; margin-bottom: 10px;
}
.pipe-step h4 {
  font-size: 14.5px; font-weight: 650;
  letter-spacing: -0.012em; margin-bottom: 6px;
}
.pipe-step p { font-size: 12.5px; line-height: 1.55; color: var(--steel-300); margin: 0; }
@media (max-width: 900px) {
  .pipe-step, .pipe-step:first-child, .pipe-step:last-child {
    border: 1px solid var(--hairline-dark);
    border-radius: var(--radius);
    margin-bottom: -1px;
  }
}

/* --------------------------------------------------- dashboard mockup (3D) */
.mock {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(158deg, #0D1626 0%, #070C16 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-dark-lg);
}
.mock-3d {
  transform: perspective(1500px) rotateY(-9deg) rotateX(4deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.mock-3d:hover { transform: perspective(1500px) rotateY(-4deg) rotateX(2deg) translateY(-6px); }

.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mock-bar span {
  margin-left: 8px; font-family: var(--font-mono);
  font-size: 10.5px; color: #6F7E96; letter-spacing: 0.01em;
}
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-row { display: grid; gap: 12px; }
.mock-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mock-row-2 { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 560px) {
  .mock-row-3, .mock-row-2 { grid-template-columns: minmax(0, 1fr); }
}
.mock-tile {
  padding: 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mock-tile-label {
  font-size: 9.5px; font-weight: 640; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6F7E96; margin-bottom: 6px;
}
.mock-tile-value {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: -0.028em; color: #FFFFFF;
}
.mock-tile-delta { font-size: 10px; margin-top: 3px; color: #63D8AC; font-weight: 600; }
.mock-tile-delta.down { color: #F08A8A; }

.mock-chart { display: flex; align-items: flex-end; gap: 5px; height: 84px; }
.mock-chart i {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(18, 195, 214, 0.2), rgba(55, 227, 240, 0.7));
}
.mock-list { display: grid; gap: 9px; }
.mock-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 11px; color: #93A1B7;
}
.mock-item:last-child { border-bottom: none; padding-bottom: 0; }
.mock-item b { color: #DCE3ED; font-weight: 620; }

/* ----------------------------------------------------------- shield layer */
.shield-stack {
  position: relative; perspective: 1100px;
  display: grid; place-items: center; padding: 24px 0;
}
.shield-set { transform-style: preserve-3d; transform: rotateX(16deg); }
.shield-plate {
  position: absolute; top: 50%; left: 50%;
  width: 150px; height: 178px;
  margin: -89px 0 0 -75px;
  border: 1px solid rgba(242, 180, 87, 0.28);
  background: linear-gradient(160deg, rgba(224, 154, 51, 0.12), rgba(184, 123, 36, 0.03));
  clip-path: polygon(50% 0%, 100% 18%, 100% 62%, 50% 100%, 0% 62%, 0% 18%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: shield-breathe 7s ease-in-out infinite;
}
.shield-plate:nth-child(1) { transform: translateZ(0); }
.shield-plate:nth-child(2) { transform: translateZ(24px) scale(0.9); animation-delay: 0.5s; }
.shield-plate:nth-child(3) { transform: translateZ(48px) scale(0.8); animation-delay: 1s; border-color: rgba(55, 227, 240, 0.3); background: linear-gradient(160deg, rgba(18, 195, 214, 0.13), rgba(11, 118, 136, 0.03)); }
@keyframes shield-breathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
.shield-stack { min-height: 230px; }

/* ------------------------------------------------------- micro 3D cube */
.mini-cube {
  width: 46px; height: 46px;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(38deg);
  position: relative;
  animation: mini-turn 16s linear infinite;
}
@keyframes mini-turn {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to { transform: rotateX(-24deg) rotateY(360deg); }
}
.mini-cube i {
  position: absolute; inset: 0;
  border: 1px solid rgba(18, 195, 214, 0.45);
  background: linear-gradient(150deg, rgba(18, 195, 214, 0.2), rgba(11, 118, 136, 0.08));
}
.mini-cube i:nth-child(1) { transform: translateZ(23px); }
.mini-cube i:nth-child(2) { transform: rotateY(90deg) translateZ(23px); }
.mini-cube i:nth-child(3) { transform: rotateX(90deg) translateZ(23px); }
.mini-cube i:nth-child(4) { transform: rotateY(180deg) translateZ(23px); }
.mini-cube i:nth-child(5) { transform: rotateY(-90deg) translateZ(23px); }
.mini-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(23px); }

/* ------------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.62s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }

/* ---------------------------------------------- responsive & fallbacks */
@media (max-width: 1080px) {
  .panel-tl { left: -4%; }
  .panel-tr { right: -6%; }
  .panel-bl { left: -6%; }
  .panel-br { right: -2%; }
  .panel { width: 172px; }
}

/* Static fallback for small screens / low-power devices: keep the composition
   but drop the animation and orbital depth for a clean flat rendition. */
@media (max-width: 820px) {
  .hero-3d { min-height: 380px; perspective: none; }
  .hero-3d-stage { animation: none; transform: none; max-width: 400px; }
  .core { animation: none; transform: none; }
  .core-face:not(:nth-child(1)) { display: none; }
  .core-face:nth-child(1) { transform: none; }
  .core-mark { animation: none; }
  .orbit { display: none; }
  .core-rings { display: none; }
  .panel { animation: none; position: static; width: auto; --pz: 0; }
  .hero-panels {
    position: static;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; margin-top: 26px;
  }
  .layers-stack { transform: rotateX(44deg) rotateZ(-32deg) scale(0.8); }
  .mock-3d { transform: none; }
}
@media (max-width: 520px) {
  .hero-panels { grid-template-columns: minmax(0, 1fr); }
  .hero-3d { min-height: 300px; }
  .layers-stack { transform: rotateX(40deg) rotateZ(-28deg) scale(0.62); margin: 10px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d-stage, .core, .core-mark, .orbit, .node-card, .ring,
  .panel, .panel-bars i, .panel-track i, .cube-set, .shield-plate, .mini-cube {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
html[data-motion='reduced'] .hero-3d-stage,
html[data-motion='reduced'] .core,
html[data-motion='reduced'] .core-mark,
html[data-motion='reduced'] .orbit,
html[data-motion='reduced'] .node-card,
html[data-motion='reduced'] .ring,
html[data-motion='reduced'] .panel,
html[data-motion='reduced'] .panel-bars i,
html[data-motion='reduced'] .panel-track i,
html[data-motion='reduced'] .cube-set,
html[data-motion='reduced'] .shield-plate,
html[data-motion='reduced'] .mini-cube { animation: none !important; }
html[data-motion='reduced'] .reveal { opacity: 1; transform: none; }
