:root {
    --bg-color: #F1EFE9;
    --text-color: #1A1A1A;
    --text-muted: #5E5D5B;
    --accent-blue: #C1D5EE;
    --border-color: rgba(0, 0, 0, 0.15);
    
    /* Footer & Dark Theme Colors */
    --bg-dark: #111111;
    --bg-dark-form: #1A1A1A;
    --text-dark-muted: #555555;
    --border-dark: #222222;

    /* Spacing Grid (8px baseline) */
    --spacing-1: 0.5rem;
    --spacing-2: 1rem;
    --spacing-3: 1.5rem;
    --spacing-4: 2rem;
    --spacing-5: 2.5rem;
    --spacing-6: 3rem;
    --spacing-8: 4rem;
    --spacing-10: 5rem;
    --spacing-12: 6rem;
    --spacing-16: 8rem;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-dark {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(241, 239, 233, 0.85);
    backdrop-filter: blur(16px);
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    position: relative;
    color: var(--text-muted);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
}

/* Hero */
.hero {
    display: flex;
    min-height: 85vh;
    padding: 4rem 5% 0;
    align-items: flex-start;
    gap: 5rem;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    display: block;
    color: var(--text-muted);
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
    line-height: 1.5;
}

.hero-content .btn {
    margin-bottom: 5rem;
}

.scroll-down {
    animation: bounce 2s infinite;
    color: var(--text-muted);
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

.hero-image {
    flex: 0.8;
    height: 70vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Stats */
.stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item .stat-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    line-height: 1.4;
}

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

.stat-number h3 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-number p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.stat-divider {
    font-size: 2rem;
    font-weight: 300;
    color: var(--border-color);
}

/* Quote / What We Do Section */
.quote {
    padding: 6rem 5% 2rem;
    display: flex;
    justify-content: center;
}

.quote-box {
    max-width: 800px;
    text-align: center;
}

.quote-box .eyebrow {
    margin-bottom: 1rem;
}

.quote-box h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 400;
}

.quote-box p {
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Split Services Section */
.services-section {
    padding: 2rem 5% 4rem;
}

.services-split-container {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.services-intro {
    flex: 1;
}

.services-intro p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.services-list {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.service-accordion {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.service-accordion:last-child {
    border-bottom: 1px solid var(--border-color);
}

.service-accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-accordion summary::-webkit-details-marker {
    display: none;
}

.service-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.service-accordion[open] summary::after {
    content: '−';
}

.service-accordion summary h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 400;
}

.service-content {
    margin-top: 1.25rem;
    padding-bottom: 0.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

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

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-features li::before {
    content: "—";
    color: var(--text-color);
}

/* Glide Inspired Work Layout Underneath Services */
.work-section {
    padding: 4rem 5% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.work-header h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 500;
    max-width: 50%;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.case-study.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.case-study.reverse .cs-content {
    order: 2;
}

.case-study.reverse .cs-visual {
    order: 1;
}

.cs-tags {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}

.cs-headline {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

.cs-visual {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.cs-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.cs-visual-portrait {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background-color: transparent !important;
}

.cs-visual.cs-visual-portrait img {
    width: auto !important;
    max-height: 520px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.hover-arrow .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.hover-arrow:hover .arrow {
    transform: translateX(5px);
}

.view-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 3px;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* Process */
.process {
    padding: 8rem 5%;
    border-top: 1px solid var(--border-color);
}

.process-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
}

.process-stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.stage h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stage p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.work-together-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 5px;
}

/* Footer / Contact */
.footer {
    padding: var(--spacing-16) 5% var(--spacing-8);
    background-color: var(--bg-dark);
    color: var(--bg-color);
}

.contact-grid {
    display: flex;
    gap: 8rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    color: #F1EFE9;
    font-size: 3rem;
}

.contact-info p {
    color: #999;
    margin-bottom: 3rem;
    max-width: 80%;
    font-size: 1.05rem;
}

.inquiry-info {
    margin-bottom: 6rem;
}

.inquiry-label {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.email-link {
    font-size: 1.75rem;
    border-bottom: 1px solid #F1EFE9;
    padding-bottom: 0.25rem;
    font-family: var(--font-heading);
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
    margin-top: var(--spacing-12);
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

.contact-form-container {
    flex: 1;
    background-color: var(--bg-dark-form);
    padding: var(--spacing-8);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #F1EFE9;
    font-family: inherit;
    font-size: 1.05rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 1px solid #F1EFE9;
}

.contact-form .btn-dark {
    background-color: #F1EFE9;
    color: #111;
    border: none;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.25rem;
    font-size: 0.9rem;
}

.contact-form .btn-dark:hover {
    background-color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-split-container {
        flex-direction: column;
        gap: 4rem;
    }
    
    .case-study, .case-study.reverse {
        grid-template-columns: 1fr;
    }
    
    .case-study.reverse .cs-content, .cs-content {
        order: 1;
    }
    
    .case-study.reverse .cs-visual, .cs-visual {
        order: 2;
    }
    
    .work-header h2 { max-width: 100%; }
    
    .process-stages {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        flex-direction: column;
        gap: 4rem;
    }
    .stats {
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
    
    .navbar {
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 3rem;
        gap: 2.5rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .hero-subtext {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        height: 40vh;
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 5%;
    }
    
    .stat-divider {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .quote {
        padding: 4rem 5% 1.5rem;
    }
    
    .quote-box h2 {
        font-size: 1.8rem;
    }
    
    .quote-box p {
        font-size: 1rem;
    }
    
    .services-section {
        padding: 1.5rem 5% 3rem;
    }
    
    .services-split-container {
        gap: 2.5rem;
    }
    
    .service-accordion summary h3 {
        font-size: 1.3rem;
    }
    
    .work-section {
        padding: 3rem 5%;
    }
    
    .cs-headline {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .cs-visual.cs-visual-portrait img {
        max-height: 450px;
    }
    
    .process {
        padding: 4rem 5%;
    }
    
    .process-stages {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 4rem 5% 2rem;
    }
    
    .contact-grid {
        gap: 3rem;
    }
    
    .contact-info h2 {
        font-size: 2.5rem;
    }
    
    .email-link {
        font-size: 1.4rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.1rem;
    }
    
    .hero-image {
        height: 30vh;
    }
    
    .stat-number h3 {
        font-size: 2.5rem;
    }
    
    .quote-box h2 {
        font-size: 1.5rem;
    }
    
    .cs-headline {
        font-size: 1.4rem;
    }
    
    .cs-visual.cs-visual-portrait img {
        max-height: 360px;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .email-link {
        font-size: 1.15rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* ----- ACCESSIBILITY ----- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hover-scale:hover img {
        transform: none !important;
    }
    .hover-arrow:hover .arrow {
        transform: none !important;
    }
}
