/* intro v27 — Evangelion cascade: organic blob, wide banner, diagonal steps, slide-in L/R, word reveal */

/* Organic blob */
.intro-eva__blob {
    width: 24rem;
    height: 24rem;
    filter: blur(60px);
    opacity: 0.4;
    border-radius: 38% 62% 55% 45% / 55% 42% 58% 45%;
    animation: intro-eva-morph 12s ease-in-out infinite;
}
@keyframes intro-eva-morph {
    50% { border-radius: 55% 45% 42% 58% / 42% 58% 45% 55%; }
}

/* Single wide banner */
.intro-eva__banner-img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}
@media (min-width: 768px) {
    .intro-eva__banner-img { height: 16rem; }
}

/* Stepped diagonal cascade + asymmetric mixed sizes */
.intro-eva__row { margin-left: 0; }
.intro-eva__cell { max-width: 46rem; }
@media (min-width: 768px) {
    .intro-eva__row:nth-child(1) .intro-eva__cell { margin-left: 0;    max-width: 40rem; }
    .intro-eva__row:nth-child(2) .intro-eva__cell { margin-left: 3rem; max-width: 34rem; }
    .intro-eva__row:nth-child(3) .intro-eva__cell { margin-left: 6rem; max-width: 44rem; }
    .intro-eva__row:nth-child(4) .intro-eva__cell { margin-left: 9rem; max-width: 30rem; }
}

/* Slide-in from L / R on scroll — hidden only once JS arms it (no-JS content stays visible) */
.intro-eva.is-armed .intro-eva__row {
    opacity: 0;
    transition: opacity 560ms ease, transform 560ms ease;
}
.intro-eva.is-armed .intro-eva__row:nth-child(odd)  { transform: translateX(-2.5rem); }
.intro-eva.is-armed .intro-eva__row:nth-child(even) { transform: translateX(2.5rem); }
.intro-eva.is-armed .intro-eva__row.is-in { opacity: 1; transform: translateX(0); }

/* Letterpress-ish press using the element's own colour */
.intro-eva__press { text-shadow: 0 1px 0 currentColor; }

/* Word-by-word reveal */
.intro-eva__word { display: inline-block; }
.intro-eva.is-armed .intro-eva__word {
    opacity: 0;
    transform: translateY(0.6em);
    transition: opacity 420ms ease, transform 420ms ease;
}
.intro-eva.is-armed .intro-eva__reveal.is-in .intro-eva__word { opacity: 1; transform: translateY(0); }

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

/* Stack: как grid grid-cols-1 gap-lg (1.5rem в типичной шкале) */
.vertical-manifesto-grid {
    display: grid;
    width: 100%;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

/* Строка карточки: flex + gap-6 + items-start — то же, что tw flex flex-row items-start gap-6 */
.philosophy-v6-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

/* Как absolute -top-6 у бейджа в оригинале */
.philosophy-v6-badge-wrap {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -1.5rem;
}

.philosophy-v6-box {
    flex: 1;
    min-width: 0;
}

/* Круг как в Bootstrap + фикс «вытянутой» капсулы во flex */
.philosophy-vertical__badge {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
}

.philosophy-bg__img {
    object-fit: cover;
}

/* process stack — sticky scroll layering, marker, oversized step numbers */
.process-stack__marker {
    width: 0.625rem;
    height: 0.625rem;
}

.process-stack__num {
    font-size: clamp(3.5rem, 11vw, 7.5rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
}

@media (min-width: 768px) {
    .process-stack__slot {
        min-height: min(52vh, 26rem);
    }

    .process-stack__slot:last-child {
        min-height: 0;
    }

    .process-stack__panel {
        position: sticky;
        top: 5rem;
        z-index: calc(var(--stack-index, 0) + 1);
    }
}

@keyframes floating-organic-timeline__float-a {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(0.5deg); }
    66% { transform: translateY(-4px) rotate(-0.3deg); }
}

@keyframes floating-organic-timeline__float-b {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-6px) rotate(-0.5deg); }
    66% { transform: translateY(-10px) rotate(0.4deg); }
}

@keyframes floating-organic-timeline__float-c {
    0%, 100% { transform: translateY(-4px) rotate(0deg); }
    50% { transform: translateY(4px) rotate(0.3deg); }
}

.floating-organic-timeline__float-a {
    animation: floating-organic-timeline__float-a 6s ease-in-out infinite;
}

.floating-organic-timeline__float-b {
    animation: floating-organic-timeline__float-b 7s ease-in-out infinite;
}

.floating-organic-timeline__float-c {
    animation: floating-organic-timeline__float-c 5s ease-in-out infinite;
}

.floating-organic-timeline__decor-1 {
    top: -8rem;
    left: -8rem;
    width: 24rem;
    height: 24rem;
}

.floating-organic-timeline__decor-2 {
    bottom: -8rem;
    right: -8rem;
    width: 20rem;
    height: 20rem;
}

.floating-organic-timeline__decor-3 {
    top: 50%;
    left: -4rem;
    width: 16rem;
    height: 16rem;
}

.floating-organic-timeline__decor-4 {
    top: 25%;
    right: 0;
    width: 12rem;
    height: 12rem;
}

.floating-organic-timeline__card-offset {
    margin-top: 2rem;
}

.floating-organic-timeline__media-square {
    aspect-ratio: 1;
    position: relative;
    width: 100%;
}

.floating-organic-timeline__media-square img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bootstrap branch: grid + gap (row gutters often collapse with overflow on section) */
.floating-organic-timeline__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .floating-organic-timeline__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .floating-organic-timeline__bs-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.floating-organic-timeline__min-shrink {
  min-width: 0;
}

/* Bootstrap: grid + gap (row gutters often collapse) */
.tips-detailed__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tips-detailed__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tips-detailed__subtitle-max {
    max-width: 42rem;
}

.tips-detailed__thumb {
    width: 3rem;
    height: 3rem;
}

.tips-detailed__cta-thumb {
    width: 2rem;
    height: 2rem;
}

.tips-detailed__min-shrink {
    min-width: 0;
}


.drive-signup__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.drive-signup__grid {
    min-height: 350px;
}

@keyframes drive-signup-spark-beat-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.drive-signup__spark--beat {
    animation: drive-signup-spark-beat-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

.drive-signup__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

