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

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

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

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

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

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

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

:root {
  --black: #000000;
  --graphite: #07090d;
  --white: #f8fbff;
  --muted: rgba(248, 251, 255, 0.64);
  --cyan: #00efff;
  --pink: #ff17be;
  --violet: #985cff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
  background-color: #000;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-synthesis: none;
  scroll-behavior: smooth;
}

html,
button,
body,
a,
p,
span,
div,
section,
header,
footer,
nav,
main,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 200;
}

body {
  position: relative;
  margin: 0;
  min-height: 100%;
  background: #000;
  background-color: #000;
  color: #fff;
  font-weight: 200;
  overflow-x: hidden;
}

body.tile-page {
  min-height: 100svh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #000;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100%;
  background-color: #000;
}

.black-underlay {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: #000;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  pointer-events: none;
}

.scroll-hero {
  position: relative;
  height: 1228vh;
  background: #000;
  background-color: #000;
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  touch-action: pan-y;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 239, 255, 0.085), transparent 34%),
    radial-gradient(circle at 50% 56%, rgba(255, 23, 190, 0.08), transparent 38%),
    #000;
  background-color: #000;
  isolation: isolate;
}

.sticky-stage,
.smoke-layer,
.depth-vignette,
.stage-copy,
  .wordmark,
  .second-scroll-scene,
  .second-scroll-stage,
  .second-scroll-group,
  .second-scroll-piece,
  .second-scroll-final,
  .card-accordion,
  .accordion-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.smoke-layer {
  position: absolute;
  z-index: 1;
  inset: -8vh -8vw;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.15) contrast(1.08) blur(0.2px);
  will-change: transform, opacity, filter;
}

.smoke-layer-a {
  background-image: url("./assets/smoke-ambient.jpeg");
  opacity: 0.38;
  transform: translate3d(-5vw, 0, 0) scale(1.22);
}

.smoke-layer-b {
  background-image: url("./assets/smoke-magenta.jpeg");
  opacity: 0.16;
  transform: translate3d(7vw, 4vh, 0) scale(1.3);
}

.smoke-layer-c {
  background-image: url("./assets/smoke-cyan-magenta.jpeg");
  opacity: 0.22;
  transform: translate3d(-2vw, -4vh, 0) scale(1.38);
}

.depth-vignette {
  position: absolute;
  z-index: 8;
  inset: 0;
  background:
    radial-gradient(circle at 50% 51%, transparent 0 20%, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.88) 74%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,0.66), transparent 20%, transparent 64%, rgba(0,0,0,0.72));
  pointer-events: none;
  will-change: opacity;
}

.direction-cue {
  position: absolute;
  z-index: 32;
  bottom: calc(62px + env(safe-area-inset-bottom));
  left: 50%;
  width: 64px;
  height: 42px;
  opacity: 0.48;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.direction-cue::before,
.direction-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.direction-cue::before {
  top: 24px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(248, 251, 255, 0.68);
  border-radius: 999px;
  transform: translate3d(-50%, 0, 0) scale(0.84);
}

.direction-cue::after {
  top: 28px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.74);
  box-shadow: 0 0 8px rgba(0, 239, 255, 0.12);
  transform: translate3d(-50%, 0, 0);
}

.direction-cue__arrow {
  position: absolute;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(248, 251, 255, 0.78);
  border-right: 1px solid rgba(248, 251, 255, 0.78);
  filter: drop-shadow(0 0 8px rgba(0, 239, 255, 0.14));
  transition:
    left 260ms ease,
    right 260ms ease,
    top 260ms ease,
    transform 260ms ease,
    border-color 260ms ease;
}

.direction-cue--vertical .direction-cue__arrow--primary {
  top: 3px;
  left: 27px;
  transform: rotate(-45deg);
}

.direction-cue--vertical .direction-cue__arrow--secondary {
  top: 15px;
  left: 27px;
  transform: rotate(135deg);
}

.direction-cue--horizontal {
  opacity: 0.56;
}

.direction-cue--horizontal::before {
  opacity: 0.7;
  animation: clickPulse 1.35s ease-out infinite;
}

.direction-cue--horizontal::after {
  opacity: 0.84;
  animation: clickDot 1.35s ease-out infinite;
}

.direction-cue--horizontal .direction-cue__arrow--primary {
  top: 7px;
  left: 18px;
  transform: rotate(-135deg);
}

.direction-cue--horizontal .direction-cue__arrow--secondary {
  top: 7px;
  left: 37px;
  transform: rotate(45deg);
}

@keyframes clickPulse {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scale(0.66);
  }

  18% {
    opacity: 0.74;
  }

  72%,
  100% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scale(1.45);
  }
}

@keyframes clickDot {
  0%,
  100% {
    opacity: 0.38;
  }

  28%,
  52% {
    opacity: 0.88;
  }
}

.stage-copy {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: 50%;
  width: min(780px, calc(100vw - 44px));
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity, filter;
}

.stage-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5.9vw, 92px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: 0;
}

.wordmark {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 50%;
  width: min(86vw, 1560px);
  height: auto;
  opacity: 0;
  filter:
    blur(16px)
    drop-shadow(0 0 26px rgba(0,239,255,0.18))
    drop-shadow(0 0 34px rgba(255,23,190,0.16));
  transform: translate3d(-50%, -50%, 0) scale(0.72);
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}

.second-scroll-scene {
  position: absolute;
  z-index: 16;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 34px, 0) scale(0.94);
  background:
    radial-gradient(circle at 50% 45%, rgba(248,251,255,0.05), transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(0,239,255,0.035), transparent 34%),
    linear-gradient(180deg, #000 0%, var(--graphite) 48%, #000 100%);
  background-color: #000;
  will-change: transform, opacity, filter;
}

.second-scroll-stage {
  position: relative;
  z-index: 1;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  background-color: transparent;
  filter:
    drop-shadow(0 0 24px rgba(0,244,255,0.13))
    drop-shadow(0 0 28px rgba(255,24,191,0.11));
}

.second-scroll-group,
.second-scroll-piece,
.second-scroll-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}

@supports (-webkit-touch-callout: none) {
  html,
  body,
  main,
  .scroll-hero,
  .sticky-stage,
  .second-scroll-scene {
    background-color: #000 !important;
  }

  .second-scroll-stage {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

.second-scroll-group {
  will-change: transform;
}

.second-scroll-piece,
.second-scroll-final {
  display: block;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity, filter;
}

.card-accordion {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.card-accordion--interactive {
  pointer-events: auto;
}

.accordion-card {
  position: absolute;
  width: 281.25px;
  height: 500px;
  display: block;
  border: 1px solid rgba(248, 251, 255, 0.12);
  border-radius: 34px;
  overflow: hidden;
  background-clip: padding-box;
  clip-path: inset(0 round 34px);
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
  opacity: 0;
  box-shadow:
    0 24px 74px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  background: var(--card-base);
  --card-photo-blend: soft-light;
  --card-photo-opacity: 0.76;
  isolation: isolate;
  transform: translate3d(0, 82vh, 0);
  will-change: transform, opacity;
  color: inherit;
  cursor: default;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.card-accordion--interactive .accordion-card {
  cursor: pointer;
}

.accordion-card:focus-visible,
.tile-detail__arrow:focus-visible,
.tile-detail__home:focus-visible {
  outline: 1px solid rgba(248, 251, 255, 0.72);
  outline-offset: 5px;
}

.accordion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), transparent 34%),
    radial-gradient(circle at 50% 16%, rgba(255,255,255,0.18), transparent 32%);
  opacity: 0.52;
  border-radius: inherit;
  pointer-events: none;
}

.accordion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--card-texture);
  background-position: var(--card-texture-position, center);
  background-size: var(--card-texture-size, cover);
  background-repeat: no-repeat;
  mix-blend-mode: var(--card-photo-blend);
  opacity: var(--card-texture-opacity, 0.12);
  filter: saturate(0.86) contrast(1.08);
  border-radius: inherit;
  pointer-events: none;
}

.accordion-card__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(0, 82%, 0);
  filter: blur(0.7px) saturate(0.96) contrast(0.98);
  mix-blend-mode: var(--card-photo-blend);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.accordion-card__copy {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 24px;
  right: 24px;
  max-height: calc(100% - 68px);
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 21.8px;
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  transform: translate3d(0, 118px, 0);
  will-change: transform, opacity;
}

.accordion-card__screen {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  filter: saturate(1.02) contrast(1.02);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.accordion-card--gray {
  --card-base: #1b2026;
  --card-texture:
    linear-gradient(180deg, transparent 18%, rgba(255,255,255,0.05) 62%, transparent 100%),
    radial-gradient(ellipse at 61% 68%, rgba(255,255,255,0.22), transparent 11%),
    radial-gradient(ellipse at 72% 61%, rgba(255,255,255,0.17), transparent 10%),
    linear-gradient(90deg, transparent 0 57%, rgba(255,255,255,0.12) 58% 61%, transparent 62%),
    linear-gradient(0deg, transparent 0 69%, rgba(255,255,255,0.12) 70% 73%, transparent 74%);
  --card-texture-opacity: 0.08;
  --card-texture-position: center bottom;
  --card-texture-size: 100% 100%;
}

.accordion-card--pink {
  --card-base: #f4a7c7;
  --card-texture:
    radial-gradient(ellipse at 69% 70%, rgba(255,255,255,0.22), transparent 17%),
    radial-gradient(ellipse at 46% 73%, rgba(255,255,255,0.18), transparent 15%),
    linear-gradient(90deg, transparent 0 46%, rgba(255,255,255,0.16) 47% 50%, transparent 51%),
    radial-gradient(ellipse at 61% 88%, rgba(65,24,42,0.28), transparent 28%),
    url("./assets/smoke-magenta.jpeg");
  --card-texture-opacity: 0.08;
  --card-texture-position: center bottom;
  --card-texture-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, cover;
}

.accordion-card--orange {
  --card-base: #ff5a00;
  --card-texture:
    radial-gradient(ellipse at 62% 71%, rgba(255,255,255,0.24), transparent 14%),
    radial-gradient(ellipse at 47% 76%, rgba(255,255,255,0.17), transparent 12%),
    linear-gradient(90deg, transparent 0 51%, rgba(255,255,255,0.16) 52% 54%, transparent 55%),
    radial-gradient(ellipse at 54% 88%, rgba(77,24,0,0.34), transparent 28%),
    url("./assets/smoke-ambient.jpeg");
  --card-texture-opacity: 0.08;
  --card-texture-position: center bottom;
  --card-texture-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, cover;
}

.accordion-card--navy {
  --card-base: #07152a;
  --card-photo-blend: normal;
  --card-photo-opacity: 0.9;
  --card-texture:
    linear-gradient(180deg, transparent 16%, rgba(255,255,255,0.04) 52%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,0.08) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(0,239,255,0.055) 35px 36px),
    radial-gradient(ellipse at 54% 76%, rgba(27,89,150,0.34), transparent 31%),
    url("./assets/smoke-cyan-magenta.jpeg");
  --card-texture-opacity: 0.08;
  --card-texture-position: center bottom;
  --card-texture-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, cover;
}

.scroll-meter {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 28px;
  width: min(320px, calc(100vw - 44px));
  height: 2px;
  transform: translateX(-50%);
  overflow: hidden;
  background: rgba(255,255,255,0.12);
}

.scroll-meter span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.tile-detail {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: clamp(10px, 1.65vw, 18px);
  background: #000;
  background-color: #000;
}

.tile-detail__surface {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(248, 251, 255, 0.13);
  border-radius: clamp(26px, 4vw, 48px);
  background: var(--card-base);
  background-clip: padding-box;
  box-shadow: 0 24px 84px rgba(0, 0, 0, 0.52);
  isolation: isolate;
}

.tile-detail__surface::before,
.tile-detail__surface::after {
  display: none;
}

.tile-detail__nav {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 42px 18px 42px;
  align-items: center;
  justify-items: center;
  gap: 20px;
  transform: translateX(-50%);
}

.tile-detail__arrow,
.tile-detail__home {
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(248, 251, 255, 0.82);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tile-detail__arrow {
  width: 42px;
  height: 42px;
}

.tile-detail__arrow span {
  width: 11px;
  height: 11px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  filter: drop-shadow(0 0 8px rgba(0, 239, 255, 0.12));
}

.tile-detail__arrow--prev span {
  transform: rotate(-135deg);
}

.tile-detail__arrow--next span {
  transform: rotate(45deg);
}

.tile-detail__home {
  width: 18px;
  height: 18px;
  opacity: 0.66;
}

.tile-detail__home::before,
.tile-detail__home::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate3d(-50%, -50%, 0);
}

.tile-detail__home::before {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(248, 251, 255, 0.68);
  animation: clickPulseCenter 1.4s ease-out infinite;
}

.tile-detail__home::after {
  width: 3px;
  height: 3px;
  background: rgba(248, 251, 255, 0.78);
  animation: clickDotCenter 1.4s ease-out infinite;
}

.tile-exit-cover {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 110ms ease;
}

.tile-page--exiting .tile-exit-cover {
  opacity: 1;
}

@keyframes clickPulseCenter {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.66);
  }

  18% {
    opacity: 0.74;
  }

  72%,
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(1.45);
  }
}

@keyframes clickDotCenter {
  0%,
  100% {
    opacity: 0.38;
  }

  28%,
  52% {
    opacity: 0.88;
  }
}

@media (max-width: 760px) {
  .scroll-hero {
    height: 1228vh;
  }

  .sticky-stage {
    min-height: 620px;
  }

  .stage-copy h1 {
    font-size: clamp(34px, 10.8vw, 48px);
    line-height: 1;
  }

  .wordmark {
    width: 118vw;
  }

  .second-scroll-scene {
    padding: 22px;
  }

  .second-scroll-stage {
    width: min(92vw, 640px);
  }

  .tile-detail {
    padding: 10px;
  }

  .tile-detail__surface {
    border-radius: 28px;
  }

  .tile-detail__nav {
    bottom: calc(22px + env(safe-area-inset-bottom));
    gap: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .scroll-hero {
    height: 100vh;
  }

  .sticky-stage {
    position: relative;
  }

  .stage-copy,
  .second-scroll-scene,
  .card-accordion,
  .direction-cue,
  .scroll-meter {
    display: none;
  }

  .wordmark {
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(0,239,255,0.18));
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  .tile-detail__home::before,
  .tile-detail__home::after {
    animation: none;
  }
}
