/* Home hero, variants A / B (SITECL 12-03; src/hero3.py, assets/js/hero3.js). Loaded only when site.json hero_variant is set. */
.h3-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease}
.h3-v.is-on{opacity:1}
.h3-v.h3-cut{transition:none}
/* a pick: the target clip's first frame fades in over 150 ms at once; the video starts under it */
.h3-ov{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .15s ease;pointer-events:none}
.h3-ov.is-on{opacity:1}
.h3-row{align-items:flex-end}
.h3-btns{display:flex;flex-wrap:wrap;gap:10px}
.h3-btns .btn{height:44px;padding:0 18px;font-size:14.5px}
.h3-btns .play{display:inline-block;width:0;height:0;border-left:8px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent;margin-right:2px}
/* the strip: the active sport (name + playback bar), then the queue */
.h3-strip{display:flex;align-items:center;gap:14px;min-width:0;height:56px;flex:none}
.h3-now{display:flex;align-items:center;gap:10px;width:230px;flex:none;color:#fff}
.h3-now-ic .pic{width:30px;height:30px}
.h3-now-t{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
.h3-now-t b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h3-bar{position:relative;display:block;height:2px;background:rgba(255,255,255,.22);overflow:hidden}
.h3-bar i{position:absolute;inset:0;background:var(--accent);transform:scaleX(0);transform-origin:left}
.h3-resume{flex:none;font:500 11px var(--f-mono);letter-spacing:.08em;color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:5px 9px;background:transparent;cursor:pointer}
.h3-track-w{flex:none;overflow:hidden;width:calc(7 * 50px);-webkit-mask-image:linear-gradient(90deg,#000 80%,transparent);mask-image:linear-gradient(90deg,#000 80%,transparent)}
.h3-track{display:flex;column-gap:4px;will-change:transform}
.h3-q{flex:none;width:46px;height:52px;display:grid;place-items:center;color:rgba(255,255,255,.55);background:none;border:0;cursor:pointer;transition:color .2s}
.h3-q:hover,.h3-q:focus-visible{color:#fff}
.h3-q .h3-pic{width:26px;height:26px}
.h3-q .h3-th{display:none}
.h3-strip--b .h3-track-w{width:calc(4 * 72px + 3 * 50px)}
.h3-strip--b .h3-q:nth-child(-n+4){width:68px}
.h3-strip--b .h3-q:nth-child(-n+4) .h3-th{display:block;width:64px;height:36px;object-fit:cover;border-radius:4px;opacity:.85;border:1px solid rgba(255,255,255,.18)}
.h3-strip--b .h3-q:nth-child(-n+4) .h3-pic{display:none}
.h3-strip--b .h3-q:nth-child(-n+4):hover .h3-th{opacity:1;border-color:#fff}
@media (max-width:900px){
  .h3-row{flex-direction:column;align-items:flex-start;gap:16px}
  .h3-strip{width:100%}
  .h3-now{width:auto;flex:1}
  .h3-track-w{width:calc(4 * 40px)}
  .h3-q{width:36px;height:44px}
  .h3-q .h3-pic{width:22px;height:22px}
  .h3-strip--b .h3-track-w{width:calc(2 * 60px + 2 * 40px)}
  .h3-strip--b .h3-q:nth-child(-n+4){width:56px}
  .h3-strip--b .h3-q:nth-child(-n+4) .h3-th{width:52px;height:29px}
  .h3-strip--b .h3-q:nth-child(n+3) .h3-th{display:none}
  .h3-strip--b .h3-q:nth-child(n+3) .h3-pic{display:block}
  .h3-strip--b .h3-q:nth-child(n+3){width:36px}
  .h3-btns .btn{height:40px;padding:0 14px;font-size:13.5px}
}
/* variant B: the film band below the hero */
.h3-film{background:var(--bg);border-top:1px solid var(--hair);padding:clamp(36px,6vw,72px) 0}
.h3-film-in{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(20px,4vw,48px);align-items:center}
.h3-film-p{position:relative;display:block;border:0;padding:0;border-radius:12px;overflow:hidden;cursor:pointer;background:#000;aspect-ratio:16/9}
.h3-film-p img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.h3-film-p:hover img{transform:scale(1.02)}
.h3-film-play{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;background:rgba(0,0,0,.55);border:1.5px solid rgba(255,255,255,.8)}
.h3-film-play::after{content:"";position:absolute;left:29px;top:23px;border-left:18px solid #fff;border-top:13px solid transparent;border-bottom:13px solid transparent}
.h3-film-t h2{font-size:clamp(24px,2.6vw,36px);font-weight:600;letter-spacing:-.02em;margin:8px 0 18px}
@media (max-width:760px){.h3-film-in{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.h3-v{transition:none}.h3-track{transition:none!important}}
/* variant A (Chi 12-03): one fixed-order strip of every sport in the reel, scrollable (arrows, swipe), active one lit */
.h3-strip--a .h3-track-w{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent)}
.h3-strip--a .h3-track-w::-webkit-scrollbar{display:none}
.h3-strip--a .h3-track{will-change:auto}
.h3-strip--a .h3-q{scroll-snap-align:start;position:relative}
.h3-strip--a .h3-q.is-on{color:#fff}
.h3-strip--a{gap:0;position:relative}
/* point 6 (Chi 12-03): the playing sport opens in place: icon + name + its progress line; the others stay
   icons. Exactly one cell is open, so the track's width never changes: the open cell and the closing one animate
   together (280 ms), neighbours slide, the row stays put. The progress line is the only line. */
.h3-strip--a{--qx:172px;--qi:46px}
.h3-strip--a .h3-track-w{width:calc(var(--qi) + 10px + var(--qx) + 7 * (var(--qi) + 4px))}
.h3-strip--a .h3-q{width:auto;min-width:var(--qi);padding:0 10px;display:flex;align-items:center;justify-content:flex-start;border-radius:12px;
  transition:color .2s,background-color .28s cubic-bezier(.4,0,.2,1)}
.h3-strip--a .h3-q .h3-pic{flex:none}
.h3-qx{display:flex;flex-direction:column;justify-content:center;gap:7px;width:0;margin-left:0;overflow:hidden;opacity:0;text-align:left;
  transition:width .28s cubic-bezier(.4,0,.2,1),margin-left .28s cubic-bezier(.4,0,.2,1),opacity .2s ease}
.h3-qx b{display:block;font-size:13.5px;font-weight:600;line-height:1.15;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h3-qbar{position:relative;display:block;height:2px;background:rgba(255,255,255,.22);overflow:hidden;border-radius:1px}
.h3-qbar i{position:absolute;inset:0;background:var(--accent);transform:scaleX(0);transform-origin:left}
/* point 7 (Chi 12-03): no frame around the open cell; it reads as active by its full-white icon and name, the others stay dim */
.h3-strip--a .h3-q.is-on .h3-qx b{text-shadow:0 1px 8px rgba(0,0,0,.45)}
.h3-strip--a .h3-q.is-on .h3-qx{width:var(--qx);margin-left:10px;opacity:1;transition:width .28s cubic-bezier(.4,0,.2,1),margin-left .28s cubic-bezier(.4,0,.2,1),opacity .2s ease .08s}
@media (prefers-reduced-motion:reduce){.h3-strip--a .h3-q,.h3-qx,.h3-strip--a .h3-q.is-on .h3-qx{transition:none}}
/* points 9 + 15 (Chi 12-03): the arrows sit in two small gutters outside the scroll area, so they never cover an item;
   the gutters are always reserved (the row never moves); the arrows show only while the pointer is over the strip or
   focus is inside it (150 ms); touch screens have no arrows and no gutters (swipe; the soft edges hint the scroll) */
.h3-strip--a{padding:0 30px}
.h3-arr{position:absolute;top:0;bottom:0;z-index:2;width:28px;border:0;padding:0;background:none;color:rgba(255,255,255,.75);font-size:22px;line-height:1;cursor:pointer;
  opacity:0;pointer-events:none;transition:opacity .15s ease,color .15s}
.h3-arr--p{left:0}.h3-arr--n{right:0}
.h3-arr:hover,.h3-arr:focus-visible{color:#fff}
@media (hover:hover){.h3-strip--a:hover .h3-arr,.h3-strip--a:has(:focus-visible) .h3-arr{opacity:1;pointer-events:auto}}
@media (hover:none){.h3-arr{display:none}.h3-strip--a{padding:0}}
@media (max-width:900px){.h3-strip--a{--qi:36px;--qx:160px}.h3-qx b{font-size:13px}.h3-strip--a .h3-track-w{width:auto;flex:1;min-width:0}.h3-strip--a .h3-q{padding:0 7px}
  .h3-strip--a .h3-q.is-on .h3-qx{margin-left:8px}}
/* Chi 12-03: tagline on one line above the row; four buttons as one set */
.h3-tag{margin:clamp(10px,1.6vh,18px) 0 0;font-size:clamp(20px,2.3vw,34px);white-space:nowrap}
.h3-nw{white-space:nowrap}
.h3-btns .btn.h3-b{height:44px;padding:0 20px;font-size:14.5px;font-weight:600;color:#fff;background:rgba(10,12,14,.42);border:1px solid rgba(255,255,255,.42);border-radius:999px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s,border-color .2s}
.h3-btns .btn.h3-b:hover,.h3-btns .btn.h3-b:focus-visible{background:rgba(255,255,255,.14);border-color:#fff;color:#fff}
@media (max-width:700px){.h3-tag{white-space:normal;font-size:clamp(20px,6vw,26px);line-height:1.15}
  .h3-btns{gap:8px}.h3-btns .btn.h3-b{height:40px;padding:0 15px;font-size:13.5px}}
@media (max-width:1180px) and (min-width:901px){.h3-row{flex-direction:column;align-items:flex-start;gap:14px}}
/* the Film button (Chi 12-03): a filled play mark before the word, the length after it in small type; same pill */
.h3-btns .btn.h3-b--film{display:inline-flex;align-items:center;gap:8px}
.h3-play{width:11px;height:11px;fill:currentColor;flex:none;transition:fill .2s,transform .2s}
.h3-len{font-size:12px;font-weight:500;opacity:.75;margin-left:-1px}
.h3-btns .btn.h3-b--film:hover .h3-play,.h3-btns .btn.h3-b--film:focus-visible .h3-play{fill:var(--accent);transform:scale(1.15)}
.h3-btns .btn.h3-b--film:hover{background:rgba(255,255,255,.2)}
.h3-play{transform:translateY(-.8px)}.h3-btns .btn.h3-b--film:hover .h3-play,.h3-btns .btn.h3-b--film:focus-visible .h3-play{transform:translateY(-.8px) scale(1.15)}
