/* ==========================================================
   SEALAND PRESS — ONE PAGER
   Scoped component stylesheet

   IMPORTANT:
   Nothing here intentionally targets:
   html
   body
   :root
   *
   h1
   p
   img
   etc.

   Everything is scoped to the One Pager component.
   ========================================================== */
   
   /*
 * The fixed backdrop lives at z-index: 0.
 *
 * This wrapper creates the layer above it without changing
 * the styling or z-index of the site's global content
 * elements such as .content-section, #primary, etc.
 */

.op-page-layer {
    position: relative;
    z-index: 1;

    /*
     * Deliberately transparent.
     *
     * The global theme remains responsible for backgrounds,
     * typography, widths, spacing, etc.
     */
    background: transparent;
}


/* ==========================================================
   1. BACKGROUND / DESIGN TOKENS
   ========================================================== */

.op-backdrop {
    --op-shell-rgb: 10 14 34;
    --op-shell: rgb(var(--op-shell-rgb));

    --op-vignette-rgb: var(--op-shell-rgb);

    --op-tint: #141531;
    --op-tint-strength: .85;

    --op-hero-rest-opacity: .70;
    --op-hero-max-blur: 2px;

    --op-text-color: rgba(222, 235, 255, .72);
    --op-text-dim: rgba(200, 220, 255, .36);
    --op-text-faint: rgba(190, 215, 255, .17);

    --op-rule: rgba(150, 190, 255, .14);
    --op-mist-color: rgba(150, 190, 255, .06);

    position: fixed;
    inset: 0;
    z-index: 0;

    overflow: hidden;

    background: var(--op-shell);

    isolation: isolate;

    opacity: var(--op-hero-opacity, 1);

    will-change: opacity;

    pointer-events: none;

}

/* ==========================================================
   2. HERO MEDIA
   ========================================================== */

.op-viewport {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;

    background: var(--op-shell);
}


/*
 * This is the actual WordPress image/video.
 *
 * The filter is deliberately applied ONLY to the media.
 * The tint, vignette and glow remain outside the filter.
 */

.op-viewport__media {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;
    object-position: center;

    filter:
        grayscale(1)
        brightness(.5)
        contrast(1.42)
        blur(calc(1px + var(--op-hero-blur, 0px)));

    transform: scale(1.08);
    transform-origin: center center;

    will-change: filter, transform;
}


/* ==========================================================
   3. BLUE COLOUR GRADE
   ========================================================== */

.op-grade {
    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    background: var(--op-tint);

    mix-blend-mode: color;

    opacity: var(--op-tint-strength);
}


/* ==========================================================
   4. DARK SCRIM
   ========================================================== */

.op-scrim {
    position: absolute;
    inset: 0;

    z-index: 3;

    pointer-events: none;

    background: var(--op-shell);

    opacity: var(--op-hero-overlay, .44);
}


/* ==========================================================
   5. VIGNETTE
   ========================================================== */

.op-vignette {
    position: absolute;
    inset: 0;

    z-index: 4;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 55%,
            rgb(var(--op-vignette-rgb) / .80) 100%
        );
}

/* ==========================================================
   6. CENTRAL GLOW
   ========================================================== */

.op-glow {
    position: absolute;

    left: 50%;
    top: 46%;

    width: min(120vw, 900px);
    aspect-ratio: 1;

    z-index: 5;

    pointer-events: none;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(90, 150, 255, .09) 0%,
            transparent 62%
        );
}


/* ==========================================================
   7. HERO
   ========================================================== */

.op-hero {
    position: relative;

    z-index: 1;

    height: 100vh;
    height: 100svh;

    min-height: 520px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-end;

    padding:
        0
        20px
        125px;

    text-align: center;

    background: transparent;

    will-change: transform;
}

.op-hero__content {
    width: 100%;
    max-width: 50vw;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0;

    pointer-events: none;

    text-align: center;

    transform: translateY(-2vh);
}

/* ==========================================================
   8. HERO TITLE
   ========================================================== */

.op-hero__title {
    width: 100%;
    max-width: min(50vw, 900px);

    margin: 0;
    padding: 0;

    color: #e8f1ff;

    font-family:
        "Spectral",
        Georgia,
        serif;

    font-size: clamp(
        2.8rem,
        5vw,
        5.5rem
    );

    font-weight: 400;

    line-height: 1.04;

    letter-spacing: .01em;

    text-align: center;

    opacity: .90;

    filter: none;

    white-space: normal;

    text-wrap: balance;
    
    z-index: 501;
}



/* ==========================================================
   9. SUBTITLE, SUPRATITLE AND IMAGE
   ========================================================== */

.op-hero__subtitle {
    max-width: 42rem;

    margin: .75rem auto 0;

    color: rgba(225, 235, 250, .78);

    font-size: 1.85rem;

    font-weight: 200;

    line-height: 1.45;

    letter-spacing: .025em;

    text-align: center;

    text-wrap: balance;

    z-index: 501;
}

.op-hero__supratitle {
    margin: 0 0 1rem;

    color: rgba(200, 220, 255, .55);

    font-size: clamp(
        .75rem,
        1.1vw,
        1rem
    )!important;

    font-weight: 400;

    font-style: italic;

    line-height: 1.3;

    letter-spacing: .08em;

    text-align: center;

    text-wrap: balance;

    z-index: 501;
}

.op-hero__image {
    width: 100%;

    margin: 0 0 1.5rem;

    display: flex;
    justify-content: center;
    z-index: 100;  
    
}

.op-hero__image img {
    display: block;

    width: auto;
    height: auto;

    max-width: min(180px, 30vw);
    max-height: 120px;

    object-fit: contain;

    opacity: .82;
}

/* ==========================================================
   10. SCROLL CUE
   ========================================================== */

.op-hero .op-scroll-cue {
    position: absolute;

    bottom: 32px;
    left: 50%;

    z-index: 20;

    display: block;

    padding: 12px;

    color: rgba(255, 255, 255, .95) !important;

    font-size: 2.4rem;
    line-height: 1;

    text-decoration: none !important;

    border: 0 !important;
    box-shadow: none !important;

    transform: translateX(-50%);

    animation:
        op-scroll-drift
        3.4s
        ease-in-out
        infinite;
        
    z-index: 501;
}

.op-hero .op-scroll-cue:hover,
.op-hero .op-scroll-cue:focus {
    color: rgba(255, 255, 255, 1) !important;

    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

@keyframes op-scroll-drift {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: .35;
    }

    50% {
        transform: translate(-50%, 7px);
        opacity: .75;
    }
}


/* ==========================================================
   11. SMOKE / MIST
   ========================================================== */

.op-smoke-puff {
    position: absolute;

    z-index: 6;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            rgba(150, 190, 255, .06) 0%,
            rgba(190, 215, 255, .015) 40%,
            transparent 55%
        );

    backdrop-filter:
        blur(10px)
        brightness(1.06);

    -webkit-backdrop-filter:
        blur(10px)
        brightness(1.06);

    mix-blend-mode: screen;

    will-change:
        transform,
        opacity;

    animation:
        op-smoke-dissipate
        7s
        cubic-bezier(.15, .1, .25, 1)
        forwards;
}


@keyframes op-smoke-dissipate {

    0% {
        transform:
            scale(.1)
            translateY(0);

        opacity: 0;
    }

    15% {
        opacity: .45;
    }

    100% {
        transform:
            scale(3.5)
            translateY(-80px);

        opacity: 0;
    }
}


/* ==========================================================
   12. MOBILE
   ========================================================== */

@media (max-width: 640px) {

    /* ------------------------------------------------------
       HERO
       ------------------------------------------------------ */

    .op-hero {
        min-height: 100svh;

        padding:
            0
            20px
            105px;

        justify-content: flex-end;
    }


    /* ------------------------------------------------------
       HERO CONTENT
       ------------------------------------------------------ */

    .op-hero__content {
        width: 100%;
        max-width: none;

        padding: 0;

        transform: translateY(-2vh);
    }


    /* ------------------------------------------------------
       HERO IMAGE
       ------------------------------------------------------ */

    .op-hero__image img {
        max-width: 140px;
        max-height: 100px;
    }


    /* ------------------------------------------------------
       SUPRATITLE
       ------------------------------------------------------ */

    .op-hero__supratitle {
        margin-bottom: .5rem;

        font-size: .85rem;
        line-height: 1.3;
    }


    /* ------------------------------------------------------
       TITLE
       ------------------------------------------------------ */
       
    .op-hero__title {
        width: 100%;
        max-width: 100%;

        padding: 0;

        font-size: clamp(2.5rem, 9vw, 3.5rem);

        line-height: 1.04;

        letter-spacing: .01em;

        text-align: center;

        white-space: normal;
    }


    /* ------------------------------------------------------
       SUBTITLE
       ------------------------------------------------------ */

    .op-hero__subtitle {
        max-width: 92%;

        margin-top: .8rem;

        font-size: 1.15rem;

        line-height: 1.4;

        letter-spacing: .02em;
    }


    /* ------------------------------------------------------
       SCROLL CUE
       ------------------------------------------------------ */

    .op-hero .op-scroll-cue {
        bottom: 24px;

        font-size: 1.1rem;
    }


    /* ------------------------------------------------------
       BACKGROUND MEDIA
       ------------------------------------------------------ */

    .op-viewport__media {
        transform: scale(1.10);
    }


    /* ------------------------------------------------------
       SMOKE
       ------------------------------------------------------ */

    .op-smoke-puff {
        backdrop-filter:
            blur(6px)
            brightness(1.06);

        -webkit-backdrop-filter:
            blur(6px)
            brightness(1.06);
    }


    /* ------------------------------------------------------
       CONTENT
       ------------------------------------------------------ */

    .op-content-container {
        padding:
            80px
            22px
            70px;
    }
}

/* ==========================================================
   13. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .op-smoke-puff {
        display: none;
    }


    .op-scroll-cue {
        animation: none;
    }
}