:root {
  color-scheme: dark;
  --black: #030405;
  --white: #f8fbff;
  --muted: rgba(248, 251, 255, 0.72);
  --dim: rgba(248, 251, 255, 0.5);
  --gold: #d7a85b;
  --line: rgba(248, 251, 255, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

button,
a,
img,
video {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

img,
video {
  display: block;
  pointer-events: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 38%, rgba(215, 168, 91, 0.13), transparent 31%),
    linear-gradient(180deg, #07090b 0%, #020304 100%);
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  width: min(280px, 78vw);
  height: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4fbff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.loader__meta,
.loader__percent {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.loader__bar {
  width: min(320px, 100%);
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.loader__bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--white), var(--gold));
  transition: width 180ms ease;
}

.experience {
  position: relative;
  width: 100vw;
  max-width: 520px;
  height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #050607;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.72);
  touch-action: pan-y;
}

.experience.is-loading {
  visibility: hidden;
}

.topbar {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: max(0px, calc((100vw - 520px) / 2));
  right: max(0px, calc((100vw - 520px) / 2));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  pointer-events: none;
}

.brand-card {
  width: 126px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #f4fbff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.brand-logo {
  width: 100%;
  height: auto;
}

.hold-hint {
  position: relative;
  flex: 0 0 auto;
  isolation: isolate;
  overflow: hidden;
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.18);
  animation: hint-pulse 3.2s ease-in-out infinite;
}

.hold-hint::after {
  content: "";
  position: absolute;
  inset: -55% -80%;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 36%,
    rgba(255, 255, 255, 0.74) 50%,
    transparent 64%
  );
  opacity: 0.42;
  transform: translateX(-120%);
  animation: hint-sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

.snap-track {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.snap-track::-webkit-scrollbar {
  display: none;
}

.scene {
  position: relative;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.scene__media,
.scene__base,
.scene__touch,
.scene__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene__base,
.scene__touch,
.scene__fallback {
  object-fit: cover;
  object-position: var(--position, center center);
}

.scene__base {
  z-index: 1;
  transform: scale(1.01);
}

.scene__fallback {
  z-index: 2;
}

.scene__touch {
  z-index: 3;
}

.scene__touch,
.scene__fallback {
  opacity: 0;
  transform: scale(1.015);
  filter: saturate(1.04) contrast(1.04);
  transition: opacity 55ms linear;
}

.scene__fallback {
  animation: living-still 3.2s ease-in-out infinite alternate;
}

.scene.is-active .scene__fallback {
  opacity: 1;
}

.scene.is-active .scene__touch.is-ready {
  opacity: 1;
}

.scene__shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, transparent 24%),
    radial-gradient(circle at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.76) 100%);
  pointer-events: none;
}

.scene__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  gap: 18px;
  padding: 0 22px 18px;
}

.scene__eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scene__title {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(42px, 15vw, 76px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.7);
}

.scene__subtitle {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.38;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.scene__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.scene__cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #050607;
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  pointer-events: auto;
}

.scene__micro {
  min-width: 0;
  max-width: 22ch;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.25;
}

.scene-dots {
  position: fixed;
  top: 50%;
  right: max(12px, calc((100vw - 520px) / 2 + 12px));
  z-index: 15;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

.scene-dots span {
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition:
    height 180ms ease,
    background 180ms ease;
}

.scene-dots span.is-current {
  height: 34px;
  background: var(--white);
}

@keyframes living-still {
  from {
    transform: scale(1.015) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.055) translate3d(-1.4%, -1.1%, 0);
  }
}

@keyframes hint-pulse {
  0%,
  68%,
  100% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  78% {
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow:
      0 0 18px rgba(255, 255, 255, 0.46),
      0 0 34px rgba(207, 169, 102, 0.2);
  }
}

@keyframes hint-sheen {
  0%,
  66% {
    transform: translateX(-120%);
  }

  86%,
  100% {
    transform: translateX(120%);
  }
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(circle at 50% 20%, rgba(82, 105, 123, 0.18), transparent 35%),
      #020304;
  }

  .experience {
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
  }
}

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

  .hold-hint,
  .hold-hint::after,
  .scene__fallback {
    animation: none;
  }
}
