/* ============================================================
   TRIBES UNITE 2027 - PHASE 1 LINE-UP
   Bedford Park, Bedford. Saturday 3 July 2027.
   tribesunite.com homepage sign-up. Client: Louder Entertainment.

   DIRECTION - the artwork is a night stage: pyro columns either side, the
   "WE'RE BACK" screens, the crowd, and the line-up set in the smoky sky.
   The PSD is layered, so the page is rebuilt from its own parts instead
   of showing a flattened poster in a box (Adam's rule for this kind of
   art: cut ONLY by the screen edges, never feathered into a made-up
   ground):
   - Split screen (landscape windows + landscape phones): the 16:9 stage
     plate, type-free, fills the WHOLE window behind everything. The
     line-up lockup (the PSD's own type, transparent) is the <h1>, set on
     the left half the way the 16:9 artboard sets it, over a soft smoke
     shadow (the designer's own device on that artboard). Panel right.
   - Stacked (phones, portrait tablets, squarish windows): the 9:16 story
     artboard full width from the top. Its letterbox black IS the page
     ground (#03070B), so the art ends where the designer ended it.
   - The one moment: on load the stage is dark and comes up, like the
     lights hitting at the top of a set. Once, ~1.4s, split screen only,
     off under reduced motion.

   COLOUR - literal pixels of the artwork:
     #03070B  ground   the night sky above the stage (story letterbox)
     #120A0B  slab     the sky, darkest smoke (panel)
     #FEC13D  sky      the line-up yellow (CTA, titles)
     #EF4423  flare    the Tribes Unite logo red (panel top edge)
     #FF6A4A  concrete the logo red lifted to read as text on the slab
     #F6EEE6  paper / #DCCDC1 stone: reading copy
   Ground on yellow 12.4:1. Yellow on slab 12.0:1. Stone on slab 12.6:1.
   Concrete on slab 6.9:1. Stone-dim on slab 6.8:1. Flare on slab 5.1:1.

   TYPE - Anybody Wide Black (OFL, self-hosted): the nearest free match
   to the poster's wide line-up face, for the panel titles and CTA only.
   Everything else in the house Helvetica.
   ============================================================ */

@font-face {
  font-family: "Anybody Wide";
  src: url("/assets/fonts/AnybodyWide-900.woff2?v=20261126-1") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground:    #03070B;
  --slab:      #120A0B;   /* panel */
  --panel:     #1C0F10;   /* country dropdown */
  --field:     #080506;   /* form field - OPAQUE on purpose, see autofill note */
  --sky:       #FEC13D;
  --sky-hi:    #FFD36E;
  --flare:     #EF4423;
  --concrete:  #FF6A4A;
  --paper:     #F6EEE6;
  --stone:     #DCCDC1;
  --stone-dim: #A8958C;
  --danger:    #FF9E8F;
  --whatsapp:  #25D366;
  --line:      rgba(246,234,222,.16);

  --display: "Anybody Wide", "Arial Black", Arial, sans-serif;
  --font:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --panel-w: 420px;
  --pad: clamp(20px, 3.2vw, 52px);
  --foot-h: 64px;
  /* the line-up lockup's own ratio (1930 x 2123) */
  --lk: .9091;
}

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

/* The `hidden` attribute is only display:none in the UA stylesheet, the weakest
   layer of the cascade, so ANY author rule that sets display beats it. Keep this
   rule ABOVE everything that sets display, and never remove it. */
[hidden] { display: none !important; }

/* Ground colour lives on html, NOT body (gotcha 16). */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
}
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--paper);
  background: transparent;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* clip, not hidden: hidden on one axis forces the other to auto and would
   clip the country dropdown. */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ============================================================
   THE STAGE PLATE - split screen only. A CSS background inside the split
   media block, so stacked layouts never download it.
   ============================================================ */
.plate { display: none; }

/* ============================================================
   STACKED (base) - the story artboard full width, then the panel
   ============================================================ */
.stage {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lockup {
  margin: 0;
  width: 100%;
  line-height: 0;
}
.lockup picture { display: contents; }
.lockup__img {
  display: block;
  width: 100%;
  height: auto;
}

/* .side = the sign-up. On stacked layouts it rides up onto the black
   under the crowd (the story's own letterbox, bottom ~8% of the art). */
.side {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* hero ends at the last line-up line (Adam 26 Nov), box straight under it */
  margin-top: 14px;
  padding-bottom: 10px;
}

/* ============================================================
   SIGN-UP PANEL - a slab of the night sky over the stage, a hairline, and
   a flare-red top edge where the pyro catches it.
   ============================================================ */
.signup {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--panel-w);
  position: relative;
}
.panel {
  width: 100%;
  position: relative;
  isolation: isolate;
  color: var(--stone);
  background: var(--slab);
  border: 1px solid var(--line);
  border-top: 2px solid var(--flare);
  box-shadow: 0 34px 80px -30px rgba(0,0,0,.95);
}
.panel__inner {
  position: relative;
  padding: 24px clamp(22px, 3vw, 32px) 28px;
}

/* --- state machine (app.js flips data-form-state on .panel) --- */
.panel__state { display: none; }
.panel[data-form-state="idle"]    .panel__idle    { display: block; }
.panel[data-form-state="otp"]     .panel__otp     { display: block; }
.panel[data-form-state="success"] .panel__success { display: block; }

/* ============================================================
   STEP SPINE - numbered because it IS a sequence:
   form -> SMS code -> email confirm.
   ============================================================ */
.spine {
  display: flex;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.spine__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 6px 7px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--stone-dim);
  transition: color .25s ease, background-color .25s ease;
}
.spine__step + .spine__step { border-left: 1px solid var(--line); }
.spine__n {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
}
.spine__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel[data-form-state="idle"]    .spine__step:nth-child(1),
.panel[data-form-state="otp"]     .spine__step:nth-child(2),
.panel[data-form-state="success"] .spine__step:nth-child(3) {
  color: var(--paper);
  background: rgba(246,234,222,.08);
}
.panel[data-form-state="idle"]    .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="otp"]     .spine__step:nth-child(2) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(3) .spine__n {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--ground);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1),
.panel[data-form-state="success"] .spine__step:nth-child(1),
.panel[data-form-state="success"] .spine__step:nth-child(2) {
  color: var(--concrete);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(2) .spine__n {
  font-size: 0;                    /* hide the digit, keep the ring */
  border-color: var(--concrete);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1) .spine__n::after,
.panel[data-form-state="success"] .spine__step:nth-child(1) .spine__n::after,
.panel[data-form-state="success"] .spine__step:nth-child(2) .spine__n::after {
  content: "";
  width: 7px; height: 4px;
  border: 1.5px solid var(--concrete);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
@media (max-width: 400px) {
  .spine__step { font-size: 11.5px; gap: 5px; padding: 7px 3px 6px; }
  .spine__n { width: 15px; height: 15px; }
}

/* ============================================================
   PANEL COPY
   ============================================================ */
/* House title pattern (two lines, the hook in <em>), set in Anybody Wide
   Black caps like the poster's line-up; second line in flare red. */
.panel__title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.12rem, 5.2vw, 1.34rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--sky);
  text-wrap: balance;
}
.panel__title em { font-style: normal; color: var(--concrete); }

.panel__lede {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--stone);
  max-width: 46ch;
}
.panel__lede--last { margin-bottom: 20px; }
.panel__lede strong { color: var(--paper); font-weight: 700; }
.panel__success-note { margin: 0 0 12px; color: var(--concrete); font-size: 14.5px; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 12px; }
/* labels stay for screen readers; placeholders carry the meaning visually */
.form__label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form__input {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 16px;                 /* 16px minimum or iOS zooms on focus */
  color: var(--paper);
  background: var(--field);        /* OPAQUE - see the autofill rule below */
  border: 1px solid rgba(246,234,222,.28);
  border-radius: 10px;   /* rounded (Adam 26 Nov) */
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: var(--stone-dim); opacity: 1; }
.form__input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(246,234,222,.20);
}
.form__input--otp {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .42em;
  text-align: center;
  text-indent: .42em;              /* re-centres text that tracking pushes left */
}

/* Chrome paints autofilled inputs pale lavender and IGNORES background on
   :-webkit-autofill - a huge inset box-shadow is the only reliable override.
   It must be the flattened OPAQUE colour of the field, which is simply --field
   because the field is opaque on purpose. Keep it opaque. */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset !important;
          box-shadow: 0 0 0 1000px var(--field) inset !important;
  -webkit-text-fill-color: var(--paper) !important;
  caret-color: var(--paper);
  transition: background-color 9999s ease-in-out 0s;   /* stops the lavender flashing in */
}

.form__error { margin: 7px 0 0; font-size: 13px; color: var(--danger); }
.form__error--global { margin-top: 14px; }

/* Honeypot. display:none ONLY - off-screen positioning stays an autofill
   target in Chrome/Edge, which fills it and silently blocks real signups. */
.hp-row { display: none !important; }

.form__row--check { margin: 16px 0 18px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--stone);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--sky);
  cursor: pointer;
}
/* Privacy line under the marketing tick box (kept out of the consent box itself). */
.form__note { margin: 10px 0 0 29px; font-size: 12px; line-height: 1.5; color: var(--stone); }
.form__note a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--sky); }

.form__resend {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--stone-dim);
  text-align: center;
}
.form__resend-btn {
  font: inherit;
  color: var(--concrete);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.form__resend-btn:disabled { color: var(--stone-dim); cursor: default; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px 15px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(.82rem, 3.6vw, .95rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;             /* shrink the type before it can ever wrap */
  text-align: center;
  text-decoration: none;           /* <a class="btn"> needs this */
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
/* the CTA is the poster's line-up yellow: the brightest thing on the page */
.btn--primary { color: var(--ground); background: var(--sky); border-radius: 10px; }   /* rounded (Adam 26 Nov) */
.btn--primary:hover:not(:disabled) {
  background: var(--sky-hi);
  box-shadow: 0 0 0 1px var(--sky-hi), 0 10px 34px -10px rgba(246,234,222,.45);
}
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.form__input:focus-visible { outline: none; }
.form__resend-btn:focus-visible,
.form__note a:focus-visible,
.foot a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.btn__icon { flex: 0 0 auto; width: 19px; height: 19px; }

/* WhatsApp: dark slab, green hairline, a solid green chip carrying the glyph. */
.wa-hook { margin: 18px 0 12px; font-size: 13.5px; color: var(--stone); }
.wa-hook strong { color: var(--paper); font-weight: 700; }
.btn--whatsapp {
  position: relative;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 6px;
  padding: 0 14px 0 0;
  min-height: 52px;
  color: var(--paper);
  background: #0C130E;
  border: 1px solid var(--whatsapp);
  font-family: var(--font);
  font-stretch: normal;
  font-weight: 700;
  font-size: clamp(.84rem, 3.5vw, .95rem);
  letter-spacing: .02em;
  text-transform: none;
}
.btn--whatsapp .btn__icon {
  align-self: stretch;
  width: 46px;
  height: auto;
  padding: 0 13px;
  color: #06301A;                  /* 7.33:1 on the WhatsApp green */
  background: var(--whatsapp);
  box-sizing: border-box;
}
.btn--whatsapp .btn__text { flex: 1 1 auto; text-align: center; padding-right: 4px; }
.btn--whatsapp:hover { background: #10201A; }
.btn--whatsapp:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
/* narrow phones: let the label wrap to two lines rather than touch the edge */
@media (max-width: 359px) {
  .btn--whatsapp { white-space: normal; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
}

/* ============================================================
   intl-tel-input v25
   ============================================================ */
.iti { width: 100%; display: block; }
/* app.js re-measures and sets padding-left inline; this is the sane default
   before it runs. Anything >= 80px breaks 320-390px viewports. */
.iti input.form__input { padding-left: calc(52px + 0.7rem); }
.iti__country-container { z-index: 3; }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }
/* Until the vendor stylesheet loads, the hidden state does not exist and the
   whole list plus search box flashes open on first paint. */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  background: var(--panel);
  border: 1px solid rgba(246,234,222,.45);
  box-shadow: 0 26px 56px -18px rgba(0,0,0,.94);
  overflow: hidden;
}
.iti__search-input {
  /* Keep the vendor's horizontal padding reservation (30px left for the search
     icon, 28px right for the clear button). A padding SHORTHAND that drops them
     puts the magnifier on top of the placeholder. */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--paper);
  background: var(--field);
  border: 0;
  border-bottom: 1px solid rgba(246,234,222,.30);
}
.iti__search-input::placeholder { color: var(--stone-dim); }
.iti__search-input:focus { outline: none; background: #22100F; }
.iti__country-list { background: var(--panel); max-height: 240px; }
.iti__country {
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--paper);
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(246,234,222,.14); }
.iti__dial-code { color: var(--stone-dim); }
.iti__country-name { color: var(--paper); }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(246,234,222,.12); }
/* follow the rounded field: the flag button's hover fill and the dropdown */
.iti__selected-country-primary, .iti__selected-country { border-radius: 10px 0 0 10px; }
.iti__dropdown-content { border-radius: 10px; overflow: hidden; }
.iti__selected-dial-code { color: var(--paper); font-family: var(--font); font-size: 15px; }
.iti__arrow { border-top-color: var(--stone-dim); }
.iti__arrow--up { border-bottom-color: var(--stone-dim); }

/* ============================================================
   FOOTER - fleet pattern: Louder logo + copyright + credit pill LEFT
   (Adam, 17 Nov 2026), legal links right.
   ============================================================ */
.foot {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 14px var(--gutter) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.foot__left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12.5px; color: var(--stone); }
.foot__legal a { color: var(--stone); text-decoration: none; }
.foot__legal a:hover { color: var(--sky); }
/* Ticket terms | Privacy | (louder-consent.js adds "Cookie settings" after
   the privacy link with only a text space between them) */
.foot__links a + a,
.foot__legal [data-louder-consent-open] {
  margin-left: .75em;
  padding-left: .85em;
  border-left: 1px solid rgba(217,203,191,.4);
}
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(217,203,191,.32);
  border-radius: 999px;
  font-size: 12px;
  color: var(--stone);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { border-color: var(--sky); }
.site-built img { display: block; opacity: .9; }

@media (max-width: 899px) {
  .foot, .foot__left { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .foot { flex-direction: column; align-items: center; gap: 10px; padding-bottom: 22px; }
  .foot__left { flex-direction: column; align-items: center; gap: 10px; }
}

/* Louder logo (brief: "include the Louder logo somewhere"): leads the footer. */
.foot__louder { display: block; line-height: 0; opacity: .92; transition: opacity .18s ease; }
.foot__louder:hover { opacity: 1; }
.foot__louder img { display: block; width: auto; height: 30px; }

/* Presale countdown (Adam 26 Nov 2026): four cells, digits in the line-up
   yellow and the poster's face, so it reads as part of the bill. */
.countdown { margin: -2px 0 18px; }
.countdown__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
}
.countdown__clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 4px 7px;
  background: var(--field);
  border: 1px solid var(--line);
  border-top: 2px solid var(--flare);
  border-radius: 10px;   /* Adam 26 Nov: rounded like the box */
}
.countdown__unit b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
}
.countdown__unit small { margin-top: 5px; font-size: 11.5px; color: var(--stone-dim); }
.countdown__live {
  border-radius: 10px;
  display: none;
  margin: 0;
  padding: 12px 14px;
  background: var(--sky);
  color: var(--ground);
  font-weight: 700;
  text-align: center;
}
/* general sale date: under the clock, quieter, shown in every countdown state */
.countdown__next { margin: 8px 0 0; font-size: 12.5px; color: var(--stone); }
.countdown.is-live .countdown__label,
.countdown.is-live .countdown__clock { display: none; }
.countdown.is-live .countdown__live { display: block; }

/* Partner logo strip under the sign-up box (Adam 26 Nov 2026), the poster's
   own layer (Louder, Cuffe & Taylor, Tribes Unite, Breakin Science, Forever),
   then the poster's small print as text. */
.promoter {
  width: 100%;
  max-width: var(--panel-w);
  margin: 20px auto 4px;
  text-align: center;
}
.promoter img {
  display: block;
  width: 92%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 10px rgba(3,7,11,.85));
}
.promoter__note {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--paper);
  /* Adam 26 Nov: "can't read this": a tight dark edge + a soft dark halo, so it
     holds on the bright stage (desktop) and the smoke (mobile) */
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(3,7,11,.95), 0 0 14px rgba(3,7,11,.9);
}

/* STACKED GROUND (Adam 26 Nov: not a flat colour under the box). The hero's
   bottom 5% (smoke under the last line-up line) fades out over a layer that starts inside that fade, so the art
   melts into it. --H = the hero's height (1965/1773 of the width). Variants
   on <html>: g-glow (the stage + crowd continued, blurred + darkened),
   g-ember (ember red into night black + grain), g-smoke (the sky's smoke). */
@media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) {
  :root { --H: 115.06vw; }
  html.g-glow .lockup__img, html.g-ember .lockup__img, html.g-smoke .lockup__img {
    -webkit-mask-image: linear-gradient(to bottom, #000 95%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 95%, transparent 100%);
  }
  html.g-glow {
    background: var(--ground) url("/assets/images/ground-glow2-1080.webp?v=20261126-1") 0 calc(var(--H) * .95) / 100% auto no-repeat;
  }
  html.g-ember {
    background:
      url("/assets/images/grain.png?v=20261126-1") 0 0 / 256px 256px repeat,
      linear-gradient(to bottom, transparent 0, transparent calc(var(--H) * .95),
        #792F25 calc(var(--H) * .95), #4E1813 calc(var(--H) + 40vw),
        #22100F calc(var(--H) + 110vw), #03070B calc(var(--H) + 220vw)) 0 0 / 100% 100% no-repeat,
      var(--ground);
  }
  html.g-smoke {
    background:
      linear-gradient(to bottom, transparent 0, transparent calc(var(--H) * .95),
        rgba(121,47,37,.55) calc(var(--H) * .95), rgba(121,47,37,0) calc(var(--H) + 30vw)) 0 0 / 100% 100% no-repeat,
      url("/assets/images/ground-smoke-1080.webp?v=20261126-1") 0 calc(var(--H) * .95) / 100% auto repeat-y,
      var(--ground);
  }
}


/* ============================================================
   BOX IDEAS (Adam 26 Nov: "make the box not square"), demos on <html>:
   b-nobox / b-screen / b-crest / b-dream. Decoration only on .panel's
   pseudo layers, so the form and country dropdown are untouched.
   ============================================================ */
/* 1. NO BOX: the form sits on the art over a soft smoke shadow */
html.b-nobox .panel { background: transparent; border: 0; box-shadow: none; }
html.b-nobox .panel::before {
  content: ""; position: absolute; z-index: -1; inset: -70px -60px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(3,7,11,.86) 0%, rgba(3,7,11,.7) 55%, rgba(3,7,11,0) 100%);
}
html.b-nobox .spine { background: rgba(3,7,11,.55); }

/* 2. STAGE SCREEN: truss frame, a lamp bar across the top, LED glow */
html.b-screen .panel {
  border: 0;
  background: radial-gradient(ellipse 90% 45% at 50% 0%, rgba(239,68,35,.30), rgba(239,68,35,0) 70%), var(--slab);
  box-shadow: 0 0 0 2px #1E1415, 0 0 70px -6px rgba(239,68,35,.45), 0 34px 80px -30px rgba(0,0,0,.95);
  margin-top: 26px;
}
html.b-screen .panel::before {   /* truss rim: masked to a 12px frame OUTSIDE the box */
  content: ""; position: absolute; z-index: -1; inset: -12px; pointer-events: none;
  border: 2px solid #4A3B36;
  padding: 10px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  background:
    repeating-linear-gradient(45deg, rgba(120,98,90,.85) 0 1.5px, transparent 1.5px 11px),
    repeating-linear-gradient(-45deg, rgba(120,98,90,.85) 0 1.5px, transparent 1.5px 11px),
    #120C0C;
}
html.b-screen .panel::after {    /* lamp bar */
  content: ""; position: absolute; left: -12px; right: -12px; top: -34px; height: 22px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 55%, #FFFFFF 0 3px, rgba(255,236,214,.75) 4px, rgba(255,214,170,0) 10px) 0 0 / 30px 22px repeat-x,
    linear-gradient(#2A201E, #2A201E) 0 15px / 100% 5px no-repeat;
  filter: drop-shadow(0 0 6px rgba(255,220,180,.6));
}

/* 3. CREST ON TOP: the T emblem breaks the top edge */
html.b-crest .panel { margin-top: 64px; }
/* slightly see-through box (Adam 26 Nov): 80% slab + a light blur of the art
   behind it; fields stay OPAQUE (the autofill rule needs that) */
html.b-crest .panel {
  background: rgba(18,10,11,.8);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border-radius: 16px;   /* Adam 26 Nov: rounded corners */
}
html.b-crest .panel::before {    /* disc that cuts the top edge */
  content: ""; position: absolute; left: 50%; top: -58px; width: 124px; height: 124px; z-index: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: rgba(18,10,11,.8); border: 2px solid var(--flare); pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  clip-path: inset(0 0 52% 0);
}
html.b-crest .panel::after {     /* the emblem */
  content: ""; position: absolute; left: 50%; top: -52px; width: 104px; height: 110px; z-index: 2;
  transform: translateX(-50%); pointer-events: none;
  background: url("/assets/images/crest.png?v=20261126-1") center / contain no-repeat;
  filter: drop-shadow(0 2px 10px rgba(3,7,11,.9));
}
html.b-crest .panel__inner { padding-top: 66px; }
/* stacked (phones, portrait tablets) only: pull the box up so the crest sits
   closer under the last line-up line (Adam 26 Nov: ~44px -> ~20px) */
@media not all and (min-width: 560px) and (min-aspect-ratio: 5/4) {
  @media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) {
    html.b-crest .side { margin-top: -10px; }
  }
}
/* short split windows + landscape phones: a smaller crest so Sign up stays on screen */
@media (min-width: 560px) and (min-aspect-ratio: 1/1) and (max-height: 860px) {
  html.b-crest .panel { margin-top: 46px; }
  html.b-crest .panel::before { width: 92px; height: 92px; top: -42px; }
  html.b-crest .panel::after  { width: 76px; height: 80px; top: -37px; }
  html.b-crest .panel__inner { padding-top: 48px; }
}

/* 4. DREAMCATCHER HANG: roundels on the top corners, cords down the sides, feathers below */
html.b-dream .panel { margin-top: 62px; margin-bottom: 70px; }
html.b-dream .panel::before, html.b-dream .panel::after {
  content: ""; position: absolute; top: -64px; bottom: -96px; width: 62px; pointer-events: none; z-index: -1;
  background:
    url("/assets/images/dc-roundel.png?v=20261126-1") 50% 0 / 60px auto no-repeat,
    url("/assets/images/dc-feather.png?v=20261126-1") 50% 100% / 21px auto no-repeat,
    linear-gradient(var(--flare), var(--flare)) 50% 58px / 2px calc(100% - 150px) no-repeat;
  filter: drop-shadow(0 2px 8px rgba(3,7,11,.85));
}
html.b-dream .panel::before { left: -31px; }
html.b-dream .panel::after  { right: -31px; }
@media (max-width: 559px) {
  html.b-dream .panel::before, html.b-dream .panel::after {
    width: 44px; top: -50px;
    background-size: 44px auto, 16px auto, 2px calc(100% - 140px);
    background-position: 50% 0, 50% 100%, 50% 44px;
  }
  html.b-dream .panel::before { left: -10px; }
  html.b-dream .panel::after  { right: -10px; }
  html.b-dream .panel { margin-top: 50px; }
}

/* Stacked tablets: a wider panel. */
@media (min-width: 560px) {
  :root { --panel-w: 460px; }
}

/* ============================================================
   SPLIT SCREEN - landscape windows (>= 900 wide and at least square) and
   landscape phones / small landscape windows (>= 560 wide and >= 5/4).
   KEEP IN STEP with the <picture> media in index.html (the lockup source)
   and the plate preload: all three use this exact query.

   The stage plate fills the window (cover, anchored on the crowd so the
   stage never leaves the bottom). Two-column grid; the panel track is
   DEFINITE (gotcha 35). The lockup's width is capped by the window height
   through its own ratio, then by its column (max-width: 100%, gotcha 38),
   so it can never run under the panel at any window shape.
   ============================================================ */
@media (min-width: 900px) and (min-aspect-ratio: 1/1),
       (min-width: 560px) and (min-aspect-ratio: 5/4) {
  :root {
    --R: calc(var(--panel-w) + 2 * var(--pad));
    --lh: calc(100vh - var(--foot-h) - 2 * var(--pad));
  }
  @supports (height: 100svh) {
    :root { --lh: calc(100svh - var(--foot-h) - 2 * var(--pad)); }
  }

  .plate {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--ground) url("/assets/images/plate-169-1920.jpg?v=20261126-1") 50% 100% / cover no-repeat;
    background-image: image-set(
      url("/assets/images/plate-169-1920.webp?v=20261126-1") type("image/webp"),
      url("/assets/images/plate-169-1920.jpg?v=20261126-1") type("image/jpeg"));
  }
  /* smoke shadow behind the line-up (the 16:9 artboard's own device) +
     the crowd taken down under the footer. Soft ellipses on smoke, no edge. */
  .plate::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse min(46vw, 62vh) 52% at calc((100% - var(--R)) / 2 + var(--pad) / 2) 46%,
        rgba(3,7,11,.78) 0%, rgba(3,7,11,.58) 45%, rgba(3,7,11,0) 100%),
      linear-gradient(to top, rgba(3,7,11,.82) 0, rgba(3,7,11,0) calc(var(--foot-h) + 60px));
  }
  /* film grain: the PSD's grain filter does not survive the export */
  .plate::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/images/grain.png?v=20261126-1") repeat;
    background-size: 256px 256px;
    opacity: .55;
  }
  /* THE LOAD MOMENT: the stage comes up from dark. */
  .plate__lights {
    position: absolute;
    inset: 0;
    background: var(--ground);
    opacity: 0;
    pointer-events: none;
  }
  html.js .plate__lights { animation: lights-up 1.4s cubic-bezier(.3, .1, .2, 1) both; }
  @keyframes lights-up {
    0%   { opacity: 1; }
    35%  { opacity: .55; }
    100% { opacity: 0; }
  }

  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel-w);
    column-gap: var(--pad);
    align-items: center;
    padding: var(--pad) var(--pad) 0;
  }
  .lockup {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    min-width: 0;
  }
  .lockup__img {
    width: min(100%, calc(var(--lh) * var(--lk)));
    max-width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 2px 18px rgba(3,7,11,.75));
  }
  .side {
    grid-column: 2;
    width: var(--panel-w);
    margin: 0;
    padding: 0;
  }
  /* the stacked-ground fade is for the cropped hero only: never fade the
     transparent line-up lettering (landscape phones match "not desktop" too) */
  html.g-glow .lockup__img, html.g-ember .lockup__img, html.g-smoke .lockup__img {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .signup { width: var(--panel-w); max-width: none; }
  .foot {
    min-height: var(--foot-h);
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js .plate__lights { animation: none; }
}

/* Desktop: the box sits a little in from the right edge (Adam 26 Nov). --R
   includes the shift so the line-up's smoke shadow stays centred on it. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 521px) {
  :root {
    --shift: clamp(24px, 3vw, 64px);
    --R: calc(var(--panel-w) + 2 * var(--pad) + var(--shift));
  }
  .stage { padding-right: calc(var(--pad) + var(--shift)); }
}

/* big screens: the 2560 plate */
@media (min-width: 1921px) and (min-aspect-ratio: 1/1) {
  .plate {
    background-image: image-set(
      url("/assets/images/plate-169-2560.webp?v=20261126-1") type("image/webp"),
      url("/assets/images/plate-169-1920.jpg?v=20261126-1") type("image/jpeg"));
  }
}

/* shorter split windows: a compact panel so it stays on screen */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 521px) and (max-height: 860px) {
  :root { --pad: clamp(18px, 2.4vw, 36px); --foot-h: 58px; }
  .promoter { margin-top: 14px; }
  .countdown { margin-bottom: 14px; }
  .countdown__unit { padding: 7px 4px 5px; }
  .countdown__unit b { font-size: 1.2rem; }
  .spine { margin-bottom: 16px; }
  .panel__inner { padding-top: 20px; padding-bottom: 22px; }
  .panel__title { margin-bottom: 10px; }
  .panel__lede { font-size: 14.5px; margin-bottom: 14px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 521px) and (max-height: 720px) {
  :root { --panel-w: 390px; }
  .panel__inner { padding: 16px 24px 18px; }
  .spine { margin-bottom: 12px; }
  .spine__step { padding: 6px 4px 5px; }
  .panel__lede { font-size: 14px; margin-bottom: 12px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding: 11px 13px; }
  .form__row--check { margin: 12px 0 14px; }
  .btn:not(.btn--whatsapp) { padding: 13px 16px 12px; }
  .countdown { margin-bottom: 12px; }
  .countdown__label { margin-bottom: 6px; font-size: 12.5px; }
  .countdown__unit { padding: 5px 3px 4px; }
  .countdown__unit b { font-size: 1.05rem; }
  .countdown__unit small { margin-top: 3px; }
  .countdown__next { margin-top: 6px; font-size: 12px; }
  .promoter { margin-top: 10px; }
  .promoter img { width: 84%; }
  .promoter__note { margin-top: 5px; }
}

/* --- LANDSCAPE PHONES + small landscape windows (gotcha 27) ---
   844x390, 932x430, 667x375, 800x600: same split, compact panel. The
   lockup uses the full window height and stays put (sticky) while the
   panel column scrolls; the footer follows the panel. Placed LAST so it
   wins at equal specificity. */
@media (min-width: 560px) and (min-aspect-ratio: 5/4) and (max-height: 520px),
       (min-width: 560px) and (max-width: 899px) and (min-aspect-ratio: 5/4) {
  :root {
    --panel-w: 340px;
    --pad: 14px;
    --foot-h: 0px;
  }
  .stage { align-items: start; padding-bottom: 12px; }
  .lockup { position: sticky; top: var(--pad); align-self: start; }
  .panel__inner { padding: 14px 18px 16px; }
  .spine { margin-bottom: 10px; }
  .spine__step { padding: 5px 4px 4px; font-size: 11px; }
  .panel__title { font-size: 1rem; margin-bottom: 8px; }
  .panel__lede { font-size: 13.5px; margin-bottom: 10px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding: 10px 12px; }
  .form__row--check { margin: 10px 0 12px; }
  .btn:not(.btn--whatsapp) { padding: 12px 16px 12px; }
  .btn--whatsapp { min-height: 46px; }
  .foot { min-height: 0; }
  .promoter { margin-top: 10px; }
  .promoter img { width: 86%; }
  .countdown { margin-bottom: 10px; }
  .countdown__label { margin-bottom: 6px; font-size: 12px; }
  .countdown__unit { padding: 5px 3px 4px; }
  .countdown__unit b { font-size: 1.05rem; }
  .countdown__unit small { margin-top: 3px; font-size: 10.5px; }
  .countdown__next { margin-top: 6px; font-size: 11.5px; }
}

/* Short phones (SE class, stacked): tighter panel. */
@media (max-width: 559px) and (max-height: 700px) {
  .spine { margin-bottom: 14px; }
  .panel__inner { padding-top: 18px; }
  .panel__lede { font-size: 14px; margin-bottom: 14px; }
}
