/* ================================================
   FLUX Architecture - Main Stylesheet
   Flowing Architecture Theme
   ================================================ */

:root {
    --cream: #f8f5f0;
    --terracotta: #c75b3b;
    --terracotta-dark: #b04a2d;
    --charcoal: #2d2d2d;
    --sage: #8b9a7d;
    --sand: #d4c5b5;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}
::selection { background: var(--terracotta); color: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ================================================
   Animated SVG Background
   ================================================ */
.svg-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.svg-bg svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.svg-line {
    stroke: var(--sage);
    stroke-width: 0.5;
    fill: none;
    opacity: 0.15;
}

.svg-line:nth-child(1) {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 8s ease forwards, moveLine 20s ease-in-out infinite 8s;
}

.svg-line:nth-child(2) {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawLine 6s ease forwards 0.5s, moveLine 25s ease-in-out infinite 6.5s;
}

.svg-line:nth-child(3) {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLine 10s ease forwards 1s, moveLine 30s ease-in-out infinite 11s;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes moveLine {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ================================================
   Floating Orbs
   ================================================ */
.orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--sage);
    top: -100px;
    right: -100px;
    opacity: 0.2;
    animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--terracotta);
    bottom: -50px;
    left: -100px;
    opacity: 0.15;
    animation: orbFloat2 30s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--sand);
    top: 40%;
    left: 30%;
    opacity: 0.2;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 60px) scale(1.1); }
    66% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -80px) scale(1.15); }
    66% { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 60px) scale(1.2); }
}

/* ================================================
   Navigation
   ================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(248, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 5vw;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
}

.nav-logo span { color: var(--terracotta); }

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
    padding: 0.875rem 2rem;
    background: var(--charcoal);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.nav-cta:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
}

.hero-text { max-width: 650px; }

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-tagline.visible { animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
}
.hero-title .line span.visible { animation: slideUpText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-title em { font-style: italic; color: var(--terracotta); }

@keyframes slideUpText { to { opacity: 1; transform: translateY(0); } }

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 3rem;
}

.hero-desc.anim {
    opacity: 0;
    transform: translateY(30px);
}

.hero-desc.visible { animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    border: 2px solid var(--charcoal);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta.anim {
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta.visible { animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s; }

.hero-cta:hover {
    background: var(--charcoal);
    color: var(--cream);
    padding-right: 3.5rem;
}

.hero-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease;
}

.hero-cta:hover svg { transform: translateX(10px); }

@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.hero-image { position: relative; }

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 300px 300px 20px 20px;
    opacity: 0;
    transform: scale(0.9) translateY(50px);
}

.hero-image-wrapper.visible { animation: imageReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s; }

@keyframes imageReveal { to { opacity: 1; transform: scale(1) translateY(0); } }

.hero-image img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-image:hover img { transform: scale(1.05); }

.hero-image-frame {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    border: 2px solid var(--terracotta);
    border-radius: 300px 300px 20px 20px;
    z-index: -1;
    opacity: 0;
    transform: translate(-20px, -20px);
}

.hero-image-frame.visible { animation: frameSlide 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s; }

@keyframes frameSlide { to { opacity: 1; transform: translate(0, 0); } }

/* Scroll Indicator */
.scroll-hint {
    position: absolute;
    bottom: 4rem;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-line {
    width: 60px;
    height: 2px;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--terracotta);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ================================================
   Page Header (Sub-pages)
   ================================================ */
.page-header {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 5vw 80px;
    position: relative;
}

.page-header-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.page-header-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.page-header-title em {
    font-style: italic;
    color: var(--terracotta);
}

.page-header-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--charcoal);
    opacity: 0.7;
    max-width: 600px;
}

/* ================================================
   Section Styles
   ================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
}

.section-title em { font-style: italic; }

.view-all {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.4s ease;
}

.view-all:hover {
    border-bottom-color: var(--terracotta);
    color: var(--terracotta);
}

/* ================================================
   Projects Section
   ================================================ */
.projects {
    padding: 15vh 5vw;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 4rem;
}

.project-card {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(2),
.project-card:nth-child(4) { margin-top: 10rem; }

.project-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 20px;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,45,45,0.9) 0%, rgba(45,45,45,0) 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.project-card:hover .project-image::before { opacity: 1; }

.project-image img {
    width: 100%;
    height: 65vh;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img { transform: scale(1.1); }

.project-view {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    z-index: 2;
}

.project-card:hover .project-view {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-name { color: var(--terracotta); }

.project-category {
    font-size: 0.75rem;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.project-year {
    font-size: 0.875rem;
    color: var(--charcoal);
    opacity: 0.4;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(45, 45, 45, 0.2);
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--cream);
}

/* ================================================
   Project Detail
   ================================================ */
.project-detail-hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.project-detail-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,45,45,0.9) 0%, rgba(45,45,45,0.2) 50%, transparent 100%);
}

.project-detail-hero-content {
    position: absolute;
    bottom: 100px;
    left: 5vw;
    right: 5vw;
    color: var(--cream);
}

.project-detail-cat {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.project-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
}

/* Project Info Bar */
.project-info-bar {
    background: var(--charcoal);
    color: var(--cream);
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.project-info-item {
    padding: 40px 5vw;
    border-right: 1px solid rgba(248, 245, 240, 0.1);
}

.project-info-item:last-child { border-right: none; }

.project-info-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.project-info-value {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Project Content */
.project-content {
    padding: 100px 5vw;
    max-width: 900px;
    margin: 0 auto;
}

.project-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.project-content p {
    font-size: 1.0625rem;
    line-height: 2;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* Project Features */
.project-features {
    margin-top: 4rem;
}

.project-features h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
    font-size: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sand), var(--cream));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--charcoal);
}

/* Project Gallery */
.project-gallery {
    padding: 0 5vw 100px;
}

.project-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.project-gallery-item {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    cursor: zoom-in;
}

.project-gallery-item:hover img { transform: scale(1.08); }

/* Project Navigation */
.project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(45, 45, 45, 0.1);
}

.project-nav-item {
    padding: 60px 5vw;
    transition: background 0.4s ease;
}

.project-nav-item:first-child {
    border-right: 1px solid rgba(45, 45, 45, 0.1);
}

.project-nav-item.next { text-align: right; }

.project-nav-item:hover { background: rgba(45, 45, 45, 0.03); }

.project-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.project-nav-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.project-nav-item:hover .project-nav-name { color: var(--terracotta); }

/* ================================================
   Philosophy Section
   ================================================ */
.philosophy {
    padding: 15vh 5vw;
    background: var(--charcoal);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(199, 91, 59, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 154, 125, 0.06) 0%, transparent 50%);
}

.philosophy-circle { display: none; }

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.philosophy-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-quote.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-author {
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
}

.philosophy-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 10rem;
    padding-top: 5rem;
    border-top: 1px solid rgba(248, 245, 240, 0.1);
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ================================================
   Services Section
   ================================================ */
.services {
    padding: 15vh 5vw;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 6rem;
}

.service-card {
    padding: 3rem 2.5rem;
    border: 1px solid rgba(45, 45, 45, 0.1);
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--terracotta), var(--sage));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(45, 45, 45, 0.1);
    border-color: transparent;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sand), var(--cream));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon { transform: scale(1.1) rotate(10deg); }

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--charcoal);
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--charcoal);
    opacity: 0.6;
}

/* Services Detail Page */
.services-detail {
    padding: 100px 5vw;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
}

.service-detail-item:last-child { border-bottom: none; }

.service-detail-item.reverse { direction: rtl; }
.service-detail-item.reverse > * { direction: ltr; }

.service-detail-number {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--terracotta);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 1rem;
}

.service-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.service-detail-desc {
    font-size: 1rem;
    line-height: 2;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.service-detail-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-detail-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-detail-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    transition: gap 0.3s ease;
}

.service-link:hover { gap: 1.25rem; }

.service-detail-image {
    overflow: hidden;
    border-radius: 20px;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.service-detail-image:hover img { transform: scale(1.05); }

/* ================================================
   About / Team Section
   ================================================ */
.about-intro {
    padding: 100px 5vw;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-intro-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
}

.about-intro-content h2 em {
    font-style: italic;
    color: var(--terracotta);
}

.about-intro-content p {
    font-size: 1.0625rem;
    line-height: 2;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.about-intro-image {
    overflow: hidden;
    border-radius: 20px;
}

.about-intro-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.about-intro-image:hover img { transform: scale(1.05); }

/* Values */
.values-section {
    padding: 100px 5vw;
    background: var(--sand);
}

.values-header {
    text-align: center;
    margin-bottom: 5rem;
}

.values-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--cream);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.5s ease;
}

.value-card:hover { transform: translateY(-10px); }

.value-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--terracotta), var(--sage));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.7;
}

/* Team */
.team-section {
    padding: 100px 5vw;
}

.team-header {
    text-align: center;
    margin-bottom: 5rem;
}

.team-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-header p {
    font-size: 1.125rem;
    color: var(--charcoal);
    opacity: 0.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-card-image {
    overflow: hidden;
    border-radius: 200px 200px 20px 20px;
    margin-bottom: 1.5rem;
}

.team-card-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.team-card:hover .team-card-image img { transform: scale(1.08); }

.team-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.team-card span {
    font-size: 0.8125rem;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================================
   Contact CTA
   ================================================ */
.contact-cta {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-ring {
    position: absolute;
    border: 1px solid var(--terracotta);
    border-radius: 50%;
    opacity: 0.15;
}

.contact-ring:nth-child(1) { width: 150px; height: 150px; animation: ringPulse 4s ease-in-out infinite, ringRotate 20s linear infinite; }
.contact-ring:nth-child(2) { width: 300px; height: 300px; animation: ringPulse 4s ease-in-out infinite 0.5s, ringRotate 30s linear infinite reverse; }
.contact-ring:nth-child(3) { width: 450px; height: 450px; animation: ringPulse 4s ease-in-out infinite 1s, ringRotate 40s linear infinite; }
.contact-ring:nth-child(4) { width: 600px; height: 600px; animation: ringPulse 4s ease-in-out infinite 1.5s, ringRotate 50s linear infinite reverse; }
.contact-ring:nth-child(5) { width: 750px; height: 750px; animation: ringPulse 4s ease-in-out infinite 2s, ringRotate 60s linear infinite; }
.contact-ring:nth-child(6) { width: 900px; height: 900px; animation: ringPulse 4s ease-in-out infinite 2.5s, ringRotate 70s linear infinite reverse; }

@keyframes ringPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.02); }
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-content { position: relative; z-index: 1; }

.contact-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-tag.visible { opacity: 1; transform: translateY(0); }

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.contact-title .line { display: block; overflow: hidden; }
.contact-title .line span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
}
.contact-title .line span.visible { animation: slideUpText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.contact-title em { font-style: italic; color: var(--terracotta); }

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
    background: var(--charcoal);
    color: var(--cream);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.contact-btn.visible { animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s; }

.contact-btn:hover {
    background: var(--terracotta);
    transform: scale(1.05);
}

/* ================================================
   Contact Page
   ================================================ */
.contact-section {
    padding: 100px 5vw;
}

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

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info > p {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sand), var(--cream));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--charcoal);
}

.contact-text h3 {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.contact-text p,
.contact-text a {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-text a:hover { color: var(--terracotta); }

.contact-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(45, 45, 45, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.social-link:hover {
    background: var(--charcoal);
    color: var(--cream);
}

/* Contact Form */
.contact-form {
    background: var(--sand);
    padding: 48px;
    border-radius: 24px;
}

.contact-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    background: var(--cream);
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
}

.form-group textarea { resize: none; min-height: 140px; }

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--charcoal);
    color: var(--cream);
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.submit-btn:hover { background: var(--terracotta); }

/* Contact Map */
.contact-map {
    margin-top: 80px;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

/* ================================================
   Footer
   ================================================ */
.footer {
    padding: 4rem 5vw;
    border-top: 1px solid rgba(45, 45, 45, 0.1);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left {
    font-size: 0.75rem;
    color: var(--charcoal);
    opacity: 0.5;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
}

.footer-logo span { color: var(--terracotta); }

.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
}

.footer-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

.footer-link:hover { color: var(--terracotta); }

/* ================================================
   Animations
   ================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }

    .hero-content { grid-template-columns: 1fr; gap: 4rem; }
    .hero-image { display: none; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-card:nth-child(2), .project-card:nth-child(4) { margin-top: 0; }

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

    .about-intro-grid { grid-template-columns: 1fr; }
    .service-detail-item { grid-template-columns: 1fr; gap: 40px; }
    .service-detail-item.reverse { direction: ltr; }

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

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

@media (max-width: 768px) {
    .nav { padding: 1.5rem 5vw; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .philosophy-stats { grid-template-columns: 1fr; gap: 2rem; }

    .footer { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-right { justify-content: center; }

    .team-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }

    .project-info-grid { grid-template-columns: 1fr; }
    .project-info-item { border-right: none; border-bottom: 1px solid rgba(248, 245, 240, 0.1); }
    .project-info-item:last-child { border-bottom: none; }

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

    .project-nav { grid-template-columns: 1fr; }
    .project-nav-item:first-child { border-right: none; border-bottom: 1px solid rgba(45, 45, 45, 0.1); }
    .project-nav-item.next { text-align: left; }

    .contact-form { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .page-header { padding: 120px 5vw 60px; }
    .projects, .services, .about-intro, .team-section, .values-section, .contact-section { padding: 60px 5vw; }
    .services-detail { padding: 60px 5vw; }
}

/* ================================================
   Project Detail - Enhanced Design
   ================================================ */

/* Hero Section */
.project-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(45, 45, 45, 0.4) 0%,
        rgba(45, 45, 45, 0.6) 50%,
        rgba(45, 45, 45, 0.9) 100%);
}

.project-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--cream);
    padding: 0 5vw;
    max-width: 900px;
}

.project-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(199, 91, 59, 0.9);
    color: var(--cream);
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.badge-icon svg {
    width: 16px;
    height: 16px;
}

.project-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.project-hero-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.project-hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--cream);
    opacity: 0.7;
    z-index: 1;
}

.project-hero-scroll .scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--cream), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.project-hero-scroll span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Stats Bar */
.project-stats-bar {
    background: var(--charcoal);
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -1px;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.stat-block {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 2.5rem;
    transition: background 0.3s ease;
}

.stat-block:hover {
    background: rgba(199, 91, 59, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(199, 91, 59, 0.15);
    color: var(--terracotta);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(248, 245, 240, 0.5);
}

.stat-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
}

.stat-value.status-complete {
    color: var(--sage);
}

.stat-divider {
    width: 1px;
    background: rgba(248, 245, 240, 0.1);
}

/* Section Numbers */
.section-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: rgba(45, 45, 45, 0.08);
    line-height: 1;
    margin-bottom: 1rem;
}

.section-number.light {
    color: rgba(248, 245, 240, 0.1);
}

/* Project Main Content */
.project-main {
    padding: 100px 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.project-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.intro-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

.intro-title em {
    font-style: italic;
    color: var(--terracotta);
}

.intro-lead {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(45, 45, 45, 0.75);
}

/* Bento Gallery */
.project-gallery-section {
    padding: 80px 5vw 100px;
    background: var(--cream);
}

.gallery-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
}

.gallery-title em {
    font-style: italic;
    color: var(--terracotta);
}

.bento-gallery {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.bento-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 45, 45, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.bento-item:hover .bento-overlay {
    background: rgba(45, 45, 45, 0.4);
}

.bento-zoom {
    width: 60px;
    height: 60px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.bento-zoom svg {
    width: 24px;
    height: 24px;
    color: var(--charcoal);
}

.bento-item:hover .bento-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Features Section */
.project-features-section {
    position: relative;
    padding: 120px 5vw;
    background: var(--charcoal);
    overflow: hidden;
}

.features-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.features-shape {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(199, 91, 59, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.features-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.features-header {
    margin-bottom: 4rem;
}

.features-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
}

.features-title em {
    font-style: italic;
    color: var(--terracotta);
}

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

.feature-card {
    background: rgba(248, 245, 240, 0.03);
    border: 1px solid rgba(248, 245, 240, 0.08);
    padding: 2.5rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: rgba(248, 245, 240, 0.06);
    border-color: rgba(199, 91, 59, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(199, 91, 59, 0.15);
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--terracotta);
}

.feature-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-line {
    width: 40px;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.4s ease;
}

.feature-card:hover .feature-line {
    width: 60px;
}

/* Project Specs */
.project-specs {
    padding: 100px 5vw;
    background: var(--cream);
}

.specs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.specs-visual {
    position: relative;
}

.specs-image {
    position: relative;
    overflow: hidden;
}

.specs-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.specs-accent {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--terracotta);
    top: 20px;
    left: 20px;
    z-index: -1;
}

.specs-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.specs-title em {
    font-style: italic;
    color: var(--terracotta);
}

.specs-list {
    display: flex;
    flex-direction: column;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.spec-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(45, 45, 45, 0.5);
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
}

/* Related Projects */
.related-projects {
    padding: 100px 5vw;
    background: #f0ebe4;
}

.related-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.related-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
}

.related-title em {
    font-style: italic;
    color: var(--terracotta);
}

.related-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    display: block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.related-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.08);
}

.related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 45, 45, 0.8) 0%, transparent 60%);
}

.related-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--cream);
}

.related-cat {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.related-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.related-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--terracotta);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.related-arrow svg {
    width: 20px;
    height: 20px;
}

.related-card:hover .related-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Project Navigation */
.project-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    background: var(--cream);
    border-top: 1px solid rgba(45, 45, 45, 0.1);
}

.nav-project {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 200px;
    padding: 2rem 3rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.nav-project.empty {
    background: transparent;
}

.nav-project-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.nav-project-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-project:hover .nav-project-bg {
    opacity: 0.15;
}

.nav-project-content {
    position: relative;
    z-index: 1;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.nav-direction svg {
    width: 18px;
    height: 18px;
}

.nav-project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.nav-project:hover .nav-project-title {
    color: var(--terracotta);
}

.nav-project-cat {
    font-size: 0.85rem;
    color: rgba(45, 45, 45, 0.5);
}

.nav-project.next {
    justify-content: flex-end;
    text-align: right;
}

.nav-all-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--charcoal);
    color: var(--cream);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.nav-all-projects:hover {
    background: var(--terracotta);
}

.nav-grid-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 245, 240, 0.2);
}

.nav-grid-icon svg {
    width: 24px;
    height: 24px;
}

/* Project CTA */
.project-cta {
    position: relative;
    padding: 120px 5vw;
    background: var(--charcoal);
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    background: radial-gradient(circle, rgba(199, 91, 59, 0.15) 0%, transparent 70%);
}

.cta-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
}

.cta-shape-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
}

.cta-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-title em {
    font-style: italic;
    color: var(--terracotta);
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(248, 245, 240, 0.7);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--terracotta);
    color: var(--cream);
    padding: 1.1rem 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

.cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(45, 45, 45, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    border: none;
    color: var(--cream);
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: var(--terracotta-dark);
}

/* Responsive - Project Detail */
@media (max-width: 1024px) {
    .stats-container {
        flex-wrap: wrap;
    }

    .stat-block {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(248, 245, 240, 0.1);
    }

    .stat-divider {
        display: none;
    }

    .project-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bento-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-item.tall {
        grid-row: span 1;
    }

    .specs-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .specs-visual {
        order: 2;
    }

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

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

    .nav-all-projects {
        order: -1;
    }

    .nav-project.next {
        text-align: left;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 600px;
    }

    .stat-block {
        flex: 1 1 100%;
        padding: 1.5rem;
    }

    .bento-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .bento-item.large,
    .bento-item.wide,
    .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .related-image {
        height: 280px;
    }
}
