:root {
  --bg: #e9f1ff;
  --bg-2: #f8fbff;
  --ink: #223a68;
  --muted: #587198;
  --cyan: #67ddff;
  --blue: #3f79ff;
  --violet: #b15cff;
  --green: #38e3c0;
  --scene-x: 0px;
  --scene-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(126, 177, 255, 0.24), transparent 24%),
    radial-gradient(circle at 16% 18%, rgba(108, 224, 255, 0.12), transparent 20%),
    radial-gradient(circle at 86% 18%, rgba(193, 143, 255, 0.11), transparent 20%),
    linear-gradient(180deg, #eaf2ff 0%, #f9fbff 52%, #edf3ff 100%);
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(145, 184, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 184, 245, 0.04) 1px, transparent 1px);
  background-size: 4.9rem 4.9rem;
  opacity: 0.5;
}

body::after {
  background: radial-gradient(circle at 50% 58%, transparent 34%, rgba(141, 174, 229, 0.12) 100%);
}

.page-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  z-index: 12;
  width: min(100rem, 100%);
  margin: 0 auto;
  padding: 0.7rem 2rem 0.55rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand-block {
  justify-self: start;
  display: grid;
  gap: 0.08rem;
}

.brand-block strong {
  font-size: 2.15rem;
  line-height: 0.96;
  color: #19336f;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-kicker {
  color: #5c667b;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: #344c78;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.55rem 0.85rem;
}

.actions {
  justify-self: end;
  display: inline-flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.8rem;
  padding: 0.95rem 1.4rem;
  border-radius: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(150, 175, 222, 0.65);
  box-shadow:
    0 0.8rem 1.8rem rgba(155, 177, 221, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #319dff, #6f6bff);
  box-shadow:
    0 1rem 2rem rgba(94, 128, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  min-width: 11.8rem;
}

.experience {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.experience::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.screen {
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene-stage {
  position: relative;
  width: min(100rem, 100%);
  height: 100%;
  min-height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid rgba(177, 201, 242, 0.72);
}

.ambient,
.particle-field,
.tech-grid,
.tech-corners,
.floor-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle-field {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.ambient-a {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.05) 20%, transparent 36%);
}

.ambient-b {
  background:
    radial-gradient(circle at 50% 58%, rgba(145, 217, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(146, 188, 255, 0.03), transparent 28%);
}

.tech-grid {
  background:
    linear-gradient(rgba(180, 201, 239, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 201, 239, 0.2) 1px, transparent 1px);
  background-size: 3.6rem 3.6rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 88%);
  opacity: 0.36;
}

.tech-corners::before,
.tech-corners::after {
  content: none;
}

.floor-glow {
  top: 56%;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.62), rgba(180, 220, 255, 0.08) 12%, transparent 24%),
    radial-gradient(circle at 50% 76%, rgba(166, 203, 255, 0.08), transparent 28%);
  animation: floorBreathe 6s ease-in-out infinite;
  opacity: 0.34;
}

.floor-glow-soft {
  top: 42%;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.78), rgba(195, 226, 255, 0.12) 18%, transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(171, 206, 255, 0.08), transparent 30%);
  opacity: 0.55;
}

.hero-stage {
  isolation: isolate;
  min-height: 100%;
}
.hero-heading {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  z-index: 6;
  width: min(53rem, calc(100% - 3rem));
  transform: translateX(-50%);
  text-align: center;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: #456bb7;
}

.hero-heading h1 {
  margin: 0;
  font-size: clamp(2.1rem, 2.95vw, 3.15rem);
  line-height: 1.05;
  color: #142b61;
  text-wrap: balance;
}

.hero-composition {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateY(3.25rem) scale(0.93);
  transform-origin: 50% 50%;
}


.orbit-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.track {
  fill: none;
  stroke-width: 2.75;
  filter: url(#line-glow);
  opacity: 0.96;
}

.t1,
.t2 {
  stroke: rgba(72, 180, 255, 0.92);
}

.t3,
.t4 {
  stroke: rgba(168, 103, 255, 0.78);
}

.spark {
  filter: url(#line-glow);
}

.spark.cyan { fill: #7ee6ff; }
.spark.violet { fill: #d191ff; }
.spark.green { fill: #74f1c9; }

.core-cluster {
  position: absolute;
  left: 50%;
  top: 50.2%;
  z-index: 3;
  width: min(18rem, 30vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translate3d(calc(var(--scene-x) * 0.2), calc(var(--scene-y) * 0.16), 0);
  animation: clusterFloat 8s ease-in-out infinite;
  opacity: 0.94;
}

.halo,
.ring,
.core-center,
.core-particles {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.halo-a {
  inset: 18%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(197, 176, 255, 0.38) 30%, rgba(105, 188, 255, 0.18) 56%, transparent 76%);
  filter: blur(0.62rem);
  animation: haloPulse 4.8s ease-in-out infinite;
}

.halo-b {
  inset: 28%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(129, 220, 255, 0.24) 38%, transparent 70%);
  filter: blur(0.28rem);
  animation: haloPulse 3.8s ease-in-out infinite reverse;
}

.ring {
  border: 1.2px solid rgba(184, 207, 255, 0.68);
  mix-blend-mode: normal;
}

.ring-a {
  inset: 16%;
  border-color: rgba(191, 154, 255, 0.54);
  box-shadow: 0 0 1.35rem rgba(197, 156, 255, 0.28);
  animation: spinSlow 20s linear infinite;
}

.ring-b {
  inset: 24%;
  border-color: rgba(128, 210, 255, 0.68);
  animation: spinSlow 14s linear infinite reverse;
}

.ring-c {
  inset: 34%;
  border-color: rgba(184, 146, 255, 0.6);
  animation: pulseRing 3.4s ease-in-out infinite;
}

.ring-d {
  inset: 8%;
  border-style: dashed;
  border-color: rgba(190, 208, 248, 0.42);
  animation: spinSlow 28s linear infinite;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108%;
  height: 34%;
  border-radius: 50%;
  border: 2.2px solid rgba(172, 196, 255, 0.9);
  opacity: 1;
  transform-origin: center;
  box-shadow:
    0 0 1.95rem rgba(150, 192, 255, 0.38),
    0 0 0.45rem rgba(255, 255, 255, 0.28) inset;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
}

.orbit-a {
  border-color: rgba(198, 152, 255, 0.92);
  box-shadow:
    0 0 2rem rgba(191, 132, 255, 0.36),
    0 0 0.45rem rgba(255, 255, 255, 0.28) inset;
  transform: translate(-50%, -50%) rotate(18deg);
  animation: orbitSpinA 18s linear infinite;
}

.orbit-a::after {
  right: 16%;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(214, 150, 255, 0.96) 58%, transparent 100%);
  box-shadow: 0 0 1.5rem rgba(198, 132, 255, 0.8);
}

.orbit-b {
  width: 118%;
  border-color: rgba(110, 225, 255, 0.94);
  box-shadow:
    0 0 2rem rgba(102, 209, 255, 0.34),
    0 0 0.45rem rgba(255, 255, 255, 0.28) inset;
  transform: translate(-50%, -50%) rotate(-26deg);
  animation: orbitSpinB 15s linear infinite;
}

.orbit-b::after {
  left: 18%;
  bottom: 14%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(111, 238, 255, 0.98) 58%, transparent 100%);
  box-shadow: 0 0 1.5rem rgba(90, 223, 255, 0.82);
}

.core-center {
  inset: 38%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 1), rgba(239, 234, 255, 0.84) 28%, rgba(177, 136, 255, 0.58) 50%, rgba(111, 206, 255, 0.2) 74%, transparent 100%);
  box-shadow:
    0 0 1.9rem rgba(164, 147, 255, 0.3),
    0 0 2.8rem rgba(105, 214, 255, 0.28);
  animation: corePulse 3.2s ease-in-out infinite;
}

.core-particles {
  inset: 10%;
  background:
    radial-gradient(circle at 18% 52%, rgba(255, 255, 255, 0.84) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 24%, rgba(124, 228, 255, 0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(215, 166, 255, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 56%, rgba(255, 255, 255, 0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 78%, rgba(112, 235, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 84%, rgba(208, 178, 255, 0.72) 0 1px, transparent 2px);
  opacity: 0.92;
  animation: pulseFlicker 5s linear infinite;
}

.portal-card {
  position: absolute;
  z-index: 4;
  width: min(22.3rem, calc(50vw - 9rem));
  min-width: 16.8rem;
  transform:
    translate3d(calc(var(--scene-x) * var(--parallax, 0.12)), calc(var(--scene-y) * var(--parallax, 0.12)), 0)
    rotate(var(--tilt, 0deg));
  animation: floatCard 6.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.portal-card[data-tone="cyan"] { --tone: var(--cyan); }
.portal-card[data-tone="blue"] { --tone: #70c2ff; }
.portal-card[data-tone="violet"] { --tone: #d089ff; }
.portal-card[data-tone="green"] { --tone: #70efd5; }

.card-courses {
  left: 5%;
  top: 17%;
  --tilt: 0deg;
  --parallax: 0.08;
}

.card-system {
  left: 6%;
  top: 60.5%;
  --tilt: 0deg;
  --parallax: 0.06;
  --delay: 1.1s;
}

.card-consult {
  right: 5%;
  top: 17%;
  --tilt: 0deg;
  --parallax: 0.08;
  --delay: 0.3s;
}

.card-app {
  right: 6%;
  top: 60.5%;
  --tilt: 0deg;
  --parallax: 0.06;
  --delay: 1.35s;
}

.card-shell {
  position: relative;
  padding: 1.65rem 1.8rem 1.6rem;
  min-height: 15.6rem;
  display: grid;
  grid-template-columns: 4.1rem 1fr;
  gap: 0.95rem;
  clip-path: polygon(5% 0, 95% 0, 100% 13%, 100% 90%, 95% 100%, 5% 100%, 0 88%, 0 12%);
  border: 1.55px solid color-mix(in srgb, var(--tone) 86%, rgba(156, 186, 238, 1));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.94)),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 1), transparent 30%);
  backdrop-filter: blur(5px);
  box-shadow:
    0 0 0 1.1px color-mix(in srgb, var(--tone) 24%, rgba(206, 223, 251, 0.96)),
    0 0.85rem 1.5rem rgba(144, 170, 216, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0.95rem color-mix(in srgb, var(--tone) 8%, transparent);
  overflow: hidden;
}

.card-shell::before,
.card-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.card-shell::before {
  inset: 0.72rem;
  border: 1.15px solid color-mix(in srgb, var(--tone) 60%, rgba(201, 219, 249, 0.94));
  clip-path: inherit;
  opacity: 0.96;
}

.card-shell::after {
  inset: 1.1rem 1.2rem auto auto;
  width: 3rem;
  height: 3rem;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--tone) 55%, rgba(196, 216, 251, 0.92)) 0 1px, transparent 1px);
  background-size: 0.48rem 0.48rem;
  opacity: 0.9;
}

.card-shell {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92)),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.99), transparent 30%);
  background-repeat: no-repeat;
  background-size: auto, auto;
  background-position: 0 0, 0 0;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(110deg, transparent 16%, rgba(255, 255, 255, 0.44) 28%, transparent 40%);
  transform: translateX(-135%);
  animation: cardSweep 6.5s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0s) + 0.6s);
  pointer-events: none;
}

.portal-card::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 0.88rem;
  border-top: 1.4px solid color-mix(in srgb, var(--tone) 70%, rgba(189, 209, 246, 0.96));
  opacity: 0.99;
  z-index: 5;
  pointer-events: none;
}

.card-icon {
  width: 3.85rem;
  height: 3.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tone) 62%, rgba(198, 216, 248, 0.92));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 255, 0.82));
  box-shadow:
    0 0 1.1rem color-mix(in srgb, var(--tone) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.card-icon svg {
  width: 1.72rem;
  height: 1.72rem;
  fill: none;
  stroke: color-mix(in srgb, var(--tone) 82%, #4f6fe7);
  stroke-width: 1.7;
}

.card-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: flex-start;
}

.card-copy h2 {
  margin: 0.15rem 0 0.85rem;
  font-size: 1.12rem;
  line-height: 1.14;
  color: color-mix(in srgb, var(--tone) 82%, #16386c);
}

.card-copy p {
  margin: 0;
  max-width: 14.8rem;
  font-size: 0.82rem;
  line-height: 1.42;
  color: #111827;
  font-weight: 500;
  padding-bottom: 0;
  text-align: justify;
}

.card-btn {
  margin-top: 0.7rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid color-mix(in srgb, var(--tone) 52%, rgba(182, 204, 244, 0.86));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.92));
  color: color-mix(in srgb, var(--tone) 78%, #24439a);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 0.85rem 1.6rem rgba(182, 198, 230, 0.16);
}

.card-btn span:last-child {
  font-size: 1.3rem;
  line-height: 1;
}

.section-shell {
  position: relative;
  z-index: 4;
  width: min(90rem, calc(100% - 3.2rem));
  margin: 0 auto;
}

.solutions-shell {
  display: grid;
  align-content: center;
  gap: 2.4rem;
  min-height: 100%;
  padding: 4rem 0 3.2rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  text-align: center;
  justify-items: center;
}

.section-eyebrow {
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3256a3;
}

.section-heading h1,
.cta-card h2 {
  margin: 0;
  max-width: 58rem;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  line-height: 1.12;
  color: #12234e;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.45rem;
}

.info-card {
  min-height: 27rem;
  padding: 2.1rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  border: 1px solid rgba(214, 225, 247, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.74)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.94), transparent 26%);
  box-shadow:
    0 1rem 2.4rem rgba(170, 192, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.info-index {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(236, 241, 252, 0.94);
  color: #2b4fa0;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.info-card h2 {
  margin: 0 0 1.35rem;
  font-size: 1.28rem;
  line-height: 1.16;
  color: #0f2555;
}

.info-card p {
  margin: 0;
  color: #50698f;
  font-size: 0.98rem;
  line-height: 1.72;
}

.info-link {
  margin-top: auto;
  padding-top: 2.2rem;
  color: #143882;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
}

.cta-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 3.4rem 0;
}

.cta-card {
  width: min(58rem, 100%);
  padding: 3rem 3rem 2.8rem;
  display: grid;
  gap: 1.45rem;
  border-radius: 2.4rem;
  border: 1px solid rgba(210, 224, 248, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.76)),
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.96), transparent 26%);
  box-shadow:
    0 1.2rem 2.8rem rgba(167, 187, 230, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.cta-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4f678d;
}

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

.cta-point {
  padding: 1.2rem 1.25rem;
  border-radius: 1.35rem;
  background: rgba(244, 247, 255, 0.82);
  border: 1px solid rgba(214, 224, 244, 0.9);
}

.cta-point strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: #14316d;
}

.cta-point span {
  color: #657a9f;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
}

@keyframes floatCard {
  0%, 100% {
    transform:
      translate3d(calc(var(--scene-x) * var(--parallax, 0.12)), calc(var(--scene-y) * var(--parallax, 0.12)), 0)
      rotate(var(--tilt, 0deg));
  }
  50% {
    transform:
      translate3d(calc(var(--scene-x) * var(--parallax, 0.12)), calc(-0.55rem + var(--scene-y) * var(--parallax, 0.12)), 0)
      rotate(var(--tilt, 0deg));
  }
}

@keyframes pulseFlicker {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.62; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes corePulse {
  0%, 100% { transform: scale(0.96); box-shadow: 0 0 2rem rgba(164, 147, 255, 0.28), 0 0 3rem rgba(105, 214, 255, 0.24); }
  50% { transform: scale(1.05); box-shadow: 0 0 2.6rem rgba(164, 147, 255, 0.38), 0 0 3.6rem rgba(105, 214, 255, 0.3); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes clusterFloat {
  0%, 100% { transform: translate(-50%, -50%) translate3d(calc(var(--scene-x) * 0.2), calc(var(--scene-y) * 0.16), 0); }
  50% { transform: translate(-50%, calc(-50% - 0.45rem)) translate3d(calc(var(--scene-x) * 0.2), calc(var(--scene-y) * 0.16), 0); }
}

@keyframes orbitSpinA {
  from { transform: translate(-50%, -50%) rotate(18deg); }
  to { transform: translate(-50%, -50%) rotate(378deg); }
}

@keyframes orbitSpinB {
  from { transform: translate(-50%, -50%) rotate(-26deg); }
  to { transform: translate(-50%, -50%) rotate(-386deg); }
}

@keyframes cardSweep {
  0%, 65%, 100% { transform: translateX(-135%); opacity: 0; }
  14%, 28% { opacity: 0.7; }
  40% { transform: translateX(135%); opacity: 0; }
}

@keyframes floorBreathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@media (max-width: 1400px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card {
    min-height: 22rem;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) and (min-height: 881px) {
  .portal-card {
    width: min(23.5rem, calc(50vw - 7.5rem));
  }

  .card-courses { left: 3.5%; }
  .card-system { left: 4%; }
  .card-consult { right: 3.5%; }
  .card-app { right: 4%; }

  .core-cluster {
    width: min(18rem, 30vw);
  }
}



@media (min-width: 1181px) and (max-height: 880px) {
  .hero-heading {
    top: 0.55rem;
    width: min(48rem, calc(100% - 3rem));
  }

  .hero-heading h1 {
    font-size: clamp(1.82rem, 2.4vw, 2.55rem);
  }

  .hero-composition {
    transform: translateY(2.95rem) scale(0.89);
  }

  .portal-card {
    width: min(23.8rem, calc(50vw - 8rem));
    min-width: 18rem;
  }

  .card-shell {
    height: 14.8rem;
    padding: 1.35rem 1.45rem 1.25rem;
    grid-template-columns: 4.15rem 1fr;
    gap: 0.95rem;
  }

  .card-icon {
    width: 3.85rem;
    height: 3.85rem;
  }

  .card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .card-copy h2 {
    margin-bottom: 0.65rem;
    font-size: 1.12rem;
  }

  .card-copy p {
    font-size: 0.84rem;
    line-height: 1.42;
    padding-bottom: 0.55rem;
  }

  .card-btn {
    padding: 0.66rem 1rem;
    font-size: 0.84rem;
  }

  .card-courses { top: 17%; }
  .card-consult { top: 17%; }
  .card-system { top: 58%; }
  .card-app { top: 58%; }

  .core-cluster {
    width: min(17rem, 28vw);
    left: 50%;
    top: 50.2%;
  }
}
@media (max-width: 1180px) {
  .hero-heading {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(42rem, 100%);
    margin: 0 auto 0.5rem;
    padding-top: 0.25rem;
  }

  .hero-heading h1 {
    font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  }

  .hero-composition {
    position: relative;
    inset: auto;
    transform: none;
  }

  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100vh;
  }

  .experience {
    overflow: visible;
    scroll-snap-type: none;
  }

  .screen {
    height: auto;
    min-height: auto;
  }

  .scene-stage {
    min-height: auto;
    overflow: visible;
  }

  .hero-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 1.15rem 1.35rem;
    padding: 1.6rem 1.2rem 2rem;
  }

  .portal-card,
  .core-cluster {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin-inline: auto;
  }

  .portal-card {
    width: min(28rem, 100%);
    min-width: 0;
  }

  .card-shell {
    min-height: 14.6rem;
  }

  .core-cluster {
    grid-column: 1 / -1;
    order: 1;
    width: min(14rem, 34vw);
    margin-block: 0.35rem 0.7rem;
  }

  .card-courses { order: 2; }
  .card-consult { order: 3; }
  .card-system { order: 4; }
  .card-app { order: 5; }

  .orbit-map,
  .tech-corners {
    display: none;
  }
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .hero-heading {
    width: min(34rem, 100%);
    margin: 0;
    padding-inline: 0.15rem;
    text-align: left;
  }

  .hero-heading h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.06;
  }

  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100vh;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 1rem;
  }

  .brand-block,
  .actions {
    justify-self: center;
    text-align: center;
  }

  .experience {
    overflow: visible;
    scroll-snap-type: none;
  }

  .screen {
    min-height: auto;
  }

  .scene-stage {
    min-height: auto;
    padding: 1rem 1rem 2.2rem;
  }

  .hero-stage,
  .hero-composition {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .portal-card,
  .core-cluster {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin-inline: auto;
  }

  .orbit-map,
  .tech-corners {
    display: none;
  }

  .core-cluster {
    order: 1;
    width: min(12rem, 52vw);
    margin: 0.25rem auto 0.55rem;
    opacity: 0.8;
  }

  .hero-stage {
    align-content: start;
    gap: 1rem;
  }

  .hero-composition {
    gap: 1rem;
  }

  .portal-card {
    width: min(34rem, 100%);
    max-width: 100%;
    animation-duration: 5.8s;
  }

  .card-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 1.35rem 1.25rem 1.25rem;
  }

  .card-icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .card-icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .card-copy h2 {
    margin: 0.1rem 0 0.65rem;
    font-size: 1.24rem;
  }

  .card-copy p {
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .card-btn {
    width: 100%;
    justify-content: center;
  }

  .solutions-shell,
  .cta-shell {
    min-height: auto;
    padding: 1.4rem 0 0.4rem;
  }

  .section-shell {
    width: min(46rem, calc(100% - 1rem));
  }

  .info-grid,
  .cta-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 0.85rem;
    gap: 0.7rem;
  }

  .brand-block strong {
    font-size: 1.95rem;
  }

  .hero-stage {
    padding: 0.9rem 0.9rem 1.8rem;
    gap: 0.9rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .hero-heading h1 {
    font-size: clamp(1.95rem, 10vw, 2.5rem);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .actions {
    width: min(100%, 22rem);
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-shell {
    padding: 1.25rem 1.05rem 1.15rem;
  }

  .card-copy h2 {
    font-size: 1.15rem;
  }

  .card-copy p {
    max-width: none;
    font-size: 0.88rem;
  }

  .btn,
  .card-btn,
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .info-card,
  .cta-card {
    padding-inline: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


@media (min-width: 1181px) and (max-height: 880px) {
  .portal-card::after {
    bottom: 0.82rem;
  }
}

@media (max-width: 980px) {
  .portal-card::after {
    left: 8%;
    right: 8%;
    bottom: 0.84rem;
  }
}

@media (max-width: 768px) {
  .page-shell,
  .experience,
  .screen,
  .scene-stage,
  .hero-stage,
  .hero-composition {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.8rem;
  }

  .hero-stage {
    padding: 1rem 0.85rem 1.65rem;
    gap: 1rem;
    justify-items: center;
  }

  .hero-heading {
    width: min(21rem, 100%);
    padding-inline: 0;
    text-align: center;
  }

  .hero-heading h1 {
    font-size: clamp(1.72rem, 8.7vw, 2.2rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .hero-composition {
    gap: 0.85rem;
    justify-items: center;
  }

  .core-cluster {
    display: none;
  }

  .particle-field {
    display: none;
  }

  .ambient-b,
  .floor-glow {
    opacity: 0.22;
  }

  .portal-card {
    width: min(21.5rem, calc(100% - 0.4rem));
  }

  .card-shell {
    padding: 1rem 0.9rem 0.95rem;
  }

  .card-copy h2 {
    font-size: 1.04rem;
  }

  .card-copy p {
    font-size: 0.82rem;
    line-height: 1.44;
  }

  .card-btn {
    padding: 0.62rem 0.82rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-inline: 0.8rem;
  }

  .hero-heading {
    width: min(18rem, 100%);
  }

  .hero-heading h1 {
    font-size: clamp(1.56rem, 8.9vw, 1.95rem);
  }

  .portal-card {
    width: min(19.6rem, calc(100% - 0.3rem));
  }

  .card-shell {
    padding: 0.95rem 0.82rem 0.9rem;
  }

  .card-icon {
    width: 3rem;
    height: 3rem;
  }
}
