/* Spectrum Studios — asset-based layout */

@font-face {
  font-family: 'Monument Extended';
  src: url('../fonts/MonumentExtended-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --black: #111111;
  --white: #ffffff;
  --orange: #ff3d04;
  --tape-angle: 5.5deg;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100dvh;
  background: var(--orange);
  overflow: hidden;
}

/* Rustic scratch overlay — top layer over title, star, tape text */
.rustic-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: url('../assets/rustic-overlay.png') center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* ── Hero: main title + star assets ── */
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding-top: clamp(1.25rem, 4.5vh, 3rem);
  pointer-events: none;
}

.hero__title-wrap {
  position: relative;
  width: min(94vw, 1180px);
}

.main-title {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.star {
  position: absolute;
  z-index: 2;
  width: clamp(7.5rem, 28.5vw, 20.25rem);
  height: auto;
  left: 20%;
  top: 54%;
  transform: translate(-50%, 0) rotate(-5deg);
  filter: drop-shadow(3px 5px 14px rgba(0, 0, 0, 0.35));
  mix-blend-mode: screen;
  animation: star-spin 8s linear infinite;
  pointer-events: none;
}

@keyframes star-spin {
  from {
    transform: translate(-50%, 0) rotate(-5deg);
  }
  to {
    transform: translate(-50%, 0) rotate(355deg);
  }
}

/* ── Animated COMING SOON tape ── */
.tape-wrap {
  position: absolute;
  z-index: 5;
  left: -10%;
  right: -10%;
  top: calc(58% + 120px);
  transform: translateY(-50%) rotate(var(--tape-angle));
  transform-origin: center center;
  overflow: hidden;
  pointer-events: none;
}

.tape {
  position: relative;
  isolation: isolate;
  padding: clamp(1rem, 2.4vh, 1.45rem) 0;
  overflow: hidden;
  background-color: #121010;
  background-image:
    linear-gradient(
      180deg,
      rgba(42, 38, 34, 0.55) 0%,
      #0c0b0a 12%,
      #181614 38%,
      #0a0908 62%,
      #151311 88%,
      rgba(38, 34, 30, 0.5) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 8%,
      transparent 92%,
      rgba(0, 0, 0, 0.35) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    0 3px 14px rgba(0, 0, 0, 0.35);
}

.tape::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
}

.tape::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(92deg, transparent 40%, rgba(255, 255, 255, 0.07) 41%, transparent 42%),
    linear-gradient(88deg, transparent 68%, rgba(255, 255, 255, 0.05) 69%, transparent 70%),
    linear-gradient(95deg, transparent 22%, rgba(255, 255, 255, 0.06) 23%, transparent 24%),
    linear-gradient(105deg, transparent 82%, rgba(255, 255, 255, 0.04) 83%, transparent 84%);
}

.tape-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  animation: tape-scroll 22s linear infinite;
}

.tape-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1rem);
  font-family: 'Monument Extended', 'Encode Sans', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: clamp(1.35rem, 4vw, 2.15rem);
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.tape-loader {
  flex-shrink: 0;
  width: clamp(1.15rem, 2.8vw, 1.65rem);
  height: clamp(1.15rem, 2.8vw, 1.65rem);
  display: block;
  animation: loader-spin 0.85s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tape-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Instagram pill — centered */
.ig-link {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: calc(9.5% + 0px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: clamp(28px, 4.5vh, 36px);
  padding: 0.6em 1.5em 0.6em 1.35em;
  font-family: 'Encode Sans', sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: 'wdth' 100;
  font-size: clamp(0.55rem, 1.4vw, 0.75rem);
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ig-icon {
  flex-shrink: 0;
  width: clamp(12px, 1.5vw, 16px);
  height: clamp(12px, 1.5vw, 16px);
  display: block;
}

.ig-link:hover,
.ig-link:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
  outline: none;
}

.site-footer {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 1rem 0.85rem;
  text-align: center;
  pointer-events: none;
}

.site-footer p {
  font-family: 'Encode Sans', sans-serif;
  font-size: clamp(0.45rem, 1.1vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--black);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .tape-track,
  .tape-loader,
  .star {
    animation: none;
  }

  .star {
    transform: translate(-50%, 0) rotate(-5deg);
  }
}

@media (max-aspect-ratio: 3/4) {
  .hero__title-wrap {
    width: 98vw;
  }

  .star {
    width: clamp(6rem, 33vw, 11.25rem);
    left: 18%;
    top: 52%;
  }

  .tape-wrap {
    top: calc(56% + 120px);
  }

  .ig-link {
    bottom: calc(11% + 0px);
    font-size: clamp(0.45rem, 2.9vw, 0.62rem);
    letter-spacing: 0.12em;
  }
}

@media (min-aspect-ratio: 21/9) {
  .tape-wrap {
    top: calc(57% + 120px);
  }

  .ig-link {
    bottom: calc(10% + 0px);
  }
}
