/* --- The High-Light Color System & Variables --- */
:root {
    /* Colors */
    --base-canvas: #F9F1F0;
    --secondary-surface: #EFE9E1;
    --neutral-transition: #D9D9D9;
    --neutral-dark: #D1C7BD;
    --text-primary: #3b2f2f; /* Darker brown for readability */
    --text-accent: #E1A140; /* Golden accent */
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    
    /* Spacing & Utilities */
    --border-radius: 2px;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.4s ease;
}

/* --- Global Reset & Basics --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--base-canvas);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

/* Responsive Typography with Clamp */
.hero-headline {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: #ffffff; /* White over video */
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.dash {
    color: var(--text-accent);
    font-weight: 300;
}

.lead-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.sub-text {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.85;
}

.sub-text:last-of-type {
    margin-bottom: 3rem;
}

/* --- Intro Screen --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--base-canvas);
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-intro { display: block; }
.mobile-intro { display: none; }

#skip-intro {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 20px;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#skip-intro:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- Layout Containers --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 0;
}

.section-light {
    background-color: var(--base-canvas);
}

.section-alt {
    background-color: var(--secondary-surface);
}

.section-reviews {
    background-color: var(--text-primary);
    color: var(--base-canvas);
}

.section-reviews .section-title {
    color: var(--base-canvas);
}

.section-reviews .dash {
    color: var(--base-canvas);
    opacity: 0.7;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-dark);
    transition: var(--transition-medium);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-logo {
    height: 40px; /* Adjust based on actual logo */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 200;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-accent);
}

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

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 241, 240, 0.5); /* Light, bright, semi-transparent overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
}

.hero-headline {
    font-size: clamp(1.8rem, 8vw, 4.5rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: none;
    line-height: 1.2;
}

.hero-subheadline {
    font-size: clamp(1rem, 4vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.8;
    text-shadow: none;
}

/* --- Philosophy Section --- */
.gallery-effect {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.g-img-1 { width: 45%; height: auto; transform: translateY(2rem); }
.g-img-2 { width: 55%; height: auto; }

/* --- Mission (3D vs Reality Slider) --- */
.mission-content {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 1rem;
}

.mission-subtext {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    opacity: 0.85;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(172, 156, 141, 0.15);
}

.comparison-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-image {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 1;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--text-primary);
}

.slider-button svg {
    width: 16px;
    height: 16px;
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

/* --- Services Section --- */
.services-subtitle {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-primary);
}
.services-subtitle strong {
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--neutral-dark);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-card:nth-child(odd) {
        border-right: 1px solid var(--neutral-dark);
    }
    .service-card:nth-child(1), .service-card:nth-child(2) {
        border-bottom: 1px solid var(--neutral-dark);
    }
}

@media (max-width: 767px) {
    .service-card:not(:last-child) {
        border-bottom: 1px solid var(--neutral-dark);
    }
}

.service-card {
    padding: 3.5rem 3rem;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.service-number {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-primary);
}

.service-desc {
    font-size: 1.05rem;
    opacity: 0.8;
    line-height: 1.8;
    color: var(--text-primary);
}

/* --- Portfolio Masonry --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    grid-auto-flow: dense;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neutral-transition);
    border-radius: var(--border-radius);
    background-color: #fff;
}

/* Asymmetrical Spanning */
.item-large { grid-column: span 8; grid-row: span 2; }
.item-medium { grid-column: span 4; grid-row: span 1; }
.item-tall { grid-column: span 4; grid-row: span 2; }
.item-small { grid-column: span 4; grid-row: span 1; }
.item-wide { grid-column: span 8; grid-row: span 1; }

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.masonry-item:hover .img-wrapper img {
    transform: scale(1.05);
}

/* --- Client Reviews --- */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.review-quote {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 200;
    line-height: 1.6;
}

.review-author {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- Leadership Section --- */
.founders-container {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.founder-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
    background: var(--secondary-surface);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--neutral-transition);
    box-shadow: 0 10px 30px rgba(172, 156, 141, 0.05);
    transition: transform 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
}

.founder-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.founder-title {
    font-size: 0.85rem;
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.founder-bio {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* --- Contact Section --- */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--text-primary);
    color: var(--base-canvas);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-link {
    font-size: 1.2rem;
    color: var(--base-canvas);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--text-accent);
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary-surface);
    padding: 4rem 0 2rem 0;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo-img {
    height: 80px;
    opacity: 0.9;
}

.footer-tagline {
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-subtagline {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.7;
    max-width: 400px;
}

.footer-bottom {
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.back-to-top {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--neutral-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--neutral-dark);
    color: #fff;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .item-large, .item-wide { grid-column: span 6; }
    .item-medium, .item-tall, .item-small { grid-column: span 3; }
    
    .gallery-effect {
        flex-direction: column;
    }
    .g-img-1, .g-img-2 {
        width: 100%;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplification for mobile, could add hamburger */
    }
    
    .desktop-intro { display: none; }
    .mobile-intro { display: block; }
    
    .masonry-grid {
        display: flex;
        flex-direction: column;
    }
    
    .item-large, .item-medium, .item-tall, .item-small, .item-wide {
        height: 300px;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .contact-details {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
    .contact-item {
        align-items: flex-start;
    }
}
