/* ============================================================
   AMPLIFY - Lakota, Bristol - presale signup
   Flyposter skin sampled from the artwork: the acid-yellow
   pasted-poster wall IS the page; the signup panel is one more
   poster slapped on it in black. Display: Anton (the artwork's
   condensed woodtype caps). Labels: Barlow Condensed. Body: Barlow.
   ============================================================ */

:root {
  --acid:       #C8DE00;   /* wall yellow (sampled) */
  --acid-hi:    #D8F000;   /* brightest wall highlight */
  --acid-deep:  #9FB400;   /* poster-tile shadow yellow */
  --ink:        #0B0B08;   /* poster black */
  --ink-2:      #15150E;   /* input wells on the poster */
  --cream:      #F2F0E2;   /* text on black */
  --muted:      #B7B69D;
  --faint:      #7E7D66;
  --line:       rgba(242, 240, 226, 0.16);
  --danger:     #FF5340;

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --cond:    "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body:    "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
}

*, *::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(--acid);
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- the flyposted wall (the client's own artwork) ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--acid);
  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 top;
  background-size: cover;
  /* dulled per client note: keep the flypaper texture, drop the glare */
  filter: brightness(.86) saturate(.82);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 8, .1);
}
@media (min-width: 920px) {
  .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"));
    background-position: center;
  }
}

/* ============================================================
   STAGE - poster above panel (mobile), side by side (desktop)
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 44px) clamp(16px, 4vw, 40px) clamp(30px, 4vw, 56px);
  display: flex;
  align-items: center;
}
.stage__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.5vw, 52px);
  align-items: center;
}

/* ---------- the artwork poster ----------
   Printed flush on the same wall it was designed on: hard black
   keyline like the pasted tiles behind it, no soft shadows. */
.poster {
  justify-self: center;
  width: 100%;
  max-width: 540px;
  animation: posterIn .7s cubic-bezier(.16,.84,.36,1) both;
}
.poster img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  box-shadow: 10px 12px 0 -2px rgba(11, 11, 8, .28);
}
@keyframes posterIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SIGNUP PANEL - one more poster pasted on the wall, in black.
   Slight paste-up rotation, hard offset shadow, tape at the
   top corners. isolation + z-index keeps the tape (decorative,
   absolutely positioned) from ever covering the form controls.
   ============================================================ */
.panel {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  position: relative;
  isolation: isolate;
  background: var(--ink);
  transform: rotate(-.75deg);
  box-shadow:
    12px 14px 0 -3px rgba(11, 11, 8, .30),
    0 30px 60px -28px rgba(11, 11, 8, .55);
  animation: panelIn .7s .1s cubic-bezier(.16,.84,.36,1) both;
}
/* two strips of aged clear tape holding the poster up */
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 86px;
  height: 24px;
  background: rgba(240, 245, 190, .38);
  box-shadow: 0 1px 2px rgba(11, 11, 8, .18);
  z-index: 2;
  pointer-events: none;
}
.panel::before { left: -18px;  transform: rotate(-38deg); }
.panel::after  { right: -18px; transform: rotate(38deg); }
@keyframes panelIn {
  from { opacity: 0; transform: rotate(-.75deg) translateY(16px); }
  to   { opacity: 1; transform: rotate(-.75deg); }
}
.panel__inner {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 32px);
}

/* ---------- eyebrow: the artwork's "2ND OCT 26" date strip ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px 4px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--acid);
  transform: rotate(-1.2deg);
}

/* ---------- titles ---------- */
.panel__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: .96;
  font-size: clamp(2.4rem, 6.4vw, 3.3rem);
  margin: 0 0 14px;
  color: var(--cream);
  text-wrap: balance;
}
.panel__title em {
  font-style: normal;
  color: var(--acid-hi);
}

.panel__lede {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 48ch;
}
.panel__lede strong { color: var(--cream); font-weight: 600; }

/* ---------- on-sale strip rows: presale / general sale ---------- */
.onsale { margin: 0 0 16px; border-top: 1px solid var(--line); }
.onsale__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
}
.onsale__what {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acid-hi);
}
.onsale__when {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: right;
}

/* ============================================================
   COUNTDOWN - poster tiles: acid blocks, black woodtype digits
   ============================================================ */
.countdown { margin: 0 0 20px; }
.countdown__label {
  margin: 0 0 9px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__clock {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.cdseg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 7px;
  background: var(--acid);
  box-shadow: 3px 4px 0 -1px rgba(216, 240, 0, .22);
}
.cdseg:nth-child(odd) { transform: rotate(-.8deg); }
.cdseg:nth-child(even) { transform: rotate(.6deg); }
.cdseg b {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.05rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cdseg i {
  font-style: normal;
  font-family: var(--cond);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(11, 11, 8, .6);
}
.cdsep { display: none; }
.countdown__live {
  display: none;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--acid-hi);
  padding: 11px 16px;
  transform: rotate(-.8deg);
}
.countdown.is-live .countdown__clock,
.countdown.is-live .countdown__label { display: none; }
.countdown.is-live .countdown__live { display: inline-block; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cream);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: var(--faint); }
.form__input:focus {
  outline: none;
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(216, 240, 0, .16);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 83, 64, .15);
}
.form__err {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--danger);
}

/* ---------- 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(--muted);
  line-height: 1.55;
}
.form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--acid);
}
.form__consent a { color: var(--acid-hi); text-underline-offset: 2px; }

/* ---------- submit: an acid poster tile you can press ---------- */
.btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--acid);
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  transform: rotate(-.4deg);
  box-shadow: 5px 6px 0 -1px rgba(216, 240, 0, .25);
  transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.btn__face {
  display: block;
  padding: 15px 18px 13px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.btn:hover {
  background: var(--acid-hi);
  transform: rotate(-.4deg) translate(-2px, -2px);
  box-shadow: 7px 8px 0 -1px rgba(216, 240, 0, .3);
}
.btn:active { transform: rotate(-.4deg) translate(1px, 1px); box-shadow: 3px 4px 0 -1px rgba(216, 240, 0, .25); }
.btn:disabled { background: var(--faint); cursor: default; transform: rotate(-.4deg); }

/* ---------- signature strap: the poster line, verbatim ---------- */
.strap {
  margin: 20px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.strap span { color: var(--acid-deep); }

/* ---------- success state ---------- */
.panel__success .panel__lede { margin-bottom: 0; }
.panel__success .strap { margin-top: 24px; }

/* ============================================================
   intl-tel-input (v25) - black-poster theme + searchable dropdown
   ============================================================ */
.iti { width: 100%; display: block; }
.iti__selected-country {
  background: transparent;
  border-radius: 2px 0 0 2px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(242, 240, 226, .07); }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--muted); }
.iti__dropdown-content {
  background: var(--ink-2);
  border: 1px solid var(--acid);
  border-radius: 3px;
  box-shadow: 0 22px 46px -16px rgba(11, 11, 8, .8);
  color: var(--cream);
}
.iti__search-input {
  background: var(--ink);
  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: var(--faint); }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--acid); }
.iti__search-icon { display: none; }              /* remove magnifying-glass icon */
.iti__search-input { padding-left: 14px; }        /* reclaim the space it left */
.iti__country-list { background: var(--ink-2); }
.iti__country { color: var(--cream); }
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(216, 240, 0, .16); }
.iti__dial-code { color: var(--faint); font-family: var(--mono); font-size: 12.5px; }
.iti__country-name { color: var(--cream); }
/* the dropdown must sit above the panel and never overflow the viewport */
.iti--inline-dropdown .iti__dropdown-content {
  z-index: 50;
  width: 100%;
  min-width: 260px;
  max-width: min(88vw, 420px);
}

/* ============================================================
   FOOTER - full width (basslayerz layout), black base of the wall
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(11, 11, 8, .92);
  border-top: 3px solid var(--ink);
  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(--muted); letter-spacing: .02em; }
.foot__legal a { color: var(--muted); text-decoration: none; }
.foot__legal a:hover { color: var(--acid-hi); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--acid); color: var(--cream); }
.site-built img { display: block; }

/* ============================================================
   RESPONSIVE - two columns on wider screens
   ============================================================ */
@media (min-width: 920px) {
  .stage__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
  }
  /* 1080:1350 artwork - cap by viewport height so the whole
     poster sits inside the fold next to the panel */
  .poster { justify-self: end; max-width: min(500px, 66vh); }
  .panel  { justify-self: start; }
}

@media (max-width: 919px) {
  .panel { transform: rotate(-.4deg); }
  .panel::before, .panel::after { width: 64px; height: 18px; top: -8px; background: rgba(240, 245, 190, .3); }
  @keyframes panelIn {
    from { opacity: 0; transform: rotate(-.4deg) translateY(16px); }
    to   { opacity: 1; transform: rotate(-.4deg); }
  }
  .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(--acid-hi);
  outline-offset: 2px;
}

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