/* ================================================================
   Baron Bacot — Home Immersive v2
   Cinematic particle hero + transparent floating content sections
   ================================================================ */

/* ─── Canvas: fixed full-screen living background ─── */
.home-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    background: #070707;
    pointer-events: none;
}

#homeCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ─── Main wrapper ─── */
.home-main {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.home-main a,
.home-main button,
.home-main .product-card,
.home-main .offer-inner,
.home-main .practice-grid,
.home-main .method-text,
.home-main .access-inner,
.home-main .cinematic-inner {
    pointer-events: auto;
}

/* ─── All sections: base shell ─── */
.home-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════
   SECTION 1 — CINEMATIC HERO
   Full 100vh. ONLY the universe + brand identity.
   Think: opening of a Kubrick film.
══════════════════════════════════════════════════ */
.cinematic-hero {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Red multiply strip — preserved exactly, left side */
.cinematic-hero .red-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background-color: var(--red);
    mix-blend-mode: hard-light;
    z-index: 1;
    pointer-events: none;
}

/* The cinematic layout: 3 zones — top-left tag · center · bottom */
.cinematic-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7rem 4rem 3.5rem;
}

/* Top-left discipline tag */
.cin-tag {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    align-self: flex-start;
}

/* Center: the brand statement — massive, pure */
.cin-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
    gap: 1.5rem;
}

.cin-center-glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0px;
    padding: 2rem 0;
    max-width: 780px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    box-shadow: none;
}

.cin-brand-name {
    font-family: var(--font-motto);
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    color: var(--white);
    text-transform: none;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cin-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.8rem 0;
}

.cin-title {
    font-family: var(--font-body), serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.03em;
    color: var(--white);
    /* Subtle text-glow so it reads over bright particles */
    text-shadow:
        0 0 60px rgba(0, 0, 0, 0.9),
        0 0 120px rgba(0, 0, 0, 0.6),
        0 4px 24px rgba(0, 0, 0, 0.8);
    /* Staggered fade-in via JS */
    opacity: 0;
    transform: translateY(18px);
    animation: cinFade 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1.0s forwards;
}

.cin-subtitle {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    opacity: 0;
    animation: cinFade 1.2s ease-out 1.8s forwards;
}

@keyframes cinFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom row: CTA + scroll indicator */
.cin-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Cinematic CTA — ghost button, understated */
.cin-cta {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-ui), sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    border: 0.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: cinFade 1s ease-out 2.4s forwards;
    backdrop-filter: blur(4px);
}

.cin-cta:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Scroll indication */
.cin-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: cinFade 1s ease-out 3s forwards;
}

.cin-scroll-line {
    width: 0.5px;
    height: 55px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
    animation: scrollPulse 2.8s ease-in-out infinite;
}

.cin-scroll-label {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.3);
    writing-mode: horizontal-tb;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.95);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.08);
    }
}

/* ══════════════════════════════════════════════════
   SECTION 2 — OFFER (text + product card)
══════════════════════════════════════════════════ */
.offer-section {
    justify-content: center;
    padding: 0 4rem;
}

.offer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 0;
    gap: 4rem;
}

.offer-text {
    flex: 1;
    max-width: 460px;
}

.offer-card {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ══════════════════════════════════════════════════
   SECTION 3 — STATEMENT
══════════════════════════════════════════════════ */
.statement-section {
    justify-content: center;
    text-align: center;
}

.statement-section .section-text {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 3.5rem 2.5rem;
    background: rgba(7, 7, 7, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

/* ══════════════════════════════════════════════════
   SECTION 4 — PRACTICE GRID
══════════════════════════════════════════════════ */
.practice-section {
    justify-content: center !important;
    align-items: center !important;
    padding-bottom: 5rem;
}

.practice-section .practice-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 760px;
    padding: 3rem;
    background: rgba(7, 7, 7, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

/* ══════════════════════════════════════════════════
   SECTION 5 — METHOD
══════════════════════════════════════════════════ */
.method-section {
    justify-content: flex-end;
}

/* Red multiply strip — right side */
.method-section .red-strip.right {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 45%;
    height: 100%;
    background-color: var(--red);
    mix-blend-mode: hard-light;
    z-index: 1;
    pointer-events: none;
}

.method-section .method-text {
    position: relative;
    z-index: 2;
    max-width: 420px;
    padding: 5rem;
    text-align: right;
}

/* ══════════════════════════════════════════════════
   SECTION 6 — ACCESS / FINAL CTA
══════════════════════════════════════════════════ */
.access-section {
    justify-content: center;
    align-items: center;
    /* Dark red ground — closing moment */
    background: rgba(130, 6, 6, 0.94);
}

.access-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 7rem 2rem;
}

/* ─── Shared eyebrow ─── */
.section-eyebrow {
    display: block;
    font-family: var(--font-ui), sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(149, 8, 8, 0.85);
    margin-bottom: 1.25rem;
}

/* ─── Stats row ─── */
.access-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-num {
    font-family: var(--font-body), serif;
    font-size: 3rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.45);
}

.stat-sep {
    width: 0.5px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
}

/* ─── Access CTA buttons ─── */
.btn-group-access {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-access-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: var(--red);
    text-decoration: none;
    font-family: var(--font-ui), sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    border-radius: 2px;
    border: 0.5px solid #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-access-primary:hover {
    background: transparent;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
}

.btn-access-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-ui), sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    border-radius: 2px;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-access-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ─── Stacking contexts ─── */
footer {
    position: relative;
    z-index: 1;
}

header {
    z-index: 1000;
}

.floating-wa {
    z-index: 1001;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — 900px
══════════════════════════════════════════════════ */
@media (max-width: 900px) {

    /* Cinematic hero — mobile */
    .cinematic-inner {
        padding: 6rem 1.8rem 3rem;
    }

    .cin-title {
        font-size: 2.6rem;
    }

    .cin-bottom {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .cin-scroll-hint {
        display: none;
    }

    /* Red strips — horizontal on mobile */
    .cinematic-hero .red-strip,
    .method-section .red-strip.right {
        width: 100%;
        height: 45%;
        top: auto;
        bottom: 0;
        left: 0;
        right: auto;
    }

    /* Offer section */
    .offer-section {
        padding: 0 1.5rem;
    }

    .offer-inner {
        flex-direction: column;
        padding: 4rem 0;
        gap: 3rem;
        text-align: center;
    }

    .offer-text {
        max-width: 100%;
    }

    .offer-card {
        justify-content: center;
    }

    /* Practice */
    .practice-section .practice-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    /* Method */
    .method-section {
        justify-content: center;
    }

    .method-section .method-text {
        text-align: center;
        padding: 4rem 2rem;
        max-width: 100%;
    }

    /* Access stats */
    .access-stats {
        gap: 2rem;
    }

    .stat-sep {
        display: none;
    }
}

/* ══════════════════════════════════════════════════
   SECTION 7 — CONSULTATION FORM & LEAD CAPTURE
   Ultra-premium, centered, high-contrast styling
   ================================================== */
.lead-section {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8rem 2rem;
    min-height: 100vh;
    background: transparent !important;
    position: relative;
    z-index: 2;
    width: 100% !important;
}

.lead-inner {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.lead-text {
    margin-bottom: 3.5rem;
}

.lead-text h2.motto {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.lead-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin: 0 auto;
}

/* Form Container */
.lead-form {
    width: 100%;
    position: relative;
    background: rgba(10, 10, 10, 0.4) !important; /* Low-opacity translucent graphite sheet */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 3rem 2.5rem;
    border-radius: 4px;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5) !important;
    text-align: left;
}

/* Subtle accent strip for the form */
.lead-burn-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red, #950808), transparent);
}

/* Form Fields */
.form-field {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

/* Inputs, Selects, Textarea */
.form-input {
    width: 100%;
    background: rgba(25, 25, 25, 0.85); /* Deep solid graphite */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Graphite border */
    border-radius: 2px;
    color: var(--white, #ffffff);
    padding: 0.95rem 1.2rem;
    font-family: var(--font-body), sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: rgba(255, 255, 255, 0.55); /* High-contrast white-graphite focus */
    background: #181818;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
}

/* Select specific overrides */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-select option {
    background: #111111;
    color: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.form-submit {
    width: 100%;
    padding: 1.1rem;
    background: var(--white, #ffffff);
    color: var(--black, #070707);
    border: 1px solid var(--white, #ffffff);
    border-radius: 2px;
    font-family: var(--font-ui), sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
}

.form-submit svg {
    transition: transform 0.3s ease;
}

.form-submit:hover {
    background: transparent;
    color: var(--white, #ffffff);
    border-color: rgba(255, 255, 255, 0.55);
}

.form-submit:hover svg {
    transform: translateX(4px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Disclaimer text */
.form-disclaimer {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 1.25rem;
}

/* Success State styling */
.form-success {
    display: none; /* Controlled via JS, maps to flex in handleLeadSubmit */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--white);
    min-height: 250px;
}

.form-success svg {
    stroke: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.95;
}

.form-success p {
    font-family: var(--font-body), serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .lead-form {
        padding: 2.2rem 1.5rem;
    }
}

/* ================================================================
   SECTION 3 — SELECTED WORKS GALLERY SECTION
   ================================================================ */
.gallery-section {
    padding: 10rem 4rem 8rem 4rem !important;
    background: transparent !important;
    min-height: auto !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

.gallery-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.gallery-header {
    text-align: left;
    margin-bottom: 4rem;
}

.gallery-title {
    font-family: var(--font-motto), serif;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    color: var(--white);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.gallery-header-line {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    margin-top: 1.5rem;
}

.mondrian-grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 4.5rem 3rem !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.mondrian-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(10, 10, 10, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 2px;
    transition: border-color 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s ease;
}

.mondrian-cell:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mondrian-cell--tall {
    grid-column: span 7;
    height: 640px;
}

.mondrian-cell--small {
    grid-column: span 5;
    height: 295px;
}

.mondrian-cell--wide {
    grid-column: span 12;
    height: 520px;
}

.mondrian-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 1px;
}

.mondrian-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.mondrian-cell:hover .mondrian-img-wrap img {
    transform: scale(1.03);
}

.mondrian-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    width: 100%;
}

.ml-num {
    color: var(--red);
    font-family: var(--font-ui), sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.ml-title {
    color: var(--white);
    font-family: var(--font-ui), sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
}

.ml-sub {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui), sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-left: auto;
}

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.gallery-footer-note {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

.gallery-footer-cta {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-ui), sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.gallery-footer-cta:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Gallery Responsive Overrides */
@media (max-width: 992px) {
    .mondrian-grid {
        gap: 3rem 2rem !important;
    }
    
    .mondrian-cell--tall,
    .mondrian-cell--small,
    .mondrian-cell--wide {
        grid-column: span 12 !important;
        height: 380px !important;
    }
    
    .gallery-footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}