/* ============================================================
   FORWARD MOTION - Birmingham - ticket signup
   Skin sampled from the artwork: teal sky, red-brick arches,
   dark asphalt, and a mirror monolith reflecting the city
   skyline at sunset. The signup panel IS the monolith: dark
   glass, slanted top edge, sunset-coral accent.
   Type: Martian Mono (the artwork's own date/location overlays
   are monospaced terminal text) over a system Helvetica body.
   ============================================================ */

:root {
  --sky:          #1B87AC;
  --sky-deep:     #0E5F80;
  --mirror:       #8FCDE9;
  --mirror-soft:  #B7DEF0;
  --sunset:       #F2907B;
  --sunset-deep:  #D96C55;
  --asphalt:      #17100B;
  --glass:        rgba(9, 30, 41, .66);
  --glass-edge:   rgba(255, 255, 255, .32);
  --white:        #F4F8FA;
  --muted:        #A9CBDC;
  --faint:        rgba(244, 248, 250, .55);
  --line:         rgba(244, 248, 250, .22);
  --danger:       #FFB4A6;

  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 640px;
}

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

html { -webkit-text-size-adjust: 100%; }

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

/* ---------- the artwork itself, full-bleed ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--sky);
  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;
}
@media (min-aspect-ratio: 5/6) {
  .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 - single centred column over the monolith, the same
   composition the client used on the previous city signups
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 4.5vh, 52px) clamp(16px, 4vw, 32px) clamp(30px, 5vh, 64px);
  display: flex;
  justify-content: center;
}
.stage__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- hero identity stack: the client's own overlays ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: heroIn .8s cubic-bezier(.16,.84,.36,1) both;
}
/* each picture spans the column and centres its image - image widths are
   percentages OF THE COLUMN, so nothing depends on intrinsic sizing */
.hero picture {
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero__logo {
  display: block;
  width: min(78%, 380px);
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(9, 30, 41, .35));
}
/* city + date as live text, set like the artwork's mono overlays */
.hero__city {
  margin: clamp(16px, 3vh, 26px) 0 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  letter-spacing: .42em;
  text-indent: .42em;          /* re-centres the tracked-out caps */
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(9, 30, 41, .35);
}
.hero__venue {
  display: block;
  width: min(22%, 96px);
  height: auto;
  margin-top: clamp(12px, 2.2vh, 20px);
  filter: drop-shadow(0 2px 10px rgba(9, 30, 41, .35));
}
.hero__when {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: clamp(12px, 2.2vh, 20px) 0 0;
  padding: 10px 22px;
  border-top: 1px solid rgba(244, 248, 250, .65);
  border-bottom: 1px solid rgba(244, 248, 250, .65);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(9, 30, 41, .35);
}
.hero__when-date { font-size: clamp(1.15rem, 4vw, 1.5rem); letter-spacing: .14em; text-indent: .14em; }
.hero__when-time { font-size: clamp(.95rem, 3.2vw, 1.2rem); letter-spacing: .18em; text-indent: .18em; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SIGNUP PANEL - the mirror monolith. Dark glass over the
   artwork, hairline mirror edge, top line slanted the same
   way the monolith's top edge recedes in the photograph.
   ============================================================ */
.panel {
  width: 100%;
  max-width: 560px;
  margin-top: clamp(20px, 3.6vh, 36px);
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--glass-edge);
  border-top: none;                    /* the slanted ::before is the top edge */
  clip-path: polygon(0 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 26px 60px -28px rgba(9, 20, 27, .8);
  animation: panelIn .8s .12s cubic-bezier(.16,.84,.36,1) both;
}
/* mirror-glint top edge, following the slant */
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 15px;
  background: linear-gradient(90deg, var(--mirror-soft), var(--mirror) 55%, var(--sunset));
  clip-path: polygon(0 0, 100% 14px, 100% 15px, 0 1px);
  z-index: 1;
  pointer-events: none;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.panel__inner { padding: clamp(26px, 4vw, 40px) clamp(22px, 3.6vw, 36px) clamp(26px, 3.6vw, 34px); }

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

/* ---------- titles ---------- */
.panel__title {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.14;
  font-size: clamp(1.32rem, 4.4vw, 1.72rem);
  margin: 0 0 14px;
  color: var(--white);
  text-wrap: balance;
}

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

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--white);
  background: rgba(244, 248, 250, .07);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form__input::placeholder { color: rgba(244, 248, 250, .38); }
.form__input:focus {
  outline: none;
  border-color: var(--sunset);
  background: rgba(244, 248, 250, .1);
  box-shadow: 0 0 0 3px rgba(242, 144, 123, .22);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 180, 166, .18);
}
.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(--sunset-deep);
}
.form__consent a { color: var(--mirror); text-underline-offset: 2px; }
.form__consent a:hover { color: var(--white); }

/* ---------- submit: the skyline's sunset, poured into a button ---------- */
.btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sunset), var(--sunset-deep));
  color: var(--asphalt);
  border-radius: 3px;
  padding: 0;
  box-shadow: 0 12px 26px -12px rgba(217, 108, 85, .65);
  transition: filter .12s ease, transform .12s ease, box-shadow .12s ease;
}
.btn__face {
  display: block;
  padding: 16px 18px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(217, 108, 85, .75); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: rgba(244, 248, 250, .25); color: rgba(23, 16, 11, .6); cursor: default; transform: none; box-shadow: none; }

/* ---------- signature: the city's coordinates, etched in the glass ---------- */
.coords {
  margin: 20px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--faint);
}

/* ---------- success state ---------- */
.panel__success { text-align: left; }
.panel__success p:not(.eyebrow):not(.coords) { margin-bottom: 0; }
.panel__success .coords { margin-top: 24px; }

/* ============================================================
   intl-tel-input (v25) - glass theme + searchable dropdown
   ============================================================ */
.iti { width: 100%; display: block; }
.iti__selected-country {
  background: transparent;
  border-radius: 3px 0 0 3px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(244, 248, 250, .08); }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--muted); }
.iti__arrow { border-top-color: var(--muted); }
.iti__arrow--up { border-bottom-color: var(--muted); }
.iti__dropdown-content {
  background: #10303F;
  border: 1px solid var(--glass-edge);
  border-radius: 4px;
  box-shadow: 0 24px 50px -16px rgba(9, 20, 27, .85);
  color: var(--white);
}
.iti__search-input {
  background: rgba(244, 248, 250, .07);
  color: var(--white);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}
.iti__search-input::placeholder { color: rgba(244, 248, 250, .4); }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--sunset); }
.iti__search-icon { display: none; }              /* remove magnifying-glass icon */
.iti__search-input { padding-left: 14px; }        /* reclaim the space it left */
.iti__country-list { background: transparent; }
.iti__country { color: var(--white); }
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(242, 144, 123, .16); }
.iti__dial-code { color: var(--faint); font-family: var(--mono); font-size: 11.5px; }
.iti__country-name { color: var(--white); }
/* 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), asphalt glass
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(13, 12, 10, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  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(--muted); letter-spacing: .02em; }
.foot__legal a { color: var(--muted); text-decoration: none; }
.foot__legal a:hover { color: var(--sunset); }
.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(--sunset); color: var(--white); }
.site-built img { display: block; opacity: .9; }

@media (max-width: 879px) {
  .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(--sunset);
  outline-offset: 2px;
}

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

/* ============================================================
   LEGAL PAGE (privacy.html)
   ============================================================ */
body.legal-wrap {
  background: #0E2833;
  color: var(--white);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  display: block;
}
.legal {
  max-width: 740px;
  margin: 0 auto;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding: 0.4rem 1.05rem 0.4rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 248, 250, .05);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease;
}
.legal__back:hover {
  border-color: var(--sunset);
  background: rgba(242, 144, 123, .08);
}
.legal__back-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sunset);
  color: var(--asphalt);
  transition: transform .18s ease, background .18s ease;
}
.legal__back:hover .legal__back-arrow { transform: translateX(-3px); background: var(--sunset-deep); }
.legal__back-arrow svg { width: 13px; height: 13px; display: block; }
.legal__back-label {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.12;
}
.legal__back-text {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.legal__back-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--white);
}
.legal h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--white);
  text-wrap: balance;
}
.legal h1::after { content: "."; color: var(--sunset); }
.legal h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sunset);
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.legal h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mirror);
  margin: 1.8rem 0 0.4rem;
}
.legal p, .legal li {
  font-size: 14.5px;
  color: var(--muted);
}
.legal ul { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a:not(.legal__back) { color: var(--mirror); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(143, 205, 233, 0.45); }
.legal a:not(.legal__back):hover { text-decoration-color: var(--mirror); }
.legal strong { color: var(--white); font-weight: 600; }
.legal__meta {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
