/* ==========================================================================
   CPG.GE HERO — full-bleed slider
   --------------------------------------------------------------------------
   Layout follows the reference build: one full-viewport image, the headline
   set low and left, a short lead under it and a single action. cpg.ge runs
   three slides through that layout, so the slider controls of the live site
   (counter, PREV / NEXT) are kept and placed opposite the headline.

   Everything degrades: with no JavaScript the first slide stays on screen,
   the controls are hidden and the copy is ordinary text.
   ========================================================================== */

.cpg-hero-slider {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  /* svh is not universal; the vh value is the fallback, and the clamp keeps
     the hero usable on very short landscape viewports. */
  min-height: clamp(34rem, 100vh, 64rem);
  min-height: clamp(34rem, 100svh, 64rem);
  padding-block-start: var(--cpg-shell-h);
  background: var(--cpg-charcoal);
  color: var(--cpg-text-on-ink);
  overflow: hidden;
  isolation: isolate;
}
/* The reference sets its headline low in a landscape frame. On a portrait
   tablet that leaves a dead half-screen above it, so the copy centres
   instead of hanging off the bottom. */
@media (orientation: portrait) and (min-width: 48rem) {
  .cpg-hero-slider { align-items: center; }
  .cpg-hero-slider__inner { padding-block: var(--cpg-space-2xl); }
  .cpg-hero-slider__controls { inset-block-end: clamp(3rem, 1.4rem + 6vw, 6.5rem); }
}

/* --- Slides ------------------------------------------------------------------ */
.cpg-hero-slider__stage { position: absolute; inset: 0; z-index: -1; }

.cpg-hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 900ms var(--cpg-ease),
    visibility 0s linear 900ms;
}
.cpg-hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 900ms var(--cpg-ease),
    visibility 0s;
}
.cpg-hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: 50% 45%;
}
/* The photograph in hand draws slowly closer the whole time it shows. An
   animation rather than a transition, so the first frame moves from the
   first paint and every frame that comes forward starts again. */
@keyframes cpg-hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.cpg-hero-slider__slide.is-active img { animation: cpg-hero-zoom 10s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }

/* The scrim carries the whole legibility budget: the headline sits over the
   left third, so that side is darkened hardest. */
.cpg-hero-slider__scrim {
  position: absolute;
  inset: 0;
  background:
    /* Weighted to the copy column: dense enough on the left for small text to
       clear 4.5:1, almost clear on the right so the photograph still reads. */
    /* Plain black, no warmth: the photograph keeps its own colour and the
       copy sits on a neutral shade. */
    linear-gradient(90deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.56) 28%, rgba(0, 0, 0, 0.30) 54%, rgba(0, 0, 0, 0.06) 80%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0.56) 100%);
}
/* The ground behind the slides is black too, so a slide mid-fade never
   shows a warm tone through the scrim. */
.cpg-body--holding .cpg-hero-slider { background: #000; }

/* --- Left rail: rotated brand line and the cpg.ge contact icons --------------- */
.cpg-hero-slider__rail {
  position: absolute;
  inset-block: var(--cpg-shell-h) 0;
  inset-inline-start: 0;
  /* Above the copy column: that block comes later in the source and, at the
     same level, would sit over the rail and take its clicks. */
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  /* The rotated brand line is optically centred in the column; the contact
     icons stay anchored to the foot, where cpg.ge puts them. */
  justify-content: center;
  width: var(--cpg-shell-x);
  min-width: 3.5rem;
  padding-block: var(--cpg-space-lg);
}
.cpg-hero-slider__rail .cpg-socials {
  position: absolute;
  inset-block-end: var(--cpg-space-lg);
}
@media (min-width: 64rem) {
  .cpg-hero-slider__rail { display: flex; }
}
.cpg-hero-slider__vtext {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--cpg-font-body);
  font-size: var(--cpg-text-3xs);
  font-weight: 500;
  letter-spacing: var(--cpg-track-wide);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cpg-text-on-ink-dim);
}

/* --- Copy --------------------------------------------------------------------- */
.cpg-hero-slider__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--cpg-shell-x);
  padding-block: var(--cpg-space-2xl) clamp(3rem, 1.4rem + 6vw, 6.5rem);
}
@media (min-width: 64rem) {
  /* Clear of the rail and landing on the reference's 160px at 1440. */
  .cpg-hero-slider__inner { padding-inline-start: clamp(6rem, -3.85rem + 15.4vw, 10rem); }
}

.cpg-hero-slider__copyset { position: relative; display: grid; }
.cpg-hero-slider__copy {
  grid-area: 1 / 1;
  max-width: 62rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--cpg-ease), visibility 0s linear 500ms;
}
.cpg-hero-slider__copy.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--cpg-ease) 180ms, visibility 0s;
}

.cpg-hero-slider__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: var(--cpg-space-md);
  font-family: var(--cpg-font-body);
  font-size: var(--cpg-text-2xs);
  font-weight: 600;
  letter-spacing: var(--cpg-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--cpg-gold-on-dark);
}
:lang(ka) .cpg-hero-slider__eyebrow { text-transform: none; }
.cpg-hero-slider__eyebrow::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: currentColor;
}

.cpg-hero-slider__title {
  margin: 0 0 var(--cpg-space-md);
  font-family: var(--cpg-font-display);
  /* Set at 70% of the reference's size, as asked: 78px at 1440. */
  font-size: clamp(1.75rem, 0.665rem + 4.725vw, 4.9rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--cpg-text-on-ink);
}
:lang(ka) .cpg-hero-slider__title { text-transform: none; line-height: 1.14; }

.cpg-hero-slider__lead {
  max-width: 54ch;
  margin: 0 0 var(--cpg-space-lg);
  font-family: var(--cpg-font-body);
  font-size: var(--cpg-text-md);
  font-weight: 300;
  line-height: var(--cpg-leading-relaxed);
  color: var(--cpg-text-on-ink);
}

/* --- Controls ------------------------------------------------------------------ */
.cpg-hero-slider__controls {
  position: absolute;
  z-index: 3;
  inset-block-end: clamp(3rem, 1.4rem + 6vw, 6.5rem);
  inset-inline-end: var(--cpg-shell-x);
  display: flex;
  align-items: center;
  gap: var(--cpg-space-lg);
}
.no-js .cpg-hero-slider__controls { display: none; }
@media (max-width: 48rem) {
  .cpg-hero-slider__controls {
    position: static;
    margin-top: var(--cpg-space-lg);
    justify-content: space-between;
  }
}

.cpg-hero-slider__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--cpg-font-display);
  font-size: var(--cpg-text-sm);
  letter-spacing: 0.18em;
}
.cpg-hero-slider__count { color: var(--cpg-text-on-ink); }
.cpg-hero-slider__count b {
  font-size: var(--cpg-text-xl);
  font-weight: 500;
  color: var(--cpg-gold-on-dark);
}

.cpg-hero-slider__arrows { display: flex; align-items: center; gap: var(--cpg-space-sm); }
.cpg-hero-slider__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--cpg-text-on-ink);
  font-family: var(--cpg-font-body);
  font-size: var(--cpg-text-2xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--cpg-duration-fast) var(--cpg-ease);
}
:lang(ka) .cpg-hero-slider__arrow { text-transform: none; letter-spacing: 0.08em; }
.cpg-hero-slider__arrow:hover,
.cpg-hero-slider__arrow:focus-visible { color: var(--cpg-gold-on-dark); }
.cpg-hero-slider__arrow svg { width: 1.25rem; height: 0.625rem; flex: none; }
.cpg-hero-slider__arrow--prev:hover svg { transform: translateX(-3px); }
.cpg-hero-slider__arrow--next:hover svg { transform: translateX(3px); }
.cpg-hero-slider__arrow svg { transition: transform var(--cpg-duration-fast) var(--cpg-ease); }

/* A hairline between the two arrows, as on cpg.ge. */
.cpg-hero-slider__arrows::before {
  content: "";
  order: 1;
  width: 1px;
  height: 1.25rem;
  background: var(--cpg-hair-on-dark-strong);
}
.cpg-hero-slider__arrow--prev { order: 0; }
.cpg-hero-slider__arrow--next { order: 2; }

@media (prefers-reduced-motion: reduce) {
  .cpg-hero-slider__slide,
  .cpg-hero-slider__slide img,
  .cpg-hero-slider__copy { transition: none; }
  .cpg-hero-slider__slide img,
  .cpg-hero-slider__slide.is-active img { transform: none; animation: none; }
}

/* --------------------------------------------------------------------------
   THE FILM — one corporate clip behind the copy, over the poster frame. It
   is muted, looped and inline; under prefers-reduced-motion it is not shown
   and the poster stands, without its slow zoom.
   -------------------------------------------------------------------------- */
.cpg-hero-slider__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cpg-hero-slider--film .cpg-hero-slider__slide:has(.cpg-hero-slider__film) img { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .cpg-hero-slider__film { display: none; }
}

/* --------------------------------------------------------------------------
   THE FIGURES — under the copy, as the reference sets them: 32/44 light,
   64px apart and 64px down; on a phone 24/32, 16px apart, one under another.
   -------------------------------------------------------------------------- */
.cpg-hero-slider .cpg-hero-slider__copy .cpg-hero-slider__figures { margin-top: 72px; }
.cpg-hero-slider__figures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 64px;
  width: max-content;
  max-width: calc(100vw - 2 * var(--cpg-shell-x));
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  font-family: "Inter", var(--cpg-font-body);
  font-size: 2rem;
  line-height: 44px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 63.999rem) {
  .cpg-hero-slider .cpg-hero-slider__copy .cpg-hero-slider__figures { margin-top: 48px; }
  .cpg-hero-slider__figures { font-size: 1.5rem; line-height: 32px; gap: 16px 40px; }
}
@media (max-width: 39.999rem) {
  .cpg-hero-slider__figures { flex-direction: column; gap: 16px; width: auto; }
}
