/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    --wed-brand-orange: #e37b44;
    --wed-brand-orange-rgb: 227, 123, 68;
    --accent: var(--wed-brand-orange);
    --wed-accent-color: var(--wed-brand-orange);
    --bg: transparent; 
    --overlay-bg: #FFFFFF;
    --text: #111827;
    --muted: #6B7280;
    --card-bg: #FFFFFF;
    --card-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 16px; 
    --tap: 44px;
    --wed-ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

html, body { 
    background-color: transparent !important; 
    background: transparent !important;
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    overflow-x: hidden; 
    overflow-anchor: none;
}

.wed-grid-wrapper { 
    position: relative; 
    color: var(--text); 
    line-height: 1.5; 
    width: 100%;
    overflow: visible; 
    overflow-anchor: none;
}
.wed-grid-wrapper.is-tab-transitioning {
    pointer-events: none;
    overflow-anchor: none;
}
.wed-grid-wrapper.is-tab-transitioning #bento-grid,
.wed-grid-wrapper.is-tab-transitioning .wed-custom-tab-content.active-tab {
    will-change: opacity, transform;
}
.wed-grid-wrapper * { box-sizing: border-box; }

.wed-grid-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(17,24,39,0.65) 1px, transparent 0),
        linear-gradient(135deg, rgba(227,123,68,0.16), transparent 42%, rgba(17,24,39,0.12));
    background-size: 9px 9px, 100% 100%;
    mix-blend-mode: multiply;
}

.wed-grid-wrapper :where(h1, h2, h3, .hero-headline) {
    text-wrap: balance;
}

.wed-grid-wrapper :where(.text-orange-400, .text-orange-500),
.wed-grid-wrapper .group:hover :where(.group-hover\:text-orange-400, .group-hover\:text-orange-500) {
    color: var(--wed-brand-orange) !important;
}

.wed-grid-wrapper :where(.hover\:border-orange-500:hover) {
    border-color: var(--wed-brand-orange) !important;
}

.wed-grid-wrapper :where(.hover\:shadow-orange-500\/10:hover) {
    box-shadow: 0 25px 50px -12px rgba(var(--wed-brand-orange-rgb), 0.1) !important;
}

/* =========================================
   2. RESPONSIVE VISIBILITY
   ========================================= */
.wed-grid-wrapper .wed-tabs-mobile { display: block !important; z-index: 999; }
.wed-grid-wrapper .wed-tabs-desktop { 
    display: none !important; 
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .wed-grid-wrapper .wed-tabs-mobile { display: none !important; }
    .wed-grid-wrapper .wed-tabs-desktop { display: block !important; }
}

.wed-navbar-logo {
    display: block; height: auto; max-height: 40px; width: auto; 
    object-fit: contain; transition: max-height 0.3s ease;
}
.wed-navbar-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}
.wed-navbar-logo-link:hover {
    transform: translateY(-1px) scale(1.01);
    filter: saturate(1.08);
}
.wed-navbar-logo-link:focus-visible {
    outline: 2px solid rgba(227, 123, 68, 0.72);
    outline-offset: 6px;
}
@media (min-width: 768px) { .wed-navbar-logo { max-height: 72px; } }

/* =========================================
   3. TABS & PILLS STYLING
   ========================================= */
#primary-tabs-container { padding: 0; margin-bottom: 20px; }
#primary-tabs { padding: 12px 6px !important; margin: -12px -6px !important; }

.pill {
    appearance: none;
    background-color: var(--wed-brand-orange) !important;
    border: 1px solid var(--wed-brand-orange) !important;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
@media (min-width: 768px) { .pill { padding: 0.6rem 1.25rem; font-size: 0.9rem; gap: 0.5rem; } }

.pill i { width: 14px; height: 14px; opacity: 1; color: white; }
@media (min-width: 768px) { .pill i { width: 16px; height: 16px; } }

/* Improved Hover/Active Effects */
.pill:hover {
    background-color: var(--wed-brand-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--wed-brand-orange-rgb), 0.3);
    filter: brightness(1.04);
}
.pill.is-active {
    background-color: var(--wed-brand-orange) !important;
    border-color: var(--wed-brand-orange) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(0);
    filter: brightness(0.92);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.wed-tab-confirmation-ribbon {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 46px rgba(17, 24, 39, 0.22), 0 10px 26px rgba(var(--wed-brand-orange-rgb), 0.14);
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -18px, 0) scale(0.96);
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    white-space: nowrap;
}
.admin-bar .wed-tab-confirmation-ribbon {
    top: 50px;
}
.wed-tab-confirmation-ribbon.is-visible {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
}
.wed-tab-confirmation-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: var(--wed-brand-orange);
    box-shadow: 0 0 0 5px rgba(var(--wed-brand-orange-rgb), 0.16);
}
.wed-tab-confirmation-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   4. SEARCH BAR
   ========================================= */
#wed-search-input {
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}
#wed-search-input:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--wed-brand-orange);
    outline: none;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
#hero-shell { 
    position: relative; z-index: 20; 
    will-change: clip-path, height; 
    height: 420px; 
    max-height: var(--wed-chrome-height, 420px);
    margin-bottom: 2rem; 
    transition: max-height 0.64s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.34s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), margin 0.5s cubic-bezier(0.19, 1, 0.22, 1); 
    overflow-anchor: none;
}
@media (min-width: 768px) { #hero-shell { height: 550px; max-height: var(--wed-chrome-height, 550px); } }

#hero { 
    position: relative; width: 100%; height: 100%;
    overflow: hidden; background: #000; 
    border-radius: 18px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); z-index: 20;
}
#hero.is-fullscreen {
    position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
    z-index: 999999 !important; border-radius: 0 !important; margin: 0 !important;
}
#hero-content {
    justify-content: center !important; text-align: center !important; padding: 1.5rem !important;
}
#hero-shell.wed-hero-settled #hero-video {
    transform: translate3d(0, var(--wed-hero-video-y, 0px), 0) scale(var(--wed-hero-video-scale, 1));
}
#hero-shell.wed-hero-settled #hero-content {
    opacity: var(--wed-hero-content-opacity, 1);
    transform: translate3d(0, var(--wed-hero-content-y, 0px), 0);
    transition: opacity 0.18s linear;
    will-change: opacity, transform;
}

#hero-shell.wed-hero-cinematic {
    isolation: isolate;
}
#hero-shell.wed-hero-cinematic::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 32;
    width: 2px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(227,123,68,0.08));
    opacity: 0;
    transform: translate(-50%, 18px) scaleY(0.35);
    transform-origin: top;
    transition: opacity 0.7s ease 1.45s, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1) 1.45s;
    pointer-events: none;
}
.wed-home-cinematic .wed-navbar-logo,
.wed-home-cinematic #primary-tabs-container {
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.75s ease, transform 0.95s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}
.wed-home-cinematic #primary-tabs-container {
    transition-delay: 0.24s;
}
.wed-home-cinematic.wed-hero-priming .wed-navbar-logo,
.wed-home-cinematic.wed-hero-priming #primary-tabs-container,
#hero-shell.wed-hero-priming #hero-video,
#hero-shell.wed-hero-priming #hero-overlay,
#hero-shell.wed-hero-priming .hero-headline,
#hero-shell.wed-hero-priming .hero-cta-row,
#hero-shell.wed-hero-priming .btn-hero {
    transition: none !important;
}
.wed-home-cinematic.wed-hero-ready .wed-navbar-logo,
.wed-home-cinematic.wed-hero-ready #primary-tabs-container {
    opacity: 1;
    transform: translateY(0);
}
.wed-hero-cinematic #hero-video {
    opacity: 0.86;
    filter: saturate(0.82) brightness(0.62) blur(3px);
    transform: scale(1.075);
    transition: opacity 1.1s ease, filter 1.45s ease, transform 1.65s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, filter, transform;
}
.wed-hero-cinematic #hero-overlay {
    background: rgba(0,0,0,0.62) !important;
    transition: background-color 1.25s ease;
}
.wed-hero-cinematic .hero-headline {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(34px);
    transition: clip-path 1.05s cubic-bezier(0.19, 1, 0.22, 1) 0.35s, opacity 0.8s ease 0.35s, transform 1.05s cubic-bezier(0.19, 1, 0.22, 1) 0.35s;
    will-change: clip-path, opacity, transform;
}
.wed-hero-cinematic .hero-cta-row {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease 0.78s, transform 1s cubic-bezier(0.19, 1, 0.22, 1) 0.78s;
    will-change: opacity, transform;
}
.wed-hero-cinematic .btn-hero {
    transform: translateY(12px);
    transition-property: transform, box-shadow, background-color, color, border-color;
    transition-duration: 0.65s, 0.3s, 0.3s, 0.3s, 0.3s;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1), ease, ease, ease, ease;
}
.wed-hero-cinematic .hero-cta-row .btn-hero:nth-child(2) {
    transition-delay: 0.08s, 0s, 0s, 0s, 0s;
}
#hero-shell.wed-hero-cinematic:not(.wed-hero-ready) #hero-video {
    opacity: 0.86 !important;
    filter: saturate(0.82) brightness(0.62) blur(3px) !important;
    transform: scale(1.075) !important;
}
#hero-shell.wed-hero-cinematic:not(.wed-hero-ready) .hero-headline {
    clip-path: inset(0 0 100% 0) !important;
    opacity: 0 !important;
    transform: translateY(34px) !important;
}
#hero-shell.wed-hero-cinematic:not(.wed-hero-ready) .hero-cta-row {
    opacity: 0 !important;
    transform: translateY(26px) !important;
}
#hero-shell.wed-hero-cinematic:not(.wed-hero-ready) .btn-hero {
    transform: translateY(12px) !important;
}
#hero-shell.wed-hero-ready::after {
    opacity: 0.75;
    transform: translate(-50%, 0) scaleY(1);
    animation: wedHeroCuePulse 2.4s ease-in-out 1.7s infinite;
}
.wed-hero-cinematic.wed-hero-ready #hero-video {
    opacity: 1;
    filter: saturate(1.02) brightness(0.92) blur(0);
    transform: scale(1);
}
.wed-hero-cinematic.wed-hero-ready #hero-overlay {
    background: rgba(0,0,0,0.38) !important;
}
.wed-hero-cinematic.wed-hero-ready .hero-headline {
    clip-path: inset(0);
    opacity: 1;
    transform: translateY(0);
}
.wed-hero-cinematic.wed-hero-ready .hero-cta-row {
    opacity: 1;
    transform: translateY(0);
}
.wed-hero-cinematic.wed-hero-ready .btn-hero {
    transform: translateY(0);
}
.wed-hero-cinematic.wed-hero-ready .btn-hero:hover {
    transform: translateY(-0.25rem);
}
.wed-hero-cinematic.wed-hero-settled #hero-video,
.wed-hero-cinematic.wed-hero-settled .hero-headline,
.wed-hero-cinematic.wed-hero-settled .hero-cta-row,
.wed-home-cinematic.wed-hero-settled .wed-navbar-logo,
.wed-home-cinematic.wed-hero-settled #primary-tabs-container {
    will-change: auto;
}
@keyframes wedHeroCuePulse {
    0%, 100% { opacity: 0.35; transform: translate(-50%, 0) scaleY(0.72); }
    45% { opacity: 0.85; transform: translate(-50%, 9px) scaleY(1); }
}
@media (max-width: 767px) {
    #hero-shell.wed-hero-cinematic::after {
        bottom: 18px;
        height: 32px;
    }
    .wed-hero-cinematic .hero-headline {
        transform: translateY(24px);
    }
    .wed-hero-cinematic .hero-cta-row {
        transform: translateY(18px);
    }
}
@media (prefers-reduced-motion: reduce) {
    #hero-shell.wed-hero-cinematic::after {
        animation: none !important;
        transition: none !important;
        opacity: 0;
    }
    .wed-home-cinematic .wed-navbar-logo,
    .wed-home-cinematic #primary-tabs-container,
    .wed-hero-cinematic #hero-video,
    .wed-hero-cinematic #hero-overlay,
    .wed-hero-cinematic .hero-headline,
    .wed-hero-cinematic .hero-cta-row,
    .wed-hero-cinematic .btn-hero {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        clip-path: inset(0) !important;
        filter: none !important;
    }
    #hero-shell.wed-hero-settled #hero-video,
    #hero-shell.wed-hero-settled #hero-content {
        transform: none !important;
    }
}

/* Collection sheet: compact editorial header and a finite, photo-led rail. */
html body #child-sheet {
    --sheet-edge: clamp(18px, 2.4vw, 32px);
    --sheet-gap: 16px;
    max-height: min(86dvh, 700px) !important;
    background: #fff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 24px !important;
    transition: transform .38s cubic-bezier(.2,.75,.2,1) !important;
}
#child-sheet .wed-sheet-handle { display: none; }
#child-sheet .wed-sheet-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 34%);
    align-items: center;
    gap: clamp(18px, 2vw, 30px);
    min-height: 190px;
    padding: 22px var(--sheet-edge) !important;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 16% 30%, rgba(241,90,36,.2), transparent 35%), #071224;
    border-bottom: 3px solid #f15a24;
}
#child-sheet .wed-sheet-title-block { position: relative; z-index: 1; max-width: none; }
#child-sheet .wed-sheet-kicker {
    margin: 0 0 12px !important;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1);
    color: #f8e4d8;
    min-height: 25px;
    line-height: 1.1;
}
#child-sheet .wed-title-wrapper { grid-template-columns: 4px minmax(0,1fr); gap: 13px; }
#child-sheet .wed-reveal-line { width: 4px; height: 54px !important; background: #f15a24 !important; }
html body #child-sheet .wed-hero-title {
    max-width: 100% !important;
    color: #fff !important;
    font-size: clamp(2rem, 2.65vw, 3.2rem) !important;
    line-height: 1.04 !important;
}
#child-sheet .wed-sheet-title-accent { color: #ff8c52 !important; }
#child-sheet .wed-sheet-summary {
    margin: 12px 0 0 17px !important;
    max-width: 56ch !important;
    color: rgba(255,255,255,.77) !important;
    font-size: .95rem;
    line-height: 1.45;
}
#child-sheet .wed-sheet-header-media {
    height: 146px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #f15a24, #172b48);
    box-shadow: 0 14px 32px rgba(0,0,0,.25);
}
#child-sheet .wed-sheet-header-media img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; filter: saturate(.9);
}
#child-sheet .wed-sheet-header-media img[hidden] { display: none; }
#child-sheet #sheet-close {
    position: absolute; top: 18px; right: 18px; z-index: 3;
    width: 38px !important; height: 38px !important;
    background: rgba(7,18,36,.76) !important;
    border: 1px solid rgba(255,255,255,.48) !important;
    color: #fff !important;
    box-shadow: none !important;
}
#child-sheet #sheet-close:hover { background: #f15a24 !important; transform: none !important; }
#child-sheet .wed-sheet-carousel-shell {
    min-height: 0;
    padding: 18px 0 32px !important;
    background: #fff !important;
}
#child-sheet .wed-sheet-carousel-heading { padding-bottom: 12px !important; }
#child-sheet .wed-sheet-carousel-heading { line-height: 1.2; }
#child-sheet #sheet-section-label { font-size: 1rem; font-weight: 800; color: #071224; }
#child-sheet #sheet-count-pill { background: #fff4ee !important; border-color: #f8d4c1; color: #bd471b !important; }
#child-sheet #sheet-track { padding-bottom: 6px; }
#child-sheet .wed-carousel-card {
    width: calc((min(92vw, var(--sheet-max-width)) - (var(--sheet-edge) * 2) - var(--sheet-gap)) / 2);
    max-width: none;
    aspect-ratio: 1.8 / 1;
    border-radius: 14px !important;
    box-shadow: none !important;
    transform: none;
    transition: box-shadow .2s ease, transform .2s ease;
}
#child-sheet .wed-carousel-card:hover,
#child-sheet .wed-carousel-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(7,18,36,.65) !important; }
#child-sheet .wed-carousel-card img { filter: saturate(.95) brightness(.92); transition: transform .35s ease; }
#child-sheet .wed-carousel-card:hover img { transform: scale(1.04); filter: saturate(1); }
#child-sheet .wed-carousel-index { background: #f15a24; border: 0; box-shadow: 0 4px 12px rgba(0,0,0,.16); }
#child-sheet .wed-carousel-link-cue { color: #fff; background: #f15a24; border-radius: 999px; padding: 8px 11px; width: max-content; }
#child-sheet .wed-sheet-carousel-shell::before,
#child-sheet .wed-sheet-carousel-shell::after { display: none; }
#child-sheet .wed-sheet-arrow { top: 57%; width: 40px !important; height: 40px !important; background: #fff; border: 1px solid #e4e7ec; }
#child-sheet .wed-sheet-arrow.left { left: 8px; }
#child-sheet .wed-sheet-arrow.right { right: 8px; }
#child-sheet .wed-sheet-progress { bottom: 12px; height: 3px; }
#child-sheet #sheet-progress-bar { background: #f15a24; }

@media (max-width: 767px) {
    html body #child-sheet { max-height: 88dvh !important; border-radius: 20px 20px 0 0 !important; }
    #child-sheet .wed-sheet-header { grid-template-columns: 1fr; min-height: 158px; padding: 19px 18px !important; }
    #child-sheet .wed-sheet-title-block { padding-right: 34px; }
    #child-sheet .wed-sheet-header-media { position: absolute; inset: 0 0 0 auto; width: 47%; height: 100%; border-radius: 0; opacity: .25; box-shadow: none; }
    #child-sheet .wed-sheet-header-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#071224,transparent); }
    #child-sheet .wed-hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem) !important; }
    #child-sheet .wed-reveal-line { height: 44px; }
    #child-sheet .wed-sheet-summary { font-size: .85rem; margin-top: 8px !important; }
    #child-sheet #sheet-close { top: 12px; right: 12px; }
    #child-sheet .wed-carousel-card { width: min(78vw, 370px) !important; aspect-ratio: 1.12 / 1; }
    #child-sheet .wed-sheet-arrow { top: 58%; }
}

#planet-stats {
    max-height: var(--wed-chrome-height, 420px);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: max-height 0.58s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease, transform 0.46s cubic-bezier(0.19, 1, 0.22, 1), margin 0.46s cubic-bezier(0.19, 1, 0.22, 1), padding 0.46s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    overflow-anchor: none;
}

#hero-shell.wed-home-chrome-hidden,
#planet-stats.wed-home-chrome-hidden {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    transform: translate3d(0, -14px, 0);
}

/* =========================================
   6. STATS CARDS
   ========================================= */
.stat-card {
    isolation: isolate;
    transition: transform 0.35s var(--wed-ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.stat-card-body {
    gap: clamp(0.72rem, 1.1vw, 1.12rem);
}
.stat-card-number {
    row-gap: 0.2rem;
    column-gap: 0.12rem;
}
.stat-prefix,
.stat-suffix {
    flex: 0 0 auto;
    line-height: 1;
}
.stat-info {
    max-width: 28ch;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.5), 0 16px 30px -24px rgba(227,123,68,0.65);
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-card .wed-video,
.stat-card > img {
    filter: saturate(0.95) contrast(1.02);
}
@media (max-width: 768px) {
    .stat-card { min-height: 140px; padding: 1rem; }
    .stat-counter { font-size: 2rem; white-space: nowrap !important; } 
}

/* =========================================
   7. GRID & CARDS
   ========================================= */
#bento-grid { 
    opacity: 1; min-height: 200px; width: 100%; 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; 
    grid-auto-rows: 200px; grid-auto-flow: dense; 
    transition: opacity 0.2s ease;
    overflow-anchor: none;
}
.span-1x1 { grid-column: span 1; grid-row: span 1; }
.span-1x2 { grid-column: span 1; grid-row: span 2; }
.span-1x3 { grid-column: span 1; grid-row: span 3; }
.span-2x1 { grid-column: span 2; grid-row: span 1; }
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x3 { grid-column: span 2; grid-row: span 3; }
.span-3x1 { grid-column: span 2; grid-row: span 1; } 
.span-3x2 { grid-column: span 2; grid-row: span 2; }
.span-3x3 { grid-column: span 2; grid-row: span 3; }

@media (max-width: 640px) { 
    #bento-grid { grid-template-columns: 1fr; } 
    .span-1x2, .span-1x3, .span-2x1, .span-2x2, .span-2x3, .span-3x1, .span-3x2, .span-3x3 {
        grid-column: span 1; grid-row: span 1;
    }
}
@media (min-width: 768px) { 
    #bento-grid { grid-template-columns: repeat(3, 1fr); } 
    .span-2x1 { grid-column: span 2; }
    .span-2x2 { grid-column: span 2; grid-row: span 2; }
    .span-3x1 { grid-column: span 3; }
    .span-3x2 { grid-column: span 3; grid-row: span 2; }
}
@media (min-width: 1024px) { 
    #bento-grid { grid-template-columns: repeat(4, 1fr); } 
}

.wed-card, .card { 
    position: relative; width: 100%; height: 100%; 
    background: var(--card-bg); 
    border-radius: 18px !important; 
    overflow: hidden !important; cursor: pointer; display: block; 
    text-decoration: none;
    --wed-card-lift: 0px;
    --wed-card-tilt-x: 0deg;
    --wed-card-tilt-y: 0deg;
    --wed-card-glow-x: 50%;
    --wed-card-glow-y: 50%;
    --wed-card-media-x: 0px;
    --wed-card-media-y: 0px;
    --wed-card-media-scale: 1.018;
    --wed-card-sort-x: 0px;
    --wed-card-sort-y: 0px;
    --wed-card-sort-scale: 1;
    transform: translate3d(var(--wed-card-sort-x), var(--wed-card-sort-y), 0) scale(var(--wed-card-sort-scale)) perspective(900px) rotateX(var(--wed-card-tilt-y)) rotateY(var(--wed-card-tilt-x)) translate3d(0, var(--wed-card-lift), 0);
    transform-style: preserve-3d;
    will-change: transform;
    contain: paint;
    isolation: isolate;
    backface-visibility: hidden;
    clip-path: inset(0 round 18px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transition: box-shadow 0.42s ease, filter 0.35s ease;
    margin: 7px !important; 
    width: calc(100% - 14px) !important; 
    height: calc(100% - 14px) !important;
}
.wed-card:not(.is-kinetic-active),
.card:not(.is-kinetic-active) {
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease, filter 0.35s ease;
}
.wed-card.is-grid-sorting,
.card.is-grid-sorting {
    transition: box-shadow 0.35s ease, filter 0.35s ease !important;
}
.wed-card::before,
.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 8;
    background: radial-gradient(circle at var(--wed-card-glow-x) var(--wed-card-glow-y), rgba(255,255,255,0.32), rgba(255,255,255,0.08) 18%, rgba(227,123,68,0.04) 38%, transparent 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}
.wed-card::after,
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 9;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.wed-card:hover,
.card:hover {
    --wed-card-media-scale: 1.08;
    box-shadow: 0 24px 55px -28px rgba(0,0,0,0.65), 0 20px 35px -30px rgba(227,123,68,0.8);
}
.wed-card:hover::before,
.wed-card:hover::after,
.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.thumb {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
    line-height: 0; margin: 0; padding: 0;
    border-radius: inherit;
    overflow: hidden;
}
.card > .absolute.inset-0,
.wed-card > .absolute.inset-0 {
    border-radius: inherit;
    overflow: hidden;
}
.thumb img, .thumb video {
    width: 100% !important; height: 100% !important; 
    border-radius: inherit;
    object-fit: cover !important; display: block !important; 
    transform: translate3d(var(--wed-card-media-x), var(--wed-card-media-y), 0) scale(var(--wed-card-media-scale));
    transition: transform 0.82s var(--wed-ease-out), filter 0.45s ease; margin: 0 !important; padding: 0 !important;
}
.card:hover .thumb img, .card:hover .thumb video { filter: saturate(1.08) contrast(1.02); }

.card h3 {
    position: relative; z-index: 10; margin: 0; color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.25s ease;
}
.card:hover h3 { transform: translateY(-4px); }

.wed-custom-tab-content {
    display: none;
    opacity: 1;
    visibility: visible;
}
.wed-custom-tab-content.active-tab {
    display: block !important;
    opacity: 1;
    visibility: visible;
}
.wed-grid-wrapper main:has(.wed-custom-tab-content.active-tab) #bento-grid {
    display: none !important;
}
.wed-custom-tab-content.is-shortcode-sorting {
    overflow: visible;
}
.wed-custom-tab-content .sdg-card.sdg-item {
    animation: none !important;
    view-transition-name: none !important;
}
.wed-custom-tab-content.is-shortcode-sorting .sdg-card {
    animation: none !important;
    transition: box-shadow 0.35s ease, filter 0.35s ease !important;
}
.wed-sdg-filter-ghost {
    animation: none !important;
    view-transition-name: none !important;
    box-sizing: border-box;
    contain: layout paint;
}
.wed-grid-filter-ghost {
    animation: none !important;
    box-sizing: border-box;
    contain: layout paint;
    border-radius: 18px !important;
    overflow: hidden !important;
}
.wed-custom-tab-content .sdg-filter-btn,
.wed-custom-tab-content .sdg-search-container,
.wed-custom-tab-content .sdg-filter-label,
.wed-custom-tab-content .sdg-title {
    backface-visibility: hidden;
    transform-origin: center center;
}
.wed-custom-tab-content.is-sdg-filter-deck-entering .sdg-filter-btn,
.wed-custom-tab-content.is-sdg-filter-deck-entering .sdg-filter-btn img,
.wed-custom-tab-content.is-sdg-filter-deck-entering .sdg-search-container,
.wed-custom-tab-content.is-sdg-filter-deck-entering .sdg-filter-label,
.wed-custom-tab-content.is-sdg-filter-deck-entering .sdg-title {
    will-change: transform;
}
.wed-sdg-filter-deck-ghost {
    animation: none !important;
    view-transition-name: none !important;
    box-sizing: border-box;
    pointer-events: none !important;
    backface-visibility: hidden;
}
.wed-shortcode-anim-target {
    --wed-shortcode-sort-x: 0px;
    --wed-shortcode-sort-y: 0px;
    --wed-shortcode-sort-scale: 1;
    transform: translate3d(var(--wed-shortcode-sort-x), var(--wed-shortcode-sort-y), 0) scale(var(--wed-shortcode-sort-scale)) !important;
    transform-origin: center center;
    transition: none !important;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .wed-card,
    .card,
    .thumb img,
    .thumb video,
    .stat-card {
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    #bento-grid {
        grid-auto-rows: minmax(232px, auto);
    }
    .wed-card,
    .card {
        border-radius: 20px !important;
        clip-path: inset(0 round 20px);
        margin: 6px !important;
        width: calc(100% - 12px) !important;
        height: calc(100% - 12px) !important;
    }
    .card h3 {
        font-size: clamp(1rem, 4.2vw, 1.2rem);
        line-height: 1.12;
    }
}

/* =========================================
   8. MOBILE FILTER OVERLAY
   ========================================= */
#wed-filter-overlay { transition: visibility 0s linear 0.38s; }
#wed-filter-overlay.wed-open { opacity: 1 !important; visibility: visible !important; transition-delay: 0s; }
.wed-menu-item { 
    font-size: 1.75rem; font-weight: 700; color: #9CA3AF; margin: 0.5rem 0; 
    cursor: pointer; transition: color 0.2s ease; 
}
@media(min-width: 768px) { .wed-menu-item { font-size: 3rem; } }
.wed-menu-item.active { color: var(--text); transform: scale(1.05); }
.wed-menu-item:hover { color: var(--wed-brand-orange); }

/* =========================================
   9. DETAILS SHEET & CAROUSEL (FIXED POSITION)
   ========================================= */
#sheet-backdrop {
    background: radial-gradient(circle at 50% 12%, rgba(227,123,68,0.18), transparent 34%), rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(12px) saturate(0.92);
    -webkit-backdrop-filter: blur(12px) saturate(0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.36s ease, visibility 0.36s ease;
}
#sheet-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
}

#child-sheet { 
    --sheet-y: 112vh;
    --sheet-scale: 0.965;
    --sheet-max-width: 1500px;
    --sheet-visible-cards: 4;
    --sheet-edge: clamp(1.15rem, 3.2vw, 3.1rem);
    --sheet-gap: clamp(0.9rem, 1.6vw, 1.35rem);
    display: none;
    overflow: hidden;
    max-height: min(86vh, 780px);
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(246,248,251,0.94)) !important;
    backdrop-filter: blur(26px) saturate(1.12);
    -webkit-backdrop-filter: blur(26px) saturate(1.12);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 28px 28px 0 0; 
    box-shadow: 0 36px 96px -44px rgba(2, 6, 23, 0.78), 0 2px 0 rgba(255,255,255,0.72) inset; 
    color: #0f172a; 
    z-index: 1000;
    opacity: 1;
    transform: translate3d(0, var(--sheet-y), 0) scale(var(--sheet-scale)); 
    transform-origin: center bottom;
    will-change: transform;
    transition: transform 0.72s cubic-bezier(0.19, 1, 0.22, 1);
}
#child-sheet.is-open {
    --sheet-y: 0vh;
    --sheet-scale: 1;
}
@media (min-width: 768px) { 
    #child-sheet { 
        width: min(94vw, var(--sheet-max-width));
        max-width: var(--sheet-max-width); 
        left: 50%;
        right: auto;
        bottom: clamp(24px, 4vh, 52px); 
        border-radius: 28px;
        transform: translateX(-50%) translate3d(0, var(--sheet-y), 0) scale(var(--sheet-scale)); 
    } 
}

/* Colors for Sheet */
#child-sheet .wed-title-wrapper {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr);
    gap: clamp(1rem, 1.8vw, 1.45rem);
    align-items: center;
}
#child-sheet .wed-text-mask {
    overflow: visible;
}
#child-sheet .wed-hero-title {
    margin: 0;
    color: #0f172a !important;
    font-size: clamp(2rem, 3.5vw, 4.4rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 0.96 !important;
    text-transform: none !important;
    text-wrap: balance;
}
#child-sheet .wed-sheet-title-accent {
    color: var(--wed-brand-orange) !important;
}
#child-sheet .wed-reveal-line {
    width: 6px;
    height: clamp(58px, 6.2vw, 92px);
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #111827, var(--wed-brand-orange)) !important;
}
.wed-sheet-open {
    overflow: hidden;
}
.wed-sheet-open #wed-floating-dock {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(18px) scale(0.98);
}
.wed-sheet-handle {
    width: 54px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16) !important;
}
.wed-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.35rem, 2.5vw, 2.4rem) var(--sheet-edge) clamp(0.95rem, 1.6vw, 1.45rem);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.wed-sheet-title-block {
    min-width: 0;
    max-width: 980px;
}
.wed-sheet-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0 0 0.58rem calc(6px + clamp(1rem, 1.8vw, 1.45rem));
    padding: 0.2rem 0.64rem;
    border: 1px solid rgba(227, 123, 68, 0.22);
    border-radius: 999px;
    background: rgba(227, 123, 68, 0.08);
    color: rgba(15, 23, 42, 0.45);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
}
.wed-sheet-summary {
    max-width: 740px;
    margin: 0.72rem 0 0 calc(6px + clamp(1rem, 1.8vw, 1.45rem));
    color: rgba(15, 23, 42, 0.62);
    font-size: clamp(0.95rem, 0.35vw + 0.86rem, 1.12rem);
    font-weight: 560;
    line-height: 1.58;
}
#sheet-close {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    background: rgba(241,245,249,0.86);
    color: #111827;
    box-shadow: 0 14px 30px -22px rgba(2, 6, 23, 0.55);
    transition: transform 0.28s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.22s ease, box-shadow 0.22s ease;
}
#sheet-close:hover {
    transform: scale(1.06) rotate(4deg);
    background: #fff;
    box-shadow: 0 18px 36px -24px rgba(2, 6, 23, 0.65);
}
.wed-sheet-carousel-shell {
    position: relative;
    padding: clamp(1rem, 1.55vw, 1.45rem) 0 clamp(2.45rem, 3.25vw, 3.45rem);
    background: linear-gradient(180deg, rgba(248,250,252,0.72), rgba(255,255,255,0.18));
}
.wed-sheet-carousel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 var(--sheet-edge) clamp(0.85rem, 1.1vw, 1rem);
    color: #111827;
}
.wed-sheet-carousel-heading span:first-child {
    font-size: clamp(1rem, 0.6vw + 0.92rem, 1.36rem);
    font-weight: 850;
    letter-spacing: 0 !important;
}
#sheet-count-pill {
    flex: 0 0 auto;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    color: rgba(15,23,42,0.56);
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 12px 28px -22px rgba(2,6,23,0.5);
}
#sheet-track {
    display: flex;
    gap: var(--sheet-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sheet-edge);
    padding: 0 var(--sheet-edge) 1.15rem;
    scroll-behavior: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: auto;
    cursor: grab;
    user-select: none;
}
#sheet-track.is-looping {
    scroll-snap-type: x proximity;
}
#sheet-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}
#sheet-track.is-dragging .wed-carousel-card {
    pointer-events: none;
}
#sheet-track::-webkit-scrollbar {
    display: none;
}
.wed-sheet-carousel-shell::before,
.wed-sheet-carousel-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 3.2rem;
    z-index: 12;
    width: clamp(2.4rem, 7vw, 7rem);
    pointer-events: none;
}
.wed-sheet-carousel-shell::before {
    left: 0;
    background: linear-gradient(to right, rgba(248,250,252,0.98), rgba(248,250,252,0));
}
.wed-sheet-carousel-shell::after {
    right: 0;
    background: linear-gradient(to left, rgba(248,250,252,0.98), rgba(248,250,252,0));
}

.wed-carousel-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(260px, calc((94vw - (var(--sheet-edge) * 2) - (var(--sheet-gap) * (var(--sheet-visible-cards) - 1))) / var(--sheet-visible-cards)), 410px);
    aspect-ratio: 1.36 / 1;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #020617;
    cursor: pointer;
    text-decoration: none;
    display: block;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    isolation: isolate;
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 18px 44px -30px rgba(2, 6, 23, 0.72);
    transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.45s ease, filter 0.35s ease;
    -webkit-user-drag: none;
    clip-path: inset(0 round 22px);
}
@media (min-width: 768px) {
    .wed-carousel-card {
        width: clamp(260px, calc((min(94vw, var(--sheet-max-width)) - (var(--sheet-edge) * 2) - (var(--sheet-gap) * (var(--sheet-visible-cards) - 1))) / var(--sheet-visible-cards)), 410px);
    }
}

.wed-carousel-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) brightness(0.82);
    transform: scale(1.015);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), filter 0.45s ease;
    pointer-events: none;
}
.wed-carousel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(2,6,23,0.05), rgba(2,6,23,0.28) 42%, rgba(2,6,23,0.88));
    pointer-events: none;
}
.wed-carousel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}
.wed-carousel-index {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    min-width: 48px;
    padding: 0.34rem 0.55rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(2,6,23,0.28);
    color: rgba(255,255,255,0.92);
    font-size: 0.72rem;
    font-weight: 850;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.wed-carousel-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.018);
    box-shadow: 0 28px 64px -30px rgba(2, 6, 23, 0.82), 0 18px 34px -30px rgba(227,123,68,0.72);
}
.wed-carousel-card:hover img {
    transform: scale(1.085);
    filter: saturate(1.05) brightness(0.96);
}
.wed-carousel-card:hover::after {
    opacity: 1;
}
.wed-carousel-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: clamp(1.1rem, 2vw, 1.55rem);
    color: #fff;
    transform: translateY(0);
    transition: transform 0.42s cubic-bezier(0.19, 1, 0.22, 1);
}
.wed-carousel-card:hover .wed-carousel-card-content {
    transform: translateY(-4px);
}
.wed-carousel-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: min(100%, 18ch);
    min-height: 24px;
    margin-bottom: 0.62rem;
    padding: 0.24rem 0.58rem 0.22rem;
    overflow: hidden;
    border: 1px solid rgba(227,123,68, 0.38);
    border-radius: 999px;
    background: rgba(227,123,68, 0.14);
    color: rgba(255, 226, 204, 0.96) !important;
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.06em !important;
    text-overflow: ellipsis;
    text-transform: uppercase;
    text-shadow: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
body.elementor-kit-8 .wed-carousel-kicker {
    letter-spacing: 0.06em !important;
}
.wed-carousel-card h4 {
    color: white !important;
    position: relative;
    z-index: 10;
    margin: 0;
    font-size: clamp(1.05rem, 0.45vw + 0.9rem, 1.25rem);
    font-weight: 850;
    line-height: 1.12;
    text-shadow: 0 2px 16px rgba(0,0,0,0.72);
}
.wed-carousel-empty {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15,23,42,0.54);
    font-weight: 700;
}

.wed-sheet-arrow {
    position: absolute;
    top: 47%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.88);
    color: #0f172a;
    box-shadow: 0 18px 38px -24px rgba(2,6,23,0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 40;
    transition: transform 0.28s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.24s ease, background-color 0.22s ease;
}
.wed-sheet-arrow svg { width: 22px; height: 22px; }
.wed-sheet-arrow:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.wed-sheet-arrow:disabled { opacity: 0.28; cursor: default; transform: translateY(-50%) scale(0.96); }
#sheet-track.is-looping ~ .wed-sheet-arrow:disabled,
.wed-sheet-arrow:not(:disabled) { opacity: 1; }
.wed-sheet-arrow.left { left: clamp(0.75rem, 2vw, 1.6rem); }
.wed-sheet-arrow.right { right: clamp(0.75rem, 2vw, 1.6rem); }
.wed-sheet-progress {
    position: absolute;
    left: var(--sheet-edge);
    right: var(--sheet-edge);
    bottom: clamp(0.9rem, 1.8vw, 1.45rem);
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15,23,42,0.08);
}
#sheet-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111827, var(--wed-brand-orange));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.12s linear;
}

@media (max-width: 767px) {
    #child-sheet {
        --sheet-edge: 1rem;
        --sheet-gap: 0.9rem;
        --sheet-visible-cards: 1;
        max-height: 88dvh;
    }
    .wed-sheet-header {
        padding: 1rem 1rem 0.85rem;
    }
    #child-sheet .wed-title-wrapper {
        grid-template-columns: 5px minmax(0, 1fr);
        gap: 0.85rem;
    }
    #child-sheet .wed-hero-title {
        font-size: clamp(1.8rem, 8vw, 2.7rem) !important;
        line-height: 1 !important;
    }
    #child-sheet .wed-reveal-line {
        width: 5px;
        height: 46px;
    }
    .wed-sheet-kicker,
    .wed-sheet-summary {
        margin-left: calc(5px + 0.85rem);
    }
    .wed-sheet-summary {
        font-size: 0.94rem;
        line-height: 1.48;
    }
    #sheet-close {
        width: 42px;
        height: 42px;
    }
    .wed-sheet-carousel-heading {
        padding-inline: 1rem;
    }
    .wed-sheet-arrow {
        display: none;
    }
    #sheet-track {
        scroll-padding-inline: 1rem;
        padding-inline: 1rem;
    }
    .wed-carousel-card {
        width: calc(100vw - 2rem);
        max-width: none;
        aspect-ratio: 1.04 / 1;
        scroll-snap-align: center;
    }
    .wed-sheet-carousel-shell::before,
    .wed-sheet-carousel-shell::after {
        display: none;
    }
}

.wed-lightbox-overlay { background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); }

/* =========================================
   10. UTILITIES
   ========================================= */
.hidden { display: none !important; }
.block { display: block !important; }

/* =========================================
   11. MOBILE APP POLISH PASS
   ========================================= */
@media (max-width: 767px) {
    :root {
        --wed-mobile-gutter: clamp(0.9rem, 4vw, 1.15rem);
        --wed-mobile-dock-space: calc(6.4rem + env(safe-area-inset-bottom, 0px));
    }

    html {
        scroll-padding-top: calc(4.4rem + env(safe-area-inset-top, 0px));
        scroll-padding-bottom: var(--wed-mobile-dock-space);
    }

    .wed-grid-wrapper {
        padding-bottom: var(--wed-mobile-dock-space);
        background:
            radial-gradient(circle at 50% -8%, rgba(227,123,68,0.08), transparent 34%),
            transparent;
    }

    .wed-grid-wrapper::before {
        opacity: 0.028;
        background-size: 8px 8px, 100% 100%;
    }

    .wed-tabs-mobile {
        top: calc(0.65rem + env(safe-area-inset-top, 0px)) !important;
        z-index: 9998 !important;
        padding-inline: var(--wed-mobile-gutter) !important;
        margin-bottom: 1rem !important;
    }

    #wed-filter-trigger {
        width: min(100%, 23.5rem) !important;
        min-height: 3.45rem;
        margin-inline: auto;
        padding: 0.52rem 0.7rem 0.52rem 0.95rem !important;
        border-radius: 1.35rem !important;
        border-color: rgba(15,23,42,0.08) !important;
        background: rgba(255,255,255,0.82) !important;
        box-shadow: 0 16px 42px -28px rgba(15,23,42,0.6), inset 0 1px 0 rgba(255,255,255,0.84) !important;
        -webkit-backdrop-filter: blur(18px) saturate(1.08);
        backdrop-filter: blur(18px) saturate(1.08);
    }

    #wed-filter-trigger .animate-pulse {
        animation: none !important;
        opacity: 0.9;
    }

    #wed-filter-trigger span:first-of-type {
        color: rgba(15,23,42,0.5) !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.08em !important;
    }

    #wed-mobile-label {
        max-width: 11rem;
        overflow: hidden;
        color: #111827 !important;
        font-size: clamp(0.95rem, 4.1vw, 1.14rem) !important;
        line-height: 1 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wed-navbar-logo {
        max-height: 4.2rem;
        max-width: min(100%, 21.5rem);
    }

    .wed-navbar-logo-link {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0 auto 0.4rem;
    }

    #hero-shell {
        height: clamp(25rem, 60dvh, 31rem);
        margin: 0 var(--wed-mobile-gutter) 1rem !important;
        max-height: none;
    }

    #hero {
        border-radius: 1.35rem;
        box-shadow: 0 28px 56px -42px rgba(2,6,23,0.75);
        transform: translateZ(0);
    }

    #hero-content {
        padding: 1.1rem !important;
        gap: 0.95rem;
    }

    .hero-headline {
        max-width: min(100%, 18rem);
        margin-inline: auto !important;
        font-size: clamp(2rem, 9.2vw, 2.85rem) !important;
        line-height: 0.93 !important;
        text-wrap: balance;
    }

    .hero-cta-row {
        width: min(100%, 19.5rem);
        margin-inline: auto;
        gap: 0.72rem !important;
    }

    .hero-cta-row .btn-hero,
    .btn-hero {
        width: 100%;
        min-height: 3.2rem !important;
        padding-inline: 1rem !important;
        border-radius: 999px !important;
        font-size: clamp(0.9rem, 3.6vw, 1rem) !important;
    }

    #planet-stats {
        padding-inline: var(--wed-mobile-gutter);
        margin-bottom: 0.8rem;
    }

    .wed-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.78rem !important;
    }

    .stat-card {
        min-height: auto;
        padding: 0.95rem 0.95rem 1rem;
        border-radius: 1.28rem !important;
        box-shadow: 0 18px 42px -32px rgba(2,6,23,0.72);
    }

    .stat-card-body {
        gap: 0.78rem;
    }

    .stat-card-top {
        margin-left: 0 !important;
        max-width: 100% !important;
        text-align: left !important;
        font-size: 0.62rem !important;
        line-height: 1.3 !important;
        letter-spacing: 0.08em !important;
        color: rgba(255,255,255,0.88) !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .stat-card-number {
        margin: 0 !important;
        align-items: flex-end;
        min-height: auto;
    }

    .stat-prefix {
        margin-right: 0.16rem !important;
        font-size: clamp(1rem, 4.3vw, 1.24rem) !important;
        align-self: flex-end;
    }

    .stat-counter {
        font-size: clamp(2.15rem, 9.3vw, 2.9rem) !important;
        line-height: 0.88 !important;
        letter-spacing: -0.04em !important;
        white-space: nowrap !important;
    }

    .stat-suffix {
        margin-left: 0.14rem !important;
        font-size: clamp(1rem, 4.6vw, 1.34rem) !important;
        align-self: flex-end;
    }

    .stat-card-footer {
        padding-top: 0.68rem !important;
    }

    .stat-info {
        max-width: none;
        font-size: 0.74rem !important;
        line-height: 1.34 !important;
        color: rgba(229,231,235,0.94) !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    #bento-grid {
        grid-auto-rows: minmax(15.5rem, auto);
        gap: 0.12rem;
        padding-inline: calc(var(--wed-mobile-gutter) - 0.2rem);
    }

    .wed-card,
    .card {
        margin: 0.38rem !important;
        width: calc(100% - 0.76rem) !important;
        height: calc(100% - 0.76rem) !important;
        border-radius: 1.35rem !important;
        clip-path: inset(0 round 1.35rem);
        box-shadow: 0 18px 40px -34px rgba(2,6,23,0.78);
    }

    .card h3 {
        font-size: clamp(1.15rem, 5.4vw, 1.58rem);
        line-height: 1.04;
    }

    .card .absolute.bottom-0.left-0 {
        padding: 1.15rem !important;
    }

    .wed-carousel-trigger {
        top: 0.72rem !important;
        right: 0.72rem !important;
        width: 2.5rem;
        height: 2.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(2,6,23,0.38) !important;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .wed-card.is-touch-pressed,
    .card.is-touch-pressed {
        --wed-card-sort-scale: 0.982;
        filter: brightness(0.94) saturate(0.96);
    }

    #wed-filter-overlay {
        z-index: 2147483000 !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        background: rgba(15,23,42,0.44) !important;
        -webkit-backdrop-filter: blur(18px) saturate(0.92);
        backdrop-filter: blur(18px) saturate(0.92);
    }

    #wed-filter-list {
        width: 100% !important;
        height: auto !important;
        max-height: min(78dvh, 42rem);
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 4.8rem var(--wed-mobile-gutter) calc(1.2rem + env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto;
        border-radius: 1.75rem 1.75rem 0 0;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)),
            #fff;
        box-shadow: 0 -30px 80px -48px rgba(2,6,23,0.82);
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch;
    }

    #wed-filter-list::before {
        content: "";
        position: absolute;
        top: 0.75rem;
        left: 50%;
        width: 3.2rem;
        height: 0.28rem;
        border-radius: 999px;
        background: rgba(15,23,42,0.16);
        transform: translateX(-50%);
    }

    #wed-filter-close {
        top: auto !important;
        right: var(--wed-mobile-gutter) !important;
        bottom: calc(min(78dvh, 42rem) - 4.15rem) !important;
        width: 2.95rem;
        height: 2.95rem;
        padding: 0 !important;
        border: 1px solid rgba(15,23,42,0.06);
        background: rgba(241,245,249,0.9) !important;
        box-shadow: 0 14px 34px -24px rgba(2,6,23,0.65);
    }

    .wed-menu-item {
        width: 100%;
        min-height: 3.7rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0.15rem 0;
        padding: 0.75rem 1rem;
        border: 1px solid transparent;
        border-radius: 1.1rem;
        color: rgba(15,23,42,0.6);
        font-size: clamp(1rem, 4.5vw, 1.22rem);
        line-height: 1.1;
        text-align: left;
        transform: none !important;
    }

    .wed-menu-item::after {
        content: "";
        width: 0.58rem;
        height: 0.58rem;
        border-radius: 999px;
        background: currentColor;
        opacity: 0;
        transform: scale(0.7);
        transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .wed-menu-item.active {
        border-color: rgba(227,123,68,0.18);
        background: rgba(227,123,68,0.1);
        color: #111827;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
    }

    .wed-menu-item.active::after {
        opacity: 1;
        transform: scale(1);
        color: var(--wed-brand-orange);
    }

    #child-sheet {
        width: 100% !important;
        max-height: min(84dvh, 44rem);
        border-radius: 1.65rem 1.65rem 0 0;
    }

    .wed-sheet-header {
        gap: 0.85rem;
        position: sticky;
        top: 0;
        z-index: 20;
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }

    .wed-sheet-carousel-shell {
        padding-bottom: calc(2.4rem + env(safe-area-inset-bottom, 0px));
    }

    #sheet-track {
        touch-action: pan-x pinch-zoom;
    }

    body.wed-filter-menu-open #wed-floating-dock {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-50%) translateY(1rem) scale(0.96) !important;
    }

    .wed-tab-confirmation-ribbon {
        top: calc(0.9rem + env(safe-area-inset-top, 0px));
        min-height: 40px;
        max-width: calc(100vw - (var(--wed-mobile-gutter) * 2));
        padding: 0.72rem 0.95rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 479px) {
    .wed-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        min-height: 9.4rem;
    }

    .stat-counter {
        font-size: clamp(2.05rem, 11vw, 2.7rem) !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .pill:hover,
    .stat-card:hover,
    .wed-card:hover,
    .card:hover,
    .wed-carousel-card:hover {
        transform: none !important;
    }

    .wed-card:hover,
    .card:hover {
        --wed-card-media-scale: 1.018;
        box-shadow: 0 18px 40px -34px rgba(2,6,23,0.78);
    }

    .wed-card:hover::before,
    .wed-card:hover::after,
    .card:hover::before,
    .card:hover::after {
        opacity: 0;
    }

    .card:hover h3,
    .wed-carousel-card:hover .wed-carousel-card-content {
        transform: none;
    }

    .card:hover .thumb img,
    .card:hover .thumb video,
    .wed-carousel-card:hover img {
        filter: none;
        transform: scale(var(--wed-card-media-scale, 1.018));
    }
}

/* Final production polish */
body:not(.wp-admin) #wpadminbar {
    transform: translateY(-100%);
    transition: transform .2s ease;
}
body:not(.wp-admin) #wpadminbar:focus-within,
body:not(.wp-admin) #wpadminbar:hover {
    transform: translateY(0);
}
body.wed-menu-lock {
    overflow: hidden !important;
}
.wed-grid-wrapper {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}
.stat-counter {
    opacity: 1;
}
.stat-counter.is-ready,
.stat-counter[data-final="TBC"] {
    opacity: 1;
}
.stat-counter[data-final="TBC"] {
    font-size: clamp(1.65rem, 9vw, 3.25rem) !important;
    letter-spacing: 0 !important;
}
.wed-carousel-card[aria-hidden="true"] {
    pointer-events: none;
}
/* =========================================
   11. LOCAL UTILITY COVERAGE
   Replaces the production Tailwind CDN for the utilities used by this plugin.
   ========================================= */
.wed-grid-wrapper .bg-transparent { background-color: transparent !important; }
.wed-grid-wrapper .text-gray-900 { color: #111827 !important; }
.wed-grid-wrapper .text-gray-800 { color: #1f2937 !important; }
.wed-grid-wrapper .text-gray-700 { color: #374151 !important; }
.wed-grid-wrapper .text-gray-600 { color: #4b5563 !important; }
.wed-grid-wrapper .text-gray-500 { color: #6b7280 !important; }
.wed-grid-wrapper .text-gray-400 { color: #9ca3af !important; }
.wed-grid-wrapper .text-gray-200 { color: #e5e7eb !important; }
.wed-grid-wrapper .text-white { color: #fff !important; }
.wed-grid-wrapper .text-black { color: #000 !important; }
.wed-grid-wrapper .text-orange-500 { color: #f97316 !important; }
.wed-grid-wrapper .bg-white { background-color: #fff !important; }
.wed-grid-wrapper .bg-gray-100 { background-color: #f3f4f6 !important; }
.wed-grid-wrapper .bg-gray-200 { background-color: #e5e7eb !important; }
.wed-grid-wrapper .bg-gray-900 { background-color: #111827 !important; }
.wed-grid-wrapper .bg-black { background-color: #000 !important; }
.wed-grid-wrapper .bg-white\/95 { background-color: rgba(255,255,255,.95) !important; }
.wed-grid-wrapper .bg-white\/10 { background-color: rgba(255,255,255,.1) !important; }
.wed-grid-wrapper .bg-black\/20 { background-color: rgba(0,0,0,.2) !important; }
.wed-grid-wrapper .bg-black\/30 { background-color: rgba(0,0,0,.3) !important; }
.wed-grid-wrapper .bg-black\/40 { background-color: rgba(0,0,0,.4) !important; }
.wed-grid-wrapper .bg-black\/75 { background-color: rgba(0,0,0,.75) !important; }
.wed-grid-wrapper .bg-black\/90 { background-color: rgba(0,0,0,.9) !important; }
.wed-grid-wrapper .border { border-width: 1px !important; border-style: solid !important; }
.wed-grid-wrapper .border-t { border-top-width: 1px !important; border-top-style: solid !important; }
.wed-grid-wrapper .border-gray-200 { border-color: #e5e7eb !important; }
.wed-grid-wrapper .border-gray-700 { border-color: #374151 !important; }
.wed-grid-wrapper .border-gray-800 { border-color: #1f2937 !important; }
.wed-grid-wrapper .border-white\/10 { border-color: rgba(255,255,255,.1) !important; }
.wed-grid-wrapper .border-white\/20 { border-color: rgba(255,255,255,.2) !important; }
.wed-grid-wrapper .border-white\/30 { border-color: rgba(255,255,255,.3) !important; }
.wed-grid-wrapper .rounded-full { border-radius: 9999px !important; }
.wed-grid-wrapper .rounded-xl { border-radius: 12px !important; }
.wed-grid-wrapper .rounded-2xl { border-radius: 16px !important; }
.wed-grid-wrapper .overflow-hidden { overflow: hidden !important; }
.wed-grid-wrapper .overflow-visible { overflow: visible !important; }
.wed-grid-wrapper .overflow-x-auto { overflow-x: auto !important; }
.wed-grid-wrapper .relative { position: relative !important; }
.wed-grid-wrapper .absolute { position: absolute !important; }
.wed-grid-wrapper .fixed { position: fixed !important; }
.wed-grid-wrapper .sticky { position: sticky !important; }
.wed-grid-wrapper .inset-0 { inset: 0 !important; }
.wed-grid-wrapper .top-3 { top: .75rem !important; }
.wed-grid-wrapper .top-4 { top: 1rem !important; }
.wed-grid-wrapper .top-6 { top: 1.5rem !important; }
.wed-grid-wrapper .right-3 { right: .75rem !important; }
.wed-grid-wrapper .right-6 { right: 1.5rem !important; }
.wed-grid-wrapper .bottom-0 { bottom: 0 !important; }
.wed-grid-wrapper .bottom-8 { bottom: 2rem !important; }
.wed-grid-wrapper .left-0 { left: 0 !important; }
.wed-grid-wrapper .right-0 { right: 0 !important; }
.wed-grid-wrapper .left-3 { left: .75rem !important; }
.wed-grid-wrapper .top-1\/2 { top: 50% !important; }
.wed-grid-wrapper .z-0 { z-index: 0 !important; }
.wed-grid-wrapper .z-10 { z-index: 10 !important; }
.wed-grid-wrapper .z-20 { z-index: 20 !important; }
.wed-grid-wrapper .z-30 { z-index: 30 !important; }
.wed-grid-wrapper .z-40 { z-index: 40 !important; }
.wed-grid-wrapper .z-50 { z-index: 50 !important; }
.wed-grid-wrapper [class~="z-[90]"] { z-index: 90 !important; }
.wed-grid-wrapper [class~="z-[100]"] { z-index: 100 !important; }
.wed-grid-wrapper [class~="z-[999999]"] { z-index: 999999 !important; }
.wed-grid-wrapper [class~="z-[1000000]"] { z-index: 1000000 !important; }
.wed-grid-wrapper [class~="z-[2147483640]"] { z-index: 2147483640 !important; }
.wed-grid-wrapper .pointer-events-none { pointer-events: none !important; }
.wed-grid-wrapper .pointer-events-auto { pointer-events: auto !important; }
.wed-grid-wrapper .flex { display: flex !important; }
.wed-grid-wrapper .grid { display: grid !important; }
.wed-grid-wrapper .hidden { display: none !important; }
.wed-grid-wrapper .block { display: block !important; }
.wed-grid-wrapper .inline-block { display: inline-block !important; }
.wed-grid-wrapper .flex-col { flex-direction: column !important; }
.wed-grid-wrapper .flex-wrap { flex-wrap: wrap !important; }
.wed-grid-wrapper .flex-1 { flex: 1 1 0% !important; }
.wed-grid-wrapper .flex-shrink-0 { flex-shrink: 0 !important; }
.wed-grid-wrapper .items-center { align-items: center !important; }
.wed-grid-wrapper .items-baseline { align-items: baseline !important; }
.wed-grid-wrapper .items-end { align-items: flex-end !important; }
.wed-grid-wrapper .justify-center { justify-content: center !important; }
.wed-grid-wrapper .justify-between { justify-content: space-between !important; }
.wed-grid-wrapper .text-center { text-align: center !important; }
.wed-grid-wrapper .text-left { text-align: left !important; }
.wed-grid-wrapper .text-right { text-align: right !important; }
.wed-grid-wrapper .w-full { width: 100% !important; }
.wed-grid-wrapper .h-full { height: 100% !important; }
.wed-grid-wrapper .h-auto { height: auto !important; }
.wed-grid-wrapper .w-2 { width: .5rem !important; }
.wed-grid-wrapper .h-2 { height: .5rem !important; }
.wed-grid-wrapper .w-4 { width: 1rem !important; }
.wed-grid-wrapper .h-4 { height: 1rem !important; }
.wed-grid-wrapper .w-5 { width: 1.25rem !important; }
.wed-grid-wrapper .h-5 { height: 1.25rem !important; }
.wed-grid-wrapper .w-6 { width: 1.5rem !important; }
.wed-grid-wrapper .h-6 { height: 1.5rem !important; }
.wed-grid-wrapper .w-8 { width: 2rem !important; }
.wed-grid-wrapper .h-8 { height: 2rem !important; }
.wed-grid-wrapper .w-10 { width: 2.5rem !important; }
.wed-grid-wrapper .h-10 { height: 2.5rem !important; }
.wed-grid-wrapper .h-14 { height: 3.5rem !important; }
.wed-grid-wrapper .w-10 { width: 2.5rem !important; }
.wed-grid-wrapper .max-w-full { max-width: 100% !important; }
.wed-grid-wrapper .max-w-2xl { max-width: 42rem !important; }
.wed-grid-wrapper .max-w-4xl { max-width: 56rem !important; }
.wed-grid-wrapper [class~="min-h-[160px]"] { min-height: 160px !important; }
.wed-grid-wrapper [class~="min-h-[600px]"] { min-height: 600px !important; }
.wed-grid-wrapper [class~="min-w-[65px]"] { min-width: 65px !important; }
.wed-grid-wrapper .object-cover { object-fit: cover !important; }
.wed-grid-wrapper .object-center { object-position: center !important; }
.wed-grid-wrapper .m-0 { margin: 0 !important; }
.wed-grid-wrapper .mx-auto { margin-left: auto !important; margin-right: auto !important; }
.wed-grid-wrapper .ml-auto { margin-left: auto !important; }
.wed-grid-wrapper .ml-1 { margin-left: .25rem !important; }
.wed-grid-wrapper .mr-1 { margin-right: .25rem !important; }
.wed-grid-wrapper .mt-1 { margin-top: .25rem !important; }
.wed-grid-wrapper .mt-2 { margin-top: .5rem !important; }
.wed-grid-wrapper .mt-auto { margin-top: auto !important; }
.wed-grid-wrapper .mb-0 { margin-bottom: 0 !important; }
.wed-grid-wrapper .mb-2 { margin-bottom: .5rem !important; }
.wed-grid-wrapper .mb-3 { margin-bottom: .75rem !important; }
.wed-grid-wrapper .mb-6 { margin-bottom: 1.5rem !important; }
.wed-grid-wrapper .my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.wed-grid-wrapper .p-2 { padding: .5rem !important; }
.wed-grid-wrapper .p-4 { padding: 1rem !important; }
.wed-grid-wrapper .p-5 { padding: 1.25rem !important; }
.wed-grid-wrapper .p-8 { padding: 2rem !important; }
.wed-grid-wrapper .px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.wed-grid-wrapper .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.wed-grid-wrapper .px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.wed-grid-wrapper .px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.wed-grid-wrapper .py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.wed-grid-wrapper .py-3 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.wed-grid-wrapper .py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.wed-grid-wrapper [class~="py-2.5"] { padding-top: .625rem !important; padding-bottom: .625rem !important; }
.wed-grid-wrapper .pl-10 { padding-left: 2.5rem !important; }
.wed-grid-wrapper .pr-4 { padding-right: 1rem !important; }
.wed-grid-wrapper .pt-2 { padding-top: .5rem !important; }
.wed-grid-wrapper .pb-8 { padding-bottom: 2rem !important; }
.wed-grid-wrapper .gap-2 { gap: .5rem !important; }
.wed-grid-wrapper .gap-3 { gap: .75rem !important; }
.wed-grid-wrapper .gap-4 { gap: 1rem !important; }
.wed-grid-wrapper .gap-6 { gap: 1.5rem !important; }
.wed-grid-wrapper .gap-8 { gap: 2rem !important; }
.wed-grid-wrapper .shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05) !important; }
.wed-grid-wrapper .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1) !important; }
.wed-grid-wrapper .shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1) !important; }
.wed-grid-wrapper .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25) !important; }
.wed-grid-wrapper .uppercase { text-transform: uppercase !important; }
.wed-grid-wrapper .font-medium { font-weight: 500 !important; }
.wed-grid-wrapper .font-semibold { font-weight: 600 !important; }
.wed-grid-wrapper .font-bold { font-weight: 700 !important; }
.wed-grid-wrapper .font-extrabold { font-weight: 800 !important; }
.wed-grid-wrapper .font-black { font-weight: 900 !important; }
.wed-grid-wrapper .text-xs { font-size: .75rem !important; line-height: 1rem !important; }
.wed-grid-wrapper .text-sm { font-size: .875rem !important; line-height: 1.25rem !important; }
.wed-grid-wrapper .text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.wed-grid-wrapper .text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.wed-grid-wrapper .text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.wed-grid-wrapper .text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.wed-grid-wrapper .text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.wed-grid-wrapper [class~="text-[9px]"] { font-size: 9px !important; line-height: 1.15 !important; }
.wed-grid-wrapper [class~="text-[10px]"] { font-size: 10px !important; line-height: 1.25 !important; }
.wed-grid-wrapper .leading-none { line-height: 1 !important; }
.wed-grid-wrapper .leading-tight { line-height: 1.12 !important; }
.wed-grid-wrapper .leading-relaxed { line-height: 1.625 !important; }
.wed-grid-wrapper .tracking-tight { letter-spacing: 0 !important; }
.wed-grid-wrapper .tracking-tighter { letter-spacing: 0 !important; }
.wed-grid-wrapper .tracking-widest { letter-spacing: .08em !important; }
.wed-grid-wrapper .whitespace-nowrap { white-space: nowrap !important; }
.wed-grid-wrapper .tabular-nums { font-variant-numeric: tabular-nums !important; }
.wed-grid-wrapper .drop-shadow-lg { filter: drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1)) !important; }
.wed-grid-wrapper .opacity-0 { opacity: 0 !important; }
.wed-grid-wrapper .opacity-20 { opacity: .2 !important; }
.wed-grid-wrapper .opacity-90 { opacity: .9 !important; }
.wed-grid-wrapper .opacity-100 { opacity: 1 !important; }
.wed-grid-wrapper .transition-all { transition-property: all !important; transition-duration: .25s !important; }
.wed-grid-wrapper .transition-colors { transition-property: color, background-color, border-color !important; transition-duration: .2s !important; }
.wed-grid-wrapper .transition-opacity { transition-property: opacity !important; transition-duration: .3s !important; }
.wed-grid-wrapper .transition-transform { transition-property: transform !important; transition-duration: .3s !important; }
.wed-grid-wrapper .duration-300 { transition-duration: .3s !important; }
.wed-grid-wrapper .duration-500 { transition-duration: .5s !important; }
.wed-grid-wrapper .duration-700 { transition-duration: .7s !important; }
.wed-grid-wrapper .cursor-pointer { cursor: pointer !important; }
.wed-grid-wrapper .select-none { user-select: none !important; }
.wed-grid-wrapper .touch-manipulation { touch-action: manipulation !important; }
.wed-grid-wrapper .touch-pan-x { touch-action: pan-x !important; }
.wed-grid-wrapper .snap-x { scroll-snap-type: x mandatory !important; }
.wed-grid-wrapper .snap-mandatory { scroll-snap-type: x mandatory !important; }
.wed-grid-wrapper .outline-none { outline: none !important; }
.wed-grid-wrapper .backdrop-blur-md { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }
.wed-grid-wrapper .backdrop-blur-xl { backdrop-filter: blur(24px) !important; -webkit-backdrop-filter: blur(24px) !important; }
.wed-grid-wrapper .backdrop-blur-sm { backdrop-filter: blur(4px) !important; -webkit-backdrop-filter: blur(4px) !important; }
.wed-grid-wrapper .grid-cols-1 { grid-template-columns: repeat(1,minmax(0,1fr)) !important; }
.wed-grid-wrapper .grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
.wed-grid-wrapper .col-span-full { grid-column: 1 / -1 !important; }
.wed-grid-wrapper .auto-rows-\[200px\] { grid-auto-rows: 200px !important; }
.wed-grid-wrapper .-translate-y-1\/2 { transform: translateY(-50%) !important; }
.wed-grid-wrapper .-translate-y-1 { transform: translateY(-.25rem) !important; }
.wed-grid-wrapper .-ml-2 { margin-left: -.5rem !important; }
.wed-grid-wrapper .line-clamp-2 { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden !important; }
.wed-grid-wrapper .bg-\[var\(--wed-accent-color\)\] { background-color: var(--wed-accent-color) !important; }
.wed-grid-wrapper .text-\[var\(--wed-accent-color\)\] { color: var(--wed-accent-color) !important; }
.wed-grid-wrapper .focus\:border-\[var\(--wed-accent-color\)\]:focus { border-color: var(--wed-accent-color) !important; }
.wed-grid-wrapper .hover\:bg-white:hover { background-color: #fff !important; }
.wed-grid-wrapper .hover\:bg-gray-200:hover { background-color: #e5e7eb !important; }
.wed-grid-wrapper .hover\:text-black:hover { color: #000 !important; }
.wed-grid-wrapper .hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1) !important; }
.wed-grid-wrapper .hover\:-translate-y-1:hover { transform: translateY(-.25rem) !important; }
.wed-grid-wrapper .hover\:scale-110:hover { transform: scale(1.1) !important; }
.wed-grid-wrapper .group:hover .group-hover\:scale-110 { transform: scale(1.1) !important; }
.wed-grid-wrapper .group:hover .group-hover\:text-orange-500 { color: #f97316 !important; }
.wed-grid-wrapper .group:hover .group-hover\:text-white { color: #fff !important; }
.wed-grid-wrapper .group:hover .group-hover\:text-\[var\(--wed-accent-color\)\] { color: var(--wed-accent-color) !important; }
.wed-grid-wrapper .group:hover .group-hover\:text-orange-400 { color: #fb923c !important; }
.wed-grid-wrapper .group:hover .group-hover\:scale-110 { transform: scale(1.1) !important; }
@keyframes wedPulse { 50% { opacity: .45; transform: scale(.86); } }
.wed-grid-wrapper .animate-pulse { animation: wedPulse 1.8s cubic-bezier(.4,0,.6,1) infinite; }
.wed-grid-wrapper .bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops, rgba(0,0,0,.9), rgba(0,0,0,.2), transparent)) !important;
}
.wed-grid-wrapper .from-black\/90 { --tw-gradient-from: rgba(0,0,0,.9); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via, rgba(0,0,0,.2)), var(--tw-gradient-to, transparent); }
.wed-grid-wrapper .via-black\/20 { --tw-gradient-via: rgba(0,0,0,.2); --tw-gradient-stops: var(--tw-gradient-from, rgba(0,0,0,.9)), var(--tw-gradient-via), var(--tw-gradient-to, transparent); }
.wed-grid-wrapper .via-black\/40 { --tw-gradient-via: rgba(0,0,0,.4); --tw-gradient-stops: var(--tw-gradient-from, rgba(0,0,0,.9)), var(--tw-gradient-via), var(--tw-gradient-to, transparent); }
.wed-grid-wrapper .to-transparent { --tw-gradient-to: transparent; }

@media (min-width: 640px) {
    .wed-grid-wrapper .sm\:text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
    .wed-grid-wrapper .sm\:gap-6 { gap: 1.5rem !important; }
    .wed-grid-wrapper .sm\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (min-width: 768px) {
    .wed-grid-wrapper .md\:hidden { display: none !important; }
    .wed-grid-wrapper .md\:block { display: block !important; }
    .wed-grid-wrapper .md\:flex-row { flex-direction: row !important; }
    .wed-grid-wrapper .md\:w-auto { width: auto !important; }
    .wed-grid-wrapper .md\:w-64 { width: 16rem !important; }
    .wed-grid-wrapper .md\:max-w-\[80\%\] { max-width: 80% !important; }
    .wed-grid-wrapper .md\:min-h-\[220px\] { min-height: 220px !important; }
    .wed-grid-wrapper .md\:min-w-\[100px\] { min-width: 100px !important; }
    .wed-grid-wrapper .md\:px-0 { padding-left: 0 !important; padding-right: 0 !important; }
    .wed-grid-wrapper .md\:px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .wed-grid-wrapper .md\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .wed-grid-wrapper .md\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
    .wed-grid-wrapper .md\:px-10 { padding-left: 2.5rem !important; padding-right: 2.5rem !important; }
    .wed-grid-wrapper .md\:py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .wed-grid-wrapper .md\:p-4 { padding: 1rem !important; }
    .wed-grid-wrapper .md\:p-6 { padding: 1.5rem !important; }
    .wed-grid-wrapper .md\:pt-4 { padding-top: 1rem !important; }
    .wed-grid-wrapper .md\:mb-6 { margin-bottom: 1.5rem !important; }
    .wed-grid-wrapper .md\:my-6 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
    .wed-grid-wrapper .md\:gap-4 { gap: 1rem !important; }
    .wed-grid-wrapper .md\:gap-6 { gap: 1.5rem !important; }
    .wed-grid-wrapper .md\:gap-8 { gap: 2rem !important; }
    .wed-grid-wrapper .md\:text-xs { font-size: .75rem !important; line-height: 1rem !important; }
    .wed-grid-wrapper .md\:text-sm { font-size: .875rem !important; line-height: 1.25rem !important; }
    .wed-grid-wrapper .md\:text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
    .wed-grid-wrapper .md\:text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
    .wed-grid-wrapper .md\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    .wed-grid-wrapper .md\:text-5xl { font-size: 3rem !important; line-height: 1 !important; }
    .wed-grid-wrapper .md\:text-7xl { font-size: 4.5rem !important; line-height: 1 !important; }
    .wed-grid-wrapper .md\:leading-relaxed { line-height: 1.625 !important; }
    .wed-grid-wrapper .md\:line-clamp-none { display: block !important; overflow: visible !important; -webkit-line-clamp: unset; }
}
@media (min-width: 1024px) {
    .wed-grid-wrapper .lg\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
}

/* =========================================
   12. AWwwards polish layer
   ========================================= */
body:not(.wp-admin) #wpadminbar {
    transform: translateY(-100%);
    transition: transform .2s ease;
}
body:not(.wp-admin) #wpadminbar:focus-within,
body:not(.wp-admin) #wpadminbar:hover {
    transform: translateY(0);
}
body.wed-menu-lock { overflow: hidden !important; }
.wed-grid-wrapper {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}
.wed-grid-wrapper #hero-shell.wed-home-chrome-hidden,
.wed-grid-wrapper #planet-stats.wed-home-chrome-hidden {
    min-height: 0 !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}
/* Keep the home hero and stats in the height transition rather than snapping
   their fixed height to zero on the same frame as a filter change. */
.wed-grid-wrapper #hero-shell.wed-home-chrome-hidden { height: 550px !important; }
@media (max-width: 767px) {
    .wed-grid-wrapper #hero-shell.wed-home-chrome-hidden { height: 420px !important; }
}
.wed-grid-wrapper.wed-filter-animating #bento-grid > .card,
.wed-grid-wrapper.wed-filter-animating .wed-custom-tab-content.active-tab > * {
    animation: wed-filter-arrive .3s cubic-bezier(.2, 0, 0, 1) both;
}
.wed-grid-wrapper #bento-grid,
.wed-grid-wrapper .wed-custom-tab-content.active-tab {
    transition: opacity .12s ease-out, transform .12s ease-out;
}
.wed-grid-wrapper.wed-filter-exiting #bento-grid,
.wed-grid-wrapper.wed-filter-exiting .wed-custom-tab-content.active-tab {
    opacity: .48;
    transform: translate3d(0, -6px, 0);
}
.wed-grid-wrapper.wed-filter-animating #bento-grid > .card:nth-child(2),
.wed-grid-wrapper.wed-filter-animating .wed-custom-tab-content.active-tab > :nth-child(2) { animation-delay: 24ms; }
.wed-grid-wrapper.wed-filter-animating #bento-grid > .card:nth-child(3),
.wed-grid-wrapper.wed-filter-animating .wed-custom-tab-content.active-tab > :nth-child(3) { animation-delay: 48ms; }
.wed-grid-wrapper.wed-filter-animating #bento-grid > .card:nth-child(4),
.wed-grid-wrapper.wed-filter-animating .wed-custom-tab-content.active-tab > :nth-child(4) { animation-delay: 72ms; }
@keyframes wed-filter-arrive {
    from { opacity: .55; transform: translate3d(0, 12px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .wed-grid-wrapper.wed-filter-animating #bento-grid > .card,
    .wed-grid-wrapper.wed-filter-animating .wed-custom-tab-content.active-tab > * { animation: none !important; }
}
.wed-tabs-mobile {
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}
#planet-stats {
    scroll-margin-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
    .wed-grid-wrapper #planet-stats {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
.stat-counter {
    opacity: 1;
}
.stat-counter.is-ready,
.stat-counter[data-final="TBC"] {
    opacity: 1;
}
.stat-counter[data-final="TBC"] {
    font-size: clamp(1.65rem, 9vw, 3.25rem) !important;
    letter-spacing: 0 !important;
}
#wed-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    visibility: hidden;
}
#wed-filter-overlay.wed-open {
    visibility: visible !important;
}
#wed-filter-trigger {
    min-height: 56px;
}
#wed-mobile-label {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#child-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 760px);
}
#sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 990;
}
#sheet-track {
    overscroll-behavior-x: contain;
}
@media (min-width: 768px) {
    #child-sheet {
        left: 50% !important;
        right: auto !important;
        bottom: clamp(24px, 4vh, 52px) !important;
        width: min(94vw, var(--sheet-max-width, 1500px)) !important;
        max-width: var(--sheet-max-width, 1500px) !important;
        transform: translateX(-50%) translate3d(0, var(--sheet-y), 0) scale(var(--sheet-scale)) !important;
    }
}
.wed-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.wed-lightbox-overlay.pointer-events-auto {
    pointer-events: auto;
}
#wed-lightbox-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 80rem;
    max-height: 100vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#wed-lightbox-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0,0,0,.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#wed-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    color: #fff;
    background: rgba(255,255,255,.1);
    border-radius: 999px;
    padding: .75rem;
}
.wed-carousel-card[aria-hidden="true"] {
    pointer-events: none;
}
@media (max-width: 767px) {
    .wed-grid-wrapper main {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
    #planet-stats .grid {
        grid-template-columns: 1fr !important;
    }
    .stat-card {
        min-height: 152px !important;
    }
}
/* =========================================
   13. Mobile homepage alignment pass
   ========================================= */
@media (max-width: 767px) {
    :root {
        --wed-mobile-content-width: min(calc(100% - 2rem), 35rem);
        --wed-mobile-dock-space: calc(9rem + env(safe-area-inset-bottom, 0px));
    }

    html {
        scroll-padding-top: calc(5.4rem + env(safe-area-inset-top, 0px)) !important;
        scroll-padding-bottom: var(--wed-mobile-dock-space) !important;
    }

    .wed-grid-wrapper,
    .wed-grid-wrapper main {
        padding-bottom: var(--wed-mobile-dock-space) !important;
    }

    .wed-grid-wrapper main.w-full {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wed-tabs-mobile {
        padding-inline: 0 !important;
        margin: 0 auto 1.35rem !important;
        width: var(--wed-mobile-content-width) !important;
        top: calc(0.85rem + env(safe-area-inset-top, 0px)) !important;
    }

    #wed-filter-trigger {
        width: 100% !important;
        min-height: 4.35rem !important;
        padding: 0.84rem 1rem !important;
        border-radius: 1.55rem !important;
        box-shadow: 0 20px 48px -30px rgba(15,23,42,0.72), inset 0 1px 0 rgba(255,255,255,0.88) !important;
    }

    #wed-filter-trigger span:first-of-type {
        font-size: 0.76rem !important;
        letter-spacing: 0.11em !important;
    }

    #wed-mobile-label {
        max-width: 13rem !important;
        font-size: clamp(1rem, 4.2vw, 1.18rem) !important;
    }

    .wed-navbar-logo-link,
    #hero-shell,
    #planet-stats,
    #bento-grid,
    .wed-custom-tab-content,
    #wed-empty-state {
        width: var(--wed-mobile-content-width) !important;
        max-width: var(--wed-mobile-content-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    #hero-shell {
        margin-bottom: 1.1rem !important;
    }

    #planet-stats:not(.wed-home-chrome-hidden) {
        max-height: none !important;
        overflow: visible !important;
    }

    #planet-stats {
        padding-inline: 0 !important;
        margin-bottom: 1.3rem !important;
        scroll-margin-bottom: var(--wed-mobile-dock-space) !important;
    }

    #planet-stats .grid,
    .wed-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .wed-grid-wrapper #planet-stats .stat-card {
        min-height: clamp(12.4rem, 48vw, 15.5rem) !important;
        padding: 1.12rem 1.18rem !important;
        border-radius: 1.45rem !important;
        box-shadow: 0 22px 48px -34px rgba(2,6,23,0.86) !important;
    }

    .wed-grid-wrapper #planet-stats .stat-card-body {
        min-height: 100% !important;
        gap: 1rem !important;
        justify-content: space-between !important;
    }

    .wed-grid-wrapper #planet-stats .stat-card-top {
        font-size: clamp(0.76rem, 3.35vw, 0.92rem) !important;
        line-height: 1.25 !important;
        letter-spacing: 0.055em !important;
    }

    .wed-grid-wrapper #planet-stats .stat-card-number {
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    .wed-grid-wrapper #planet-stats .stat-counter {
        font-size: clamp(3.55rem, 16.5vw, 5.3rem) !important;
        line-height: 0.84 !important;
        letter-spacing: -0.035em !important;
    }

    .wed-grid-wrapper #planet-stats .stat-prefix,
    .wed-grid-wrapper #planet-stats .stat-suffix {
        font-size: clamp(1.35rem, 5.8vw, 1.82rem) !important;
        line-height: 1 !important;
        transform: translateY(-0.12em);
    }

    .wed-grid-wrapper #planet-stats .stat-card-footer {
        padding-top: 0.85rem !important;
    }

    .wed-grid-wrapper #planet-stats .stat-info {
        font-size: clamp(0.92rem, 3.75vw, 1.06rem) !important;
        line-height: 1.26 !important;
        -webkit-line-clamp: 3 !important;
    }

    #bento-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 1rem !important;
        padding-inline: 0 !important;
        margin-top: 0 !important;
    }

    #bento-grid .span-1x1,
    #bento-grid .span-1x2,
    #bento-grid .span-1x3,
    #bento-grid .span-2x1,
    #bento-grid .span-2x2,
    #bento-grid .span-2x3,
    #bento-grid .span-3x1,
    #bento-grid .span-3x2,
    #bento-grid .span-3x3 {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    #bento-grid .wed-card,
    #bento-grid .card {
        width: 100% !important;
        height: auto !important;
        min-height: clamp(17.5rem, 72vw, 22rem) !important;
        margin: 0 !important;
        border-radius: 1.42rem !important;
        clip-path: inset(0 round 1.42rem) !important;
    }

    #bento-grid .card h3 {
        max-width: 14ch;
        font-size: clamp(1.7rem, 7.8vw, 2.35rem) !important;
        line-height: 0.98 !important;
    }

    #bento-grid .card .absolute.bottom-0.left-0 {
        padding: 1.35rem !important;
    }

    #bento-grid .wed-carousel-trigger {
        top: 0.86rem !important;
        right: 0.86rem !important;
        width: 3rem !important;
        height: 3rem !important;
    }
}

/* Faux page/detail sheet polish */
#sheet-backdrop {
    background: radial-gradient(circle at 50% 8%, rgba(227,123,68,0.18), transparent 32%), rgba(2, 6, 23, 0.58) !important;
    backdrop-filter: blur(14px) saturate(0.94) !important;
    -webkit-backdrop-filter: blur(14px) saturate(0.94) !important;
}

#child-sheet {
    --sheet-max-width: 1440px !important;
    --sheet-edge: clamp(1.15rem, 2.6vw, 2.6rem) !important;
    max-height: min(84vh, 760px) !important;
    border: 1px solid rgba(226, 232, 240, 0.78) !important;
    border-radius: 24px 24px 0 0 !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.99), rgba(247,249,252,0.97)) !important;
    box-shadow: 0 36px 96px -42px rgba(2, 6, 23, 0.78), inset 0 1px 0 rgba(255,255,255,0.86) !important;
}

.wed-sheet-handle {
    width: 64px !important;
    height: 5px !important;
    margin-top: 14px !important;
    background: rgba(15, 23, 42, 0.18) !important;
}

.wed-sheet-header {
    gap: clamp(1rem, 2vw, 1.65rem) !important;
    padding-top: clamp(1.15rem, 2vw, 1.8rem) !important;
    padding-bottom: clamp(1rem, 1.6vw, 1.35rem) !important;
}

#child-sheet .wed-hero-title {
    max-width: 16ch !important;
    color: #111827 !important;
    font-size: clamp(2rem, 3vw, 3.8rem) !important;
    line-height: 1.02 !important;
    text-wrap: balance !important;
}

.wed-sheet-summary {
    max-width: 760px !important;
    color: rgba(15, 23, 42, 0.66) !important;
}

#sheet-close {
    width: 46px !important;
    height: 46px !important;
    background: #f8fafc !important;
    border-color: #dfe6ef !important;
    color: #344054 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

#sheet-close:hover {
    background: #fff !important;
    color: var(--wed-brand-orange) !important;
    transform: scale(1.04) !important;
}

.wed-sheet-carousel-shell {
    padding-top: clamp(1rem, 1.4vw, 1.35rem) !important;
    padding-bottom: clamp(2.4rem, 3vw, 3.1rem) !important;
    background: linear-gradient(180deg, rgba(248,250,252,0.9), rgba(255,255,255,0.96)) !important;
}

.wed-sheet-carousel-heading {
    padding-bottom: 1rem !important;
}

#sheet-count-pill {
    min-height: 30px !important;
    padding: 0.42rem 0.76rem !important;
    background: #fff !important;
    color: #475467 !important;
}

.wed-carousel-card {
    border-radius: 18px !important;
    clip-path: inset(0 round 18px) !important;
    box-shadow: 0 16px 38px -28px rgba(2, 6, 23, 0.76) !important;
}

.wed-carousel-card-content {
    padding: clamp(1rem, 1.5vw, 1.35rem) !important;
}

.wed-carousel-card h4 {
    max-width: 18ch !important;
    font-size: clamp(1.02rem, 0.38vw + 0.93rem, 1.18rem) !important;
    line-height: 1.16 !important;
}

.wed-carousel-kicker {
    max-width: min(100%, 24ch) !important;
    min-height: 24px !important;
    padding: 0.3rem 0.58rem !important;
    letter-spacing: 0.04em !important;
}

.wed-sheet-arrow {
    width: 46px !important;
    height: 46px !important;
    border-color: #dfe6ef !important;
    box-shadow: 0 14px 30px -22px rgba(2, 6, 23, 0.65) !important;
}

@media (min-width: 768px) {
    #child-sheet {
        width: min(92vw, var(--sheet-max-width, 1440px)) !important;
        bottom: clamp(20px, 3.4vh, 44px) !important;
        border-radius: 24px !important;
    }
}

@media (max-width: 767px) {
    #child-sheet {
        max-height: 86dvh !important;
        border-radius: 22px 22px 0 0 !important;
    }

    .wed-sheet-header {
        padding: 1rem !important;
    }

    #child-sheet .wed-hero-title {
        max-width: 12ch !important;
        font-size: clamp(1.7rem, 7.8vw, 2.35rem) !important;
    }

    .wed-sheet-summary {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    #sheet-close {
        width: 42px !important;
        height: 42px !important;
    }
}

/* Search and collection quality pass */
.wed-grid-search {
    position: relative;
    min-width: min(100%, 340px);
}

.wed-grid-search-control {
    min-height: 46px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    padding: 0 9px 0 14px;
    border: 1px solid #d8e0e9;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.7);
    transition: border-color 0.22s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.19, 1, 0.22, 1);
}

.wed-grid-search:focus-within .wed-grid-search-control {
    border-color: rgba(227, 123, 68, 0.72);
    box-shadow: 0 0 0 4px rgba(227, 123, 68, 0.1), 0 16px 30px -24px rgba(15, 23, 42, 0.62);
    transform: translateY(-1px);
}

.wed-grid-search.is-searching .wed-grid-search-control {
    background-image: linear-gradient(90deg, transparent, rgba(227,123,68,0.07), transparent);
    background-size: 220% 100%;
    animation: wed-search-sheen 1.2s linear infinite;
}

@keyframes wed-search-sheen {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}

.wed-grid-search-icon {
    width: 18px;
    height: 18px;
    color: var(--wed-brand-orange);
}

#wed-search-input {
    width: 100%;
    height: 44px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111827;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 680;
    letter-spacing: 0;
}

#wed-search-input::placeholder {
    color: #8b95a5;
    opacity: 1;
}

#wed-search-input::-webkit-search-cancel-button {
    display: none;
}

.wed-grid-search-clear {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f3f7;
    color: #667085;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.24s ease;
}

.wed-grid-search-clear[hidden] {
    display: none;
}

.wed-grid-search-clear:hover {
    background: #e6ebf1;
    color: #111827;
    transform: scale(1.05);
}

.wed-grid-search-clear svg {
    width: 15px;
    height: 15px;
}

.wed-grid-search-status {
    min-height: 16px;
    display: block;
    padding: 4px 2px 0;
    color: #667085;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.wed-grid-search.has-results .wed-grid-search-status {
    color: #b54708;
}

.wed-carousel-trigger {
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,0.34) !important;
    border-radius: 50% !important;
    background: rgba(10, 19, 37, 0.52) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px -18px rgba(2,6,23,0.86), inset 0 1px 0 rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    transition: transform 0.34s cubic-bezier(0.19,1,0.22,1), background-color 0.22s ease, box-shadow 0.28s ease !important;
}

.wed-carousel-trigger:hover {
    background: var(--wed-brand-orange) !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 18px 32px -18px rgba(2,6,23,0.78), 0 12px 26px -18px rgba(227,123,68,0.85) !important;
}

.wed-carousel-trigger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

#child-sheet {
    border-radius: 16px !important;
}

.wed-sheet-header {
    padding-inline: var(--sheet-edge) !important;
}

#child-sheet .wed-text-mask {
    min-width: 0;
    overflow: visible !important;
    padding: 0 !important;
}

#child-sheet .wed-hero-title {
    max-width: min(100%, 18ch) !important;
    padding: 0 !important;
}

.wed-carousel-card {
    border-radius: 12px !important;
    clip-path: inset(0 round 12px) !important;
}

.wed-carousel-card::after {
    border-radius: 12px !important;
}

.wed-carousel-link-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.72rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.22s ease, transform 0.34s cubic-bezier(0.19,1,0.22,1);
}

.wed-carousel-link-cue svg {
    width: 14px;
    height: 14px;
}

.wed-carousel-card:hover .wed-carousel-link-cue {
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .wed-grid-search {
        width: 100%;
        min-width: 0;
    }

    .wed-grid-search-status {
        text-align: left;
    }

    #child-sheet {
        border-radius: 16px 16px 0 0 !important;
    }

    .wed-carousel-card {
        width: calc(100vw - 2rem) !important;
        border-radius: 10px !important;
        clip-path: inset(0 round 10px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wed-grid-search.is-searching .wed-grid-search-control {
        animation: none;
    }
}

/* Shared finishing pass: one spacing rhythm for navigation, cards and sheets. */
.wed-grid-wrapper {
    --wed-ui-radius: 16px;
    --wed-ui-gap: clamp(12px, 1.35vw, 20px);
}

.wed-grid-wrapper #primary-tabs-container {
    margin-bottom: var(--wed-ui-gap);
}

/* Section changes must not animate page height or pull the viewport under a
   visitor's pointer. Motion is reserved for small controls, not page layout. */
.wed-grid-wrapper #hero-shell,
.wed-grid-wrapper #planet-stats {
    transition: none !important;
    will-change: auto !important;
}

.wed-grid-wrapper #primary-tabs {
    gap: clamp(6px, .7vw, 11px);
}

.wed-grid-wrapper #primary-tabs .pill {
    min-height: 44px;
    font-size: clamp(13px, .85vw, 15px);
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 3px 9px rgba(104, 43, 17, .13);
    transition: background-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}

.wed-grid-wrapper #primary-tabs .pill:hover,
.wed-grid-wrapper #primary-tabs .pill:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(104, 43, 17, .22);
}

.wed-grid-wrapper #primary-tabs .pill:focus-visible,
.wed-grid-wrapper .wed-card:focus-visible,
.wed-grid-wrapper .card:focus-visible,
#child-sheet button:focus-visible,
#child-sheet a:focus-visible {
    outline: 3px solid #1f4b87;
    outline-offset: 3px;
}

.wed-grid-wrapper .wed-grid-search-control {
    border-radius: 12px;
    min-height: 48px;
}

.wed-grid-wrapper #bento-grid {
    gap: 0;
    padding-inline: clamp(0px, .3vw, 5px);
}

.wed-grid-wrapper #bento-grid .wed-card,
.wed-grid-wrapper #bento-grid .card {
    border-radius: var(--wed-ui-radius) !important;
    clip-path: none !important;
    -webkit-mask-image: none;
    will-change: auto;
}

.wed-grid-wrapper #bento-grid .wed-card:hover,
.wed-grid-wrapper #bento-grid .wed-card:focus-visible,
.wed-grid-wrapper #bento-grid .card:hover,
.wed-grid-wrapper #bento-grid .card:focus-visible {
    box-shadow: 0 24px 48px -28px rgba(2,6,23,.72), 0 14px 24px -24px rgba(227,123,68,.7);
}

#child-sheet {
    border-radius: 18px 18px 0 0 !important;
}

#child-sheet .wed-carousel-card {
    border-radius: 14px !important;
    clip-path: none !important;
    overflow: hidden;
}

#child-sheet .wed-carousel-card::after {
    border-radius: 14px !important;
}

#child-sheet .wed-carousel-card:hover,
#child-sheet .wed-carousel-card:focus-visible {
    transform: translate3d(0,-5px,0);
    box-shadow: 0 22px 42px -26px rgba(2,6,23,.78);
}

#child-sheet .wed-sheet-arrow:not(:disabled):hover,
#child-sheet .wed-sheet-arrow:not(:disabled):focus-visible {
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 26px -18px rgba(2,6,23,.8);
}

@media (min-width: 768px) and (max-width: 1240px) {
    .wed-grid-wrapper #primary-tabs-container > div {
        flex-wrap: wrap;
        gap: 6px 16px;
    }
    .wed-grid-wrapper #primary-tabs {
        flex-wrap: wrap;
        overflow: visible;
        width: 100%;
    }
    .wed-grid-wrapper .wed-grid-search {
        width: min(100%, 420px);
    }
}

@media (max-width: 767px) {
    .wed-grid-wrapper #bento-grid {
        gap: var(--wed-ui-gap) !important;
        padding-inline: 0;
    }
    .wed-grid-wrapper #bento-grid .wed-card,
    .wed-grid-wrapper #bento-grid .card {
        border-radius: var(--wed-ui-radius) !important;
    }
    #child-sheet { border-radius: 18px 18px 0 0 !important; }
    #child-sheet .wed-sheet-carousel-shell { padding-bottom: 2.25rem !important; }
    #child-sheet .wed-sheet-arrow {
        display: flex;
        top: 54%;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255,255,255,.94);
    }
    #child-sheet .wed-sheet-arrow.left { left: 5px; }
    #child-sheet .wed-sheet-arrow.right { right: 5px; }
}

body.wed-sheet-open #wed-cookie-reopen { display: none !important; }

/* Let touch devices use native, accelerated horizontal scrolling in collections. */
#child-sheet #sheet-track {
    touch-action: auto !important;
    scroll-snap-type: x mandatory;
}

@media (prefers-reduced-motion: reduce) {
    .wed-grid-wrapper .pill,
    .wed-grid-wrapper .wed-card,
    .wed-grid-wrapper .card,
    #child-sheet,
    #sheet-backdrop,
    #child-sheet .wed-carousel-card,
    #child-sheet .wed-carousel-card img,
    #child-sheet .wed-sheet-arrow {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
