/* ═══════════════════════════════════════════════════════════
   BICC split-screen hero — pure CSS recreation (no React).
   The split-hover/expand is driven entirely by flexbox + :hover.
   ═══════════════════════════════════════════════════════════ */

/* Front page only: take over the full viewport, no scroll */
body.bicc-front {
  margin: 0;
  background: #000;
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
}
/* Hide the parent theme's admin bar gap / header if it leaks through */
body.bicc-front #wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

.bicc-hero {
  position: fixed;
  inset: 0;
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Panels ───────────────────────────────────────────── */
.bicc-panel {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: flex-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When any panel is hovered/focused, the others shrink …
   (The expand rules below are written with EQUAL-or-higher specificity AND
   placed after, so the hovered panel correctly wins → it grows, not shrinks.) */
.bicc-hero:hover .bicc-panel { flex-grow: 0.6; }
.bicc-hero:focus-within .bicc-panel { flex-grow: 0.6; }

/* … and the hovered/focused one expands (~71 / 29). */
.bicc-hero:hover .bicc-panel:hover { flex-grow: 1.5; }
.bicc-hero:focus-within .bicc-panel:focus { flex-grow: 1.5; }

/* Tap-to-expand fallback for touch / non-hover devices (set via hero.js) */
.bicc-hero:has(.is-active) .bicc-panel { flex-grow: 0.6; }
.bicc-hero:has(.is-active) .bicc-panel.is-active { flex-grow: 1.5; }
.bicc-panel.is-active .bicc-bg { filter: brightness(1); }
.bicc-hero:has(.is-active) .bicc-panel:not(.is-active) .bicc-bg {
  filter: brightness(0.45) blur(4px);
}

/* Background image layer */
.bicc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.82);
  transition: filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, transform;
}
.bicc-panel:hover .bicc-bg,
.bicc-panel:focus .bicc-bg { filter: brightness(1); }

/* Dim + blur the NON-hovered panel */
.bicc-hero:hover .bicc-panel:not(:hover) .bicc-bg {
  filter: brightness(0.45) blur(4px);
}

/* Legibility gradient + per-side tint */
.bicc-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.25) 45%,
    transparent
  );
}
.bicc-tint { position: absolute; inset: 0; mix-blend-mode: soft-light; }
.bicc-tint-left { background: rgba(120, 30, 60, 0.28); }
.bicc-tint-right { background: rgba(20, 40, 90, 0.28); }

/* ── Panel content (centered) ─────────────────────────── */
.bicc-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.bicc-title {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.bicc-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bicc-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.bicc-btn-arrow { transition: transform 0.3s ease; }
.bicc-btn:hover .bicc-btn-arrow { transform: translateX(3px); }

/* ── Divider (zero-width flex item → always on the seam) ─ */
.bicc-divider {
  position: relative;
  flex: 0 0 0;
  z-index: 30;
}
.bicc-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
}
.bicc-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
}
.bicc-hero:hover .bicc-circle { transform: translate(-50%, -50%) scale(1.1); }
.bicc-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.bicc-chev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}
.bicc-chev-l { left: 7px; }
.bicc-chev-r { right: 7px; }

/* ── Centered logo ────────────────────────────────────── */
.bicc-logo-mark {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}
.bicc-logo-mark img { height: 34px; width: auto; display: block; }

/* ── Center overlay text ──────────────────────────────── */
.bicc-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  pointer-events: none;
}
.bicc-overlay-title {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-align: center;
  color: #fff;
  mix-blend-mode: difference;
}

/* ── Bottom marquee + footer ──────────────────────────── */
.bicc-marquee-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.bicc-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 10;
  pointer-events: none;
}
.bicc-fade-l { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.4), transparent); }
.bicc-fade-r { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.4), transparent); }

.bicc-marquee-mask { overflow: hidden; padding: 12px 0; }
.bicc-marquee-track {
  display: flex;
  width: max-content;
  animation: bicc-marquee 36s linear infinite;
  will-change: transform;
}
.bicc-marquee-bar:hover .bicc-marquee-track { animation-play-state: paused; }
.bicc-logo-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  flex-shrink: 0;
}
.bicc-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0) invert(1); /* black & white (white silhouette) */
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.bicc-logo:hover { opacity: 1; filter: none; }

@keyframes bicc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.bicc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 24px 8px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}
.bicc-footer > span { flex: 1; }
.bicc-footer-l { text-align: left; }
.bicc-footer-c { text-align: center; color: rgba(255, 255, 255, 0.6); }
.bicc-footer-r { text-align: right; }
.bicc-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.bicc-footer a:hover { color: #fff; }

/* ── Mobile: stack vertically, disable the split interaction ── */
@media (max-width: 767px) {
  .bicc-hero { position: relative; flex-direction: column; height: auto; }
  .bicc-panel { flex: none; height: 60vh; }
  .bicc-hero:hover .bicc-panel,
  .bicc-hero:focus-within .bicc-panel { flex-grow: 0; }
  .bicc-divider { display: none; }
  .bicc-overlay { padding-top: 16vh; }
  .bicc-title { white-space: normal; }
  .bicc-marquee-bar { position: relative; }
  .bicc-footer { flex-direction: column; text-align: center; }
  .bicc-footer > span { text-align: center; }
  body.bicc-front { overflow: auto; }
}

/* ── Cursor glow — soft light that trails the mouse ───── */
.bicc-cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px; /* center on the pointer */
  border-radius: 50%;
  pointer-events: none;
  z-index: 55;
  mix-blend-mode: screen;
  will-change: transform;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    transparent 70%
  );
}
@media (hover: none) {
  .bicc-cursor-glow { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE-LOAD ENTRANCE ANIMATIONS  (staggered, like the original)
   ═══════════════════════════════════════════════════════════ */

@keyframes bicc-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bicc-drop {
  /* logo is horizontally centered via translateX(-50%) — keep it */
  from { opacity: 0; transform: translateX(-50%) translateY(-18px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bicc-fly-left {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bicc-fly-right {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bicc-pop {
  /* circle is centered via translate(-50%,-50%) — keep it */
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes bicc-overlay-in {
  from { opacity: 0; transform: translateY(32px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Cinematic easing to match the React/Framer build */
.bicc-logo-mark {
  animation: bicc-drop 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.bicc-left {
  animation: bicc-fly-left 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.bicc-right {
  animation: bicc-fly-right 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.bicc-overlay-title {
  animation: bicc-overlay-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
/* `backwards` (not `both`) so the hover scale still works after entrance */
.bicc-circle {
  animation: bicc-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.95s backwards;
}
.bicc-title {
  animation: bicc-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}
.bicc-btn {
  animation: bicc-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}
.bicc-marquee-bar {
  animation: bicc-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both;
}

@media (prefers-reduced-motion: reduce) {
  .bicc-marquee-track { animation: none; }
  .bicc-panel, .bicc-bg, .bicc-circle { transition: none; }
  /* Disable all entrance animations for reduced-motion users */
  .bicc-logo-mark,
  .bicc-left,
  .bicc-right,
  .bicc-overlay-title,
  .bicc-circle,
  .bicc-title,
  .bicc-btn,
  .bicc-marquee-bar { animation: none; }
}
