:root {
  --ix-orange: #fdaa3e;
  --ix-navy: #0c1a2b;
}

/* Progressive enhancement: the complete site remains usable without this layer. */
.ix-hero-3d {
  --ix-hero-x: 0deg;
  --ix-hero-y: 0deg;
  --ix-scroll-depth: 0px;
  isolation: isolate;
  perspective: 1200px;
}

.ix-hero-3d::before,
.ix-hero-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ix-hero-3d::before {
  inset: auto -12% -38% -12%;
  height: 68%;
  opacity: .22;
  transform: perspective(620px) rotateX(64deg) translateZ(-40px);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(253, 170, 62, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 170, 62, .22) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 84%);
  mask-image: linear-gradient(to top, #000, transparent 84%);
}

.ix-hero-3d::after {
  background:
    radial-gradient(circle at var(--ix-pointer-x, 50%) var(--ix-pointer-y, 44%), rgba(253, 170, 62, .16), transparent 24%),
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .035) 49%, transparent 62%);
  mix-blend-mode: screen;
}

.ix-hero-3d > video,
.ix-hero-3d > img,
.ix-hero-3d > picture,
.ix-hero-3d > div:first-of-type {
  transform: scale(1.055) translate3d(0, var(--ix-scroll-depth), -22px)
    rotateX(var(--ix-hero-x)) rotateY(var(--ix-hero-y));
  transform-origin: center;
  transition: transform 180ms ease-out;
  will-change: transform;
}

.ix-hero-3d .ix-hero-content {
  transform: translate3d(calc(var(--ix-hero-y) * -1.35), calc(var(--ix-hero-x) * 1.35), 72px);
  text-shadow: 0 20px 55px rgba(0, 0, 0, .28);
  transition: transform 180ms ease-out;
  will-change: transform;
}

.ix-hero-3d h1 {
  text-shadow: 0 8px 28px rgba(0, 0, 0, .28), 0 34px 80px rgba(0, 0, 0, .22);
}

.ix-tilt-card {
  --ix-card-rx: 0deg;
  --ix-card-ry: 0deg;
  --ix-card-z: 0px;
  --ix-glow-x: 50%;
  --ix-glow-y: 50%;
  position: relative;
  transform: perspective(1000px) rotateX(var(--ix-card-rx)) rotateY(var(--ix-card-ry)) translateZ(var(--ix-card-z));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.2, .75, .25, 1), box-shadow 260ms ease;
  will-change: transform;
}

.ix-tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--ix-glow-x) var(--ix-glow-y), rgba(255, 255, 255, .24), transparent 34%);
  transition: opacity 220ms ease;
  mix-blend-mode: soft-light;
}

.ix-tilt-card:hover {
  --ix-card-z: 14px;
  box-shadow: 0 34px 75px -34px rgba(5, 16, 31, .66), 0 14px 34px -22px rgba(253, 170, 62, .44);
}

.ix-tilt-card:hover::after { opacity: 1; }

.ix-tilt-card > * {
  transform: translateZ(20px);
}

.ix-tilt-card img {
  transform: translateZ(10px) scale(1.015);
}

.ix-depth-section {
  position: relative;
  isolation: isolate;
}

.ix-depth-section::before {
  content: "";
  position: absolute;
  width: min(44vw, 600px);
  aspect-ratio: 1;
  right: -18%;
  top: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 170, 62, .09), transparent 68%);
  filter: blur(16px);
  pointer-events: none;
}

@media (max-width: 767px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .ix-hero-3d > video,
  .ix-hero-3d > img,
  .ix-hero-3d > picture,
  .ix-hero-3d > div:first-of-type,
  .ix-hero-3d .ix-hero-content,
  .ix-tilt-card,
  .ix-tilt-card > *,
  .ix-tilt-card img {
    transform: none !important;
    transition: none !important;
  }

  .ix-hero-3d::before { opacity: .1; }
  .ix-tilt-card::after { display: none; }
}
