/* ==========================================================================
   USHA WELLNESS FESTIVAL — COMING SOON
   --------------------------------------------------------------------------
   Contents
     01  Tokens
     02  Reset & base
     03  Type scale & shared elements
     04  Buttons
     05  Masthead
     06  Hero
     07  Prologue
     08  Connections
     09  Elements
     10  Venue & image placeholders
     11  Registration form
     12  Footer
     13  Reveal on scroll
     14  Reduced motion & print
   --------------------------------------------------------------------------
   The page is built as a sunrise: it opens in darkness and lightens as you
   scroll, following the brand palette's own progression —
   DARK EARTH · SUNRISE · ROCK · SAND · LIGHT · LIFE
   ========================================================================== */


/* ==========================================================================
   01  TOKENS
   ========================================================================== */
:root {
  /* Brand palette — from the USHA brand guideline */
  --earth-core:   #3A241C;
  --desert-rust:  #BA6F4D;
  --desert-linen: #E6CEBC;
  --desert-mist:  #F4ECE2;
  --first-light:  #8E412E;
  --oasis-sage:   #A2A182;

  /* Tonal extensions of the palette (used for the dawn gradient only) */
  --night:        #150D09;
  /* Desert Rust lifted toward Desert Linen — used only for SMALL text on dark
     grounds, where pure #BA6F4D falls just under the 4.5:1 contrast minimum. */
  --rust-tint:    #CE9479;
  --earth-warm:   #4E2D20;
  --first-deep:   #71321F;

  /* Type */
  --font: "Neue Haas Grotesk Display Pro", "NeueHaasDisplay",
          "Inter Tight", Inter, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.19rem, 1.10rem + 0.44vw, 1.50rem);
  --step-2:  clamp(1.44rem, 1.26rem + 0.88vw, 2.10rem);
  --step-3:  clamp(1.80rem, 1.42rem + 1.90vw, 3.20rem);
  --step-4:  clamp(2.30rem, 1.60rem + 3.50vw, 4.80rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 10rem);
  --wrap: 1180px;
  --wrap-narrow: 720px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   02  RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--desert-linen);
  background: var(--earth-core);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { max-width: var(--wrap-narrow); width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); }

/* Focus — visible everywhere, on light and dark grounds alike */
:focus-visible {
  outline: 2px solid var(--desert-rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--desert-mist);
  color: var(--earth-core);
  padding: 0.75rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Visible to screen readers only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Film grain — a small tiling SVG, reused everywhere */
.grain {
  position: absolute;
  inset: 0;
  background-image: url("grain.svg");
  background-size: 180px 180px;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}
.grain--fixed { position: absolute; z-index: 0; opacity: 0.12; }


/* ==========================================================================
   03  TYPE SCALE & SHARED ELEMENTS
   ========================================================================== */
.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust-tint);
  margin-bottom: 1.5rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--center { max-width: 38rem; margin-inline: auto; text-align: center; }

.section-title {
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: color-mix(in srgb, var(--desert-linen) 82%, transparent);
  max-width: 38rem;
}
.section-head--center .section-lede { margin-inline: auto; }


/* ==========================================================================
   04  BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--desert-mist);
  --btn-fg: var(--earth-core);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; margin-top: 0.75rem; }

.btn--primary:hover { --btn-bg: var(--desert-linen); }

/* On light grounds the CTA becomes First Light — sunrise on sand */
.register .btn--primary {
  --btn-bg: var(--first-light);
  --btn-fg: var(--desert-mist);
}
.register .btn--primary:hover { --btn-bg: #71321F; }

.btn__spinner {
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
}
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn__spinner { display: block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ==========================================================================
   05  MASTHEAD
   ========================================================================== */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.75rem) var(--gutter);
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              padding 0.4s var(--ease);
}
.masthead.is-stuck {
  background: color-mix(in srgb, var(--earth-core) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 rgba(230, 206, 188, 0.12);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.masthead.is-stuck .masthead__brand { opacity: 1; transform: none; }
.masthead__mark { width: 30px; }
.masthead__word { width: 86px; }

/* ==========================================================================
   06  HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(5.5rem, 11vh, 7.5rem) var(--gutter) clamp(4.5rem, 9vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__stage { position: absolute; inset: 0; z-index: 0; }

/* Night sky settling toward a warm horizon */
.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 118%, var(--first-deep) 0%, transparent 62%),
    linear-gradient(180deg, var(--night) 0%, #22140E 46%, var(--earth-core) 100%);
}

/* The cover photograph. The .hero__sky gradient sits underneath as a
   fallback, so the hero still reads if the image is slow or missing. */
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("hero-dawn.jpg") center 42% / cover no-repeat;
  transform: scale(1.06);
  filter: brightness(0.34) saturate(0.88);
  animation: dawn-photo 3.8s var(--ease) 0.2s forwards;
}
@keyframes dawn-photo {
  from { filter: brightness(0.30) saturate(0.82); transform: scale(1.07); }
  to   { filter: brightness(0.78) saturate(1);    transform: scale(1); }
}

/* The looping film, layered over the poster. It only becomes visible once
   it can actually play, so there is never a flash of empty black. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  filter: brightness(0.78) saturate(1);
  transition: opacity 1.4s var(--ease);
}
.hero__video.is-ready { opacity: 1; }

/* Keeps the copy legible over the brightest part of the sunrise */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(64% 54% at 50% 46%, rgba(21, 13, 9, 0.86) 0%, rgba(21, 13, 9, 0.50) 58%, transparent 82%),
    linear-gradient(180deg, rgba(21, 13, 9, 0.74) 0%, rgba(21, 13, 9, 0.10) 28%, rgba(21, 13, 9, 0.18) 60%, var(--earth-core) 100%);
}
/* --- Hero copy ---------------------------------------------------------- */
.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 44rem;
}
.hero__logo, .hero__title,
.hero__teaser, .hero__soon, .hero__btn {
  opacity: 0;
  animation: rise-in 1.1s var(--ease) forwards;
}
.hero__logo   { animation-delay: 0.35s; }
.hero__title  { animation-delay: 0.95s; }
.hero__teaser { animation-delay: 1.15s; }
.hero__soon   { animation-delay: 1.35s; }
.hero__btn    { animation-delay: 1.5s; }
.hero__meta   { animation-delay: 1.65s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__logo {
  width: clamp(190px, 30vw, 300px);
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  filter: drop-shadow(0 6px 28px rgba(21, 13, 9, 0.5));
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--desert-mist);
  text-wrap: balance;
}
.hero__title em { font-style: normal; font-weight: 900; }

.hero__teaser {
  margin-top: clamp(1.1rem, 2.4vw, 1.6rem);
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in srgb, var(--desert-linen) 88%, transparent);
  text-wrap: balance;
}

.hero__soon {
  margin-top: clamp(1.5rem, 3.2vw, 2.25rem);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust-tint);
}
.hero__soon::before,
.hero__soon::after {
  content: "";
  height: 1px;
  width: clamp(28px, 8vw, 64px);
  background: linear-gradient(90deg, transparent, var(--desert-rust));
}
.hero__soon::after { background: linear-gradient(90deg, var(--desert-rust), transparent); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 5;
  display: block;
  padding: 0.75rem;
  opacity: 0;
  animation: rise-in 1s var(--ease) 2.1s forwards;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--desert-rust));
  transform-origin: top;
  animation: scroll-pulse 2.8s var(--ease-soft) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  45%      { transform: scaleY(1);   opacity: 1; }
}


/* Short viewports (most laptops): keep the CTA and location above the fold */
@media (max-height: 900px) and (min-width: 700px) {
  .hero { padding-top: 5.25rem; padding-bottom: 5rem; }
  .hero__logo   { width: clamp(180px, 20vw, 250px); margin-bottom: 1.1rem; }
  .hero__title  { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
  .hero__teaser { margin-top: 1.1rem; font-size: var(--step-0); }
  .hero__soon   { margin-top: 1.4rem; margin-bottom: 1.25rem; }
  .hero__meta   { margin-top: 1.4rem; }
}

/* --- Image placeholder plate -------------------------------------------
   Not used on the page as it stands, but kept as a ready-made slot: drop
   <figure class="plate" data-plate="Label · 1200 x 1600px"></figure>
   anywhere and it renders a branded placeholder. Put a real <img> inside
   and the placeholder styling steps aside automatically.
   ---------------------------------------------------------------------- */
.plate {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(244, 236, 226, 0.45) 0%, transparent 60%),
    linear-gradient(165deg, var(--earth-core) 0%, var(--first-deep) 55%, var(--desert-rust) 100%);
  box-shadow: 0 24px 60px -30px rgba(58, 36, 28, 0.55);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("grain.svg");
  background-size: 180px 180px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}
.plate::after {
  content: attr(data-plate);
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--desert-mist) 88%, transparent);
  background: linear-gradient(180deg, transparent, rgba(21, 13, 9, 0.75));
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate:has(img)::before,
.plate:has(img)::after,
.plate.has-image::before,
.plate.has-image::after { content: none; display: none; }


/* ==========================================================================
   11  REGISTRATION SECTION + FLUENT FORMS SKIN
   --------------------------------------------------------------------------
   The form itself is rendered by Fluent Forms via [fluentform id="3"].
   Everything below re-dresses Fluent Forms' own markup in the USHA identity.
   Selectors are scoped to .usha-form so nothing here can leak into other
   forms elsewhere on the site (admin, contact pages, etc.).

   If a rule does not bite, inspect the element and check the class name —
   Fluent Forms occasionally renames things between major versions.
   ========================================================================== */
.register {
  --dawn-band: clamp(130px, 17vh, 210px);
  position: relative;
  padding-top: calc(clamp(2.5rem, 5vw, 4rem) + var(--dawn-band));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg,
      var(--earth-core) 0%,
      #4A3328 26%,
      #7C6151 50%,
      #B49E8B 72%,
      var(--desert-linen) 88%,
      var(--desert-mist) 100%) top / 100% var(--dawn-band) no-repeat,
    var(--desert-mist);
  color: var(--earth-core);
}

.register__intro {
  max-width: 34rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  font-size: var(--step-1);
  line-height: 1.55;
  color: color-mix(in srgb, var(--earth-core) 80%, transparent);
  text-wrap: balance;
}

/* --- Layout ------------------------------------------------------------- */
.usha-form .fluentform { margin: 0; }
.usha-form .fluentform .ff-el-group { margin-bottom: 1.5rem; }
.usha-form .fluentform .ff-t-container { gap: 1.5rem; display: flex; flex-wrap: wrap; }
.usha-form .fluentform .ff-t-cell { padding: 0; flex: 1 1 260px; }

/* --- Labels -------------------------------------------------------------- */
.usha-form .fluentform .ff-el-input--label label {
  font-family: var(--font);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--earth-core) 80%, transparent);
  margin-bottom: 0.5rem;
  display: block;
}
.usha-form .fluentform .ff-el-is-required.asterisk-right label:after,
.usha-form .fluentform .ff-el-input--label.ff-el-is-required label:after { color: var(--first-light); }

/* --- Inputs: the brand's underline field, not a boxed one ---------------- */
.usha-form .fluentform .ff-el-form-control,
.usha-form .fluentform input[type="text"],
.usha-form .fluentform input[type="email"],
.usha-form .fluentform input[type="tel"],
.usha-form .fluentform input[type="number"],
.usha-form .fluentform select,
.usha-form .fluentform textarea {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--earth-core);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--earth-core) 30%, transparent);
  border-radius: 0;
  box-shadow: none;
  padding: 0.75rem 0;
  width: 100%;
  height: auto;
  transition: border-color 0.3s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.usha-form .fluentform select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233A241C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
  cursor: pointer;
}
.usha-form .fluentform .ff-el-form-control::placeholder { color: color-mix(in srgb, var(--earth-core) 38%, transparent); }
.usha-form .fluentform .ff-el-form-control:focus,
.usha-form .fluentform select:focus,
.usha-form .fluentform textarea:focus {
  border-bottom-color: var(--first-light);
  box-shadow: none;
  outline: none;
}
.usha-form .fluentform .ff-el-form-control:focus-visible {
  outline: 2px solid var(--desert-rust);
  outline-offset: 3px;
}

/* --- Checkboxes & radios ------------------------------------------------
   Every option Fluent Forms renders is a .ff-el-form-check, so this must
   stay light: no dividers, no big vertical padding, or a three-option
   question turns into three ruled rows.
   ---------------------------------------------------------------------- */
.usha-form .fluentform .ff-el-form-check {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  background: none;
}
.usha-form .fluentform .ff-el-form-check:last-child { margin-bottom: 0; }

/* Box and sentence sit on one line, box aligned to the first line of text */
.usha-form .fluentform .ff-el-form-check-label,
.usha-form .fluentform .ff-el-form-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: color-mix(in srgb, var(--earth-core) 86%, transparent);
  cursor: pointer;
}
.usha-form .fluentform .ff-el-form-check-label > span,
.usha-form .fluentform .ff-el-form-check label > span { flex: 1 1 auto; min-width: 0; }

.usha-form .fluentform input[type="checkbox"],
.usha-form .fluentform input[type="radio"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15em 0 0;
  accent-color: var(--first-light);
  cursor: pointer;
}
.usha-form .fluentform input[type="radio"] { border-radius: 50%; }

/* A consent field whose own label has been left empty should not leave a gap */
.usha-form .fluentform .ff-el-input--label:empty { display: none; }

/* --- Submit button ------------------------------------------------------- */
.usha-form .fluentform .ff-btn-submit,
.usha-form .fluentform .ff-btn.ff-btn-submit,
.usha-form .fluentform button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 1.05rem 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--first-light);
  color: var(--desert-mist);
  font-family: var(--font);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.usha-form .fluentform .ff-btn-submit:hover,
.usha-form .fluentform button[type="submit"]:hover {
  background: #71321F;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.usha-form .fluentform .ff-btn-submit:focus-visible { outline: 2px solid var(--desert-rust); outline-offset: 3px; }

/* --- Validation + status messages ---------------------------------------- */
.usha-form .fluentform .ff-el-is-error .ff-el-form-control,
.usha-form .fluentform .has-error .ff-el-form-control { border-bottom-color: #A3241C; }
.usha-form .fluentform .error,
.usha-form .fluentform .text-danger,
.usha-form .fluentform .ff-el-is-error .error {
  font-family: var(--font);
  font-size: var(--step--1);
  color: #A3241C;
  margin-top: 0.4rem;
}
.usha-form .fluentform .ff-message-success,
.usha-form .fluentform .ff_message_success {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--first-light);
  padding: 1rem 1.25rem;
  border: 0;
  border-left: 2px solid currentColor;
  border-radius: 0;
  background: color-mix(in srgb, var(--desert-linen) 55%, transparent);
}
.usha-form .fluentform .ff-errors-in-stack,
.usha-form .fluentform .ff_submit_error {
  font-family: var(--font);
  color: #A3241C;
  padding: 1rem 1.25rem;
  border-left: 2px solid currentColor;
  background: color-mix(in srgb, var(--desert-linen) 55%, transparent);
}

/* Fluent Forms' loading spinner, in brand colours */
.usha-form .fluentform .ff_submitting .ff-btn-submit { opacity: 0.75; pointer-events: none; }

/* --- Privacy note under the form ----------------------------------------- */
.form__privacy {
  margin-top: 1.75rem;
  font-size: var(--step--1);
  line-height: 1.7;
  text-align: center;
  color: color-mix(in srgb, var(--earth-core) 76%, transparent);
}


/* ==========================================================================
   12  FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--earth-core);
  color: var(--desert-linen);
}

/* Left to right: logo, copyright, social icons. Stacks and centres on phones. */
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
}

.footer__logo { width: clamp(108px, 12vw, 140px); flex: none; }

.footer__copy {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--desert-linen) 68%, transparent);
}

.footer__social { display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 0.6rem); }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: color-mix(in srgb, var(--desert-linen) 78%, transparent);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.footer__social a:hover {
  color: var(--earth-core);
  background: var(--desert-mist);
  transform: translateY(-2px);
}
.footer__social svg { display: block; }

@media (max-width: 720px) {
  .footer__inner { flex-direction: column; justify-content: center; gap: 1.35rem; }
  .footer__copy { text-align: center; order: 3; }
  .footer__social { order: 2; }
}


/* ==========================================================================
   13  REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Gentle stagger for items inside a grid */
.connect__item:nth-child(2), .element:nth-child(2) { transition-delay: 0.1s; }
.connect__item:nth-child(3), .element:nth-child(3) { transition-delay: 0.2s; }
.element:nth-child(4) { transition-delay: 0.3s; }


/* ==========================================================================
   14  REDUCED MOTION & PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Land everything on its finished state rather than hiding it */
  .hero__content > *,
  .hero__scroll { opacity: 1; transform: none; }
  .hero__photo  { filter: brightness(0.78) saturate(1); transform: none; }
  .hero__video  { display: none; }   /* the still poster stands in */
  .reveal { opacity: 1; transform: none; }
  .masthead__brand { transition: none; }
  .hero__scroll-line { transform: scaleY(1); opacity: 0.8; }
}

@media print {
  .masthead, .hero__stage, .hero__scroll, .grain { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .prologue, .connect, .elements, .venue, .register, .footer {
    background: #fff !important; color: #000 !important;
  }
}
