/* PullUp Cardiff - teaser sign-up (2026-10-12).

   Concept: the page is the billboard wall from the client's artwork. The
   background is the artwork itself, blurred and graded into the billboard's
   bottle green; the sign-up panel is the white paste-up placard ("BIG")
   with a second sheet peeking out behind it.

   Palette sampled from literal pixels of 4X5.jpg (1080x1350):
     billboard face   #263C23  (deepened to --wall for text contrast)
     placard paper    #ECEBE4
     neon red         #AA321C / #AF463F (Hooters / Sbarro), lifted to --neon
     overcast sky     #A9A6A6  -> quiet text on the wall
   Contrast: ink on paper 14.6:1, white on --neon 6.1:1, --sky on --wall 6.4:1.

   Type: Anton (OFL, self-hosted) matches the heavy condensed sans of "BIG" and
   "SHOW ANNOUNCEMENT SOON" on the billboard (Adam, 12 Oct: Ultra matched
   nothing in the artwork). Body is the system Helvetica stack. */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/Anton.woff2?v=20261012-3") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wall:   #1B2A19;
  --wall-2: #263C23;
  --paper:  #ECEBE4;
  --sheet:  #C9C8BD;
  --field:  #FBFAF5;   /* OPAQUE on purpose - the autofill rule reuses it */
  --ink:    #18261A;
  --ink-2:  #3F4C3E;   /* secondary text on paper, 8.6:1 */
  --hint:   #6E776B;   /* placeholders on --field, 4.6:1 */
  --neon:   #B3341F;
  --neon-d: #8F2715;
  --sky:    #A9A6A6;
  --white:  #FFFFFF;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --panel-w: 26.5rem;
}

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

/* html carries the base colour; body stays transparent so the fixed .bg layer
   is never painted over (gotcha 16). */
html { background: var(--wall); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

/* ---------- the wall ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--wall) url("/assets/images/bg-mobile.jpg?v=20261012-3") center / cover no-repeat;
}
@media (min-aspect-ratio: 7/10) {
  .bg { background-image: url("/assets/images/bg-desktop.jpg?v=20261012-3"); }
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;               /* the rotated back sheet must never cause sideways scroll */
}

/* ---------- stage: stacked by default (phones, portrait tablets) ---------- */
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vw, 44px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px clamp(36px, 8vw, 56px);
}

.art { margin: 0; width: min(100%, 560px); }
.art__poster {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.75);
}

/* ---------- the placard ---------- */
.placard {
  position: relative;
  isolation: isolate;             /* back sheet + panel stack only against each other (gotcha 5) */
  width: min(100%, var(--panel-w));
}
.placard::before {                /* the second paste-up sheet */
  content: "";
  position: absolute;
  inset: 10px -6px -10px 8px;
  z-index: 0;
  background: var(--sheet);
  transform: rotate(2.4deg);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.7);
}
.panel {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 6vw, 38px) clamp(22px, 5.5vw, 36px) clamp(26px, 5.5vw, 34px);
  color: var(--ink);
  color-scheme: light;            /* paper is light: native checkbox + dropdown must not inherit the dark wall */
  background-color: var(--paper);
  /* paper tooth, matching the grain in the photograph */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 30px 60px -26px rgba(0,0,0,.8);
}

/* state machine: exactly one wrapper visible */
.panel__state { display: none; }
.panel[data-form-state="idle"]    .panel__idle,
.panel[data-form-state="otp"]     .panel__otp,
.panel[data-form-state="success"] .panel__success { display: block; }

.panel__kicker {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--ink);
}
.panel__title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 12.5vw, 3.6rem);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;    /* the billboard is set in caps */
  color: var(--ink);
  text-wrap: balance;
}
.panel__title em { font-style: normal; color: var(--neon); }
.panel__rule { height: 4px; margin: 0 0 16px; background: var(--ink); border: 0; }
.panel__lede {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}
.panel__lede--last { margin-bottom: 22px; }
.panel__hint { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.panel__success-note { margin: 0 0 12px; font-weight: 700; font-size: 15px; color: var(--ink); }

/* ---------- 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: 14px 15px;
  font-family: var(--body);
  font-size: 16px;                /* 16px minimum or iOS zooms on focus */
  color: var(--ink);
  background: var(--field);
  border: 2px solid var(--ink);
  border-radius: 0;
  transition: box-shadow .15s ease;
}
.form__input::placeholder { color: var(--hint); opacity: 1; }
.form__input:focus { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--neon); }
.form__input--otp { font-size: 20px; letter-spacing: .4em; text-align: center; text-indent: .4em; }

/* Chrome paints autofilled inputs pale lavender and IGNORES background on
   :-webkit-autofill; a huge inset shadow is the only override. --field is
   already opaque, so it is its own flattened value. */
.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;
}

.form__error {
  margin: 7px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--neon);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-d);
}
.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 20px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.form__check input:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.form__check a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form__check a:hover { text-decoration-thickness: 2px; }

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

/* ---------- button: the neon ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 18px 15px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 4.8vw, 1.3rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: default; }
.btn--primary { color: var(--white); background: var(--neon); }
.btn--primary:hover:not(:disabled) { background: var(--neon-d); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- 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 flashes open on first paint (gotcha 19). */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  background: var(--field);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 0 22px 48px -18px rgba(0,0,0,.5);
  overflow: hidden;
}
.iti__search-input {
  /* Keep the vendor's horizontal reservation (30px left for the magnifier,
     28px right for the clear button), gotcha 33. */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--field);
  border: 0;
  border-bottom: 2px solid var(--ink);
}
.iti__search-input::placeholder { color: var(--hint); }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--neon); }
.iti__country-list { background: var(--field); max-height: 240px; }
.iti__country { padding: 9px 12px; font-family: var(--body); font-size: 14px; color: var(--ink); }
.iti__country:hover,
.iti__country.iti__highlight { background: var(--ink); }
.iti__country:hover .iti__country-name,
.iti__country:hover .iti__dial-code,
.iti__country.iti__highlight .iti__country-name,
.iti__country.iti__highlight .iti__dial-code { color: var(--paper); }
.iti__dial-code { color: var(--ink-2); }
.iti__country-name { color: var(--ink); }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(24,38,26,.07); }
.iti__selected-dial-code { color: var(--ink); font-family: var(--body); font-size: 16px; }
.iti__arrow { border-top-color: var(--ink); }
.iti__arrow--up { border-bottom-color: var(--ink); }

/* ---------- footer: house pattern, credit in a pill ---------- */
.foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  width: 100%;
  padding: 16px clamp(16px, 4vw, 48px) 22px;
  border-top: 1px solid rgba(236,235,228,.22);
}
.foot__legal { margin: 0; font-size: 12.5px; color: var(--sky); letter-spacing: .01em; }
.foot__legal a { color: var(--sky); text-decoration: none; }
.foot__legal a:hover { color: var(--paper); text-decoration: underline; }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(236,235,228,.45);
  border-radius: 999px;
  transition: border-color .15s ease;
}
.site-built a:hover { border-color: var(--neon); }
.site-built img { display: block; opacity: .9; }   /* dark ground: teal roundel left intact */
a:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }

@media (max-width: 480px) {
  .foot { flex-direction: column; justify-content: center; text-align: center; }
}

/* ---------- the one orchestrated moment: placard pasted up ---------- */
@media (prefers-reduced-motion: no-preference) {
  .placard { animation: paste .7s cubic-bezier(.2,.8,.2,1) .15s both; }
  .placard::before { animation: settle .9s cubic-bezier(.2,.8,.2,1) .35s both; }
  @keyframes paste { from { transform: translateY(18px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes settle { from { transform: rotate(0deg); } to { transform: rotate(2.4deg); } }
}

/* ============================================================
   SPLIT LAYOUT - aspect-ratio threshold, not width alone (gotcha 20)
   Artwork left, placard right.
   ============================================================ */
@media (min-width: 900px) and (min-aspect-ratio: 7/10) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel-w);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
    padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 48px);
  }
  .art { width: auto; justify-self: end; }
  /* height-capped poster: width auto MUST carry max-width 100% (gotcha 38) */
  .art__poster { width: auto; max-width: 100%; max-height: calc(100svh - 150px); }
  .placard { width: 100%; }
  .panel__title { font-size: clamp(3.2rem, 4.4vw, 3.9rem); }
}

/* Landscape phones (844x390, 932x430, 667x375): first-class, compact split.
   After the desktop block so it wins at equal specificity (gotcha 27). */
@media (min-width: 640px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  .stage {
    display: grid;
    grid-template-columns: auto minmax(0, 24rem);
    align-items: start;
    justify-content: center;
    gap: 28px;
    min-height: 0;
    padding: 20px 20px 28px;
  }
  .art { width: auto; justify-self: end; position: sticky; top: 20px; }
  .art__poster { width: auto; max-width: 100%; max-height: calc(100svh - 40px); }
  .placard { width: 100%; }
  .panel { padding: 22px 22px 22px; }
  .panel__kicker { margin-bottom: 10px; }
  .panel__title { font-size: 2.5rem; margin-bottom: 10px; }
  .panel__lede { font-size: 15px; }
  .panel__lede--last { margin-bottom: 16px; }
  .form__input { padding: 12px 14px; }
  .form__row--check { margin: 12px 0 16px; }
}

/* visually hidden, still read by screen readers and search engines */
.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;
}
