/* intro v20 — Calvin Klein magazine: shimmer sheen, mist, scale-up reveal, strike-through draw */

.intro-mag__img { object-fit: cover; }
.intro-mag__figure { aspect-ratio: 21 / 9; }

/* Gold-foil sheen → shimmer sweep (gradient colours come from Tailwind, motion from CSS) */
.intro-mag__sheen {
    background-size: 220% 220%;
    animation: intro-mag-shimmer 3s linear infinite;
    opacity: 0.35;
}
@keyframes intro-mag-shimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Smoke / mist wisp */
.intro-mag__mist {
    width: 24rem;
    height: 24rem;
    filter: blur(48px);
    opacity: 0.4;
}

/* LED step badge fixed size (no BS w-N/h-N utility) */
.intro-mag__led {
    width: 4rem;
    height: 4rem;
}

/* Dashed connector line (no BS border-style utility) */
.intro-mag__connector {
    border-style: dashed;
}

/* Scale-up on scroll into view — hidden only once JS arms it (no-JS content stays visible) */
.intro-mag.is-armed .intro-mag__scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 560ms ease, transform 560ms ease;
}
.intro-mag.is-armed .intro-mag__scale.is-in {
    opacity: 1;
    transform: scale(1);
}

/* Strikethrough line draw on hover */
.intro-mag__strike { height: 0.125rem; width: 0; transition: width 300ms ease; }
.intro-mag__st:hover .intro-mag__strike { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .intro-mag__sheen { animation: none; }
    .intro-mag__scale { opacity: 1; transform: none; }
}

/* features spec-sheet — square icon tile size + horizontal row dividers (layout only, no colors) */

/* BS flex child needs min-width:0 to shrink instead of overflowing on long titles (no BS utility) */
.features-spec__body {
    min-width: 0;
}

.features-spec__tile {
    width: 3rem;
    height: 3rem;
}

.features-spec__row:not(:first-child) {
    border-top-width: 1px;
    border-top-style: solid;
}

/* benefits glyph — card micro-illustrations, layout/motion only (no colors) */
.benefits-glyph__seal { width: 3.5rem; height: 3.5rem; }
.benefits-glyph__chip { font-size: .75rem; line-height: 1rem; letter-spacing: .04em; }

.benefits-glyph__card {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 600ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.benefits-glyph.is-visible .benefits-glyph__card { opacity: 1; transform: none; }
.benefits-glyph.is-visible .benefits-glyph__card:hover,
.benefits-glyph.is-visible .benefits-glyph__card:focus-within { transform: translateY(-.5rem); }

.benefits-glyph__stage { aspect-ratio: 4 / 3; overflow: hidden; }
.benefits-glyph__svg { width: 7.5rem; height: 7.5rem; overflow: visible; }

/* lock — shackle drops into the body, keyhole pulses */
.benefits-glyph__shackle { transform: translateY(-12px); transition: transform 600ms cubic-bezier(.5, 1.6, .5, 1); }
.benefits-glyph__keyhole { transform-box: fill-box; transform-origin: center; }
.benefits-glyph__halo { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-armed .benefits-glyph__shackle { transform: none; }
.is-armed .benefits-glyph__keyhole { animation: benefits-glyph-pulse 2.4s ease-in-out 800ms infinite; }
.is-armed .benefits-glyph__halo { animation: benefits-glyph-ripple 2.4s ease-out 700ms infinite; }

/* stroke drawing */
.benefits-glyph__draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms ease; }
.benefits-glyph__draw--2 { transition-delay: 150ms; }
.benefits-glyph__draw--3 { transition-delay: 300ms; }
.benefits-glyph__draw--4 { transition-delay: 450ms; }
.benefits-glyph__draw--5 { transition-delay: 600ms; }
.benefits-glyph__draw--check { transition-duration: 600ms; transition-delay: 1000ms; }
.is-armed .benefits-glyph__draw { stroke-dashoffset: 0; }

/* fingerprint scan line */
.benefits-glyph__scan { opacity: 0; }
.is-armed .benefits-glyph__scan { animation: benefits-glyph-scan 2.6s ease-in-out 900ms infinite; }

/* shield ping */
.benefits-glyph__ping { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-armed .benefits-glyph__ping { animation: benefits-glyph-ripple 2.8s ease-out 1600ms infinite; }

/* vault orbit + bobbing pin */
.benefits-glyph__orbit { transform-origin: 60px 70px; }
.benefits-glyph__pin { transform: translateY(-14px); opacity: 0; transition: transform 700ms cubic-bezier(.5, 1.6, .5, 1), opacity 400ms ease; }
.is-armed .benefits-glyph__orbit { animation: benefits-glyph-spin 9s linear infinite; }
.is-armed .benefits-glyph__pin { transform: none; opacity: 1; }

.benefits-glyph__more i { transition: transform 200ms ease; }
.benefits-glyph__more:hover i { transform: translateX(.25rem); }

@keyframes benefits-glyph-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes benefits-glyph-ripple { 0% { transform: scale(.7); opacity: .45; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes benefits-glyph-scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(70px); opacity: 0; } }
@keyframes benefits-glyph-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .benefits-glyph__card { opacity: 1; transform: none; transition: none; }
    .benefits-glyph__shackle, .benefits-glyph__pin { transform: none; opacity: 1; transition: none; }
    .benefits-glyph__draw { stroke-dashoffset: 0; transition: none; }
    .is-armed .benefits-glyph__keyhole, .is-armed .benefits-glyph__halo, .is-armed .benefits-glyph__scan,
    .is-armed .benefits-glyph__ping, .is-armed .benefits-glyph__orbit { animation: none; }
}

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.benefits-glyph[hidden], .benefits-glyph [hidden], .benefits-glyph .hidden.d-none { display: none !important; }

/* gallery v18 — hero + three frames.
   Geometry shared by both CSS frameworks (Bootstrap has no grid-template / aspect utilities). */
.gallery-cascade-grid__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mxw-5xl {
    max-width: 64rem !important;
}

.mxw-2xl {
    max-width: 42rem !important;
}

.gallery-cascade-grid__head {
    margin-bottom: 2.5rem;
}

.gallery-cascade-grid__title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.gallery-cascade-grid__lead {
    font-size: 1.125rem;
}

.gallery-cascade-grid__hero {
    aspect-ratio: 16 / 7;
}

.gallery-cascade-grid__thumb {
    aspect-ratio: 1 / 1;
}

.gallery-cascade-grid__img {
    object-fit: cover;
    transition: transform 300ms ease;
}

/* hover zoom — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:scale-105 wins there */
:where(.gallery-cascade-grid__img):hover {
    transform: scale(1.05);
}

/* caption scrim: Bootstrap has no gradient utility, so the flat fill is toned down instead */
.gallery-cascade-grid__caption {
    --bs-bg-opacity: 0.55;
}

.gallery-cascade-grid__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-cascade-grid__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .gallery-cascade-grid__title {
        font-size: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.gallery-cascade-grid__img):hover {
        transform: none;
    }
}

/* Маркери таймлайну: як TW w-4/h-4 та w-3/h-3 (border-box, сукупний розмір) */
.timeline-success-story__node {
    width: 1rem;
    height: 1rem;
    padding: 0;
    box-sizing: border-box;
}

.timeline-success-story__node--sm {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    box-sizing: border-box;
}

/* cta waves — SVG wave scroll (colors via currentColor in Blade) */
.cta-waves__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-waves__track {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 46%;
  display: flex;
  flex-direction: row;
  animation: cta-waves-flow 24s linear infinite;
  will-change: transform;
}

.cta-waves__track--front {
  bottom: 6%;
  height: 34%;
  animation-duration: 17s;
  animation-delay: -6s;
}

.cta-waves__svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
}

@keyframes cta-waves-flow {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-waves__track {
    animation: none;
    transform: translateX(-25%);
  }
}

