/* =====================================================================
   Demo Gallery hero redesign  (Direction A)
   Pairs with hero-redesign.js — that script builds the eyebrow + headline
   and relocates the existing Inflow AI Lottie wordmark into the eyebrow.

   TUNING KNOBS  (edit these values, nothing else, to fine-tune)
   --------------------------------------------------------------------- */
.selector-hero.hf-on {
  --hf-eyebrow-shift: 0px;   /* horizontal nudge of the whole eyebrow (+ = right, - = left) */
  --hf-mark-size:     31px;  /* height of the small Inflow AI wordmark in the eyebrow */
  --hf-mark-gap:      12px;  /* gap between wordmark | divider | DEMO GALLERY */
  --hf-mark-shift-y:  -7px;   /* vertical nudge of the wordmark vs the label (+ = down) */
}
/* ===================================================================== */

/* Anti-flash: hide the hero only while the script is preparing it. */
.selector-hero.hf-prep:not(.hf-on) { opacity: 0; }

.selector-hero.hf-on {
  margin-top: clamp(6px, 1.2svh, 16px);
  gap: clamp(8px, 1.2svh, 14px);
  opacity: 1;
  transition: opacity 0.22s ease;
}

.hf-block {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.4svh, 16px);
  width: 100%;
}

/* ---- eyebrow: [ Inflow AI wordmark ] | DEMO GALLERY ---- */
.hf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--hf-mark-gap, 12px);
  transform: translateX(var(--hf-eyebrow-shift, 0px));
}

.hf-eyebrow .selector-title-lottie {
  width: auto !important;
  height: var(--hf-mark-size, 31px) !important;
  aspect-ratio: 1920 / 720;
  margin: 0 !important;            /* JS overwrites L/R margins to ink-hug for centering */
  overflow: visible !important;
  filter: none !important;
  display: block !important;
  transform: translateY(var(--hf-mark-shift-y, 0px));
}
.hf-eyebrow .selector-title-lottie-player,
.hf-eyebrow .selector-title-lottie-player svg {
  width: 100% !important;
  height: 100% !important;
}

.hf-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.22);
}

.hf-eblabel {
  font-size: clamp(0.72rem, 1.05vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(248, 247, 243, 0.72);
  white-space: nowrap;
}

/* ---- headline ---- */
.hf-headline {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.5rem, min(5.4vw, 7.4svh), 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, #ffffff 0%, #f4f1ff 38%, #b9a6ff 78%, #8ecbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- subtitle (kept, just lifted out of the murk) ---- */
.selector-hero.hf-on .selector-subtitle {
  color: rgba(248, 247, 243, 0.84);
  margin-top: clamp(4px, 0.8svh, 10px);
  max-width: 48ch;
}

@media (max-width: 760px) {
  .hf-headline { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .selector-hero.hf-on { --hf-mark-size: 27px; }
}
