/* --- Global Resets & Layout Framework --- */
html {
    scroll-behavior: smooth; /* Pure CSS smooth anchoring */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c2520;
    background-color: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
/* --- Global Site Header & Navigation --- */
.global-site-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #f0ebe6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111111;
    text-decoration: none;
}

.site-nav a {
    text-decoration: none;
    color: #6e655f;
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #111111;
}

/* --- Homepage Hero Intro --- */
.home-hero {
    background-color: #f5f0eb;
    padding: 8rem 2rem;
    text-align: left;
    display: flex;
    justify-content: center;
}

.home-hero-content {
    max-width: 1020px;
    width: 100%;
}

.home-title {
    font-size: 3.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111111;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.home-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #4a423c;
    max-width: 650px;
}

/* --- Featured Work Card System --- */
.work-section {
    padding: 6rem 0 4rem 0;
}

.work-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
    background-color: #ffffff;
}

.work-image-side {
    width: 100%;
    height: 380px;
    background-color: #fbf9f7;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f0ebe6;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fallback until you put an <img> in the card */
.image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f0eb 0%, #e6dfd9 100%);
}

.work-text-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.work-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6e655f;
    margin-bottom: 0.75rem;
}

.work-text-side p {
    color: #4a423c;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.view-project-btn {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #2c2520;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.view-project-btn:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

/* CSS Interaction: Elevate card image subtly when hovering anywhere on the block */
.work-featured-card:hover .work-image-side {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* --- Homepage Media Queries --- */
@media (max-width: 768px) {
    .home-title { font-size: 2.5rem; }
    .home-subtitle { font-size: 1.15rem; }
    .home-hero { padding: 5rem 1.25rem; }
    .work-featured-card { grid-template-columns: 1fr; gap: 2rem; }
    .work-image-side { height: 240px; }
}

.case-study-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 2rem;
}

.cs-section {
    padding: 5rem 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background-color: #f0ebe6;
    margin: 2rem 0;
}

/* --- Hero Header --- */
.hero-header {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 380px;
    background-color: #f5f0eb;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #4a423c;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* --- Timeline Navigation System --- */
.process-timeline {
    position: relative;
    margin: 3rem auto 5rem auto;
    max-width: 750px;
}

.timeline-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e6dfd9;
    z-index: 1;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    position: relative;
    z-index: 2;
}

.timeline-steps a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #2c2520;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.timeline-steps a:hover .step-number {
    background-color: #2c2520;
    color: #fff;
    transform: scale(1.1);
}

/* --- Responsive Split Layout (Overview, User Flow, Style Guide) --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    align-items: start;
}

.title-column .section-title {
    position: sticky;
    top: 2rem; /* Keeps layout title grounded on desktop scroll */
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
}

.content-column p, .text-column p {
    font-size: 1.05rem;
    color: #4a423c;
    margin-bottom: 1.5rem;
}

.content-column .lead-text {
    font-size: 1.2rem;
    color: #2c2520;
}

.portfolio-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.style-guide-preview {
    margin-top: 2.5rem;
}

/* --- Dual Column Layout (Problem / Solution) --- */
.dual-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 1rem;
}

/* --- High-Fidelity Mockups Showcase Grid --- */
.section-intro {
    max-width: 700px;
    margin-bottom: 3.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: #4a423c;
    margin-top: 1rem;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.mockup-card {
    display: flex;
    flex-direction: column;
}

.mockup-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.mockup-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6e655f;
    font-weight: 500;
}

.mockup-card:hover .mockup-image {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .timeline-line { display: none; }
    .timeline-steps { overflow-x: auto; padding-bottom: 1rem; }
    .split-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .dual-column-layout { grid-template-columns: 1fr; gap: 3rem; }
    .mockup-grid { grid-template-columns: 1fr; }
}