:root {
  --background-color: #020202;
  --text-color: #F4F1EA;
  --icon-color: #F4F1EA;
  --font-main: "Marcellus", "Cormorant Garamond", "Times New Roman", serif;
  --font-intro: "Cormorant Garamond", "Marcellus", serif;
  --name-size: clamp(4.7rem, 14.535vw, 12.92rem);
  --name-spacing: 0.165em;
  --composition-x: -2px;
  --composition-y: 0px;
  --composition-width: 420px;
  --title-anchor: 43vh;
  --title-offset: clamp(2.12rem, 6.54vw, 5.82rem);
  --title-view-gap: clamp(45px, 7vh, 60px);
  --icon-size: 18px;
  --icon-optical-x: 0px;
  --enter-fade: 900ms;
  --cinema-fade: 1200ms;
  --social-fade: 300ms;
  --title-x: 0px;
  --title-y: 0px;
  --video-x: 0px;
  --video-y: 0px;
  --video-zoom: 1;
  --cursor-x: -100px;
  --cursor-y: -100px;
  --cursor-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background-color);
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text-color);
  background: var(--background-color);
  font-family: var(--font-main);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  letter-spacing: 0;
}

body,
.name-mark,
.intro p {
  user-select: none;
}

a {
  color: inherit;
  cursor: none;
  -webkit-tap-highlight-color: transparent;
}

.background-video,
.video-soften,
.overlay-top,
.overlay-bottom,
.overlay-vignette,
.film-grain {
  position: fixed;
  inset: 0;
}

.background-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: contrast(1.14) saturate(0.78) brightness(0.88);
  transform: translate3d(var(--video-x), var(--video-y), 0) scale(var(--video-zoom));
  transition: opacity var(--cinema-fade) ease;
  pointer-events: auto;
  will-change: transform, opacity;
}

body.is-entered .background-video.is-loaded {
  opacity: 0.88;
  animation: videoGrade 18s ease-in-out infinite;
}

.video-soften {
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(9px);
  transition: backdrop-filter var(--cinema-fade) ease;
}

body.is-entered .video-soften {
  backdrop-filter: blur(0.55px);
}

.overlay-top {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}

.overlay-bottom {
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
}

.overlay-vignette {
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.025) 0%, rgba(0, 0, 0, 0.25) 58%, rgba(0, 0, 0, 0.72) 100%);
}

.film-grain {
  z-index: 5;
  pointer-events: none;
  opacity: 0.018;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.74' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(2, end) infinite;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.92);
  box-shadow:
    0 0 0 7px rgba(244, 241, 234, 0.035),
    0 0 18px rgba(244, 241, 234, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) scale(var(--cursor-scale));
  transition: opacity 260ms ease;
  will-change: transform, opacity;
}

body.cursor-ready .cursor {
  opacity: 1;
}

body.cursor-hover .cursor {
  --cursor-scale: 1.65;
}

body.cursor-down .cursor {
  --cursor-scale: 0.72;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 2rem;
  cursor: none;
  background: #000;
  transition: opacity var(--enter-fade) ease, filter var(--enter-fade) ease, visibility var(--enter-fade) ease;
}

.intro p {
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-intro);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.72;
}

.intro.is-hidden {
  opacity: 0;
  filter: blur(8px);
  visibility: hidden;
  pointer-events: none;
}

.main-page {
  position: relative;
  z-index: 8;
  min-height: 100vh;
  display: grid;
  place-items: center;
  opacity: 1;
  pointer-events: none;
}

.main-page.is-visible {
  pointer-events: auto;
}

.composition {
  width: min(var(--composition-width), calc(100vw - 48px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  transform: translate3d(
    calc(var(--composition-x) + var(--title-x)),
    calc(var(--composition-y) + var(--title-y)),
    0
  );
  will-change: transform;
}

.name-mark {
  margin: calc(var(--title-anchor) - var(--title-offset)) 0 0;
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: var(--name-size);
  font-kerning: normal;
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: var(--name-spacing);
  line-height: 0.9;
  opacity: 0;
  text-rendering: optimizeLegibility;
  text-shadow:
    0 0 8px rgba(244, 241, 234, 0.095),
    0 0 20px rgba(250, 235, 208, 0.052),
    0 0 48px rgba(238, 213, 176, 0.028),
    0 10px 36px rgba(0, 0, 0, 0.72);
  transition: opacity 900ms ease, text-shadow 600ms ease;
  will-change: opacity;
}

body.is-entered .name-mark {
  animation:
    titleFloat 12s ease-in-out 900ms infinite,
    titleAura 20s ease-in-out 15s infinite;
}

body.title-ready .name-mark {
  opacity: 1;
}

body.title-ready.is-idle .name-mark {
  opacity: 0.9;
}

body.title-flare .name-mark {
  text-shadow:
    0 0 12px rgba(244, 241, 234, 0.16),
    0 0 28px rgba(250, 235, 208, 0.08),
    0 0 64px rgba(238, 213, 176, 0.04),
    0 10px 36px rgba(0, 0, 0, 0.72);
}

body.music-pulse .name-mark {
  text-shadow:
    0 0 10px rgba(244, 241, 234, 0.13),
    0 0 24px rgba(250, 235, 208, 0.065),
    0 0 54px rgba(238, 213, 176, 0.032),
    0 10px 36px rgba(0, 0, 0, 0.72);
}

.ritual-line {
  position: fixed;
  left: 50%;
  top: calc(50% + 145px);
  z-index: 9;
  width: min(420px, calc(100vw - 48px));
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-intro);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-rendering: optimizeLegibility;
  text-align: center;
  transform: translate3d(calc(-50% + var(--composition-x)), 4px, 0);
  transition: opacity 1800ms ease, transform 1800ms ease;
  will-change: opacity, transform;
}

body.ritual-active .ritual-line {
  opacity: 0.68;
  transform: translate3d(calc(-50% + var(--composition-x)), 0, 0);
}

.socials {
  display: grid;
  place-items: center;
  margin-top: auto;
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--social-fade) ease, transform var(--social-fade) ease;
  will-change: opacity, transform;
}

.view-count {
  min-height: 1em;
  margin: var(--title-view-gap) 0 0;
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: clamp(0.94rem, 1.05vw, 1.06rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.035em;
  opacity: 0;
  text-rendering: optimizeLegibility;
  text-shadow: 0 0 8px rgba(244, 241, 234, 0.045);
  transition: opacity 300ms ease;
  cursor: none;
  will-change: opacity;
}

body.title-ready .view-count:not([hidden]) {
  opacity: 0.7;
  transition-delay: 300ms;
}

.view-count.is-changing {
  opacity: 0.25;
  transition-delay: 0ms;
}

.view-count[hidden] {
  visibility: hidden;
}

.socials a {
  width: calc(var(--icon-size) + 18px);
  height: calc(var(--icon-size) + 18px);
  display: inline-grid;
  place-items: center;
  padding: 9px;
  color: var(--icon-color);
  opacity: 0.4;
  text-decoration: none;
  transform: scale(1);
  transition: opacity 250ms ease, transform 250ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  opacity: 1;
  transform: scale(1.05);
}

.socials svg {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  fill: currentColor;
  transform: translate3d(var(--icon-optical-x), 0, 0);
}

@keyframes titleFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -1.25px;
  }
}

@keyframes titleAura {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.035);
  }
}

@keyframes videoGrade {
  0%, 100% {
    filter: contrast(1.14) saturate(0.78) brightness(0.86);
  }
  50% {
    filter: contrast(1.14) saturate(0.78) brightness(0.9);
  }
}

@keyframes grainShift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1%, 1%, 0);
  }
}

@media (max-width: 600px) {
  :root {
    --name-size: clamp(3.8rem, 19.38vw, 6.46rem);
    --name-spacing: 0.115em;
    --composition-width: 340px;
    --title-anchor: 42vh;
    --title-offset: clamp(1.71rem, 8.72vw, 2.91rem);
    --title-view-gap: 45px;
    --icon-size: 18px;
  }

  .composition {
    padding-bottom: 52px;
  }
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
