:root {
  --page-bg: #f6f7fb;
  --text: #162230;
  --text-soft: rgba(39, 53, 71, 0.72);
  --text-muted: rgba(58, 81, 108, 0.7);
  --glass-line: rgba(255, 255, 255, 0.76);
  --glass-edge-bright: rgba(255, 255, 255, 0.94);
  --glass-edge-shade: rgba(135, 154, 180, 0.16);
  --glass-shadow: rgba(141, 160, 186, 0.11);
  --glass-shadow-strong: rgba(126, 149, 177, 0.15);
  --accent-primary: 183, 220, 255;
  --accent-secondary: 226, 221, 255;
  --accent-cyan: 211, 248, 255;
  --accent-warm: 255, 233, 210;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --trail-x: 50vw;
  --trail-y: 50vh;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --hover-energy: 0;
  --scroll-progress: 0;
  --scroll-tilt: 0deg;
  --pointer-energy: 0;
  --portal-x: 50vw;
  --portal-y: 50vh;
  --ambient-brightness: 0.8;
  --sun-strength: 0.92;
  --glass-clarity: 0.78;
  --specular-energy: 0.34;
  --focus-dim: 0;
  --focus-x: 50vw;
  --focus-y: 50vh;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "Avenir Next", "Segoe UI Variable",
    "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 244, 224, 0.96), transparent 14%),
    radial-gradient(circle at 24% 20%, rgba(255, 250, 243, 0.92), transparent 26%),
    linear-gradient(112deg, #fffdfb 0%, #f8fbff 38%, #f1f5fb 66%, #edf2f8 100%);
  overscroll-behavior: none;
}

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

button {
  border: 0;
  background: transparent;
  font: inherit;
}

h1,
h2,
h3,
p,
strong {
  margin: 0;
}

#app {
  min-height: 100vh;
}

.gateway-v2 {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.ambient-background,
.viewport-shell,
.ambient-particles {
  position: absolute;
  inset: 0;
}

.ambient-background {
  overflow: hidden;
  pointer-events: none;
}

.ambient-background::before,
.ambient-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-background::before {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 242, 213, calc(0.44 * var(--sun-strength))), transparent 18%),
    linear-gradient(118deg, rgba(255, 248, 234, 0.54), rgba(255, 255, 255, 0) 34%);
  opacity: 0.88;
}

.ambient-background::after {
  background:
    radial-gradient(circle at var(--focus-x) var(--focus-y), rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(229, 236, 245, 0.08) 62%, rgba(206, 218, 234, 0.16) 100%);
  opacity: calc(0.4 + var(--hover-energy) * 0.22);
}

.ambient-particles {
  width: 100%;
  height: 100%;
}

.sun-disc,
.sun-beam,
.atmosphere-haze,
.air-grid,
.architectural-plane,
.architectural-veil,
.cursor-light,
.portal-flash {
  position: absolute;
  pointer-events: none;
}

.sun-disc {
  width: 62rem;
  height: 62rem;
  top: -27rem;
  left: -23rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 249, 235, 1), rgba(255, 244, 214, 0.84) 18%, rgba(255, 247, 229, 0.42) 34%, rgba(255, 255, 255, 0.08) 62%, transparent 78%);
  filter: blur(8px);
  opacity: calc(0.9 + var(--hover-energy) * 0.06);
  transform: translate3d(calc(var(--parallax-x) * -0.2), calc(var(--parallax-y) * -0.16), 0);
  box-shadow:
    0 0 120px rgba(255, 243, 211, 0.34),
    0 0 260px rgba(255, 244, 223, 0.2);
}

.sun-beam {
  transform-origin: left center;
  mix-blend-mode: screen;
}

.sun-beam-a {
  width: 90vw;
  height: 18rem;
  top: 1rem;
  left: -12vw;
  background: linear-gradient(115deg, rgba(255, 244, 219, 0.52), rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0) 72%);
  filter: blur(9px);
  transform:
    translate3d(calc(var(--parallax-x) * -0.16), calc(var(--parallax-y) * -0.18), 0)
    rotate(-12deg);
  opacity: calc(0.78 + var(--sun-strength) * 0.14);
}

.sun-beam-b {
  width: 76vw;
  height: 13rem;
  top: 13rem;
  left: 8vw;
  background: linear-gradient(110deg, rgba(var(--accent-primary), 0.18), rgba(255, 255, 255, 0.06) 22%, rgba(255, 255, 255, 0) 70%);
  filter: blur(18px);
  transform:
    translate3d(calc(var(--parallax-x) * -0.1), calc(var(--parallax-y) * -0.1), 0)
    rotate(-7deg);
  opacity: 0.72;
}

.atmosphere-haze {
  inset: -8%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 249, 238, 0.88), transparent 22%),
    radial-gradient(circle at 22% 36%, rgba(255, 245, 226, 0.34), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(var(--accent-cyan), 0.15), transparent 28%),
    radial-gradient(circle at 58% 74%, rgba(var(--accent-secondary), 0.11), transparent 24%),
    linear-gradient(108deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 42%, rgba(242, 247, 255, 0.18) 100%);
  filter: blur(34px);
  opacity: calc(var(--ambient-brightness) + 0.1);
}

.air-grid {
  inset: -24%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 225, 239, 0.1) 1px, transparent 1px);
  background-size: 156px 156px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  opacity: 0.34;
  transform:
    translate3d(calc(var(--parallax-x) * -0.04), calc(var(--parallax-y) * -0.06), 0)
    rotate(var(--scroll-tilt));
}

.architectural-plane {
  border-radius: 2.5rem;
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12) 42%, rgba(227, 236, 247, 0.08) 100%),
    linear-gradient(180deg, rgba(var(--accent-primary), 0.09), rgba(var(--accent-secondary), 0.04));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset -1px -1px 0 rgba(133, 153, 177, 0.08);
  backdrop-filter: blur(16px);
  opacity: 0.5;
}

.plane-a {
  width: 26rem;
  height: 34rem;
  right: 5%;
  top: 9%;
  transform:
    translate3d(calc(var(--parallax-x) * 0.12), calc(var(--parallax-y) * -0.1), 0)
    rotate(7deg);
}

.plane-b {
  width: 18rem;
  height: 24rem;
  left: -2rem;
  top: 26%;
  transform:
    translate3d(calc(var(--parallax-x) * -0.12), calc(var(--parallax-y) * 0.08), 0)
    rotate(-9deg);
}

.plane-c {
  width: 36rem;
  height: 10rem;
  right: 12%;
  bottom: 6%;
  border-radius: 999px;
  transform:
    translate3d(calc(var(--parallax-x) * 0.08), calc(var(--parallax-y) * 0.14), 0)
    rotate(-2deg);
}

.architectural-veil {
  filter: blur(28px);
  border-radius: 50%;
  opacity: 0.55;
}

.veil-a {
  width: 34rem;
  height: 34rem;
  right: -10rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(var(--accent-primary), 0.16), transparent 70%);
}

.veil-b {
  width: 40rem;
  height: 40rem;
  left: 30%;
  bottom: -18rem;
  background: radial-gradient(circle, rgba(var(--accent-secondary), 0.12), rgba(var(--accent-warm), 0.12) 36%, transparent 72%);
}

.cursor-light {
  width: 28rem;
  height: 28rem;
  left: calc(var(--cursor-x) - 14rem);
  top: calc(var(--cursor-y) - 14rem);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16) 18%, rgba(var(--accent-primary), 0.14) 36%, rgba(var(--accent-secondary), 0.08) 48%, transparent 72%);
  filter: blur(12px);
  opacity: calc(0.26 + var(--hover-energy) * 0.12 + var(--pointer-energy) * 0.06);
  transform: scale(calc(1 + var(--pointer-energy) * 0.07));
}

.gateway-v2.has-hover-focus .cursor-light {
  opacity: calc(0.34 + var(--hover-energy) * 0.14 + var(--pointer-energy) * 0.06);
}

.cursor-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.trail-dot {
  position: absolute;
  width: 5rem;
  height: 5rem;
  margin-left: -2.5rem;
  margin-top: -2.5rem;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.18;
  transform: translate3d(-999px, -999px, 0);
}

.trail-dot-a {
  background: radial-gradient(circle, rgba(var(--accent-primary), 0.22), transparent 72%);
}

.trail-dot-b {
  background: radial-gradient(circle, rgba(var(--accent-secondary), 0.18), transparent 72%);
}

.trail-dot-c {
  background: radial-gradient(circle, rgba(var(--accent-warm), 0.16), transparent 74%);
}

.portal-flash {
  width: 38rem;
  height: 38rem;
  left: calc(var(--portal-x) - 19rem);
  top: calc(var(--portal-y) - 19rem);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.44), rgba(var(--accent-cyan), 0.14) 30%, transparent 62%);
  filter: blur(12px);
  opacity: 0;
  transform: scale(0.4);
}

.viewport-shell {
  pointer-events: none;
}

.viewport-content {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  pointer-events: auto;
  will-change: transform;
}

.section {
  position: relative;
  padding: min(7vw, 5.8rem);
  min-height: 100vh;
  opacity: calc(0.56 + var(--section-progress, 0) * 0.52);
  transform: translate3d(0, calc((0.5 - var(--section-progress, 0)) * 26px), 0);
}

.glass-panel,
.glass-chip {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42) 36%, rgba(241, 246, 253, 0.26) 100%),
    linear-gradient(180deg, rgba(var(--accent-primary), 0.1), rgba(var(--accent-secondary), 0.04) 64%, rgba(var(--accent-warm), 0.08));
  border: 1px solid var(--glass-line);
  box-shadow:
    0 30px 72px var(--glass-shadow),
    0 12px 28px var(--glass-shadow-strong),
    inset 1px 1px 0 var(--glass-edge-bright),
    inset -1px -1px 0 var(--glass-edge-shade),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  isolation: isolate;
}

.glass-panel::before,
.glass-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.22) 24%, rgba(255, 255, 255, 0.04) 48%, transparent 76%),
    radial-gradient(130% 90% at 14% 0%, rgba(255, 247, 232, 0.34), transparent 34%),
    radial-gradient(100% 100% at 90% 100%, rgba(var(--accent-primary), 0.12), transparent 46%);
  pointer-events: none;
  opacity: calc(0.82 + var(--glass-clarity) * 0.12 + var(--self-hover, 0) * 0.08);
}

.glass-panel::after,
.glass-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(14rem 8rem at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, calc(0.28 + var(--specular-energy) * 0.46 + var(--self-hover, 0) * 0.16)), rgba(255, 255, 255, 0.18) 14%, rgba(255, 255, 255, 0.06) 28%, transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 20%, transparent 72%, rgba(151, 169, 191, 0.08) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 12%, transparent 88%, rgba(162, 181, 204, 0.12));
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: calc(0.58 + var(--self-hover, 0) * 0.26);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.94rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(64, 97, 131, 0.76);
}

h1 {
  max-width: 9.8ch;
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.26rem;
  line-height: 1.16;
  letter-spacing: -0.028em;
}

.hero-summary,
.atlas-node-body,
.experience-note p,
.inspector-copy {
  color: var(--text-soft);
  line-height: 1.66;
}

.js-magnetic {
  transform:
    translate3d(var(--mx, 0px), calc(var(--my, 0px) - var(--mlift, 0px)), 0)
    scale(var(--mscale, 1));
  transition:
    box-shadow 240ms ease-out,
    filter 240ms ease-out,
    border-color 240ms ease-out,
    opacity 240ms ease-out;
  will-change: transform;
}

.gateway-v2.has-hover-focus .js-magnetic:not(.is-hovered):not(.is-active) {
  opacity: calc(1 - var(--focus-dim));
  filter: saturate(0.95) brightness(0.985);
}

.js-magnetic.is-hovered {
  box-shadow:
    0 34px 80px rgba(147, 167, 194, 0.18),
    0 16px 34px rgba(180, 194, 212, 0.14),
    inset 1px 1px 0 rgba(255, 255, 255, 1),
    inset -1px -1px 0 rgba(149, 170, 198, 0.12);
  filter: brightness(1.026) contrast(1.02) saturate(1.06);
}

.js-magnetic.is-pressed {
  filter: brightness(0.992) saturate(1.01);
}

.hero-space {
  display: grid;
  gap: 2rem;
}

.sky-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-monolith {
  min-height: 3.4rem;
  padding: 0.78rem 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.95rem;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(var(--accent-primary), 0.16)),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.brand-copy {
  display: grid;
  gap: 0.06rem;
}

.brand-copy .eyebrow {
  margin: 0;
  font-size: 0.66rem;
}

.sky-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-space-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.74fr) minmax(30rem, 1.26fr);
  align-items: center;
  gap: min(5vw, 4.5rem);
}

.hero-manifesto {
  display: grid;
  gap: 1.2rem;
  padding-top: 3vh;
}

.hero-summary {
  max-width: 32rem;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  min-height: 3.2rem;
  padding: 0.92rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.82)),
    linear-gradient(135deg, rgba(var(--accent-warm), 0.14), rgba(var(--accent-primary), 0.12));
  border: 1px solid rgba(255, 255, 255, 0.96);
}

.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.34);
}

.gateway-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.gateway-stat {
  justify-content: space-between;
  gap: 0.8rem;
}

.gateway-stat span {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.gateway-stat strong {
  font-size: 0.92rem;
}

.portal-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  align-items: start;
  gap: 1rem;
}

.scene-shell {
  position: relative;
  min-height: 44rem;
  border-radius: 2.8rem;
  overflow: hidden;
  box-shadow:
    0 42px 120px rgba(163, 177, 198, 0.14),
    0 10px 38px rgba(205, 216, 228, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -1px -1px 0 rgba(148, 169, 194, 0.1);
  transform:
    translate3d(calc(var(--parallax-x) * 0.22), calc(var(--parallax-y) * 0.16), 0)
    rotateZ(calc(var(--scroll-tilt) * 0.1));
}

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

.scene-shell::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 246, 226, 0.34), transparent 18%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 36%, transparent 70%);
}

.scene-shell::after {
  background:
    radial-gradient(circle at var(--focus-x) var(--focus-y), rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(180deg, transparent 62%, rgba(151, 171, 195, 0.06) 100%);
  opacity: calc(0.54 + var(--hover-energy) * 0.16);
}

.gateway-v2.has-hover-focus .scene-shell::after {
  opacity: calc(0.66 + var(--hover-energy) * 0.2);
}

.scene-sunplane,
.scene-floor,
.scene-column,
.scene-frame,
.scene-halo,
.scene-caustic,
.scene-shadow-arc,
.scene-reflection {
  position: absolute;
  pointer-events: none;
}

.scene-sunplane {
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 248, 233, 0.78), transparent 22%),
    radial-gradient(circle at 36% 28%, rgba(255, 246, 228, 0.18), transparent 22%),
    radial-gradient(circle at 58% 46%, rgba(var(--accent-primary), 0.12), transparent 34%),
    linear-gradient(108deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 38%, rgba(235, 242, 251, 0.16) 100%);
}

.scene-caustic {
  filter: blur(12px);
  mix-blend-mode: screen;
}

.scene-caustic-a {
  width: 22rem;
  height: 9rem;
  left: 12%;
  top: 12%;
  background: linear-gradient(118deg, rgba(255, 247, 229, 0.44), rgba(255, 255, 255, 0));
  transform: rotate(-18deg);
}

.scene-caustic-b {
  width: 18rem;
  height: 7rem;
  right: 14%;
  bottom: 16%;
  background: linear-gradient(118deg, rgba(var(--accent-cyan), 0.24), rgba(255, 255, 255, 0));
  transform: rotate(-12deg);
}

.scene-floor {
  left: 12%;
  right: 12%;
  bottom: 9%;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.74), rgba(230, 237, 246, 0.2) 42%, transparent 72%);
  filter: blur(18px);
}

.scene-shadow-arc {
  left: 18%;
  right: 16%;
  bottom: 10%;
  height: 4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 148, 169, 0.16), transparent 72%);
  filter: blur(14px);
}

.scene-column {
  width: 8rem;
  top: 8%;
  bottom: 8%;
  border-radius: 999px;
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.08) 48%, rgba(225, 235, 246, 0.08)),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  opacity: 0.58;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.76),
    inset -1px -1px 0 rgba(146, 167, 193, 0.1);
}

.scene-column-a {
  left: 9%;
}

.scene-column-b {
  right: 8%;
}

.scene-frame {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 2.2rem;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.6),
    inset -1px -1px 0 rgba(156, 176, 199, 0.08);
}

.scene-frame-a {
  inset: 8% 10%;
}

.scene-frame-b {
  inset: 16% 18%;
}

.scene-halo {
  border-radius: 50%;
  filter: blur(24px);
}

.scene-halo-a {
  width: 16rem;
  height: 16rem;
  left: 12%;
  top: 16%;
  background: radial-gradient(circle, rgba(var(--accent-warm), 0.24), transparent 72%);
}

.scene-halo-b {
  width: 18rem;
  height: 18rem;
  right: 14%;
  bottom: 16%;
  background: radial-gradient(circle, rgba(var(--accent-primary), 0.22), transparent 72%);
}

.scene-reflection {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  filter: blur(10px);
  opacity: 0.4;
}

.scene-reflection-a {
  width: 12rem;
  height: 1.5rem;
  left: 20%;
  top: 18%;
  transform: rotate(-16deg);
}

.scene-reflection-b {
  width: 10rem;
  height: 1.25rem;
  right: 18%;
  top: 30%;
  transform: rotate(-16deg);
}

.portal-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 25.5rem;
  height: 25.5rem;
  transform: translate3d(-50%, -50%, 0);
}

.portal-core-shadow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 3%;
  height: 4.6rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 154, 177, 0.2), rgba(188, 201, 219, 0.08) 40%, transparent 72%);
  filter: blur(20px);
}

.portal-core-aura {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.portal-core-aura-a {
  inset: -14%;
  background: radial-gradient(circle, rgba(255, 244, 220, 0.38), rgba(var(--accent-primary), 0.12) 36%, transparent 72%);
  filter: blur(18px);
  opacity: 0.8;
}

.portal-core-aura-b {
  inset: 4%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), rgba(var(--accent-secondary), 0.1) 44%, transparent 70%);
  filter: blur(10px);
  opacity: 0.82;
}

.portal-core-shell {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98), transparent 14%),
    radial-gradient(circle at 38% 26%, rgba(255, 248, 232, 0.36), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.24) 38%, rgba(232, 241, 251, 0.2) 100%);
  transform:
    translate3d(calc(var(--parallax-x) * 0.26), calc(var(--parallax-y) * 0.18), 0)
    rotate(calc(var(--scroll-tilt) * -0.4));
  box-shadow:
    0 28px 72px rgba(150, 168, 191, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 1),
    inset -1px -1px 0 rgba(153, 173, 196, 0.14),
    inset 0 0 48px rgba(255, 255, 255, 0.14);
}

.portal-core-prism,
.portal-core-ring,
.portal-core-lens,
.portal-core-iris,
.portal-core-heart,
.portal-core-center,
.portal-core-shell-layer,
.portal-core-caustic,
.portal-core-axis,
.portal-core-orbit,
.portal-core-spark {
  position: absolute;
  border-radius: inherit;
}

.portal-core-caustic {
  inset: 4%;
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.2) 54deg, rgba(var(--accent-primary), 0.08) 112deg, rgba(255, 255, 255, 0) 180deg, rgba(255, 255, 255, 0.14) 282deg, rgba(255, 255, 255, 0) 360deg);
  filter: blur(12px);
  opacity: 0.6;
  animation: core-drift 10s linear infinite;
}

.portal-core-shell-layer {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 30% 18%, rgba(255, 249, 237, 0.26), transparent 32%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.68),
    inset -1px -1px 0 rgba(143, 164, 190, 0.08);
}

.portal-core-shell-layer-a {
  inset: 5%;
}

.portal-core-shell-layer-b {
  inset: 16%;
}

.portal-core-prism {
  border-radius: 2.3rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(var(--accent-primary), 0.16), rgba(var(--accent-secondary), 0.08));
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    inset -1px -1px 0 rgba(144, 164, 190, 0.1);
}

.portal-core-prism-a {
  inset: 12% 19%;
  transform: rotate(18deg) translateY(-3%);
}

.portal-core-prism-b {
  inset: 24% 12%;
  transform: rotate(-24deg) translateY(4%);
}

.portal-core-ring {
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset -1px -1px 0 rgba(147, 168, 193, 0.08);
}

.portal-core-ring-a {
  inset: -6%;
}

.portal-core-ring-b {
  inset: 8%;
}

.portal-core-ring-c {
  inset: 19%;
}

.portal-core-ring-d {
  inset: 30%;
}

.portal-core-lens {
  inset: 12%;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.98), transparent 12%),
    radial-gradient(circle at 62% 58%, rgba(var(--accent-cyan), 0.28), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.8),
    inset -1px -1px 0 rgba(145, 165, 191, 0.08);
}

.portal-core-iris {
  inset: 24%;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.72), transparent 12%),
    conic-gradient(from 180deg, rgba(var(--accent-primary), 0.24), rgba(var(--accent-secondary), 0.16), rgba(var(--accent-cyan), 0.22), rgba(var(--accent-warm), 0.18), rgba(var(--accent-primary), 0.24));
  opacity: 0.6;
  filter: blur(8px);
  animation: core-breathe 6.4s ease-in-out infinite;
}

.portal-core-heart {
  inset: 33%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.52) 18%, rgba(var(--accent-primary), 0.28) 44%, rgba(var(--accent-secondary), 0.22) 66%, transparent 82%);
  filter: blur(5px);
  animation: core-breathe 5.8s ease-in-out infinite;
}

.portal-core-center {
  inset: 41%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 248, 236, 0.74) 34%, rgba(var(--accent-primary), 0.18) 52%, transparent 76%);
  box-shadow:
    0 0 32px rgba(255, 255, 255, 0.46),
    0 0 56px rgba(var(--accent-primary), 0.16);
}

.portal-core-axis {
  inset: 50% 14% auto 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
}

.portal-core-axis-a {
  transform: rotate(18deg);
}

.portal-core-axis-b {
  transform: rotate(-42deg);
}

.portal-core-orbit {
  border: 1px dashed rgba(255, 255, 255, 0.36);
}

.portal-core-orbit-a {
  inset: 4% 18%;
  transform: rotate(26deg);
}

.portal-core-orbit-b {
  inset: 18% 2%;
  transform: rotate(-14deg);
}

.portal-core-spark {
  width: 5rem;
  height: 1rem;
  left: 50%;
  top: 16%;
  margin-left: -2.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
  filter: blur(8px);
  opacity: 0.8;
  transform: rotate(-18deg);
}

.portal-core-tag {
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
}

.chip-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(68, 94, 123, 0.76);
}

.portal-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  transform:
    translate3d(calc(var(--mx, 0px) - 50%), calc(var(--my, 0px) - var(--mlift, 0px) - 50%), 0)
    scale(var(--mscale, 1));
}

.portal-node-orbit {
  position: absolute;
  inset: -1rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--accent-primary), 0.16), transparent 74%);
  opacity: 0;
  transition: opacity 220ms ease-out;
  filter: blur(6px);
}

.portal-node-stem {
  position: absolute;
  left: -0.9rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(var(--accent-primary), 0.46));
  box-shadow: 0 0 0 0.4rem rgba(var(--accent-primary), 0.12);
}

.portal-node-shell {
  display: grid;
  gap: 0.16rem;
  min-width: 11.2rem;
  padding: 0.92rem 1rem 0.92rem 1.22rem;
  box-shadow:
    0 18px 32px rgba(151, 170, 194, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -1px -1px 0 rgba(149, 170, 196, 0.12);
}

.portal-node-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.portal-node-domain {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.portal-node.is-active .portal-node-orbit,
.portal-node.is-hovered .portal-node-orbit {
  opacity: 1;
}

.portal-node.is-active .portal-node-shell,
.portal-node.is-hovered .portal-node-shell,
.atlas-node.is-hovered,
.portal-inspector.is-hovered,
.experience-note.is-hovered,
.docs-ribbon.is-hovered,
.brand-monolith.is-hovered {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 32px 74px rgba(149, 168, 193, 0.18),
    0 14px 30px rgba(191, 204, 219, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 1),
    inset -1px -1px 0 rgba(154, 175, 200, 0.14);
}

.portal-inspector {
  padding: 1.15rem;
  border-radius: 1.7rem;
  transform:
    translate3d(calc(var(--parallax-x) * 0.08), calc(var(--parallax-y) * 0.06), 0)
    rotateZ(calc(var(--scroll-tilt) * -0.08));
  box-shadow:
    0 32px 72px rgba(154, 171, 195, 0.14),
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(148, 169, 194, 0.12);
}

.inspector-title {
  margin-top: 0.35rem;
}

.inspector-copy {
  margin-top: 0.85rem;
  font-size: 0.94rem;
}

.inspector-footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(214, 224, 238, 0.66);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inspector-footer strong {
  color: var(--text);
}

.section-header {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.section-header.narrow h2 {
  max-width: 12ch;
}

.atlas-section,
.system-section,
.docs-section {
  min-height: auto;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.node-atlas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.atlas-node {
  padding: 1.45rem;
  border-radius: 1.8rem;
  box-shadow:
    0 30px 68px rgba(152, 171, 196, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(149, 170, 195, 0.12);
}

.atlas-node-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.atlas-node-header .eyebrow {
  margin: 0;
}

.atlas-node-domain {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.atlas-node h3 {
  margin-top: 0.9rem;
  letter-spacing: 0.08em;
}

.atlas-node-title {
  margin-top: 0.45rem;
  font-size: 1rem;
  color: rgba(32, 47, 65, 0.86);
}

.atlas-node-body {
  margin-top: 0.9rem;
}

.atlas-node-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.atlas-node-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.44rem 0.8rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: rgba(53, 77, 104, 0.78);
  font-size: 0.86rem;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    inset -1px -1px 0 rgba(150, 170, 194, 0.08);
}

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

.experience-note {
  padding: 1.35rem;
  border-radius: 1.8rem;
  box-shadow:
    0 28px 64px rgba(154, 173, 196, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(151, 171, 195, 0.1);
}

.experience-note h3 {
  margin-top: 0.85rem;
}

.experience-note p:last-child {
  margin-top: 0.9rem;
}

.docs-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: 2rem;
  box-shadow:
    0 32px 72px rgba(151, 170, 194, 0.13),
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(148, 169, 194, 0.12);
}

.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

body.is-portal-transition .viewport-content {
  filter: blur(1px) brightness(1.02);
  transform: scale(0.995);
}

body.is-portal-transition .portal-flash {
  opacity: 0.9;
  transform: scale(1.18);
  transition:
    opacity 560ms ease-out,
    transform 560ms ease-out;
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(0.984);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.045);
    opacity: 1;
  }
}

@keyframes core-drift {
  0% {
    transform: rotate(0deg) scale(0.98);
  }

  50% {
    transform: rotate(180deg) scale(1.02);
  }

  100% {
    transform: rotate(360deg) scale(0.98);
  }
}

@media (max-width: 1180px) {
  .hero-space-grid,
  .portal-scene,
  .node-atlas,
  .experience-grid,
  .docs-ribbon {
    grid-template-columns: 1fr;
  }

  .portal-scene {
    display: grid;
  }

  .docs-ribbon {
    display: grid;
  }

  .scene-shell {
    min-height: 38rem;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 1.25rem;
  }

  .sky-rail,
  .hero-actions,
  .docs-links,
  .sky-nav,
  .gateway-stats {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  h2 {
    max-width: none;
  }

  .scene-shell {
    min-height: 32rem;
  }

  .portal-core {
    width: 18rem;
    height: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viewport-content,
  .sun-disc,
  .sun-beam,
  .atmosphere-haze,
  .air-grid,
  .architectural-plane,
  .architectural-veil,
  .cursor-light,
  .portal-flash,
  .scene-shell,
  .portal-core-shell,
  .portal-core-heart,
  .portal-inspector,
  .atlas-node,
  .experience-note,
  .portal-node,
  .trail-dot,
  .js-magnetic {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .ambient-particles,
  .cursor-trail,
  .cursor-light {
    display: none;
  }
}
