/* ==========================================================================
   COPDC Slider: base structure + reusable UI parts
   Variations restyle these via modifiers or page-level CSS.
   ========================================================================== */
.cs { position: relative; overflow: hidden; background: var(--c-night); color: #fff; isolation: isolate; }
.cs--fullscreen { height: 100vh; height: 100svh; min-height: 640px; }
.cs--tall { height: 88vh; min-height: 600px; }
.cs__slides { position: absolute; inset: 0; }
.cs__slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.cs__slide:first-child { visibility: visible; }
.cs__media { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.cs__media img, .cs__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cs__overlay { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,18,28,.88) 0%, rgba(10,18,28,.55) 45%, rgba(10,18,28,.1) 100%), linear-gradient(0deg, rgba(10,18,28,.6) 0%, rgba(10,18,28,0) 40%); }
.cs__overlay--center { background: radial-gradient(ellipse at center, rgba(10,18,28,.35) 0%, rgba(10,18,28,.75) 100%); }
.cs__overlay--bottom { background: linear-gradient(0deg, rgba(10,18,28,.92) 0%, rgba(10,18,28,.35) 55%, rgba(10,18,28,.15) 100%); }
.cs__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.cs__content > * + * { margin-top: 1.5rem; }

/* Split-text helpers */
.cs-line { display: block; }
.cs [data-anim="lines"], .cs [data-anim="words"], .cs [data-anim="chars"] { font-kerning: none; }

/* Slices effect */
.cs__slices { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cs__slice { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.cs__slice img { position: absolute; top: 0; height: 100%; max-width: none; object-fit: cover; }

/* Curtain effect: the logo's blue + red */
.cs__curtain { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.cs__curtain i { position: absolute; inset: 0; visibility: hidden; }
.cs__curtain-a { background: var(--c-blue); }
.cs__curtain-b { background: var(--c-red); }

/* ---- Arrows ---- */
.cs__arrows { display: flex; gap: 12px; }
.cs__arrow { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1.5px solid rgba(255,255,255,.35); position: relative; overflow: hidden; transition: border-color var(--t-fast), color var(--t-fast); }
.cs__arrow::before { content: ""; position: absolute; inset: 0; background: #fff; transform: scale(0); border-radius: 50%; transition: transform var(--t) var(--ease-out); }
.cs__arrow:hover { color: var(--c-ink); border-color: #fff; }
.cs__arrow:hover::before { transform: scale(1); }
.cs__arrow svg { position: relative; width: 20px; height: 20px; }

/* ---- Dots with progress ---- */
.cs__dots { display: flex; gap: 10px; align-items: center; }
.cs__dot { position: relative; padding: 12px 0; }
.cs__dot-bar { display: block; width: 46px; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; transition: width var(--t) var(--ease-out); }
.cs__dot-bar b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.cs__dot.is-active .cs__dot-bar { width: 80px; }

/* Labelled tab dots (data-cs-dots="labels") */
.cs__dots--labels { gap: 0; align-items: stretch; }
.cs__dots--labels .cs__dot { flex: 1; text-align: left; padding: 22px 24px 22px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; opacity: .55; transition: opacity var(--t); }
.cs__dots--labels .cs__dot.is-active, .cs__dots--labels .cs__dot:hover { opacity: 1; }
.cs__dots--labels .cs__dot-num { font-family: var(--f-head); font-size: .78rem; font-weight: 600; color: var(--c-blue); }
.cs__dots--labels .cs__dot-label { font-family: var(--f-head); font-size: .92rem; font-weight: 600; line-height: 1.3; }
.cs__dots--labels .cs__dot-bar { position: absolute; left: 0; right: 0; top: 0; width: auto !important; height: 2px; }
.cs__dots--labels .cs__dot-bar b { background: var(--c-red); }

/* Thumbnails */
.cs__thumbs { display: flex; gap: 14px; }
.cs__thumb { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; opacity: .65; transition: opacity var(--t), background var(--t); overflow: hidden; }
.cs__thumb:hover, .cs__thumb.is-active { opacity: 1; background: rgba(255,255,255,.12); }
.cs__thumb-img { width: 70px; height: 54px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.cs__thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.cs__thumb-txt { font-family: var(--f-head); font-size: .82rem; font-weight: 600; line-height: 1.3; max-width: 150px; }
.cs__thumb-txt em { display: block; font-style: normal; color: var(--c-blue); font-size: .72rem; margin-bottom: 2px; }
.cs__thumb .cs__dot-bar { position: absolute; left: 0; right: 0; bottom: 0; width: auto !important; }
.cs__thumb .cs__dot-bar b { background: var(--c-red); }

/* Counter */
.cs__counter { font-family: var(--f-head); font-weight: 600; display: inline-flex; align-items: baseline; gap: 10px; letter-spacing: .04em; }
.cs__counter .cur { display: inline-block; overflow: hidden; font-size: 1.6rem; line-height: 1; }
.cs__counter .cur span { display: inline-block; }
.cs__counter .sep { width: 40px; height: 1px; background: rgba(255,255,255,.5); align-self: center; }
.cs__counter .tot { opacity: .6; font-size: .9rem; }

/* Global progress bar */
.cs__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 10; }
.cs__progress::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-blue), var(--c-red)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Scroll cue */
.cs__scroll { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-head); font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.cs__scroll i { position: relative; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; }
.cs__scroll i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cs-scroll 1.8s var(--ease-out) infinite; }
@keyframes cs-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .cs__arrow { width: 48px; height: 48px; }
  .cs__thumbs { display: none; }
  .cs__dots--labels .cs__dot-label { display: none; }
}
