/* =====================================================================
   WeBreedlove Productions — site-wide enhancement layer
   Loaded after the page's inline <style> so it overrides where intended.
   Tasteful, cinematic, on-brand. Respects prefers-reduced-motion.
   ===================================================================== */

/* ---------- Scroll progress rail (top of viewport) ------------------- */
.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
.scroll-rail__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--seal, #8b1f1f) 30%, var(--gold, #b08d57) 70%, transparent);
  transform-origin: left center;
  will-change: width;
  transition: width 80ms linear;
}

/* ---------- Cinema letterbox bars (hero only) ------------------------ */
.letterbox {
  position: fixed;
  left: 0; right: 0;
  height: 0;
  background: #000;
  z-index: 9998;
  pointer-events: none;
  transition: height 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: height;
}
.letterbox--top { top: 0; }
.letterbox--bot { bottom: 0; }
body.cinema .letterbox { height: 56px; }
@media (max-width: 720px) {
  body.cinema .letterbox { height: 36px; }
}

/* ---------- Awards / trust strip (under hero) ------------------------ */
.awards-strip {
  margin: -3rem auto 4rem;
  padding: 1.4rem var(--page-pad, 1.5rem);
  max-width: var(--content-w, 1320px);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(10,10,10,0.08);
  border-bottom: 1px solid rgba(10,10,10,0.08);
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke, #5a5a5a);
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(245,239,228,0.55) 50%, transparent);
}
.awards-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.awards-strip__item svg,
.awards-strip__item .seal {
  width: 14px; height: 14px;
  flex: 0 0 14px;
  fill: var(--seal, #8b1f1f);
}
.awards-strip__item .seal {
  display: inline-block;
  border-radius: 50%;
  background: var(--seal, #8b1f1f);
  box-shadow: 0 0 0 3px rgba(139,31,31,0.12);
}
.awards-strip__sep {
  width: 1px; height: 14px;
  background: rgba(10,10,10,0.18);
}

/* ---------- Scarcity / availability capsule -------------------------- */
.availability {
  position: relative;
  margin: 0 auto 4rem;
  max-width: 920px;
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(139,31,31,0.18);
  background: linear-gradient(180deg, rgba(245,239,228,0.7), rgba(235,226,207,0.55));
  border-left: 3px solid var(--seal, #8b1f1f);
  border-radius: 2px;
  font-family: var(--f-body, Inter, sans-serif);
  font-size: 0.92rem;
  color: var(--ink, #0a0a0a);
}
.availability__pulse {
  position: relative;
  width: 10px; height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--seal, #8b1f1f);
}
.availability__pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--seal, #8b1f1f);
  animation: avPulse 2.4s ease-out infinite;
}
@keyframes avPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.availability__label {
  font-family: var(--f-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seal, #8b1f1f);
  margin-right: 0.4rem;
}
.availability__count {
  font-family: var(--f-display, serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink, #0a0a0a);
}

/* ---------- Activity toaster (rotating real-project mentions) -------- */
.toaster {
  position: fixed;
  left: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 0.85rem 1rem;
  background: rgba(10,10,10,0.92);
  color: var(--paper, #f5efe4);
  border: 1px solid rgba(245,239,228,0.12);
  border-left: 2px solid var(--seal, #8b1f1f);
  font-family: var(--f-body, Inter, sans-serif);
  font-size: 0.78rem;
  line-height: 1.4;
  z-index: 9990;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease, cubic-bezier(.22,1,.36,1)),
              transform 600ms var(--ease, cubic-bezier(.22,1,.36,1));
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.toaster.show {
  opacity: 1;
  transform: translateY(0);
}
.toaster__kicker {
  display: block;
  font-family: var(--f-mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft, #d4b984);
  margin-bottom: 0.35rem;
}
.toaster__close {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: 0;
  color: rgba(245,239,228,0.5);
  cursor: pointer;
  font-size: 0.9rem;
  pointer-events: auto;
}
@media (max-width: 540px) {
  .toaster { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Magnetic CTA halo (additive, doesn't change existing) ---- */
.btn, .magnetic, [data-magnetic] {
  position: relative;
}
.btn::before, .magnetic::before, [data-magnetic]::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(139,31,31,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 320ms var(--ease, ease);
  pointer-events: none;
  z-index: -1;
  filter: blur(14px);
}
.btn:hover::before, .magnetic:hover::before, [data-magnetic]:hover::before {
  opacity: 1;
}

/* ---------- Section reveal entrance polish (additive) ---------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease, ease),
              transform 900ms var(--ease, ease);
  will-change: opacity, transform;
}
.reveal-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Filmstrip section divider -------------------------------- */
.filmstrip-divider {
  position: relative;
  height: 36px;
  margin: 4rem 0;
  background: var(--ink, #0a0a0a);
  background-image:
    repeating-linear-gradient(90deg,
      var(--ink, #0a0a0a) 0,
      var(--ink, #0a0a0a) 32px,
      var(--paper, #f5efe4) 32px,
      var(--paper, #f5efe4) 36px,
      var(--ink, #0a0a0a) 36px,
      var(--ink, #0a0a0a) 68px,
      transparent 68px,
      transparent 80px);
  background-size: 80px 100%;
  opacity: 0.92;
}
.filmstrip-divider::before, .filmstrip-divider::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg,
      transparent 0, transparent 8px,
      var(--paper, #f5efe4) 8px, var(--paper, #f5efe4) 14px);
  background-size: 22px 8px;
}
.filmstrip-divider::before { top: 4px; }
.filmstrip-divider::after  { bottom: 4px; }

/* ---------- Trust microcopy line under hero -------------------------- */
.trust-microcopy {
  text-align: center;
  margin: 1.2rem auto 2.6rem;
  font-family: var(--f-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke, #5a5a5a);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: center;
  align-items: center;
}
.trust-microcopy span:not(:last-child)::after {
  content: '·';
  margin-left: 1.2rem;
  color: var(--seal, #8b1f1f);
}

/* ---------- Subtle text-balance on big headlines --------------------- */
h1, h2 { text-wrap: balance; }

/* ---------- Smoke / dust particle layer (hero only) ------------------ */
.smoke-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.22;
  z-index: 1;
}

/* ---------- Reduced motion respects --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-rail,
  .letterbox,
  .toaster,
  .availability__pulse::after,
  .reveal-up { transition: none !important; animation: none !important; }
  .smoke-canvas { display: none; }
  .reveal-up { opacity: 1; transform: none; }
}
