/* =============================================
   ABOUT.CSS — Industrial Sharp, scroll-driven video expand
   ============================================= */

/* ══════════════════════════════════════════════
   SECTION SCROLL CONTAINER
   ══════════════════════════════════════════════ */
.about-section {
    background: var(--bg-primary);
    /* height is managed dynamically by JS spacer — no pre-allocated gap */
}

.about-scroll-spacer {
    height: 0;
    width: 100%;
    display: block;
    pointer-events: none;
    flex-shrink: 0;
}

.about-sticky {
    position: sticky;
    top: 0;
    height: 500px;   /* starts compact; JS grows to 100vh */
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Engineering grid — industrial blueprint feel */
.about-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 184, 0, 0.04)  1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 184, 0, 0.04)  1px, transparent 1px),
        linear-gradient(rgba(245, 184, 0, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 184, 0, 0.016) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════════════════════
   LEFT: TEXT COLUMN
   ══════════════════════════════════════════════ */
.about-text {
    position: relative;
    z-index: 2;
    width: 52%;
    padding: 0 48px 0 clamp(24px, 5vw, 80px);

    will-change: opacity, transform;
    flex-shrink: 0;
}

.about-text__inner {
    max-width: 520px;
}

/* Eyebrow label */
.about-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 22px;
}

.about-eyebrow__line {
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
}

/* Stats row */
.about-stats {
    display: flex;
    gap: 0;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(245, 184, 0, 0.12);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 28px;
    margin-right: 28px;
    border-right: 1px solid rgba(245, 184, 0, 0.14);
}

.about-stat:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.about-stat__num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.about-stat__unit {
    font-size: 1.3rem;
    vertical-align: top;
    margin-top: 3px;
    display: inline-block;
    opacity: 0.65;
}

.about-stat__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Title */
.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.8rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 18px;
    margin-top: 22px;
}

.about-title--accent {
    color: var(--accent);
    display: block;
}

/* Body copy */
.about-desc {
    font-family: var(--font-body);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 10px;
}

.about-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* CTA — matches .mega-menu__cta */
.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    text-decoration: none;
    transition: background var(--t-fast), gap var(--t-fast);
}

.about-cta:hover {
    background: var(--accent-dim);
    gap: 16px;
}

/* ══════════════════════════════════════════════
   RIGHT: VIDEO FRAME
   Starts flush-right at 500px, expands to full-screen via JS
   ══════════════════════════════════════════════ */
.about-video-frame {
    position: absolute;
    /* CSS fallback — JS overrides on desktop */
    right: 0;
    top: 0;
    width: 48%;
    height: 500px;
    overflow: hidden;
    will-change: left, top, width, height;
    z-index: 1;
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Poster overlay — covers video, shown when not playing */
.about-poster {
    position: absolute;
    inset: 0;
    background: url('../images/cover.png') center / cover no-repeat;
    z-index: 2;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.about-poster.is-hidden {
    opacity: 0;
}

/* Gradient overlay — fades as video expands */
.about-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(9, 12, 19, 0.40) 0%,
        rgba(9, 12, 19, 0.12) 45%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* ── Circular Play Button — glassmorphism, matches site identity ── */
.about-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(9, 14, 26, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(245, 184, 0, 0.42);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    z-index: 4;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(245, 184, 0, 0.08);
    transition:
        background 0.25s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        opacity 0.35s ease;
}

.about-play-btn:hover {
    background: rgba(9, 14, 26, 0.82);
    border-color: rgba(245, 184, 0, 0.75);
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(245, 184, 0, 0.38),
        0 0 0 1px rgba(245, 184, 0, 0.18);
}

.about-play-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Unmute Button (appears only when fullscreen) ── */
.about-unmute-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: rgba(9, 14, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 184, 0, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-unmute-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.about-unmute-btn:hover {
    color: var(--accent);
    border-color: rgba(245, 184, 0, 0.55);
}

.about-unmute-btn .icon-muted    { display: block; }
.about-unmute-btn .icon-unmuted  { display: none;  }
.about-unmute-btn.is-unmuted .icon-muted   { display: none;  }
.about-unmute-btn.is-unmuted .icon-unmuted { display: block; }

/* ══════════════════════════════════════════════
   RESPONSIVE — mobile: static stacked layout
   ══════════════════════════════════════════════ */
@media (max-width: 860px) {
    .about-section {
        height: auto;
    }

    .about-sticky {
        position: relative;
        height: auto !important;
        flex-direction: column;
        overflow: visible;
    }

    .about-text {
        width: 100%;
        padding: 80px 24px 40px;
    }

    .about-video-frame {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 56vh !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
    }

    .about-poster {
        position: absolute;
        inset: 0;
    }

    .about-unmute-btn {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-wrap: wrap;
        gap: 12px 0;
    }

    .about-stat {
        border-right: none;
        padding-right: 32px;
        margin-right: 0;
    }

    .about-stat__num  { font-size: 1.9rem; }
    .about-title      { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .about-play-btn   { width: 56px; height: 56px; }
}
