/* ============================================================
   TOM JONES: COME GATHER ROUND - Electric Bay 2027, Torre Abbey, Torquay, Fri 9 Jul 2027
   /tomjones/ folder of electricbayfestival.com. Cloned from the OTB Brighton Tom Jones
   build (14 Nov 2026, Adam-approved centred layout); geometry re-measured for this poster.

   Dusk over Torquay harbour runs the page: the client's plate is the ground, Tom and the
   poster type stand on it unboxed and centred; tom-soft.webp dissolves his poster-edge cut.
   One plate everywhere: desktop_background = poster plate widened, poster column at
   x 1345 of 4993, same scale. Sign-up = ember panel, dusk type.

   Art box = poster x 0-2362, y 0-2770 (just under the date + venue).
   Ratios: width/height .8527; plate horizon y 2250 -> .8123 of the box (.1877 below it),
   .2825 of the plate up from its bottom; plate height = .6281 x width; box at plate
   scale = .8833 of the plate height; plate width = 2.1139 x box width, poster column
   starts .5694 box widths in.
   ============================================================ */
@font-face {
  font-family: "Inter Tight";
  src: url("/tomjones/assets/fonts/InterTight-var.woff2?v=20261114-1") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("/tomjones/assets/fonts/Anton.woff2?v=20261114-1") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --dusk: #18294D;
  --deep: #111C38;
  --ember: #FF713F;
  --ember-hi: #FF8F5E;
  --ember-lo: #F7642F;
  --panel: #FFFFFF;
  --field: #FFFFFF;
  --ink: #FFFFFF;
  --paper: #FFFFFF;
  --mist: #D9DFEA;
  --mist-dim: #AAB6CC;
  --line: rgba(255,255,255,.28);
  --yellow: #18294D;
  --yellow-hi: #28407A;
  --peach: #18294D;
  --danger: #FFC2B5;
  --whatsapp: #25D366;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --gutter: 18px;
  /* stacked layouts: the art is centred, 92vw on phones (sky either side), capped
     on tablets at 64svh tall but never under 46.7vw, or the registered plate would
     stop short of the screen edges (it spans .6414 x art width left of the art and
     1.57 x art width from its left edge) */
  --aw: clamp(47.9vw, calc(64svh * .8527), 92vw);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--dusk); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  min-height: 100svh;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }

/* Stacked: the plate behind the stage, positioned so the poster column sits exactly
   behind the art (same scale, same top). Below the poster it fades to dusk, and
   everything under that is dusk at any page length. No fixed backgrounds here:
   fixed stops at Safari's floating toolbar (gotcha 39). */
.bg { display: none; position: absolute; inset: 0; z-index: -1; }
.stage { position: relative; z-index: 0; }
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, transparent calc(var(--aw) * 1.15), var(--dusk) calc(var(--aw) * 1.32)),
    url("/tomjones/assets/images/bg.webp?v=20261114-1") calc((100vw - var(--aw)) / 2 - var(--aw) * .5694) 0 / calc(var(--aw) * 2.1139) auto no-repeat,
    var(--dusk);
}
/* Dusk until the plate has loaded (inline script in <head> adds .wait, removes it on load). */
html.wait .bg, html.wait .stage::before { background: var(--dusk); }
.page { display: flex; flex-direction: column; min-height: 100svh; overflow-x: clip; }
.stage { flex: 1 0 auto; padding-bottom: 28px; }

/* ---------- the art ---------- */
.art {
  position: relative;
  width: var(--aw);
  margin: 0 auto;
  aspect-ratio: 2362 / 2770;
}
.art img { display: block; }
.art__tom, .art__type { position: absolute; height: auto; margin: 0; }
.art__tom  { left: 0; top: 5.235%; width: 84.34%; }
.art__type { left: 0; top: 0; width: 100%; }
.art__type img { width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .art__tom  { animation: tom-in 1.4s cubic-bezier(.16,.84,.3,1) .1s both; }
  .art__type { animation: settle .9s ease-out .6s both; }
  .signup    { animation: panel-rise 1.1s cubic-bezier(.16,.84,.3,1) .45s both; }
}
@keyframes tom-in     { from { transform: translateY(5%); opacity: 0; } }
@keyframes settle     { from { transform: translateY(1.5%); opacity: 0; } }
@keyframes panel-rise { from { transform: translateY(40px); opacity: 0; } }

/* ---------- the sign-up: horizon glow ---------- */
.signup {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: 460px;
  margin: 6px auto 0;
}
.panel {
  /* navy on ember; the engine's form block reads these */
  --paper: #18294D;
  --mist: #18294D;
  --mist-dim: #4A3A3A;
  --line: rgba(24,41,77,.3);
  --peach: #18294D;
  --yellow: #18294D;      /* primary button + active step */
  --yellow-hi: #28407A;
  --ink: #FFFFFF;         /* text on those */
  --danger: #4A0B00;
  position: relative;
  color: #18294D;
  background: linear-gradient(180deg, var(--ember-hi) 0, var(--ember) 55%, var(--ember-lo) 100%);
  border-radius: 36px;
  box-shadow: 0 30px 70px -22px rgba(5,12,28,.8);
}
.panel__inner { padding: 22px 22px 24px; }
.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;
  font-size: clamp(2.3rem, 11vw, 3.1rem);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #18294D;
}
.panel__title em { font-style: normal; }

/* Photo credit from the poster, vertical, tiny, bottom-left of the art box (Adam 14 Nov).
   1.02% = its poster width; never under 8px wide or the letters stop being letters. */
.art__credit { position: absolute; left: .8%; bottom: 3%; width: max(8px, 1.02%); height: auto; opacity: .8; }
/* ============================================================
   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(--peach);
}
.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(--peach);
}
.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(--peach);
  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(--peach); 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(--peach);
  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(--peach); }

.form__resend {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--mist-dim);
  text-align: center;
}
.form__resend-btn {
  font: inherit;
  color: var(--peach);
  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 ember form.
   ============================================================ */
.spine { justify-content: center; gap: 12px; margin: 0 auto 10px; border: 0; border-radius: 0; overflow: visible; }
.spine__step { flex: 0 0 auto; padding: 0; gap: 5px; font-size: 12.5px; font-weight: 700; color: rgba(24,41,77,.62); }
.spine__step + .spine__step { border-left: 0; }
/* Digits dead centre in the circles (Adam 14 Nov): trim the glyph box to cap height
   and baseline so flex centring centres the digit itself, not the font's line box. */
.spine__n {
  box-sizing: border-box;
  width: 18px; height: 18px;
  display: block;
  padding: calc((16px - 1cap) / 2) 0 0;     /* 16 = 18 minus the 1px ring top and bottom */
  text-align: center;
  font-size: 10.5px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  text-box: trim-both cap alphabetic;       /* block containers only: a flex circle ignores it */
}
.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: #18294D; }
.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: #18294D; }

/* Done steps: a tick drawn ON the circle, centred by background-position (the
   engine's ::after tick sat off-centre on the Craig build). */
.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: #18294D 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='%23FF8F5E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
  border-color: #18294D;
}
.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 14px; font-size: 15.5px; font-weight: 600; line-height: 1.4; color: #18294D; }
.panel__lede--last { margin-bottom: 16px; }
.panel__lede strong { color: #18294D; 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 3px 18px;
  overflow: visible;
  clip: auto;
  font-size: 13px;
  font-weight: 800;
  color: #18294D;
}
.form__input {
  padding: 12px 20px;
  font-weight: 600;
  color: #18294D;
  background: #FFF;
  border: 2px solid #18294D;
  border-radius: 999px;
}
.form__input::placeholder { color: #66718A; font-weight: 500; }
.form__input:focus { border-color: #18294D; box-shadow: 0 0 0 3px rgba(24,41,77,.35); }
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
  -webkit-text-fill-color: #18294D !important;
  caret-color: #18294D;
}
.form__input--otp { text-align: center; }
.form__error { margin-left: 18px; font-weight: 700; }
.form__row--check { margin: 14px 0 14px; }
.form__check { font-size: 13px; line-height: 1.4; font-weight: 600; color: #18294D; }
.form__check input { accent-color: #18294D; }
.form__note { margin: 6px 0 0 29px; font-size: 12.5px; line-height: 1.4; font-weight: 500; color: #18294D; }
.form__note a { color: #18294D; font-weight: 800; }
.form__resend { color: #18294D; font-weight: 600; }
.panel__success-note { color: #18294D; font-weight: 700; }
.wa-hook { color: #18294D; font-weight: 600; margin: 14px 0 10px; }

.btn { border-radius: 999px; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; }
.btn--primary { color: #FFF; background: #18294D; }
.btn--primary:hover:not(:disabled) { background: #28407A; }
.btn:focus-visible { outline: 3px solid #18294D; outline-offset: 3px; }

/* intl-tel-input, navy on white to match the field */
.iti__dropdown-content { background: #FFF; border: 2px solid #18294D; border-radius: 18px; box-shadow: 0 18px 40px -14px rgba(5,12,28,.7); }
.iti__search-input { color: #18294D; background: #F1F3F7; border-bottom: 1px solid #D3D8E2; }
.iti__search-input::placeholder { color: #66718A; }
.iti__search-input:focus { background: #E7EBF2; }
.iti__country-list { background: #FFF; }
.iti__country, .iti__country-name { color: #18294D; }
.iti__dial-code { color: #55617C; }
.iti__country:hover, .iti__country.iti__highlight { background: rgba(255,113,63,.22); }
.iti__selected-country { border-radius: 999px 0 0 999px; padding-left: 6px; }
.iti__selected-country:hover, .iti__selected-country-primary:hover { background: rgba(255,113,63,.18); }
.iti__selected-dial-code { color: #18294D; font-weight: 600; }
.iti__arrow { border-top-color: #18294D; }
.iti__arrow--up { border-bottom-color: #18294D; }

/* WhatsApp: green disc in a navy pill */
.btn--whatsapp {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 6px 18px 6px 6px;
  min-height: 56px;
  color: #FFF;
  background: #18294D;
  font-size: clamp(1.1rem, 4.8vw, 1.3rem);
}
.btn--whatsapp .btn__icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; color: #06301A; background: var(--whatsapp); }
.btn--whatsapp .btn__text { flex: 1 1 auto; text-align: center; }
.btn--whatsapp:hover { filter: none; background: #28407A; }

/* Organisers from the poster, white, under the panel. */
.orgs { display: block; width: min(250px, 72%); height: auto; margin: 22px auto 0; }   /* 5 marks, wider than OTB's 2 */
/* shadow so white logos read over the bright horizon (Adam 14 Nov) */
.orgs { filter: drop-shadow(0 0 5px rgba(5,12,28,.9)) drop-shadow(0 1px 12px rgba(5,12,28,.7)); }

/* ---------- footer: the house format ---------- */
.foot {
  flex-shrink: 0;
  width: 100%;
  padding: 14px 24px 18px;
  background: var(--deep);
  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(--mist); }
.foot__legal a { color: var(--mist); text-decoration: none; }
.foot__legal a:hover { color: var(--ember-hi); }
.foot__copy span { margin-left: .75em; padding-left: .85em; border-left: 1px solid var(--line); }
.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 var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  transition: border-color .18s ease;
}
.site-built a:hover { border-color: var(--ember); }
.site-built img { display: block; opacity: .9; }
.foot a:focus-visible { outline: 2px solid #FFF; 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: 22px; }
  .foot__right { flex-direction: column; gap: 10px; }
}

/* ---------- side by side: genuinely landscape screens only ----------
   (Adam 13 Nov: the 7/10 gate squeezed portrait tablets into a desktop layout.)
   The plate is a fixed cover, bottom anchored, so its height is --bgh and its
   horizon sits --hz up from the bottom. The art stands its own horizon on it,
   flush left, as large as the window allows. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) and (min-height: 521px) {
  :root {
    --bgh: max(100vh, 62.81vw);
    --hz: calc(var(--bgh) * .2825);
    --pw: clamp(360px, 28vw, 430px);
    --gap: clamp(28px, 3.5vw, 64px);
    --ah: min(calc(var(--bgh) * .8833), calc((100vh - var(--hz) - 14px) / .8123), calc((100vw - var(--pw) - var(--gap) - 32px) / .8527));
    --aw: calc(var(--ah) * .8527);
    /* art + gap + panel centred as one group (Adam 14 Nov) */
    --left: max(16px, calc((100vw - var(--aw) - var(--gap) - var(--pw)) / 2));
  }
  .stage::before { display: none; }
  .bg {
    display: block;
    position: fixed;
    background: var(--dusk) url("/tomjones/assets/images/bg.webp?v=20261114-1") 50% 100% / cover no-repeat;
  }
  .art {
    position: fixed;
    left: var(--left);
    bottom: calc(var(--hz) - var(--ah) * .1877);
    width: var(--aw);
  }
  .stage {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 16px 24px calc(var(--left) + var(--aw) + var(--gap));
  }
  .signup { width: var(--pw); max-width: none; margin: 0; }
  .panel__inner { padding: 26px 28px 26px; }
  .panel__title { font-size: 3.2rem; }
  .foot { position: relative; background: linear-gradient(to bottom, rgba(17,28,56,0), rgba(17,28,56,.88) 45%); padding-top: 22px; }
}
/* Short laptops: keep the whole panel on one screen. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) and (min-height: 521px) and (max-height: 820px) {
  .stage { padding-top: 18px; padding-bottom: 10px; }
  .panel__inner { padding: 16px 24px 18px; }
  .spine { margin-bottom: 6px; }
  .panel__title { font-size: 2.6rem; margin-bottom: 6px; }
  .panel__lede { font-size: 14.5px; margin-bottom: 10px; }
  .form__row { margin-bottom: 6px; }
  .form__input { padding: 8px 18px; }
  .form__row--check { margin: 10px 0; }
  .btn:not(.btn--whatsapp) { padding: 11px 16px; font-size: 20px; }
  .orgs { width: 210px; margin-top: 14px; }
}

/* ---------- landscape phones (gotcha 27): the same fixed pairing, smaller ---------- */
@media (min-width: 560px) and (min-aspect-ratio: 3/2) and (max-height: 520px) {
  :root {
    --bgh: max(100vh, 62.81vw);
    --hz: calc(var(--bgh) * .2825);
    --pw: 320px;
    --gap: 22px;
    --ah: min(calc(var(--bgh) * .8833), calc((100vh - var(--hz) - 6px) / .8123), calc((100vw - var(--pw) - var(--gap) - 16px) / .8527));
    --aw: calc(var(--ah) * .8527);
    --left: max(8px, calc((100vw - var(--aw) - var(--gap) - var(--pw)) / 2));
  }
  .stage::before { display: none; }
  .bg {
    display: block;
    position: fixed;
    background: var(--dusk) url("/tomjones/assets/images/bg.webp?v=20261114-1") 50% 100% / cover no-repeat;
  }
  .art { position: fixed; left: var(--left); bottom: calc(var(--hz) - var(--ah) * .1877); width: var(--aw); }
  .stage { display: block; padding: 16px 8px 10px calc(var(--left) + var(--aw) + var(--gap)); }
  .signup { width: var(--pw); max-width: none; margin: 0; }
  .panel { border-radius: 28px; }
  .panel__inner { padding: 14px 18px 16px; }
  .panel__title { font-size: 2.1rem; margin-bottom: 6px; }
  .panel__lede { font-size: 14px; margin-bottom: 8px; }
  .form__row { margin-bottom: 6px; }
  .form__input { padding: 8px 16px; }
  .btn:not(.btn--whatsapp) { padding: 10px 16px; font-size: 19px; }
  .orgs { width: 190px; margin-top: 14px; }
  .foot { padding: 10px 14px 12px calc(var(--left) + var(--aw) + var(--gap)); background: linear-gradient(to bottom, rgba(17,28,56,0), rgba(17,28,56,.9) 40%); justify-content: flex-start; text-align: left; }
  .foot, .foot__right { flex-direction: row; }
}

/* access note under Sign up (client, 16 Nov 2026): boxed so it stands out */
.form__access { margin: 18px 0 0; padding: 12px 16px 13px; font-size: 13px; line-height: 1.45; font-weight: 500; color: #18294D; text-align: left; background: rgba(255,255,255,.28); border: 2px solid #18294D; border-radius: 16px; }
.form__access strong { font-weight: 800; }
.form__access a { color: #18294D; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
