/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-main: #f9f7f4;
    --bg-white: #ffffff;
    --bg-dark: #161513;
    --bg-beige: #8C7765; /* Deep beige for specific blocks */
    --text-main: #2a2825;
    --text-light: #5a544c;
    /* Darkened for better contrast */
    --text-white: #ffffff;
    --accent: #9a7e5f;
    --accent-hover: #7d654c;
    --border: #e6e2d8;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-main);
}

p {
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* GPU Acceleration for smooth animations */
.gpu-accel {
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) translateZ(0);
    transition: var(--transition);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.mask-reveal {
    overflow: hidden;
}

.mask-reveal>* {
    transform: translateY(100%) translateZ(0);
    transition: var(--transition);
    will-change: transform;
}

.mask-reveal.active>* {
    transform: translateY(0) translateZ(0);
}

/* Typography */
.text-display {
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: -0.02em;
}

.text-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
}

.text-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.7;
}

.text-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media(min-width: 768px) {
    .container {
        padding: 0 5%;
    }
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media(min-width: 768px) {
    .section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.section-white {
    background: radial-gradient(circle at top, #faf9f5 0%, #f0ebd8 100%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--text-white);
    background: var(--accent);

    transition: var(--transition-fast);
}

.btn:hover {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--text-white);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--text-main);
    border-color: var(--text-white);
}

.btn-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.25rem;
}

.btn-text:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

@media(min-width: 992px) {
    .header {
        padding: 2rem 5%;
    }
}

.header.scrolled {
    position: fixed;
    background: rgba(22, 21, 19, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 24px;
}

@media(min-width: 992px) {
    .header.scrolled {
        padding: 1rem 5%;
    }
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

@media(min-width: 768px) {
    .logo img {
        height: 60px;
    }
}

.nav-links {
    display: none;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: currentColor;
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-dark);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.header-action {
    display: none;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }

    .header-action {
        display: block;
    }
}

/* Mobile Menu */
.menu-toggle {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1000;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    background: currentColor;
    transition: var(--transition-fast);
    pointer-events: none;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin: 1rem 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    color: var(--text-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Delicate gradient to ensure text readability without making image invisible */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(22, 21, 19, 0.7) 0%, rgba(22, 21, 19, 0.3) 50%, rgba(22, 21, 19, 0) 100%);
}

@media(max-width: 768px) {
    .hero-bg::after {
        background: linear-gradient(0deg, rgba(22, 21, 19, 0.3) 0%, rgba(22, 21, 19, 0.7) 100%);
    }
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
    will-change: transform;
    animation: slowZoom 25s linear infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1) translateZ(0);
    }

    100% {
        transform: scale(1.08) translateZ(0);
    }
}

.hero-content {
    max-width: 800px;
    padding-top: 6rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-vertical-text {
    position: absolute;
    right: 5%;
    bottom: 5rem;
    transform: rotate(-90deg);
    transform-origin: right bottom;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: none;
}

@media(min-width: 1024px) {
    .hero-vertical-text {
        display: block;
    }
}

/* Services Bar */
.services-bar {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
}

@media(min-width: 576px) {
    .services-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .services-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-item {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

@media(min-width: 576px) {
    .service-item:nth-child(2n) {
        border-right: none;
    }

    .service-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media(min-width: 1024px) {
    .service-item {
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .service-item:last-child {
        border-right: none;
    }
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    font-size: 2rem;
}

.service-item h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Section Header */
.section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

@media(min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
        margin-bottom: 4rem;
    }
}

/* Project Cards */
.project-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.project-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.project-card {
    display: block;
    position: relative;

    flex: 0 0 85vw;
    scroll-snap-align: start;
}

@media(min-width: 768px) {
    .project-card {
        flex: 0 0 45vw;
    }
}

@media(min-width: 1024px) {
    .project-card {
        flex: 0 0 23vw;
    }
}

.project-card .img-wrap {
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    position: relative;
}

.project-card .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

.project-card:hover .img-overlay {
    opacity: 1;
}

.project-card .img-overlay-text {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card:hover .img-overlay-text {
    transform: translateY(0);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateZ(0);
    will-change: transform;
}

.project-card:hover img {
    transform: scale(1.08) translateZ(0);
}

.project-card .info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-card h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.project-card span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    font-weight: 600;
}

.project-card .arrow {
    color: var(--accent);
    transition: var(--transition-fast);
}

.project-card:hover .arrow {
    transform: translateX(5px);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
}

@media(min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

@media(min-width: 768px) {
    .process-step:nth-child(odd) {
        border-right: 1px solid var(--border);
    }
}

@media(min-width: 1024px) {
    .process-step {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .process-step:last-child {
        border-right: none;
    }
}

.process-num {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.process-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.process-step h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Interactive Before & After Slider */
.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    user-select: none;
    border-radius: 2px;
    touch-action: pan-y;
}

@media(min-width: 992px) {
    .ba-container {
        aspect-ratio: 21/9;
    }
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before {
    clip-path: inset(0 50% 0 0);
    z-index: 2;
    will-change: clip-path;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
    will-change: left;
}

.ba-slider-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--accent);
    font-weight: bold;
    pointer-events: none;
}

.ba-label {
    position: absolute;
    bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 4;
    border-radius: 2px;
}

.ba-label.left {
    left: 1.5rem;
}

.ba-label.right {
    right: 1.5rem;
}

/* Swiper Optimization */
.swiper-wrapper {
    will-change: transform;
    transform: translateZ(0);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text-main) !important;
    background: var(--bg-white);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent);
    color: var(--text-white) !important;
    border-color: var(--accent);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 0.85rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: var(--border) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

/* About & Stats Split */
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media(min-width: 992px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-main);
    border-radius: 2px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.stat-info p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    text-align: center;
    margin: 1rem 0 3rem;
}

@media(min-width: 768px) {
    .testimonial-card {
        padding: 4rem;
    }
}

.testimonial-card p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-style: italic;
    margin: 1.5rem auto 2rem;
    color: var(--text-main);
}

/* Dark Stats Bar */
.dark-stats {
    background: var(--bg-beige);
    color: var(--text-white);
    padding: 5rem 0;
}

.dark-stats .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

@media(min-width: 576px) {
    .dark-stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 992px) {
    .dark-stats .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dark-stat-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    padding: 2rem;
    border-radius: 8px;
    background: transparent;
}

.dark-stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-stat-item h3 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
    background: linear-gradient(135deg, #D8B36A 0%, #C79A45 50%, #B8842F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.dark-stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
}

/* Banner CTA */
.cta-banner {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
    text-align: center;
    color: var(--text-white);
    overflow: hidden;
}

@media(min-width: 768px) {
    .cta-banner {
        padding: 12rem 0;
    }
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 21, 19, 0.85);
}

.cta-banner h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-col h4 {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul li a:hover {
    color: var(--text-white);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.social-icons svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

@media(min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Works & Project Layouts */
.works-grid-ed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media(min-width: 992px) {
    .works-grid-ed {
        grid-template-columns: repeat(12, 1fr);
        align-items: center;
        gap: 0;
        row-gap: 8rem;
    }

    .work-item {
        display: contents;
    }

    .work-item-img {
        grid-column: 1 / 8;
        grid-row: auto;
    }

    .work-item-content {
        grid-column: 8 / 13;
        padding-left: 3rem;
        grid-row: auto;
    }

    .work-item:nth-child(even) .work-item-img {
        grid-column: 6 / 13;
    }

    .work-item:nth-child(even) .work-item-content {
        grid-column: 1 / 6;
        padding-left: 0;
        padding-right: 3rem;
    }
}

.work-item-img img {
    border-radius: 2px;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.sticky-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media(min-width: 992px) {
    .sticky-layout {
        grid-template-columns: 4fr 8fr;
        gap: 5rem;
        align-items: flex-start;
    }

    .sticky-block {
        position: sticky;
        top: 8rem;
    }
}

.masonry-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 768px) {
    .masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .masonry-gallery .full {
        grid-column: 1 / -1;
    }
}

/* Form Styling */
.form-ed label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-ed input,
.form-ed textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-ed input:focus,
.form-ed textarea:focus {
    outline: none;
    border-bottom-color: var(--text-main);
}

/* ========================================= */
/* PREMIUM EDITORIAL WORKS PAGE (works.html) */
/* ========================================= */
.ed-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-white);
    background: var(--bg-beige);
}

.ed-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
}

.ed-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ed-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ed-hero-scroll::after {
    content: '';
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* Portfolio Global Styles */
.port-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.port-num-bg {
    position: absolute;
    font-size: clamp(20rem, 40vw, 40rem);
    font-weight: 800;
    color: var(--text-main);
    opacity: 0.03;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.port-content-wrapper {
    position: relative;
    z-index: 1;
}

.port-img-wrapper {
    overflow: hidden;
    position: relative;
}

.port-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.port-item:hover .port-img-wrapper img {
    transform: scale(1.05);
}

.port-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Project 01: Soft Contours */
.proj-01 {
    background: #faf9f5;
}

.proj-01 .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.proj-01-img {
    height: 60vh;
}

@media (min-width: 992px) {
    .proj-01 .grid {
        grid-template-columns: 7fr 5fr;
        gap: 6rem;
    }

    .proj-01-img {
        height: 120vh;
    }
}

/* Project 02: Amber Tropics */
.proj-02 {
    background: var(--bg-beige);
    color: #fff;
    padding-top: 12rem;
    padding-bottom: 12rem;
}

.proj-02 .port-num-bg {
    color: #fff;
    opacity: 0.05;
}

.proj-02-img {
    width: 100%;
    height: 50vh;
}

.proj-02-card {
    background: var(--bg-beige);
    padding: 3rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
    .proj-02-img {
        height: 80vh;
        width: 80%;
        margin-left: auto;
    }

    .proj-02-card {
        width: 40%;
        margin-top: -30vh;
        margin-left: 5%;
        padding: 5rem;
    }
}

/* Project 03: Clinical Frame */
.proj-03 {
    background: #ffffff;
}

.proj-03 .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.proj-03-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proj-03-img-1 {
    height: 50vh;
}

.proj-03-img-2 {
    height: 40vh;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .proj-03 .grid {
        grid-template-columns: 4fr 8fr;
        gap: 6rem;
    }

    .proj-03-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .proj-03-img-1 {
        height: 80vh;
        margin-top: -10vh;
    }

    .proj-03-img-2 {
        height: 60vh;
        margin-top: 10vh;
    }
}

/* Project 04: Rhythm Lines */
.proj-04 {
    background: #161513;
    color: #fff;
}

.proj-04 .port-num-bg {
    background: linear-gradient(135deg, #D8B36A 0%, #B8842F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.08;
}

.proj-04-top-img {
    height: 40vh;
    width: 100%;
}

.proj-04 .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.proj-04-portrait {
    height: 60vh;
}

@media (min-width: 992px) {
    .proj-04-top-img {
        height: 70vh;
    }

    .proj-04 .grid {
        grid-template-columns: 5fr 7fr;
        align-items: end;
        margin-top: -15vh;
        gap: 6rem;
    }

    .proj-04-portrait {
        height: 90vh;
    }
}

/* Bottom CTA */
.ed-bottom-cta {
    position: relative;
    padding: 12rem 0;
    text-align: center;
    color: #fff;
    background: var(--bg-beige);
    overflow: hidden;
}

.ed-bottom-cta img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.ed-bottom-content {
    position: relative;
    z-index: 2;
}

/* Custom Cursor CTA */
.hover-cta-text {
    position: relative;
    display: inline-block;
}

.hover-cta-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s ease;
}

.port-item:hover .hover-cta-text::after {
    width: 100%;
}

/* --- PREMIUM ARCHITECTURE GALLERY --- */

.editorial-body {
    background-color: var(--bg-main);
}

.gallery-project {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.gallery-project:last-child {
    border-bottom: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.gallery-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.gallery-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    color: var(--text-main);
    font-weight: 500;
}

.gallery-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Editorial Grid System for Immersive Photography */
.editorial-grid {
    display: grid;
    gap: 3rem;
    width: 100%;
}

@media (min-width: 768px) {
    .editorial-grid {
        gap: 6rem;
    }
}

@media (min-width: 1200px) {
    .editorial-grid {
        gap: 8rem;
    }
}

.gallery-img-wrap {
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    border-radius: 2px;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateZ(0);
    will-change: transform;
}

.gallery-img-wrap:hover img {
    transform: scale(1.05) translateZ(0);
}

/* Layout 2: Split 50/50 */
.layout-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .layout-2 {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .layout-2 .gallery-img-wrap {
        height: 100%;
        min-height: 80vh;
        aspect-ratio: auto;
    }
}

/* Layout 3: Hero + 2 Supporting */
.layout-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .layout-3 {
        grid-template-columns: 1fr 1fr;
    }

    .layout-3 .gallery-img-wrap:nth-child(1) {
        grid-column: 1 / -1;
        aspect-ratio: 21/9;
    }

    .layout-3 .gallery-img-wrap:nth-child(2),
    .layout-3 .gallery-img-wrap:nth-child(3) {
        aspect-ratio: 4/3;
    }
}

/* Layout 4: Editorial 2x2 Asymmetric */
.layout-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .layout-4 {
        grid-template-columns: 8fr 4fr;
        align-items: center;
    }

    .layout-4 .gallery-img-wrap:nth-child(1) {
        aspect-ratio: 16/9;
    }

    .layout-4 .gallery-img-wrap:nth-child(2) {
        aspect-ratio: 3/4;
        margin-top: 6rem;
    }

    .layout-4 .gallery-img-wrap:nth-child(3) {
        aspect-ratio: 3/4;
        margin-top: -6rem;
    }

    .layout-4 .gallery-img-wrap:nth-child(4) {
        aspect-ratio: 16/9;
    }
}

/* Layout 5: Massive Hero + Masonry */
.layout-5 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .layout-5 {
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
    }

    .layout-5 .gallery-img-wrap:nth-child(1) {
        grid-column: 1 / -1;
        aspect-ratio: 21/9;
        margin-bottom: 4rem;
    }

    .layout-5 .gallery-img-wrap:nth-child(2) {
        grid-column: 1 / span 2;
        aspect-ratio: 4/5;
    }

    .layout-5 .gallery-img-wrap:nth-child(3) {
        grid-column: 3 / span 2;
        aspect-ratio: 1/1;
        margin-top: 6rem;
    }

    .layout-5 .gallery-img-wrap:nth-child(4) {
        grid-column: 1 / span 2;
        aspect-ratio: 16/9;
        margin-top: -4rem;
    }

    .layout-5 .gallery-img-wrap:nth-child(5) {
        grid-column: 3 / span 2;
        aspect-ratio: 3/4;
    }
}

/* Layout 6: Cinematic Rhythm */
.layout-6 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .layout-6 {
        grid-template-columns: repeat(12, 1fr);
        align-items: start;
    }

    .layout-6 .gallery-img-wrap:nth-child(1) {
        grid-column: 1 / -1;
        aspect-ratio: 21/9;
    }

    .layout-6 .gallery-img-wrap:nth-child(2) {
        grid-column: 1 / span 5;
        aspect-ratio: 3/4;
        margin-top: 4rem;
    }

    .layout-6 .gallery-img-wrap:nth-child(3) {
        grid-column: 7 / span 6;
        aspect-ratio: 4/3;
        margin-top: 10rem;
    }

    .layout-6 .gallery-img-wrap:nth-child(4) {
        grid-column: 3 / span 8;
        aspect-ratio: 16/9;
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .layout-6 .gallery-img-wrap:nth-child(5) {
        grid-column: 1 / span 6;
        aspect-ratio: 4/5;
    }

    .layout-6 .gallery-img-wrap:nth-child(6) {
        grid-column: 8 / span 5;
        aspect-ratio: 3/4;
        margin-top: 8rem;
    }
}

/* Layout 7: Editorial Journey */
.layout-7 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .layout-7 {
        grid-template-columns: repeat(12, 1fr);
        align-items: start;
    }

    .layout-7 .gallery-img-wrap:nth-child(1) {
        grid-column: 2 / span 10;
        aspect-ratio: 16/9;
    }

    .layout-7 .gallery-img-wrap:nth-child(2) {
        grid-column: 1 / span 6;
        aspect-ratio: 3/4;
        margin-top: 6rem;
    }

    .layout-7 .gallery-img-wrap:nth-child(3) {
        grid-column: 8 / span 5;
        aspect-ratio: 4/5;
        margin-top: 12rem;
    }

    .layout-7 .gallery-img-wrap:nth-child(4) {
        grid-column: 1 / -1;
        aspect-ratio: 21/9;
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .layout-7 .gallery-img-wrap:nth-child(5) {
        grid-column: 1 / span 5;
        aspect-ratio: 1/1;
    }

    .layout-7 .gallery-img-wrap:nth-child(6) {
        grid-column: 7 / span 6;
        aspect-ratio: 16/9;
        margin-top: -6rem;
    }

    .layout-7 .gallery-img-wrap:nth-child(7) {
        grid-column: 4 / span 6;
        aspect-ratio: 4/5;
        margin-top: 8rem;
    }
}

/* Planning Drawings */
.planning-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.planning-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.layout-planning {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .layout-planning {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.layout-planning .gallery-img-wrap {
    aspect-ratio: auto;
    background: transparent;
}

.layout-planning img {
    object-fit: contain;
    border: 1px solid var(--border);
    padding: 1rem;
    background: #fff;
    max-height: 500px;
    width: 100%;
}

/* FAQ Accordion */
.faq-section {
    padding: 8rem 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.faq-header:hover {
    color: var(--accent);
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.4s ease;
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
}

.faq-content {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-item.active .faq-content {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 2rem;
}

.faq-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* OVERFLOW FIX */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.editorial-grid {
    overflow: hidden;
    max-width: 100%;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* HEADER ARTIFACT FIX */
body {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.header {
    top: 0 !important;
    margin: 0 !important;
    border-top: none !important;
}

html {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}


/* Hide scrollbar for a seamless luxury experience */
::-webkit-scrollbar {
    display: none;
}

html,
body {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}
