:root {
    --background: #272b2d;
    --orange: #c66b4e;
    --white: #f5f5f5;
    --muted: #a5aaad;
    --line: rgba(255,255,255,.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--background);
    color: var(--white);
    font-family: "Noto Sans Georgian", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1440px, 90%);
    margin-inline: auto;
}

.header {
    border-bottom: 1px solid var(--line);
    background: #24282a;
}

.navigation {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    width: 260px;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    font-size: 13px;
    transition: color .2s;
}

nav a:hover,
nav a.active {
    color: var(--orange);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.hero {
    border-bottom: 1px solid var(--line);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 90px 90px;
}

.hero-inner {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    padding-block: 70px;
}

.eyebrow {
    color: var(--orange);
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

h1 {
    font-size: clamp(36px, 4.8vw, 78px);
    line-height: 1.25;
    margin: 0 0 25px;
}

h1 span { color: var(--orange); }

.hero-description {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    max-width: 470px;
    margin-bottom: 35px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 17px 22px;
    font-size: 13px;
    margin: 5px 8px 5px 0;
    border: 1px solid var(--orange);
}

.primary-button {
    background: var(--orange);
    color: #fff;
}

.secondary-button {
    border-color: var(--line);
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-visual svg {
    width: 100%;
    display: block;
}

.drawing-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--muted);
}

.section {
    padding-block: 75px;
    border-bottom: 1px solid var(--line);
}

h2 {
    font-size: clamp(25px, 3vw, 40px);
    margin: 0 0 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.service {
    border: 1px solid var(--line);
    padding: 35px;
    transition: background .2s;
}

.service:hover {
    background: #303638;
}

.service span {
    color: var(--orange);
    font-size: 11px;
    letter-spacing: 2px;
}

.service h3 {
    font-size: 24px;
    margin-top: 45px;
}

.service p,
.section > p {
    color: var(--muted);
    line-height: 1.8;
}

.footer {
    padding-block: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.footer img { width: 200px; }

@media (max-width: 900px) {
    .navigation {
        min-height: 80px;
        flex-wrap: wrap;
    }

    .brand img { width: 210px; }
    .menu-toggle { display: block; }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 25px;
    }

    nav.open { display: flex; }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-block: 55px;
        min-height: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section { padding-block: 50px; }

    .footer {
        flex-direction: column;
        gap: 20px;
    }
}

/* TRIPLEX HERO V2 */

.hero {
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 55px 55px;
    overflow: hidden;
}

.hero-inner {
    grid-template-columns: 40% 60%;
    gap: 0;
    min-height: 640px;
    padding-block: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(36px, 4.5vw, 72px);
    line-height: 1.22;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    margin-right: -35px;
}

.hero-render {
    display: block;
    width: 100%;
    min-height: 470px;
    object-fit: cover;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 17%,
        black 95%,
        transparent
    );
}

.dimension-top {
    position: absolute;
    top: 3%;
    left: 15%;
    right: 5%;
    border-top: 1px solid rgba(255,255,255,.4);
}

.dimension-level {
    position: absolute;
    right: 0;
    width: 24%;
    border-top: 1px solid rgba(255,255,255,.5);
    color: #ddd;
    font-size: 11px;
    text-align: right;
    padding-top: 6px;
}

.level-one { top: 10%; }
.level-two { top: 48%; }
.level-three { top: 88%; }

.concept-label {
    position: absolute;
    bottom: 0;
    right: 10px;
    font-size: 9px;
    letter-spacing: 2px;
    color: #aaa;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 25px;
        min-height: auto;
    }

    .hero-visual {
        margin-right: 0;
    }

    .hero-render {
        min-height: 0;
        mask-image: none;
    }
}

/* TRIPLEX TYPOGRAPHY V3 */

@font-face {
    font-family: "Triplex Georgian";
    src: url("/static/fonts/NotoSansGeorgian.woff2")
         format("woff2"),
         url("/static/fonts/NotoSansGeorgian.ttf")
         format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Triplex Georgian", Arial, sans-serif;
}

.container {
    width: min(1560px, 92%);
}

.navigation {
    min-height: 85px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
}

.hero-inner {
    min-height: 560px;
    padding-block: 25px;
}

.hero-content h1 {
    font-size: clamp(36px, 4.2vw, 70px);
    font-weight: 800;
    line-height: 1.15;
    font-feature-settings: "case" 1;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #c4c7c9;
}

.hero-render {
    min-height: 0;
}

.hero-visual {
    margin-right: 0;
}

.primary-button,
.secondary-button {
    font-size: 14px;
    font-weight: 600;
}

.section {
    padding-block: 40px;
}

h2 {
    font-weight: 700;
    font-size: 30px;
}

@media (max-width: 900px) {
    .hero-inner {
        min-height: auto;
        padding-block: 40px;
    }

    .hero-content h1 {
        font-size: clamp(32px, 8vw, 54px);
    }

    .navigation {
        min-height: 75px;
    }
}

/* TRIPLEX NAVIGATION AND SERVICES V4 */

.navigation {
    gap: 24px;
}

.brand {
    flex-shrink: 0;
}

.brand img {
    width: 250px;
}

nav {
    gap: clamp(12px, 1.5vw, 25px);
}

nav a {
    white-space: nowrap;
    font-size: 13px;
}

.languages {
    display: flex;
    gap: 7px;
    font-size: 12px;
    color: #85898c;
    align-items: center;
}

.current-lang {
    color: #c66b4e;
}

nav .nav-consult {
    border: 1px solid #c66b4e;
    padding: 13px 16px;
    color: #c66b4e;
}

nav .nav-consult:hover {
    background: #c66b4e;
    color: white;
}

.hero-content h1 {
    font-weight: 700;
}

#services {
    padding-top: 30px;
    padding-bottom: 30px;
}

#services .eyebrow {
    display: none;
}

#services h2 {
    font-size: 24px;
    margin-bottom: 22px;
}

.services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.service {
    position: relative;
    padding: 24px 18px;
    min-height: 190px;
    background: rgba(255,255,255,.015);
}

.service svg {
    width: 42px;
    height: 42px;
    color: #c66b4e;
}

.service h3 {
    font-size: 17px;
    margin: 18px 0 10px;
    font-weight: 600;
}

.service p {
    font-size: 12px;
    margin: 0;
    line-height: 1.7;
}

.service .service-number {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #85898c;
    font-size: 10px;
}

.service:hover {
    border-color: #c66b4e;
    background: rgba(198,107,78,.045);
}

@media (max-width: 1200px) {
    .navigation {
        flex-wrap: wrap;
        min-height: 75px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 25px;
    }

    nav.open {
        display: flex;
    }
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .brand img {
        width: 205px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service {
        padding: 20px 12px;
    }

    .service h3 {
        font-size: 14px;
    }

    .service:last-child {
        grid-column: 1 / -1;
    }
}

/* TRIPLEX LOGO V5 */

.brand img {
    width: 300px;
    height: auto;
}

@media (max-width: 1200px) {
    .brand img {
        width: 260px;
    }
}

@media (max-width: 600px) {
    .brand img {
        width: 220px;
    }
}

/* TRIPLEX ABOUT AND PROCESS V6 */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-block: 65px;
}

.about-intro h2 {
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.4;
}

.about-intro h2 span {
    color: var(--orange);
}

.about-intro p {
    max-width: 570px;
    color: #b9bdc0;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-principles article {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.about-principles article > span {
    color: var(--orange);
    font-size: 28px;
    font-weight: 300;
}

.about-principles h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.about-principles p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.process-section {
    padding-block: 50px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.process-grid article {
    position: relative;
    padding: 25px;
    border-top: 1px solid var(--orange);
    background: rgba(255,255,255,.018);
}

.process-grid article > span {
    color: var(--orange);
    font-size: 46px;
    font-weight: 300;
}

.process-grid h3 {
    font-size: 18px;
    margin: 20px 0 12px;
}

.process-grid p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-block: 40px;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}


/* TRIPLEX PROJECT GALLERY V7 */

.gallery-section {
    padding-block: 55px;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.gallery-filter {
    background: transparent;
    border: 1px solid #45494b;
    color: #c4c7c9;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

.gallery-filter:hover,
.gallery-filter.active {
    border-color: #c66b4e;
    color: #c66b4e;
    background: rgba(198,107,78,.06);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    border: 1px solid #45494b;
    overflow: hidden;
    transition: border-color .2s;
}

.gallery-card[hidden] {
    display: none !important;
}

.gallery-card:hover {
    border-color: #c66b4e;
}

.gallery-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2c3032;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 30px 30px;
}

.gallery-placeholder span {
    color: #85898c;
    font-size: 12px;
    letter-spacing: 3px;
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-info {
    padding: 22px;
}

.gallery-info small {
    color: #c66b4e;
    font-size: 11px;
}

.gallery-info h3 {
    font-size: 19px;
    margin: 12px 0;
}

.gallery-info p {
    color: #a5aaad;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filter {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* DATABASE PROJECT GALLERY */

.gallery-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #272b2d;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-card:hover .gallery-photo img {
    transform: scale(1.035);
}

.concept-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    background: #202426e8;
    border: 1px solid #c66b4e80;
    color: #f5f5f5;
    font-size: 11px;
}

.gallery-empty {
    grid-column: 1 / -1;
    padding: 55px 20px;
    border: 1px solid #85898c30;
    text-align: center;
    color: #85898c;
    font-size: 14px;
}

.gallery-card[hidden] {
    display: none !important;
}


/* TRIPLEX PROJECT DETAIL */

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .25s;
}

.project-card-link:hover {
    border-color: #c66b4e;
}

.project-detail-body {
    background: #272b2d;
    color: #f5f5f5;
}

.detail-header {
    border-bottom: 1px solid #85898c35;
    background: #202426;
}

.detail-header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.detail-brand {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #f5f5f5;
    text-decoration: none;
}

.detail-brand span {
    color: #c66b4e;
}

.detail-brand small {
    display: block;
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
}

.detail-navigation {
    display: flex;
    gap: 28px;
}

.detail-navigation a,
.detail-back {
    color: #a5aaad;
    font-size: 13px;
    text-decoration: none;
}

.detail-navigation a:hover,
.detail-back:hover {
    color: #c66b4e;
}

.detail-contact {
    padding: 12px 20px;
    border: 1px solid #c66b4e;
    color: #c66b4e;
    font-size: 13px;
    text-decoration: none;
}

.project-detail {
    padding-top: 45px;
    padding-bottom: 70px;
}

.detail-back {
    display: inline-block;
    margin-bottom: 35px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-title-row h1 {
    font-size: clamp(30px, 4vw, 54px);
    margin: 14px 0 0;
}

.detail-concept {
    border: 1px solid #c66b4e80;
    padding: 10px 16px;
    color: #c66b4e;
    font-size: 12px;
}

.detail-main-photo {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #45494b;
    background: #202426;
    cursor: zoom-in;
}

.detail-main-photo img {
    display: block;
    width: 100%;
    height: clamp(280px, 65vh, 720px);
    object-fit: contain;
}

.photo-expand {
    position: absolute;
    bottom: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #202426df;
    border: 1px solid #ffffff30;
    color: #f5f5f5;
}

.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.detail-thumbnail {
    padding: 0;
    border: 1px solid #45494b;
    background: #202426;
    cursor: pointer;
    overflow: hidden;
    opacity: .65;
}

.detail-thumbnail.active,
.detail-thumbnail:hover {
    border-color: #c66b4e;
    opacity: 1;
}

.detail-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    padding: 35px 0;
    margin-top: 35px;
    border-top: 1px solid #45494b;
    border-bottom: 1px solid #45494b;
}

.detail-facts small {
    display: block;
    color: #85898c;
    font-size: 12px;
    margin-bottom: 10px;
}

.detail-facts strong {
    color: #f5f5f5;
    font-size: 18px;
}

.detail-description {
    padding: 50px 0;
    max-width: 1000px;
}

.detail-description h2 {
    font-size: 28px;
    margin: 18px 0;
}

.detail-description p {
    color: #bfc2c4;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.detail-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    padding: 35px;
    margin-top: 30px;
    border: 1px solid #45494b;
    background: #202426;
}

.detail-bottom h2 {
    margin: 12px 0 0;
    font-size: 25px;
}

.detail-cta {
    background: #c66b4e;
    color: #151719;
    padding: 16px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.detail-footer {
    padding: 30px 0;
    border-top: 1px solid #45494b;
    color: #85898c;
    font-size: 12px;
}

/* FULLSCREEN PHOTO VIEWER */

.project-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #101213f5;
    color: #f5f5f5;
    overflow: hidden;
}

.project-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-lightbox::backdrop {
    background: #101213;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 85dvh;
    object-fit: contain;
    touch-action: pan-y;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    z-index: 2;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #ffffff30;
    background: #272b2ddd;
    color: #f5f5f5;
    font-size: 32px;
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-arrow.previous {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}

.lightbox-arrow[hidden] {
    display: none;
}

#lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: 2px;
}

@media (max-width: 800px) {

    .detail-navigation {
        display: none;
    }

    .detail-header-inner {
        min-height: 75px;
    }

    .detail-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-bottom {
        padding: 24px;
    }
}

@media (max-width: 500px) {

    .detail-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .detail-brand {
        font-size: 21px;
    }

    .lightbox-arrow {
        width: 36px;
        height: 44px;
    }

    .lightbox-arrow.previous {
        left: 5px;
    }

    .lightbox-arrow.next {
        right: 5px;
    }
}


/* REFINED PROJECT DETAIL GALLERY */

.detail-photo-stage {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.detail-main-photo {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.detail-main-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(68vh, 780px);
    object-fit: contain;
    margin: 0 auto;
}

.main-photo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 54px;
    padding: 0;
    border: 1px solid #ffffff30;
    background: #202426df;
    color: #f5f5f5;
    font-size: 32px;
    cursor: pointer;
    transition: .2s;
    z-index: 2;
}

.main-photo-arrow.previous {
    left: 16px;
}

.main-photo-arrow.next {
    right: 16px;
}

.main-photo-arrow:hover {
    background: #c66b4e;
    border-color: #c66b4e;
    color: #151719;
}

.main-photo-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 9px 18px;
    background: #202426df;
    border: 1px solid #ffffff25;
    color: #f5f5f5;
    font-size: 12px;
    letter-spacing: 2px;
    pointer-events: none;
}

.detail-thumbnails {
    margin-top: 20px;
}

@media (max-width: 600px) {

    .detail-main-photo img {
        max-height: 60vh;
    }

    .main-photo-arrow {
        width: 32px;
        height: 42px;
        font-size: 26px;
    }

    .main-photo-arrow.previous {
        left: 8px;
    }

    .main-photo-arrow.next {
        right: 8px;
    }

    .main-photo-counter {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .photo-expand {
        bottom: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }
}


/* TRIPLEX ARCHITECTURAL NAVIGATION GRID */

@media (min-width: 1101px) {

    header .triplex-grid-nav {
        display: flex;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-top: 1px solid #85898c35;
        border-bottom: 1px solid #85898c35;
        border-left: 1px solid #85898c35;
    }

    header .triplex-grid-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        padding: 0 15px;
        margin: 0;
        border: 0;
        border-right: 1px solid #85898c35;
        border-radius: 0;
        background: transparent;
        white-space: nowrap;
        text-decoration: none;
        transition:
            background-color .22s ease,
            color .22s ease,
            box-shadow .22s ease;
    }

    header .triplex-grid-nav a:hover,
    header .triplex-grid-nav a:focus-visible {
        background: #c66b4e;
        color: #ffffff;
        box-shadow: inset 0 0 18px #ffffff10;
    }

    header .triplex-grid-nav a::after,
    header .triplex-grid-nav a::before {
        display: none;
    }
}


/* FULL HEIGHT NAVIGATION DIVIDERS */

@media (min-width: 1101px) {

    header .triplex-grid-nav {
        align-self: stretch;
        align-items: stretch;
        border: 0;
        gap: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    header .triplex-grid-nav a {
        position: relative;
        min-height: 0;
        height: 100%;
        padding: 0 16px;
        border: 0;
        border-left: 1px solid #85898c35;
        border-radius: 0;
        box-shadow: none;
    }

    header .triplex-grid-nav a:hover,
    header .triplex-grid-nav a:focus-visible {
        background: #c66b4e;
        color: #ffffff;
        box-shadow: none;
    }

    header :has(> .triplex-grid-nav) {
        padding-top: 0;
        padding-bottom: 0;
        align-items: stretch;
        min-height: 84px;
    }

    header :has(> .triplex-grid-nav)
    > :not(.triplex-grid-nav) {
        align-self: center;
    }

    header .triplex-grid-nav > a {
        height: auto;
        align-self: stretch;
    }
}



/* COMPLETE PROJECT GALLERY */

.all-projects-main {
    min-height: 75vh;
    padding-top: 30px;
    padding-bottom: 60px;
}

.all-projects-action {
    display: flex;
    justify-content: center;
    margin: 35px 0 10px;
}

.all-projects-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding: 16px 28px;
    border: 1px solid #c66b4e;
    color: #c66b4e;
    background: transparent;
    text-decoration: none;
    font-size: 14px;
    transition: background .22s, color .22s;
}

.all-projects-link:hover,
.all-projects-link:focus-visible {
    background: #c66b4e;
    color: #ffffff;
}

.all-projects-link span {
    font-size: 22px;
}

.gallery-card[hidden] {
    display: none !important;
}

/* PUBLIC BLOG */

.public-blog-body .gallery-heading h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.blog-card .gallery-photo {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card .gallery-info {
    padding: 22px;
}

.blog-card .gallery-info small {
    color: #c66b4e;
}

.blog-card .gallery-info h3 {
    font-size: clamp(16px, 1.3vw, 21px);
    line-height: 1.6;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.blog-card:focus-visible {
    outline: 2px solid #c66b4e;
    outline-offset: 3px;
}

.public-blog-body .gallery-grid {
    align-items: stretch;
}

@media (max-width: 650px) {
    .blog-card .gallery-info {
        padding: 16px;
    }
}

/* BLOG ARTICLE DETAIL */

.blog-detail {
    padding-top: 48px;
    padding-bottom: 80px;
    min-height: 75vh;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a8abad;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}

.blog-back:hover {
    color: #c66b4e;
}

.blog-article {
    width: min(100%, 1100px);
    margin: 40px auto 0;
}

.blog-article-heading {
    margin-bottom: 32px;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #85898c;
    margin-bottom: 18px;
}

.blog-article-meta span {
    color: #c66b4e;
}

.blog-article-heading h1 {
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
    color: #f5f5f5;
    overflow-wrap: anywhere;
}

.blog-article-cover {
    width: 100%;
    background: #202426;
    border: 1px solid #85898c33;
}

.blog-article-cover img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: contain;
}

.blog-article-content {
    width: min(100%, 900px);
    margin: 48px auto;
    color: #d6d7d8;
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.blog-article-content p {
    margin: 0 0 24px;
}

.blog-article-content h2 {
    font-size: 28px;
    line-height: 1.5;
    margin: 36px 0 18px;
    color: #f5f5f5;
}

.blog-article-content h3,
.blog-article-content h4 {
    font-size: 22px;
    line-height: 1.5;
    margin: 28px 0 16px;
    color: #f5f5f5;
}

.blog-article-content strong,
.blog-article-content b {
    color: #f5f5f5;
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 30px;
    margin: 20px 0;
}

.blog-article-content li {
    margin-bottom: 10px;
}

.blog-article-content blockquote {
    border-left: 3px solid #c66b4e;
    padding: 16px 24px;
    margin: 30px 0;
    background: #85898c0d;
}

.blog-article-content a {
    color: #c66b4e;
    text-decoration: underline;
}

.blog-article-content figure {
    margin: 36px auto;
    max-width: 100%;
}

.blog-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.blog-article-content figure img {
    width: 100%;
}

.blog-article-content figcaption {
    text-align: center;
    font-size: 13px;
    color: #85898c;
    padding: 12px;
}

.blog-article-content .image-full {
    width: 100%;
}

.blog-article-content .image-medium {
    width: 70%;
}

.blog-article-content .image-small {
    width: 40%;
}

.blog-article-content .align-left {
    text-align: left;
}

.blog-article-content .align-center {
    text-align: center;
}

.blog-article-content .align-right {
    text-align: right;
}

.blog-article-bottom {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #85898c33;
}

@media (max-width: 650px) {
    .blog-detail {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .blog-article {
        margin-top: 24px;
    }

    .blog-article-content {
        margin-top: 28px;
        font-size: 15px;
        line-height: 1.85;
    }

    .blog-article-content h2 {
        font-size: 23px;
    }

    .blog-article-content .image-small {
        width: 60%;
    }

    .blog-article-content .image-medium {
        width: 85%;
    }
}

/* HOMEPAGE BLOG */

.home-blog {
    padding-top: 65px;
    padding-bottom: 65px;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.home-blog .blog-card {
    height: 100%;
}

.home-blog .gallery-info {
    padding: 22px;
}

.home-blog .gallery-info h3 {
    margin-top: 8px;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .home-blog {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .home-blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-blog .gallery-info {
        padding: 16px;
    }
}


/* TRIPLEX CONTACT SECTION */

.contact-section {
    padding-block: 75px;
    scroll-margin-top: 100px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border: 1px solid var(--line);
}

.contact-intro {
    padding: clamp(25px, 4vw, 65px);
    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );
    background-size: 45px 45px;
    display: flex;
    flex-direction: column;
}

.contact-intro h2 {
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1.45;
    margin: 0 0 24px;
}

.contact-intro h2 span {
    color: var(--orange);
}

.contact-description {
    max-width: 430px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 15px;
    margin: 0 0 35px;
}

.contact-details {
    border-top: 1px solid var(--line);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.contact-detail svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--orange);
}

.contact-detail small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.contact-detail strong {
    font-size: 14px;
    font-weight: 500;
}

.contact-brand {
    margin-top: auto;
    padding-top: 45px;
}

.contact-brand img {
    width: 230px;
    max-width: 100%;
    opacity: .85;
}

.contact-form-panel {
    padding: clamp(25px, 4vw, 50px);
    border-left: 1px solid var(--line);
    background: rgba(0,0,0,.09);
    min-width: 0;
}

.contact-form-panel h3 {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 600;
}

.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#contact-form label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--white);
    font-size: 13px;
    min-width: 0;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    background: #272b2d;
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}

#contact-form input,
#contact-form select {
    height: 52px;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: var(--orange);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #85898c;
}

#contact-form select {
    color-scheme: dark;
}

#contact-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

.contact-message {
    margin-top: 22px;
}

.contact-privacy {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
    margin: 18px 0;
}

.contact-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 16px 22px;
    background: var(--orange);
    color: #fff;
    border: 1px solid var(--orange);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.contact-submit:hover {
    background: #a9563d;
}

.contact-submit:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.contact-submit:disabled {
    opacity: .55;
    cursor: wait;
}

.contact-status {
    margin-top: 18px;
    padding: 15px;
    border: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.8;
}

.contact-status.success {
    border-color: #6f9b7b;
    color: #a7d3b0;
}

.contact-status.error {
    border-color: var(--orange);
    color: #f0b3a0;
}

#contact-form [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .contact-brand {
        padding-top: 30px;
    }
}

@media (max-width: 550px) {
    .contact-section {
        padding-block: 40px;
    }

    .contact-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-intro,
    .contact-form-panel {
        padding: 22px;
    }

    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        font-size: 16px;
    }

    .contact-form-panel h3 {
        font-size: 19px;
    }
}


/* DYNAMIC COMPANY INFORMATION */

.contact-detail strong,
.contact-detail a {
    display: block;
    overflow-wrap: anywhere;
}

.contact-detail a {
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.contact-detail a:hover {
    color: #c66b4e;
}

.contact-hours {
    white-space: pre-line;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.contact-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(198,107,78,.65);
    color: #c66b4e;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.contact-socials a:hover {
    background: #c66b4e;
    color: #fff;
}

.contact-socials a:focus-visible {
    outline: 2px solid #c66b4e;
    outline-offset: 4px;
}


/* COMPANY STATISTICS */

.triplex-statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 60px;
    margin-bottom: 60px;
    border: 1px solid rgba(255,255,255,.13);
    background: #272b2d;
}

.triplex-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.triplex-stat + .triplex-stat {
    border-left: 1px solid rgba(255,255,255,.13);
}

.triplex-stat strong {
    color: #c66b4e;
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 600;
    line-height: 1.1;
}

.triplex-stat span {
    color: #d5d5d5;
    font-size: 14px;
}

@media (max-width: 600px) {
    .triplex-statistics {
        grid-template-columns: 1fr;
    }

    .triplex-stat + .triplex-stat {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.13);
    }

    .triplex-stat {
        padding: 30px 15px;
    }
}


/* SOCIAL SVG ICONS */

.contact-socials a svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.contact-socials a {
    transition:
        background .2s,
        color .2s,
        border-color .2s;
}


/* BILINGUAL LANGUAGE SWITCHER */

.triplex-grid-nav .languages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 0 14px;
}

.triplex-grid-nav .languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: #85898c;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.triplex-grid-nav .languages a.current-lang {
    color: #c66b4e;
}

.triplex-grid-nav .languages a:hover {
    color: #f5f5f5;
    background: transparent;
}

.triplex-grid-nav .languages a:focus-visible {
    outline: 1px solid #c66b4e;
}

.triplex-grid-nav .languages span {
    color: #85898c;
    font-size: 12px;
}


/* TRIPLEX MOBILE NAVIGATION V2 */

.mobile-language-switcher {
    display: none;
}

@media (max-width: 900px) {

    header .navigation {
        min-height: 76px;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    header .brand {
        flex-shrink: 1;
        min-width: 0;
    }

    header .brand img {
        width: clamp(145px, 42vw, 195px);
        max-width: 100%;
    }

    header .mobile-language-switcher {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-left: auto;
        padding: 0 4px;
        white-space: nowrap;
    }

    header .mobile-language-switcher a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        min-height: 42px;
        padding: 8px 3px;
        color: #85898c;
        font-size: 12px;
        font-weight: 700;
    }

    header .mobile-language-switcher a.current-lang {
        color: #c66b4e;
    }

    header .mobile-language-switcher span {
        color: #85898c;
        font-size: 12px;
    }

    header .triplex-grid-nav .languages {
        display: none;
    }

    header .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #85898c45;
        color: #f5f5f5;
        font-size: 25px;
        line-height: 1;
        transition: background .2s, border-color .2s;
    }

    header .menu-toggle:focus-visible {
        outline: 2px solid #c66b4e;
        outline-offset: 3px;
    }

    header .menu-toggle:hover {
        background: #c66b4e;
        border-color: #c66b4e;
    }

    header .triplex-grid-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 14px;
        border-top: 1px solid #85898c35;
        border-bottom: 1px solid #85898c35;
    }

    header .triplex-grid-nav.open {
        display: flex;
    }

    header .triplex-grid-nav > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 49px;
        padding: 12px 15px;
        border: 0;
        border-bottom: 1px solid #85898c22;
        background: transparent;
        color: #f5f5f5;
        font-size: 14px;
        white-space: normal;
    }

    header .triplex-grid-nav > a:hover,
    header .triplex-grid-nav > a.active {
        background: #c66b4e16;
        color: #c66b4e;
    }

    header .triplex-grid-nav > a.nav-consult {
        justify-content: center;
        margin-top: 12px;
        border: 1px solid #c66b4e;
        color: #c66b4e;
    }

    header .triplex-grid-nav > a.nav-consult:hover {
        background: #c66b4e;
        color: #ffffff;
    }
}

@media (max-width: 480px) {

    header .navigation {
        gap: 8px;
    }

    header .brand img {
        width: clamp(135px, 39vw, 165px);
    }

    header .mobile-language-switcher {
        gap: 3px;
    }

    header .menu-toggle {
        width: 42px;
        height: 42px;
    }
}


/* TRIPLEX MOBILE HOMEPAGE V1 */

@media (max-width: 900px) {

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        min-height: auto;
        padding-top: 38px;
        padding-bottom: 32px;
    }

    .hero-content {
        width: 100%;
        max-width: 680px;
    }

    .hero-content .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
        line-height: 1.8;
        margin-bottom: 17px;
    }

    .hero-content h1 {
        font-size: clamp(32px, 7vw, 52px);
        line-height: 1.22;
        margin-bottom: 18px;
        overflow-wrap: anywhere;
    }

    .hero-description {
        max-width: 560px;
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 22px;
    }

    .hero-content .primary-button,
    .hero-content .secondary-button {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 17px;
        margin: 4px 5px 4px 0;
        font-size: 13px;
    }

    .hero-visual {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .hero-render {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: center;
        mask-image: none;
    }

    .dimension-top {
        left: 5%;
        right: 5%;
    }

    .dimension-level {
        width: 22%;
        font-size: 9px;
    }

    .concept-label {
        right: 5px;
        bottom: 4px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    #services {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    #services > .eyebrow {
        font-size: 10px;
        margin-bottom: 12px;
    }

    #services h2 {
        font-size: clamp(25px, 5vw, 32px);
        line-height: 1.35;
        margin-bottom: 22px;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .services-grid .service {
        position: relative;
        min-width: 0;
        padding: 24px 22px;
        border: 1px solid var(--line);
        border-bottom: 0;
        background: transparent;
    }

    .services-grid .service:last-child {
        border-bottom: 1px solid var(--line);
    }

    .services-grid .service svg {
        display: block;
        width: 29px;
        height: 29px;
        color: var(--orange);
        margin-bottom: 17px;
    }

    .services-grid .service h3 {
        font-size: 19px;
        line-height: 1.45;
        margin: 0 0 10px;
        padding-right: 38px;
    }

    .services-grid .service p {
        font-size: 13px;
        line-height: 1.8;
        margin: 0;
        max-width: 560px;
    }

    .services-grid .service .service-number {
        position: absolute;
        top: 24px;
        right: 20px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .services-grid .service:hover {
        background: #303638;
    }
}

@media (max-width: 480px) {

    .hero-inner {
        padding-top: 30px;
        padding-bottom: 26px;
        gap: 19px;
    }

    .hero-content h1 {
        font-size: clamp(30px, 8vw, 39px);
        line-height: 1.25;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.75;
    }

    .hero-content .primary-button,
    .hero-content .secondary-button {
        padding: 11px 13px;
        font-size: 12px;
    }

    .hero-render {
        aspect-ratio: 4 / 3;
    }

    #services {
        padding-block: 34px;
    }

    .services-grid .service {
        padding: 21px 17px;
    }

    .services-grid .service h3 {
        font-size: 18px;
    }

    .services-grid .service p {
        font-size: 13px;
    }
}


/* TRIPLEX MOBILE GALLERY V1 */

@media (max-width: 900px) {

    .gallery-section {
        padding-top: 38px;
        padding-bottom: 45px;
    }

    .gallery-heading h2 {
        font-size: clamp(27px, 5vw, 38px);
        line-height: 1.3;
    }

    .gallery-filters {
        display: flex;
        flex-wrap: nowrap;
        gap: 9px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 3px 0 12px;
        margin: 20px 0 24px;
        scrollbar-width: thin;
        scrollbar-color: #c66b4e #272b2d;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filter {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
        padding: 10px 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-photo {
        aspect-ratio: 4 / 3;
    }

    .gallery-info {
        padding: 17px;
    }

    .gallery-info h3 {
        font-size: 17px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .gallery-info p {
        font-size: 12px;
        line-height: 1.6;
    }

    .project-detail {
        padding-top: 28px;
        padding-bottom: 45px;
    }

    .detail-back {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .detail-title-row {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 22px;
    }

    .detail-title-row h1 {
        font-size: clamp(25px, 5vw, 38px);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .detail-photo-stage {
        width: 100%;
        max-width: 100%;
    }

    .detail-main-photo {
        width: 100%;
        max-width: 100%;
    }

    .detail-main-photo img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 65vh;
        object-fit: contain;
    }

    .detail-thumbnails {
        display: flex;
        grid-template-columns: none;
        gap: 10px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 3px 0 10px;
        margin-top: 12px;
        scrollbar-width: thin;
        scrollbar-color: #c66b4e #272b2d;
        -webkit-overflow-scrolling: touch;
    }

    .detail-thumbnail {
        flex: 0 0 105px;
        width: 105px;
    }

    .detail-thumbnail img {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
        padding: 25px 0;
        margin-top: 25px;
    }

    .detail-facts strong {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .detail-description {
        padding: 35px 0;
    }

    .detail-description h2 {
        font-size: 24px;
    }

    .detail-bottom {
        padding: 24px;
        gap: 20px;
    }

    .detail-cta {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 48px;
    }

    #lightbox-image {
        max-width: 100vw;
        max-height: 82dvh;
        object-fit: contain;
        touch-action: pan-y;
    }
}

@media (max-width: 600px) {

    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .gallery-photo {
        aspect-ratio: 16 / 10;
    }

    .gallery-info {
        padding: 17px 18px;
    }

    .gallery-info h3 {
        font-size: 18px;
    }

    .detail-main-photo img {
        max-height: 58vh;
    }

    .detail-thumbnails {
        gap: 9px;
    }

    .detail-thumbnail {
        flex-basis: 88px;
        width: 88px;
    }

    .main-photo-arrow {
        width: 34px;
        height: 44px;
    }

    .main-photo-arrow.previous {
        left: 5px;
    }

    .main-photo-arrow.next {
        right: 5px;
    }

    .main-photo-counter {
        bottom: 10px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .detail-facts {
        gap: 18px 12px;
    }

    .detail-bottom {
        padding: 20px 17px;
    }

    .detail-bottom h2 {
        font-size: 22px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-arrow.previous {
        left: 4px;
    }

    .lightbox-arrow.next {
        right: 4px;
    }
}

.gallery-filter:focus-visible,
.detail-thumbnail:focus-visible,
.detail-main-photo:focus-visible {
    outline: 2px solid #c66b4e;
    outline-offset: 3px;
}

/* TRIPLEX VERTICAL LANGUAGE SWITCH */

@media (max-width: 900px) {

    header .mobile-language-switcher {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
        width: 44px;
        height: 48px;
        flex: 0 0 44px;
        gap: 0;
        padding: 0;
        margin-left: auto;
        border: 1px solid #45494b;
        overflow: hidden;
    }

    header .mobile-language-switcher span {
        display: none;
    }

    header .mobile-language-switcher a {
        display: flex;
        flex: 1 1 50%;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 0;
        color: #a5aaad;
        font-size: 11px;
        font-weight: 600;
        background: transparent;
        transition: background .2s, color .2s;
    }

    header .mobile-language-switcher a + a {
        border-top: 1px solid #45494b;
    }

    header .mobile-language-switcher a.current-lang {
        color: #ffffff;
        background: #c66b4e;
    }

    header .mobile-language-switcher a:not(.current-lang):hover {
        color: #c66b4e;
        background: #c66b4e18;
    }
}

/* TRIPLEX MOBILE LANGUAGE ALIGNMENT */
@media (max-width: 900px) {
    header .navigation .mobile-language-switcher {
        display: flex !important;
        flex-direction: column !important;
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        flex: 0 0 48px !important;
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 8px 0 auto !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    header .navigation .mobile-language-switcher a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 0 !important;
        width: 100% !important;
        min-height: 0 !important;
        height: 24px !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }

    header .navigation .menu-toggle {
        width: 48px !important;
        height: 48px !important;
        flex: 0 0 48px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}


/* TRIPLEX ACCESSIBILITY */

.primary-button,
.primary-button:hover,
.primary-button:focus-visible,
.current-lang,
.current-lang:hover,
.current-lang:focus-visible {
    background-color: #A34F36;
    color: #FFFFFF;
}

.service-number {
    color: #A0A4A6;
    opacity: 1;
}

.eyebrow {
    color: #E18F73;
    opacity: 1;
}

@media (max-width: 900px) {

    .mobile-language-switcher {
        width: 48px;
        height: 58px;
        min-height: 58px;
        flex-shrink: 0;
    }

    .mobile-language-switcher a {
        min-height: 28px;
        height: 28px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }

    .mobile-language-switcher a:not(.current-lang) {
        color: #BFC3C5;
    }

    .mobile-language-switcher a.current-lang {
        background-color: #A34F36;
        color: #FFFFFF;
    }

    .menu-toggle {
        width: 58px;
        height: 58px;
        min-height: 58px;
        flex-shrink: 0;
    }
}


/* TRIPLEX STICKY HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #24282a;
    border-bottom: 1px solid #C66B4E;
    box-shadow: 0 5px 20px #00000025;
}

@supports (backdrop-filter: blur(12px)) {
    .header {
        background: rgba(36, 40, 42, 0.96);
        backdrop-filter: blur(12px);
    }
}

html {
    scroll-padding-top: 110px;
}

section[id] {
    scroll-margin-top: 10px;
}

@media (max-width: 900px) {

    html {
        scroll-padding-top: 100px;
    }

    header .navigation .mobile-language-switcher {
        height: 58px !important;
        min-height: 58px !important;
    }

    header .navigation .mobile-language-switcher a {
        min-height: 28px !important;
        height: 28px !important;
    }

    header .navigation .mobile-language-switcher
    a.current-lang {
        background: #A34F36;
        color: #FFFFFF;
    }

    header .navigation .mobile-language-switcher
    a:not(.current-lang) {
        color: #BFC3C5;
    }

    header .navigation .menu-toggle {
        width: 58px !important;
        height: 58px !important;
        min-height: 58px !important;
        flex: 0 0 58px !important;
    }

    header .triplex-grid-nav.open {
        max-height: calc(100vh - 110px);
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}


/* TRIPLEX SERVICE CONTRAST */

body .service-number {
    color: #BFC3C5 !important;
    opacity: 1 !important;
}
