/* ============================================================
   EVARAGOLD — ABOUT PAGE
   Light theme. Minimalistic luxury. Scrollytelling.
   Uses main site's CSS variables from style.css
   ============================================================ */

/* --- PAGE BASE (Light Theme Override) --- */
.ab-body {
    background: var(--color-bg-cream);
    color: var(--color-text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Subtle warm noise texture via repeating gradient */
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(181, 132, 68, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(196, 168, 130, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* --- SCROLL PROGRESS --- */
.ab-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--color-gold);
    z-index: 10001;
}

/* ============================================================
   ACT 1: HERO
   ============================================================ */
.act-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #F5EDE0 0%, var(--color-bg-beige) 40%, #E8D5BF 100%);
}



/* Particles */
.particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0;
    animation: particleFloat 7s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    15% { opacity: 0.6; }
    85% { opacity: 0.15; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .particle { animation: none; display: none; }
}

/* Hero Content */
.act-hero__content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 var(--space-5);
}

.act-hero__tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1px solid var(--color-accent-line);
    padding: 8px 32px;
    border-radius: 100px;
    margin-bottom: var(--space-5);
    opacity: 0;
}

.act-hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: var(--space-3);
}

.title-line {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateY(60px) rotateX(30deg);
    transform-origin: bottom center;
}

.title-line.gold {
    color: var(--color-gold);
    font-size: clamp(50px, 12vw, 150px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-style: normal;
    mask-image: linear-gradient(to bottom, black 30%, transparent 98%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 98%);
}

.act-hero__sub {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0;
    color: var(--color-text-secondary);
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.scroll-cue__mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--color-accent-line);
    border-radius: 11px;
    position: relative;
}

.scroll-cue__wheel {
    width: 3px;
    height: 7px;
    background: var(--color-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue__wheel { animation: none; }
}

.scroll-cue span {
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* ============================================================
   ACT 2: FLOW CHAPTERS
   ============================================================ */
.flow-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.flow-section {
    position: relative;
    height: 200vh;
    width: 100%;
}

.flow-art-container {
    position: relative;
    display: flex;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 10vh 4vw;
    will-change: transform;
    transform-origin: bottom left;
}

.flow-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-sans);
}

.flow-divider {
    margin: 1.5vh 0;
    border: none;
    border-top: 1px solid currentColor;
    opacity: 0.2;
}

.flow-title {
    font-size: clamp(2rem, 8vh, 6vw);
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.flow-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3vh;
    position: relative;
    z-index: 2;
    padding-bottom: 2vh;
}

.flow-desc {
    max-width: 45ch;
    font-size: clamp(1rem, 2.5vh, 1.4rem);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.flow-img-wrapper {
    position: absolute;
    top: 50%;
    right: 4vw;
    transform: translateY(-50%);
    z-index: 5;
    height: 55vh;
    max-height: 700px;
    width: auto;
    aspect-ratio: 3/4;
    max-width: 45vw;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(26, 64, 49, 0.12);
}

.flow-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .flow-section {
        height: auto;
        padding: 80px 0;
    }
    .flow-art-container {
        height: auto;
        min-height: auto;
        padding: 40px 20px;
    }
    .flow-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .flow-img-wrapper {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 500px;
        aspect-ratio: 3/4;
    }
    .flow-title {
        font-size: 3rem;
    }
}

.story-panel__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(241, 230, 216, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================================
   ACT 3: PARALLAX DEEP DIVE
   ============================================================ */
.act-parallax {
    position: relative;
    height: 80vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-layer {
    position: absolute;
    will-change: transform;
}

.parallax-layer--1 {
    top: -15%;
    bottom: -15%;
    left: 0;
    right: 0;
    z-index: 0;
}

.parallax-layer--1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(0.7);
}

.parallax-layer--2 {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.parallax-quote-card {
    text-align: center;
    padding: var(--space-6);
}

.parallax-quote-card blockquote {
    font-family: var(--font-serif);
    font-size: clamp(22px, 4vw, 44px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-bg-cream);
    max-width: 650px;
}

.parallax-layer--3 {
    z-index: 3;
    right: 8%;
    bottom: 12%;
}

.float-ring-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(241, 230, 216, 0.3);
}

/* ============================================================
   ACT 4: 3D TILT CARDS
   ============================================================ */
.act-cards {
    padding: 120px 0;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(181, 132, 68, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(196, 168, 130, 0.05) 0%, transparent 40%),
        var(--color-bg-cream);
}

.cards-header {
    margin-bottom: var(--space-8);
}

.cards-label {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: var(--space-2);
}

.cards-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 500;
    color: var(--color-text-primary);
}

.cards-track {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 var(--space-4);
    perspective: 1200px;
}

.tilt-card {
    width: 300px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    transition: transform 0.15s ease;
    cursor: pointer;
    will-change: transform;
}

.tilt-card__face {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(26, 64, 49, 0.1);
}

.tilt-card__face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tilt-card:hover .tilt-card__face img {
    transform: scale(1.06);
}

.tilt-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(26, 64, 49, 0.9) 0%, transparent 100%);
}

.tilt-card__info h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-bg-cream);
}

.tilt-card__info p {
    font-size: 13px;
    color: rgba(241, 230, 216, 0.65);
}

/* ============================================================
   ACT 5: STATS
   ============================================================ */
.act-stats {
    padding: 96px 0;
    background:
        linear-gradient(135deg, var(--color-bg-beige) 0%, #E8D5BF 50%, var(--color-bg-beige) 100%);
    border-top: 1px solid rgba(196, 168, 130, 0.2);
    border-bottom: 1px solid rgba(196, 168, 130, 0.2);
    position: relative;
}

.act-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.3;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 500;
    color: var(--color-text-primary);
    display: inline;
}

.stat-plus {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 36px);
    color: var(--color-gold);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* ============================================================
   ACT 6: VISION CTA
   ============================================================ */
.act-vision {
    padding: 160px 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(181, 132, 68, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(26, 64, 49, 0.95) 0%, var(--color-bg-dark-teal) 60%),
        var(--color-bg-dark-teal);
    color: var(--color-bg-cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.act-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.4;
}

.vision-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.vision-title {
    font-family: var(--font-serif);
    font-size: clamp(44px, 8vw, 88px);
    font-weight: 500;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.vision-title em {
    color: var(--color-gold);
}

.vision-desc {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.8;
    opacity: 0.65;
    margin-bottom: var(--space-6);
}

.vision-btns {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.v-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.v-btn--fill {
    background: var(--color-gold);
    color: var(--color-bg-dark-teal);
}

.v-btn--fill:hover {
    background: var(--color-bg-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(181, 132, 68, 0.2);
}

.v-btn--outline {
    border: 1px solid rgba(241, 230, 216, 0.3);
    color: var(--color-bg-cream);
    background: transparent;
}

.v-btn--outline:hover {
    background: rgba(241, 230, 216, 0.1);
    border-color: rgba(241, 230, 216, 0.6);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .story-panel {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 80px var(--space-3);
        gap: var(--space-4);
    }

    .story-panel__inner {
        max-width: 100%;
    }

    .story-panel__text {
        max-width: 100%;
        margin: 0 auto;
    }

    .story-panel__card {
        width: 240px;
        height: 300px;
        transform: none;
    }

    .story-chapter-num {
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.3;
    }

    .story-dots {
        left: auto;
        right: var(--space-2);
    }

    .tilt-card {
        width: 260px;
        height: 340px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }

    .act-parallax {
        height: 60vh;
    }

    .float-ring-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .story-panel__card {
        width: 200px;
        height: 260px;
    }

    .tilt-card {
        width: 100%;
        max-width: 300px;
        height: 360px;
    }
}
