/* ===========================================================
   SOTA LONDON - teaser signup (no venue or date announced).
   Design from supplied key art (Archive-2, 2026-07-02): the
   text-free saw/gear plate covers the whole page (designer
   supplied separate desktop + mobile renders, shown sharp, not
   blurred) with the signup panel centred over the saw (per
   client direction 2026-07-02). Display type: Doto (SIL OFL,
   self-hosted static instance ROND=100/wght=900) - a round-dot
   matrix face echoing the artwork lettering; body type Archivo.
   Palette: concrete blacks + bone, white accent. Footer
   full-width (basslayerz pattern).
   =========================================================== */

/* ---------- TOKENS ---------- */
:root {
  --ink:        #0a0a0b;   /* concrete black                    */
  --ink-2:      #101012;
  --field:      #0e0e10;   /* legal page ground                 */
  --panel-bg:       rgba(9, 9, 11, 0.68);
  --panel-bg-solid: #121214;

  /* Monochrome accent (var names kept from the engine family) */
  --red:        #d9d9dc;
  --red-bright: #ffffff;
  --red-deep:   #85858c;
  --red-ghost:  rgba(255, 255, 255, 0.14);

  --cream:       #f1e8db;  /* bone - the wordmark colour        */
  --cream-soft:  rgba(241, 232, 219, 0.76);
  --cream-faint: rgba(241, 232, 219, 0.48);
  --cream-ghost: rgba(241, 232, 219, 0.14);

  --hairline:    rgba(241, 232, 219, 0.14);
  --hairline-hi: rgba(241, 232, 219, 0.26);
  --danger:      #ff9b86;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --dot:     "Doto", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans:    "Archivo", "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", sans-serif;
}

/* Doto (OFL) - static instance of the variable font pinned at
   ROND=100 (round elements) / wght=900, subset to latin */
@font-face {
  font-family: "Doto";
  src: url("/assets/fonts/doto-round-900.woff2?v=20260702-1") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- FULL-BLEED ARTWORK ---------- */
.bg { position: fixed; inset: 0; z-index: 0; background: var(--ink); }
/* picture must be sized or the img's height:100% resolves to auto and the
   plate letterboxes with black gaps in non-16:9 windows */
.bg picture { width: 100%; height: 100%; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Desktop plate: saw is far left, keep it in frame when narrow windows crop */
@media (min-width: 760px) {
  .bg img { object-position: 15% 50%; }
}

/* Light scrim only - the saw plate is the hero now, so just enough
   top/bottom shading to keep the footer and panel edges legible */
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,11,0.18) 0%, transparent 24%, transparent 72%, rgba(10,10,11,0.42) 100%);
}
/* Faint grain to unify type with the filmic plate */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05;
  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='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- LAYOUT ---------- */
.stage {
  position: relative; z-index: 5;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3rem) clamp(1.1rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
}

.hero__col { min-width: 0; width: 100%; }
/* Desktop: panel sits right (client 2026-07-02), leaving the centred saw clear */
@media (min-width: 980px) {
  .hero { justify-items: end; }
  .hero__col--signup { width: auto; }
  .panel { width: clamp(388px, 34vw, 500px); }
}
/* Mobile: the saw fills the top third of the mobile render - start the
   panel below it so the saw stays clear (client 2026-07-02) */
@media (max-width: 759px) {
  .hero { align-content: start; padding-top: 36vh; padding-top: 36svh; }
}
.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;
}

/* ---------- SIGNUP PANEL ---------- */
.signup { display: flex; justify-content: center; }
.panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.25rem, 3vw, 1.9rem);
  background: var(--panel-bg);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--hairline-hi);
  border-radius: 0;
  /* box-shadow (not ::before) so the intl-tel-input dropdown can overflow
     freely and nothing stacks over the form */
  box-shadow:
    inset 0 1px 0 rgba(241, 232, 219, 0.12),
    inset 0 0 70px rgba(255, 255, 255, 0.04),
    0 28px 72px rgba(0, 0, 0, 0.66);
  animation: fade-up 1s cubic-bezier(.2,.7,.2,1) 0.35s both;
}

/* State machine - blueprint contract */
.panel__idle, .panel__otp, .panel__success { 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__eyebrow {
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--sans); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--red-bright);
}
.panel__eyebrow-hair {
  flex: 0 0 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.panel__eyebrow-hair:last-child {
  flex: 1 1 auto;
  background: linear-gradient(90deg, var(--red), transparent 80%);
}
.panel__title {
  margin: 0 0 0.85rem;
  font-family: var(--dot); font-weight: 900;
  font-size: clamp(2.05rem, 4.6vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
}
/* accent phrase - same face as the title, just the blood-red brand colour */
.panel__title em {
  font-style: normal;
  color: var(--red-bright);
}

.panel__lede {
  margin: 0 0 1.4rem;
  font-size: 14.5px; line-height: 1.55; color: var(--cream-soft);
  text-wrap: pretty;
}
.panel__lede strong { color: var(--cream); font-weight: 600; }
/* Scoped to avoid clobbering eyebrow */
.panel__success p:not(.panel__eyebrow) {
  color: var(--cream-soft); margin: 0 0 1.4rem;
  font-size: 14.5px; line-height: 1.55;
}
.panel__success-note {
  margin: 0 0 1.1rem !important;
  padding: 0.7rem 0.9rem;
  background: var(--red-ghost);
  border-left: 2px solid var(--red);
  border-radius: 0;
  font-size: 13.5px !important; line-height: 1.5 !important;
  color: var(--cream) !important;
}

/* ---------- FORM ---------- */
.form { display: flex; flex-direction: column; gap: 0.95rem; margin: 0; padding: 0; }
/* display:none (not off-screen): an off-screen field is still a live autofill
   target and Chrome/Edge would fill it, silently blocking the real submit. */
.form__honeypot { display: none !important; }
.form__row { position: relative; }
.form__label {
  display: block; margin: 0 0 0.35rem;
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-faint);
}
.form__input {
  width: 100%; padding: 0.65rem 0;
  background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0;
  font-family: var(--sans); font-size: 16px; line-height: 1.3; letter-spacing: 0.01em;
  transition: border-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.form__input::placeholder { color: var(--cream-faint); letter-spacing: 0; }
.form__input:focus { outline: 0; border-bottom-color: var(--red-bright); }
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cream);
  -webkit-box-shadow: 0 0 0 1000px var(--panel-bg-solid) inset;
  transition: background-color 5000s ease-in-out 0s;
}
.form__input--otp {
  font-family: var(--display); font-weight: 700; font-size: 30px;
  letter-spacing: 0.4em; text-align: center; padding: 0.8rem 0;
}

/* ============================================================
   intl-tel-input (v25) - oxblood theme, searchable dropdown.
   Selected-country stays transparent with a hairline divider so
   it sits flush on the underline input. Width is measured by the
   plugin (separateDialCode) - no hardcoded input padding needed.
   ============================================================ */
.iti { display: block; width: 100%; }
.iti__selected-country {
  background: transparent; border-radius: 0;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(241, 232, 219, 0.05); }
.iti--separate-dial-code .iti__selected-dial-code {
  color: var(--cream-soft); font-family: var(--sans); font-size: 14px;
}
.iti__dropdown-content {
  background: var(--panel-bg-solid); color: var(--cream);
  border: 1px solid var(--hairline-hi); border-radius: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.45);
}
.iti__search-input {
  width: 100%; padding: 12px 14px;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 15px;
  border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; outline: 0;
}
.iti__search-input::placeholder { color: var(--cream-faint); }
.iti__search-input:focus { box-shadow: inset 0 -2px 0 var(--red-bright); }
.iti__search-icon { display: none; }            /* drop the magnifier; reclaim its space */
.iti__country-list {
  background: var(--panel-bg-solid); color: var(--cream); border: 0;
  font-family: var(--sans); max-height: 244px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--hairline-hi) transparent;
}
.iti__country-list::-webkit-scrollbar { width: 8px; }
.iti__country-list::-webkit-scrollbar-track { background: transparent; }
.iti__country-list::-webkit-scrollbar-thumb { background: var(--hairline-hi); }
.iti__country-list::-webkit-scrollbar-thumb:hover { background: var(--cream-faint); }
.iti__country {
  padding: 0.55rem 0.95rem; font-size: 14px; line-height: 1.3; cursor: pointer;
  transition: background .12s ease;
}
.iti__country:hover { background: rgba(241, 232, 219, 0.05); }
.iti__country.iti__highlight { background: var(--red-ghost); }
.iti__country-name { color: var(--cream); }
.iti__dial-code { color: var(--cream-faint); font-size: 12.5px; letter-spacing: 0.02em; }
.iti__no-results { padding: 0.75rem 0.95rem; font-size: 13px; color: var(--cream-faint); }
/* dropdown above the panel chrome + other inputs */
.iti--inline-dropdown .iti__dropdown-content { z-index: 1000; min-width: 288px; max-width: calc(100vw - 2rem); }

/* ---------- CONSENT ---------- */
.form__row--check { margin-top: 0.2rem; }
.form__check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 12px; line-height: 1.55; color: var(--cream-soft); cursor: pointer;
}
.form__check input[type="checkbox"] {
  flex: 0 0 16px; appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin-top: 2px;
  background: transparent; border: 1px solid var(--hairline-hi); border-radius: 0;
  display: grid; place-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.form__check input[type="checkbox"]:hover { border-color: var(--red-bright); }
.form__check input[type="checkbox"]:checked { background: var(--red); border-color: var(--red-deep); }
.form__check input[type="checkbox"]:checked::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid #0a0a0b; border-bottom: 2px solid #0a0a0b;
  transform: rotate(-45deg) translate(0, -1px);
}
.form__check a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--cream-ghost); }
.form__check a:hover { text-decoration-color: var(--red-bright); }

.form__error {
  margin: 0.4rem 0 0;
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--danger);
}
.form__error--global { margin-top: 0.8rem; }

/* ---------- BUTTONS ---------- */
.btn {
  --btn-h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; width: 100%; min-height: var(--btn-h);
  margin-top: 0.5rem; padding: 0 1.1rem;
  font-family: var(--display); font-weight: 700;
  font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #0b0b0d; background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 56%, #b9b9be 100%);
  border: 0; border-radius: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 22px rgba(0, 0, 0, 0.36);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:hover {
  transform: translateY(-1px); filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px rgba(0, 0, 0, 0.52);
}
.btn:active { transform: translateY(1px); }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.32) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .5s ease; z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }
.btn__text { position: relative; z-index: 1; }
.btn__arrow {
  position: relative; z-index: 1;
  font-family: var(--sans); font-size: 18px; letter-spacing: 0;
  transform: translateX(0); transition: transform .2s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--whatsapp {
  background: linear-gradient(180deg, #3ae07a 0%, #25d366 55%, #1aa851 100%); color: #06301a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px rgba(37, 211, 102, 0.28);
}
.btn--whatsapp:hover {
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 30px rgba(37, 211, 102, 0.42);
}
.btn__icon { width: 22px; height: 22px; position: relative; z-index: 1; }

.form__resend {
  margin: 0.9rem 0 0;
  font-family: var(--sans); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream-faint); text-align: center;
}
.form__resend-btn {
  background: transparent; border: 0; color: var(--red-bright);
  font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit;
  padding: 0 0 0 0.3rem; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(241, 232, 219, 0.4);
}
.form__resend-btn:disabled { color: var(--cream-faint); text-decoration-color: var(--cream-ghost); cursor: not-allowed; }

/* ---------- FOOTER (full-width, basslayerz pattern) ---------- */
.foot {
  flex-shrink: 0; width: 100%; margin: 0;
  padding: 16px clamp(1.1rem, 4vw, 2.75rem) 24px;
  background: rgba(8, 8, 10, 0.62);
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.04em; color: var(--cream-faint);
}
.foot a { color: var(--cream-soft); text-decoration: none; }
.foot a:hover { color: var(--red-bright); }
.foot__legal { margin: 0; }
.foot__left { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.1rem); flex-wrap: wrap; }
.site-built { margin: 0; line-height: 0; }
.site-built a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--cream-soft);
  background: rgba(8, 8, 10, 0.6);
  border: 1px solid var(--hairline-hi); border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.site-built a:hover { color: var(--red-bright); border-color: var(--red); background: var(--red-ghost); }
.site-built img { display: inline-block; opacity: 0.95; filter: grayscale(1) brightness(2.4); vertical-align: middle; }

@media (max-width: 600px) {
  .foot { flex-direction: column; justify-content: center; text-align: center; gap: 1rem; }
  .foot__left { flex-direction: column; gap: 0.85rem; width: 100%; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .btn::before { display: none; }
}

/* ---------- A11Y / FOCUS ---------- */
:focus-visible { outline: 1px solid var(--red-bright); outline-offset: 2px; }
.form__input:focus-visible { outline: 0; }
.btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* ---------- TINY VIEWPORTS ---------- */
@media (max-width: 380px) {
  .hero { padding: 1.3rem 0.95rem; }
  .panel { padding: 1.1rem 1rem; }
}

/* ===========================================================
   LEGAL PAGES (privacy.html)
   =========================================================== */
body.legal-wrap {
  background: var(--field); color: var(--cream);
  font-family: var(--sans); line-height: 1.6; margin: 0;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}
.legal { max-width: 740px; margin: 0 auto; }
.legal__back {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 2.5rem; padding: 0.4rem 1.05rem 0.4rem 0.4rem;
  border: 1px solid var(--hairline-hi); border-radius: 999px;
  background: rgba(24, 9, 10, 0.5); text-decoration: none; white-space: nowrap;
  transition: border-color .18s ease, background .18s ease;
}
.legal__back:hover { border-color: var(--red); background: var(--red-ghost); }
.legal__back-arrow {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: transform .18s ease;
}
.legal__back:hover .legal__back-arrow { transform: translateX(-3px); }
.legal__back-arrow svg { width: 13px; height: 13px; display: block; }
.legal__back-label { display: inline-flex; flex-direction: column; line-height: 1.12; }
.legal__back-text {
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-faint);
}
.legal__back-brand { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); }
.legal h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.02; letter-spacing: 0.01em;
  text-transform: uppercase; margin: 0 0 2rem; color: var(--red-bright); text-wrap: balance;
}
.legal h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red-bright);
  margin: 2.2rem 0 0.7rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--hairline);
}
.legal p, .legal li { font-size: 14.5px; color: var(--cream-soft); }
.legal ul { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a:not(.legal__back) { color: var(--red-bright); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.legal a:not(.legal__back):hover { text-decoration-color: var(--red-bright); }
.legal strong { color: var(--cream); font-weight: 600; }
.legal__meta {
  margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--hairline);
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-faint);
}
