/* ============================================================
   Korolova, headline show. Roundhouse, London, Sat 27 Feb 2027.
   Client: Louder Entertainment (Broadwick Live presents).

   DIRECTION
   The artwork is a cold, pale studio shot of Korolova with a violet
   long-exposure afterimage smeared behind her, and the KORO / LOVA
   lockup cut through it. Layout is the fleet standard Adam asked for,
   artwork left and sign-up right, but full screen rather than boxed:
   the poster runs flush to the top, left and bottom edges, and the
   rest of the screen continues its own right-hand edge, so the
   artwork has no frame and simply carries on behind the sign-up.

   COLOUR - literal pixels from the supplied files:
     #07030C  lockup ink, the K stem          (1x1 poster)
     #ABB1BF -> #ECF1FA  poster right edge, top to bottom (the ground)
     #B1B3DE  afterimage violet, left of her  (artist.png)
     #4270C4  the most saturated blue in the smear (artist.png)
   #4270C4 is only 4.0:1 on the glass, so it is deepened to #2A4C96
   (6.77:1) wherever it carries text. Violet is structure only.

   TYPE - Unbounded (OFL) for titles and the bar: wide geometric
   capitals, the same family of shapes as the lockup. Jost (OFL) for
   everything you read. Capitals appear once, on the button, because
   the poster's ROUNDHOUSE bar does exactly that.

   SIGNATURE - the afterimage. The sign-up is a pane of frosted glass
   with three violet-blue ghosts of itself trailing up and to the left,
   the same smear that trails behind Korolova in the photograph. It
   slides in on load with the ghosts lagging, the ghosts flare and
   settle on every step change, and on desktop they lean away from the
   cursor. Everything else is kept quiet.
   ============================================================ */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/Unbounded-var.woff2?v=20261002-1") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-var.woff2?v=20261002-1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:      #07030C;   /* lockup ink: titles, the bar, footer band */
  --body:     #363A4A;   /* reading text, 9.35:1 on the glass */
  --dim:      #4F5466;   /* secondary text, 6.23:1 */
  --streak:   #2A4C96;   /* deepened smear blue: accent text, focus, 6.77:1 */
  --blue:     #4270C4;   /* literal smear blue - structure only */
  --violet:   #B1B3DE;   /* literal afterimage violet - structure only */
  --paper:    #F3F6FB;   /* text on ink */
  --field:    #FFFFFF;   /* form field - OPAQUE on purpose, see autofill note */
  --base:     #ECF1FA;   /* poster bottom edge, the ground below the art */
  --danger:   #B42B4A;   /* 5.14:1 on the glass */

  /* the poster's right-hand edge, sampled top to bottom (build_images.py) */
  --edge: linear-gradient(180deg,
    #ABB1BF 0%, #B3B9C7 8.3%, #BCC3CF 16.7%, #C3CBD8 25%, #C7CEDB 33.3%,
    #C7CEDC 41.7%, #C7CFDD 50%, #C9D1DF 58.3%, #CED7E4 66.7%, #D5DEEA 75%,
    #E0E7F0 83.3%, #E2E8F2 91.7%, #ECF1FA 100%);

  --display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --font:    "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::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 and the
   element stays on screen with no error anywhere. Keep this rule ABOVE
   everything that sets display, and never remove it. */
[hidden] { display: none !important; }

/* Ground colour lives on html, NOT body: an opaque body background paints over
   the fixed .ground layer. */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--base);
}

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

/* ---------- ground ----------
   Stacked layouts: the poster's bottom-edge colour. Two-column layouts (below)
   swap in the right-edge gradient, sized to the art's height. Fixed rather
   than on body, because background-attachment:fixed is ignored on iOS and the
   art square is sticky. */
.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--base);
}

/* ============================================================
   STAGE - stacked by default (phones, portrait tablets,
   squarish windows): art full width, sign-up beneath it.
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  display: block;
}

.art { position: relative; width: 100%; }
.art__h1 { margin: 0; }
.art__img {
  display: block;
  width: 100%;
  height: auto;
  animation: artIn 1.1s cubic-bezier(.16,.84,.36,1) both;
}
@keyframes artIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   SIGN-UP - the afterimage
   ============================================================ */
.signup {
  --px: 0;                 /* pointer, -1..1, written by app.js on desktop */
  --py: 0;
  position: relative;
  isolation: isolate;      /* ghosts and glass stack among themselves only */
  width: min(100% - 32px, 460px);
  /* tucks a few px into the poster's foot, so the glass reads as lying ON
     the artwork; kept small so the promoter logos stay clear */
  margin: -3vw auto 34px;
}

/* --- the ghosts ---
   Three copies of the pane's footprint, each further up-left, wider, softer
   and fainter, like successive exposures. The intro and the flare animate the
   individual `translate` / `scale` properties; the pointer drift uses
   `transform`. They compose, so neither ever overrides the other. */
.smear {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.smear i {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 4px;
  background: linear-gradient(105deg,
    rgba(66,112,196,0) 0%, rgba(66,112,196,.55) 34%,
    rgba(177,179,222,.75) 72%, rgba(243,246,251,.35) 100%);
  transform-origin: 100% 50%;
  translate: var(--dx) var(--dy);
  scale: var(--sx) 1;
  transform: translate3d(calc(var(--px) * var(--k)), calc(var(--py) * var(--k)), 0);
  filter: blur(var(--b));
  opacity: var(--o);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  animation: smearIn 1.25s cubic-bezier(.16,.84,.36,1) var(--dl) both;
  will-change: transform, translate;
}
/* nearest exposure carries the horizontal streaks seen in the photo's smear */
.smear i:nth-child(1) {
  --dx: -14px; --dy: -9px;  --sx: 1.02; --b: 2.5px; --o: .62; --k: -7px;  --dl: .22s;
  background:
    repeating-linear-gradient(180deg, rgba(243,246,251,0) 0 6px, rgba(243,246,251,.5) 6px 7px),
    linear-gradient(105deg,
      rgba(66,112,196,0) 0%, rgba(66,112,196,.55) 34%,
      rgba(177,179,222,.75) 72%, rgba(243,246,251,.35) 100%);
}
.smear i:nth-child(2) { --dx: -36px; --dy: -21px; --sx: 1.06; --b: 9px;  --o: .44; --k: -16px; --dl: .30s; }
.smear i:nth-child(3) { --dx: -70px; --dy: -34px; --sx: 1.12; --b: 22px; --o: .30; --k: -28px; --dl: .38s; }

@keyframes smearIn {
  from { translate: calc(var(--dx) * 3.2) calc(var(--dy) * .4); scale: calc(var(--sx) + .3) 1; opacity: 0; }
  to   { translate: var(--dx) var(--dy);                         scale: var(--sx) 1;        opacity: var(--o); }
}
/* step change: the trail stretches out and snaps back (app.js adds the class) */
.signup.is-flaring .smear i {
  animation: smearFlare .95s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes smearFlare {
  0%   { translate: var(--dx) var(--dy); scale: var(--sx) 1; opacity: var(--o); }
  28%  { translate: calc(var(--dx) * 2.6) calc(var(--dy) * 1.3); scale: calc(var(--sx) + .18) 1; opacity: calc(var(--o) * 1.3); }
  100% { translate: var(--dx) var(--dy); scale: var(--sx) 1; opacity: var(--o); }
}

/* --- the glass --- */
.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  isolation: isolate;      /* keeps the country dropdown above everything */
  /* Near-opaque on purpose (Adam, 2026-10-02: the box read blue). The ghosts
     sit directly BEHIND the pane, so a translucent glass blurred them across
     its whole face. At .95/.92 they only show where they stick out past the
     edges, which is the trail; the blur just softens what little comes through. */
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(246,248,252,.93));
  -webkit-backdrop-filter: blur(18px) saturate(105%);
          backdrop-filter: blur(18px) saturate(105%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(66,112,196,.14),
    0 2px 6px rgba(24,28,52,.06),
    0 44px 80px -36px rgba(24,28,60,.55);
  animation: panelIn 1s cubic-bezier(.16,.84,.36,1) .12s both;
  overflow: visible;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .panel { background: rgba(246,248,252,.96); }
}
@keyframes panelIn {
  from { opacity: 0; translate: -40px 0; }
  to   { opacity: 1; translate: 0 0; }
}
.panel__inner { position: relative; z-index: 1; padding: clamp(24px, 3vw, 34px); }

/* --- 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 real sequence:
   form, SMS code, email link. Outside the state wrappers.
   ============================================================ */
.spine {
  display: flex;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid rgba(7,3,12,.14);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.45);
}
.spine__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 6px 8px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--dim);
  transition: color .25s ease, background-color .25s ease;
}
.spine__step + .spine__step { border-left: 1px solid rgba(7,3,12,.12); }
.spine__n {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.spine__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* current step */
.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(7,3,12,.05);
}
.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(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
/* completed steps: the numeral is replaced by a tick in the smear blue */
.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(--streak);
}
.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(--streak);
  background: rgba(66,112,196,.12);
}
.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(--streak);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
@media (max-width: 400px) {
  .spine__step { font-size: 12px; gap: 5px; padding: 8px 3px 7px; }
  .spine__n { width: 16px; height: 16px; }
}

/* ============================================================
   PANEL COPY
   ============================================================ */
.panel__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
/* House pattern across the fleet: the second line of the title carries the
   accent. <em> so the emphasis is in the markup, reset from italic. */
.panel__title em { font-style: normal; color: var(--streak); }
.panel__lede {
  margin: 0 0 10px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--body);
  max-width: 42ch;
}
.panel__lede--last { margin-bottom: 22px; }
.panel__success-note { margin: 0 0 12px; color: var(--streak); font-size: 15px; }

/* ============================================================
   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 15px;
  font-family: var(--font);
  font-size: 16px;                /* 16px minimum or iOS zooms the page on focus */
  color: var(--ink);
  background: var(--field);       /* OPAQUE - see the autofill rule below */
  border: 1px solid rgba(7,3,12,.18);
  border-radius: 2px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: #767B8C; }
.form__input:focus {
  outline: none;
  border-color: var(--streak);
  box-shadow: 0 0 0 3px rgba(66,112,196,.22);
}
.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 /
   background-color on :-webkit-autofill - a huge inset box-shadow is the only
   reliable override. A box-shadow cannot be semi-transparent, so the colour
   must be the FLATTENED OPAQUE equivalent of the field's rendered stack. That
   is trivially --field (#FFF) here because the field is opaque on purpose;
   keep it opaque, or this value has to be recomputed against the glass. */
.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: 14px; 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.
   The markup also carries the `hidden` attribute as a second guard. */
.hp-row { display: none !important; }

.form__row--check { margin: 16px 0 20px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--body);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.form__check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form__check a:hover { color: var(--streak); }

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

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.04rem;
  white-space: nowrap;            /* shrink the type before it can ever wrap */
  text-align: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, filter .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
/* The ROUNDHOUSE bar from the poster: ink slab, wide-tracked capitals.
   Hover splits it into the smear's blue and violet, the chromatic fringe
   on the lockup. text-indent re-centres what the tracking pushes left. */
.btn--primary {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(.8rem, 3.3vw, .92rem);
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border-radius: 0;
}
.btn--primary:hover:not(:disabled),
.btn--primary:focus-visible {
  box-shadow: -3px 0 0 var(--blue), 3px 0 0 var(--violet);
}
/* WhatsApp brand green; dark green type on it, as fleet-wide. */
.btn--whatsapp {
  color: #06301A;
  background: #25D366;
  border-radius: 2px;
  margin-top: 4px;
}
.btn--whatsapp:hover { filter: brightness(1.05); }
.btn__icon { flex: 0 0 auto; width: 20px; height: 20px; }

.wa-hook { margin: 18px 0 12px; font-size: 15px; color: var(--body); }
.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. */
.iti__dropdown-content.iti__hide { display: none !important; }

.iti__dropdown-content {
  background: #FFFFFF;
  border: 1px solid rgba(7,3,12,.16);
  border-radius: 2px;
  box-shadow: 0 26px 56px -18px rgba(24,28,60,.45);
  overflow: hidden;
}
.iti__search-input {
  /* Keep the vendor's horizontal padding reservation: 30px left clears the
     absolutely positioned search icon, 28px right clears the clear button. A
     padding SHORTHAND that drops them puts the magnifier on top of the
     placeholder text. Set the vertical values, keep the horizontal ones. */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid rgba(7,3,12,.12);
}
.iti__search-input::placeholder { color: #767B8C; }
.iti__search-input:focus { outline: none; background: #E9EEF6; }
.iti__country-list { background: #FFFFFF; max-height: 240px; }
.iti__country {
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(66,112,196,.10); }
.iti__dial-code { color: var(--dim); }
.iti__country-name { color: var(--ink); }
.iti__selected-country { border-radius: 2px 0 0 2px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(66,112,196,.08); }
.iti__selected-dial-code { color: var(--ink); font-family: var(--font); font-size: 16px; }
.iti__arrow { border-top-color: var(--dim); }
.iti__arrow--up { border-bottom-color: var(--dim); }

/* ============================================================
   FOOTER - fleet band (basslayerz pattern, credit in a pill),
   in the lockup ink so the light credit logo sits on dark.
   ============================================================ */
.foot {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 24px;
  background: 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: 13px; color: #B9BED0; letter-spacing: .01em; }
.foot__legal a { color: #B9BED0; text-decoration: none; }
.foot__legal a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: 12.5px;
  color: #B9BED0;
  text-decoration: none;
  border: 1px solid rgba(243,246,251,.24);
  border-radius: 999px;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { color: var(--paper); border-color: var(--violet); }
.site-built img { display: block; opacity: .9; }

@media (max-width: 899px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}
/* Phones: stack the footer rather than relying on the flex row wrapping
   (around 390px the row only just fills the band and reads left-aligned). */
@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; }
}

/* ============================================================
   TWO COLUMN - artwork flush left at full height, sign-up on
   the continued ground. Aspect-ratio threshold, not width alone:
   below 5/4 the art would shrink too far beside a 440px pane,
   so squarish windows and portrait tablets stay stacked.
   --art is the square's side: full height, unless that would
   leave the sign-up column narrower than 520px.
   ============================================================ */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  :root { --art: min(100vh, 100vw - 520px); }
  @supports (height: 100svh) { :root { --art: min(100svh, 100vw - 520px); } }

  .ground {
    background: var(--edge) 0 0 / 100% var(--art) no-repeat, var(--base);
  }
  .stage {
    display: grid;
    grid-template-columns: var(--art) minmax(0, 1fr);
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
  }
  .art {
    position: sticky;
    top: 0;
    align-self: start;
    width: var(--art);
    height: var(--art);
    /* feather the right and bottom edges into the ground: the ground IS the
       right edge, so this only hides sub-pixel and compression seams */
    -webkit-mask-image:
      linear-gradient(90deg, #000 96%, transparent),
      linear-gradient(180deg, #000 95%, transparent);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(90deg, #000 96%, transparent),
      linear-gradient(180deg, #000 95%, transparent);
            mask-composite: intersect;
  }
  .art__img { width: 100%; height: 100%; object-fit: cover; }
  .signup {
    justify-self: center;
    width: min(100% - 80px, 440px);
    margin: 48px 40px 48px 56px;   /* room on the left for the trail */
  }
}

/* --- landscape phones are a first-class layout ---
   A rotated phone (844x390, 932x430, 667x375) has width but almost no height.
   Same side-by-side idea, art at full height, the pane scrolls past it with
   tighter type. Placed AFTER the desktop block so it wins at equal
   specificity (932x430 matches both). */
@media (min-width: 640px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  :root { --art: min(100vh, 100vw - 340px); }
  @supports (height: 100svh) { :root { --art: min(100svh, 100vw - 340px); } }

  .ground {
    background: var(--edge) 0 0 / 100% var(--art) no-repeat, var(--base);
  }
  .stage {
    display: grid;
    grid-template-columns: var(--art) minmax(0, 1fr);
    align-items: start;
    min-height: 0;
  }
  .art {
    position: sticky;
    top: 0;
    align-self: start;
    width: var(--art);
    height: var(--art);
    -webkit-mask-image: linear-gradient(90deg, #000 95%, transparent);
            mask-image: linear-gradient(90deg, #000 95%, transparent);
  }
  .art__img { width: 100%; height: 100%; object-fit: cover; }
  .signup {
    justify-self: center;
    width: calc(100% - 44px);
    max-width: 440px;
    margin: 20px 14px 20px 30px;
  }
  .smear i:nth-child(3) { --dx: -40px; --dy: -22px; }
  .panel__inner { padding: 16px 18px; }
  .spine { margin-bottom: 12px; }
  .panel__title { font-size: 1.25rem; margin-bottom: 6px; }
  .panel__lede { font-size: 14.5px; margin-bottom: 7px; }
  .panel__lede--last { margin-bottom: 12px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding: 10px 13px; }
  .form__row--check { margin: 11px 0 13px; }
  .form__check { font-size: 12.5px; }
  .btn { padding: 12px 16px; }
  .iti__country-list { max-height: 150px; }
}

/* --- small phones: smaller trail so it never runs off the left edge --- */
@media (max-width: 480px) {
  .smear i:nth-child(1) { --dx: -8px;  --dy: -7px; }
  .smear i:nth-child(2) { --dx: -14px; --dy: -15px; }
  .smear i:nth-child(3) { --dx: -16px; --dy: -24px; --sx: 1.04; }
}
@media (max-width: 400px) {
  .panel__inner { padding: 22px 18px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--streak);
  outline-offset: 2px;
}
.foot :focus-visible { outline-color: var(--violet); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SALE DATES + COUNTDOWN (added 2026-10-02, Adam)
   Presale Tue 13 Oct 10am, general sale Wed 14 Oct 10am (UK).
   A frosted inset inside the glass: four even cells of Unbounded
   digits, then the two dates. The sale that is next carries a
   smear-blue marker, driven by data-sale-phase from app.js.
   ============================================================ */
.sale {
  margin: 0 0 20px;
  padding: 13px 16px 12px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(7,3,12,.12);
  border-radius: 2px;
}
.sale--compact { margin: 4px 0 18px; }
.sale__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}
.sale__clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 2px;
}
.sale__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 4px;
}
.sale__cell + .sale__cell { border-left: 1px solid rgba(7,3,12,.12); }
.sale__cell b {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.sale__cell i {
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .02em;
}
.sale__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(7,3,12,.10);
}
.sale__date dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--dim);
}
.sale__date dd {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
/* the next sale gets the marker */
.sale[data-sale-phase="before"]  .sale__date[data-phase="presale"] dt::before,
.sale[data-sale-phase="presale"] .sale__date[data-phase="gensale"] dt::before,
.sale[data-sale-phase="onsale"]  .sale__date[data-phase="gensale"] dt::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(66,112,196,.18);
}
/* once presale is open, its date is history */
.sale[data-sale-phase="presale"] .sale__date[data-phase="presale"] dd,
.sale[data-sale-phase="onsale"]  .sale__date[data-phase="presale"] dd { color: var(--dim); font-weight: 500; }

@media (max-width: 360px) {
  .sale { padding: 12px 10px 11px; }
  .sale__date dd { font-size: 14px; }
}
/* landscape phones: tighter, same structure */
@media (min-width: 640px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  .sale { padding: 8px 12px 8px; margin-bottom: 12px; }
  .sale__label { font-size: 13px; margin-bottom: 4px; }
  .sale__cell b { font-size: 1.1rem; }
  .sale__cell i { font-size: 11px; }
  .sale__dates { margin-top: 7px; padding-top: 6px; }
  .sale__date dd { font-size: 13.5px; }
}
