/* Apple-inspired NuvikHost Carousel V2 — immutable 10-banner presentation */
:root{--nhc-ink:#071526;--nhc-line:rgba(170,208,247,.18);--nhc-ice:#d8edff;--nhc-blue:#3f9fff;--nhc-cyan:#76dfff}
.hero-carousel{background:var(--nhc-ink);isolation:isolate}
.hero-carousel .carousel-viewport{width:100%;max-width:100%;box-shadow:none;aspect-ratio:16/9;overflow:hidden}
.hero-carousel .carousel-slide{background:#061327}
.hero-carousel .carousel-slide img{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;object-position:center}
.hero-carousel .carousel-track{will-change:transform;transition:transform 620ms cubic-bezier(.22,1,.36,1)}
.hero-carousel .carousel-slide:focus-visible{outline:3px solid #70d9ff;outline-offset:-4px}
.hero-carousel .carousel-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;min-height:62px;padding:8px 18px;box-sizing:border-box;border-top:1px solid rgba(159,213,255,.08);border-bottom:1px solid var(--nhc-line);background:linear-gradient(180deg,#091a2f,#071426);position:relative;z-index:5}

/* Frosted controls and clear navigation without overlays on the artwork */
.hero-carousel .carousel-arrow{width:46px;height:46px;min-width:46px;min-height:46px;border:1px solid rgba(185,215,255,.26);border-radius:999px;background:rgba(8,26,49,.45);color:#f8fcff;backdrop-filter:blur(18px) saturate(1.2);-webkit-backdrop-filter:blur(18px) saturate(1.2);box-shadow:0 10px 32px rgba(0,0,0,.22);font-size:27px;line-height:1;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.hero-carousel .carousel-arrow:hover{background:rgba(18,77,128,.72);border-color:rgba(201,236,255,.74);box-shadow:0 14px 38px rgba(0,0,0,.24)}
.hero-carousel .carousel-arrow:focus-visible,.hero-carousel .carousel-toolbar button:focus-visible{outline:3px solid #8be5ff;outline-offset:3px}
.hero-carousel .carousel-dots{position:static;left:auto;bottom:auto;transform:none;display:flex;justify-content:center;align-items:center;gap:2px;padding:0;margin:0;width:auto;max-width:none;min-height:44px;border:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.hero-carousel .carousel-dots button{position:relative;display:grid;place-items:center;flex:0 0 27px;min-width:27px;width:27px;height:44px;min-height:44px;padding:0;border:0;border-radius:13px;background:transparent;cursor:pointer;transition:background .18s}
.hero-carousel .carousel-dots button::before{content:"";width:7px;height:7px;background:rgba(199,224,248,.44);border-radius:9px;transition:width .24s ease,background .24s ease,box-shadow .24s ease}
.hero-carousel .carousel-dots button.active{width:27px;background:transparent}
.hero-carousel .carousel-dots button.active::before{width:18px;background:linear-gradient(90deg,#63e0ff,#527dff);box-shadow:0 0 16px rgba(65,165,246,.25)}
.hero-carousel .carousel-dots button:hover::before{background:#d0efff}
.hero-carousel .carousel-toggle{position:static;transform:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:92px;min-height:42px;padding:9px 13px;border-radius:999px;border:1px solid rgba(173,205,244,.26);color:var(--nhc-ice);background:rgba(126,172,220,.08);font-family:inherit;font-size:12px;font-weight:700;letter-spacing:.01em;cursor:pointer;white-space:nowrap;transition:background .18s}
.hero-carousel .carousel-toggle:hover{background:rgba(117,181,247,.18)}
.hero-carousel .carousel-count{font-size:11px;font-variant-numeric:tabular-nums;font-weight:750;color:#9bb8d6;letter-spacing:.09em;min-width:58px;text-align:right}
.hero-carousel .carousel-toolbar::before{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(86,193,247,.25),transparent);pointer-events:none}

/* Maintain 16:9 uncropped images; allocate a separate touch target surface */
@media(min-width:1500px){.hero-carousel .carousel-viewport{max-height:calc(100svh - 82px)}}
@media(max-width:980px){
 .hero-carousel .carousel-toolbar{min-height:58px;padding:7px 12px}
 .hero-carousel .carousel-arrow{width:43px;height:43px;min-width:43px;min-height:43px}
 .hero-carousel .carousel-arrow.prev{left:10px}
 .hero-carousel .carousel-arrow.next{right:10px}
 .hero-carousel .carousel-count{min-width:49px}
}
@media(max-width:640px){
 .hero-carousel .carousel-viewport{width:100%;height:auto;aspect-ratio:16/9;max-height:none}
 .hero-carousel .carousel-toolbar{gap:5px;min-height:54px;padding:5px 9px}
 .hero-carousel .carousel-arrow{width:40px;height:40px;min-width:40px;min-height:40px;font-size:24px}
 .hero-carousel .carousel-arrow.prev{left:5px}
 .hero-carousel .carousel-arrow.next{right:5px}
 .hero-carousel .carousel-dots button{width:25px;min-width:25px;flex-basis:25px}
 .hero-carousel .carousel-dots button.active{width:25px}
 .hero-carousel .carousel-toggle{min-width:44px;width:44px;min-height:44px;padding:7px;font-size:0;letter-spacing:0}
 .hero-carousel .carousel-toggle::before{content:"Ⅱ";font-size:17px;line-height:1}
 .hero-carousel .carousel-toggle[aria-pressed="true"]::before{content:"▶";font-size:15px}
 .hero-carousel .carousel-count{display:none}
}
@media(max-width:390px){
 .hero-carousel .carousel-arrow{display:none}
 .hero-carousel .carousel-dots{gap:0}
 .hero-carousel .carousel-dots button{width:24px;min-width:24px;flex-basis:24px}
 .hero-carousel .carousel-toolbar{gap:8px}
}
@media(hover:none){
 .hero-carousel .carousel-arrow{background:rgba(7,23,45,.52)}
}
@media(prefers-reduced-motion:reduce){
 .hero-carousel .carousel-track,.hero-carousel .carousel-arrow,.hero-carousel .carousel-dots button,.hero-carousel .carousel-dots button::before,.hero-carousel .carousel-toggle{transition:none!important;animation:none!important}
}

/* 2026-10-09: crossfade avoids off-screen bitmap compositor artifacts during quick touch navigation. */
.hero-carousel .carousel-track{
  position:relative;display:block;width:100%;height:100%;
  transform:none!important;transition:none!important;will-change:auto;
}
.hero-carousel .carousel-slide{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity 640ms cubic-bezier(.22,1,.36,1),visibility 640ms step-end;
}
.hero-carousel .carousel-slide.is-active{
  opacity:1;visibility:visible;pointer-events:auto;z-index:2;
  transition:opacity 640ms cubic-bezier(.22,1,.36,1),visibility 0s;
}
@media(prefers-reduced-motion:reduce){
 .hero-carousel .carousel-slide,.hero-carousel .carousel-slide.is-active{transition:none!important}
}
