/* =============================
   Variables
   ============================= */
:root {
    --font-size: 16px;
    --line-height: 1.7;

    --color-bg: #F9F9F9;
    --color-surface: #f9f8f7;

    --color-text: #272626;
    --color-muted: #777777;

    --color-accent: #F24429;
    --color-border: #e1e1e1;
}

/* =============================
   Base
   ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    color: var(--color-text);
    font-size: var(--font-size);
    line-height: var(--line-height);

    display: flex;
    justify-content: center;
}

.page {
    width: 100%;
    max-width: 1080px;
    background: var(--color-surface);
    padding: 40px 32px;
    margin: 24px 16px 40px;
    border: none;
}

/* =============================
   Header
   ============================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;   /* TOP-align nav with name */
    padding-bottom: 24px;
    margin-bottom: 0px;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    align-items: flex-start;
    margin-top: 0;  /* keep nav aligned with top */
}

.site-nav a {
    text-decoration: none;
    font-size: 1rem;
    color: var(--color-text);
    border-bottom: 2px solid transparent;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.site-nav a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* optional: style for title link in project pages header */
.site-title-link {
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: var(--color-text);
}

.site-title-link:hover {
    color: var(--color-text) !important;
    border-bottom-color: var(--color-accent);
}

/* =============================
   Layout & Sections
   ============================= */
main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 28px 24px;
}

.intro {
    grid-column: 1 / span 6;  /* same width as one project-card (desktop) */
    max-width: 100%;
    font-size: 1rem;
}

.section {
    grid-column: 1 / span 12;
}

/* Simple single-column section heading (used on home + contact) */
.section-heading {
    padding-top: 14px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.section-subtitle {
    margin-top: 4px;
    font-size: 1rem;
    color: var(--color-muted);
}

/* =============================
   Project Cards (home page)
   ============================= */
.project-grid {
    grid-column: 1 / span 12;
    display: grid;
    grid-template-columns: 1fr;   /* STACKED VERTICALLY, FULL WIDTH */
    gap: 32px;
}

/* Tile: full-width, stacked; title left, image right, summary below */
.project-card {
    grid-column: 1 / -1;
    position: relative;
    cursor: pointer;
    padding: 16px 0 16px;
    background: transparent;
    border-top: 3px solid var(--color-text);
    padding-top: 24px; /* optional, gives breathing room */

    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    grid-template-areas:
        "title image"
        "summary image"
        "meta image";
    column-gap: 24px;

}


/* Full-card click target */
.project-card a.project-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
}

/* Image on the right */
.project-card-image {
    grid-area: image;
    margin: 0;
    overflow: hidden;
    line-height: 0;

    aspect-ratio: 16 / 9;
    width: 100%;


    /* no visible box-shadow change now */
    box-shadow: none;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.35s ease;
}

/* Hover interactions: zoom ONLY (no shadow) */
.project-card:hover .project-card-image img {
    transform: scale(1.02);
}

/* Text on the left, description below tile */
.project-card-title {
    grid-area: title;
    margin: 0 0 4px;
    font-size: 2rem;
    font-weight: 700;
    line-height: normal;
    color: var(--color-accent);

}

.project-meta {
    grid-area: meta;
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.project-summary {
    grid-area: summary;
    margin: 12px 0 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

.project-card-title,
.project-meta,
.project-summary {
    text-decoration: none;
}

.project-card:hover .project-card-title,
.project-card:hover .project-meta,
.project-card:hover .project-summary {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}


/* =============================
   Case Study Layout (project pages)
   ============================= */

/* Full-width hero image inside .page */
.section.full-width-image {
    max-width: none;
    grid-column: 1 / span 12;
    padding: 0;
}

.full-width-img-wrapper {
    width: 100%;
    margin: 40px 0 56px;
    overflow: hidden;
    line-height: 0;   /* removes any inline-gap */
}

.full-width-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Two-column section for case studies:
   meta on left, narrative on right */
.case-section {
    max-width: none;
    grid-column: 1 / span 12;
    padding: 16px 0 8px;
    border-top: 1px solid var(--color-text);
}

.case-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: 40px;
    max-width: 1080px;
}

.case-meta-title {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.2rem;
    color: var(--color-accent);

    position: sticky;
    top: 20px; /* adjust based on your header height */
    align-self: start;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);

  position: sticky;
  top: 20px;
  align-self: start;
}


.case-meta-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.case-body {
    font-size: 1rem;
    color: var(--color-text);
}

.case-body p {
    margin: 0 0 12px;
}

.case-body ul,
.case-body ol {
    margin: 8px 0 16px;
    padding-left: 20px;
}

/* =============================
   Links
   ============================= */
.project-link {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    text-decoration: underline;
    color: var(--color-muted);
}

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

a {
    color: var(--color-muted);
}

a:hover {
    color: var(--color-accent);
}

/* =============================
   Footer
   ============================= */
.site-footer {
    grid-column: 1 / span 12;
    padding-top: 24px;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* =============================
   Responsive
   ============================= */

/* Medium breakpoint: narrow desktop / tablet */
@media (max-width: 1100px) {

    .page {
        padding: 32px 20px;
        margin: 16px;
    }

    /* PROJECT GRID: still one column, full width (already 1fr) */

    .project-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 16px;
    }

    /* CASE STUDY CONTENT FULL WIDTH */
    .case-section {
        max-width: 100%;
        grid-column: 1 / span 12;
    }

    .case-layout {
        max-width: 100%;
        grid-template-columns: 1fr; /* stack left + right */
        column-gap: 0;
    }

    .case-body {
        max-width: 100%;
    }

    .intro {
        grid-column: 1 / span 12;
        max-width: 100%;    /* full width on narrow screens */
    }
}

@media (max-width: 860px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-nav {
        justify-content: flex-start;
        margin-top: 0;
    }

    main {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Ensure sections occupy full width */
    .intro,
    .section,
    .case-section {
        grid-column: 1 / span 12;
        max-width: 100%;
    }

    .case-layout {
        grid-template-columns: 1fr;
        row-gap: 12px;
        max-width: 100%;
    }

    /* 🔽 NEW: stack project cards, title → meta → summary → image */
    .project-card {
        display: flex;
        flex-direction: column;
        padding: 16px 0;
    }

    .project-card-title {
        order: 1;
    }

    .project-meta {
        order: 2;
    }

    .project-summary {
        order: 3;
    }

    .project-card-image {
        order: 4;
        margin-top: 12px;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}


/* ============================================
   IMAGE CAPTIONS — FIXED LEFT ALIGNMENT
   ============================================ */

.fig {
    margin: 32px 0 48px; /* add top margin */
    overflow: hidden; /* clips any future hover zoom for inline images */
    line-height: 0;   /* removes any inline-gap below the image */
}

.fig img {
    width: 100%;
    height: auto;
    display: block;
}

.fig-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Full-width images: caption aligns left under the image */
.full-width-image .fig-caption {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

/* ============================================
   FULLSCREEN IMAGE OVERLAY
   ============================================ */

.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 10px;
}

.image-lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.clickable-image {
    cursor: zoom-in;
}

/* ============================================
   user quote
   ============================================ */
.user-quote {
    margin: 64px 0 64px;
    padding-left: 20px;
    border-left: 3px solid var(--color-accent);
    font-style: italic;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1.6;
<<<<<<< ours
    position: relative;
    overflow: visible;
=======
>>>>>>> theirs
}

.user-quote-small {
    margin: 64px 0 64px;
    padding-left: 20px;
    border-left: 3px solid var(--color-accent);
    font-style: italic;
    color: var(--color-text);
    font-size: 1.2rem;
    line-height: 1.6;
}

.user-quote .quote-source {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-style: normal;
    color: var(--color-muted);
}
<<<<<<< ours

.user-quote::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -6px;
    width: calc(100% - 20px);
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms ease-out;
}

.user-quote.quote-in-view::after {
    transform: scaleX(1);
}
=======
>>>>>>> theirs
