/* intro v23 — BAPE grunge wizard: film strip, giant numbers, clip-path wipe hover, height-expand step */

/* Full-width step photo — cinematic banner, object-fit has no BS utility */
.intro-grit__photo {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* Progress track height (no BS h-N utility) */
.intro-grit__track { height: 0.25rem; }

/* Clip-path reveal on hover: primary wipe grows from the corner */
.intro-grit__wipe {
    clip-path: circle(0% at 90% 10%);
    opacity: 0.12;
    transition: clip-path 420ms ease;
}
.intro-grit__card:hover .intro-grit__wipe {
    clip-path: circle(150% at 90% 10%);
}

/* Height-expand accordion-style step entrance */
.intro-grit__step {
    animation: intro-grit-expand 420ms ease;
    transform-origin: top;
}
@keyframes intro-grit-expand {
    from { opacity: 0; transform: scaleY(0.96) translateY(-0.5rem); }
    to   { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* Progress bar transition */
.intro-grit__bar { transition: width 360ms ease; width: 0; }

/* Stepper dots — state via opacity, colour stays a Tailwind class */
.intro-grit__dot {
    width: 0.625rem;
    height: 0.625rem;
    opacity: 0.35;
    transition: opacity 200ms ease, transform 200ms ease;
}
.intro-grit__dot.is-active {
    opacity: 1;
    transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
    .intro-grit__step { animation: none; }
    .intro-grit__wipe { transition: none; }
}

/* Hover — поза @sem */
.services__tile--lift {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services__tile--lift:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 640px) {
  .services__tile--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift {
  transition: filter 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .services__cta--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift:hover {
  filter: brightness(0.92);
}

.lane-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lane-card-overlay,
.lane-card-accent,
.lane-card-icon {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.lane-card-hover:hover {
    transform: translateY(-0.35rem);
    box-shadow: var(--bs-box-shadow-lg);
    border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
}

.lane-card-hover:hover .lane-card-overlay {
    opacity: 1 !important;
}

.lane-card-hover:hover .lane-card-accent {
    opacity: 0.75;
}

.lane-card-hover:hover .lane-card-icon {
    transform: scale(1.05);
    box-shadow: var(--bs-box-shadow);
}

.feature-card-surface {
    position: relative;
    isolation: isolate;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: var(--bs-box-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card-surface:hover {
    box-shadow: var(--bs-box-shadow-lg);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
/* v29 step funnel — badge fixed size (w-16 h-16 has no BS util) */
.perks-funnel__badge {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}

/* connecting horizontal line — full-width (absolute, no BS util) */
.perks-funnel__line {
    pointer-events: none;
}

/* stagger reveal animation (IntersectionObserver adds .is-visible) */
.perks-funnel__step {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.perks-funnel__step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger delays (max 4 steps) */
.perks-funnel__step:nth-child(1) { transition-delay: 0s; }
.perks-funnel__step:nth-child(2) { transition-delay: 0.1s; }
.perks-funnel__step:nth-child(3) { transition-delay: 0.2s; }
.perks-funnel__step:nth-child(4) { transition-delay: 0.3s; }

/* quote v16 — grid bookshelf (quote-grid-shelf__* — isolated from quote v12 quote-shelf__*) */

.quote-grid-shelf__art--mesh {
    background-image:
        radial-gradient(circle at 20% 30%, currentColor 0, transparent 42%),
        radial-gradient(circle at 78% 18%, currentColor 0, transparent 38%),
        radial-gradient(circle at 62% 82%, currentColor 0, transparent 45%),
        radial-gradient(circle at 12% 72%, currentColor 0, transparent 36%);
    opacity: 0.18;
}

.quote-grid-shelf__art--hatch {
    background-image: repeating-linear-gradient(
        -38deg,
        transparent,
        transparent 6px,
        currentColor 6px,
        currentColor 7px
    );
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.quote-grid-shelf__art--grain {
    background-image:
        repeating-conic-gradient(from 0deg at 50% 50%, currentColor 0deg 2deg, transparent 2deg 7deg),
        repeating-linear-gradient(90deg, transparent 0 3px, currentColor 3px 4px);
    opacity: 0.08;
}

.quote-grid-shelf__ripple-pool {
    width: 28rem;
    height: 28rem;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
    transition: transform 450ms ease, opacity 600ms ease;
    will-change: transform, opacity;
}

.quote-grid-shelf__ripple-pool.is-pulsing {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__ripple-pool {
        display: none;
    }
}

.quote-grid-shelf__bracket {
    width: 0.5rem;
}

.quote-grid-shelf__bracket--left {
    left: 1rem;
}

.quote-grid-shelf__bracket--right {
    right: 1rem;
}

.quote-grid-shelf__scroll {
    max-height: 36rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.quote-grid-shelf__parent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(8.25rem, auto));
    gap: 1rem;
}

@media (min-width: 768px) {
    .quote-grid-shelf__parent-grid {
        gap: 1.5rem;
    }
}

.quote-grid-shelf__child-grid {
    display: grid;
    grid-row: span 1;
    min-height: 100%;
    grid-template-rows: subgrid;
}

@supports not (grid-template-rows: subgrid) {
    .quote-grid-shelf__child-grid {
        grid-template-rows: auto 1fr auto;
        height: 100%;
    }
}

.quote-grid-shelf__ledge:nth-child(1) {
    top: 25%;
}

.quote-grid-shelf__ledge:nth-child(2) {
    top: 50%;
}

.quote-grid-shelf__ledge:nth-child(3) {
    top: 75%;
}

.quote-grid-shelf__ledge {
    height: 0.25rem;
}

.quote-grid-shelf__book--linocut {
    clip-path: polygon(
        0% 1.5%, 3% 0%, 8% 1%, 15% 0%, 24% 1.2%, 35% 0%, 48% 0.8%, 62% 0%, 75% 1%, 88% 0%, 96% 1.5%, 100% 0.5%,
        100% 98%, 97% 100%, 90% 98.5%, 80% 100%, 68% 98%, 55% 100%, 42% 98.5%, 28% 100%, 14% 98%, 5% 100%, 0% 97%
    );
}

.quote-grid-shelf__opening {
    font-variant: common-ligatures;
    letter-spacing: -0.04em;
}

.quote-grid-shelf__reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 550ms ease, transform 550ms ease;
    transition-delay: calc(var(--shelf-stagger, 0) * 90ms);
}

.quote-grid-shelf__reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__reveal {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0ms;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-grid-shelf-root [role="listitem"]:hover,
    .quote-grid-shelf-root article:hover,
    .quote-grid-shelf-root [class*="quote-grid-shelf__card"]:hover,
    .quote-grid-shelf-root .quote-grid-shelf__book:hover,
    .quote-grid-shelf-root .quote-grid-shelf__step:hover,
    .quote-grid-shelf-root .quote-grid-shelf__index-card:hover,
    .quote-grid-shelf-root .quote-grid-shelf__pill:hover,
    .quote-grid-shelf-root .quote-grid-shelf__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-grid-shelf-root [role="listitem"],
.quote-grid-shelf-root article,
.quote-grid-shelf-root [class*="quote-grid-shelf__card"],
.quote-grid-shelf-root .quote-grid-shelf__book,
.quote-grid-shelf-root .quote-grid-shelf__step,
.quote-grid-shelf-root .quote-grid-shelf__index-card,
.quote-grid-shelf-root .quote-grid-shelf__pill {
    transition: transform 200ms ease;
}

.quote-grid-shelf-root a:focus-visible,
.quote-grid-shelf-root button:focus-visible,
.quote-grid-shelf-root [tabindex="0"]:focus-visible,
.quote-grid-shelf-root input:focus-visible,
.quote-grid-shelf-root summary:focus-visible,
.quote-grid-shelf-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-grid-shelf-root button:hover,
    .quote-grid-shelf-root a:hover,
    .quote-grid-shelf-root summary:hover {
        opacity: 0.92;
    }
}


.prompt-beacon__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.prompt-beacon__appeal--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.prompt-beacon__sheet--haze { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

