* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1a1410;
  color: #f7f0e6;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  isolation: isolate;
}

.photo {
  position: absolute;
  inset: 0;
  background-image: url("./assets/RC_NH_nhow_london_102.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter:
    saturate(2.05)
    contrast(1.32)
    brightness(0.9)
    hue-rotate(-14deg);
  transform: scale(1.03);
  animation: drift 18s ease-in-out infinite alternate;
}

.pop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 78%, rgba(255, 20, 147, 0.55) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 18%, rgba(0, 245, 212, 0.42) 0%, transparent 48%),
    radial-gradient(ellipse at 72% 62%, rgba(123, 44, 255, 0.38) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 8%, rgba(255, 211, 102, 0.22) 0%, transparent 40%),
    linear-gradient(125deg, rgba(255, 0, 128, 0.28), rgba(0, 180, 255, 0.2));
  mix-blend-mode: overlay;
  animation: neon-shift 10s ease-in-out infinite alternate;
}

.mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      195deg,
      rgba(40, 0, 50, 0.18) 0%,
      rgba(12, 4, 28, 0.28) 42%,
      rgba(4, 0, 18, 0.72) 100%
    ),
    radial-gradient(
      ellipse at 78% 12%,
      rgba(0, 245, 212, 0.16) 0%,
      transparent 48%
    );
  mix-blend-mode: multiply;
}

.emblem {
  position: fixed;
  z-index: 1;
  top: clamp(4.5rem, 10vh, 6.5rem);
  right: clamp(1.5rem, 5vw, 3.5rem);
  width: min(84vw, 40rem);
  aspect-ratio: 100 / 90;
  pointer-events: none;
}

.mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.heart-svg {
  translate: var(--fx, 0px) var(--fy, 0px);
  transform: rotate(-22deg);
  filter: drop-shadow(0 6px 14px rgba(255, 70, 120, 0.4));
  animation: heart-float 7s ease-in-out infinite alternate;
}

.bottle-svg {
  translate: var(--fx, 0px) calc(100px + var(--fy, 0px));
  transform: rotate(12deg);
  filter: drop-shadow(0 6px 14px rgba(6, 214, 160, 0.4));
  animation: bottle-float 8s ease-in-out infinite alternate;
}

.plane-svg {
  translate: var(--fx, 0px) var(--fy, 0px);
  transform: rotate(16deg);
  filter: drop-shadow(0 6px 14px rgba(34, 211, 238, 0.45));
  animation: plane-float 9s ease-in-out infinite alternate;
}

.mark-outline path {
  stroke-linejoin: round;
  stroke-linecap: round;
}

main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(1.75rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
}

@property --c1 {
  syntax: "<color>";
  inherits: true;
  initial-value: #ff4d8a;
}

@property --c2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #e0aaff;
}

@property --c3 {
  syntax: "<color>";
  inherits: true;
  initial-value: #5ce1ff;
}

@property --c4 {
  syntax: "<color>";
  inherits: true;
  initial-value: #fff6c2;
}

.quote {
  max-width: 16ch;
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  font-weight: 800;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  --c1: #ff4d8a;
  --c2: #e0aaff;
  --c3: #5ce1ff;
  --c4: #fff6c2;
  animation:
    rise 1.25s cubic-bezier(0.22, 1, 0.36, 1) both,
    quote-mesh 8s ease-in-out infinite;
}

.quote-fill,
.highlight-fill {
  background-image: linear-gradient(
    115deg,
    var(--c1) 0%,
    var(--c4) 22%,
    var(--c2) 48%,
    var(--c3) 74%,
    var(--c1) 100%
  );
  background-size: 240% 240%;
  background-position: 0% 40%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: quote-mesh 8s ease-in-out infinite;
}

.highlight {
  font-family: "BBH Bartle", "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  background-color: #000;
  padding: 0.06em 0.22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
    filter: blur(4px) drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45));
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0) drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45));
  }
}

@keyframes quote-mesh {
  0% {
    --c1: #ff4d8a;
    --c2: #e0aaff;
    --c3: #5ce1ff;
    --c4: #fff6c2;
    background-position: 0% 40%;
  }
  33% {
    --c1: #ffb347;
    --c2: #ff4d8a;
    --c3: #e0aaff;
    --c4: #00f5d4;
    background-position: 100% 60%;
  }
  66% {
    --c1: #00f5d4;
    --c2: #5ce1ff;
    --c3: #fff6c2;
    --c4: #ff4d6d;
    background-position: 40% 100%;
  }
  100% {
    --c1: #ff4d8a;
    --c2: #e0aaff;
    --c3: #5ce1ff;
    --c4: #fff6c2;
    background-position: 0% 40%;
  }
}

@keyframes drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.2%, -0.6%, 0);
  }
}

@keyframes neon-shift {
  from {
    filter: hue-rotate(0deg) saturate(1);
    opacity: 0.92;
  }
  to {
    filter: hue-rotate(18deg) saturate(1.15);
    opacity: 1;
  }
}

@keyframes heart-float {
  from {
    transform: rotate(-22deg) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(-18deg) translate3d(-2%, 3%, 0);
  }
}

@keyframes bottle-float {
  from {
    transform: rotate(12deg) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(16deg) translate3d(2%, -2%, 0);
  }
}

@keyframes plane-float {
  from {
    transform: rotate(16deg) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(22deg) translate3d(-3%, -4%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote,
  .quote-fill,
  .highlight-fill {
    animation: none;
    background-position: 30% 50%;
  }

  .photo,
  .pop,
  .heart-svg,
  .bottle-svg,
  .plane-svg {
    animation: none;
  }
}
