/* ══════════════════════════════════════════════════════════
   HERO — EXPLORE ALLOCORE
   Full-bleed footage with a title at the top and the selector panel in the
   lower third. Shares .hero-vid and .motion-btn with the video hero; only
   the layout over the footage is new.
   ══════════════════════════════════════════════════════════ */

/* #hero.hero-explore, not .hero-explore: hero-video.css styles #hero by id,
   so a bare class loses to it and this hero silently stayed a centred flex
   column — the panel floated mid-screen instead of sitting at the foot.
   Matching the id weight is the fix; news.css reached for !important here. */
#hero.hero-explore{
  position:relative; min-height:100svh;
  display:grid; grid-template-rows:1fr auto;
  padding:0; overflow:hidden;
}
#hero.hero-explore::before{ content:""; position:absolute; inset:0 0 auto; z-index:1; height:clamp(104px,14vh,150px); pointer-events:none; background:linear-gradient(to bottom,var(--media-overlay),transparent); opacity:.94; }
/* Text sits on footage in both themes, so it is pinned light here rather
   than following --paper, exactly as the video hero does. */
.hero-explore{ --xp-ink:#FFFFFF; --xp-sub:rgba(255,255,255,.88); }

/* Two layers, like the video hero's. The horizontal one is what makes the
   headline legible: measured against a worst-case white frame, the vertical
   gradient alone left the h1 at 1.77:1 and the eyebrow at 2.65:1, because
   the footage is brightest exactly where the scrim is thinnest. The vertical
   one is heavier at the foot than the video hero's, since the panel carries
   a select and a paragraph down there. */
.xp-scrim{
  background:
    linear-gradient(100deg,rgba(4,12,20,.90) 0%,rgba(4,12,20,.72) 38%,rgba(4,12,20,.26) 66%,rgba(4,12,20,.06) 100%),
    linear-gradient(to bottom,rgba(4,12,20,.62) 0%,rgba(4,12,20,.22) 26%,rgba(4,12,20,.28) 46%,rgba(4,12,20,.90) 76%,rgba(4,12,20,.97) 100%);
}

.xp-top{
  position:relative; z-index:2; grid-row:1;
  padding-top:clamp(120px,15vh,180px);
}
.xp-top .eyebrow{ color:var(--xp-ink); }
.xp-top .eyebrow::before{ background:var(--xp-ink); }
.xp-h1{
  margin-top:20px; max-width:16ch;
  color:var(--xp-ink);
  font-size:clamp(40px,6.4vw,104px); line-height:.98; letter-spacing:-.045em;
}

/* ── the lower third ─────────────────────────────────────── */
/* The brief asks for the lower third, so the panel is kept to roughly a
   third of the viewport: the padding below it is only what the .motion-btn
   needs to clear, and the copy column is capped at two lines at this size. */
.xp-panel{
  position:relative; z-index:2; grid-row:2;
  width:100vw; margin-left:calc(50% - 50vw); padding-block:clamp(24px,3.5vh,40px) clamp(42px,5vh,60px);
  border-top:1px solid rgba(255,255,255,.14);
  background:linear-gradient(to bottom,#07182c9f,var(--media-overlay));
}
.xp-controls{
  position:absolute; z-index:4; right:var(--pad); bottom:100%;
  display:flex; align-items:center; gap:10px;
  margin-bottom:16px; pointer-events:auto;
}
.xp-controls .motion-btn{
  position:static;
  white-space:nowrap; pointer-events:auto;
}
.volume-btn .volume-ico{ width:14px; height:14px; flex:0 0 auto; }
.volume-btn.is-muted .volume-wave{ display:none; }
.xp-panel-grid{
  display:grid; grid-template-columns:minmax(0,1fr);
  gap:clamp(22px,3vw,34px); align-items:start;
}

.xp-pick{
  min-width:0; display:flex; gap:10px; overflow-x:auto; overscroll-behavior-inline:contain;
  padding:2px 2px 10px; scrollbar-width:thin; scrollbar-color:var(--flow-edge) transparent;
  -webkit-overflow-scrolling:touch;
}
.xp-picker-row{ grid-column:1; display:flex; align-items:center; gap:10px; min-width:0; }
.xp-picker-row .xp-pick{ flex:1 1 auto; }
.xp-filter{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:9px; min-height:42px;
  padding:10px 16px; border:1px solid var(--flow-edge); border-radius:999px;
  background:var(--ink-2); color:var(--paper); font:inherit; font-size:13px; line-height:1.2;
  cursor:pointer; transition:background-color .25s ease,color .25s ease,border-color .25s ease,transform .25s ease;
}
.xp-filter:hover{ transform:translateY(-1px); border-color:var(--paper); }
.xp-filter.is-active{ background:var(--paper); color:var(--ink); border-color:var(--paper); }
.xp-filter--cta{ background:var(--action); color:var(--ai-card-white); border-color:var(--action); text-decoration:none; }
.xp-filter--cta:hover,
.xp-filter--cta:focus-visible{ background:var(--paper); border-color:var(--paper); color:var(--ink); }
.xp-filter:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; }
.xp-filter--cta:focus-visible{ outline-color:var(--focus-on-action); }

.xp-detail{ min-width:0; max-width:none; display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:clamp(24px,5vw,72px); align-items:center; }
.xp-pick{ grid-column:1; }
.xp-copy{
  grid-column:1;
  margin-top:11px; color:var(--xp-sub);
  font-size:14.5px; line-height:1.55;
}

@media (max-width:900px){
  .xp-panel-grid{ grid-template-columns:1fr; gap:22px }
  .xp-panel{ padding-block:28px clamp(52px,7vh,72px) }
  .xp-detail{ max-width:none }
}
@media (max-width:640px){
  .xp-controls{ right:var(--pad); margin-bottom:12px; }
  .xp-controls .motion-btn{ padding:8px 12px 8px 11px; }
  .xp-detail{ display:block; }
  .xp-picker-row{ display:block; }
  .xp-picker-row .xp-filter--cta{ margin-top:10px; }
}
