/* =====================================================================
   OZAURA — banner.css
   Full-bleed campaign carousel under the hero.

   Not a sliding track. Each banner is cut into vertical strips, and a
   slide arrives by wiping those strips open in a stagger — even strips
   from the bottom, odd ones from the top — so the artwork interlocks
   into place instead of sliding past. Slides are stacked, not queued,
   so nothing ever moves horizontally.

   The strips reassemble the picture exactly: every strip holds the same
   image sized to the full stage (width:600% of a 1/6 strip) and shifted
   left by its own index, so the seams land on identical pixels.
   ===================================================================== */

.bnr{ position:relative; width:100%; }

.bnr-stage{
  position:relative; width:100%; overflow:hidden;
  aspect-ratio:2089/753; background:var(--cream-2);
  touch-action:pan-y;                 /* page still scrolls; we read the x-axis */
  outline:none;
}

/* ---------------- slides (stacked, never translated) ---------------- */
.bnr-slide{
  position:absolute; inset:0; display:block; color:inherit;
  z-index:1; pointer-events:none;
}
.bnr-slide.on{ z-index:3; pointer-events:auto; }
.bnr-slide.under{ z-index:2; }        /* the one being covered, still visible beneath */

.bnr-cols{ position:absolute; inset:0; display:flex; }
.bnr-col{
  position:relative; flex:1 1 0; min-width:0; overflow:hidden;
  /* closed: even strips wait below the frame, odd ones above */
  clip-path:inset(100% 0 0 0);
  transition:clip-path .78s cubic-bezier(.76,0,.24,1);
  transition-delay:calc(var(--i) * .058s);
}
.bnr-col:nth-child(even){ clip-path:inset(0 0 100% 0); }
.bnr-slide.on .bnr-col{ clip-path:inset(0 0 0 0); }

/* The slide being covered must stay FULLY open, and instantly — losing
   .on would otherwise start wiping it shut at the same moment, and the
   incoming strips would open onto bare stage instead of the old art. */
.bnr-slide.under .bnr-col{ clip-path:inset(0 0 0 0); transition:none; }

/* strips snap shut with no animation once they're hidden behind the new slide */
.bnr-slide.resetting .bnr-col{ transition:none; }

.bnr-col img{
  position:absolute; top:0; left:calc(var(--i) * -100%);
  width:600%; height:100%; max-width:none;
  object-fit:cover; object-position:center;
  transform:scale(1.045); transition:transform 9s linear;
  /* an image inside a link is natively draggable, and starting that drag
     kills the pointer stream mid-swipe — so opt out of it entirely */
  -webkit-user-drag:none; user-select:none; pointer-events:none;
}
.bnr-slide.on .bnr-col img{ transform:scale(1); }

/* ---------------- copy (phones only — desktop reads it in the art) ---- */
.bnr-copy{
  position:absolute; inset:auto 0 0 0; z-index:4; display:none;
  padding:1.2rem 1.2rem 3.4rem;
  background:linear-gradient(to top, rgba(29,27,22,.82), rgba(29,27,22,.38) 55%, transparent);
  color:#fff;
}
.bnr-copy b{ display:block; font-family:var(--serif); font-size:1.3rem; line-height:1.15; }
.bnr-copy small{ display:block; font-size:.78rem; opacity:.85; margin-top:.25rem; letter-spacing:.04em; }
.bnr-copy .bnr-go{
  display:inline-flex; align-items:center; gap:.4rem; margin-top:.75rem;
  font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  background:#fff; color:var(--ink); padding:.5rem .95rem; border-radius:999px;
}

/* ---------------- controls ---------------- */
.bnr-ui{
  position:absolute; right:clamp(1rem, 3vw, 2.6rem); bottom:clamp(1rem, 3vw, 2rem);
  z-index:6; display:flex; align-items:center; gap:.9rem;
  padding:.55rem .7rem .55rem 1rem; border-radius:999px;
  background:rgba(255,255,255,.82); backdrop-filter:blur(10px);
  border:1px solid rgba(29,27,22,.09);
  box-shadow:0 14px 34px -18px rgba(29,27,22,.55);
}

/* 01 / 04 counter */
.bnr-count{
  font-size:.76rem; font-weight:700; letter-spacing:.1em; color:var(--ink);
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.bnr-count span{ color:var(--muted); }

/* segmented progress — the live segment fills with the autoplay clock */
.bnr-segs{ display:flex; gap:.3rem; }
.bnr-seg{
  position:relative; width:22px; height:4px; border-radius:999px;
  background:rgba(29,27,22,.18); cursor:pointer; overflow:hidden;
  transition:width .45s cubic-bezier(.76,0,.24,1), background .3s;
  padding:0; border:none;
}
.bnr-seg:hover{ background:rgba(29,27,22,.34); }
.bnr-seg.on{ width:40px; }
.bnr-seg i{ position:absolute; inset:0; width:0; background:var(--sage-deep); border-radius:999px; display:block; }

.bnr-arrows{ display:flex; gap:.25rem; }
.bnr-nav{
  width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  background:transparent; border:1px solid rgba(29,27,22,.16); color:var(--ink);
  cursor:pointer; font-size:.65rem; transition:var(--tr);
}
.bnr-nav:hover{ background:var(--ink); border-color:var(--ink); color:var(--cream); }

/* thin edge hint so the strip seams read as intentional, not as tearing */
.bnr-stage::after{
  content:""; position:absolute; inset:0; z-index:5; pointer-events:none;
  box-shadow:inset 0 -60px 70px -60px rgba(29,27,22,.35);
}

@media (max-width: 860px){
  .bnr-arrows{ display:none; }
}
@media (max-width: 640px){
  .bnr-stage{ aspect-ratio:4/3; }
  .bnr-col img{ object-position:72% center; }   /* keep the bottle, drop the baked-in type */
  .bnr-copy{ display:block; }
  .bnr-ui{
    left:50%; right:auto; translate:-50% 0; bottom:.85rem;
    padding:.45rem .6rem .45rem .85rem; gap:.7rem;
  }
  .bnr-stage::after{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .bnr-col{ transition:none; }
  .bnr-col img{ transition:none; transform:none; }
}
