:root {
    --bg: #1a1a1a;
    --text: #f5f5f5;
    --primary: #c4622d;
    --card: #2a2a2a;
    --muted: #b8b8b8;
    --border: rgba(255, 255, 255, .12)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif
}

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

.container {
    width: min(1180px, 92%);
    margin: auto
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4%;
    background: rgba(26, 26, 26, .72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px
}

.main-nav {
    display: flex;
    gap: 28px;
    color: #ddd
}

.main-nav a {
    font-size: 14px
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.lang-switch {
    display: flex;
    gap: 5px;
    border: 1px solid var(--border);
    padding: 4px
}

.lang-switch button,
.menu-btn {
    background: transparent;
    color: var(--text);
    border: 0;
    padding: 8px;
    cursor: pointer
}

.lang-switch button.active {
    background: var(--primary)
}

.menu-btn {
    display: none;
    font-size: 24px
}

.page {
    display: none
}

.active-page {
    display: block
}

.hero,
.sub-hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(90deg, rgba(26, 26, 26, .94), rgba(26, 26, 26, .38)), var(--hero) center/cover;
    display: flex;
    align-items: center
}

.sub-hero {
    min-height: 58vh
}

.hero-content {
    position: relative;
    max-width: 760px
}

.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700
}

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    margin: 0
}

h1 {
    font-size: clamp(54px, 8vw, 110px);
    line-height: .9;
    margin: 16px 0
}

h2 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    margin: 12px 0
}

h3 {
    font-size: 28px
}

.hero p,
.split p {
    font-size: 20px;
    line-height: 1.7;
    color: #ddd;
    max-width: 640px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: .3s
}

.btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white
}

.btn.ghost {
    background: rgba(255, 255, 255, .06)
}

.btn:hover {
    transform: translateY(-3px)
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.section {
    padding: 100px 0
}

.section-head {
    max-width: 760px;
    margin-bottom: 36px
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.image-card,
.project-mini {
    height: 340px;
    border: 1px solid var(--border);
    background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .05)), var(--img) center/cover;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    overflow: hidden;
    transition: .45s
}

.image-card:hover,
.project-mini:hover {
    transform: translateY(-8px);
    filter: saturate(1.15)
}

.dark-band {
    background: #111;
    border-block: 1px solid var(--border)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center
}

.stats-grid strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 68px;
    color: var(--primary)
}

.stats-grid span {
    color: var(--muted)
}

.project-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.project-mini {
    height: 300px
}

.testimonial-grid,
.process-grid,
.value-grid,
.team-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.quote,
.process-grid div,
.value-grid div,
.office-grid div,
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 28px
}

.quote p {
    color: #ddd;
    line-height: 1.8
}

.cta-section {
    padding-top: 20px
}

.cta-box {
    background: linear-gradient(135deg, #2a2a2a, #161616);
    border: 1px solid var(--border);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}

.tabs,
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px
}

.tabs button,
.filter-tabs button {
    background: #242424;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer
}

.tabs button.active,
.filter-tabs button.active {
    background: var(--primary);
    border-color: var(--primary)
}

.tab-content {
    background: var(--card);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px
}

.tab-content img {
    width: 100%;
    height: 380px;
    object-fit: cover
}

.tab-content li {
    margin: 12px 0;
    color: #ddd
}

.project-card {
    height: 360px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .1)), var(--img) center/cover;
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: .3s
}

.project-card.featured {
    grid-column: span 1
}

.project-card:hover {
    transform: scale(1.02)
}

.project-card span {
    color: var(--primary);
    font-weight: 700
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.timeline div {
    border-left: 2px solid var(--primary);
    padding: 20px;
    background: var(--card)
}

.timeline b {
    display: block;
    color: var(--primary);
    font-size: 24px
}

.team-grid article {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 18px
}

.team-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin-bottom: 16px
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px
}

.contact-form {
    display: grid;
    gap: 15px
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: #1d1d1d;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px;
    font-family: inherit
}

.office-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px
}

.office-grid a {
    color: var(--primary)
}

.success {
    display: none;
    color: var(--primary)
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: #111
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: var(--muted)
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: .8s
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

@media(max-width:900px) {
    .menu-btn {
        display: block
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #181818;
        flex-direction: column;
        padding: 25px 6%;
        border-bottom: 1px solid var(--border)
    }

    .main-nav.open {
        display: flex
    }

    .service-grid,
    .project-strip,
    .stats-grid,
    .testimonial-grid,
    .process-grid,
    .value-grid,
    .team-grid,
    .project-grid,
    .split,
    .contact-layout,
    .tab-content,
    .timeline {
        grid-template-columns: 1fr
    }

    .hero,
    .sub-hero {
        min-height: 72vh
    }

    .section {
        padding: 70px 0
    }

    .cta-box,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start
    }

    h1 {
        font-size: 54px
    }

    .image-card,
    .project-mini {
        height: 260px
    }
}


/* Professional project cards */
.project-card-detailed {
    min-height: 430px;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to top, rgba(0, 0, 0, .94), rgba(0, 0, 0, .35), rgba(0, 0, 0, .08)), var(--img) center/cover;
}

.project-card-detailed:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 34%, rgba(0, 0, 0, .72));
    opacity: .85;
    transition: .35s
}

.project-card-detailed:hover:before {
    opacity: .65
}

.project-card-detailed:hover {
    transform: translateY(-6px) scale(1.01)
}

.project-card-inner {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 30px;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px
}

.project-card-inner small {
    color: #fff;
    text-transform: lowercase;
    letter-spacing: 1.6px;
    font-size: 12px;
    opacity: .78
}

.project-card-detailed span {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 13px
}

.project-card-detailed h3 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: .95;
    text-transform: uppercase;
    text-shadow: 0 10px 28px rgba(0, 0, 0, .5)
}

.project-card-detailed h3 em {
    font-style: normal;
    color: var(--primary);
    font-size: .72em;
    white-space: nowrap
}

.project-meta {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 14px;
    display: grid;
    gap: 6px;
    color: #eee
}

.project-meta p {
    margin: 0;
    font-size: 15px
}

.project-meta b {
    color: #fff
}

.project-meta strong {
    display: inline-flex;
    width: max-content;
    margin-top: 4px;
    color: #fff;
    background: rgba(196, 98, 45, .18);
    border: 1px solid rgba(196, 98, 45, .45);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px
}

@media(max-width:900px) {
    .project-card-detailed {
        min-height: 360px
    }

    .project-card-inner {
        padding: 24px
    }
}

/* Fixed project popup + carousel */
/* Fixed project popup + carousel */
.project-card-detailed {
    cursor: pointer
}

.project-card-detailed:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px
}

body.modal-open {
    overflow: hidden
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.project-modal.open {
    display: flex
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px)
}

.project-modal-box {
    position: relative;
    z-index: 1;
    width: min(1540px, 96vw);
    height: min(880px, 92vh);
    background: #111;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    box-shadow: 0 60px 160px rgba(0, 0, 0, .8);
    overflow: hidden;
    border-radius: 4px
}

.project-modal-close {
    position: absolute;
    right: 22px;
    top: 22px;
    z-index: 10;
    width: 44px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(20, 20, 20, .6);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 28px;
    line-height: 48px;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 4px
}

.project-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg)
}

.project-modal-gallery {
    position: relative;
    min-width: 0;
    background: #050505;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.project-gallery-main {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000
}

.project-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .4s ease-in-out
}

.project-gallery-main img.fade-out {
    opacity: 0
}

.project-modal-view-full {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 10;
    padding: 10px 18px;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.project-modal-view-full:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px)
}

.project-modal-view-full::before {
    content: "↗";
    font-size: 16px;
    line-height: 1
}

/* Fullscreen Styles */
.project-modal-gallery:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
}

.project-modal-gallery:fullscreen .project-gallery-main {
    flex: 1;
}

.project-modal-gallery:fullscreen .project-thumbs {
    background: rgba(0, 0, 0, 0.8);
}

.project-modal-gallery:fullscreen .project-modal-view-full {
    top: 30px;
    left: 30px;
}

.project-modal-gallery:fullscreen .project-modal-view-full::before {
    content: "↙";
}

.project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center
}

.project-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1)
}

.project-nav.prev {
    left: 24px
}

.project-nav.next {
    right: 24px
}

.project-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 24px;
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    scrollbar-width: none;
    -ms-overflow-style: none
}

.project-thumbs::-webkit-scrollbar {
    display: none
}

.project-thumbs button {
    flex: 0 0 100px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    background: #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    opacity: .5;
    transition: .3s
}

.project-thumbs button.active {
    border-color: var(--primary);
    opacity: 1;
    transform: scale(1.05)
}

.project-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.project-modal-info {
    padding: 60px 50px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #111, #0d0d0d)
}

.project-modal-info .eyebrow {
    margin-bottom: 8px;
    display: block
}

.project-modal-info h2 {
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1;
    margin: 10px 0 30px;
    text-transform: uppercase;
    font-weight: 400
}

.project-modal-info h2 em {
    font-style: normal;
    font-size: .55em;
    color: var(--muted);
    margin-left: 12px;
    letter-spacing: 1px
}

.project-detail-table {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 30px;
    display: grid;
    gap: 8px
}

.project-detail-table div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: baseline
}

.project-detail-table b {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 700
}

.project-detail-table span {
    color: #eee;
    font-weight: 500;
    font-size: 15px
}

.project-modal-desc {
    color: #bbb;
    line-height: 1.7;
    font-size: 16px;
    margin: 0 0 35px;
    font-family: inherit
}

@media(max-width:1100px) {
    .project-modal-box {
        grid-template-columns: 1.2fr 1fr
    }
}

@media(max-width:900px) {
    .project-modal {
        padding: 0
    }

    .project-modal-box {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        overflow-y: auto
    }

    .project-modal-gallery {
        height: auto;
        max-height: 75vh;
        background: #000
    }

    .project-gallery-main {
        height: 55vh;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .project-gallery-main img {
        object-fit: contain;
        width: 100%;
        height: 100%
    }

    .project-thumbs {
        padding: 12px 15px;
        gap: 8px;
        background: #050505
    }

    .project-thumbs button {
        flex-basis: 85px;
        height: 56px
    }

    .project-modal-info {
        padding: 35px 22px 60px
    }

    .project-modal-info h2 {
        font-size: 34px;
        margin-bottom: 20px
    }

    .project-detail-table div {
        grid-template-columns: 1fr;
        gap: 4px
    }

    .project-nav {
        width: 44px;
        height: 44px;
        font-size: 24px
    }

    .project-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px
    }
}