/* ============================================================
   RUDIMENTAL LIVE - ELECTRIC BAY 2027, 5TH ANNIVERSARY CLOSING PARTY
   Torre Abbey, Torquay, Sunday 11 July 2027. Sign-up, in the /rudimental/ folder of
   electricbayfestival.com. Client: Louder Entertainment (CRM u41); named data-share party
   Future Underground Nation Limited. Engine: pegassi (card, form, phone, footer rules).

   DIRECTION - the artwork IS the page, unboxed (brief 30 Nov 2026: "artwork on the left ...
   must not be boxed"). Rebuilt from the client's PSD layers (/root/artwork/rudimental):
   - bg-desktop.webp = the wide 16:9 photo with no type, bg-mobile.webp = the tall 9:16 photo,
     both graded to the designer's flat export. They fill the window edge to edge.
   - type-*.webp = the bill (Electric Bay mark, date, venue, line-up) as the h1, straight on
     the sky. White ink on the tall photo's teal sky, navy ink on the wide photo's bright haze:
     the designer's own two treatments.
   One motion: the bill settles onto the sky once on load.

   COLOUR - literal pixels:
     #FE2600  flame    the line-up's orange-red (median of the bill pixels in the flat export)
     #10142B  navy     the Electric Bay mark's ink / the 16:9 date text; the card (flame 4.7:1,
                       ink 17.6:1, ink-2 10.3:1 on it)
     #FF6B47  flame-hi flame lifted for small text on the navy (6.6:1)
     #030202  ground   the tall photo's last row (crowd in silhouette)
     #FFF8EC  ink      the sun haze, lightest

   TYPE - Special Gothic Expanded One (OFL): the free match for the bill's wide heavy caps
   (ELLA EYRE, A LITTLE SOUND). Titles only; system Helvetica for everything you read or tap.
   ============================================================ */

@font-face {
  font-family: "Special Gothic Expanded One";
  src: url("/rudimental/assets/fonts/SpecialGothicExpanded.woff2?v=20261130-1") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --ground:  #030202;
  --flame:   #FE2600;
  --flame-hi:#FF6B47;
  --card:    #10142B;
  --ink:     #FFF8EC;
  --ink-2:   #BCC3DA;
  --ink-btn: #10142B;
  --field:   #1D2444;   /* form field - OPAQUE on purpose, see the autofill rule */
  --line:    rgba(255,248,236,.14);
  --danger:  #FFA79B;   /* 9.5:1 on the card */
  --whatsapp:#25D366;

  --wide: "Special Gothic Expanded One", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --panel-w: 470px;
  /* the bill (type-*.webp is 1500 x 1321, plus one line of live text) */
  /* capped by the window height too, so the top of the card shows before scrolling */
  --bill-w: min(94vw, 720px, 67vh);
}
@supports (height: 100svh) { :root { --bill-w: min(94vw, 720px, 67svh); } }

*, *::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; }

/* The ground lives on html (body stays transparent, gotcha 16). */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-synthesis: none;
  color: var(--ink);
  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;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ============================================================
   STAGE - STACKED (phones, portrait tablets, squarish windows).
   The tall photo runs the full width from the very top of the page (absolute, so it also sits
   behind iPhone Safari's toolbar, gotcha 39) and ends in its own black crowd, eased into the
   ground. The bill sits on its sky; the card follows, over the bay and the crowd.
   ============================================================ */
.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.scene__bg {
  position: absolute;
  /* raised 22vw: the bill starts nearer the top of the page than it does on the poster, so the
     photo moves up with it and the line-up still lands on the sun's glow, as designed */
  left: 0; top: -22vw;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--ground) url("/rudimental/assets/images/bg-mobile.webp?v=20261202-1") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(10px, 3vw, 36px) 0 var(--gutter);
}
.bill {
  width: var(--bill-w);
  margin: 0 0 clamp(4px, 1.5vw, 14px);
  line-height: 0;
}
.bill__img { display: block; width: 100%; height: auto; }
.bill .bill__img--dark { display: none; }
/* "Plus many more to be announced" as live type (the artwork's own line was too thin to read),
   in the bill's orange-red and only a little larger than the poster set it, with a soft halo of
   the sky's haze plus a fine dark edge behind it so it holds over the palms (Adam 30 Nov). */
.bill__more {
  display: block;
  margin-top: calc(var(--bill-w) * .014);
  font-family: var(--font);
  font-weight: 700;
  font-size: max(11.5px, calc(var(--bill-w) * .027));
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--flame);
  text-shadow: 0 0 3px rgba(255,246,228,.95), 0 0 9px rgba(255,246,228,.9), 0 0 18px rgba(255,244,222,.75), 0 1px 1px rgba(16,20,43,.28);
}
.orgs { width: min(230px, 60%); margin: 26px auto 2px; line-height: 0; }
.orgs img { display: block; width: 100%; height: auto; }

/* The one load moment: the photo surfaces, then the bill settles onto it. Gated on html.js. */
html.js .scene__bg, html.js .bill { opacity: 0; }
html.js .bill { transform: scale(1.025); }
html.js.lit .scene__bg { opacity: 1; transition: opacity .8s ease; }
html.js.lit .bill {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease .2s, transform 1.5s cubic-bezier(.16,.84,.24,1) .2s;
}

/* ============================================================
   SIGN-UP CARD - the Electric Bay mark's navy, solid. Solid colours only,
   no pseudo-element frame that could cover the country dropdown (gotcha 5).
   ============================================================ */
.signup {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--panel-w);
  position: relative;
  z-index: 2;
}
.panel {
  width: 100%;
  position: relative;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid rgba(255,248,236,.10);
  border-radius: 14px;
  /* deep shadow so the card lifts off the photo (Adam 30 Nov: "pops from the page") */
  box-shadow: 0 44px 90px -18px rgba(6,8,20,.85), 0 12px 28px -6px rgba(6,8,20,.55);
}
/* ...and a soft dusk halo behind the whole card */
.signup::before {
  content: "";
  position: absolute;
  inset: -4% -22% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(6,8,20,.62) 0, rgba(6,8,20,.40) 45%, rgba(6,8,20,0) 100%);
  pointer-events: none;
}
.panel__inner {
  position: relative;
  z-index: 1;
  padding: 20px clamp(20px, 3vw, 30px) 26px;
}

/* --- 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: 2px 0 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.spine__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 6px 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-2);
  transition: color .25s ease, background-color .25s ease;
}
.spine__step + .spine__step { border-left: 1px solid var(--line); }
.spine__n {
  position: relative;
  flex: 0 0 auto;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  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(--ink);
  background: rgba(254,38,0,.10);
}
.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(--flame);
  border-color: var(--flame);
  color: var(--ink-btn);
}
.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(--flame-hi);
}
.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(--flame-hi);
}
.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: "";
  /* pinned to the ring's centre, then nudged for the tick's L shape: a rotated left+bottom
     border box draws its ink below its middle (Adam 24 Nov: ticks not centred in the circle) */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px; height: 3.5px;
  border: 1.5px solid var(--flame-hi);
  border-top: 0;
  border-right: 0;
  box-sizing: content-box;
  transform: translate(-50%, -78%) rotate(-45deg);
}
@media (max-width: 400px) {
  .spine__step { font-size: 11px; gap: 5px; padding: 6px 3px 5px; }
  .spine__n { width: 15px; height: 15px; }
}

/* ============================================================
   CARD COPY - house title pattern, in the bill's wide heavy caps.
   ============================================================ */
.panel__title {
  margin: 0 0 12px;
  font-family: var(--wide);
  font-weight: 400;
  font-size: clamp(1.3rem, 6vw, 1.6rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-transform: uppercase;       /* the bill is set in wide heavy caps */
  color: var(--ink);
  text-wrap: balance;
}
.panel__title em { font-style: normal; color: var(--flame); }
.panel__lede {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 46ch;
}
.panel__lede--last { margin-bottom: 18px; }
.panel__lede--small { font-size: 13.5px; margin-top: -6px; }
.panel__lede strong { color: var(--ink); font-weight: 600; }
.panel__success-note { margin: 0 0 12px; color: var(--flame-hi); font-size: 14.5px; }

/* ---------- presale countdown, part of the card: a flame-tinted well between the intro and the
   form. Digits in the bill's wide caps. ---------- */
.count {
  margin: 2px 0 16px;
  padding: 11px 12px 11px;
  background: rgba(254,38,0,.10);
  border: 1px solid rgba(254,38,0,.38);
  border-radius: 12px;
  text-align: center;
  color: var(--ink);
}
.count__label { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.count__clock { display: flex; justify-content: center; gap: clamp(6px, 2.4vw, 14px); margin: 5px 0 1px; }
.count__unit { display: flex; flex-direction: column; align-items: center; min-width: 4em; }
.count__num {
  font-family: var(--wide);
  font-weight: 400;
  font-size: clamp(1.35rem, 6vw, 1.65rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}
.count__cap { margin-top: 2px; font-size: 11px; font-weight: 600; line-height: 1; color: var(--ink-2); }
.count__when, .count__gen { margin: 7px 0 0; font-size: 13px; line-height: 1.35; font-weight: 700; color: var(--flame-hi); }
.count__gen { margin-top: 1px; font-weight: 400; color: var(--ink-2); }
.count[data-phase="onsale"] .count__label { font-family: var(--wide); font-size: 1.1rem; font-weight: 400; text-transform: uppercase; color: var(--ink); }

/* Access note (Tom Jones wording), shown when its link is clicked: a native <details>. */
.access { margin: 14px 0 0; text-align: center; }
.access__link {
  display: inline-block;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.access__link::-webkit-details-marker { display: none; }
.access__link::after { content: " +"; text-decoration: none; display: inline-block; margin-left: 4px; color: var(--flame-hi); font-weight: 700; }
.access[open] .access__link::after { content: " \2212"; }
.access__link:hover { color: var(--flame-hi); }
.access__link:focus-visible { outline: 2px solid var(--flame-hi); outline-offset: 3px; }
.access .form__access { margin-top: 10px; }
.form__access { margin: 16px 0 0; padding: 11px 14px 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); text-align: left; border: 1px solid var(--line); border-radius: 12px; }
.form__access strong { font-weight: 700; color: var(--ink); }
.form__access a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form__access a:hover { color: var(--flame-hi); }
.form__access a:focus-visible { outline: 2px solid var(--flame-hi); outline-offset: 3px; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 11px; }
/* 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(--ink);
  background: var(--field);        /* OPAQUE - see the autofill rule below */
  border: 1px solid rgba(255,248,236,.16);
  border-radius: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: #9AA3C2; opacity: 1; }   /* 5.0:1 on --field */
.form__input:focus {
  outline: none;
  border-color: var(--flame-hi);
  box-shadow: 0 0 0 3px rgba(254,38,0,.20);
}
.form__input--otp {
  font-weight: 600;
  font-size: 22px;
  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(--ink) !important;
  caret-color: var(--ink);
  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: 15px 0 17px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--flame-hi);
  cursor: pointer;
}
/* Privacy line under the marketing tick box (kept out of the consent box itself). */
.form__note { margin: 9px 0 0 29px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.form__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--flame-hi); }

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

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .01em;
  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: 999px;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
/* The CTA: the bill's orange-red with the mark's navy type (4.7:1, bold 17px); hover goes white. Hover and
   focus set BOTH colour and background (gotcha 41). */
.btn--primary { color: var(--ink-btn); background: var(--flame); }
.btn--primary:hover:not(:disabled),
.btn--primary:focus-visible { color: var(--ink-btn); background: #FFFFFF; }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--flame-hi); outline-offset: 3px; }
.form__input:focus-visible { outline: none; }
.form__resend-btn:focus-visible,
.form__note a:focus-visible { outline: 2px solid var(--flame-hi); outline-offset: 3px; }

/* WhatsApp: white pill, green hairline, a solid green chip carrying the glyph. */
.btn--whatsapp {
  position: relative;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 6px;
  padding: 0 14px 0 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid #1DA851;
  font-size: clamp(.86rem, 3.6vw, .98rem);
}
.btn--whatsapp .btn__icon {
  align-self: stretch;
  width: 50px;
  height: auto;
  padding: 0 13px 0 15px;
  color: #06301A;                  /* 7.33:1 on the WhatsApp green */
  background: var(--whatsapp);
  box-sizing: border-box;
  flex: 0 0 auto;
}
.btn--whatsapp .btn__text { flex: 1 1 auto; text-align: center; padding-right: 4px; }
.btn--whatsapp:hover { background: #143A33; color: var(--ink); }
.btn--whatsapp:focus-visible { outline: 2px solid var(--flame-hi); 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; }
}

.wa { margin: 0; }
.wa-hook { margin: 18px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.wa-hook strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   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 (gotcha 19). */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  background: var(--field);
  border: 1px solid rgba(255,248,236,.18);
  border-radius: 8px;
  box-shadow: 0 22px 48px -16px rgba(0,0,0,.7);
  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 (gotcha 33). */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--field);
  border: 0;
  border-bottom: 1px solid rgba(255,248,236,.14);
}
.iti__search-input::placeholder { color: #9AA3C2; }
.iti__search-input:focus { outline: none; background: #262E55; }
.iti__country-list { background: var(--field); max-height: 240px; }
.iti__country {
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(254,38,0,.10); }
.iti__dial-code { color: var(--ink-2); }
.iti__country-name { color: var(--ink); }
.iti__selected-country { border-radius: 8px 0 0 8px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(254,38,0,.08); }
.iti__selected-dial-code { color: var(--ink); font-family: var(--font); font-size: 15px; }
.iti__arrow { border-top-color: var(--ink-2); }
.iti__arrow--up { border-bottom-color: var(--ink-2); }

/* ============================================================
   FOOTER - fleet pattern, credit in a pill.
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 14px var(--gutter) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--ink-2);
}
.foot__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.foot__legal a { color: var(--ink); text-decoration: none; }
.foot__legal a:hover { color: var(--flame-hi); text-decoration: underline; text-underline-offset: 2px; }
/* 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 var(--line);
}
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(255,248,236,.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { border-color: var(--flame-hi); }
.site-built img { display: block; opacity: .9; }
.foot a:focus-visible { outline: 2px solid var(--flame-hi); outline-offset: 3px; }

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

.foot__copy span { margin-left: .75em; padding-left: .85em; border-left: 1px solid var(--line); }
@media (max-width: 480px) {
  .foot__copy span { display: block; margin: 4px 0 0; padding: 0; border: 0; }
}

/* ============================================================
   FULL SCREEN TWO-UP (>= 900 wide, >= 5/4, >= 521 tall): the wide photo fills the window; the
   bill stands in the sky on the left, above the crowd, in navy ink; the card on the right.
   One screen, no scroll. Promoter marks on the crowd, bottom left, where the artwork has them.
   ============================================================ */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) and (min-height: 521px) {
  :root {
    --vh: max(100vh, 560px);
    --pr: clamp(28px, 7.5vw, 170px);   /* the card sits in from the right edge (Adam 30 Nov) */
    --gap: 40px;
    --foot: 48px;
    --avail: calc(100vw - var(--panel-w) - var(--pr) - var(--gap));
    /* as tall as ~63% of the window (height = width x .92), so the bill clears the crowd */
    --bill-w: min(calc(var(--avail) * .92), calc((var(--vh) - var(--foot)) * .72));   /* bigger (Adam 30 Nov) */
  }
  @supports (height: 100svh) { :root { --vh: max(100svh, 560px); } }
  /* the card (countdown + access note) can be taller than a short window: the photo stays fixed
     and the page scrolls; on a tall window it is still one screen */
  .page { min-height: var(--vh); }
  .scene { position: fixed; }
  .scene__bg {
    /* the whole photo, crowd included (Adam 30 Nov: "we're missing the people at the bottom") */
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    background: var(--ground) url("/rudimental/assets/images/bg-desktop.webp?v=20261202-1") center 100% / cover no-repeat;
    -webkit-mask-image: none; mask-image: none;
  }
  /* a little weight at the foot so the footer line reads on the crowd */
  .scene::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(3,2,2,0), rgba(3,2,2,.72));
  }
  .stage {
    flex: 1 0 auto;
    min-height: calc(var(--vh) - var(--foot));
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel-w);
    column-gap: var(--gap);
    align-items: center;
    padding: 14px var(--pr) 14px 0;
  }
  .bill { grid-column: 1; grid-row: 1; justify-self: center; align-self: start; margin: clamp(0px, calc(5vh - 14px), 42px) 0 0; position: sticky; top: clamp(14px, 5vh, 56px); }   /* lowered to sit level with the card (Adam 30 Nov) */
  .bill .bill__img--light { display: none; }
  .bill .bill__img--dark { display: block; }
  /* Sun haze behind the lower half of the bill (Adam 30 Nov: "some of the text ... very difficult
     to read"): the last lines ran over the dark palms and stage. A soft glow in the photo's own
     haze colour lifts the ground behind them, like the sun flare the poster sets its line-up on. */
  .bill { isolation: isolate; }
  .bill::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -14%; right: -14%; top: 34%; bottom: -13%;
    background: radial-gradient(closest-side, rgba(255,240,212,.96) 0, rgba(255,238,206,.90) 48%, rgba(255,236,200,.55) 72%, rgba(255,236,200,0) 100%);
    filter: blur(14px);
    pointer-events: none;
  }
  .signup { grid-column: 2; grid-row: 1; width: var(--panel-w); max-width: none; }
  .orgs {
    position: fixed;
    left: var(--gutter);
    bottom: calc(var(--foot) + 8px);
    width: clamp(150px, 13vw, 210px);
    margin: 0;
    filter: drop-shadow(0 1px 6px rgba(3,2,2,.55));
  }
  .foot { position: relative; z-index: 3; height: var(--foot); padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  .foot__right { flex-wrap: nowrap; }
  .foot__legal, .site-built a { white-space: nowrap; }
}
/* small laptops and landscape tablets: the one-line footer needs smaller type to fit */
@media (min-width: 900px) and (max-width: 1180px) and (min-aspect-ratio: 5/4) and (min-height: 521px) {
  :root { --panel-w: 430px; --pr: clamp(24px, 4vw, 60px); }
  .foot { gap: 10px; }
  .foot__right { gap: 12px; }
  .foot__legal { font-size: 11px; }
  .site-built a { font-size: 11px; padding: 4px 9px; }
}
/* very wide windows: the photo is cropped top and bottom, so the horizon sits higher; show more
   sky and keep the bill above the headland */
@media (min-width: 900px) and (min-aspect-ratio: 2/1) and (min-height: 521px) {
  :root { --bill-w: min(calc(var(--avail) * .86), calc((var(--vh) - var(--foot)) * .62)); }
  .scene__bg { background-position: center 70%; }
}

/* Short two-up windows (1100x700, 1280x720, 1366x768): same card, tighter rhythm. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) and (min-height: 521px) and (max-height: 820px) {
  .panel__inner { padding: 12px 24px 16px; }
  .spine { margin: 6px 0 10px; }
  .spine__step { padding: 5px 4px 4px; }
  .panel__title { font-size: 1.25rem; margin-bottom: 8px; }
  .panel__lede { font-size: 13.5px; line-height: 1.45; margin-bottom: 10px; }
  .count { padding: 7px 10px 8px; margin-bottom: 10px; }
  .count__clock { margin: 2px 0 0; }
  .count__num { font-size: 1.3rem; }
  .count__when { margin-top: 4px; font-size: 12px; }
  .count__gen { font-size: 12px; }
  .form__row { margin-bottom: 8px; }
  .form__input { padding: 10px 12px; }
  .form__row--check { margin: 9px 0 11px; }
  .form__note { margin-top: 5px; }
  .btn { min-height: 46px; padding-top: 9px; padding-bottom: 9px; }
  .form__access { margin-top: 10px; padding: 8px 12px 9px; font-size: 11.5px; line-height: 1.4; }
  .orgs { width: 140px; }
}

/* --- landscape phones are a first-class layout (gotcha 27) ---
   844x390, 932x430, 667x375: the wide photo fixed behind, the bill at screen height on the
   left, the compact card on the right; the page scrolls. Placed LAST so it wins. */
@media (min-width: 560px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  :root {
    --panel-w: 340px;
    --pr: var(--gutter);
    --avail: calc(100vw - var(--panel-w) - var(--pr) - 16px);
    /* ~64% of the screen height, so the whole bill stays on the sky above the stage and crowd */
    --bill-w: min(calc(var(--avail) * .92), calc(100vh * .68));
  }
  @supports (height: 100svh) { :root { --bill-w: min(calc(var(--avail) * .92), calc(100svh * .68)); } }
  .page { min-height: 100svh; }
  .scene { position: fixed; }
  .scene__bg {
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    background: var(--ground) url("/rudimental/assets/images/bg-desktop.webp?v=20261202-1") center 35% / cover no-repeat;
    -webkit-mask-image: none; mask-image: none;
  }
  .scene::after { content: none; }
  .stage {
    flex: 1 0 auto;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel-w);
    column-gap: 16px;
    align-items: start;
    padding: 12px var(--pr) 12px 0;
  }
  .bill { grid-column: 1; grid-row: 1 / span 2; justify-self: center; align-self: start; margin: 0; position: sticky; top: 6px; }
  .bill .bill__img--light { display: none; }
  .bill .bill__img--dark { display: block; }
  .signup { grid-column: 2; grid-row: 1; width: var(--panel-w); max-width: none; margin: 0; }
  .form__access { font-size: 11.5px; padding: 8px 12px 9px; }
  .orgs { position: static; grid-column: 2; grid-row: 2; width: 170px; margin: 16px auto 0; filter: drop-shadow(0 1px 6px rgba(3,2,2,.6)); }
  .panel__inner { padding: 12px 18px 16px; }
  .spine { margin: 6px 0 12px; }
  .spine__step { padding: 5px 4px 4px; font-size: 11px; }
  .panel__title { font-size: 1.2rem; margin-bottom: 8px; }
  .panel__lede { font-size: 13.5px; margin-bottom: 12px; }
  .count { padding: 7px 10px 8px; margin-bottom: 10px; }
  .count__num { font-size: 1.25rem; }
  .count__when, .count__gen { font-size: 12px; margin-top: 4px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding: 10px 12px; }
  .form__row--check { margin: 10px 0 12px; }
  .btn { min-height: 46px; padding-top: 9px; padding-bottom: 9px; }
  .foot { position: relative; z-index: 2; height: auto; padding-top: 6px; padding-bottom: 12px; flex-wrap: wrap; background: linear-gradient(180deg, rgba(3,2,2,0), rgba(3,2,2,.7)); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .scene__bg, html.js .bill { opacity: 1; transform: none; transition: none; }
}
