/* ===========================================================
   RnB Winter Ball · O2 Arena London · 13·12·2026
   Frozen poster night — icy navy sky, chrome-blue wordmark,
   frosted-ice signup panel, CSS snowfall.
   =========================================================== */

/* ---------- TOKENS ---------- */
:root {
  --frost:         #eef6fc;                       /* near-white frost text     */
  --frost-soft:    rgba(238, 246, 252, 0.75);
  --frost-faint:   rgba(238, 246, 252, 0.45);
  --frost-ghost:   rgba(238, 246, 252, 0.16);

  --night:         #0d1a2b;                       /* deep navy sky             */
  --night-deep:    #081220;
  --panel-bg:      rgba(10, 22, 38, 0.58);
  --panel-bg-solid:#0c1828;

  --hairline:      rgba(214, 233, 248, 0.18);
  --hairline-hi:   rgba(214, 233, 248, 0.38);

  /* Ice palette — sampled from the artwork's gradient lettering */
  --ice-bright:    #54dcf8;                       /* top of "SIGN UP NOW"      */
  --ice-mid:       #3fb4ee;
  --ice-deep:      #4f86e0;                       /* bottom of "TICKETS"       */

  /* The signature ice gradient — vertical, like the poster type */
  --ice-grad:      linear-gradient(180deg, #8feeff 0%, #54dcf8 35%, #3fb4ee 68%, #4f86e0 100%);
  --ice-grad-btn:  linear-gradient(180deg, #6ee4fd 0%, #3fb4ee 55%, #4f86e0 100%);

  --danger:        #ff8d7a;

  --sans:          "Helvetica Neue", "HelveticaNeue", Helvetica, "Nimbus Sans", "Liberation Sans", Arial, sans-serif;
  /* Geometric display face — same family of heavy circular caps as the poster type */
  --display:       "Jost", "Century Gothic", "Futura", "URW Gothic", sans-serif;
}

/* ---------- 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(--frost);
  background: var(--night);
  -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; }

/* ---------- PAGE BACKGROUND: the winter sky + O2 dome ---------- */
body.page {
  background-color: var(--night);
  background-image: url("/assets/images/bg-m-720.webp?v=20260610-1");
  background-repeat: no-repeat;
  background-position: center bottom;   /* keep the snowed-in O2 dome in frame */
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}
@media (min-width: 480px) and (max-width: 799px) {
  body.page { background-image: url("/assets/images/bg-m-1080.webp?v=20260610-1"); }
}
@media (min-width: 800px) {
  body.page {
    background-image: url("/assets/images/bg-d-1600.webp?v=20260610-1");
    background-attachment: fixed;
  }
}
@media (min-width: 1500px) {
  body.page { background-image: url("/assets/images/bg-d-1920.webp?v=20260610-1"); }
}

/* Cold vignette — frames the centre without crushing the snow detail */
body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(4, 10, 18, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

/* SVG grain — stops banding in the flat night-sky blues */
body.page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

/* ---------- SNOWFALL ----------
   Two fixed tiled layers drifting at different speeds/angles.
   Tiles are 300×300 and the loop translates by exactly one tile,
   so the animation is seamless. transform-only = compositor-cheap. */
.snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.snow__layer {
  position: absolute;
  left: -300px;
  top: -300px;
  right: 0;
  bottom: 0;
  width: calc(100% + 600px);
  height: calc(100% + 600px);
}
.snow__layer--far {
  background-image:
    radial-gradient(1.5px 1.5px at 24px 60px,  rgba(238,246,252,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px     at 130px 12px, rgba(238,246,252,0.4)  50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 150px,rgba(238,246,252,0.45) 50%, transparent 51%),
    radial-gradient(1px 1px     at 80px 220px, rgba(238,246,252,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px     at 260px 280px,rgba(238,246,252,0.4)  50%, transparent 51%);
  background-size: 300px 300px;
  animation: snow-straight 26s linear infinite;
  opacity: 0.7;
}
.snow__layer--near {
  background-image:
    radial-gradient(2.5px 2.5px at 60px 30px,  rgba(238,246,252,0.7)  50%, transparent 51%),
    radial-gradient(2px 2px     at 180px 110px,rgba(238,246,252,0.55) 50%, transparent 51%),
    radial-gradient(3px 3px     at 110px 200px,rgba(238,246,252,0.6)  50%, transparent 51%),
    radial-gradient(2px 2px     at 250px 250px,rgba(238,246,252,0.5)  50%, transparent 51%);
  background-size: 300px 300px;
  animation: snow-drift 14s linear infinite;
  opacity: 0.65;
}
@keyframes snow-straight {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, 300px, 0); }
}
@keyframes snow-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(150px, 300px, 0); }
}
/* 150px X over one 300px Y loop = visible diagonal drift; X offset of
   half a tile repeats identically every second loop, still seamless. */

/* ---------- SPARKLES ----------
   4-point ice stars scattered across the sky. Each <span> carries its own
   position (--x/--y), size (--s), delay (--d) and duration (--dur), so the
   single rule below produces a field of independently-twinkling stars.
   transform + opacity only = GPU-composited, cheap. */
.sparkles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  opacity: 0;
  transform: scale(0.2) rotate(0deg);
  animation: twinkle var(--dur, 3.2s) ease-in-out var(--d, 0s) infinite;
  will-change: transform, opacity;
}
/* Star core + glow halo are pseudo-elements so the halo can spill past the
   star's clip-path (clip-path would otherwise crop a same-element glow). */
.sparkle::before,
.sparkle::after { content: ""; position: absolute; }
.sparkle::before {
  inset: 0;
  /* hot white core → ice-blue → transparent */
  background: radial-gradient(closest-side, #ffffff 0%, #bfefff 46%, rgba(84,220,248,0) 78%);
  /* concave 4-point star (twinkle) */
  clip-path: polygon(50% 0%, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0% 50%, 43% 43%);
  filter: drop-shadow(0 0 7px rgba(140, 238, 255, 0.95))
          drop-shadow(0 0 14px rgba(84, 220, 248, 0.55));
}
.sparkle::after {
  /* soft round bloom larger than the star, for a visible glow */
  inset: -55%;
  background: radial-gradient(closest-side, rgba(180, 243, 255, 0.5) 0%, rgba(84, 220, 248, 0) 70%);
}
/* Stays lit for most of the cycle (pulsing), so it actually reads on screen
   rather than flashing for a single frame. */
@keyframes twinkle {
  0%, 100% { opacity: 0;    transform: scale(0.2) rotate(0deg); }
  18%      { opacity: 1;    transform: scale(1.15) rotate(35deg); }
  50%      { opacity: 0.85; transform: scale(0.92) rotate(45deg); }
  82%      { opacity: 1;    transform: scale(1.1) rotate(62deg); }
}

/* ---------- LAYOUT ---------- */
.stage {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 4vw, 2.75rem) clamp(0.4rem, 1vw, 0.75rem);
  gap: clamp(1rem, 2.5vw, 2rem);
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  align-content: center;
  padding: clamp(0.5rem, 2vw, 2rem) 0;
}
@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
  }
}

.hero__col { min-width: 0; }

/* ---------- POSTER COLUMN ----------
   The supplied artwork lockup, stacked exactly as the composite:
   TCO presents → chrome wordmark → sign-up message → date/venue. */
.hero__col--poster {
  animation: fade-up 1.1s cubic-bezier(.2,.7,.2,1) 0.15s both;
}
.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 1.9rem);
  text-align: center;
}
.poster > * { margin: 0; }
.poster img { height: auto; }

.poster__presents {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.poster__presents img { width: auto; }
.poster__presents picture:first-child img { width: clamp(150px, 16vw, 200px); }
.poster__presents picture:last-child  img { width: clamp(96px, 10vw, 120px); }

.poster__wordmark img {
  width: min(86vw, 560px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}
@media (min-width: 1080px) {
  .poster__wordmark img { width: min(44vw, 640px); }
}

.poster__signup img { width: min(72vw, 420px); }
@media (min-width: 1080px) {
  .poster__signup img { width: min(32vw, 460px); }
}

.poster__date img { width: min(80vw, 480px); }
@media (min-width: 1080px) {
  .poster__date img { width: min(36vw, 540px); }
}

/* ---------- SIGNUP PANEL: frosted ice pane ---------- */
.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(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--hairline-hi);
  border-radius: 16px;
  /* Ice-pane lighting: cold top highlight + deep ambient shadow.
     box-shadow (not ::before) so the intl-tel-input dropdown is free
     to overflow and nothing stacks over the form — blueprint gotcha #2. */
  box-shadow:
    inset 0 1px 0 rgba(238, 246, 252, 0.28),
    inset 0 0 42px rgba(84, 220, 248, 0.05),
    0 24px 60px rgba(2, 8, 16, 0.6);
  animation: fade-up 1.1s cubic-bezier(.2,.7,.2,1) 0.45s 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(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice-bright);
}
.panel__eyebrow-hair {
  flex: 0 0 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-bright), transparent);
}
.panel__eyebrow-hair:last-child {
  flex: 1 1 auto;
  background: linear-gradient(90deg, var(--ice-bright), transparent 80%);
}

.panel__title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--frost);
  text-wrap: balance;
}
/* The active phrase carries the poster's ice gradient */
.panel__title em {
  font-style: normal;
  background: var(--ice-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.panel__lede {
  margin: 0 0 1.4rem;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--frost-soft);
  text-wrap: pretty;
}
/* Scoped to avoid clobbering eyebrow — blueprint gotcha #3 */
.panel__success p:not(.panel__eyebrow) {
  color: var(--frost-soft);
  margin: 0 0 1.4rem;
  font-size: 14.5px;
  line-height: 1.55;
}

/* Server-supplied success message (e.g. double-opt-in notice) */
.panel__success-note {
  margin: 0 0 1.1rem !important;
  padding: 0.7rem 0.9rem;
  background: rgba(84, 220, 248, 0.08);
  border-left: 2px solid var(--ice-bright);
  border-radius: 0 6px 6px 0;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: var(--frost) !important;
}

/* ---------- FORM ---------- */
.form { display: flex; flex-direction: column; gap: 0.95rem; margin: 0; padding: 0; }
/* display:none (not off-screen) so browser autofill / password managers never
   populate the trap — 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(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--frost-faint);
}
.form__label-hint {
  margin-left: 0.4em;
  opacity: 0.65;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.form__input {
  width: 100%;
  padding: 0.65rem 0;
  background: transparent;
  color: var(--frost);
  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(--frost-faint); letter-spacing: 0; }
.form__input:focus {
  outline: 0;
  border-bottom-color: var(--ice-bright);
}
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--frost);
  -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: 28px;
  letter-spacing: 0.45em;
  text-align: center;
  padding: 0.8rem 0;
}

/* ============================================================
   intl-tel-input v19 — frost-theme overrides
   ============================================================ */

.iti { display: block; width: 100%; }

/* Vendor reserves ~52px for the flag/dial-code area — gotcha #1 */
.iti input.form__input { padding-left: calc(52px + 0.7rem); }

.iti__flag-container { background: transparent; }
.iti__selected-flag {
  background: transparent !important;
  padding-left: 0;
  border-right: 1px solid var(--hairline);
}
.iti__selected-flag:hover,
.iti__selected-flag[aria-expanded="true"] { background: rgba(238,246,252,0.05) !important; }
.iti__arrow { border-top-color: var(--frost-faint); }
.iti__arrow--up { border-bottom-color: var(--ice-bright); }
.iti__selected-dial-code { color: var(--frost-soft); font-family: var(--sans); font-size: 14px; }

.iti__dropdown-content {
  background-color: var(--panel-bg-solid) !important;
  color: var(--frost);
  border-radius: 10px !important;
}
.iti--inline-dropdown .iti__dropdown-content {
  position: absolute;
  z-index: 1000;            /* above panel chrome + other inputs */
  margin-top: 4px;
  margin-left: 0;
  border: 1px solid var(--hairline-hi) !important;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.6),
    0 2px 6px rgba(0,0,0,0.4) !important;
  min-width: 280px;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
}

.iti__search-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--night-deep);
  color: var(--frost);
  font-family: var(--sans);
  font-size: 14px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  outline: 0;
  border-radius: 0;
}
.iti__search-input::placeholder { color: var(--frost-faint); }
.iti__search-input:focus { border-bottom-color: var(--ice-bright); }

.iti__country-list {
  background: var(--panel-bg-solid);
  color: var(--frost);
  border: 0;
  font-family: var(--sans);
  max-height: 240px;
  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(--frost-faint); }

.iti__country {
  padding: 0.55rem 0.9rem;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: background .12s ease;
}
.iti__country:hover { background: rgba(238,246,252,0.05); }
.iti__country.iti__highlight {
  background: rgba(84, 220, 248, 0.12);
  color: var(--ice-bright);
}
.iti__country.iti__highlight .iti__dial-code { color: var(--ice-bright); opacity: 0.85; }
.iti__country-name { color: var(--frost); flex: 1; }
.iti__dial-code { color: var(--frost-faint); font-size: 12.5px; letter-spacing: 0.02em; }
.iti__divider {
  border-bottom: 1px solid var(--hairline);
  padding: 0;
  margin: 0.25rem 0;
}
.iti__no-results {
  padding: 0.7rem 0.9rem;
  font-size: 13px;
  color: var(--frost-faint);
}

.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(--frost-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: 4px;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.form__check input[type="checkbox"]:hover { border-color: var(--ice-bright); }
.form__check input[type="checkbox"]:checked {
  background: var(--ice-grad-btn);
  border-color: var(--ice-mid);
}
.form__check input[type="checkbox"]:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--night-deep);
  border-bottom: 2px solid var(--night-deep);
  transform: rotate(-45deg) translate(0, -1px);
}
.form__check a { color: var(--frost); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--frost-ghost); }
.form__check a:hover { text-decoration-color: var(--ice-bright); }

.form__error {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  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: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-deep);
  background: var(--ice-grad-btn);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 22px rgba(63, 180, 238, 0.28);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 30px rgba(84, 220, 248, 0.4);
}
.btn:active { transform: translateY(1px); }

/* Frost-sheen sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.45) 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-weight: 400;
  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 {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 30px rgba(37, 211, 102, 0.4);
}
.btn__icon { width: 22px; height: 22px; position: relative; z-index: 1; }

.form__resend {
  margin: 0.9rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost-faint);
  text-align: center;
}
.form__resend-btn {
  background: transparent;
  border: 0;
  color: var(--ice-bright);
  font-family: inherit;
  font-weight: 700;
  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(84, 220, 248, 0.4);
}
.form__resend-btn:disabled { color: var(--frost-faint); text-decoration-color: var(--frost-ghost); cursor: not-allowed; }

/* ---------- FOOTER ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frost-faint);
  text-shadow: 0 1px 2px rgba(2, 8, 16, 0.6);
}
.foot a { color: var(--frost-soft); text-decoration: none; }
.foot a:hover { color: var(--ice-bright); }
.foot__legal { margin: 0; }

/* Copyright + Furiosa pill share the left side of the footer */
.foot__left {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 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-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--frost-soft);
  background: rgba(8, 18, 32, 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(--ice-bright);
  border-color: var(--ice-bright);
  background: rgba(84, 220, 248, 0.06);
}
.site-built img { display: inline-block; opacity: 0.95; filter: grayscale(1) brightness(2.4); vertical-align: middle; }

/* Footer: the desktop space-between row gets cramped and uneven on phones once
   the copyright line wraps, so below 600px stack everything into a clean,
   centred column — copyright, then the Furiosa pill, then the privacy link. */
@media (max-width: 600px) {
  .foot {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding-top: 1.1rem;
  }
  .foot__left {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }
  .foot__legal { letter-spacing: 0.12em; }
}

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

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

/* ---------- LEGAL PAGES (privacy.html) ---------- */
body.legal-wrap {
  background: var(--night);
  color: var(--frost);
  font-family: var(--sans);
  font-weight: 400;
  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(10, 22, 38, 0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease;
}
.legal__back:hover {
  border-color: var(--ice-mid);
  background: rgba(84, 220, 248, 0.07);
}
/* Gradient arrow chip — nudges left on hover */
.legal__back-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ice-grad-btn);
  color: var(--night-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform .18s ease;
}
.legal__back:hover .legal__back-arrow { transform: translateX(-3px); }
.legal__back-arrow svg { width: 13px; height: 13px; display: block; }
/* Stacked label: tiny "BACK TO" eyebrow over the brand in proper casing */
.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(--frost-faint);
}
.legal__back-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--frost);
}

.legal h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 2rem;
  background: var(--ice-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--frost);
  text-wrap: balance;
}
.legal h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice-bright);
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--hairline);
}
.legal h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost-soft);
  margin: 1.8rem 0 0.4rem;
}
.legal h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost-faint);
  margin: 1.4rem 0 0.3rem;
}
.legal p, .legal li {
  font-size: 14.5px;
  color: var(--frost-soft);
}
.legal ul { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.legal li { margin-bottom: 0.45rem; }
/* Body-copy links are underlined — but exclude the back-button pill, whose
   underline (from this rule out-specificity-ing .legal__back) was bleeding
   across the whole pill. */
.legal a:not(.legal__back) { color: var(--ice-bright); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(84,220,248,0.4); }
.legal a:not(.legal__back):hover { text-decoration-color: var(--ice-bright); }
.legal strong { color: var(--frost); font-weight: 500; }
.legal__meta {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frost-faint);
}

/* ---------- TINY VIEWPORTS ---------- */
@media (max-width: 380px) {
  .stage { padding: 0.7rem 0.85rem 0.4rem; }
  .panel { padding: 1.1rem 1rem; }
}
