/* ============================================================
   Diffrent with Entasia — Villa Nightclub, Perth (4 Sept 2026)
   Signup page. Visual language from the supplied artwork:
   70s film light-leaks on warm black, cream fashion-serif
   display, condensed black grotesque info type, vermilion
   "×" registration marks and dot pairs.
   ============================================================ */

/* Helvetica Neue Condensed Black — client-supplied, the artwork's info face */
@font-face {
  font-family: "HN Condensed";
  src: url("/assets/fonts/helvetica-neue-condensed-black.woff2?v=20260724-14") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* Oswald (OFL) — fallback for the condensed role while HN loads */
@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-latin-600-normal.woff2?v=20260724-14") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:        #14171a;                      /* sampled: desktop art dark zone */
  --cream:      #ffffff;                      /* artwork type is pure white */
  --verm:       #e8734a;                      /* light coral orange accent */
  --verm-hot:   #f2855c;                      /* hover */
  --muted:      rgba(255, 255, 255, 0.7);
  --line:       rgba(255, 255, 255, 0.26);    /* hairlines on dark */
  /* the card: the bokeh leak under a dark dusk wash, white/cream type
     as in the artwork */
  --card-bg:    #201a20;
  --card-ink:   #ffffff;
  --card-muted: rgba(255, 255, 255, 0.82);
  --card-line:  rgba(255, 255, 255, 0.28);
  --err:        #ff8a76;
  --cond:       "HN Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font:       "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--cream);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html { background: var(--ink); }
/* body stays transparent: an opaque body background paints OVER the
   z-index:-1 .bg photo layer and turns the page solid colour */
body {
  position: relative;
  background: transparent;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot — display:none only (off-screen positioning gets autofilled) */
.hp-row { display: none !important; }

/* ============================================================
   BACKGROUND — the light-leak plates, one fixed layer
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("/assets/images/bg-mobile.webp?v=20260724-14") center top / cover no-repeat,
    var(--ink);
}
.bg::after {
  /* settles the brightest leaks so panel copy stays legible */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,23,26,0.08) 0%, rgba(20,23,26,0.16) 55%, rgba(20,23,26,0.55) 100%);
}
/* Landscape (desktop + landscape tablets): the wide plate — poster art
   left, dark centre for the panel, leak burning in from the right */
@media (min-aspect-ratio: 7/10) and (min-width: 768px) {
  .bg {
    background:
      url("/assets/images/bg-desktop.webp?v=20260724-14") center / cover no-repeat,
      var(--ink);
  }
  .bg::after {
    background: linear-gradient(90deg, rgba(20,23,26,0.10) 0%, rgba(20,23,26,0.02) 55%, rgba(20,23,26,0.30) 100%);
  }
}

/* ============================================================
   STAGE — poster + signup panel
   ============================================================ */
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.stage__inner {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.5vw, 24px);
  align-items: center;
}
/* Two columns only in landscape — in portrait (phones AND tablets)
   everything stacks: poster is the first screen, panel follows */
@media (min-width: 768px) and (min-aspect-ratio: 7/10) {
  .stage__inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(18px, 3vh, 40px) clamp(20px, 4vw, 64px);
    min-height: calc(100svh - 64px);   /* keeps poster + panel on one screen; 64px ≈ footer */
  }
}

/* --- Poster ------------------------------------------------- */
/* stacked flows (phones + portrait tablets): the art sits slightly inset
   from the top and side edges, floating on the light-leak plate */
.poster { width: 100%; padding: clamp(12px, 3.5vw, 22px) clamp(12px, 3.5vw, 22px) 0; }
.poster__art {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 768px) and (min-aspect-ratio: 7/10) {
  .poster { justify-self: end; display: flex; justify-content: flex-end; padding: 0; }
  .poster__art {
    width: auto;
    max-width: 100%;
    /* the plate is 16:9 — never let the tall art push the panel below the fold */
    max-height: calc(100svh - clamp(90px, 12vh, 140px));
  }
}
/* Portrait tablets: cap the art so the form isn't a full swipe away */
@media (min-width: 481px) and (max-aspect-ratio: 7/10), (min-width: 481px) and (max-width: 767px) {
  .poster { display: flex; justify-content: center; }
  .poster__art { max-width: min(100%, 62svh); }
}

/* Landscape phones (short viewports): compact side-by-side — the poster
   height-capped on the left, the card beside it, page scrolls naturally.
   Wins over the blocks above because it comes later at equal specificity. */
@media (min-width: 640px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  .stage__inner {
    max-width: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 3vw, 32px);
    padding: 14px 18px 26px;
    min-height: 0;
  }
  .poster { padding: 0; display: flex; justify-content: flex-end; justify-self: end; }
  .poster__art {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - 40px);
    min-height: 280px;
  }
  .panel { max-width: 460px; justify-self: start; margin: 0 auto; }
  .panel__inner { padding: 20px 22px 24px; }
  .panel__title { font-size: clamp(26px, 9vh, 36px); }
}

/* ============================================================
   PANEL — warm black card, cream hairline, vermilion dot pairs
   on the corners (the artwork's registration-dot motif)
   ============================================================ */
.signup { width: 100%; display: flex; flex-direction: column; }
.panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  /* client-picked bokeh leak under a dark dusk wash — deep enough for
     the artwork's white type to read */
  background:
    linear-gradient(rgba(20, 15, 22, 0.55), rgba(20, 15, 22, 0.55)),
    url("/assets/images/card-bg.webp?v=20260724-14") center / cover no-repeat,
    var(--card-bg);
  color: var(--card-ink);
  /* a real drop shadow seats the card on the plate instead of floating */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.30);
}
@media (min-width: 768px) and (min-aspect-ratio: 7/10) {
  .panel { justify-self: start; margin: 0 auto; }
}

/* vermilion keyline across the top of the card — the poster's accent
   colour used once, cleanly */
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--verm);
  pointer-events: none;
}

.panel__inner {
  padding: clamp(26px, 4vw, 40px) clamp(20px, 3.4vw, 36px) clamp(28px, 4vw, 40px);
}
.panel__inner > * { position: relative; z-index: 1; }

/* --- state machine ------------------------------------------ */
.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; }

/* --- panel type: all set left, in the artwork's own info face --- */
.panel__eyebrow {
  margin: 0 0 10px;
  color: var(--verm);
  font-family: var(--cond);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.panel__title {
  margin: 0 0 12px;
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--card-ink);
}
/* the poster's bottom info band, quoted: bold condensed facts split by
   vermilion × marks */
.panel__facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 10px;
  padding: 10px 0;
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
  color: var(--card-ink);
  font-family: var(--cond);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.panel__x {
  color: var(--verm);
  font-family: var(--font);   /* clean multiplication sign, not the black grot */
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
}
.panel__lede {
  margin: 0 0 20px;
  color: var(--card-muted);
  font-size: 15px;
}
.panel__lede strong { color: var(--card-ink); font-weight: 600; }
.panel__success-note {
  margin: 0 0 12px;
  color: var(--verm-hot);
  font-size: 15px;
}

/* ============================================================
   FORM
   ============================================================ */
.form { margin: 0; }
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 6px;
  color: var(--card-muted);
  font-family: var(--cond);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.form__input {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: rgba(16, 12, 18, 0.35);
  border: 1px solid var(--card-line);
  border-radius: 0;
  color: var(--card-ink);
  font-family: var(--font);
  font-size: 16px;             /* ≥16px stops iOS zoom-on-focus */
  line-height: 1.3;
  transition: border-color 0.15s ease;
}
.form__input::placeholder { color: rgba(255, 255, 255, 0.42); }
.form__input:focus {
  outline: none;
  border-color: var(--verm);
}
.form__input--otp {
  letter-spacing: 0.42em;
  font-size: 22px;
  text-align: center;
}

.form__row--check { margin-top: 18px; }
.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  color: var(--card-muted);
  font-size: 13px;
  line-height: 1.45;
}
.form__check input {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  margin: 2px 0 0;
  accent-color: var(--verm);
  cursor: pointer;
}
.form__check a { color: var(--card-ink); text-decoration: underline; text-underline-offset: 2px; }
.form__check a:hover { color: var(--verm); }

.form__error {
  margin: 6px 0 0;
  color: var(--err);
  font-size: 13px;
}
.form__error--global { margin-top: 12px; }

.form__resend {
  margin: 14px 0 0;
  color: var(--card-muted);
  font-size: 13px;
  text-align: center;
}
.form__resend-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--card-ink);
  font-family: var(--font);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.form__resend-btn:disabled { opacity: 0.5; cursor: default; }

/* --- buttons ------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 0;
  font-family: var(--cond);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--verm);
  border: 1px solid var(--verm);
  color: #16100d;
  text-transform: uppercase;
  /* shrink type before a long label can wrap on 320px phones */
  white-space: nowrap;
  font-size: clamp(0.85rem, 3.5vw, 1.1rem);
  letter-spacing: clamp(0.06em, 0.5vw, 0.14em);
}
.btn--primary:hover:not(:disabled) { background: var(--verm-hot); border-color: var(--verm-hot); }
.btn--primary:disabled { opacity: 0.6; cursor: wait; }

/* ============================================================
   intl-tel-input — dark theme + styled searchable dropdown
   ============================================================ */
.iti { width: 100%; }
.iti input.form__input { padding-left: calc(52px + 0.7rem); } /* re-measured by repadPhone() */

.iti__selected-country {
  background: transparent;
  color: var(--card-ink);
}
.iti__selected-dial-code { color: var(--card-muted); font-size: 15px; }
.iti__arrow { border-top-color: var(--verm); }
.iti__arrow--up { border-bottom-color: var(--verm); }

.iti__dropdown-content {
  background: #221b24;
  border: 1px solid var(--card-line);
  border-radius: 0;
  color: var(--card-ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.iti__search-input {
  padding: 11px 12px 11px 34px;   /* clear the vendor's magnifier icon */
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-bottom: 1px solid var(--card-line);
  color: var(--card-ink);
  font-family: var(--font);
  font-size: 15px;
}
.iti__search-input::placeholder { color: rgba(255, 255, 255, 0.42); }
.iti__search-input:focus { outline: none; border-bottom-color: var(--verm); }
.iti__country-list { background: transparent; }
.iti__country { padding: 9px 12px; font-size: 14.5px; }
.iti__country.iti__highlight { background: rgba(208, 74, 48, 0.14); }
.iti__country:hover { background: rgba(208, 74, 48, 0.08); }
.iti__dial-code { color: var(--card-muted); }

/* ============================================================
   FOOTER — basslayerz pattern, full width
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  border-top: 1px solid var(--line);
  background: rgba(18, 16, 15, 0.62);
  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: 12px; color: var(--muted); letter-spacing: 0.02em; }
.foot__legal a { color: var(--muted); text-decoration: none; }
.foot__legal a:hover { color: var(--verm-hot); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--verm); color: var(--cream); }
.site-built img { display: block; opacity: 0.9; }
@media (max-width: 640px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.iti__selected-country:focus-visible {
  outline: 2px solid var(--verm);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Mobile: sign-up box runs nearly full width under the poster */
@media (max-width: 767px) {
  .signup { padding: 0 12px; }
  .panel { max-width: none; }
}

/* Hidden state must not depend on the vendor stylesheet having loaded -
   prevents the country list flashing open on first paint */
.iti__dropdown-content.iti__hide { display: none !important; }
