/* ==================== */
/* ─── GLOBAL VARS ─── */
/* ==================== */
:root {
    --accent: #ffffff;
    --drawer-bg: #2f2f2f;
    --c-bg-blue: #4f5cff;
    --edge: 6%; /* diagonal width (desktop) */
    --gap: 6rem; /* text padding (desktop) */
    --scrim: rgba(0,0,0,.35);
    --drawer-w: 360px;
    --ease: cubic-bezier(.25,.8,.25,1);
    --trans: .4s cubic-bezier(.25,.8,.25,1);
    --drawer-w: 700px;
    --social-size: 48px;
}

@media (max-width:900px) {
    :root {
        --edge: 0%;
        --gap: 2.5rem;
    }
}

/* ==================== */
/* ─── Cookie ─── */
/* ==================== */

#silktide-modal footer a[href="https://silktide.com/consent-manager"],
#silktide-modal footer a[href*="silktide.com"] {
    display: none !important;
}

/* Hide all Silktide attribution links (both text and logo/SVG) */
#silktide-banner a.silktide-logo,
#silktide-modal footer a[href*="silktide.com"] {
    display: none !important;
}

/* ==================== */
/* ─── Accessibility ─── */
/* ==================== */
@media (prefers-reduced-motion: reduce) {
    .bg-image-desktop,
    .bg-image-mobile {
        animation: none;
        transform: scale(1);
    }
}

/* ====================== */
/* ─── BASE & RESETS ─── */
/* ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll
}

body {
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    background: var(--drawer-bg);
    color: #ddd;
}

/* Slide-aside effect */
.page {
    transition: transform var(--trans);
    overflow-x: hidden;
    transform: translateZ(0);
}

body.drawer-open .page {
    transform: translateX(calc(-1 * var(--drawer-w)))
}

body.drawer-open {
    overflow: hidden
}

/* ================= */
/* ─── COMPONENTS ─── */
/* ================= */

/* ─── HERO SECTION ─── */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.08);
}

/* Hero background: video on desktop, image on mobile */
.hero > .bg-image-mobile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* keep both behind scrim & logo */
}

/* Default (desktop) – video visible, image hidden */
.bg-image {
    display: none;
}

/* Mobile breakpoint – swap them */
@media (max-width: 900px) {
    .bg-video {
        display: none;
    }
    /* video won’t load/play */
    .bg-image-mobile {
        display: block;
    }
}

.scrim {
    position: absolute;
    inset: 0;
    background: var(--scrim)
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(600px,60vw);
    transform: translate(-50%,-50%);
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(14px) scale(0.98);
    animation: logo-reveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
    will-change: transform, opacity;
}

@keyframes logo-reveal {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

/* Scroll Button */
.scroll-btn {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: none;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

    .scroll-btn:hover {
        transform: translateX(-50%) scale(1.1);
        background: rgba(255,255,255,.25);
    }

    .scroll-btn:active {
        transform: translateX(-50%) scale(0.9);
        background: rgba(255,255,255,.35);
    }

    .scroll-btn span {
        width: 12px;
        height: 12px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
    }

/* ─── HAMBURGER MENU ─── */
.hamburger {
    position: fixed;
    top: 1.8rem; /* ← moved down a bit already */
    right: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 7px; /* ← slightly more breathing between lines */
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 1200;
    mix-blend-mode: difference;
    padding: 1.1rem; /* bigger touch target */
    border-radius: 12px; /* soft rounded container */
    transition: all var(--trans);
}

.hamburger {
    transform: translate(4px, 6px); /* ← your requested diagonal shift */
}

    .hamburger span {
        width: 32px; /* ← longer */
        height: 3.5px; /* ← much thicker → biggest "bold" win */
        background: #ffffff;
        border-radius: 2px; /* softer ends */
        box-shadow: 0 1px 4px rgba(0,0,0,0.4); /* subtle depth */
        transition: all var(--trans);
    }

    .hamburger:hover,
    .hamburger:focus-visible {
        background: rgba(255,255,255,0.08);
        transform: translate(4px, 6px) scale(1.08);
        box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    }

    .hamburger:active {
        transform: translate(4px, 6px) scale(0.96);
    }

body.drawer-open .hamburger span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

body.drawer-open .hamburger span:nth-child(2) {
    opacity: 0;
}

body.drawer-open .hamburger span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}
/* Desktop Hamburger Size */
@media (min-width: 901px) {
    .hamburger {
        top: 1.7rem;
        right: 1.7rem;
        transform: translate(6px, 8px); /* slightly stronger diagonal on big screens */
        padding: 1.25rem;
    }

        .hamburger span {
            width: 36px;
            height: 4px; /* extra thick on desktop */
        }

        .hamburger:hover {
            transform: translate(6px, 8px) scale(1.1);
        }
}

/* ─── NAV DRAWER ─── */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: var(--drawer-w);
    max-width: 90vw;
    background: var(--drawer-bg);
    color: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem 3rem;
    overflow-y: auto;
    transform: translateX(100%); /* default off-screen */
    transition: transform var(--trans);
    will-change: transform;
    text-align: center;
    box-shadow: inset 12px 0 18px -4px rgba(0,0,0,.65);
}

    .drawer::before {
        content: "";
        position: absolute;
        inset: 0 100% 0 -12px;
        width: 12px;
        pointer-events: none;
        background: linear-gradient( to right, rgba(0,0,0,.65) 0 75%, transparent 100%);
        transition: inherit; /* rides with the drawer */
    }

    .drawer.open {
        transform: translateX(0%);
    }

.nav-links {
    list-style: none;
    margin-top: 2rem;
    font-size: 1.125rem;
    letter-spacing: .05em
}

    .nav-links li + li {
        margin-top: 2.2rem
    }

    .nav-links a {
        color: #d1d1d1;
        text-decoration: none;
        transition: color .2s
    }

        .nav-links a:hover {
            color: #fff
        }

.companylink {
    margin-top: auto;
    text-align: center;
    font-size: .85rem;
    color: #777
}

.drawer .social-ring {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    padding: 0px;
    margin: 0px;
    align-content: center;
    justify-content: center;
}

@media (max-width:1400px) {

    :root {
        --drawer-text-fs: 1rem; /* slightly smaller nav links */
        --drawer-icon: 40px; /* slimmer social buttons     */
        --drawer-w: 350px;
        --social-size: 28px;
    }

    /* Optional additional tweaks ----------------- */
    .drawer {
        padding: 3rem 1.25rem 2.25rem;
    }
    /* tighter side padding */

    .nav-links li + li {
        margin-top: 1.8rem;
    }
    /* shrink vertical gap */
    .nav-links a {
        font-size: 13px;
    }

    .social-ring {
        gap: 0.9rem;
    }
    /* icons closer        */
}
/* ─── FEATURE CARDS ─── */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--bg,var(--drawer-bg));
}

.feature__text {
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    color: #fff;
}

    .feature__text.dark {
        color: #111
    }

.feature__img {
    background-image: var(--img,url('https://placehold.co/1600x1000'));
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Diagonal Effects */
.img-right .feature__img,
.img-right .vid-link {
    clip-path: polygon(var(--edge) 0, 100% 0, 100% 100%, 0 100%);
}

.img-left .feature__img,
.img-left .vid-link {
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--edge)) 100%, 0 100%);
}

/* Video Player Styles */
.auto-trailer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.7);
}

.vid-link {
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.play-overlay {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 120px;
    height: 120px;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 2;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

    .play-overlay::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-30%,-50%);
        border-left: 28px solid #fff;
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
    }

.vid-link:hover .play-overlay {
    transform: scale(1.1);
    border-color: var(--accent);
    background: rgba(255,255,255,.1);
}

.vid-link:active .play-overlay {
    transform: scale(0.9);
    border-color: #fff;
    background: rgba(255,255,255,.2);
}

/* Mobile Stacking */
@media (max-width:900px) {
    .feature {
        grid-template-columns: 1fr
    }

    .feature__img {
        clip-path: none;
        height: 320px
    }

    .img-left, .img-right {
        direction: ltr
    }
}

/* Helpers */
.feature.bg-blue {
    background: var(--c-bg-blue)
}

.feature.bg-white {
    background: #fff
}

.eyebrow {
    letter-spacing: .15em;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: .8;
}

/* ─── ABOUT CARD ─── */

/* ===== feature--about: full-width white intro (scoped & consistent) ===== */

/* Make this variant span the content area while matching other .feature naming */
.feature--about {
    /* Keep the feature grid but force a single-column layout for this card */
    display: grid;
    grid-template-columns: 1fr;
    color: #071018; /* dark copy color to match site tone */
    border-top: 1px solid rgba(7,16,24,0.04);
    border-bottom: 1px solid rgba(7,16,24,0.04);
    box-shadow: none;
    margin: 0; /* section spacing is handled by surrounding layout */
}

    /* Hide the right-side image panel so the text takes the full card width */
    .feature--about .feature__img {
        display: none;
    }

    /* Force the text column to use the existing font stack (inherit) and center content */
    .feature--about .feature__text {
        color: #071018; /* ensure dark copy regardless of global rules */
        font-family: inherit; /* uses same font stack as body */
        max-width: 1100px; /* constraint for comfortable reading */
        margin: 0 auto;
        padding: clamp(2rem, 5vw, 4.5rem); /* vertical breathing and consistent gutter */
        text-align: center; /* center headline & paragraph */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .9rem;
    }

    /* eyebrow uses site eyebrow styles but tuned for contrast */
    .feature--about .eyebrow {
        color: #6b7280; /* muted, same role as other eyebrow text */
        letter-spacing: .12em;
        font-weight: 600;
        text-transform: uppercase;
        font-size: .88rem;
        margin: 0;
    }

    /* Headline: readable, scales with viewport, uses same font family */
    .feature--about h2 {
        margin: .15rem 0 0;
        color: #071018;
        font-weight: 700;
        font-size: clamp(1.45rem, 3.2vw, 2.4rem);
        line-height: 1.06;
        -webkit-font-smoothing: antialiased;
    }

    /* Lead paragraph: constrained measure for legibility, inherits site typography */
    .feature--about .feature-lead {
        margin: 0;
        color: #334155;
        font-size: 1rem;
        line-height: 1.5;
        max-width: 64ch;
        opacity: .95;
    }

/* responsive tweaks — keep the card compact and readable on small screens */
@media (max-width:900px) {
    .feature--about .feature__text {
        padding: clamp(1.1rem, 6vw, 1.8rem);
        gap: .7rem;
    }

    .feature--about h2 {
        font-size: 1.45rem;
    }

    .feature--about .feature-lead {
        font-size: .98rem;
        max-width: 44ch;
    }
}

/* Safety: strong specificity so this white card's colors win without !important */
.feature--about .feature__text,
.feature--about .eyebrow,
.feature--about h2,
.feature--about .feature-lead {
    color: inherit;
    font-family: inherit;
}

/* Optional micro-animation — remove if you prefer static loading */
@media (prefers-reduced-motion: no-preference) {
    .feature--about .feature__text {
        opacity: 0;
        transform: translateY(6px);
        animation: aboutIn .46s cubic-bezier(.22,.61,.36,1) .06s forwards;
    }

    @keyframes aboutIn {
        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* ─── STORE ICONS ─── */
/* ── Platform links row: refined look ─────────────────────────────── */
.store-icons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.25rem);
    align-items: flex-start;
}

/* Equal tile width so gaps look perfectly even */
.store-icon {
    position: relative;
    inline-size: 68px; /* adjust to taste (88–108px works well) */
    text-decoration: none;
    color: #fff; /* keep icons white by default */
    outline: none;
}

    /* Icon only (no circle); smooth brand color on hover/focus */
    .store-icon .glyph {
        inline-size: 48px;
        block-size: 48px; /* 44–52px is a good range */
        display: grid;
        place-items: center;
        color: #fff;
        transition: color .2s ease, transform .18s ease, filter .2s ease;
    }

        .store-icon .glyph svg {
            width: 40px;
            height: 40px;
            display: block;
            fill: currentColor;
        }

    /* Subtle brand underline + glow on hover/focus */
    .store-icon::after {
        content: "";
        position: absolute;
        left: 35%;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: currentColor;
        opacity: 0;
        border-radius: 2px;
        transform: translateX(-50%);
        transition: width .2s ease, opacity .2s ease;
    }

    .store-icon:hover::after,
    .store-icon:focus-visible::after {
        width: 28px;
        opacity: .9;
    }

    .store-icon:hover .glyph {
        transform: translateY(-2px);
    }

/* Brand colours (icon + effects only) */
.store--switch:hover {
    color: #e7000a;
}
/* Nintendo red   */
.store--ms:hover {
    color: #0178d4;
}
/* Microsoft blue */
.store--xbox:hover {
    color: #107b10;
}
/* Xbox green     */
.store--steam:hover {
    color: #153d70;
}
/* Steam light    */

/* Keyboard focus mirrors hover (a11y) */
.store--switch:focus-visible .glyph {
    color: #e7000a;
    outline: 2px solid #e7000a;
    outline-offset: 4px;
}

.store--ms:focus-visible .glyph {
    color: #0178d4;
    outline: 2px solid #0178d4;
    outline-offset: 4px;
}

.store--xbox:focus-visible .glyph {
    color: #107b10;
    outline: 2px solid #107b10;
    outline-offset: 4px;
}

.store--steam:focus-visible .glyph {
    color: #C7D5E0;
    outline: 2px solid #153d70;
    outline-offset: 4px;
}

/* Desktop tooltip: clean pill above the icon (uses your existing .label) */
.store-icon .label {
    position: absolute;
    left: 50%;
    top: -1.85rem;
    transform: translate(-50%, 6px) scale(.98);
    padding: .25rem .5rem;
    border-radius: 6px;
    background: rgba(15,15,17,.92);
    border: 1px solid rgba(255,255,255,.12);
    color: #e7eaee;
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

    .store-icon .label::after { /* small caret */
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: rgba(15,15,17,.92);
        filter: drop-shadow(0 -1px 0 rgba(255,255,255,.12));
    }

.store-icon:hover .label,
.store-icon:focus-visible .label {
    opacity: 1;
    transform: translate(-50%,0) scale(1);
}
/* Touch devices: labels always visible below the icon (no tooltip) */
@media (hover: none) and (pointer: coarse) {
    .store-icon {
        inline-size: 104px;
    }
        /* slightly wider for text */
        .store-icon .label {
            position: static;
            transform: none;
            opacity: 1;
            background: transparent;
            border: 0;
            padding: 0;
            margin-top: .35rem;
            text-align: center;
            white-space: nowrap;
        }

            .store-icon .label::after {
                display: none;
            }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .store-icon .glyph, .store-icon .label, .store-icon::after {
        transition: none !important;
    }
}

/* Store feature pills — using Font Awesome icons */
.store-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: .75rem 0 1rem;
    padding: 0;
    list-style: none;
    user-select: none;
}

    .store-features li {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        padding: 0.42rem 0.94rem;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 999px;
        background: rgba(255,255,255,.04);
        color: #e7eaee;
        font-size: .92rem;
        line-height: 1;
        white-space: nowrap;
        cursor: default;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
    }

        .store-features li i {
            font-size: 1.08rem;
            width: 1.2em;
            text-align: center;
            line-height: 1;
            color: inherit;
            transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
            will-change: transform;
        }

        .store-features li:hover,
        .store-features li:focus-visible {
            transform: scale(1.08); /* ← PILL GROWS — this is the line that matters */
            background: rgba(255,255,255,0.13);
            border-color: rgba(255,255,255,0.48);
            box-shadow: 0 8px 24px rgba(0,0,0,0.30);
            color: white;
        }

            .store-features li:hover i,
            .store-features li:focus-visible i {
                transform: scale(1.18);
                animation: wobble 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
            }

@keyframes wobble {
    0%, 100% {
        transform: scale(1.18) rotate(0deg);
    }

    15% {
        transform: scale(1.18) rotate(-8deg);
    }

    30% {
        transform: scale(1.18) rotate(6deg);
    }

    45% {
        transform: scale(1.18) rotate(-4deg);
    }

    60% {
        transform: scale(1.18) rotate(3deg);
    }

    75% {
        transform: scale(1.18) rotate(-2deg);
    }
}

.store-features li:active,
.store-features li:active i {
    transform: scale(0.96) !important;
    transition-duration: 0.14s;
}

/* Reduced motion — kill all movement */
@media (prefers-reduced-motion: reduce) {
    .store-features li,
    .store-features li i {
        transition: none !important;
        transform: none !important;
    }
}

/* Mobile */
@media (max-width:900px) {
    .store-features li {
        padding: .46rem .98rem;
        font-size: .9rem;
    }

        .store-features li i {
            font-size: 1.14rem;
        }
}
/* Ratings + legal */
.store-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #9fa6ad;
}

    .store-meta .rating-badge {
        height: 36px;
        width: auto;
        display: none;
    }

        .store-meta .rating-badge[src] {
            display: block;
        }
    /* show only when a src exists */
    .store-meta .legal {
        font-size: .78rem;
        line-height: 1.2;
    }

/* ─── BUTTONS ─── */
.btn-outline {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid #fff;
    border-radius: 9999px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .2s ease, background .25s var(--ease), color .25s var(--ease);
}

    .btn-outline:hover,
    .btn-outline:focus-visible {
        background: #fff;
        color: #000;
        transform: scale(1.1);
    }

    .btn-outline:active {
        transform: scale(0.9);
    }

    .btn-outline:hover {
        cursor: pointer;
    }

/* ─── GALLERY & LIGHTBOX ─── */
.shot-strip {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

    .shot-strip img {
        width: 120px;
        height: auto;
        border-radius: 4px;
        cursor: pointer;
        display: block;
        transform: scale(1);
        transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
        filter: grayscale(30%);
        will-change: transform;
    }

        .shot-strip img:hover {
            filter: none;
            box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        }

        .shot-strip img:active {
            transform: scale(0.98);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }

/* ─────────────────────────────────────────────
   ULTRA LIGHTBOX (replacement)
   ──────────────────────────────────────────── */
:root {
    --ulb-z: 5000; /* ensure we sit above any other modal stacks */
    --ulb-bg: rgba(0,0,0,.96);
    --ulb-panel: rgba(0,0,0,.48);
    --ulb-ease: cubic-bezier(.22,.61,.36,1);
}

/* prevent the site drawer/page transform from affecting layout behind the overlay */
body.ulb-open .page {
    transform: none !important;
}

/* body locking (reuse existing pattern) */
body.ulb-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* container */
.ulb {
    position: fixed;
    inset: 0;
    display: none;
    z-index: var(--ulb-z);
}

.ulb--show {
    display: block;
}

/* backdrop + open/close fades */
.ulb__backdrop {
    position: absolute;
    inset: 0;
    background: var(--ulb-bg);
    opacity: 0;
    animation: ulbFadeIn .18s var(--ulb-ease) forwards;
}

@keyframes ulbFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes ulbFadeOut {
    to {
        opacity: 0;
    }
}

/* chrome centers the stage */
.ulb__chrome {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-areas:
        "topbar"
        "stage";
    grid-template-rows: auto 1fr;
    place-items: center;
    padding: 1.25rem;
}

.ulb__stage {
    grid-area: stage;
    position: relative;
    width: min(92vw, 1600px);
    height: min(84vh, 900px);
    display: grid;
    place-items: center;
    overflow: hidden; /* hides neighbouring slides */
    border-radius: 12px;
    user-select: none;
    touch-action: pan-y; /* allow vertical scroll, capture horizontal swipes */
}

    .ulb__stage.dragging {
        cursor: grabbing;
    }

/* top bar */
.ulb__topbar {
    grid-area: topbar;
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: calc(var(--ulb-z) + 2);
}

.ulb__count {
    pointer-events: auto;
    font: 600 .95rem/1.1 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    color: #fff;
    background: var(--ulb-panel);
    padding: .4rem .6rem;
    border-radius: .5rem;
}

.ulb__actions {
    display: flex;
    gap: .5rem;
    pointer-events: auto;
}

.ulb__btn {
    min-width: 44px;
    min-height: 44px;
    padding: .25rem .6rem;
    font-size: 1.02rem;
    color: #fff;
    background: var(--ulb-panel);
    border: 0;
    border-radius: .65rem;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

    .ulb__btn:hover {
        transform: scale(1.08);
        background: rgba(0,0,0,.62);
    }

/* --- track-based carousel layout --- */
.ulb__track {
    display: flex;
    height: 100%;
    transition: transform .36s var(--ulb-ease);
    will-change: transform;
}

    .ulb__track.is-dragging {
        transition: none;
    }

.ulb__track {
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
}

.ulb__slide {
    flex: 0 0 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

    .ulb__slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 6px;
        will-change: transform, opacity;
        user-select: none;
        -webkit-user-drag: none; /* block native image drag */
        pointer-events: none; /* pass pointer events to the stage for full-area dragging */
    }

/* keep for videos */
.ulb__stage > video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
}

/* Video in lightbox: ensure controls fit inside the rounded stage */
.ulb__stage.is-video {
    padding-bottom: 8px; /* small inset so the control bar never clips */
    cursor: default; /* no grab cursor for video */
}

    /* Hide browser fullscreen / PiP buttons (Chromium/WebKit) */
    .ulb__stage.is-video video::-webkit-media-controls-fullscreen-button {
        display: none !important;
    }

    .ulb__stage.is-video video::-webkit-media-controls-pip-button {
        display: none !important;
    }

/* nav arrows */
.ulb__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--ulb-panel);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: calc(var(--ulb-z) + 2);
    transition: transform .15s ease, background .15s ease;
}

.ulb__prev {
    left: 1rem;
}

.ulb__next {
    right: 1rem;
}

.ulb__nav:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(0,0,0,.62);
}

.ulb__nav:active {
    transform: translateY(-50%) scale(0.96);
}

/* mobile spacing */
@media (max-width: 600px) {
    .ulb__topbar {
        top: .5rem;
        left: .5rem;
        right: .5rem;
    }

    .ulb__prev {
        left: .5rem;
    }

    .ulb__next {
        right: .5rem;
    }
}

/* Safer tap targets on mobile */
@media (max-width: 600px) {
    .lb-topbar {
        top: .5rem;
        left: .5rem;
        right: .5rem;
    }

    .lightbox__close {
        top: .5rem;
        right: .5rem;
    }

    .lb-prev {
        left: .5rem;
    }

    .lb-next {
        right: .5rem;
    }
}


/* ─── SOCIAL LINKS ─── */
.social-ring {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .social-ring a {
        width: 48px;
        height: 48px;
        border: 2px solid #656565;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .15s, border-color .15s;
        text-decoration: none;
    }

        .social-ring a:hover {
            background: #555;
            border-color: #888;
        }

    .social-ring i {
        font-size: 22px;
        color: #fff;
    }

/* ─── NEWSLETTER ─── */
.newsletter {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1rem
}

    .newsletter input {
        flex: 1 1 240px;
        padding: .85rem 1.1rem;
        border: none;
        border-radius: 50px;
        font-size: 1rem;
    }

    .newsletter button {
        padding: .85rem 2rem;
        border: none;
        border-radius: 50px;
        background: #fff;
        color: #000;
        font-weight: 600;
        cursor: pointer;
        transition: background .2s;
    }

        .newsletter button:hover {
            background: #e2e2e2
        }

.newsletter__hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.4;
    text-align: center;
}

.newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #ccc;
    line-height: 1.4;
    font-size: .9rem;
}

    .newsletter__consent input[type="checkbox"] {
        flex: none;
        margin-top: .2em;
    }

    .newsletter__consent a {
        color: var(--accent);
        text-decoration: underline;
    }

/* Responsive Newsletter */
@media (max-width: 600px) {
    .newsletter {
        flex-direction: column;
    }

    .newsletter__consent {
        display: flow;
    }

    .newsletter input,
    .newsletter button {
        /*width: 100%;*/
        flex: none;
    }
}

/* ─── FOOTER ─── */
.site-footer {
    background: var(--drawer-bg);
    color: #dadada;
    padding: 4rem 2rem 5rem;
    font-size: .95rem
}

.footer-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1280px;
    margin: 0 auto
}

.f-col {
    flex: 1 1 200px
}

.footer-logo {
    width: 120px;
    margin-bottom: 2rem
}

.f-col.nav ul {
    list-style: none;
    padding: 0;
    line-height: 2.4rem
}

.f-col.nav a {
    color: #e5e5e5;
    text-decoration: none
}

    .f-col.nav a:hover {
        color: #fff
    }

.legal a {
    color: #e5e5e5;
    text-decoration: none;
    line-height: 2.2rem
}

    .legal a:hover {
        color: #fff
    }

/* Mobile Footer */
@media (max-width:910px) {
    .footer-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

        .footer-wrap .f-col.brand {
            display: contents;
        }

    .footer-logo {
        order: 1;
        margin-bottom: 0.75rem;
    }

    .social-ring {
        order: 2;
    }

    .f-col.nav {
        order: 3;
        flex: 1 1 0px;
    }

    .f-col.legal {
        order: 4;
        flex: 1 1 0px;
    }

    .footer-wrap .f-col.brand p:first-of-type {
        order: 5;
        margin: 0;
    }

    .footer-wrap .f-col.brand p:nth-of-type(n+2) {
        order: 6;
        line-height: 1.4;
        margin: 0;
    }

    .f-col.nav ul {
        display: flex;
        justify-content: center;
        gap: 0.2rem;
    }

    .f-col.legal {
        display: flex;
        justify-content: center;
        gap: 0.2rem;
        flex-wrap: wrap;
    }

        .f-col.legal a {
            white-space: nowrap;
        }

    .site-footer {
        padding: 2rem 1.5rem 3rem;
    }

    .footer-wrap {
        gap: 0.5rem;
    }
}

/* ─── MODALS & COOKIES ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

    .modal-overlay[hidden] {
        display: none !important;
    }

.modal {
    background: #222;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    text-align: center;
}

    .modal h2 {
        margin-bottom: 1rem;
        color: #fff;
    }

    .modal p {
        margin-bottom: 1.5rem;
        color: #ccc;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .modal a:any-link {
        color: #FFFFFF;
        cursor: pointer;
        text-decoration: underline;
        margin-bottom: 1.75rem;
        display: inline-block; /* To apply margin-bottom */
    }

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ======================= */
/* ─── UTILITY CLASSES ─── */
/* ======================= */
.bg-blue {
    background: var(--c-bg-blue) !important
}

.bg-white {
    background: #fff !important
}


/* ======================= */
/* ─── NEEDS TO BE ORDERED ─── */
/* ======================= */

input[type="checkbox"] {
    cursor: pointer;
}
/* ─── SCRIM WHEN DRAWER OPEN ─── */
body.drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--scrim);
    opacity: 0;
    pointer-events: none;
    animation: fadeIn var(--trans) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1
    }
}
/* HAMBURGER + NAV DRAWER — improved spacing, larger hit targets, center-aligned content
   These rules intentionally sit at the end of the stylesheet to override earlier definitions. */
.drawer {
    /* center contents horizontally and add consistent spacing between items */
    align-items: center;
    text-align: center; /* ensure children inherit centered alignment */
    gap: 1.6rem; /* consistent vertical breathing inside the column layout */
    /* a touch more padding on desktop for visual balance */
    padding: 4.75rem 2.25rem 3.5rem;
}
    /* Make the nav list a centered column with increased spacing / larger clickable area */
    .drawer .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.6rem;
        margin-top: 2.5rem; /* push the links down slightly from header area */
        font-size: var(--drawer-text-fs, 1.125rem);
        width: 100%;
        max-width: 520px; /* constrain so items are easy to scan */
        padding: 0;
        box-sizing: border-box;
    }
        /* Make each link more tappable and visually centered */
        .drawer .nav-links a {
            display: inline-block;
            width: 100%;
            max-width: 100%;
            padding: 0.9rem 1.25rem;
            font-size: 1.125rem;
            color: #d1d1d1;
            text-align: center;
            border-radius: 10px;
            transition: background .18s ease, color .18s ease, transform .12s ease;
            -webkit-tap-highlight-color: transparent;
        }
            /* subtle hover / focus affordance so bigger padded links are obvious */
            .drawer .nav-links a:hover,
            .drawer .nav-links a:focus-visible {
                background: rgba(255,255,255,0.03);
                color: #fff;
                transform: translateY(-2px);
            }
    /* Social ring inside the drawer — larger, centered circular buttons */
    .drawer .social-ring {
        justify-content: center;
        gap: 1.25rem;
        margin-top: 1rem;
    }
        /* Ensure the circular social buttons have bigger hit targets in the drawer */
        .drawer .social-ring a {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
    /* Company / legal link at the bottom stays readable but visually separated */
    .drawer .companylink {
        margin-top: auto; /* keep it anchored to the bottom */
        font-size: 0.95rem;
        color: #9aa0a6;
        padding-top: 1rem; /* extra breathing room from nav/social area above */
    }
/* --- Responsive tweaks --- */
/* Medium / smaller desktops and laptops */
@media (max-width: 1400px) {
    .drawer {
        padding: 3.5rem 1.5rem 2.5rem; /* tighten side padding for narrower viewports */
    }

        .drawer .nav-links {
            margin-top: 2rem;
            gap: 1.4rem;
            max-width: 420px;
        }

        .drawer .social-ring {
            width: 45px;
            height: 25px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .drawer .nav-links a {
            font-size: 1rem; /* comfortable reading size on narrower viewports */
            .drawer .social-ring a {
                width: 45px;
                height: 45px;
                border-radius: 50%;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
        }
}
