/* Rólunk – BoosTech story page (scoped) */
.about-story {
    --as-ink: #f4f7fb;
    --as-muted: rgba(244, 247, 251, 0.72);
    --as-dim: rgba(244, 247, 251, 0.52);
    --as-line: rgba(255, 255, 255, 0.1);
    --as-panel: #002335;
    --as-deep: #101418;
    --as-green: var(--fixpro-base, #2ab97e);
    --as-green-soft: rgba(42, 185, 126, 0.14);
    color: var(--as-ink);
}

.about-story a:not(.thm-btn):not(.about-story__cta-btn) {
    color: inherit;
}

/* ---- Hero ---- */
.about-story__hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--as-deep);
}

.about-story__hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-story__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.04);
    animation: aboutStoryKen 18s ease-in-out infinite alternate;
}

@keyframes aboutStoryKen {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.about-story__hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(10, 16, 22, 0.92) 0%, rgba(10, 16, 22, 0.72) 42%, rgba(10, 16, 22, 0.35) 100%),
        linear-gradient(0deg, rgba(10, 16, 22, 0.88) 0%, transparent 45%);
}

.about-story__hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 140px 0 72px;
}

.about-story__brand {
    display: inline-block;
    font-family: var(--fixpro-font-two, "Archivo", sans-serif);
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: #fff;
    margin: 0 0 18px;
}

.about-story__brand span {
    color: var(--as-green);
}

.about-story__hero h1 {
    max-width: 14ch;
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.about-story__hero-lead {
    max-width: 38rem;
    margin: 0 0 28px;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--as-muted);
}

.about-story__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.about-story__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-story__cta-btn--primary {
    background: var(--as-green);
    color: #fff !important;
    border: 1px solid var(--as-green);
}

.about-story__cta-btn--primary:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.about-story__cta-btn--ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.about-story__cta-btn--ghost:hover {
    border-color: var(--as-green);
    color: var(--as-green) !important;
}

/* ---- Sections ---- */
.about-story__section {
    padding: 88px 0;
    position: relative;
}

.about-story__section--soft {
    background: linear-gradient(180deg, rgba(0, 35, 53, 0.55) 0%, rgba(16, 20, 24, 0) 100%);
}

.about-story__section--panel {
    background: var(--as-panel);
}

.about-story__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--as-green);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-story__kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--as-green);
}

.about-story__title {
    margin: 0 0 16px;
    max-width: 18ch;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.about-story__text {
    margin: 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--as-muted);
}

.about-story__text + .about-story__text {
    margin-top: 14px;
}

/* ---- Story split ---- */
.about-story__split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.about-story__visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    background: var(--as-deep);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.about-story__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 420px;
}

.about-story__visual-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(10, 16, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.about-story__visual-badge strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--as-green);
}

.about-story__visual-badge span {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--as-muted);
}

/* ---- Process ---- */
.about-story__process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
    counter-reset: as-step;
}

.about-story__step {
    position: relative;
    padding: 24px 22px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--as-line);
    min-height: 100%;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.about-story__step:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 185, 126, 0.45);
    background: var(--as-green-soft);
}

.about-story__step::before {
    counter-increment: as-step;
    content: counter(as-step, decimal-leading-zero);
    display: block;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--as-green);
}

.about-story__step h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: #fff;
}

.about-story__step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--as-dim);
}

/* ---- Pillars ---- */
.about-story__pillars {
    display: grid;
    gap: 0;
    margin-top: 36px;
    border-top: 1px solid var(--as-line);
}

.about-story__pillar {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--as-line);
    text-decoration: none;
    transition: padding 0.25s ease, background 0.25s ease;
}

.about-story__pillar:hover {
    padding-left: 12px;
}

.about-story__pillar-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--as-green);
}

.about-story__pillar h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #fff;
}

.about-story__pillar p {
    margin: 0;
    color: var(--as-muted);
    line-height: 1.55;
}

.about-story__pillar-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about-story__pillar:hover .about-story__pillar-arrow {
    background: var(--as-green);
    border-color: var(--as-green);
    color: #fff;
}

/* ---- Trust ---- */
.about-story__trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.about-story__stat {
    padding: 28px 22px;
    border-radius: 16px;
    background: rgba(16, 20, 24, 0.55);
    border: 1px solid var(--as-line);
    text-align: left;
}

.about-story__stat strong {
    display: block;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1;
    color: var(--as-green);
    letter-spacing: -0.03em;
}

.about-story__stat span {
    display: block;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--as-muted);
}

/* ---- Place ---- */
.about-story__place {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}

.about-story__place-photo {
    border-radius: 18px;
    overflow: hidden;
    min-height: 360px;
    background: var(--as-deep);
}

.about-story__place-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 360px;
}

.about-story__place-card {
    padding: 36px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--as-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-story__place-card address {
    font-style: normal;
    margin: 0 0 22px;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #fff;
}

.about-story__place-card p {
    margin: 0 0 22px;
    color: var(--as-muted);
    line-height: 1.6;
}

/* ---- Final CTA ---- */
.about-story__finale {
    padding: 72px 0 100px;
}

.about-story__finale-band {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 48px 40px;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(42, 185, 126, 0.28), transparent 55%),
        linear-gradient(135deg, #002335 0%, #101418 100%);
    border: 1px solid rgba(42, 185, 126, 0.28);
}

.about-story__finale-band h2 {
    margin: 0 0 12px;
    max-width: 16ch;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: #fff;
}

.about-story__finale-band p {
    margin: 0 0 24px;
    max-width: 36rem;
    color: var(--as-muted);
    line-height: 1.6;
}

/* ---- Motion helpers ---- */
.about-story .as-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    animation: aboutStoryReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-story .as-reveal-delay-1 { animation-delay: 0.12s; }
.about-story .as-reveal-delay-2 { animation-delay: 0.24s; }
.about-story .as-reveal-delay-3 { animation-delay: 0.36s; }

@keyframes aboutStoryReveal {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-story__hero-media img,
    .about-story .as-reveal {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .about-story__hero {
        min-height: auto;
    }

    .about-story__hero-inner {
        padding: 120px 0 56px;
    }

    .about-story__split,
    .about-story__place {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-story__process,
    .about-story__trust {
        grid-template-columns: 1fr 1fr;
    }

    .about-story__pillar {
        grid-template-columns: 1fr auto;
        gap: 12px 18px;
    }

    .about-story__pillar-label {
        grid-column: 1 / -1;
    }

    .about-story__section {
        padding: 64px 0;
    }
}

@media (max-width: 575px) {
    .about-story__process,
    .about-story__trust {
        grid-template-columns: 1fr;
    }

    .about-story__finale-band {
        padding: 36px 22px;
    }

    .about-story__visual,
    .about-story__visual img,
    .about-story__place-photo,
    .about-story__place-photo img {
        min-height: 280px;
    }
}
