:root {
  color-scheme: dark;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  background: #030405;
  color: #f2f3f5;
  --safe-top: max(20px, env(safe-area-inset-top));
  --safe-right: max(24px, env(safe-area-inset-right));
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
  --safe-left: max(24px, env(safe-area-inset-left));
  --p2m-duration: 1500ms;
  --p2m-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: #030405;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 200vh;
  min-height: 200svh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #030405;
  color: #f2f3f5;
  touch-action: pan-y;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.experience {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #030405;
  pointer-events: none;
}

#stage {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  outline: 0;
  pointer-events: none;
  touch-action: pan-y;
  transition: opacity 520ms ease;
}

#stage.is-ready {
  opacity: 1;
}

.system-message {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34rem, calc(100% - 48px));
  margin: 0;
  transform: translate(-50%, -50%);
  color: #d8dbdf;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  pointer-events: auto;
}

.scroll-content {
  position: relative;
  z-index: 1;
  min-height: 200vh;
  min-height: 200svh;
  pointer-events: none;
}

.hero-section,
.product-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  pointer-events: none;
}

.product-section {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: var(--safe-top);
  left: var(--safe-left);
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

.logo-button {
  display: block;
  width: 150px;
  aspect-ratio: 760 / 220;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #f2f3f5;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.magiccore-logo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.magiccore-logo #module-top,
.magiccore-logo #module-left,
.magiccore-logo #module-bottom {
  stroke: #f2f3f5;
}

.magiccore-logo #module-right {
  stroke: #12b8a6;
}

.magiccore-logo #core {
  fill: #ff2d6f;
}

.magiccore-logo #wordmark {
  fill: #f2f3f5;
}

.magiccore-logo #module-top,
.magiccore-logo #module-left,
.magiccore-logo #module-bottom,
.magiccore-logo #module-right,
.magiccore-logo #core,
.magiccore-logo #wordmark-magic,
.magiccore-logo #wordmark-core {
  transform-box: fill-box;
  transform-origin: center;
}

.logo-button:hover {
  color: #ffffff;
  background: rgba(242, 243, 245, 0.08);
}

.logo-button:focus-visible {
  outline: 2px solid #12b8a6;
  outline-offset: 6px;
}

.product-node:focus-visible {
  outline: 0;
}

.product-orbit {
  --module-offset: min(18.18vh, 30.3vw);
  --module-offset: min(18.18svh, 30.3vw);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.product-node {
  --product-color: #f2f3f5;
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  display: block;
  width: clamp(60px, 4vw, 80px);
  height: clamp(140px, 18vh, 170px);
  padding: 0;
  color: #f2f3f5;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms ease;
  pointer-events: none;
}

.product-node[data-product="0"] {
  --product-color: #f2f3f5;
  --node-x: 50%;
  --node-y: calc(50% - var(--module-offset));
}

.product-node[data-product="1"] {
  --product-color: #39d6d0;
  --node-x: calc(50% + var(--module-offset));
  --node-y: 50%;
}

.product-node[data-product="2"] {
  --product-color: #f2f3f5;
  --node-x: 50%;
  --node-y: calc(50% + var(--module-offset));
}

.product-node[data-product="3"] {
  --product-color: #f2f3f5;
  --node-x: calc(50% - var(--module-offset));
  --node-y: 50%;
}

.product-node[data-product="0"],
.product-node[data-product="2"] {
  width: clamp(140px, 8vw, 170px);
  height: clamp(60px, 7vh, 76px);
}

.product-section.is-active .product-node {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.product-node:hover,
.product-node:focus-visible {
  color: #ffffff;
}

.product-node__label {
  position: absolute;
  z-index: 1;
  width: max-content;
  max-width: min(160px, 42vw);
  margin: 0;
  color: #f2f3f5;
  color: color-mix(in srgb, var(--product-color) 58%, #f2f3f5);
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow:
    0 0 18px rgba(3, 4, 5, 0.95),
    0 0 12px color-mix(in srgb, var(--product-color) 32%, transparent);
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
  pointer-events: none;
}

.product-node__label::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  width: 24px;
  height: 1px;
  margin: auto;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-node[data-product="0"] .product-node__label {
  top: -42px;
  left: 50%;
  transform: translate(-50%, -100%);
}

.product-node[data-product="1"] .product-node__label {
  top: 50%;
  left: calc(100% + 46px);
  transform: translateY(-50%);
}

.product-node[data-product="2"] .product-node__label {
  top: calc(100% + 44px);
  left: 50%;
  transform: translateX(-50%);
}

.product-node[data-product="3"] .product-node__label {
  top: 50%;
  right: calc(100% + 46px);
  transform: translateY(-50%);
}

.product-node:hover .product-node__label,
.product-node:focus-visible .product-node__label {
  color: var(--product-color);
  text-shadow: 0 0 18px color-mix(in srgb, var(--product-color) 58%, transparent);
}

.product-node:hover .product-node__label::after,
.product-node:focus-visible .product-node__label::after {
  opacity: 0.9;
  transform: scaleX(1);
}

@media (max-width: 760px) {
  :root {
    --safe-top: max(16px, env(safe-area-inset-top));
    --safe-right: max(16px, env(safe-area-inset-right));
    --safe-bottom: max(20px, env(safe-area-inset-bottom));
    --safe-left: max(16px, env(safe-area-inset-left));
  }

  .logo-button {
    width: 136px;
  }

  .product-node {
    width: 50px;
    height: 94px;
  }

  .product-node[data-product="0"],
  .product-node[data-product="2"] {
    width: 94px;
    height: 50px;
  }

  .product-node__label {
    font-size: 12px;
    letter-spacing: 0;
  }

  .product-node[data-product="0"] .product-node__label {
    top: -28px;
  }

  .product-node[data-product="1"] .product-node__label {
    top: -31px;
    left: 50%;
    transform: translate(-50%, -100%);
  }

  .product-node[data-product="2"] .product-node__label {
    top: calc(100% + 28px);
  }

  .product-node[data-product="3"] .product-node__label {
    top: calc(100% + 32px);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .magiccore-logo.is-animating #core {
    animation: p2m-core var(--p2m-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .magiccore-logo.is-animating #module-top {
    animation: p2m-module-top var(--p2m-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .magiccore-logo.is-animating #module-left {
    animation: p2m-module-left var(--p2m-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .magiccore-logo.is-animating #module-bottom {
    animation: p2m-module-bottom var(--p2m-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .magiccore-logo.is-animating #module-right {
    animation: p2m-module-right var(--p2m-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .magiccore-logo.is-animating #wordmark-magic {
    animation: p2m-wordmark-magic var(--p2m-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .magiccore-logo.is-animating #wordmark-core {
    animation: p2m-wordmark-core var(--p2m-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #stage {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .logo-button,
  .product-node {
    forced-color-adjust: none;
  }
}

@keyframes p2m-core {
  0%, 8% { opacity: 0; transform: scale(0.72) rotate(-18deg); }
  25% { opacity: 1; transform: scale(1.04) rotate(0deg); }
  36%, 72% { opacity: 1; transform: scale(1) rotate(0deg); }
  82% { transform: scale(1.035); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes p2m-module-top {
  0%, 18% { opacity: 0; transform: translateY(28px) scale(0.72); }
  48% { opacity: 1; transform: translateY(-1px) scale(1.015); }
  58%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes p2m-module-left {
  0%, 24% { opacity: 0; transform: translateX(28px) scale(0.72); }
  54% { opacity: 1; transform: translateX(-1px) scale(1.015); }
  64%, 100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes p2m-module-bottom {
  0%, 30% { opacity: 0; transform: translateY(-28px) scale(0.72); }
  60% { opacity: 1; transform: translateY(1px) scale(1.015); }
  70%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes p2m-module-right {
  0%, 36% { opacity: 0; transform: translateX(-28px) scale(0.72); }
  66% { opacity: 1; transform: translateX(1px) scale(1.015); }
  76%, 100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes p2m-wordmark-magic {
  0%, 48% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-8px); }
  80%, 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(0); }
}

@keyframes p2m-wordmark-core {
  0%, 58% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-6px); }
  90%, 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(0); }
}
