:root {
  --bg: #060606;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.82);
  --orange: #f37f22;
  --orange-soft: #ff982e;
  --card-w: 341.76px;
  --desktop-copy-left-offset: 286px;
  --desktop-copy-top: 62%;
  --desktop-copy-width: 590px;
  --desktop-arrow-offset: 28px;
  --desktop-dots-bottom: 94px;
}

@font-face {
  font-family: "VoyageMontserrat";
  src: url("./assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #050505;
  color: var(--text);
  font-family: "VoyageMontserrat", "Segoe UI", system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

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

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
}

.scene-shell {
  position: relative;
  min-height: 100vh;
  z-index: 5;
  will-change: transform, opacity, filter;
  transform-origin: 50% 50%;
}

.scene-shell-ghost {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}

.background-stack {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.cloud-transition {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  left: 50%;
  bottom: -94vh;
  width: min(196vw, 2360px);
  aspect-ratio: 2560 / 2319;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transform: translate3d(-50%, 0, 0);
  will-change: transform, opacity;
}

.cloud-primary {
  width: min(212vw, 2520px);
}

.cloud-secondary {
  width: min(202vw, 2440px);
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(1px);
}

.cloud-primary-echo {
  opacity: 0;
  margin-left: -8vw;
  filter: blur(5px);
}

.cloud-secondary-echo {
  opacity: 0;
  margin-left: 7vw;
  filter: blur(7px);
}

.page.is-section-transitioning {
  cursor: progress;
}

.page.is-section-transitioning .scene-shell {
  pointer-events: none;
}

.page.is-section-transitioning .scene-shell-ghost {
  pointer-events: none;
}

.bg {
  position: absolute;
  inset: 0;
}

.bg-ambient {
  background:
    radial-gradient(circle at 50% 30%, rgba(135, 104, 51, 0.18), transparent 28%),
    radial-gradient(circle at 18% 65%, rgba(84, 114, 62, 0.12), transparent 18%),
    radial-gradient(circle at 82% 70%, rgba(124, 91, 33, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.2), rgba(0, 0, 0, 0.5));
  filter: blur(16px);
  transform: scale(1.08);
}

.bg-image {
  inset: -8%;
  background-position: center center;
  background-size: cover;
  filter: blur(12px) saturate(0.82) brightness(0.42) contrast(1.04);
  transform: scale(1.1);
  opacity: 0;
  will-change: transform, opacity;
}

.bg-image.is-visible {
  opacity: 0.98;
}

.bg-vignette {
  background:
    radial-gradient(circle at 50% 43%, rgba(0, 0, 0, 0.02) 0 18%, rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.42));
}

.bottom-cloud-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.bottom-cloud {
  position: absolute;
  bottom: -28px;
  aspect-ratio: 3200 / 1364;
  background-image: url("./assets/clouds/lunboyun.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  opacity: 0.42;
  filter: blur(1px);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.bottom-cloud-main {
  left: 0;
}

.bottom-cloud-trail {
  left: 0;
}

.bottom-cloud-loop {
  left: 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 48px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  overflow: visible;
  z-index: 20;
}

.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  bottom: 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 44%, rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015) 22%, rgba(255, 255, 255, 0.035) 52%, rgba(255, 255, 255, 0.015) 78%, rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  opacity: var(--topbar-section-opacity, 0);
  transform: translateY(var(--topbar-section-y, 22px));
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar-bottom-line {
  position: fixed;
  left: 0;
  right: 0;
  top: 71px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.02));
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  z-index: 21;
  will-change: opacity, transform;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  opacity: 0;
  transform: translateY(38px);
  will-change: transform, opacity;
}

.brand-main {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #f3eee5;
  text-shadow: 0 0 10px rgba(255, 175, 90, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 54px;
  margin-left: 18px;
  transform: translateY(-2px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 241, 234, 0.62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  opacity: 0;
  transform: translateY(38px);
  will-change: transform, opacity;
}

.nav-link-label {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-text {
  display: block;
  line-height: 1;
}

.nav-link.active {
  color: rgba(244, 241, 234, 0.95);
}

.nav-link.is-disabled {
  color: rgba(244, 241, 234, 0.34);
  cursor: default;
}

.nav-link.is-disabled .nav-link-label {
  transform: none;
  transition: none;
}

.nav-link.is-disabled::after {
  display: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -21px;
  width: 112px;
  height: 3px;
  transform: translateX(-50%) scaleX(var(--topbar-underline-scale, 0.36));
  transform-origin: 50% 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  border-radius: 999px;
  opacity: var(--topbar-underline-opacity, 0);
  will-change: transform, opacity;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 234, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.58);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.icon-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn-inner {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn-glyph {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.book-btn {
  min-width: 137px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  box-shadow:
    0 8px 20px rgba(243, 127, 34, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.64);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.book-btn-label {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.book-btn-text {
  display: block;
  line-height: 1;
}

.nav-link:hover .nav-link-label,
.nav-link:focus-visible .nav-link-label {
  transform: translateZ(0) scale(1.1);
}

.nav-link.is-disabled:hover .nav-link-label,
.nav-link.is-disabled:focus-visible .nav-link-label {
  transform: none;
}

.icon-btn:hover .icon-btn-inner,
.icon-btn:focus-visible .icon-btn-inner {
  transform: translateZ(0) scale(1.16);
}

.book-btn:hover .book-btn-label,
.book-btn:focus-visible .book-btn-label {
  transform: translateZ(0) scale(1.14);
}

.nav-link:focus-visible,
.icon-btn:focus-visible,
.book-btn:focus-visible {
  outline: none;
}

.page.page-ready .brand {
  animation: brand-rise-in 1760ms cubic-bezier(0.14, 0.78, 0.14, 1) forwards;
}

.page.page-ready .nav-link {
  animation: nav-rise-in 1480ms cubic-bezier(0.15, 0.76, 0.14, 1) forwards;
}

.page.page-ready .nav-link:nth-child(1) {
  animation-delay: 0ms;
}

.page.page-ready .nav-link:nth-child(2) {
  animation-delay: 160ms;
}

.page.page-ready .nav-link:nth-child(3) {
  animation-delay: 320ms;
}

.page.page-ready .nav-link:nth-child(4) {
  animation-delay: 480ms;
}

.page.page-ready .topbar::before {
  animation: topbar-float-in 1240ms cubic-bezier(0.18, 0.74, 0.16, 1) forwards;
}

.page.page-ready .topbar-bottom-line {
  animation: topbar-float-in 1240ms cubic-bezier(0.18, 0.74, 0.16, 1) forwards;
}

.page.page-ready .nav-link.active::after {
  animation: nav-underline-in 1280ms cubic-bezier(0.16, 0.74, 0.14, 1) forwards;
  animation-delay: 0ms;
}

.page.page-ready .icon-btn,
.page.page-ready .book-btn {
  animation: nav-scale-in 1820ms cubic-bezier(0.12, 0.76, 0.14, 1) forwards;
  animation-delay: 0ms;
}

.page.page-ready .book-btn {
  animation-delay: 80ms;
}

.page.is-section-transitioning .topbar,
.page.is-section-transitioning .topbar-bottom-line {
  pointer-events: none;
}

.page.topbar-section-exit .brand,
.page.topbar-section-exit .nav-link,
.page.topbar-section-exit .icon-btn,
.page.topbar-section-exit .book-btn,
.page.topbar-section-exit .topbar::before,
.page.topbar-section-exit .topbar-bottom-line,
.page.topbar-section-exit .nav-link.active::after {
  animation: none !important;
}

@keyframes brand-rise-in {
  0% {
    opacity: 0;
    transform: translateY(38px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-rise-in {
  0% {
    opacity: 0;
    transform: translateY(38px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-scale-in {
  0% {
    opacity: 0;
    transform: scale(0.58);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes topbar-float-in {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-underline-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.36);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.carousel-shell {
  position: relative;
  width: min(100vw, 1880px);
  height: min(100vh, 1080px);
  margin-top: 24px;
}

.carousel-stage {
  position: absolute;
  inset: 48px 0 70px;
  overflow: hidden;
  touch-action: none;
}

.cards {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  perspective: 1100px;
  perspective-origin: 50% 48%;
  z-index: 2;
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  height: auto;
  aspect-ratio: 1268 / 1900;
  border-radius: 2px;
  overflow: hidden;
  transform-style: preserve-3d;
  background: #111;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.46);
  will-change: transform, opacity, filter;
}

.card.is-clickable {
  cursor: pointer;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 18%, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, 0.34)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  opacity: 1;
  transition: opacity 220ms ease;
}

.card.is-image-loading img {
  opacity: 0;
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.card.is-video-previewing .card-video {
  opacity: 1;
}

.card-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2;
  background: #000;
}

.card.is-image-loading .card-loading {
  opacity: 1;
}

.card-loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.08);
  animation: card-spinner-rotate 0.9s linear infinite;
}

.card .label {
  position: absolute;
  top: 26px;
  right: 22px;
  padding: 7px 15px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  z-index: 3;
}

@keyframes card-spinner-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.copy {
  --copy-shift: 0px;
  --copy-tilt-x: 0deg;
  --copy-tilt-y: 0deg;
  --copy-tilt-scale: 1;
  --copy-tilt-origin-x: 50%;
  --copy-tilt-origin-y: 50%;
  --copy-depth: 0px;
  --copy-parallax-x: 0px;
  --copy-parallax-y: 0px;
  position: absolute;
  left: calc(50% - var(--desktop-copy-left-offset));
  top: var(--desktop-copy-top);
  width: min(var(--desktop-copy-width), 44vw);
  transform:
    translateY(calc(-50% + var(--copy-shift)))
    perspective(1100px)
    rotateX(var(--copy-tilt-x))
    rotateY(var(--copy-tilt-y))
    translate3d(var(--copy-parallax-x), var(--copy-parallax-y), var(--copy-depth))
    scale(var(--copy-tilt-scale));
  transform-origin: var(--copy-tilt-origin-x) var(--copy-tilt-origin-y);
  transform-style: preserve-3d;
  text-align: left;
  z-index: 120;
  pointer-events: none;
  opacity: 1;
  will-change: transform;
}

.title {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.94;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  color: #fbfaf6;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.52);
  font-weight: 800;
  will-change: transform, opacity;
}

.split-line {
  display: block;
  overflow: hidden;
}

.split-char,
.split-space {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

.title-secondary {
  margin-top: 4px;
}

.title-accent {
  width: 66px;
  height: 3px;
  margin: 18px 0 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
  will-change: transform, opacity;
}

.subtitle {
  margin: 0;
  font-size: clamp(16px, 1.18vw, 21px);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  font-weight: 700;
  will-change: transform, opacity;
}

.subtitle .split-line {
  overflow: visible;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  z-index: 4;
  transform: translateY(10%);
  isolation: isolate;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow:focus,
.carousel-arrow:focus-visible {
  outline: none;
}

.carousel-arrow svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.arrow-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.42) 58%, rgba(255, 255, 255, 0.16) 78%, rgba(255, 255, 255, 0) 100%);
  box-shadow:
    0 8px 24px rgba(255, 255, 255, 0.08),
    0 3px 16px rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%) scale(0.22);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.arrow-ripple.is-active {
  animation:
    arrow-press-scale 840ms cubic-bezier(0.18, 0.7, 0.2, 1) forwards,
    arrow-press-opacity 840ms cubic-bezier(0.22, 0.61, 0.2, 1) forwards;
}

@keyframes arrow-press-scale {
  0% {
    transform: translate(-50%, -50%) scale(0.22);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes arrow-press-opacity {
  0% {
    opacity: 0;
  }

  32% {
    opacity: 0.5;
  }

  58% {
    opacity: 0.34;
  }

  100% {
    opacity: 0;
  }
}

.carousel-arrow.left {
  left: var(--desktop-arrow-offset);
}

.carousel-arrow.right {
  right: var(--desktop-arrow-offset);
}

.dots {
  position: absolute;
  left: 50%;
  bottom: var(--desktop-dots-bottom);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%) scale(0.94);
  z-index: 4;
  opacity: 0;
  transition:
    opacity 1680ms cubic-bezier(0.2, 0.7, 0.16, 1) 620ms,
    transform 1680ms cubic-bezier(0.2, 0.7, 0.16, 1) 620ms;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}

.dot {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.dot:not(.active) {
  display: none;
}

.dot.active {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.page.is-section-transitioning .dots {
  opacity: 0;
  transform: translateX(-50%) scale(0.97);
  transition:
    opacity 520ms cubic-bezier(0.22, 0.7, 0.16, 1) 200ms,
    transform 520ms cubic-bezier(0.22, 0.7, 0.16, 1) 200ms;
}

.page.dot-intro-running .dots {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.page.dot-reenter-prepare .dots {
  opacity: 0;
  transform: translateX(-50%) scale(0.94);
  transition: none;
}

.page.dot-reenter-running .dots {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  transition:
    opacity 880ms cubic-bezier(0.2, 0.72, 0.16, 1) 0ms,
    transform 880ms cubic-bezier(0.2, 0.72, 0.16, 1) 0ms;
}

.page.is-section-transitioning.dot-intro-running .dots,
.page.is-section-transitioning.dot-reenter-prepare .dots,
.page.is-section-transitioning.dot-reenter-running .dots {
  opacity: 0;
  transform: translateX(-50%) scale(0.97);
  transition:
    opacity 520ms cubic-bezier(0.22, 0.7, 0.16, 1) 200ms,
    transform 520ms cubic-bezier(0.22, 0.7, 0.16, 1) 200ms;
}

.card-preview {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 820ms cubic-bezier(0.2, 0.7, 0.16, 1);
  will-change: opacity;
}

.card-preview.is-open {
  opacity: 1;
  pointer-events: auto;
}

.card-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(28, 34, 42, 0.04), rgba(4, 6, 9, 0.74) 56%, rgba(0, 0, 0, 0.93) 100%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 1180ms cubic-bezier(0.2, 0.7, 0.16, 1);
  will-change: opacity;
}

.card-preview.is-open .card-preview-backdrop {
  opacity: 1;
}

.card-preview-dialog {
  position: relative;
  width: min(92vw, 1480px);
  max-height: min(88vh, 980px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "media"
    "meta";
  gap: 18px;
  padding: 22px 22px 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
  transform-origin: 50% 50%;
  transition:
    opacity 620ms cubic-bezier(0.2, 0.72, 0.16, 1),
    transform 980ms cubic-bezier(0.16, 0.72, 0.16, 1);
  will-change: opacity, transform;
}

.card-preview.is-open .card-preview-dialog {
  opacity: 1;
  transform: scale(1);
}

.card-preview-media {
  grid-area: media;
  position: relative;
  min-height: min(72vh, 780px);
  display: grid;
  place-items: center;
  padding-top: 20px;
  overflow: visible;
}

.card-preview-loading {
  position: absolute;
  inset: 20px 0 0;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 3;
}

.card-preview.is-loading .card-preview-loading {
  opacity: 1;
}

.card-preview-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.96);
  animation: card-spinner-rotate 0.9s linear infinite;
}

.card-preview-glare {
  --gh-angle: -30deg;
  --gh-duration: 1600ms;
  --gh-size: 300%;
  --gh-rgba: rgba(255, 255, 255, 0.18);
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  max-width: 100%;
}

.card-preview[data-media="video"] .card-preview-glare {
  display: none;
}

.card-preview[data-media="image"] .card-preview-media video {
  display: none;
}

.card-preview-glare::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--gh-angle),
    hsla(0, 0%, 0%, 0) 60%,
    var(--gh-rgba) 70%,
    hsla(0, 0%, 0%, 0) 82%,
    hsla(0, 0%, 0%, 0) 100%
  );
  transition: background-position var(--gh-duration) ease;
  background-size:
    var(--gh-size) var(--gh-size),
    100% 100%;
  background-repeat: no-repeat;
  background-position:
    -140% -140%,
    0 0;
  pointer-events: none;
  z-index: 2;
}

.card-preview-glare:hover::before {
  background-position:
    140% 140%,
    0 0;
}

.card-preview-media img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 780px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 56px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: scale(0.965);
  transition:
    opacity 520ms cubic-bezier(0.2, 0.72, 0.16, 1) 60ms,
    transform 1120ms cubic-bezier(0.16, 0.72, 0.16, 1) 60ms;
  will-change: opacity, transform;
  position: relative;
  z-index: 1;
  background: #000;
}

.card-preview-media video {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 780px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 56px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: scale(0.965);
  transition:
    opacity 520ms cubic-bezier(0.2, 0.72, 0.16, 1) 60ms,
    transform 1120ms cubic-bezier(0.16, 0.72, 0.16, 1) 60ms;
  will-change: opacity, transform;
  position: relative;
  z-index: 1;
  background: #000;
  justify-self: center;
  align-self: center;
}

.card-preview.is-loading .card-preview-meta,
.card-preview.is-loading .card-preview-capture {
  opacity: 0;
}

.card-preview.is-open .card-preview-media img {
  opacity: 1;
  transform: scale(1);
}

.card-preview.is-open .card-preview-media video {
  opacity: 1;
  transform: scale(1);
}

.card-preview-meta {
  grid-area: meta;
  display: grid;
  gap: 10px;
  justify-items: start;
  grid-template-columns: 1fr;
  align-items: start;
  justify-content: start;
}

.card-preview-tag {
  padding: 7px 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
}

.card-preview-title {
  --shiny-base: rgba(251, 250, 246, 0.88);
  --shiny-highlight: rgba(255, 255, 255, 1);
  --shiny-spread: 120deg;
  --shiny-speed: 4.4s;
  font-size: clamp(26px, 2.2vw, 40px);
  line-height: 0.96;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: #fbfaf6;
}

.shiny-text {
  display: inline-block;
  position: relative;
}

.card-preview-subtitle {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.card-preview-subtitle.shiny-text {
  --shiny-base: rgba(255, 255, 255, 0.78);
  --shiny-highlight: rgba(255, 255, 255, 1);
  --shiny-spread: 120deg;
  --shiny-speed: 4.4s;
  display: inline-block;
  width: fit-content;
  position: relative;
}

.card-preview-subtitle.shiny-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    var(--shiny-spread),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 42%,
    var(--shiny-highlight) 50%,
    rgba(255, 255, 255, 0) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  animation: shiny-text-sweep var(--shiny-speed) linear infinite;
}

.card-preview-capture {
  position: absolute;
  right: 130px;
  bottom: 55px;
  top: auto;
  transform: none;
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  z-index: 3;
}

.card-preview-capture-line {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  white-space: nowrap;
}

@keyframes shiny-text-sweep {
  0% {
    background-position: 150% center;
  }

  100% {
    background-position: -50% center;
  }
}

@media (max-width: 1200px) {
  .cloud-primary {
    width: min(226vw, 2080px);
  }

  .cloud-secondary {
    width: min(216vw, 1980px);
  }

  .nav {
    gap: 34px;
  }

  .carousel-arrow.left {
    left: 24px;
  }

  .carousel-arrow.right {
    right: 24px;
  }

  .copy {
    width: min(82vw, 720px);
  }
}

@media (max-width: 900px) {
  :root {
    --card-w: clamp(220px, 50vw, 336px);
  }

  body {
    overflow: hidden;
  }

  .topbar {
    padding: 0 18px;
  }

  .page,
  .scene-shell,
  .carousel-shell {
    min-height: 100dvh;
    height: 100dvh;
  }

  .cloud {
    bottom: -70vh;
  }

  .cloud-primary {
    width: 258vw;
  }

  .cloud-secondary {
    width: 244vw;
  }

  .nav {
    display: none;
  }

  .carousel-shell {
    width: 100vw;
  }

  .carousel-stage {
    inset: 88px 0 146px;
  }

  .dots {
    bottom: 154px;
  }

  .copy {
    width: min(76vw, 420px);
    left: 50%;
    top: 54%;
    transform:
      translate(-50%, var(--copy-shift))
      perspective(1100px)
      rotateX(var(--copy-tilt-x))
      rotateY(var(--copy-tilt-y))
      translate3d(var(--copy-parallax-x), var(--copy-parallax-y), var(--copy-depth))
      scale(var(--copy-tilt-scale));
    text-align: left;
  }

  .carousel-arrow {
    top: 44%;
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 28px;
    height: 28px;
  }

  .title {
    font-size: clamp(22px, 6.8vw, 36px);
  }

  .subtitle {
    font-size: clamp(15px, 3.2vw, 19px);
  }

  .carousel-arrow.left {
    left: 12px;
  }

  .carousel-arrow.right {
    right: 12px;
  }

  .card-preview-dialog {
    width: min(94vw, 760px);
    max-height: 86vh;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "meta";
    padding: 18px 18px 16px;
    gap: 14px;
  }

  .card-preview-media {
    padding-top: 18px;
  }

  .card-preview-glare {
    max-width: 100%;
  }

  .card-preview-media img {
    max-height: 62vh;
  }

  .card-preview-media video {
    max-height: 62vh;
  }

  .card-preview-meta {
    justify-items: start;
  }

  .card-preview-capture {
    right: 18px;
    top: auto;
    bottom: 16px;
    transform: none;
  }
}
