:root {
    --color-background: #47143D;
    --color-background-alt: #34112C;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-overlay: rgba(71, 20, 61, 0.75);
    --color-overlay-strong: rgba(71, 20, 61, 0.9);
    --color-accent: #B99750;
    --color-accent-dark: #9A7A34;
    --color-text: #F5F5F5;
    --color-text-secondary: rgba(245, 245, 245, 0.78);
    --font-primary: 'Poppins', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Playfair Display', 'Times New Roman', serif;
    --line-height-base: 1.6;
    --max-width: 1200px;
    --transition-base: all 0.4s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background: linear-gradient(180deg, rgba(71, 20, 61, 0.85) 0%, rgba(71, 20, 61, 1) 60%, rgba(41, 12, 35, 1) 100%);
    color: var(--color-text);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

[data-parallax-background] {
    position: relative;
    --parallax-image: none;
    --parallax-offset: 0px;
    background: transparent;
    overflow: hidden;
    z-index: 0;
}

[data-parallax-background]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: var(--parallax-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate3d(0, var(--parallax-offset), 0);
    transition: transform 0.2s ease-out;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover,
a:focus {
    color: #d7b97c;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    width: min(var(--max-width), 90vw);
    margin: 0 auto;
    padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-text);
}

p {
    margin: 0 0 1.5rem;
    color: var(--color-text-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    gap: 0.6rem;
}

.btn .btn-glow {
    position: absolute;
    inset: -120%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    transform: scale(0.8);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.btn-gold {
    background: var(--color-accent);
    color: #1F0B1D;
    box-shadow: 0 18px 40px rgba(185, 151, 80, 0.25);
}

.btn-gold:hover,
.btn-gold:focus {
    transform: translateY(-4px);
    background: var(--color-accent-dark);
    color: #140612;
    box-shadow: 0 25px 50px rgba(185, 151, 80, 0.35);
}

.btn-gold:hover .btn-glow,
.btn-gold:focus .btn-glow {
    opacity: 1;
    transform: scale(1.1);
}

.btn-gold:focus-visible {
    outline: 2px solid rgba(185, 151, 80, 0.85);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(71, 20, 61, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(185, 151, 80, 0.2);
}

.site-header.is-scrolled {
    background: rgba(20, 6, 18, 0.95);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 2rem;
}

.site-title {
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.primary-navigation {
    display: flex;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.primary-menu a {
    color: var(--color-text-secondary);
    position: relative;
    padding-bottom: 0.4rem;
}

.primary-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    opacity: 0;
    transform: scaleX(0.6);
    transition: var(--transition-base);
}

.primary-menu a:hover::after,
.primary-menu a:focus::after,
.primary-menu .current-menu-item > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.primary-menu a.is-active {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

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

.btn-small {
    padding: 0.65rem 1.6rem;
    font-size: 0.8rem;
}

.floating-cta {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-cta-close {
    background: rgba(12, 3, 10, 0.65);
    border: 1px solid rgba(185, 151, 80, 0.35);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-base);
}

.floating-cta-close:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: clamp(4rem, 12vw, 6rem);
    overflow: hidden;
    isolation: isolate;
    background-color: var(--color-background);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background: var(--color-background-alt);
}

.hero-video,
.hero-image-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: opacity 0.6s ease-in-out;
    will-change: opacity;
}

.hero-video {
    filter: saturate(110%) contrast(105%);
    opacity: 0;
}

.hero-image-fallback {
    opacity: 0;
}

.hero-media.is-ready .hero-video {
    opacity: 1;
}

.hero-media.is-ready .hero-image-fallback {
    opacity: 0;
}

.hero-media:not(.is-ready) .hero-image-fallback,
.hero-media.is-fallback .hero-image-fallback {
    opacity: 1;
}

.hero-media.is-fallback .hero-video {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(71, 20, 61, 0.6) 0%, rgba(71, 20, 61, 0.75) 55%, rgba(47, 14, 39, 0.9) 100%);
    background-color: var(--color-overlay);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    will-change: transform, opacity;
}

.hero-scroll-cta {
    position: absolute;
    left: 50%;
    bottom: clamp(2rem, 6vw, 3.5rem);
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(185, 151, 80, 0.6);
    background: rgba(20, 6, 18, 0.55);
    color: var(--color-text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
    backdrop-filter: blur(6px);
    will-change: transform, box-shadow;
}

.hero-scroll-cta:hover,
.hero-scroll-cta:focus-visible {
    transform: translate(-50%, -6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    background: rgba(71, 20, 61, 0.65);
    outline: none;
}

.hero-scroll-cta .dashicons {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.hero-content[data-animate] > * {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    will-change: transform, opacity;
}

.hero-content[data-animate].is-visible > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hero-content[data-animate].is-visible > *:nth-child(1) {
    transition-delay: 0.1s;
}

.hero-content[data-animate].is-visible > *:nth-child(2) {
    transition-delay: 0.2s;
}

.hero-content[data-animate].is-visible > *:nth-child(3),
.hero-content[data-animate].is-visible > *:nth-child(4) {
    transition-delay: 0.3s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.2;
}

section {
    padding: clamp(3.5rem, 8vw, 4.5rem) 0;
}

.section-subtitle {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.75rem;
    color: rgba(185, 151, 80, 0.76);
    margin-bottom: 1rem;
}

.story {
    position: relative;
    color: var(--color-text);
    isolation: isolate;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(71, 20, 61, 0.95) 0%, rgba(29, 7, 25, 0.85) 100%);
    z-index: 2;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    position: relative;
    z-index: 3;
}

.story-intro h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.story-panels {
    display: grid;
    gap: 1.5rem;
}

.story-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(185, 151, 80, 0.2);
    border-radius: 20px;
    padding: 1.8rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.story-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(185, 151, 80, 0.45);
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.overview {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(180deg, rgba(71, 20, 61, 0.92) 0%, rgba(47, 14, 39, 0.98) 100%);
    isolation: isolate;
}

.overview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(185, 151, 80, 0.18), transparent 55%);
    opacity: 0.7;
    z-index: 1;
}

.overview-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.8rem, 4vw, 2.4rem);
}

.overview-card {
    background: rgba(11, 4, 10, 0.55);
    border: 1px solid rgba(185, 151, 80, 0.25);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 2.6rem);
    display: grid;
    gap: 1rem;
    transition: transform 0.5s ease, border-color 0.4s ease, box-shadow 0.5s ease;
    will-change: transform, box-shadow;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

.overview-card:hover,
.overview-card:focus-within {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(185, 151, 80, 0.55);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
}

.overview-card h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.overview-card p {
    color: rgba(245, 245, 245, 0.78);
    margin: 0;
}

.overview-icon {
    font-size: 2rem;
    color: var(--color-accent);
}

.overview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.overview-tags li {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(185, 151, 80, 0.35);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.overview-locations {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.78);
}


.featured-projects {
    position: relative;
}

.projects-slider {
    position: relative;
}

.projects-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.project-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.project-media {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35) 100%);
}

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

.project-content {
    display: grid;
    gap: 1rem;
}

.project-meta {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    color: rgba(185, 151, 80, 0.76);
}

.project-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.project-excerpt {
    color: rgba(245, 240, 234, 0.82);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
}

.project-link .dashicons {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.project-link:hover .dashicons {
    transform: translateX(6px);
}

.slider-controls {
    position: absolute;
    inset: auto 0 -3rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.slider-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(185, 151, 80, 0.4);
    background: rgba(20, 6, 18, 0.9);
    color: var(--color-accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-nav:hover {
    background: rgba(185, 151, 80, 0.2);
}

.slider-dots {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.65rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.why-us-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 151, 80, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.why-card h3 {
    color: var(--color-accent);
}

.experience-stats {
    background: linear-gradient(135deg, rgba(71, 20, 61, 0.98), rgba(27, 8, 25, 0.96));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.stat-card {
    padding: 2rem;
    border-radius: 18px;
    background: rgba(10, 4, 9, 0.6);
    border: 1px solid rgba(185, 151, 80, 0.25);
    text-align: center;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
}

.stat-card .dashicons {
    font-size: 2.2rem;
    color: var(--color-accent);
}

.stat-value {
    font-size: clamp(2.6rem, 4.5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.stat-label {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.cta {
    text-align: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 5, 18, 0.72);
    z-index: 2;
}

.site-footer {
    background: #2C0C25;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(185, 151, 80, 0.2);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-title {
    font-size: 1.4rem;
    color: var(--color-accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    color: rgba(245, 240, 234, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
}

.footer-social a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    color: rgba(245, 240, 234, 0.6);
    font-size: 0.85rem;
}

/* Portfolio Page */

.portfolio-hero {
    position: relative;
    text-align: center;
    isolation: isolate;
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(71, 20, 61, 0.94) 0%, rgba(32, 9, 29, 0.88) 100%);
    z-index: 2;
}

.portfolio-hero .container {
    position: relative;
    z-index: 3;
}

.portfolio-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.portfolio-filter {
    padding-top: 3rem;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-button {
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    background: rgba(71, 20, 61, 0.45);
    border: 1px solid rgba(185, 151, 80, 0.35);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-button.is-active,
.filter-button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    transition: opacity 0.4s ease;
    will-change: opacity;
}

.portfolio-gallery.is-filtering {
    pointer-events: none;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid rgba(185, 151, 80, 0.25);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateY(0);
    transition: transform 0.45s ease, border-color 0.4s ease, box-shadow 0.45s ease, opacity 0.35s ease;
    will-change: transform, opacity;
}

.portfolio-card.is-filtered-out {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.portfolio-card:hover,
.portfolio-card:focus-within {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(185, 151, 80, 0.55);
    box-shadow: 0 28px 60px rgba(15, 4, 13, 0.55);
}

.portfolio-card-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
    will-change: transform;
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.03);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(71, 20, 61, 0.2) 20%, rgba(71, 20, 61, 0.68) 100%);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: opacity;
}

.portfolio-card:hover .portfolio-card-overlay,
.portfolio-card:focus-within .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-content {
    padding: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.portfolio-card-location {
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(185, 151, 80, 0.75);
}

.portfolio-card-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.portfolio-card-desc {
    color: rgba(245, 240, 234, 0.75);
    margin-bottom: auto;
}

.no-projects {
    text-align: center;
    grid-column: 1 / -1;
}

.project-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 2, 5, 0.75);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.project-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
}

.project-modal-content {
    position: relative;
    width: min(960px, 92vw);
    max-height: 90vh;
    background: rgba(20, 6, 18, 0.95);
    border: 1px solid rgba(185, 151, 80, 0.25);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 2.8rem);
    overflow: hidden;
    display: grid;
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    font-size: 1.8rem;
}

.project-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 2rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.project-modal-info {
    display: grid;
    gap: 1rem;
}

.project-modal-location {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: rgba(185, 151, 80, 0.76);
}

.project-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(185, 151, 80, 0.12);
    border: 1px solid rgba(185, 151, 80, 0.35);
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.project-modal-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.project-modal-gallery img {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-placeholder {
    color: rgba(245, 240, 234, 0.6);
}

/* Single Project */

.project-detail-hero {
    position: relative;
    text-align: center;
    padding: 7rem 0 5rem;
    isolation: isolate;
}

.project-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(71, 20, 61, 0.92), rgba(27, 8, 25, 0.86));
    z-index: 1;
}

.project-detail-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(71, 20, 61, 0.6) 0%, rgba(47, 14, 39, 0.9) 100%);
}

.project-detail-hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.project-detail-hero-inner h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.project-detail-meta {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: rgba(185, 151, 80, 0.78);
    margin-bottom: 1.2rem;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(185, 151, 80, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(245, 245, 245, 0.8);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem;
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
    will-change: transform;
}

.project-back-link:hover,
.project-back-link:focus-visible {
    transform: translateY(-4px);
    background: rgba(71, 20, 61, 0.65);
    color: var(--color-accent);
    outline: none;
}

.project-back-link .dashicons {
    color: var(--color-accent);
}

.project-detail-location {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.78);
}

.project-detail-body {
    padding-top: 4rem;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
}

.project-detail-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 151, 80, 0.2);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    display: grid;
    gap: 1.5rem;
}

.project-detail-content p {
    color: rgba(245, 240, 234, 0.8);
}

.designer-notes {
    background: rgba(12, 4, 11, 0.6);
    border: 1px solid rgba(185, 151, 80, 0.25);
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2rem);
    display: grid;
    gap: 0.75rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

.designer-notes h2 {
    margin: 0;
}

.designer-notes p {
    margin: 0;
}

.designer-title {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(185, 151, 80, 0.75);
}

.project-detail-sidebar {
    display: grid;
}

.sidebar-card {
    background: rgba(10, 4, 9, 0.6);
    border: 1px solid rgba(185, 151, 80, 0.3);
    border-radius: 22px;
    padding: 2rem;
    display: grid;
    gap: 1.2rem;
}

.project-testimonial .testimonial-quote {
    font-style: italic;
    color: rgba(245, 245, 245, 0.82);
}

.project-testimonial .testimonial-author {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(185, 151, 80, 0.8);
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.sidebar-card li {
    font-size: 0.95rem;
    color: rgba(245, 240, 234, 0.75);
}

.project-detail-gallery {
    padding: 4rem 0 5rem;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.project-gallery-item img {
    border-radius: 18px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.45s ease;
    will-change: transform;
}

.project-gallery-item a {
    display: block;
    border-radius: 18px;
    overflow: hidden;
}

.project-gallery-item a:hover img,
.project-gallery-item a:focus img {
    transform: scale(1.05);
}

.project-detail-cta {
    text-align: center;
    position: relative;
    padding: 5rem 0;
    isolation: isolate;
}

.project-detail-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 3, 10, 0.7);
    z-index: 2;
}

.project-detail-cta .container {
    position: relative;
    z-index: 3;
}

/* Contact Page */

.contact-hero {
    background-color: #47143D;
    padding: clamp(6rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 5.5rem);
    text-align: center;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(25, 7, 23, 0.45) 0%, rgba(25, 7, 23, 0.92) 100%);
}

.contact-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: rgba(247, 237, 221, 0.68);
}

.contact-hero h1 {
    color: var(--color-accent);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.contact-hero p {
    color: rgba(245, 245, 245, 0.84);
    margin: 0 auto;
    max-width: 560px;
}

.contact-section {
    padding: clamp(4.5rem, 8vw, 6rem) 0;
    background: linear-gradient(180deg, rgba(52, 17, 44, 0.96) 0%, rgba(30, 9, 27, 1) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 3.8rem);
    align-items: stretch;
}

.contact-form,
.contact-info {
    background: linear-gradient(180deg, rgba(71, 20, 61, 0.82) 0%, rgba(33, 8, 30, 0.92) 100%);
    border: 1px solid rgba(185, 151, 80, 0.28);
    border-radius: 28px;
    padding: clamp(2.2rem, 4vw, 3rem);
    box-shadow: 0 28px 65px rgba(10, 2, 9, 0.48);
    position: relative;
    overflow: hidden;
}

.contact-form::before,
.contact-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(185, 151, 80, 0.08), transparent 55%);
    pointer-events: none;
}

.contact-form {
    display: grid;
    gap: 1.8rem;
}

.contact-form-header p {
    margin-bottom: 0;
}

.contact-form-embed {
    display: block;
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(15, 4, 13, 0.5);
    border: 1px solid rgba(185, 151, 80, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-notice {
    padding: 1rem 1.3rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: noticeReveal 0.6s ease forwards;
}

.form-notice.success {
    background: rgba(81, 184, 110, 0.12);
    border: 1px solid rgba(81, 184, 110, 0.35);
    color: #9de5bc;
}

.form-notice.error {
    background: rgba(217, 83, 79, 0.12);
    border: 1px solid rgba(217, 83, 79, 0.35);
    color: #f5b1af;
}

.contact-form-fields {
    display: grid;
    gap: 1.4rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 240, 234, 0.76);
}

.form-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.field-optional {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 240, 234, 0.5);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(185, 151, 80, 0.32);
    background: rgba(8, 2, 7, 0.52);
    color: var(--color-text);
    font-family: var(--font-primary);
    transition: border 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(15, 4, 13, 0.65);
    box-shadow: 0 0 0 3px rgba(185, 151, 80, 0.22);
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-info-header p {
    margin-bottom: 0;
    max-width: 420px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
}

.office-card {
    padding: 1.8rem;
    border-radius: 20px;
    background: rgba(19, 6, 17, 0.55);
    border: 1px solid rgba(185, 151, 80, 0.32);
    box-shadow: 0 18px 55px rgba(10, 2, 9, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.office-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.office-card h3 {
    color: var(--color-accent);
    margin-bottom: 1.1rem;
}

.office-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.office-meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    color: rgba(245, 245, 245, 0.82);
}

.office-meta a {
    color: inherit;
}

.office-meta a:hover,
.office-meta a:focus {
    color: var(--color-accent);
}

.office-icon {
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-accent);
    text-shadow: 0 6px 18px rgba(185, 151, 80, 0.35);
}

.contact-hours {
    padding-top: 1.8rem;
    border-top: 1px solid rgba(185, 151, 80, 0.22);
    color: rgba(245, 245, 245, 0.78);
}

.contact-hours h3 {
    color: var(--color-accent);
}

.contact-map {
    background: linear-gradient(180deg, rgba(26, 8, 23, 1) 0%, rgba(17, 5, 16, 0.92) 100%);
    padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.map-switcher {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.map-switch {
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(185, 151, 80, 0.38);
    background: rgba(71, 20, 61, 0.55);
    color: var(--color-text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-base);
}

.map-switch.is-active,
.map-switch:hover,
.map-switch:focus {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.map-embed {
    position: relative;
    background: rgba(19, 6, 17, 0.6);
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border-radius: 28px;
    border: 1px solid rgba(185, 151, 80, 0.24);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.48);
    overflow: hidden;
}

.map-embed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 6, 18, 0.2) 0%, rgba(20, 6, 18, 0.75) 100%);
    pointer-events: none;
}

.contact-map iframe {
    border-radius: 20px;
    filter: grayscale(15%) saturate(85%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.contact-cta {
    background: linear-gradient(135deg, rgba(71, 20, 61, 0.88), rgba(33, 9, 30, 0.92));
    padding: clamp(3.5rem, 7vw, 4.5rem) 0;
    border-top: 1px solid rgba(185, 151, 80, 0.15);
}

.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 2.6rem);
    border-radius: 28px;
    background: rgba(19, 6, 17, 0.55);
    border: 1px solid rgba(185, 151, 80, 0.24);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}

.contact-cta h2 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(185, 151, 80, 0.45);
    box-shadow: none;
    padding-inline: 2rem;
}


.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(185, 151, 80, 0.2);
    color: var(--color-accent);
}

@keyframes noticeReveal {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */

[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-right"].is-visible {
    transform: translateX(0);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-left"].is-visible {
    transform: translateX(0);
}

[data-animate][data-delay="100"] {
    transition-delay: 0.1s;
}

[data-animate][data-delay="150"] {
    transition-delay: 0.15s;
}

[data-animate][data-delay="200"] {
    transition-delay: 0.2s;
}

[data-animate][data-delay="250"] {
    transition-delay: 0.25s;
}

[data-animate][data-delay="300"] {
    transition-delay: 0.3s;
}

[data-animate][data-delay="320"] {
    transition-delay: 0.32s;
}

/* Utilities */

.site-main {
    overflow: hidden;
}

.default-page {
    padding: 6rem 0;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(185, 151, 80, 0.2);
    padding-bottom: 1rem;
}

/* Responsive */

@media (max-width: 1024px) {
    .header-inner {
        gap: 1rem;
    }

    .primary-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

    .project-slide {
        grid-template-columns: 1fr;
        padding-inline: 0;
    }

    .projects-slider {
        padding-bottom: 3rem;
    }

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

    .contact-form,
    .contact-info {
        padding: clamp(1.8rem, 5vw, 2.4rem);
    }

    .contact-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: clamp(5rem, 12vw, 6rem) 0 clamp(3rem, 10vw, 4rem);
    }

    .contact-hero-inner {
        gap: 0.75rem;
    }

    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-cta-inner {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .contact-form,
    .contact-info {
        border-radius: 22px;
    }

    .contact-info-grid {
        gap: 1.2rem;
    }

    .office-card {
        padding: 1.4rem;
    }

    .form-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .contact-cta-inner {
        gap: 1.8rem;
    }

    .contact-cta a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .primary-navigation {
        position: fixed;
        inset: 0;
        background: rgba(12, 3, 10, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
    }

    .primary-navigation.is-open {
        transform: translateY(0);
    }

    .primary-menu {
        flex-direction: column;
        text-align: center;
        font-size: 1.2rem;
        gap: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .floating-cta {
        right: 1.2rem;
        bottom: 1.2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero {
        min-height: 90vh;
        padding-block: clamp(3.5rem, 16vw, 5rem);
    }

    .hero-scroll-cta {
        bottom: clamp(1.5rem, 10vw, 2.5rem);
    }

    .overview {
        padding: 3.5rem 0;
    }

    .portfolio-grid {
        gap: 1.5rem;
    }

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

    .contact-form {
        max-width: none;
        margin-inline: 0;
    }

    .map-embed {
        padding: 1.2rem;
    }

    .story-panels {
        grid-template-columns: 1fr;
    }

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

    .project-slide {
        gap: 2rem;
    }

    .project-modal-body {
        grid-template-columns: 1fr;
    }

    .project-modal-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .header-inner {
        min-height: 64px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .footer-social {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .project-modal-gallery {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        justify-content: flex-start;
    }

    .slider-controls {
        inset: auto 0 -4rem;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
}
