/* ============================================================
   PHILLY BLUNT - XOYO, London - presale signup
   Identity: a red neon graffiti sign glowing on a dark brick wall.
   Palette sampled from the artwork's neon tube + wall.
   Display: Archivo Black (echoes the poster's heavy bill type).
   Body: Barlow. Signature: the neon glow (red bloom + power-on flicker).
   ============================================================ */

:root {
  --neon:      #FF2323;   /* glowing tube red */
  --neon-hot:  #FF5A4D;   /* highlight / hover */
  --ember:     #E40712;   /* deeper red */
  --blood:     #8E0006;   /* darkest red, gradient floor */
  --ink:       #0A0606;   /* warm near-black page */
  --char:      #161010;   /* panel base */
  --char-2:    #211817;   /* raised surface */
  --line:      #3A2825;   /* warm hairline */
  --cream:     #F7ECEA;   /* warm off-white text */
  --ash:       #A89A97;   /* muted warm grey */
  --danger:    #ff6b5e;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body:    "Barlow", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --glow: 0 0 22px rgba(255,35,35,.42), 0 0 60px rgba(228,7,18,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--cream);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- blurred brick + neon background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--ink);
  background-image: url("/assets/images/bg-mobile.jpg");
  background-image: image-set(
    url("/assets/images/bg-mobile.webp") type("image/webp"),
    url("/assets/images/bg-mobile.jpg")  type("image/jpeg"));
  background-position: center;
  background-size: cover;
  transform: scale(1.06); /* hide blur-edge bleed */
}
@media (min-width: 900px) {
  .bg {
    background-image: url("/assets/images/bg-desktop.jpg");
    background-image: image-set(
      url("/assets/images/bg-desktop.webp") type("image/webp"),
      url("/assets/images/bg-desktop.jpg")  type("image/jpeg"));
  }
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(228,7,18,.16), transparent 58%),
    linear-gradient(180deg, rgba(8,4,4,.62) 0%, rgba(8,4,4,.82) 52%, rgba(6,3,3,.95) 100%);
}

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   STAGE LAYOUT
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 56px) clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
}
.stage__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

/* ============================================================
   SHOWCASE - neon wordmark + line-up bill
   ============================================================ */
.showcase {
  justify-self: center;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.wordmark {
  margin: 0 auto;
  width: 100%;
}
.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  /* the cutout already carries its glow; this just lifts it off the wall */
  filter: drop-shadow(0 0 26px rgba(255,30,30,.30));
  animation: neonOn 1.5s steps(1, end) 1 both;
}
@keyframes neonOn {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  9%   { opacity: .25; }
  13%  { opacity: 1; }
  17%  { opacity: .45; }
  21%  { opacity: 1; }
  26%  { opacity: .7; }
  30%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ---------- the line-up bill ---------- */
.bill { margin: clamp(10px, 2vw, 20px) auto 0; }
.bill__head {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: .01em;
  font-size: clamp(1.25rem, 4.4vw, 1.9rem);
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.bill__head li { margin: 0; }
.bill__support {
  margin: 12px 0 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(.85rem, 2.4vw, 1.05rem);
  color: var(--neon-hot);
  text-shadow: 0 0 14px rgba(255,40,40,.4);
}
.bill__meta {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
}
.bill__meta .bill__date { color: var(--neon); text-shadow: 0 0 14px rgba(255,35,35,.45); }
.bill__meta span { position: relative; }
.bill__venue::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-50%);
}

/* ============================================================
   SIGNUP PANEL
   ============================================================ */
.panel {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(33,24,23,.95), rgba(12,8,8,.97));
  border: 1px solid var(--line);
  border-top: 3px solid var(--neon);
  box-shadow:
    0 -1px 26px -4px rgba(255,35,35,.5),   /* neon bleed off the top edge */
    0 30px 64px -28px rgba(0,0,0,.85);
  animation: panelIn .8s .1s cubic-bezier(.16,.84,.36,1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.panel__inner { padding: clamp(26px, 3.4vw, 40px); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow span {
  flex: 0 0 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon));
}
.eyebrow span:last-child { background: linear-gradient(90deg, var(--neon), transparent); }

/* ---------- titles ---------- */
.panel__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.0;
  font-size: clamp(2.1rem, 5.6vw, 3rem);
  margin: 0 0 14px;
  color: var(--cream);
  text-wrap: balance;
}
.panel__title em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 20px rgba(255,35,35,.5);
}

.panel__lede {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ash);
  max-width: 42ch;
}
.panel__lede strong { color: var(--cream); font-weight: 600; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cream);
  background: #0e0a0a;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: #6f5d5b; }
.form__input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255,35,35,.18);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,107,94,.16);
}

/* ---------- honeypot (spam trap) ----------
   display:none, NOT left:-9999px: off-screen honeypots get autofilled by
   Chrome/Edge and silently block real signups. display:none is skipped by
   autofill and by screen readers. */
.hp-field { display: none; }

/* ---------- consent ---------- */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 22px;
  font-size: 13px;
  color: var(--ash);
  line-height: 1.55;
}
.form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--neon);
}
.form__consent a { color: var(--neon-hot); text-underline-offset: 2px; }

/* ---------- submit ---------- */
.btn-ticket {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, var(--neon), var(--blood));
  color: var(--cream);
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 10px 30px -10px rgba(255,35,35,.65), inset 0 0 0 1px rgba(255,120,110,.3);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-ticket .btn__face {
  display: block;
  padding: 16px 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-ticket:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 16px 38px -10px rgba(255,35,35,.8), inset 0 0 0 1px rgba(255,120,110,.4); }
.btn-ticket:active { transform: translateY(0); }
.btn-ticket:disabled { filter: grayscale(.4) brightness(.8); cursor: default; transform: none; }

/* ---------- success state ---------- */
.panel__success { text-align: left; }
.panel__success .panel__lede { margin-bottom: 14px; }
.panel__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ash);
  padding: 12px 14px;
  background: rgba(228,7,18,.08);
  border-left: 2px solid var(--ember);
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   intl-tel-input (v25) - dark theme + searchable dropdown
   ============================================================ */
.iti { width: 100%; display: block; }
.iti__selected-country {
  background: #0c0808;
  border-radius: 4px 0 0 4px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: #1a1211; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--cream); }
.iti__dropdown-content {
  background: var(--char-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.88);
  color: var(--cream);
}
.iti__search-input {
  background: #0e0a0a;
  color: var(--cream);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}
.iti__search-input::placeholder { color: #6f5d5b; }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--neon); }
.iti__search-icon { display: none; }          /* drop magnifier; reclaim its space */
.iti__search-input { padding-left: 14px; }
.iti__country-list { background: var(--char-2); }
.iti__country { color: var(--cream); }
.iti__country:hover,
.iti__country.iti__highlight { background: #3a201f; }
.iti__dial-code { color: var(--ash); }
.iti__country-name { color: var(--cream); }
/* dropdown must sit above the panel */
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }

/* ============================================================
   FOOTER (full width)
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(6,3,3,.66);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--ash); letter-spacing: .02em; }
.foot__legal a { color: var(--ash); text-decoration: none; }
.foot__legal a:hover { color: var(--neon-hot); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ash);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--neon); color: var(--cream); }
.site-built img { display: block; opacity: .9; }

/* ============================================================
   RESPONSIVE - two columns on wider screens
   ============================================================ */
@media (min-width: 900px) {
  .stage__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
  }
  .showcase { justify-self: end; max-width: 560px; }
  .panel    { justify-self: start; }
}

@media (max-width: 899px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.iti__selected-country:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .wordmark img, .panel { animation: none; }
  * { scroll-behavior: auto; }
}
