
/* Corporate page: Full-screen cinematic hero + gallery */

/* =========================
   1. CORPORATE HERO
========================= */

.c-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

/* Dark overlay for text readability */

.c-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 10, .88),
            rgba(8, 8, 10, .25) 74%
        ),
        linear-gradient(
            0deg,
            rgba(8, 8, 10, .94),
            transparent 52%
        );
}

/* Full-screen background image */

.ch-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.ch-bg img {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    filter: brightness(.62);
    transform: scale(1.06);
    animation: cdrift 24s ease-in-out infinite alternate;
}

/* Cinematic background movement */

@keyframes cdrift {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1.15) translate(-1.5%, -1%);
    }
}

/* Interactive light effect */

.ch-spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    background:
        radial-gradient(
            circle 340px at var(--mx, 70%) var(--my, 40%),
            rgba(228, 203, 162, .22),
            transparent 70%
        );
}

/* Hero text positioning */

.ch-copy {
    margin-block: auto;
    padding-top: 160px;
    padding-bottom: 75px;
    width: 100%;
}

.ch-copy .in {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
}

/* Description */

.ch-copy .lead {
    font-size: 17px;
    line-height: 1.75;
    color: #d6d4cf;
    max-width: 500px;
    margin: 0;
}

/* Give the CTA button wrapper more breathing room */

.ch-copy .in > div:has(a.btn) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

/* Hero statistics */

.ch-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 44px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--line);
    margin-top: 30px;
}

.ch-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-stats b {
    font-family: var(--f-disp);
    font-weight: 300;
    font-size: 46px;
    line-height: 1;
    color: var(--gold);
}

.ch-stats span {
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--mute);
    font-weight: 500;
}


/* =========================
   2. CORPORATE GALLERY
========================= */

.c-gal {
    padding-block: 96px;
}

.c-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 30px;
}

.c-bar .chips button {
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.c-bar .chips button:hover {
    border-color: var(--ink);
}

.c-count {
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--mute);
    font-weight: 500;
}

/* Gallery grid */

.cg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 14px;
}

.cg figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg2);
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.8,.2,1);
}

.cg figure.in {
    opacity: 1;
    transform: none;
}

.cg figure[hidden] {
    display: none;
}

.cg figure.w {
    grid-column: span 2;
    grid-row: span 2;
}

.cg figure.p {
    grid-row: span 2;
}

.cg button {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
}

.cg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 1s cubic-bezier(.2,.8,.2,1),
        filter .6s ease;
}

.cg button::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(8,8,10,.78),
            transparent 52%
        );
    opacity: 0;
    transition: opacity .45s ease;
}

/* Gallery captions */

.cg figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    transform: translateY(10px);
    opacity: 0;
    transition:
        opacity .45s ease,
        transform .45s ease;
    pointer-events: none;
}

.cg figcaption small {
    font-size: 10.5px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.cg figcaption span {
    font-family: var(--f-disp);
    font-size: 24px;
    line-height: 1.1;
}

/* Gallery hover effects */

.cg button:hover img,
.cg button:focus-visible img {
    transform: scale(1.06);
}

.cg button:hover::after,
.cg button:focus-visible::after {
    opacity: 1;
}

.cg figure:hover figcaption,
.cg figure:focus-within figcaption {
    opacity: 1;
    transform: none;
}

/* Touch devices */

@media (hover: none) {
    .cg button::after {
        opacity: .55;
    }

    .cg figcaption {
        opacity: 1;
        transform: none;
    }

    .cg figcaption span {
        font-size: 20px;
    }
}


/* =========================
   3. CORPORATE NOTE
========================= */

.c-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 56px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.c-note p {
    max-width: 520px;
    color: var(--mute);
}


/* =========================
   4. IMAGE LIGHTBOX
========================= */

dialog#lb .box {
    position: relative;
}

dialog#lb .row {
    align-items: center;
}

dialog#lb .c-n {
    font-size: 11px;
    letter-spacing: .26em;
    color: var(--mute);
    min-width: 64px;
    text-align: center;
}

dialog#lb img {
    transition: opacity .25s ease;
}


/* =========================
   5. TABLET RESPONSIVE
========================= */

@media (max-width: 900px) {

    .cg {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .ch-copy .in {
        max-width: 620px;
    }

    .ch-bg img {
        object-position: 55% center;
    }
}


/* =========================
   6. MOBILE RESPONSIVE
========================= */

@media (max-width: 560px) {

    .c-hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .ch-copy {
        padding-top: 135px;
        padding-bottom: 65px;
    }

    .ch-copy .in {
        gap: 23px;
    }

    .ch-copy .lead {
        font-size: 15px;
    }

    .ch-copy .in > div:has(a.btn) {
        margin-top: 8px;
        gap: 12px;
    }

    .ch-stats {
        gap: 16px 25px;
        padding: 22px 0 28px;
        margin-top: 24px;
    }

    .ch-stats b {
        font-size: 38px;
    }

    .cg {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .cg figure.w {
        grid-column: auto;
        grid-row: span 1;
    }

    .c-gal {
        padding-block: 72px;
    }
}


/* =========================
   7. REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .ch-bg img {
        animation: none;
    }

    .cg figure {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cg img,
    .cg button::after,
    .cg figcaption {
        transition: none;
    }
}
