/* ============================================================
   ROYAL BLOOD - On The Beach Brighton, Sunday 11 July 2027
   /royalblood/ folder of onthebeachbrighton.com. Built 25 Nov 2026 from the /jungle/ engine.

   The poster is a blood-red banner with a bone edge, flames, a two-headed white tiger and a
   hand-drawn wordmark, all on pure black. The page keeps that black (#000, the print's own
   black, so the art crop has no edge) and lets the banner float unboxed on the left; the
   type block (Summer Tour / Soft Play / Bad Nerves / 11/07/27) sits under it as on the poster.

   The memorable thing: the tiger. One motion only: its eyes light up once on load
   (eyes.png = the PSD eye layer in ember, masked to the red irises). Reduced motion = lit, still.
   The sign-up is a bone card (the banner's bone edge) with a blood keyline inside it.

   Colours sampled from the PSD: blood #A0172C (plate + SUMMER TOUR), bone #D0CEBE (border +
   SOFT PLAY), black #000. Type: Pirata One (OFL) for the panel titles, after the poster's
   blackletter SUMMER TOUR; Archivo (OFL) for everything else, after its grotesk SOFT PLAY.
   ============================================================ */
@font-face {
  font-family: "Archivo";
  src: url("/royalblood/assets/fonts/Archivo-wdth.woff2?v=20261124-1") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pirata One";
  src: url("/royalblood/assets/fonts/PirataOne.woff2?v=20261125-1") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --black: #000;
  --blood: #A0172C;
  --blood-hi: #B81D35;
  --blood-deep: #6E0F1E;
  --bone: #D0CEBE;
  --bone-hi: #E2DFD1;
  --field-bg: #F2F0E7;
  --ink: #000;
  --danger: #7A0E1F;
  --whatsapp: #25D366;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Pirata One", "Archivo", serif;
  --gutter: 16px;

  /* engine tokens (spine, form, iti) - the form lives on the bone card */
  --paper: var(--ink);
  --mist: var(--ink);
  --mist-dim: #5B574C;
  --line: rgba(0,0,0,.25);
  --field: var(--field-bg);
  --panel: var(--field-bg);
  --yellow: var(--blood);
  --yellow-hi: var(--blood-hi);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  color: var(--bone);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow-x: clip;
}
.stage { flex: 1 0 auto; position: relative; padding: 0 0 28px; }

/* ---------- the art: banner + tiger + wordmark, then the poster's type block ---------- */
.art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 4vw, 26px);
  padding: clamp(18px, 5vw, 40px) 12px clamp(28px, 7vw, 48px);
  text-align: center;
}
.art__plate { position: relative; margin: 0; width: min(94vw, 560px); line-height: 0; }
.art__plate img { display: block; width: 100%; height: auto; }
/* the eye layer, positioned in % of the art crop by build_images.py */
.art__plate .art__eyes {
  position: absolute;
  left: 36.494%; top: 64.623%; width: 27.874%; height: auto;
  pointer-events: none;
}
.art__lockup { display: block; width: min(58vw, 300px); height: auto; }

/* ---------- motion (html.motion = JS on and no reduced-motion request; set in <head>) ----------
   Layers all share the art box, so each sits at inset 0 over .art__base.
   #2 stamp: the wordmark presses onto the banner when its image has loaded (.is-in from its onload),
   the banner takes a small jolt on impact, then the eyes ignite.
   #1 boil: .art__boil steps through 3 frames of plate + flames, ~8 fps (a hand-drawn line boil).
   #4 bolts: the six zigzag bolts, three sets, each misfires now and then on its own clock.
   The moving layers stay invisible until every one of them has loaded (.is-ready), so no half-built frame. */
.art__plate > .art__logo,
.art__motion,
.art__motion > * { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.art__motion { height: 100%; opacity: 0; }
.art__motion.is-ready { opacity: 1; }
.art__boil { height: 100%; background: 0 0 / 100% 300% no-repeat; }
.art__plate .art__eyes { z-index: 2; }

.motion .art__logo { opacity: 0; }
.motion .art__plate.is-in .art__logo { animation: stamp .46s cubic-bezier(.3,.7,.2,1) .2s both; }
.motion .art__plate.is-in { animation: jolt .32s ease-out .52s both; }
.motion .art__plate .art__eyes { opacity: 0; }
.motion .art__plate.is-in .art__eyes { animation: ignite 2.2s steps(1, end) 1.05s both, ember 1.4s ease-out 3.25s both; }
.motion .art__motion.is-ready .art__boil { animation: boil .375s steps(1, end) infinite; }
.motion .art__motion.is-ready .art__bolt-a { animation: misfire 6.2s linear 2.4s infinite; }
.motion .art__motion.is-ready .art__bolt-b { animation: misfire 7.9s linear 4.1s infinite; }
.motion .art__motion.is-ready .art__bolt-c { animation: misfire 9.7s linear 1.7s infinite; }

/* pressed on like a print: drops from above the sheet, slightly oversized, lands, settles */
@keyframes stamp {
  0%   { opacity: 0; transform: translateY(-3%) scale(1.28); }
  55%  { opacity: 1; transform: translateY(0) scale(.975); }
  75%  { transform: scale(1.012); }
  100% { opacity: 1; transform: none; }
}
@keyframes jolt {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(.45%); }
  100% { transform: none; }
}
@keyframes boil {
  0%      { background-position: 0 0; }
  33.333% { background-position: 0 50%; }
  66.667% { background-position: 0 100%; }
}
/* a faulty strike: on, then a double blink near the end of each cycle */
@keyframes misfire {
  0%, 86% { opacity: 1; }
  87%     { opacity: 0; }
  88.5%   { opacity: 1; }
  90%     { opacity: 0; }
  92%, 100% { opacity: 1; }
}
/* a struck match: two misfires, then it catches and settles */
@keyframes ignite {
  0%   { opacity: 0; }
  12%  { opacity: .9; }
  18%  { opacity: 0; }
  40%  { opacity: .6; }
  46%  { opacity: 0; }
  70%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes ember { from { filter: brightness(1.5); } to { filter: none; } }

/* ---------- the sign-up: the banner's bone edge, a blood keyline inside ---------- */
.signup {
  position: relative;
  z-index: 4;
  width: calc(100% - 2 * var(--gutter));
  max-width: 440px;
  margin: 0 auto;
}
.panel {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: var(--bone);
  outline: 2px solid var(--blood);
  outline-offset: -9px;
}
.panel__inner { padding: 32px 28px 30px; container-type: inline-size; }
.panel__title .tl { display: block; white-space: nowrap; }
.panel__state { display: none; text-align: center; }
.panel[data-form-state="idle"]    .panel__idle,
.panel[data-form-state="otp"]     .panel__otp,
.panel[data-form-state="success"] .panel__success { display: block; }
.panel__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  /* ALWAYS two lines (the Jungle lesson, 24 Nov): each title is two nowrap lines and the size is
     capped by the card's own width. Widest line "your number" is 4.60em in Pirata One, so
     100cqi / 4.9 always fits. --ts is the size a layout would like. */
  --ts: 3.1rem;
  font-size: var(--ts);
  font-size: min(var(--ts), calc(100cqi / 4.9));
  line-height: .92;
  letter-spacing: .005em;
  color: var(--blood);
}
/* ============================================================
   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);
  border-radius: 3px;
  overflow: hidden;
}
.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: 700;
  font-size: 12px;
  color: var(--mist-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-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: transparent;
}
.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(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.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(--blood);
}
.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(--blood);
}
.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(--blood);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
@media (max-width: 400px) {
  .spine__step { font-size: 11px; gap: 5px; padding: 8px 3px 7px; }
  .spine__n { width: 15px; height: 15px; }
}

/* ============================================================
   PANEL COPY
   ============================================================ */
.panel__lede {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--mist);
  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(--blood); 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(194,211,212,.30);
  border-radius: 2px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: var(--mist-dim); opacity: 1; }
.form__input:focus {
  outline: none;
  border-color: var(--blood);
  box-shadow: 0 0 0 3px rgba(255,255,255,.22);
}
.form__input--otp {
  font-weight: 700;
  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(--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(--mist);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--yellow);
  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(--mist); }
.form__note a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--blood); }

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

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  font-family: var(--font);
  font-weight: 700;
  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: 3px;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, filter .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { color: var(--ink); background: var(--yellow); }
.btn--primary:hover:not(:disabled) { background: var(--yellow-hi); }
.btn--whatsapp {
  color: #06301A;                  /* 7.33:1 on the WhatsApp green */
  background: var(--whatsapp);
  margin-top: 4px;
}
.btn--whatsapp:hover { filter: brightness(1.06); }
.btn__icon { flex: 0 0 auto; width: 19px; height: 19px; }

.wa-hook { margin: 18px 0 12px; font-size: 13.5px; color: var(--mist); }
.wa-hook strong { color: var(--paper); font-weight: 700; }

/* ============================================================
   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(255,255,255,.45);
  border-radius: 3px;
  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(255,255,255,.30);
}
.iti__search-input::placeholder { color: var(--mist-dim); }
.iti__search-input:focus { outline: none; background: #0E1A24; }
.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(134,231,232,.16); }
.iti__dial-code { color: var(--mist-dim); }
.iti__country-name { color: var(--paper); }
.iti__selected-country { border-radius: 3px 0 0 3px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(134,231,232,.14); }
.iti__selected-dial-code { color: var(--paper); font-family: var(--font); font-size: 15px; }
.iti__arrow { border-top-color: var(--mist-dim); }
.iti__arrow--up { border-bottom-color: var(--mist-dim); }


/* ============================================================
   THIS BUILD: the form on the bone card. Ink on bone, pale fields, square geometry,
   blood buttons with bone type (4.98:1).
   ============================================================ */
.spine { justify-content: center; gap: 14px; margin: 0 auto 16px; border: 0; border-radius: 0; overflow: visible; }
.spine__step { flex: 0 0 auto; padding: 0; gap: 6px; font-size: 12.5px; font-weight: 700; color: rgba(0,0,0,.5); }
.spine__step + .spine__step { border-left: 0; }
/* Digits dead centre (otb-tomjones lesson): block + cap-trim padding, never a flex circle. */
.spine__n {
  box-sizing: border-box;
  width: 18px; height: 18px;
  display: block;
  padding: calc((16px - 1cap) / 2) 0 0;
  text-align: center;
  font-size: 10.5px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  border-radius: 2px;
  text-box: trim-both cap alphabetic;
}
.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) { background: none; color: var(--ink); }
.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 { color: var(--bone-hi); background: var(--blood); border-color: var(--blood); }
.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(--ink); }
.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 {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.1 6.5 11.4 12.8 4.6' fill='none' stroke='%23D0CEBE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
  border-color: var(--ink);
}
.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 { display: none; }

.panel__lede { max-width: 36ch; margin: 0 auto 16px; font-size: 15.5px; font-weight: 500; line-height: 1.42; color: var(--ink); }
.panel__lede--last { margin-bottom: 16px; }
.panel__lede strong { color: var(--ink); font-weight: 800; }
.form { text-align: left; }
.form__row { margin-bottom: 10px; }
.form__label {
  position: static;
  display: block;
  width: auto; height: auto;
  margin: 0 0 4px;
  overflow: visible;
  clip: auto;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}
.form__input {
  padding: 12px 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--field-bg);
  border: 2px solid var(--ink);
  border-radius: 0;
}
.form__input::placeholder { color: #6E6A5E; font-weight: 400; }
.form__input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(160,23,44,.45); }
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
}
.form__input--otp { text-align: center; }
.form__error { font-weight: 700; color: var(--danger); }
.form__row--check { margin: 14px 0; }
.form__check { font-size: 13px; line-height: 1.42; font-weight: 500; color: var(--ink); }
.form__check input { accent-color: var(--blood); }
.form__note { margin: 6px 0 0 29px; font-size: 12.5px; line-height: 1.42; color: var(--ink); }
.form__note a { color: var(--ink); font-weight: 750; }
.form__note a:hover { color: var(--blood); }
.form__resend { color: var(--ink); font-weight: 500; }
.form__resend-btn { color: var(--ink); font-weight: 750; }
.panel__success-note { color: var(--ink); font-weight: 700; }
.wa-hook { color: var(--ink); font-weight: 500; margin: 14px 0 10px; }

/* Buttons: the poster's grotesk caps, bone on blood. */
.btn {
  border-radius: 0;
  font-family: var(--font);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.btn--primary { color: var(--bone-hi); background: var(--blood); }
.btn--primary:hover:not(:disabled) { background: var(--blood-deep); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* intl-tel-input, ink on the pale field */
.iti__dropdown-content { background: var(--field-bg); border: 2px solid var(--ink); border-radius: 0; box-shadow: 0 18px 40px -14px rgba(0,0,0,.8); }
.iti__search-input { color: var(--ink); background: #E9E6DA; border-bottom: 1px solid #BDB9AA; }
.iti__search-input::placeholder { color: #6E6A5E; }
.iti__search-input:focus { background: #E2DECF; }
.iti__country-list { background: var(--field-bg); }
.iti__country, .iti__country-name { color: var(--ink); }
.iti__dial-code { color: #55514A; }
.iti__country:hover, .iti__country.iti__highlight { background: rgba(160,23,44,.14); }
.iti__selected-country { border-radius: 0; padding-left: 6px; }
.iti__selected-country:hover, .iti__selected-country-primary:hover { background: rgba(160,23,44,.12); }
.iti__selected-dial-code { color: var(--ink); font-weight: 500; }
.iti__arrow { border-top-color: var(--ink); }
.iti__arrow--up { border-bottom-color: var(--ink); }

/* WhatsApp: green disc in the black bar */
.btn--whatsapp {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 6px 16px 6px 6px;
  min-height: 56px;
  color: var(--bone-hi);
  background: var(--ink);
  font-size: clamp(.86rem, 3.9vw, 1rem);
}
.btn--whatsapp .btn__icon { width: 44px; height: 44px; padding: 10px; border-radius: 0; color: #06301A; background: var(--whatsapp); }
.btn--whatsapp .btn__text { flex: 1 1 auto; text-align: center; }
.btn--whatsapp:hover { filter: none; background: var(--blood-deep); }

/* access note (OTB Brighton venue copy, as on /twodoor/ + /jungle/) */
.form__access { margin: 18px 0 0; padding: 12px 14px 13px; font-size: 13px; line-height: 1.45; font-weight: 450; color: var(--ink); text-align: left; background: rgba(242,240,231,.55); border: 2px solid var(--ink); }
.form__access strong { font-weight: 800; }
.form__access a { color: var(--ink); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }

/* Organisers + presenter: the poster's own strip (OTB, Louder, C2, JOY + Radio X), bone on black. */
.orgs { display: block; width: 280px; max-width: 100%; height: auto; margin: 26px auto 0; }

/* ---------- footer: the house format ---------- */
.foot {
  flex-shrink: 0;
  width: 100%;
  padding: 14px 18px 16px;
  background: transparent;
  border-top: 1px solid rgba(208,206,190,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--bone); }
.foot__legal a { color: var(--bone); text-decoration: none; }
.foot__legal a:hover { color: #fff; text-decoration: underline; }
.foot__copy span { margin-left: .75em; padding-left: .85em; border-left: 1px solid rgba(208,206,190,.4); }
.foot__links a + a,
.foot__legal [data-louder-consent-open] { margin-left: .75em; padding-left: .85em; border-left: 1px solid rgba(208,206,190,.4); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(208,206,190,.4);
  border-radius: 999px;
  font-size: 12px;
  color: var(--bone);
  text-decoration: none;
  transition: border-color .18s ease;
}
.site-built a:hover { border-color: var(--bone); }
.site-built img { display: block; opacity: .95; }
.foot a:focus-visible { outline: 2px solid var(--bone); 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; gap: 10px; padding-bottom: 18px; }
  .foot__right { flex-direction: column; gap: 10px; }
  .panel__inner { padding: 30px 22px 26px; }
}

/* ---------- side by side: genuinely landscape screens ----------
   Art column (banner + type block) and the card centred as ONE group. The art is sized
   by the window HEIGHT as well as width (art 0.973 tall per unit wide + type block at 40%
   = 1.34 x width + gap) so the whole poster always fits on one screen and sticks while a
   long card scrolls. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) and (min-height: 521px) {
  :root {
    --pw: clamp(360px, 27vw, 420px);
    --gap: clamp(32px, 6vw, 110px);
    --aw: min(44vw, 640px, calc((100svh - 140px) / 1.34));
  }
  .stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
    padding: 0 clamp(16px, 3vw, 48px);
    min-height: calc(100svh - 58px);
  }
  .art {
    flex: 0 0 var(--aw);
    width: var(--aw);
    gap: 18px;
    padding: 24px 0;
    position: sticky;
    top: 0;
    align-self: center;
  }
  .art__plate { width: 100%; }
  .art__lockup { width: 40%; }
  .signup {
    flex: 0 0 var(--pw);
    width: var(--pw);
    max-width: none;
    margin: 0;
    padding: 28px 0;
  }
  .panel__inner { padding: 34px 32px 32px; }
  .panel__title { --ts: 3.3rem; }
}
/* Short laptops: keep the whole card on one screen. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) and (min-height: 521px) and (max-height: 820px) {
  .signup { padding: 14px 0; }
  .panel__inner { padding: 24px 26px 22px; }
  .spine { margin-bottom: 10px; }
  .panel__title { --ts: 2.7rem; margin-bottom: 6px; }
  .panel__lede { font-size: 14.5px; margin-bottom: 10px; }
  .form__row { margin-bottom: 6px; }
  .form__input { padding: 8px 12px; }
  .form__row--check { margin: 10px 0; }
  .btn:not(.btn--whatsapp) { padding: 12px 16px; font-size: 16px; }
  .form__access { margin-top: 12px; padding: 9px 12px 10px; font-size: 12.5px; }
  .orgs { width: 230px; margin-top: 14px; }
}

/* ---------- landscape phones (gotcha 27): the same pairing, smaller ---------- */
@media (min-width: 560px) and (min-aspect-ratio: 3/2) and (max-height: 520px) {
  :root { --pw: 320px; --gap: 22px; --aw: min(42vw, calc((100svh - 36px) / 1.34)); }
  .stage { display: flex; align-items: flex-start; justify-content: center; gap: var(--gap); padding: 0 8px 10px; }
  .art {
    flex: 0 0 var(--aw);
    width: var(--aw);
    gap: 10px;
    padding: 14px 0;
    position: sticky;
    top: 0;
    min-height: 100svh;
    justify-content: center;
  }
  .art__plate { width: 100%; }
  .art__lockup { width: 40%; }
  .signup { flex: 0 0 var(--pw); width: var(--pw); max-width: none; margin: 0; padding: 12px 0; }
  .panel__inner { padding: 22px 20px 20px; }
  .panel__title { --ts: 2.2rem; margin-bottom: 6px; }
  .panel__lede { font-size: 14px; margin-bottom: 8px; }
  .form__row { margin-bottom: 6px; }
  .form__input { padding: 8px 12px; }
  .btn:not(.btn--whatsapp) { padding: 11px 14px; font-size: 15px; }
  .orgs { width: 220px; margin-top: 14px; }
}

/* WhatsApp label fit (Adam 17 Nov 16:23: "group" ran over the button edge): size from the
   button's own width, 12-16px; on the narrowest phones it wraps to two balanced lines. */
.btn--whatsapp { container-type: inline-size; font-stretch: 100%; white-space: normal; }
.btn--whatsapp .btn__text {
  font-size: 13px;
  font-size: clamp(12px, calc((100cqi - 60px) / 15.8), 16px);
  line-height: 1.15;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* ============================================================
   THE CARD SHAPE (Adam 25 Nov 17:30: "a more interesting shape, more suitable for the artwork").
   The poster's own banner outline (PSD "border background" layer) turned inside out: bone inside,
   the hand-drawn rim in blood. Three slices (tools/build_card.py) so any height works without
   warping the curled corners: top cap 0.34559 x width, bottom cap 0.23676 x width keep their
   aspect; the middle band (sides + waist pinch) stretches vertically only. The caps overlap the
   band by 1px so a fractional join never shows a hairline. cqi = the .signup container = card width.
   No container units (old browsers): the flat bone card + blood keyline above stays.
   ============================================================ */
.signup { container-type: inline-size; }
@supports (width: 1cqi) {
  .panel {
    outline: 0;
    background:
      url("/royalblood/assets/images/card-top.webp?v=20261125-1") center top / 100% auto no-repeat,
      url("/royalblood/assets/images/card-bot.webp?v=20261125-1") center bottom / 100% auto no-repeat,
      url("/royalblood/assets/images/card-mid.webp?v=20261125-1") 0 calc(34.559cqi - 1px) / 100% calc(100% - 58.235cqi + 2px) no-repeat;
    /* never shorter than the two caps */
    min-height: 62cqi;
  }
  /* inside the rim: clear of the top curls, the waist pinch (6% in) and the bottom curls */
  .signup .panel__inner { padding: 11cqi 10cqi 15cqi; }
}
