/* StarBio — hero v2. Scoped to .hero-v2 so nothing else on the site changes. */
.hero-v2{--sbh-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;--sbh-ok:#6fd39a;padding:82px 0 56px}
.hero-v2 .sbh-grid{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,.78fr);gap:54px;align-items:center;max-width:1200px;position:relative;z-index:2}
.hero-v2 .sbh-grid>*{min-width:0}

/* eyebrow */
.hero-v2 .sbh-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:11.5px;letter-spacing:.15em;padding:7px 15px 7px 12px;margin-bottom:26px;box-shadow:0 0 0 1px rgba(6,7,10,.6),0 8px 26px rgba(92,192,255,.10)}
.hero-v2 .sbh-eyebrow .dot{position:relative}
.hero-v2 .sbh-eyebrow .dot::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1px solid var(--brand);opacity:.6;animation:sbhPing 2.4s cubic-bezier(0,0,.2,1) infinite}
@keyframes sbhPing{0%{transform:scale(.6);opacity:.7}70%{transform:scale(1.9);opacity:0}100%{opacity:0}}
.hero-v2 .sbh-sep{width:1px;height:11px;background:rgba(255,255,255,.16)}
.hero-v2 .sbh-lot{font-family:var(--sbh-mono);font-size:10.5px;letter-spacing:.06em;color:#8fbfe0;text-transform:none}

/* headline */
.hero-v2 .sbh-title{font-family:var(--display);font-size:clamp(35px,4.1vw,54px);font-weight:800;letter-spacing:-.03em;line-height:1.04}
.hero-v2 .sbh-title .sbh-l2{display:block;text-wrap:balance}
.hero-v2 .sbh-title .grad{background:linear-gradient(104deg,#eef8ff 2%,#7fd0ff 46%,#5b9bff 92%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-v2 .sbh-rule{display:block;width:74px;height:3px;border-radius:3px;margin-top:22px;background:linear-gradient(90deg,var(--brand),rgba(91,155,255,0));transform:scaleX(0);transform-origin:left;animation:sbhSweep .9s .35s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes sbhSweep{to{transform:scaleX(1)}}
.hero-v2 .sbh-sub{color:var(--muted);font-size:17.5px;line-height:1.66;max-width:520px;margin:22px 0 30px}
.hero-v2 .sbh-sub b{color:#dbe4ee;font-weight:600}

/* search */
.hero-v2 .sbh-search-block{max-width:540px;margin-bottom:22px;position:relative}
.hero-v2 .sbh-search{position:relative;display:flex;align-items:center;gap:12px;background:linear-gradient(180deg,rgba(20,24,33,.92),rgba(12,14,19,.92));border:1px solid var(--line2);border-radius:15px;padding:5px 6px 5px 16px;box-shadow:0 18px 44px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.045);transition:border-color .22s,box-shadow .22s}
.hero-v2 .sbh-search:focus-within{border-color:rgba(92,192,255,.55);box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 0 4px rgba(92,192,255,.12)}
.hero-v2 .sbh-search .sbh-mag{color:var(--dim);flex-shrink:0;transition:color .22s}
.hero-v2 .sbh-search:focus-within .sbh-mag{color:var(--brand)}
.hero-v2 .sbh-search input{flex:1;background:none;border:none;outline:none;color:var(--txt);font-family:var(--body);font-size:15.5px;padding:13px 0;min-width:0}
.hero-v2 .sbh-search input::placeholder{color:var(--dim)}
.hero-v2 .sbh-kbd{font-family:var(--sbh-mono);font-size:10.5px;color:var(--dim);border:1px solid var(--line);border-radius:6px;padding:3px 7px;background:rgba(255,255,255,.03)}
.hero-v2 .sbh-clear{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;padding:0;border:none;border-radius:50%;background:rgba(255,255,255,.06);color:var(--dim);cursor:pointer;transition:color .18s ease,background .18s ease}
.hero-v2 .sbh-clear svg{width:13px;height:13px}
.hero-v2 .sbh-clear:hover{color:var(--txt);background:rgba(255,255,255,.13)}
.hero-v2 .sbh-clear:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.hero-v2 .sbh-clear[hidden]{display:none}
.hero-v2 .sbh-go{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:11px;border:none;cursor:pointer;background:linear-gradient(120deg,var(--brand),var(--brand2));color:#04141a;transition:filter .2s,transform .2s}
.hero-v2 .sbh-go:hover{filter:brightness(1.08);transform:translateY(-1px)}
.hero-v2 .sbh-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.hero-v2 .sbh-chip{font-family:var(--sbh-mono);font-size:11.5px;color:var(--muted);border:1px solid var(--line);background:rgba(255,255,255,.02);padding:5px 11px;border-radius:100px;cursor:pointer;transition:.18s}
.hero-v2 .sbh-chip:hover{color:var(--txt);border-color:rgba(92,192,255,.42);background:rgba(92,192,255,.07)}

.hero-v2 .sbh-results{position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:40;background:linear-gradient(180deg,#12151d,#0b0d12);border:1px solid var(--line2);border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.7);overflow:hidden;display:none}
.hero-v2 .sbh-results.open{display:block;animation:sbhPop .18s ease}
@keyframes sbhPop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.hero-v2 .sbh-rhead{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);font-family:var(--sbh-mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.hero-v2 .sbh-res{display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.04);transition:background .15s}
.hero-v2 .sbh-res:last-child{border-bottom:none}
.hero-v2 .sbh-res:hover,.hero-v2 .sbh-res.active{background:rgba(92,192,255,.08)}
.hero-v2 .sbh-res img{width:38px;height:38px;border-radius:9px;object-fit:cover;background:#0a0c11;flex-shrink:0}
.hero-v2 .sbh-res .sbh-meta{display:block;min-width:0}
.hero-v2 .sbh-res .sbh-nm{display:block;font-family:var(--display);font-weight:600;font-size:14.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-v2 .sbh-res .sbh-ct{display:block;font-size:11.5px;color:var(--dim);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-v2 .sbh-res .sbh-right{display:block;margin-left:auto;text-align:right;flex-shrink:0}
.hero-v2 .sbh-res .sbh-pr{display:block;font-family:var(--sbh-mono);font-size:13px;font-weight:600;color:var(--txt)}
.hero-v2 .sbh-res .sbh-in{font-family:var(--sbh-mono);font-size:10px;letter-spacing:.06em;color:var(--sbh-ok);display:flex;align-items:center;gap:5px;justify-content:flex-end;margin-top:2px}
.hero-v2 .sbh-in i{width:5px;height:5px;border-radius:50%;background:var(--sbh-ok);box-shadow:0 0 8px rgba(111,211,154,.8);font-style:normal}
.hero-v2 .sbh-res mark{background:rgba(92,192,255,.22);color:#dff1ff;border-radius:3px;padding:0 1px}
.hero-v2 .sbh-empty{padding:16px 14px;font-size:13.5px;color:var(--dim)}
.hero-v2 .sbh-empty a{color:#7fd0ff}

/* CTAs */
.hero-v2 .sbh-cta{margin-top:6px}
.hero-v2 .sbh-cta .btn{border:1px solid transparent}
.hero-v2 .sbh-cta .btn:not(.btn-ghost){background:linear-gradient(120deg,#a8e0ff,var(--brand) 45%,var(--brand2));box-shadow:0 10px 30px rgba(92,192,255,.20),inset 0 1px 0 rgba(255,255,255,.5)}
.hero-v2 .sbh-cta .btn:not(.btn-ghost):hover{box-shadow:0 18px 46px rgba(92,192,255,.34),inset 0 1px 0 rgba(255,255,255,.6)}
.hero-v2 .sbh-cta .btn-ghost{background:rgba(255,255,255,.02);border-color:rgba(92,192,255,.30)}
.hero-v2 .sbh-cta .btn-ghost:hover{background:rgba(92,192,255,.07);border-color:rgba(92,192,255,.55);transform:translateY(-2px)}

/* stats */
.hero-v2 .sbh-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:44px;border-top:1px solid var(--line);padding-top:24px;max-width:560px}
.hero-v2 .sbh-stat{padding-right:22px}
.hero-v2 .sbh-stat+.sbh-stat{padding-left:22px;border-left:1px solid var(--line)}
.hero-v2 .sbh-stat b{display:block;font-family:var(--display);font-size:26px;font-weight:700;letter-spacing:-.02em;line-height:1.1;background:linear-gradient(180deg,#ffffff,#bcd6e8);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-v2 .sbh-stat span{display:block;font-size:12.5px;color:var(--dim);margin-top:5px;line-height:1.35}
.hero-v2 .sbh-stat .sbh-tick{display:block;font-family:var(--sbh-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:rgba(92,192,255,.75);margin-bottom:7px}

/* in-stock rail */
.hero-v2 .sbh-rail{position:relative;background:linear-gradient(180deg,rgba(19,23,31,.86),rgba(9,11,15,.86));border:1px solid var(--line);border-radius:22px;padding:18px 18px 8px;box-shadow:0 40px 100px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.04);backdrop-filter:blur(10px)}
.hero-v2 .sbh-rail::before{content:"";position:absolute;inset:-1px;border-radius:22px;padding:1px;pointer-events:none;background:linear-gradient(160deg,rgba(92,192,255,.4),rgba(92,192,255,0) 42%,rgba(91,155,255,.22));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.hero-v2 .sbh-rail-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 14px;border-bottom:1px solid var(--line)}
.hero-v2 .sbh-rail-head .sbh-lbl{display:flex;align-items:center;gap:9px;font-family:var(--display);font-size:12px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.hero-v2 .sbh-live{width:7px;height:7px;border-radius:50%;background:var(--sbh-ok);box-shadow:0 0 10px rgba(111,211,154,.9);animation:sbhBlink 2.6s ease-in-out infinite}
@keyframes sbhBlink{0%,100%{opacity:1}50%{opacity:.35}}
.hero-v2 .sbh-count{font-family:var(--sbh-mono);font-size:11px;color:var(--dim);letter-spacing:.04em}
.hero-v2 .sbh-rail-view{height:384px;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(180deg,transparent,#000 4%,#000 80%,transparent);mask-image:linear-gradient(180deg,transparent,#000 4%,#000 80%,transparent)}
.hero-v2 .sbh-track{display:flex;flex-direction:column;animation:sbhScroll 46s linear infinite;will-change:transform}
.hero-v2 .sbh-rail:hover .sbh-track{animation-play-state:paused}
@keyframes sbhScroll{from{transform:translateY(0)}to{transform:translateY(-50%)}}
.hero-v2 .sbh-item{display:flex;align-items:center;gap:13px;padding:11px 6px;border-bottom:1px solid rgba(255,255,255,.045);transition:background .18s;border-radius:11px}
.hero-v2 .sbh-item:hover{background:rgba(92,192,255,.06)}
.hero-v2 .sbh-th{width:46px;height:46px;border-radius:11px;overflow:hidden;flex-shrink:0;background:radial-gradient(120% 110% at 50% 12%,#161a23,#090b0f);display:grid;place-items:center;border:1px solid var(--line)}
.hero-v2 .sbh-th img{width:100%;height:100%;object-fit:cover}
.hero-v2 .sbh-item .sbh-meta{display:block;min-width:0}
.hero-v2 .sbh-item .sbh-nm{display:block;font-family:var(--display);font-weight:600;font-size:14.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-v2 .sbh-item .sbh-ct{display:block;font-size:11.5px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35;margin-top:1px}
.hero-v2 .sbh-item .sbh-right{display:block;margin-left:auto;text-align:right;flex-shrink:0}
.hero-v2 .sbh-item .sbh-pr{display:block;font-family:var(--sbh-mono);font-size:13.5px;font-weight:600}
.hero-v2 .sbh-item .sbh-in{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;margin-top:3px}
.hero-v2 .sbh-badge{font-family:var(--sbh-mono);font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#cfe6ff;border:1px solid rgba(92,192,255,.3);background:rgba(92,192,255,.08);padding:2px 6px;border-radius:5px;margin-left:8px;vertical-align:middle}
.hero-v2 .sbh-rail-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 4px 10px;border-top:1px solid var(--line);margin-top:2px}
.hero-v2 .sbh-rail-foot a{font-family:var(--display);font-size:13px;font-weight:600;color:var(--muted);display:inline-flex;align-items:center;gap:7px;transition:color .2s}
.hero-v2 .sbh-rail-foot a:hover{color:var(--txt)}
.hero-v2 .sbh-rail-foot .sbh-note{font-family:var(--sbh-mono);font-size:10.5px;color:var(--dim);letter-spacing:.03em}

/* RUO line */
.hero-v2 .sbh-ruo{margin-top:52px;display:flex;align-items:center;gap:12px;font-family:var(--sbh-mono);font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--dim);border-top:1px solid var(--line);padding-top:18px}
.hero-v2 .sbh-ruo .sbh-b{width:5px;height:5px;border-radius:50%;background:var(--dim);flex-shrink:0}

@media(max-width:1060px){
  .hero-v2 .sbh-grid{grid-template-columns:minmax(0,1fr);gap:44px}
  .hero-v2 .sbh-rail{max-width:560px}
  .hero-v2 .sbh-stats{max-width:none}
}
@media(max-width:640px){
  .hero-v2 .sbh-title .sbh-l2{white-space:normal}
  .hero-v2 .sbh-rule{margin-top:18px}
}
/* 16px is the threshold below which iOS Safari zooms the page on focus. The
   field reads the same size; the zoom was the bug. */
@media(max-width:860px){
  .hero-v2 .sbh-search input{font-size:16px}
}
@media(max-width:620px){
  .hero-v2{padding:52px 0 44px}
  .hero-v2 .sbh-sub{font-size:16px}
  .hero-v2 .sbh-stats{grid-template-columns:1fr 1fr;gap:18px 0}
  .hero-v2 .sbh-stat:nth-child(3){grid-column:1/-1;padding-left:0;border-left:none;border-top:1px solid var(--line);padding-top:18px;margin-top:2px}
  .hero-v2 .sbh-cta .btn{flex:1;justify-content:center}
  .hero-v2 .sbh-rail-view{height:300px}
  .hero-v2 .sbh-kbd{display:none}
  .hero-v2 .sbh-sep,.hero-v2 .sbh-lot{display:none}
  .hero-v2 .sbh-eyebrow{font-size:10.5px;letter-spacing:.12em}
  .hero-v2 .sbh-stat b{font-size:22px}
  .hero-v2 .sbh-ruo{margin-top:34px;font-size:10px;letter-spacing:.05em}
  .hero-v2 .sbh-rail-foot{flex-wrap:wrap;gap:6px}
  .hero-v2 .sbh-rail-foot a{white-space:nowrap;font-size:12.5px}
  .hero-v2 .sbh-rail-foot .sbh-note{font-size:10px}

  /* ---- compound search, phone layout ---- */
  .hero-v2 .sbh-search-block{max-width:none;margin-bottom:26px}
  .hero-v2 .sbh-search{border-radius:16px;padding:6px 7px 6px 15px;gap:11px}
  .hero-v2 .sbh-search input{padding:14px 0}
  .hero-v2 .sbh-go{width:42px;height:42px;border-radius:12px}
  .hero-v2 .sbh-clear{width:30px;height:30px}
  .hero-v2 .sbh-clear svg{width:14px;height:14px}

  /* One scrolling row beats two wrapped rows: the chips stay on a single
     baseline under the field and the cut-off edge signals there are more. */
  .hero-v2 .sbh-chips{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:7px;margin-top:11px;padding-bottom:1px;
    scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;
    -webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent)}
  .hero-v2 .sbh-chips::-webkit-scrollbar{display:none}
  .hero-v2 .sbh-chip{flex:0 0 auto;scroll-snap-align:start;padding:8px 13px;font-size:12px}

  /* Touch-sized result rows, and never taller than the space above the keyboard. */
  .hero-v2 .sbh-results{top:calc(100% + 8px);max-height:min(62vh,420px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  .hero-v2 .sbh-rhead{position:sticky;top:0;background:#12151d;z-index:1}
  .hero-v2 .sbh-rhead span:last-child{display:none}
  .hero-v2 .sbh-res{padding:12px 14px;gap:13px}
  .hero-v2 .sbh-res img{width:42px;height:42px}
  .hero-v2 .sbh-res .sbh-nm{font-size:15px}
  .hero-v2 .sbh-res .sbh-pr{font-size:13.5px}
  .hero-v2 .sbh-empty{padding:18px 14px}
}
@media(prefers-reduced-motion:reduce){
  .hero-v2 .sbh-track{animation:none}
  .hero-v2 .sbh-rule{animation:none;transform:scaleX(1)}
  .hero-v2 .sbh-eyebrow .dot::after{animation:none}
}

/* ==========================================================================
   2026-08-21 - hero visibility + above-the-fold fixes (mobile)

   Two separate faults, both showing as "the buttons only appear when I
   scroll":

   1. motion.css runs `.hero .hero-cta{animation:sbRise ... both}` and sbRise
      starts at opacity:0. With fill-mode `both` the buttons hold that zero
      state until the animation actually runs, and the scroll-reveal engine in
      starbio-modern.php can independently tag anything below 92% of the
      viewport with .sbv-hide (also opacity:0). On a phone the two-line sale
      banner pushes the CTA row right onto that line, so it was arriving
      invisible and only un-hiding on a scroll event.

   2. Even once visible, the compound search field and chip row (added
      2026-08-19) pushed the buttons ~90px below the fold.

   The hero is above the fold by definition, so nothing in it should ever be
   gated behind an entrance animation or an intersection observer.
   ========================================================================== */

.hero-v2 .sbh-cta,
.hero-v2 .sbh-stats{animation-fill-mode:none!important}
.hero-v2 .sbv-hide{opacity:1!important;transform:none!important}

@media(max-width:620px){
  /* No animation gating at all on phones - it is where this failed. */
  .hero-v2 .sbh-left,
  .hero-v2 .sbh-cta,
  .hero-v2 .sbh-stats{animation:none!important;opacity:1!important;transform:none!important}

  /* Reclaim ~95px so both buttons clear the fold. Note the search input keeps
     font-size:16px - anything smaller makes iOS zoom the page on focus - and
     the submit button keeps its 42px tap target. The savings come from
     padding and line-height only. */
  .hero-v2{padding:26px 0 44px}
  .hero-v2 .sbh-title{font-size:32px}
  .hero-v2 .sbh-rule{margin-top:14px;width:60px}
  .hero-v2 .sbh-sub{font-size:15px;line-height:1.58;margin:16px 0 20px}
  .hero-v2 .sbh-search-block{margin-bottom:14px}
  .hero-v2 .sbh-search input{padding:12px 0}
  .hero-v2 .sbh-cta{margin-top:0;gap:10px}
}
/* Struck-through original price in the in-stock rail and the search results. */
.hero-v2 .sbh-was{
  color:var(--dim);
  font-weight:400;
  font-size:.86em;
  text-decoration:line-through;
  text-decoration-thickness:1px;
  text-decoration-color:rgba(255,255,255,.45);
  margin-right:5px;
}
/* In the rail the row is tight: stack the old price above the new one on phones
   so the compound name keeps its width instead of being ellipsised away. */
@media(max-width:620px){
  .hero-v2 .sbh-was{display:block;margin-right:0;line-height:1.15}
  .hero-v2 .sbh-item .sbh-pr{line-height:1.2}
}