/* ============================================================
   MHITR HALLOWEEN - "coming very soon" teaser / early-access signup
   Identity: a screen-printed Halloween patch. Orange (#E94E1F) house
   and wordmark on a deep indigo canvas (sampled from the client kit's
   crumpled-fabric background, mist along the base).
   Display: Anton (heavy compressed caps, echoes the wordmark).
   Body: Barlow. Signature: the signup panel as a print "registration
   patch" (orange crop-mark corners) over a slow candle-glow flicker.
   ============================================================ */

:root {
  --ink:      #1B1E3D;   /* deep indigo base behind the bg image */
  --ink-2:    #14162E;   /* darker - footer / vignette */
  --patch:    rgba(22, 24, 50, .72);  /* panel - printed patch on fabric */
  --field:    rgba(11, 12, 30, .60);  /* inputs */
  --line:     rgba(168, 174, 214, .22);   /* hairline borders */
  --line-2:   rgba(168, 174, 214, .14);

  --orange:     #E94E1F;   /* screenprint orange - house + wordmark */
  --orange-lit: #F86B2C;   /* hover / glow */
  --orange-deep:#B8370F;

  --cream:   #ECE4D4;   /* bone - primary text, the "coming very soon" tone */
  --haze:    #A6ABCE;   /* muted lavender - secondary text / hairlines */
  --danger:  #ff6a5a;

  --display: "Anton", "Arial Narrow", sans-serif;
  --body:    "Barlow", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--cream);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- client fabric/fog backdrop ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-color: var(--ink);
  background-image: url("/assets/images/bg-mobile.jpg");
  background-image: image-set(
    url("/assets/images/bg-mobile.webp") type("image/webp"),
    url("/assets/images/bg-mobile.jpg")  type("image/jpeg"));
  background-position: center top;
  background-size: cover;
}
@media (min-width: 760px) {
  .bg {
    background-image: url("/assets/images/bg-desktop.jpg");
    background-image: image-set(
      url("/assets/images/bg-desktop.webp") type("image/webp"),
      url("/assets/images/bg-desktop.jpg")  type("image/jpeg"));
  }
}
/* gentle vignette so type stays legible over the texture */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 50% 8%, rgba(27,30,61,0), rgba(20,22,46,.55) 78%),
    linear-gradient(180deg, rgba(27,30,61,.30) 0%, rgba(20,22,46,.40) 60%, rgba(20,22,46,.66) 100%);
}

/* ---------- candle-glow flicker (signature ambience) ---------- */
.glow {
  position: fixed;
  z-index: -2;
  left: 50%; top: 28vh;          /* mobile: behind the lockup near the top */
  width: min(116vw, 720px);
  height: min(64vh, 640px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(233, 78, 31, .30), rgba(233, 78, 31, .11) 46%, transparent 72%);
  mix-blend-mode: screen;
  filter: blur(8px);
  animation: flicker 5.5s ease-in-out infinite;
  will-change: opacity;
}
@keyframes flicker {
  0%, 100% { opacity: .88; }
  18%      { opacity: .60; }
  31%      { opacity: .96; }
  47%      { opacity: .54; }
  62%      { opacity: .90; }
  79%      { opacity: .68; }
}

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   STAGE LAYOUT - centred column (lockup over patch)
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: clamp(22px, 3.6vw, 40px);
}

/* ---------- logo lockup (the hero) ---------- */
.lockup {
  width: 100%;
  max-width: 440px;
  animation: lockupIn 1s cubic-bezier(.16,.84,.36,1) both;
}
.lockup img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(8, 6, 20, .55));
}
@keyframes lockupIn {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SIGNUP PANEL  +  print-registration crop marks (signature)
   ============================================================ */
.panel {
  width: 100%;
  max-width: 470px;
  position: relative;
  isolation: isolate;
  background: var(--patch);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow:
    0 36px 70px -34px rgba(6, 5, 18, .9),
    inset 0 1px 0 rgba(236, 228, 212, .06);
  animation: panelIn 1s .14s cubic-bezier(.16,.84,.36,1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* orange crop-mark corners - the screen-print registration device */
.bracket {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 3;
  pointer-events: none;
  border: 2px solid var(--orange);
}
.bracket--tl { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.bracket--tr { top: -1px; right: -1px; border-left: 0;  border-bottom: 0; }
.bracket--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }
.bracket--br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }

.panel__inner { position: relative; z-index: 2; padding: clamp(26px, 3.4vw, 40px); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow span {
  flex: 0 0 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}
.eyebrow span:last-child { background: linear-gradient(90deg, var(--orange), transparent); }

/* ---------- title ---------- */
.panel__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: .94;
  font-size: clamp(2.3rem, 7vw, 3.1rem);
  margin: 0 0 16px;
  color: var(--cream);
  text-wrap: balance;
}
.panel__title em {
  font-style: normal;
  color: var(--orange);
}

.panel__lede {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--haze);
  max-width: 42ch;
}
.panel__lede strong { color: var(--cream); font-weight: 600; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--haze);
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cream);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: #6f74a0; }
.form__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233, 78, 31, .18);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 106, 90, .18);
}

/* ---------- honeypot (spam trap) ----------
   display:none, NOT left:-9999px: off-screen honeypots get autofilled by
   Chrome/Edge and silently block real signups. display:none is skipped by
   autofill engines and screen readers. */
.hp-field { display: none; }

/* ---------- consent ---------- */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 22px;
  font-size: 13px;
  color: var(--haze);
  line-height: 1.55;
}
.form__consent input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--orange);
}
.form__consent a { color: var(--orange); text-underline-offset: 2px; }

/* ---------- submit ---------- */
.btn-ticket {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, var(--orange-lit), var(--orange-deep));
  color: #fff;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 14px 30px -12px rgba(233, 78, 31, .7);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-ticket .btn__face {
  display: block;
  padding: 16px 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-ticket:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 18px 36px -12px rgba(233, 78, 31, .82); }
.btn-ticket:active { transform: translateY(0); }
.btn-ticket:disabled { filter: grayscale(.4) brightness(.8); cursor: default; transform: none; }

/* ---------- success state ---------- */
.panel__success { text-align: left; }
.panel__success .panel__lede { margin-bottom: 0; }

/* ============================================================
   intl-tel-input (v25) - indigo theme + searchable dropdown
   ============================================================ */
.iti { width: 100%; display: block; }
.iti__selected-country {
  background: var(--field);
  border-radius: 4px 0 0 4px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(11, 12, 30, .85); }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--cream); }
.iti__dropdown-content {
  background: #181a36;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 26px 54px -16px rgba(0, 0, 0, .9);
  color: var(--cream);
  overflow: hidden;
}
.iti__search-input {
  width: 100%;
  background: #14162e;
  color: var(--cream);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}
.iti__search-input::placeholder { color: #6f74a0; }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--orange); }
.iti__search-icon { display: none; }
.iti__country-list { background: #181a36; }
.iti__country { color: var(--cream); }
.iti__country:hover,
.iti__country.iti__highlight { background: #23264a; }
.iti__dial-code { color: var(--haze); }
.iti__country-name { color: var(--cream); }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }

/* ============================================================
   FOOTER  (full-width - matches basslayerz)
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(15, 16, 36, .60);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line-2);
  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(--haze); letter-spacing: .02em; }
.foot__legal a { color: var(--haze); text-decoration: none; }
.foot__legal a:hover { color: var(--orange); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--haze);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--orange); color: var(--cream); }
.site-built img { display: block; opacity: .9; }

/* ============================================================
   RESPONSIVE - relax the lockup a touch on wide screens
   ============================================================ */
@media (min-width: 880px) {
  .stage__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 68px);
    align-items: center;
  }
  .lockup { max-width: 520px; justify-self: end; }   /* artwork left  */
  .panel  { max-width: 470px; justify-self: start; }  /* signup right */
  /* glow sits behind the artwork (left column), vertically centred */
  .glow {
    left: 31%; top: 50%;
    width: min(58vw, 760px);
    height: min(92vh, 800px);
  }
}
@media (max-width: 879px) {
  .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(--orange);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .lockup, .panel { animation: none; }
  .glow { animation: none; opacity: .7; }
  * { scroll-behavior: auto; }
}
