/* ==========================================================================
   Trevor Wills Portfolio — Shared Styles
   ========================================================================== */

/* --- Design Tokens --- */
:root {
    /* Color — neutrals */
    --color-ink: #1a1a1a;
    --color-ink-soft: #4a4a4a;
    --color-ink-muted: #6a6a6a;
    --color-surface: #fefdfb;
    --color-surface-1: #f9f7f4;
    --color-surface-2: #f5f3f0;
    --color-surface-3: #f5f2ed;
    --color-border: #e8e5e1;
    --color-black: #000;
    --color-white: #fff;

    /* Color — accent */
    --color-accent: #b8552e;
    --color-accent-tint: rgba(184, 85, 46, 0.08);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 20px;
    --radius-round: 50%;

    /* Elevation */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);

    /* Motion */
    --ease-base: 0.3s;
    --ease-fast: 0.2s;

    /* Layout */
    --max-content: 1400px;
    --max-prose: 900px;
    --nav-height: 73px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-ink);
    background: var(--color-surface);
    overflow-x: hidden;
}

/* --- Accessibility: Skip Link --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 2000;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top var(--ease-fast);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --- Accessibility: Visible focus --- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

h1, h2, .section-heading, .work-title, .quote-hero p, .quote-block p {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 3rem;
    z-index: 1000;
    border-bottom: 1px solid #e8e5e1;
}

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

nav .nav-brand {
    font-weight: 600;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s;
}

nav .nav-brand:hover {
    color: #b8552e;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #b8552e;
}

nav .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Hamburger Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1002;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(254, 253, 251, 0.98);
    min-width: 320px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    border: 1px solid #e8e5e1;
    border-radius: 8px;
    padding: 0.5rem 0;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
    background: transparent;
}

.dropdown-content a {
    color: #1a1a1a;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    display: block;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f5f3f0;
    color: #b8552e;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem;
    text-align: center;
}

footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Quote Block (shared) --- */
.quote-block {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: #f9f7f4;
    border-radius: 16px;
    border-left: 4px solid #b8552e;
}

.quote-block p {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
}

.quote-block cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    color: #6a6a6a;
}

/* --- Case Study: Hero --- */
.cs-hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 3rem 4rem;
    margin-top: 73px;
    position: relative;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.cs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.cs-hero .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.cs-hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cs-hero .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* --- Case Study: Project Meta --- */
.project-meta {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.meta-item .meta-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b8552e;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.meta-item p {
    font-size: 1.125rem;
    color: #1a1a1a;
    font-weight: 500;
}

.meta-item dt {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b8552e;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.meta-item dd {
    font-size: 1.125rem;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
}

/* --- Case Study: Content Section --- */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

/* --- Case Study: Subhead inside content-section --- */
.content-section .subhead-accent {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* --- Case Study: Next-case quote block variant --- */
.quote-block--next-case {
    text-align: center;
    border-left: none;
}

.quote-block--next-case .next-case-eyebrow {
    font-size: 1rem;
    font-style: normal;
    color: var(--color-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

/* --- Lede paragraph utility --- */
.lede {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.content-section h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.content-section li {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    color: #4a4a4a;
}

.content-section strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* --- Case Study: Layouts --- */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.highlight-box {
    background: #f9f7f4;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid #e8e5e1;
}

.highlight-box h3 {
    margin-top: 0;
    color: #b8552e;
}

.image-full {
    width: 100%;
    padding: 4rem 0;
    background: white;
}

.image-full img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

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

.image-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.image-grid img,
.image-grid-three img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Case Study Link / CTA --- */
.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8552e;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #b8552e;
    border-radius: 8px;
    transition: all 0.3s;
}

.case-study-link:hover {
    background: #b8552e;
    color: white;
    transform: translateX(4px);
}

.case-study-link svg {
    transition: transform 0.3s;
}

.case-study-link:hover svg {
    transform: translateX(4px);
}

/* --- Heritage-style Carousel --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 3rem;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    position: relative;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3f0;
    cursor: pointer;
    border-radius: 8px;
}

.carousel-image {
    width: 100%;
    height: 70vh;
    object-fit: contain;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(254, 253, 251, 0.95);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background: rgba(204, 109, 71, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:hover svg {
    fill: #fff;
}

.carousel-arrow.left {
    left: 1rem;
}

.carousel-arrow.right {
    right: 1rem;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    fill: #1a1a1a;
    transition: fill 0.3s;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #b8552e;
    width: 32px;
    border-radius: 6px;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s;
}

.lightbox-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.left {
    left: 2rem;
}

.lightbox-arrow.right {
    right: 2rem;
}

.lightbox-arrow svg {
    width: 30px;
    height: 30px;
    fill: #1a1a1a;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

/* --- Seasonal Trend: Fullscreen & Animations --- */
.image-fullscreen {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.image-fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease, transform 1.5s ease;
}

.image-fullscreen.in-view img {
    opacity: 1;
    transform: scale(1);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 0;
}

.split-half {
    position: relative;
    overflow: hidden;
}

.split-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.split-half.in-view img {
    opacity: 1;
    transform: translateY(0);
}

.text-block {
    padding: 8rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.text-block h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-block p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.stats-showcase {
    padding: 10rem 3rem;
    background: #f9f7f4;
}

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

.stat-large {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-large.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stat-large .number {
    font-size: 6rem;
    font-weight: 700;
    color: #b8552e;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-large .label {
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 500;
}

/* Image Flipper Carousel */
.image-flipper {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.image-flipper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-flipper img.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(254, 253, 251, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: rgba(204, 109, 71, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:hover svg {
    stroke: #fff;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke: #1a1a1a;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.carousel-prev { left: 3rem; }
.carousel-next { right: 3rem; }

.carousel-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(254, 253, 251, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: rgba(204, 109, 71, 0.9);
    width: 32px;
    border-radius: 6px;
}

/* Asymmetric Grid */
.asymmetric-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 4rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.grid-large {
    height: 80vh;
    overflow: hidden;
}

.grid-small-stack {
    display: grid;
    gap: 2rem;
}

.grid-small {
    height: calc(40vh - 1rem);
    overflow: hidden;
}

.asymmetric-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1.2s ease;
}

.asymmetric-grid .in-view img {
    opacity: 1;
    transform: scale(1);
}

/* Quote Hero (dark) */
.quote-hero {
    padding: 15rem 3rem;
    text-align: center;
    background: #1a1a1a;
    color: white;
}

.quote-hero p {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 1200px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

/* Offset Images */
.offset-images {
    padding: 8rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.offset-pair {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.offset-pair:nth-child(even) {
    grid-template-columns: 0.8fr 1.2fr;
}

.offset-pair img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.offset-pair:nth-child(even) img {
    transform: translateX(50px);
}

.offset-pair.in-view img {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Homepage-specific
   ========================================================================== */
.home-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3rem;
    margin-top: 73px;
    background: #fefdfb;
}

.home-hero .hero-content {
    max-width: 1000px;
    text-align: center;
}

.hero-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 2.5rem;
    overflow: hidden;
    border: 3px solid #f5f2ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.home-hero h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.home-hero .tagline {
    font-size: 1.5rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.home-hero .subtitle {
    font-size: 1.125rem;
    color: #6a6a6a;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Homepage hero eyebrow */
.home-hero .hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

/* Homepage: Signature Work feature card */
.signature-feature {
    max-width: 1300px;
    margin: 6rem auto 2rem;
    padding: 0 2rem;
}

.signature-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-top: 3rem;
}

.signature-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--ease-base);
}

.signature-card-link:hover .signature-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.signature-card-media {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.signature-card-media img {
    width: 100%;
    height: auto;
    display: block;
}

.signature-card-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.signature-card-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--color-ink);
}

.signature-card-summary {
    color: var(--color-ink-soft);
    margin: 0 0 1.5rem 0;
}

.signature-card-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.signature-stat-value {
    display: block;
    font-size: 1.5rem;
    color: var(--color-ink);
    font-family: var(--font-serif);
}

.signature-stat-label {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
}

.signature-card-cta {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Homepage: work-card link wrappers (strip underline) */
.work-card-link {
    text-decoration: none;
    color: inherit;
}

/* Homepage: Principles section */
.principles-section {
    max-width: 1100px;
    margin: 6rem auto 4rem;
    padding: 0 2rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.principle-card {
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.principle-card h3 {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.principle-card p {
    color: var(--color-ink-soft);
    margin: 0;
}

@media (max-width: 768px) {
    .signature-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.75rem;
    }

    .signature-card-title {
        font-size: 1.4rem;
    }
}

/* About & Contact Hero */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3rem;
    margin-top: 73px;
    background: #fefdfb;
    text-align: center;
}

.hero .hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #6a6a6a;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #b8552e;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Section Headers */
section {
    padding: 6rem 3rem;
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #b8552e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-heading {
    font-size: 2.75rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Brands Grid */
.brands-section {
    background: #f9f7f4;
    border-top: 1px solid #e8e5e1;
    border-bottom: 1px solid #e8e5e1;
}

.brands-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
}

.brand-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    opacity: 0.85;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-logo:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Work Grid */
.work-section {
    background: #fefdfb;
}

.work-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Use CSS order instead of RTL hack */
.work-item:nth-child(even) .work-image {
    order: 2;
}

.work-item:nth-child(even) .work-content {
    order: 1;
}

.work-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #f5f2ed;
    overflow: hidden;
}

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

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

.work-content {
    padding: 3rem;
}

.work-number {
    font-size: 0.875rem;
    color: #b8552e;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.work-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.work-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.work-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8552e;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s;
}

.work-item:hover .work-cta {
    gap: 0.75rem;
}

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

.work-item:hover .work-cta svg {
    transform: translateX(4px);
}

.work-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #f9f7f4;
    color: #4a4a4a;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid #e8e5e1;
    font-weight: 500;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    /* Nav */
    .nav-hamburger {
        display: flex;
    }

    nav .nav-links {
        display: none;
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(254, 253, 251, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }

    nav .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        display: none;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: 100%;
        text-align: center;
        background: transparent;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Homepage */
    .home-hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-image {
        width: 140px;
        height: 140px;
    }

    .section-heading {
        font-size: 2rem;
    }

    .work-item,
    .work-item:nth-child(even) .work-image,
    .work-item:nth-child(even) .work-content {
        order: unset;
    }

    .work-item {
        grid-template-columns: 1fr;
    }

    .work-image {
        min-height: 300px;
    }

    .work-content {
        padding: 2rem;
    }

    .work-title {
        font-size: 1.5rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* Case Study Hero */
    .cs-hero h1 {
        font-size: 2.5rem;
    }

    .project-meta {
        grid-template-columns: 1fr;
        margin-top: -2rem;
    }

    .two-column,
    .image-grid,
    .image-grid-three {
        grid-template-columns: 1fr;
    }

    /* Seasonal / Digital */
    .text-block h2 {
        font-size: 2.5rem;
    }

    .text-block p {
        font-size: 1.25rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

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

    .stat-large .number {
        font-size: 4rem;
    }

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

    .grid-large,
    .grid-small {
        height: 50vh;
    }

    .offset-pair,
    .offset-pair:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .offset-pair img {
        height: 40vh;
    }

    .quote-hero p {
        font-size: 1.75rem;
    }

    /* Carousels & Lightbox mobile */
    .image-flipper {
        height: 60vh;
        min-height: 400px;
    }

    .image-flipper img {
        object-fit: contain;
        background: #000;
    }

    .carousel-prev { left: 1rem; }
    .carousel-next { right: 1rem; }

    .carousel-nav {
        width: 50px;
        height: 50px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .carousel-indicators {
        bottom: 1.5rem;
    }

    .carousel-container {
        padding: 0 1rem;
    }

    .carousel-image {
        height: 50vh;
        min-height: 300px;
    }

    .carousel-arrow {
        width: 50px;
        height: 50px;
    }

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

    .lightbox-arrow {
        width: 50px;
        height: 50px;
    }

    .lightbox-arrow svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-arrow.left { left: 1rem; }
    .lightbox-arrow.right { right: 1rem; }
}

/* ==========================================================================
   Responsive — Small phone (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    nav {
        padding: 1rem 1.25rem;
    }

    .home-hero h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .cs-hero {
        height: 60vh;
        padding: 0 1.25rem 2rem;
    }

    .cs-hero h1 {
        font-size: 2rem;
    }

    .cs-hero .subtitle {
        font-size: 1.05rem;
    }

    .content-section {
        padding: 2.5rem 1.25rem;
    }

    .project-meta {
        padding: 1.75rem;
        gap: 1.25rem;
    }

    .quote-block {
        padding: 2rem 1.5rem;
        margin: 3rem 1rem;
    }

    .quote-block p {
        font-size: 1.2rem;
    }

    .text-block h2 {
        font-size: 2rem;
    }

    .text-block p {
        font-size: 1.1rem;
    }

    footer {
        padding: 2rem 1.25rem;
    }
}

/* ==========================================================================
   Responsive — Tablet landscape / small laptop (≤1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 1.25rem 2rem;
    }

    .home-hero h1 {
        font-size: 3rem;
    }

    .cs-hero h1 {
        font-size: 3rem;
    }

    .project-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .work-item {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 3rem 2rem;
    }
}

/* ==========================================================================
   Accessibility — Reduced motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

