:root {
  --bg: #050706;
  --cream: #e6dfd2;
  --warm: #d7a13f;
  --warm-soft: rgba(215, 161, 63, 0.42);
  --green: #2d4737;
  --green-dark: #07110c;
  --glass: rgba(188, 226, 255, 0.09);
  --smoke-x: 39vw;
  --smoke-y: 65vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 14%, rgba(71, 107, 83, 0.3), transparent 34%),
    linear-gradient(135deg, var(--green-dark), #030504 72%);
  isolation: isolate;
}

.scene__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.03) contrast(1.07) brightness(0.94);
  transform: scale(1.01);
  transform-origin: center;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.scene__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 70% 49%, transparent 0 24%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.34), transparent 26%, transparent 72%, rgba(0,0,0,0.35)),
    linear-gradient(0deg, rgba(0,0,0,0.32), transparent 36%);
  mix-blend-mode: multiply;
}

.scene__glass {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.45;
  background:
    linear-gradient(115deg, transparent 0 40%, var(--glass) 41%, transparent 42% 100%),
    linear-gradient(115deg, transparent 0 58%, rgba(255,255,255,0.04) 59%, transparent 60% 100%);
  transform: translate3d(0, 0, 0);
  animation: glassDrift 9s ease-in-out infinite alternate;
}

.smoke {
  position: absolute;
  left: var(--smoke-x);
  top: var(--smoke-y);
  width: clamp(52px, 6vw, 92px);
  height: clamp(92px, 12vw, 170px);
  transform: translate(-50%, -100%);
  overflow: visible;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 0 7px rgba(230, 223, 210, 0.16));
}

.smoke__line {
  fill: none;
  stroke: rgba(230, 223, 210, 0.68);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 55 205;
  opacity: 0;
  animation: smokeRise 4.6s linear infinite;
}

.smoke__line--two {
  stroke-width: 4;
  animation-delay: 1.1s;
  opacity: 0;
}

.smoke__line--three {
  stroke-width: 3;
  animation-delay: 2.25s;
  opacity: 0;
}

.neon-sign {
  position: absolute;
  left: clamp(18px, 4vw, 72px);
  bottom: clamp(20px, 6vh, 92px);
  z-index: 7;
  width: min(520px, 45vw);
  min-width: 310px;
  transform: rotate(-1deg);
  color: var(--cream);
  pointer-events: none;
}

.neon-sign__frame {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px) clamp(18px, 2.6vw, 34px);
  border: 1px solid rgba(230, 223, 210, 0.35);
  border-left: 3px solid rgba(215, 161, 63, 0.75);
  background:
    linear-gradient(135deg, rgba(6, 11, 8, 0.78), rgba(10, 15, 12, 0.44)),
    radial-gradient(circle at 15% 50%, rgba(215, 161, 63, 0.13), transparent 55%);
  box-shadow:
    0 0 14px rgba(215, 161, 63, 0.22),
    0 0 36px rgba(215, 161, 63, 0.11),
    inset 0 0 22px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px) saturate(0.92);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  animation: signPulse 4.2s ease-in-out infinite;
}

.neon-sign__frame::before,
.neon-sign__frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(215, 161, 63, 0.42);
  clip-path: inherit;
  pointer-events: none;
}

.neon-sign__frame::after {
  inset: -1px;
  border-color: rgba(215, 161, 63, 0.15);
  filter: blur(8px);
  animation: neonFlicker 5.8s steps(1, end) infinite;
}

.neon-sign__kicker,
.neon-sign__sub,
.neon-sign__title {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(215, 161, 63, 0.45),
    0 0 16px rgba(215, 161, 63, 0.2);
}

.neon-sign__kicker {
  color: rgba(215, 161, 63, 0.9);
  font-size: clamp(0.66rem, 0.9vw, 0.88rem);
  margin-bottom: 0.45rem;
}

.neon-sign__title {
  color: rgba(255, 244, 219, 0.98);
  font-size: clamp(1.45rem, 3vw, 3.05rem);
  line-height: 0.96;
  font-weight: 900;
  text-shadow:
    0 0 2px rgba(255,255,255,0.8),
    0 0 10px rgba(215, 161, 63, 0.78),
    0 0 28px rgba(215, 161, 63, 0.38);
  animation: textBuzz 7.4s steps(1, end) infinite;
}

.neon-sign__sub {
  color: rgba(230, 223, 210, 0.82);
  font-size: clamp(0.63rem, 0.82vw, 0.8rem);
  margin-top: 0.68rem;
}

@keyframes smokeRise {
  0% {
    stroke-dashoffset: 235;
    opacity: 0;
    transform: translate3d(0, 15px, 0) scale(0.82);
  }
  15% {
    opacity: 0.35;
  }
  45% {
    opacity: 0.72;
  }
  78% {
    opacity: 0.18;
  }
  100% {
    stroke-dashoffset: -82;
    opacity: 0;
    transform: translate3d(7px, -34px, 0) scale(1.12);
  }
}

@keyframes signPulse {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(215, 161, 63, 0.18),
      0 0 32px rgba(215, 161, 63, 0.1),
      inset 0 0 22px rgba(0, 0, 0, 0.56);
  }
  50% {
    box-shadow:
      0 0 24px rgba(215, 161, 63, 0.38),
      0 0 54px rgba(215, 161, 63, 0.2),
      inset 0 0 26px rgba(215, 161, 63, 0.07);
  }
}

@keyframes neonFlicker {
  0%, 7%, 9%, 11%, 19%, 100% { opacity: 1; }
  8%, 10%, 20% { opacity: 0.28; }
}

@keyframes textBuzz {
  0%, 46%, 48%, 50%, 100% { opacity: 1; }
  47%, 49% { opacity: 0.78; }
}

@keyframes glassDrift {
  from { transform: translate3d(-1.2%, 0, 0); }
  to { transform: translate3d(1.2%, -0.8%, 0); }
}

@media (max-width: 780px) {
  .neon-sign {
    width: min(92vw, 480px);
    min-width: 0;
    left: 4vw;
    bottom: 4vh;
  }

  .scene__image {
    object-position: 61% center;
  }
}

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