/* Homepage hero: 21 Abyss Lab (live) and Liquid Torsion, alternating with a plain fade.
   Both scenes share one grid cell so the hero keeps the height of the taller one. */
.v2-hero.hero-dual{display:grid;align-items:stretch}
.hero-dual>.hero-scene{grid-area:1/1;position:relative;display:flex;align-items:flex-end;min-height:min(78vh,760px);opacity:0;visibility:hidden;transition:opacity 1.1s ease,visibility 0s linear 1.1s}
.hero-dual>.hero-scene.is-on{opacity:1;visibility:visible;transition:opacity 1.1s ease}
.hero-scene--abyss .hero-abyss-media{position:absolute;inset:0;z-index:0;overflow:hidden;background:#050505}
.hero-scene--abyss .hero-abyss-media iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}
.hero-scene--abyss .hero-abyss-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.84) 0%,rgba(0,0,0,.42) 36%,rgba(0,0,0,0) 56%)}
.hero-scene .v2-hero-copy{padding-bottom:128px}
.hero-abyss-title{margin:0}

/* switch: lets the visitor choose; a choice stops the automatic alternation */
.hero-switch{position:absolute;z-index:4;left:clamp(20px,4vw,56px);bottom:34px;display:flex;gap:6px;padding:4px;border:1px solid rgba(255,255,255,.16);border-radius:40px;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hero-switch[hidden]{display:none}
.hero-switch button{position:relative;min-height:36px;padding:0 16px;border:0;border-radius:30px;background:none;color:#a9abb2;font:500 10px/1 Outfit,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;overflow:hidden}
.hero-switch button[aria-pressed=true]{background:#f2f3f5;color:#050505}
.hero-switch button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hero-switch i{position:absolute;left:14px;right:14px;bottom:5px;height:1px;background:rgba(5,5,5,.18)}
.hero-switch i b{display:block;height:100%;width:0;background:#050505}
.hero-switch button[aria-pressed=false] i{display:none}

/* during the lab's logo moments the centred logo gets the stage; text and shade come back right after */
@media (min-width:761px){
  .hero-scene--abyss .v2-hero-copy,.hero-scene--abyss .hero-abyss-media::after{transition:opacity .45s ease}
  .hero-scene--abyss.is-logo .v2-hero-copy{opacity:.06}
  .hero-scene--abyss.is-logo .hero-abyss-media::after{opacity:.2}
}

/* phone: like the chrome hero, the creature sits in the top of the hero and the copy below it */
@media (max-width:760px){
  .hero-dual>.hero-scene{min-height:min(92svh,760px);flex-direction:column;justify-content:flex-end;align-items:stretch}
  .hero-scene--abyss .hero-abyss-media{inset:0 0 30% 0}
  .hero-scene--abyss .hero-abyss-media::after{background:linear-gradient(180deg,rgba(5,5,5,0) 58%,rgba(5,5,5,.8) 84%,#050505 100%)}
  /* keep the buttons clear of the switch (the site's phone rule sets 30px with !important) */
  .hero-dual .hero-scene .v2-hero-copy{padding-bottom:92px!important}
  /* the lab already shows the 21FADEAWAY logo; a second one under it would overlap */
  .hero-dual .hero-scene--abyss .v2-hero-logo{display:none!important}
  .hero-switch{left:16px;right:16px;bottom:24px}
  .hero-switch button{flex:1;padding:0 8px}
}
@media (prefers-reduced-motion:reduce){.hero-dual>.hero-scene,.hero-dual>.hero-scene.is-on{transition:none}}

/* "Beyond the shirt": the 21 Abyss Lab card comes first, with the circuit light on its edges (below) */
.v2-grid4.v2-labs5{grid-template-columns:repeat(5,minmax(0,1fr))}
.v2-lab--abyss .v2-lab-img img{object-position:50% 45%}
@media (max-width:1100px){
  .v2-grid4.v2-labs5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v2-labs5>.v2-lab--abyss{grid-column:1/-1}
  .v2-labs5>.v2-lab--abyss .v2-lab-img{aspect-ratio:16/9}
}

/* Circuit light: a bright pulse runs around the edge of the Abyss card and of the Abyss "Shop Liquid Torsion" button,
   like current through a circuit, with a soft violet glow behind it. Inner span, because the site's liquid buttons use ::before/::after. */
@property --circuit-a{syntax:'<angle>';initial-value:0deg;inherits:false}
.v2-lab--abyss,.hero-scene--abyss .v2-actions .v2-btn:not(.v2-btn--solid){position:relative;isolation:isolate}
/* the site's cards and buttons clip their content (overflow:hidden), so the outer glow is a box-shadow */
.v2-lab.v2-lab--abyss:not(#ab#ab#ab){box-shadow:inset 0 0 0 1px rgba(170,150,255,.3),0 0 26px rgba(150,120,255,.28),0 0 60px rgba(90,200,255,.12)}
.hero-scene--abyss .v2-actions .v2-btn:not(.v2-btn--solid):not(#ab#ab#ab){border-color:rgba(170,150,255,.32);box-shadow:0 0 18px rgba(150,120,255,.22)}
.circuit{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3}
.circuit::before,.circuit::after{content:"";position:absolute;border-radius:inherit;
  background:conic-gradient(from var(--circuit-a),transparent 0deg,transparent 200deg,rgba(150,120,255,.35) 250deg,#a58fff 310deg,#d9d0ff 335deg,#ffffff 348deg,#7fe6ff 355deg,transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  animation:circuitRun 3.2s linear infinite}
.circuit::before{inset:0;padding:2.5px}
.circuit::after{inset:0;padding:12px;filter:blur(8px) brightness(1.3);opacity:.85}
/* a second, fainter pulse half a lap behind, so the line always carries some current */
.v2-lab--abyss .circuit::before,.v2-lab--abyss .circuit::after{background:conic-gradient(from var(--circuit-a),transparent 0deg,rgba(150,120,255,.25) 90deg,#9f8cff 150deg,#e4dcff 172deg,transparent 180deg,transparent 200deg,rgba(150,120,255,.35) 250deg,#a58fff 310deg,#d9d0ff 335deg,#ffffff 348deg,#7fe6ff 355deg,transparent 360deg)}
.v2-lab--abyss:is(:hover,:focus-visible) .circuit::before,.v2-lab--abyss:is(:hover,:focus-visible) .circuit::after,
.hero-scene--abyss .v2-btn:is(:hover,:focus-visible) .circuit::before,.hero-scene--abyss .v2-btn:is(:hover,:focus-visible) .circuit::after{animation-duration:1.4s}
@keyframes circuitRun{to{--circuit-a:360deg}}
@media (prefers-reduced-motion:reduce){.circuit::before,.circuit::after{animation:none;--circuit-a:120deg}}
