@charset "utf-8";

/* =========================
   Fonts
   ========================= */
@font-face {
    font-family: Heebo;
    src: url("../fonts/Heebo-Regular.ttf");
    font-display: swap;
}
@font-face {
    font-family: Heebo;
    src: url("../fonts/Heebo-Bold.ttf");
    font-display: swap;
    font-weight: bold;
}

/* =========================
   Base / Reset
   ========================= */
:root{
    --ink: #111;
    --muted: rgba(17,17,17,.72);
    --bg: #ffffff;

    --hdr-bg: rgba(255,255,255,.88);
    --hdr-stroke: rgba(0,0,0,.08);
    --hdr-text: #111;
    --hdr-muted: rgba(17,17,17,.72);
    --hdr-brand: #8fb3a5;
    --hdr-shadow: 0 14px 30px rgba(0,0,0,.10);
    --hdr-r: 18px;

    --f-bg: rgba(255,255,255,.88);
    --f-stroke: rgba(0,0,0,.08);
    --f-text: #111;
    --f-muted: rgba(17,17,17,.72);
    --f-brand: #8fb3a5;
    --f-shadow: 0 16px 34px rgba(0,0,0,.10);
    --f-r: 22px;
}

*{
    box-sizing: border-box;
    text-decoration: none;
    font-family: Heebo, serif;
    transition: .3s;
    color: var(--ink);
}

html{
    scroll-behavior: smooth;
}

body{
    font-size: 16px;
    color: var(--ink);
    line-height: initial;
    font-family: Heebo, serif;
    margin: 0;
    background: var(--bg);
}

pre{ white-space: pre-wrap; margin: 0; }

main{
    background-image: url("/images/bg_2.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* =========================
   Layout helpers
   ========================= */
.wrapper_container{ width: 100%; }

.wrapper_center{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: calc(100% - 40px);
    max-width: 1600px;
    margin: auto;
    height: 100%;
    padding: 100px 20px;
}

.wrapper_title,
.wrapper_text{
    text-align: center;
    color: white;
}

.wrapper_title{
    font-size: 3em;
    margin-bottom: 30px;
}

.wrapper_text{
    font-size: 1.5em;
}

/* =========================
   HEADER (updated)
   ========================= */
header{
    width: 100%;
    background: var(--hdr-bg);
    border-bottom: 1px solid var(--hdr-stroke);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header_center{
    display: flex;
    height: 82px;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 1500px;
    margin: auto;
    position: relative;
    gap: 14px;
}

.header_logo{
    width: 92px;
    aspect-ratio: 1;
    display: none;
}

.header_logo img{
    width: 100%;
    height: auto;
    display: block;
}

.header_social{
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header_social a{
    height: 40px;
    width: 40px;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.65);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.header_social a img{
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    opacity: .92;
}

.header_social a:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
    border-color: rgba(0,0,0,.12);
}

.header_social a:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.header_menu_btn{
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.65);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.header_menu_btn img{
    width: 22px;
    height: 22px;
    display: block;
}

.header_menu_btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.header_menu_btn:active{ transform: translateY(0); }

.header_menu_btn:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.header_nav{
    flex: 1 1 auto;
    height: 100%;
    display: none;
}

.header_nav nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.header_nav nav a{
    padding: 10px 14px;
    font-size: 1.05em;
    color: var(--hdr-text);
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.header_nav nav a:hover{
    background: rgba(143,179,165,.10);
    border-color: rgba(143,179,165,.20);
}

.header_nav nav a.active{
    font-weight: 700;
    background: rgba(143,179,165,.14);
    border-color: rgba(143,179,165,.28);
}

.header_nav nav a:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

/* Mobile dropdown */
.mobile_nav{
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    z-index: 100;
    padding: 10px 16px 16px;
}

.mobile_nav.active{ display: block; }

.header_nav.mobile_nav{
    height: auto !important;
    min-height: 0 !important;
}

.mobile_nav nav{
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--hdr-r);
    box-shadow: var(--hdr-shadow);
    overflow: hidden;
}

.mobile_nav nav a{
    display: flex;
    align-items: center;
    min-height: 48px;
    line-height: 1.2;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 14px 16px;
    border-radius: 0;
    font-size: 1.05em;
}

.mobile_nav nav a:last-child{ border-bottom: 0; }

@media (min-width: 992px){
    .header_menu_btn{ display: none; }
    .header_logo{ display: block; }
    .header_nav{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    .mobile_nav{ display: none !important; }
}

@media (min-width: 1200px){
    .header_center{ height: 90px; }
    .mobile_nav{ top: 90px; }

    .header_social a{ height: 44px; width: 44px; }
    .header_nav nav a{ padding: 12px 18px; font-size: 1.1em; }
}

@media (prefers-reduced-motion: reduce){
    .header_social a,
    .header_menu_btn,
    .header_nav nav a{ transition: none !important; }
}

/* =========================
   HOME (page--home)
   ========================= */
.page--home{
    --bg:#0b1010;
    --glass: rgba(255,255,255,.10);
    --stroke: rgba(255,255,255,.16);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.74);
    --brand: #8fb3a5;
    --brand2:#d0c9c0;
    --shadow: 0 20px 65px rgba(0,0,0,.50);
    --shadow2: 0 12px 30px rgba(0,0,0,.30);
    --r-lg: 28px;
    --r-md: 18px;
}

.page--home .wrapper_title{
    font-size: clamp(28px, 4vw, 54px);
    letter-spacing: .2px;
    text-shadow: 0 12px 28px rgba(0,0,0,.45);
}

/* Cover / Hero */
.cover_strip{
    aspect-ratio: 4 / 5;
    position: relative;
}
@media (min-width: 600px){ .cover_strip{ aspect-ratio: 1; } }
@media (min-width: 768px){ .cover_strip{ aspect-ratio: 16 / 5; } }

.page--home .hero__media{
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    border-bottom: 1px solid var(--stroke);
    background: var(--bg);
}

.page--home .hero__media::after{
    content:"";
    position:absolute;
    inset:0;
    background:
            radial-gradient(900px 600px at 15% 25%, transparent, rgba(0,0,0,.38)),
            linear-gradient(to top, rgba(0,0,0,.72), transparent 60%);
    pointer-events:none;
    z-index: 1;
}

.page--home .hero__overlay{
    position:absolute;
    inset:0;
    z-index: 2;
    display:flex;
    align-items:flex-end;
}

.page--home .hero__brand{
    position:absolute;
    top: 18px;
    right: 18px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: var(--shadow2);
}

.page--home .hero__logo{
    display:block;
    height: 44px;
    width: auto;
}

.page--home .hero__content{
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 22px;
    padding: 18px;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow2);
}

.page--home .hero__title{
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.1;
}

.page--home .hero__subtitle{
    margin: 0 0 16px;
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.6;
}

/* Buttons */
.page--home .hero__actions{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page--home .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    text-decoration: none;
}

.page--home .btn--primary{
    background: linear-gradient(135deg, rgba(208,201,192,.95), rgba(143,179,165,.92));
    color: #10201d;
    border-color: rgba(255,255,255,.18);
}

.page--home .btn--ghost{
    background: rgba(255,255,255,.10);
    color: var(--text);
    border-color: rgba(255,255,255,.18);
}

.page--home .btn:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow2);
}

.page--home .btn:focus-visible{
    outline: 3px solid rgba(143,179,165,.9);
    outline-offset: 3px;
}

/* Slider */
.cover_slider{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cover_slider__item{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
}

.cover_slider__item.is-active{
    opacity: 1;
    pointer-events: auto;
}

.cover_slider__item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page--home .cover_slider__dots{
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.page--home .cover_slider__dots .dot{
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,.62);
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.page--home .cover_slider__dots .dot.is-active{
    background: var(--brand);
    transform: scale(1.35);
}

/* About */
.page--home .wrapper_text{
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-lg);
    padding: clamp(16px, 2.2vw, 26px);
    box-shadow: var(--shadow2);
    color: var(--muted);
    max-width: 72ch;
}

/* Categories */
.about_strip_categories{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    position: relative;
}

.categories_logo_bg{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: unset;
    height: 100%;
    padding: 20px;
}
.categories_logo_bg img{ opacity: .21; }

.categories__item{
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/3;
    background-color: white;
    margin: 20px auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page--home .categories__item{
    border-radius: var(--r-md);
    overflow:hidden;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--shadow2);
    transform: translateY(0);
}

.page--home .categories__item::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,.10));
    pointer-events:none;
}

.categories__item span{
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2em;
}

.page--home .categories__item span{
    background: transparent !important;
    color: #fff;
    text-shadow: 0 10px 24px rgba(0,0,0,.55);
    font-size: clamp(18px, 2vw, 26px);
    justify-content:flex-end;
    align-items:flex-end;
    padding: 18px;
}

.page--home .categories__item:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(143,179,165,.35);
}

@media (min-width: 768px){
    .about_strip_categories{ flex-direction: row; }
    .categories__item{ margin: 50px auto; }
    .categories_logo_bg{ position: absolute; }
    .categories_logo_bg img{ width: 600px; }

    .page--home .about_strip_categories{
        display:grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    .page--home .categories__item{
        max-width: none;
        margin: 0;
        aspect-ratio: 4 / 5;
    }
}

/* =========================
   Solution pages / content
   ========================= */
.solution_title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

.solution_title h1{
    width: 100%;
    background-color: rgba(230, 230, 230, 0.32);
    font-size: 3em;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-weight: normal;
}

.solution_cover{
    aspect-ratio: 4/ 2.5;
    overflow-y: hidden;
}
.solution_cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution_strip{
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    width: 100%;
}
.solution_strip img{ width: 100px; }

li{
    color: white;
    line-height: initial;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.solution_strip__row{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin: 20px 0;
}

.solution_strip__row_3{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 992px;
    margin: 50px auto;
    padding: 20px;
}

.solution_strip__row_3 div{
    width: 100%;
    display: flex;
    justify-content: center;
}

.solution_strip__row_3 div:nth-child(1){ align-items: end; }
.solution_strip__row_3 div:nth-child(2){ align-items: center; }
.solution_strip__row_3 div:nth-child(3){ align-items: start; }

.solution_strip__row_1{
    background-image: url("/images/diffusersGrilles_5.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 1);
    max-width: 1000px;
    margin: 100px auto;
    width: 100%;
}

.solution_strip__row_1 p,
.solution_strip__row_1 span{
    color: white;
    text-align: center;
    padding-bottom: 4px;
}
.solution_strip__row_1 p.title{
    font-size: 1.4em;
    padding-bottom: 8px;
}

.solution_strip__row_3 img{
    width: 60%;
    max-width: 160px;
    display: block;
    margin: 20px auto;
}

.solution_strip__content{
    width: 100%;
    align-content: center;
}

.solution_strip__content p,
.solution_strip__content pre{
    color: white;
    text-align: center;
}

.solution_strip__content p{
    font-weight: bold;
    font-size: 2.2em;
}

.solution_strip__content p:nth-child(2){
    font-weight: normal;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.solution_strip__content pre{
    font-size: 1.2em;
}

.solution_strip__gallery{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution_strip__gallery_preview{
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.solution_strip__gallery_preview img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution_strip__gallery_all{
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.solution_strip__gallery_all img{
    overflow: hidden;
    width: 72px;
    height: 72px;
    display: block;
    margin: 0 4px;
}

.solution_strip__gallery_all img.active{
    border: 1px solid white;
}

/* Lightbox */
.gallery-lightbox{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    z-index: 9999;
    padding: 24px;
    transition: opacity 240ms ease, background 240ms ease;
}

.gallery-lightbox.is-open{
    display: flex;
    opacity: 1;
    background: rgba(0, 0, 0, 0.86);
}

.gallery-lightbox__panel{
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
    will-change: transform, opacity;
}

.gallery-lightbox.is-open .gallery-lightbox__panel{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gallery-lightbox__img{
    position: relative;
    z-index: 1;
    display: block;
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    opacity: 1;
    transition: opacity 220ms ease;
    will-change: opacity;
}
.gallery-lightbox__img.is-fading{ opacity: 0; }

.gallery-lightbox__btn,
.gallery-lightbox__close{
    position: absolute;
    z-index: 3;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0.95;
    transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__btn:hover,
.gallery-lightbox__close:hover{
    background: rgba(255, 255, 255, 0.22);
    opacity: 1;
}
.gallery-lightbox__btn:active,
.gallery-lightbox__close:active{ transform: scale(0.98); }

.gallery-lightbox__btn{
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 999px;
}
.gallery-lightbox__btn--prev{ left: -64px; }
.gallery-lightbox__btn--next{ right: -64px; }

.gallery-lightbox__close{
    top: -56px;
    right: 0;
    font-size: 22px;
    padding: 10px 12px;
    border-radius: 999px;
}

/* RTL */
html[dir="rtl"] .gallery-lightbox__btn--next{ left: -64px; right: auto; }
html[dir="rtl"] .gallery-lightbox__btn--prev{ right: -64px; left: auto; }

@media (max-width: 700px){
    html[dir="rtl"] .gallery-lightbox__btn--next{ left: 12px; right: auto; }
    html[dir="rtl"] .gallery-lightbox__btn--prev{ right: 12px; left: auto; }

    .gallery-lightbox__btn--prev{ left: 12px; }
    .gallery-lightbox__btn--next{ right: 12px; }
    .gallery-lightbox__close{ top: 12px; right: 12px; }
}

/* WhatsApp button */
.whatsapp_btn{
    display: block;
    padding: 16px;
    min-width: 200px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    background-color: #d0c9c0;
    width: fit-content;
    font-size: 1.4em;
    margin: 30px auto;
}

/* Marquee */
.marquee{
    overflow: hidden;
    position: relative;
    background-color: white;
}

.marquee__track{
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    will-change: transform;
    animation: marquee-infinite 250s linear infinite;
}

.marquee__item{
    width: 200px;
    height: 200px;
    object-fit: scale-down;
    margin: 20px;
    flex: 1 1 auto;
}

@keyframes marquee-infinite{
    from{ transform: translateX(50%); }
    to{ transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce){
    .marquee__track{ animation: none; }
}

/* Gallery grid page */
.gallery{
    max-width: 1200px;
    margin: 0 auto 100px;
    display: grid;
    gap: 16px;
}
.gallery img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery figure{
    margin: 0;
    background: #1f2a27;
}

.top{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.top .big{
    grid-row: 1 / span 2;
    aspect-ratio: 16 / 9;
}
.top .big.for{ grid-row: 1 / span 1; }
.top .small{ aspect-ratio: 16 / 9; }
.top .small-big{ aspect-ratio: 16 / 9; }

.bottom{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bottom figure{ aspect-ratio: 21 / 9; }

@media (max-width: 900px){
    .top{ grid-template-columns: 1fr; }
    .top .big{ grid-row: auto; aspect-ratio: 16 / 10; }
    .bottom{ grid-template-columns: 1fr; }
    .bottom figure{ aspect-ratio: 16 / 10; }
}

/* Desktop layout for solution pages */
@media (min-width: 768px){
    .solution_strip__row_3{ flex-direction: row; }
    .solution_strip__row_3 div{ width: 33%; }
    .solution_title h1{ font-size: 4em; }
    .solution_cover{ aspect-ratio: 4/1; }
    .solution_strip{ padding: 100px 0; }

    .solution_strip__content{ width: 48%; padding: 40px; }
    .solution_strip__gallery{ width: 48%; }
    .solution_strip__row{ flex-direction: row; }

    .solution_strip__row:nth-child(even){ flex-direction: row-reverse; }
    .solution_strip__row.regular:nth-child(even){ flex-direction: row; }

    .solution_strip__content p,
    .solution_strip__content pre{ text-align: right; }
}

/* =========================
   FOOTER (updated)
   ========================= */
footer{
    background: var(--f-bg);
    border-top: 1px solid var(--f-stroke);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer_logo{
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 22px;
}

.footer_logo img{
    width: calc(100% - 40px);
    max-width: 260px;
    padding-bottom: 18px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.12));
}

.footer_center{
    max-width: 980px;
    width: calc(100% - 40px);
    margin: auto;
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 22px;
    padding: 10px 0 18px;
}

.footer_nav{
    display: none;
    width: 100%;
    max-width: 210px;
}

.footer_nav nav{
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--f-r);
    box-shadow: var(--f-shadow);
    overflow: hidden;
}

.footer_nav nav a{
    width: 100%;
    display: block;
    font-size: 1.05em;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    color: var(--f-text);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer_nav nav a:last-child{ border-bottom: 0; }
.footer_nav nav a:hover{ background: rgba(143,179,165,.10); }
.footer_nav nav a.active{ font-weight: 700; background: rgba(143,179,165,.14); }
.footer_nav nav a:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.footer_social{
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--f-r);
    box-shadow: var(--f-shadow);
    padding: 16px 16px 6px;
    width: 100%;
    max-width: 520px;
}

.footer_social_title{
    font-size: 1.05em;
    font-weight: 800;
    padding-bottom: 12px;
    color: var(--f-text);
    text-align: center;
}

.footer_social a{
    display: flex;
    align-items: center;
    font-size: 1.05em;
    margin-bottom: 12px;
    flex-direction: column;
    gap: 8px;
    color: var(--f-text);
    border-radius: 16px;
    padding: 10px 10px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.footer_social a:hover{
    background: rgba(143,179,165,.10);
    transform: translateY(-1px);
}

.footer_social a:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.footer_social a span{
    font-size: 1em;
    color: var(--f-muted);
    word-break: break-word;
}

.footer_social a img{
    height: 34px;
    width: 34px;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.75);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.footer_powered{
    padding: 14px 0 18px;
    display: flex;
    margin-top: 10px;
    justify-content: center;
    color: rgba(17,17,17,.72);
    font-size: .95em;
    border-top: 1px solid rgba(0,0,0,.06);
}

@media (min-width: 768px){
    .footer_nav{ display: block; }
    .footer_center{
        justify-content: space-between;
        text-align: right;
        align-items: flex-start;
        padding-bottom: 22px;
    }
    .footer_social_title{ text-align: right; }
    .footer_social a{
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce){
    .footer_nav nav a,
    .footer_social a{ transition: none !important; }
}

/* Home reduced motion */
@media (prefers-reduced-motion: reduce){
    .page--home .btn,
    .page--home .categories__item,
    .cover_slider__item{ transition: none !important; }
}





/* =====================================================
   CREDITS UI (requires .page--credits wrapper)
   Paste at the END of your main CSS file
   ===================================================== */

.page--credits{
    --c-bg: rgba(255,255,255,.70);
    --c-stroke: rgba(0,0,0,.08);
    --c-shadow: 0 18px 40px rgba(0,0,0,.10);
    --c-shadow2: 0 10px 26px rgba(0,0,0,.08);
    --c-r-lg: 26px;
    --c-r-md: 18px;
    --c-brand: #8fb3a5;
    --c-ink: #111;
    --c-muted: rgba(17,17,17,.72);
}

.page--credits .wrapper_center{
    padding: clamp(56px, 7vw, 110px) 20px;
}

.page--credits .credits{
    width: min(1050px, 100%);
    background: var(--c-bg);
    border: 1px solid var(--c-stroke);
    border-radius: var(--c-r-lg);
    box-shadow: var(--c-shadow);
    padding: clamp(18px, 3vw, 34px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page--credits .credits__title{
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(28px, 4vw, 46px);
    color: var(--c-ink);
    letter-spacing: .2px;
}

.page--credits .credits__subtitle{
    margin: 0 0 18px;
    text-align: center;
    color: var(--c-muted);
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.6;
}

.page--credits .credits__grid{
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 10px;
}

.page--credits .credits__card{
    display: block;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--c-r-md);
    padding: 16px 16px;
    box-shadow: var(--c-shadow2);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.page--credits .credits__card:hover{
    transform: translateY(-2px);
    box-shadow: var(--c-shadow);
    border-color: rgba(143,179,165,.35);
    background: rgba(255,255,255,.92);
}

.page--credits .credits__card:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.page--credits .credits__name{
    display: block;
    font-weight: 800;
    font-size: 1.15em;
    color: var(--c-ink);
}

.page--credits .credits__role{
    display: block;
    margin-top: 6px;
    color: var(--c-muted);
    font-size: 1em;
}

/* Desktop layout */
@media (min-width: 768px){
    .page--credits .credits__grid{
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    .page--credits .credits__card{
        transition: none !important;
    }
}





/* =====================================================
   LIGHTING UI (requires .page--lighting wrapper)
   Paste at the END of your main CSS file
   ===================================================== */

.page--lighting{
    --l-bg: rgba(255,255,255,.70);
    --l-stroke: rgba(0,0,0,.08);
    --l-shadow: 0 18px 45px rgba(0,0,0,.10);
    --l-shadow2: 0 10px 26px rgba(0,0,0,.08);
    --l-r-lg: 26px;
    --l-r-md: 18px;
    --l-ink: #111;
    --l-muted: rgba(17,17,17,.72);
    --l-brand: #8fb3a5;
}

.page--lighting .solution_title{
    padding: 22px 0 10px;
}

.page--lighting .solution_title h1{
    background: transparent;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 12px 28px rgba(0,0,0,.45);
}

.page--lighting .page_subtitle{
    margin: 10px auto 0;
    color: rgba(255,255,255,.80);
    text-align: center;
    width: min(900px, calc(100% - 40px));
    line-height: 1.7;
    font-size: 1.05em;
}

.page--lighting .lighting_grid{
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 16px;
    padding: 28px 0 10px;
}

.page--lighting .lighting_card{
    background: var(--l-bg);
    border: 1px solid var(--l-stroke);
    border-radius: var(--l-r-lg);
    box-shadow: var(--l-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page--lighting .lighting_card__head{
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.55);
}

.page--lighting .lighting_card__title{
    margin: 0;
    color: var(--l-ink);
    font-size: 1.35em;
    font-weight: 900;
}

.page--lighting .lighting_card__body{
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
}

.page--lighting .lighting_card__desc pre{
    margin: 0;
    color: var(--l-muted);
    font-size: 1.05em;
    line-height: 1.75;
    white-space: pre-wrap;
}

.page--lighting .lighting_gallery{
    display: grid;
    gap: 10px;
}

.page--lighting .lighting_gallery__preview{
    position: relative;
    border-radius: var(--l-r-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--l-shadow2);
    aspect-ratio: 16 / 10;
    background: rgba(0,0,0,.06);
}

.page--lighting .lighting_gallery__preview img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.page--lighting .lighting_gallery__zoom{
    position: absolute;
    left: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.38);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease;
}

.page--lighting .lighting_gallery__zoom:hover{
    transform: translateY(-1px);
    background: rgba(0,0,0,.48);
}

.page--lighting .lighting_gallery__zoom:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.page--lighting .lighting_gallery__thumbs{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page--lighting .lighting_thumb{
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.75);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.page--lighting .lighting_thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page--lighting .lighting_thumb:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.page--lighting .lighting_thumb.is-active{
    border-color: rgba(143,179,165,.70);
    box-shadow: 0 16px 34px rgba(143,179,165,.18);
}

.page--lighting .lighting_thumb:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

/* Desktop layout: 2 columns (text + gallery) */
@media (min-width: 900px){
    .page--lighting .lighting_card__body{
        grid-template-columns: 1.1fr .9fr;
        align-items: start;
    }
    .page--lighting .lighting_gallery__thumbs{
        justify-content: flex-start;
    }
}

/* Grid of cards */
@media (min-width: 1100px){
    .page--lighting .lighting_grid{
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    .page--lighting .lighting_thumb,
    .page--lighting .lighting_gallery__zoom{
        transition: none !important;
    }
}


/* =====================================================
   DIFFUSERS UI (requires .page--diffusers wrapper)
   Paste at the END of your main CSS file
   ===================================================== */

.page--diffusers{
    --d-bg: rgba(255,255,255,.70);
    --d-stroke: rgba(0,0,0,.08);
    --d-shadow: 0 18px 45px rgba(0,0,0,.10);
    --d-shadow2: 0 10px 26px rgba(0,0,0,.08);
    --d-r-lg: 26px;
    --d-r-md: 18px;
    --d-ink: #111;
    --d-muted: rgba(17,17,17,.72);
    --d-brand: #8fb3a5;
}

/* subtitle under title */
.page--diffusers .page_subtitle{
    margin: 10px auto 0;
    color: rgba(255,255,255,.82);
    text-align: center;
    width: min(900px, calc(100% - 40px));
    line-height: 1.7;
    font-size: 1.05em;
}

.page--diffusers .dg_grid{
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 16px;
    padding: 28px 0 10px;
}

.page--diffusers .dg_card{
    background: var(--d-bg);
    border: 1px solid var(--d-stroke);
    border-radius: var(--d-r-lg);
    box-shadow: var(--d-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page--diffusers .dg_card__head{
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.55);
}

.page--diffusers .dg_card__title{
    margin: 0;
    color: var(--d-ink);
    font-size: 1.35em;
    font-weight: 900;
}

.page--diffusers .dg_card__body{
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
}

.page--diffusers .dg_card__desc pre{
    margin: 0;
    color: var(--d-muted);
    font-size: 1.05em;
    line-height: 1.75;
    white-space: pre-wrap;
}

.page--diffusers .dg_gallery{
    display: grid;
    gap: 10px;
}

.page--diffusers .dg_gallery__preview{
    position: relative;
    border-radius: var(--d-r-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--d-shadow2);
    aspect-ratio: 16 / 10;
    background: rgba(0,0,0,.06);
    cursor: zoom-in;
    outline: none;
}

.page--diffusers .dg_gallery__preview:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.page--diffusers .dg_gallery__preview img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.page--diffusers .dg_gallery__zoom{
    position: absolute;
    left: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.38);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease;
}

.page--diffusers .dg_gallery__zoom:hover{
    transform: translateY(-1px);
    background: rgba(0,0,0,.48);
}

.page--diffusers .dg_gallery__zoom:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

.page--diffusers .dg_gallery__thumbs{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page--diffusers .dg_thumb{
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.75);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.page--diffusers .dg_thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page--diffusers .dg_thumb:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.page--diffusers .dg_thumb.is-active{
    border-color: rgba(143,179,165,.70);
    box-shadow: 0 16px 34px rgba(143,179,165,.18);
}

.page--diffusers .dg_thumb:focus-visible{
    outline: 3px solid rgba(143,179,165,.75);
    outline-offset: 3px;
}

/* Desktop layout: text + gallery */
@media (min-width: 900px){
    .page--diffusers .dg_card__body{
        grid-template-columns: 1.1fr .9fr;
        align-items: start;
    }
    .page--diffusers .dg_gallery__thumbs{
        justify-content: flex-start;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    .page--diffusers .dg_thumb,
    .page--diffusers .dg_gallery__zoom{
        transition: none !important;
    }
}



/* =====================================================
   AIR CONDITIONER UI (requires .page--air wrapper)
   Paste at the END of your main CSS file
   ===================================================== */

.page--air{
    --a-glass: rgba(255,255,255,.70);
    --a-stroke: rgba(0,0,0,.08);
    --a-ink: #111;
    --a-muted: rgba(17,17,17,.72);
    --a-shadow: 0 18px 45px rgba(0,0,0,.10);
    --a-shadow2: 0 10px 26px rgba(0,0,0,.08);
    --a-r-lg: 26px;
    --a-r-md: 18px;
    --a-brand: #8fb3a5;
    --a-sand: #d0c9c0;
}

.page--air .page_subtitle{
    margin: 10px auto 0;
    color: rgba(255,255,255,.82);
    text-align: center;
    width: min(900px, calc(100% - 40px));
    line-height: 1.7;
    font-size: 1.05em;
}

.page--air .air_note{
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 18px;
    text-align: center;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--a-r-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--a-shadow2);
}

.page--air .air_marquee{
    border-radius: var(--a-r-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--a-shadow2);
}

.page--air .air_toc{
    width: min(1100px, calc(100% - 40px));
    margin: 18px auto 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page--air .air_toc__item{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.page--air .air_toc__item:hover{
    transform: translateY(-2px);
    box-shadow: var(--a-shadow2);
    border-color: rgba(143,179,165,.35);
}

.page--air .air_toc__item.is-active{
    background: linear-gradient(135deg, rgba(208,201,192,.92), rgba(143,179,165,.86));
    color: #0f1f1c;
    border-color: rgba(255,255,255,.22);
}

.page--air .air_toc__item:focus-visible{
    outline: 3px solid rgba(143,179,165,.9);
    outline-offset: 3px;
}

.page--air .air_stack{
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 10px;
    display: grid;
    gap: 18px;
}

.page--air .air_card{
    background: var(--a-glass);
    border: 1px solid var(--a-stroke);
    border-radius: var(--a-r-lg);
    box-shadow: var(--a-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page--air .air_card__head{
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.55);
}

.page--air .air_badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .9em;
    background: rgba(143,179,165,.18);
    border: 1px solid rgba(143,179,165,.28);
    color: #10201d;
    margin-bottom: 10px;
}

.page--air .air_title{
    margin: 0;
    color: var(--a-ink);
    font-size: 1.45em;
    font-weight: 1000;
}

.page--air .air_subtitle{
    margin: 6px 0 0;
    color: rgba(17,17,17,.75);
    font-weight: 700;
}

.page--air .air_card__body{
    padding: 14px 16px 16px;
    display: grid;
    gap: 14px;
}

.page--air .air_desc pre{
    margin: 0;
    color: var(--a-muted);
    font-size: 1.05em;
    line-height: 1.75;
    white-space: pre-wrap;
}

.page--air .air_media{
    border-radius: var(--a-r-md);
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.65);
    box-shadow: var(--a-shadow2);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page--air .air_media img{
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    display: block;
}

.page--air .air_cols{
    display: grid;
    gap: 12px;
    align-items: start;
}

.page--air .air_col{
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--a-r-md);
    box-shadow: var(--a-shadow2);
    padding: 14px 14px;
}

.page--air .air_col h3{
    margin: 0 0 10px;
    font-size: 1.1em;
    font-weight: 1000;
    color: var(--a-ink);
}

.page--air .air_col ul{
    margin: 0;
    padding: 0 18px 0 0;
}

.page--air .air_col li{
    color: rgba(17,17,17,.78);
    line-height: 1.6;
    font-size: 1.02em;
    margin-bottom: 8px;
}

.page--air .air_mid{
    display: none;
    justify-content: center;
    align-items: center;
}
.page--air .air_mid img{
    width: 120px;
    height: auto;
    opacity: .95;
}

.page--air .air_examples{
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--a-r-lg);
    box-shadow: var(--a-shadow2);
    padding: 14px;
}

.page--air .air_examples h3{
    margin: 0 0 10px;
    font-size: 1.1em;
    font-weight: 1000;
    color: var(--a-ink);
}

.page--air .air_examples__grid{
    display: grid;
    gap: 12px;
}

.page--air .air_examples__block{
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--a-r-md);
    padding: 12px;
}

.page--air .air_examples__title{
    margin: 0 0 8px;
    font-weight: 1000;
    color: var(--a-ink);
}

.page--air .air_examples__block p{
    margin: 0 0 6px;
    color: rgba(17,17,17,.78);
}

.page--air .air_examples__note{
    color: rgba(17,17,17,.70);
    font-weight: 700;
    text-align: right;
}

@media (min-width: 900px){
    .page--air .air_card__body{
        grid-template-columns: 1.1fr .9fr;
        grid-template-areas:
      "desc media"
      "cols cols"
      "ex   ex";
    }
    .page--air .air_desc{ grid-area: desc; }
    .page--air .air_media{ grid-area: media; }
    .page--air .air_cols{ grid-area: cols; }
    .page--air .air_examples{ grid-area: ex; }

    .page--air .air_cols{
        grid-template-columns: 1fr auto 1fr;
        gap: 14px;
    }
    .page--air .air_mid{
        display: flex;
        padding: 0 6px;
    }

    .page--air .air_examples__grid{
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .page--air .air_examples__note{
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce){
    .page--air .air_toc__item{
        transition: none !important;
    }
}






/* =====================================================
   GALLERY UI (requires .page--gallery wrapper)
   Paste at the END of your main CSS file
   ===================================================== */

.page--gallery{
    --g-glass: rgba(255,255,255,.08);
    --g-stroke: rgba(255,255,255,.14);
    --g-shadow: 0 18px 55px rgba(0,0,0,.35);
    --g-shadow2: 0 10px 26px rgba(0,0,0,.24);
    --g-r-lg: 28px;
    --g-r-md: 18px;
    --g-text: rgba(255,255,255,.92);
    --g-muted: rgba(255,255,255,.78);
    --g-brand: #8fb3a5;
}

/* Subtitle under H1 */
.page--gallery .page_subtitle{
    margin: 10px auto 0;
    color: var(--g-muted);
    text-align: center;
    width: min(900px, calc(100% - 40px));
    line-height: 1.7;
    font-size: 1.05em;
}

/* Stack spacing */
.page--gallery .gallery_stack{
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

/* Each gallery block as a premium card */
.page--gallery .gallery{
    margin: 0 auto 0;
    padding: 14px;
    border-radius: var(--g-r-lg);
    background: var(--g-glass);
    border: 1px solid var(--g-stroke);
    box-shadow: var(--g-shadow2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

/* tighter, cleaner grid */
.page--gallery .top,
.page--gallery .bottom{
    gap: 14px;
}

/* figures become “tiles” */
.page--gallery .gallery figure{
    border-radius: var(--g-r-md);
    overflow: hidden;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 20px rgba(0,0,0,.20);
    position: relative;
}

/* image polish */
.page--gallery .gallery img{
    transform: scale(1);
    transition: transform .35s ease, filter .35s ease;
    will-change: transform;
}

/* hover effect */
.page--gallery .gallery figure:hover img{
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.03);
}

/* subtle overlay on hover for depth */
.page--gallery .gallery figure::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events:none;
}

.page--gallery .gallery figure:hover::after{
    opacity: 1;
}

/* improve existing layout ratios slightly on mobile */
@media (max-width: 900px){
    .page--gallery .gallery{
        padding: 12px;
    }
    .page--gallery .top,
    .page--gallery .bottom{
        gap: 12px;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
    .page--gallery .gallery img,
    .page--gallery .gallery figure::after{
        transition: none !important;
    }
}
/* =====================================================
   GALLERY UI (requires .page--gallery wrapper)
   Paste at the END of your main CSS file
   ===================================================== */

.page--gallery{
    --g-glass: rgba(255,255,255,.08);
    --g-stroke: rgba(255,255,255,.14);
    --g-shadow: 0 18px 55px rgba(0,0,0,.35);
    --g-shadow2: 0 10px 26px rgba(0,0,0,.24);
    --g-r-lg: 28px;
    --g-r-md: 18px;
    --g-text: rgba(255,255,255,.92);
    --g-muted: rgba(255,255,255,.78);
    --g-brand: #8fb3a5;
}

/* Subtitle under H1 */
.page--gallery .page_subtitle{
    margin: 10px auto 0;
    color: var(--g-muted);
    text-align: center;
    width: min(900px, calc(100% - 40px));
    line-height: 1.7;
    font-size: 1.05em;
}

/* Stack spacing */
.page--gallery .gallery_stack{
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

/* Each gallery block as a premium card */
.page--gallery .gallery{
    margin: 0 auto 0;
    padding: 14px;
    border-radius: var(--g-r-lg);
    background: var(--g-glass);
    border: 1px solid var(--g-stroke);
    box-shadow: var(--g-shadow2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

/* tighter, cleaner grid */
.page--gallery .top,
.page--gallery .bottom{
    gap: 14px;
}

/* figures become “tiles” */
.page--gallery .gallery figure{
    border-radius: var(--g-r-md);
    overflow: hidden;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 20px rgba(0,0,0,.20);
    position: relative;
}

/* image polish */
.page--gallery .gallery img{
    transform: scale(1);
    transition: transform .35s ease, filter .35s ease;
    will-change: transform;
}

/* hover effect */
.page--gallery .gallery figure:hover img{
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.03);
}

/* subtle overlay on hover for depth */
.page--gallery .gallery figure::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events:none;
}

.page--gallery .gallery figure:hover::after{
    opacity: 1;
}

/* improve existing layout ratios slightly on mobile */
@media (max-width: 900px){
    .page--gallery .gallery{
        padding: 12px;
    }
    .page--gallery .top,
    .page--gallery .bottom{
        gap: 12px;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
    .page--gallery .gallery img,
    .page--gallery .gallery figure::after{
        transition: none !important;
    }
}
