/* ==============================
   ABOUT — cinematic story section
   ============================== */

.about {
    --about-pad: clamp(1.25rem, 4vw, 4rem);
    --about-line: rgba(255, 255, 255, 0.08);
    --about-border: rgba(255, 255, 255, 0.12);

    position: relative;
    width: 100%;
    min-height: 100vh;
    background: transparent;
    color: #fff;
    direction: inherit;
    overflow-x: clip;
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(5rem, 8vw, 6.5rem);
    z-index: 3;
}

.about__inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--about-pad);
}

/* --- Side rails --- */

.about__rail {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.about__rail--left {
    left: clamp(0.75rem, 2vw, 1.5rem);
}

.about__rail--right {
    right: clamp(0.75rem, 2vw, 1.5rem);
}

.about__rail-label {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.38em;
    color: rgba(255, 255, 255, 0.28);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.about__rail-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

.about__rail-vert {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.42em;
    color: rgba(255, 255, 255, 0.22);
    writing-mode: vertical-rl;
}

/* --- Intro --- */

.about__intro {
    max-width: 920px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about__eyebrow {
    display: inline-block;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.42em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--about-border);
    border-radius: 999px;
}

.about__heading {
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    letter-spacing: 0.03em;
    line-height: 0.92;
    margin: 0 0 1.25rem;
    perspective: 900px;
}

.about__heading-char {
    display: inline-block;
    transform-origin: 50% 100%;
    backface-visibility: hidden;
}

.about__heading--whole {
    display: block;
    text-align: start;
    text-transform: none;
    letter-spacing: 0;
    unicode-bidi: plaintext;
}

.about__heading--whole .about__heading-text {
    display: inline-block;
}

.about__lead {
    margin: 0;
    max-width: 52ch;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    letter-spacing: 0.14em;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.48);
    text-transform: uppercase;
}

/* --- Marquee tape --- */

.about__tape {
    overflow: hidden;
    margin: 0 calc(var(--about-pad) * -1) clamp(3rem, 6vw, 4.5rem);
    padding: 0.85rem 0;
    border-block: 1px solid var(--about-line);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.about__tape-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.about__tape-text {
    flex-shrink: 0;
    padding-right: 3rem;
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

/* --- Pinned story --- */

.about__story {
    position: relative;
    height: calc(var(--about-chapters, 3) * 115vh);
    margin: 0 calc(var(--about-pad) * -0.5);
}

.about--story-scroll .about__story-pin {
    will-change: transform;
}

.about__story-pin {
    height: 100vh;
    display: flex;
    align-items: center;
}

.about__story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    width: 100%;
    padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

/* --- Visual --- */

.about__visual {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: min(72vh, 620px);
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
}

.about__visual-ring {
    position: absolute;
    inset: -14px -18px 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
    z-index: 2;
}

.about__visual-scan {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 48%,
        transparent 52%
    );
    background-size: 100% 220%;
    animation: about-scan 6s ease-in-out infinite;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

@keyframes about-scan {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

.about__visual-stack {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2px;
    background: #0a0a0a;
    transform-style: preserve-3d;
    will-change: transform;
}

.about__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__img--ph {
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.12), transparent 50%),
        linear-gradient(155deg, #161616 0%, #050505 100%);
}

.about__slide {
    opacity: 0;
    filter: grayscale(1) contrast(1.08);
    z-index: 1;
    will-change: opacity, transform;
    pointer-events: none;
}

.about__slide.is-active {
    z-index: 3;
}

.about--story-scroll .about__slide,
.about--story-scroll .about__chapter {
    transition: none !important;
}

.about--story-scroll .about__slide.is-active:hover {
    filter: grayscale(0.9) contrast(1.05);
}

.about__progress {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 5;
}

.about__progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    transition: background 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.55s ease;
}

.about__progress-dot.is-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.35);
}

/* --- Chapters --- */

.about__chapters {
    position: relative;
    min-height: clamp(220px, 32vh, 320px);
}

.about__chapter {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding-top: 0.5rem;
}

.about__chapter.is-active {
    pointer-events: auto;
}

.about--story-scroll .about__chapter.is-active {
    visibility: visible;
}

.about__chapter-num {
    display: block;
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.08);
    margin-bottom: 0.25rem;
}

.about__chapter-title {
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.1em;
    line-height: 1;
    margin: 0 0 1rem;
}

.about__chapter-body {
    margin: 0;
    max-width: 42ch;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(0.92rem, 1.6vw, 1.08rem);
    letter-spacing: 0.1em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
}

/* --- Quote --- */

.about__quote {
    margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
    padding: 0;
    border: none;
    max-width: 780px;
}

.about__quote-text {
    margin: 0;
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
}

.about__quote-by {
    display: block;
    margin-top: 1.25rem;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.38);
    font-style: normal;
}

/* --- Pillars (identity tags, not stats) --- */

.about__pillars {
    list-style: none;
    margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.about__pillar {
    position: relative;
    overflow: hidden;
}

.about__pillar-text {
    display: block;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--about-border);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.about__pillar-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__pillar:hover .about__pillar-text {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.about__pillar:hover .about__pillar-line {
    transform: scaleX(1);
}

/* --- CTA --- */

.about__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.32em;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, gap 0.35s ease;
}

.about__cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__cta:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
    gap: 0.9rem;
}

.about__cta:hover svg {
    transform: translateX(4px);
}

/* --- GSAP / fallback states --- */

.about:not(.is-gsap):not(.is-ready) .about__intro,
.about:not(.is-gsap):not(.is-ready) .about__tape,
.about:not(.is-gsap):not(.is-ready) .about__story,
.about:not(.is-gsap):not(.is-ready) .about__quote,
.about:not(.is-gsap):not(.is-ready) .about__pillars,
.about:not(.is-gsap):not(.is-ready) .about__cta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.about:not(.is-gsap).is-visible .about__intro,
.about:not(.is-gsap).is-visible .about__tape,
.about:not(.is-gsap).is-visible .about__story,
.about:not(.is-gsap).is-visible .about__quote,
.about:not(.is-gsap).is-visible .about__pillars,
.about:not(.is-gsap).is-visible .about__cta {
    opacity: 1;
    transform: none;
}

.about.is-gsap .about__tape-track {
    animation: none;
}

/* --- Responsive (base layout above stays unchanged for wide viewports) --- */

@media (max-width: 1024px) {
    .about__story-grid {
        gap: clamp(1.5rem, 3.8vw, 3rem);
        padding: 0 clamp(0.35rem, 1.5vw, 1rem);
    }

    .about__visual {
        max-width: min(400px, 90vw);
    }

    .about__chapters {
        min-height: clamp(200px, 30vh, 300px);
    }
}

@media (max-width: 960px) {
    .about__rail {
        display: none;
    }

    .about__story-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.1rem, 3.5vw, 1.85rem);
        align-items: start;
        padding: 0 0 clamp(1rem, 3.5vw, 1.75rem);
    }

    .about__story-pin {
        height: 100svh;
        height: 100dvh;
        align-items: center;
        padding-top: clamp(0.5rem, 2.5vmin, 1.25rem);
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .about__story {
        height: calc(var(--about-chapters, 3) * 108svh);
        margin: 0 calc(var(--about-pad) * -0.35);
    }

    .about__visual {
        max-width: min(300px, 78vw);
        max-height: min(46svh, 460px);
        aspect-ratio: 4 / 5;
        margin: 0 auto clamp(1.5rem, 4.5vw, 2.25rem);
    }

    .about__visual-ring {
        inset: -8px -10px 12px 8px;
    }

    .about__progress {
        left: 50%;
        right: auto;
        top: auto;
        bottom: -1rem;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .about__chapters {
        min-height: clamp(140px, 22svh, 220px);
        width: 100%;
        max-width: 34rem;
        margin: 0 auto;
        text-align: center;
    }

    .about__chapter {
        padding-top: 0.15rem;
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }

    .about__chapter-num {
        margin-left: auto;
        margin-right: auto;
    }

    .about__chapter-body {
        max-width: 44ch;
        margin-left: auto;
        margin-right: auto;
    }

    .about__tape {
        margin: 0 calc(var(--about-pad) * -1) clamp(2rem, 5vw, 3rem);
        padding: 0.7rem 0;
    }

    .about__tape-text {
        padding-right: clamp(1.5rem, 5vw, 3rem);
        font-size: clamp(1.05rem, 4vw, 1.75rem);
    }

    .about__quote {
        margin-top: clamp(1.5rem, 5vw, 2.75rem);
        max-width: none;
    }

    .about__pillars {
        margin-top: clamp(2rem, 5vw, 2.75rem);
        justify-content: center;
    }

    .about__cta {
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content;
        max-width: min(22rem, calc(100% - 1rem));
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .about {
        padding:
            clamp(2.75rem, 9vw, 4.25rem) 0
            clamp(2.75rem, 8vw, 4rem);
        --about-pad: clamp(0.85rem, 4vw, 1.25rem);
    }

    .about__inner {
        padding-left: max(var(--about-pad), env(safe-area-inset-left, 0px));
        padding-right: max(var(--about-pad), env(safe-area-inset-right, 0px));
    }

    .about__intro {
        margin-bottom: clamp(1.5rem, 4.5vw, 2.5rem);
    }

    .about__eyebrow {
        font-size: clamp(0.55rem, 2.6vw, 0.65rem);
        letter-spacing: 0.3em;
        margin-bottom: 0.9rem;
        padding: 0.28rem 0.7rem;
    }

    .about__heading {
        font-size: clamp(2rem, 9.5vw, 3.85rem);
        margin-bottom: 0.9rem;
        line-height: 0.95;
    }

    .about__lead {
        font-size: clamp(0.78rem, 3.4vw, 0.95rem);
        letter-spacing: 0.09em;
        line-height: 1.6;
        max-width: none;
    }

    .about__story {
        margin: 0 calc(var(--about-pad) * -0.85);
    }

    .about__visual {
        max-width: min(260px, 72vw);
        max-height: min(42svh, 400px);
    }

    .about__chapter-num {
        font-size: clamp(1.75rem, 11vw, 2.4rem);
    }

    .about__chapter-title {
        font-size: clamp(1.3rem, 6vw, 2.15rem);
        margin-bottom: 0.65rem;
    }

    .about__chapter-body {
        font-size: clamp(0.78rem, 3vw, 0.95rem);
        letter-spacing: 0.07em;
        line-height: 1.65;
    }

    .about__quote-text {
        font-size: clamp(1.1rem, 5vw, 1.85rem);
        line-height: 1.2;
        text-wrap: balance;
    }

    .about__quote {
        margin-top: clamp(1.25rem, 4vw, 2.25rem);
    }

    .about__quote-by {
        margin-top: 0.85rem;
        font-size: clamp(0.65rem, 2.6vw, 0.75rem);
        letter-spacing: 0.28em;
    }

    .about__cta {
        display: flex;
        width: fit-content;
        max-width: min(22rem, calc(100% - 1rem));
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        align-items: center;
        min-height: 48px;
        padding: 0.8rem 1.4rem;
        font-size: 0.78rem;
        letter-spacing: 0.28em;
        touch-action: manipulation;
    }

    .about__pillar-text {
        touch-action: manipulation;
    }
}

@media (max-width: 560px) {
    .about__chapter-num {
        font-size: clamp(1.65rem, 10vw, 2.35rem);
        margin-bottom: 0.1rem;
    }

    .about__chapter-title {
        font-size: clamp(1.2rem, 6.5vw, 1.85rem);
        letter-spacing: 0.08em;
    }

    .about__chapter-body {
        font-size: clamp(0.74rem, 3.2vw, 0.88rem);
        letter-spacing: 0.06em;
        line-height: 1.6;
    }

    .about__pillars {
        gap: 0.45rem 0.55rem;
        justify-content: center;
    }

    .about__pillar {
        flex: 0 1 auto;
        min-width: 0;
    }

    .about__pillar-text {
        font-size: 0.6rem;
        letter-spacing: 0.24em;
        padding: 0.5rem 0.85rem;
        text-align: center;
    }

    .about__tape {
        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    }

    .about__visual {
        max-width: min(240px, 68vw);
        max-height: min(38svh, 360px);
    }

    .about__visual-ring {
        inset: -6px -8px 10px 6px;
    }

    .about__chapters {
        min-height: clamp(120px, 20svh, 200px);
    }
}

@media (max-width: 420px) {
    .about {
        --about-pad: clamp(0.75rem, 4.2vw, 1.1rem);
    }

    .about__story-grid {
        gap: 0.85rem;
    }

    .about__visual {
        max-width: min(220px, 64vw);
        max-height: 34svh;
    }

    .about__heading {
        font-size: clamp(1.85rem, 11vw, 2.85rem);
    }

    .about__chapter-num {
        font-size: clamp(1.4rem, 9vw, 1.95rem);
    }

    .about__chapter-title {
        font-size: clamp(1.05rem, 6.5vw, 1.55rem);
        margin-bottom: 0.5rem;
    }

    .about__chapter-body {
        font-size: clamp(0.72rem, 3.3vw, 0.85rem);
        letter-spacing: 0.05em;
    }

    .about__pillar-text {
        font-size: 0.56rem;
        letter-spacing: 0.22em;
        padding: 0.45rem 0.75rem;
    }

    .about__cta {
        display: flex;
        width: fit-content;
        max-width: calc(100% - 0.5rem);
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        padding: 0.7rem 1.05rem;
        font-size: 0.72rem;
        letter-spacing: 0.22em;
    }

    .about__cta svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 960px) and (max-height: 520px) {
    .about__story-pin {
        height: 100vh;
        min-height: 100svh;
        align-items: flex-start;
        padding-top: 0.25rem;
        box-sizing: border-box;
    }

    .about__visual {
        max-height: min(42vh, 380px);
        margin-bottom: 1.35rem;
    }

    .about__chapters {
        min-height: clamp(140px, 32vh, 220px);
    }

    .about__story {
        height: calc(var(--about-chapters, 3) * 105svh);
    }

    .about__chapter-title {
        font-size: clamp(1.25rem, 4.2vw, 1.65rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about__visual-scan {
        animation: none;
    }

    .about:not(.is-gsap) .about__intro,
    .about:not(.is-gsap) .about__tape,
    .about:not(.is-gsap) .about__story,
    .about:not(.is-gsap) .about__quote,
    .about:not(.is-gsap) .about__pillars,
    .about:not(.is-gsap) .about__cta,
    .about.is-gsap .about__intro,
    .about.is-gsap .about__tape,
    .about.is-gsap .about__story,
    .about.is-gsap .about__quote,
    .about.is-gsap .about__pillars,
    .about.is-gsap .about__cta {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .about__chapter {
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 2rem;
    }

    .about__chapters {
        min-height: 0;
    }

    .about__story {
        height: auto !important;
    }

    .about__story-pin {
        position: relative !important;
        height: auto;
    }

    .about__cta:hover svg {
        transform: none;
    }
}
