:root {
  --paper: #f6f0e8;
  --muted: rgba(246, 240, 232, 0.72);
  --pink: #f5008a;
  --pink-dark: #9b005a;
  --ink: #030205;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); }

body {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.landing {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 72px) 18px;
  isolation: isolate;
  overflow: hidden;
}

.festival-loop {
  position: fixed;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.06) brightness(.74);
  transform: scale(1.02);
}

.wash {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.30) 41%, rgba(0,0,0,.82) 100%),
    radial-gradient(circle at 50% 42%, rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 34%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.08) 34%, rgba(0,0,0,.08) 66%, rgba(0,0,0,.74));
}

.film {
  position: fixed;
  inset: -60px;
  z-index: -3;
  pointer-events: none;
  opacity: .21;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.09) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.07) 0 1px, transparent 2px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  background-size: 118px 118px, 171px 171px, 100% 4px;
  animation: filmMove 9s linear infinite;
}

.hero {
  width: min(100%, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 3vw, 28px);
  transform: translateY(-1.5vh);
}

.eyebrow {
  margin: 0;
  padding: 9px 16px 8px;
  border: 1px solid rgba(246, 240, 232, .22);
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  color: rgba(246,240,232,.78);
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: clamp(.64rem, 1.45vw, .76rem);
  font-weight: 800;
}

.logo {
  display: block;
  width: min(92vw, 810px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 22px 40px rgba(0,0,0,.70))
    drop-shadow(0 2px 0 rgba(0,0,0,.62));
  transform: rotate(-.2deg);
}

.brand-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px 11px;
  border: 1px solid rgba(246, 240, 232, .21);
  border-radius: 999px;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
}

.scratch-loader {
  position: relative;
  width: 78px;
  height: 28px;
  flex: 0 0 78px;
  overflow: hidden;
}

.scratch {
  position: absolute;
  left: 0;
  height: 7px;
  border-radius: 2px;
  transform-origin: left center;
  clip-path: polygon(0 24%, 8% 0, 55% 10%, 73% 0, 100% 22%, 96% 78%, 66% 66%, 42% 100%, 14% 79%, 0 100%);
  animation: scratchSwipe 1.42s cubic-bezier(.8,0,.2,1) infinite;
}

.scratch-white { background: var(--paper); }
.scratch-pink { background: var(--pink); }
.scratch-one { top: 2px; width: 64px; --r: -6deg; }
.scratch-two { top: 11px; width: 76px; height: 9px; --r: -2deg; animation-delay: .13s; }
.scratch-three { top: 22px; width: 58px; --r: 5deg; animation-delay: .26s; }

.loading-text {
  color: rgba(246,240,232,.86);
  font-size: clamp(.76rem, 2vw, .90rem);
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dots::after { content: ""; animation: dots 1.15s steps(4, end) infinite; }

.place-date {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.place-date span,
.place-date b {
  display: grid;
  place-items: center;
  min-height: clamp(62px, 9vw, 92px);
  padding: clamp(14px, 2.4vw, 20px) clamp(20px, 4.4vw, 38px);
  border: 1px solid rgba(246,240,232,.20);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 62px rgba(0,0,0,.28);
}

.place-date span {
  font-size: clamp(1.9rem, 6.3vw, 4.2rem);
  line-height: .92;
}

.place-date b {
  color: var(--paper);
  font-size: clamp(1.05rem, 3.2vw, 2.05rem);
  line-height: 1;
  background:
    linear-gradient(180deg, rgba(245,0,138,.18), rgba(255,255,255,.026)),
    rgba(0,0,0,.36);
}

.soon {
  position: relative;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(.78rem, 2vw, .98rem);
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.soon::before,
.soon::after {
  content: "";
  display: inline-block;
  width: clamp(26px, 6vw, 76px);
  height: 3px;
  margin: 0 14px 4px;
  border-radius: 999px;
  background: var(--pink);
}

@keyframes scratchSwipe {
  0% { transform: translateX(-8px) rotate(var(--r)) scaleX(.12); opacity: 0; }
  18% { opacity: 1; }
  48% { transform: translateX(0) rotate(var(--r)) scaleX(1); opacity: 1; }
  74% { transform: translateX(9px) rotate(var(--r)) scaleX(.38); opacity: .48; }
  100% { transform: translateX(22px) rotate(var(--r)) scaleX(.08); opacity: 0; }
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

@keyframes filmMove { to { transform: translate3d(38px, 25px, 0); } }

@media (max-width: 720px) {
  .landing { padding: 34px 16px; }
  .hero { gap: 18px; }
  .logo { width: min(96vw, 650px); }
  .brand-loading { gap: 10px; padding: 9px 13px 10px; }
  .scratch-loader { width: 64px; flex-basis: 64px; }
  .loading-text { white-space: normal; line-height: 1.22; letter-spacing: .12em; }
  .place-date { width: min(100%, 430px); }
  .place-date span, .place-date b { width: 100%; border-radius: 16px; }
  .soon::before, .soon::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .festival-loop { display: none; }
  .landing { background: url("assets/festival-loop-poster.jpg") center / cover no-repeat; }
}
