:root {
    --bg: #F5F0EB;
    --text: #390517;
    --text-muted: #6B6B6B;
    --border: #D4CFC8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Default: over light sections -> match cream bg */
    background: var(--bg);
    transition: background 0.3s ease;
}

/* Over dark sections -> match maroon bg */
nav.light-nav {
    background: var(--text);
}

.nav-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
    /* Default: maroon logo on cream bar */
    filter: none;
    transition: filter 0.3s ease;
}

/* Over dark sections: cream logo (matches default --bg) on maroon bar */
nav.light-nav .nav-logo img {
    filter: brightness(0) invert(1) sepia(0.12) saturate(0.5) brightness(0.98);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease, background 0.3s ease;
}

nav.light-nav .nav-links a {
    color: #fff;
}

nav.light-nav .nav-links a::after {
    background: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 26px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Spacing via margin instead of flex `gap` (gap is unsupported on older mobile Safari) */
.nav-toggle span + span {
    margin-top: 5px;
}

nav.light-nav .nav-toggle span {
    background: #fff;
}

/* Morph into an X when open */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sections */
section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
}

/* Hero Section */
.hero {
    background: var(--bg);
    flex-direction: column;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-family: 'Lora', serif;
    font-size: clamp(3rem, 5.5vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 32px;
}

.hero h1 .great {
    font-style: italic;
    font-weight: 500;
}

.hero p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    padding-bottom: 4px;
    transition: gap 0.3s ease;
}

.hero-cta:hover {
    gap: 20px;
}

.hero-cta svg {
    width: 16px;
    height: 16px;
}

/* About Page — everything fits in one viewport on desktop */
body.about-page {
    background: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.about-page footer {
    flex-shrink: 0;
}

.about {
    background: var(--text);
    color: rgba(255,255,255,0.55);
    flex: 1;
    min-height: 0;
    padding: clamp(96px, 16vh, 140px) 64px clamp(20px, 4vh, 36px);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr;
    gap: clamp(32px, 3.5vw, 48px);
    align-items: start;
    max-width: 1400px;
    width: 100%;
}

.about-col h2 {
    font-family: 'Lora', serif;
    /* Leans on vh so short screens shrink the type instead of clipping it */
    font-size: clamp(1.3rem, 0.9vw + 2.2vh, 2.66rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: rgba(255,255,255,0.85);
}

.about-col h2 em {
    font-style: italic;
}

/* em-based margins scale together with the fluid font sizes */
.about-col h2 + p {
    margin-top: 1.4em;
}

.about-col p + h2 {
    margin-top: 1.4em;
}

.about-col p {
    font-size: clamp(0.9rem, 0.5vw + 1.1vh, 1.28rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
}

.about-col p + p {
    margin-top: 1em;
}

/* Very short windows: scrolling beats clipped text */
@media (max-height: 600px) {
    body.about-page {
        height: auto;
        display: block;
        overflow: visible;
    }

    .about {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
}

@media (max-width: 900px) {
    /* Stacked columns can't fit one screen — restore normal scrolling */
    body.about-page {
        height: auto;
        display: block;
        overflow: visible;
    }

    .about {
        padding: 140px 24px 100px;
        overflow: visible;
        min-height: 100vh;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Growth Section — Full-Width Carousel (3 Slides) */
.growth {
    background: var(--text);
    color: rgba(255,255,255,0.5);
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.growth::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    flex-shrink: 0;
}

.growth-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.growth h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.growth h2 em {
    font-style: italic;
    color: rgba(255,255,255,0.8);
}

.growth p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    max-width: 580px;
    margin: 0 auto;
}

/* Carousel Controls */
.carousel-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.7s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.6);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    pointer-events: none; /* let clicks pass except on the buttons */
}

.carousel-arrow {
    pointer-events: auto;
}

/* Minimal chevrons matching the Core Values up/down indicator */
.carousel-arrow {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    padding: 0;
    transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
    opacity: 1;
    background: transparent;
}

/* Hide the arrow when at the first/last slide, but keep its space */
.carousel-arrow.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-arrow svg {
    width: 26px;
    height: 26px;
}

/* Nudge the "next" arrow to invite sliding */
#nextArrow {
    animation: carouselNudge 1.6s ease-in-out infinite;
}

@keyframes carouselNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Services Section */
.services {
    background: var(--bg);
    flex-direction: column;
    text-align: center;
    border-top: 1px solid var(--border);
    overflow: visible;
    position: relative;
    min-height: 100vh;
    height: 400vh;
    padding: 0;
    display: block;
}

.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centers the wheel in the viewport */
    overflow: hidden;
    padding: 0 48px;
}

.services-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    /* Pinned just below the navbar; the wheel stays centered in the viewport */
    position: absolute;
    top: 104px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    z-index: 2;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 260px; /* 2 x wheel radius (130) so items stay inside the box */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: center center;
    overflow: visible;
}

.vertical-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-item {
    position: absolute;
    font-size: clamp(0.6rem, 1.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: -0.5px;
    white-space: nowrap;
    color: var(--text-muted);
    transition: opacity 0.3s ease, filter 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
    backface-visibility: hidden;
    cursor: default;
    user-select: none;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    will-change: transform, opacity, filter;
    text-decoration: none;
}

/* The text rotated closest to the centre stands out */
.wheel-item.focus {
    font-family: 'Lora', serif;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.8px;
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.5;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* Contact Section */
.contact {
    background: var(--text);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 120px;
}

.contact-info h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.contact-info .tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 48px;
}

.contact-detail {
    margin-bottom: 24px;
}

.contact-detail-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}

.contact-detail-value {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail-value:hover {
    color: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 8px 0 16px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: rgba(255,255,255,0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.submit-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 14px 36px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.submit-btn:hover {
    background: #fff;
    color: var(--text);
    border-color: #fff;
}

/* Footer */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 15px 48px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 900px) {
    nav {
        padding: 20px 24px;
    }

    .nav-links {
        gap: 24px;
    }

    .nav-logo img {
        height: 34px;
    }

    section {
        padding: 60px 24px;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .wheel-wrapper {
        height: 280px; /* 2 x radius (140) at this breakpoint */
    }

    .carousel-arrows {
        padding: 0 24px;
    }
}

@media (max-width: 600px) {
    .wheel-wrapper {
        height: 210px; /* 2 x radius (105) at this breakpoint */
    }

    .scroll-hint {
        bottom: 20px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Links become a dropdown panel under the bar */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 18px;
        background: var(--bg);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        display: none;
    }

    nav.light-nav .nav-links {
        background: var(--text);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
    }

    .nav-logo img {
        height: 30px;
    }

    .carousel-arrows {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* How We Work Section */
.how-we-work {
    background: var(--text);
    color: rgba(255,255,255,0.5);
    height: 300vh;
    padding: 30px;
    display: block;
    position: relative;
    margin-top: -1px;
    z-index: 20;
}

.work-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 9vw;
}

.work-header {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 100px;
    transform: none;
    text-align: center;
    flex-shrink: 0;
}

.work-slider {
    display: flex;
    width: 300vw;
    height: auto;
    align-items: center;
    transition: transform 0.08s linear;
}

/* Vertical scroll arrow indicator */
.work-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 5;
    color: #fff;
}

.work-arrow {
    width: 26px;
    height: 26px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Bounce the down arrow to invite scrolling */
.work-arrow.down {
    animation: workBounce 1.6s ease-in-out infinite;
}

/* Dim an arrow when that direction has no more slides */
.work-indicator.at-start .work-arrow.up,
.work-indicator.at-end .work-arrow.down {
    opacity: 0.2;
}

.work-indicator.at-end .work-arrow.down {
    animation: none;
}

@keyframes workBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.work-slide {
    width: 100vw;
    height: auto;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 0 9vw;
    padding-left: 16vw;
}

.work-number {
    font-family: 'Lora', serif;
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1;
}

.work-text h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.work-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.58);
    max-width: 520px;
}

.work-text h2 em {
    font-style: italic;
    color: rgba(255,255,255,0.8);
}

.work-image img {
    width: 100%;
    height: 395px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

@media (max-width: 900px) {
    .how-we-work {
        height: 300vh;
    }

    .work-sticky {
        justify-content: flex-start;
        padding: 180px 24px 60px;
    }

    .work-header {
        transform: translateY(0);
        margin-bottom: 28px;
        text-align: center;
    }

    .work-slider {
        align-items: flex-start;
    }

    .work-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 24px 70px;
        padding-left: 24px;
    }

    .work-image img {
        height: 260px;
    }

    .work-text p {
        max-width: 80%;
        overflow-wrap: break-word;
    }
}

/* Talent Section */
.talent {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 9vw;
    text-align: center;
}

.talent-content {
    max-width: 900px;
}

.talent h1 {
    font-family: 'Lora', serif;
    font-size: clamp(3rem, 5.5vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 32px;
}

/* Service Detail Page (template: Brand Collateral & Print, etc.) */
body.service-page {
    background: var(--text);
}

.service-detail {
    background: var(--text);
    color: rgba(255, 255, 255, 0.65);
    /* Body text inherits the global sans-serif used on index/about; headings use Lora */
    /* Override the global `section` flex-centering so content flows from the top */
    display: block;
    min-height: 100vh;
    padding: clamp(120px, 16vh, 160px) clamp(24px, 6vw, 96px) 80px;
}

.service-detail-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.service-detail h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

.service-lead {
    font-size: clamp(1rem, 0.4vw + 0.9rem, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 1080px;
    margin-bottom: 44px;
}

.service-subhead {
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

/* "What We Design & Print" inline term list — wraps to fit any width */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 1080px;
    margin-bottom: 52px;
}

/* Each term + its slash stays together so a "/" never wraps to a line start */
.service-tags .term {
    white-space: nowrap;
}

.service-tags .tag {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 3px;
}

.service-tags .sep {
    color: rgba(255, 255, 255, 0.3);
    margin-left: 8px;
}

/* "Select Works" — equal-height rows that respect each photo's orientation:
   landscape shows at 3:2, portrait at 2:3 (the same rectangle, rotated). Cards
   are flex items sized by their image, so a wide landscape sits beside a narrow
   portrait at matching height, like a considered portfolio. */
.works-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    /* Wider gap separates one named group from the next */
    gap: clamp(32px, 3.4vw, 52px) clamp(28px, 3vw, 48px);
}

/* Same-named works stay side by side as a single unit (never split across rows) */
.work-group {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    /* Tighter gap inside a group than between groups */
    gap: clamp(24px, 2.6vw, 36px) clamp(12px, 1.4vw, 18px);
}

.work-card {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.work-thumb {
    /* Shared row height drives each card's width via the aspect-ratio below */
    height: clamp(220px, 26vw, 340px);
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    cursor: zoom-in;
    /* Teal placeholder shown while the image loads / if a file is missing */
    background: #15596f;
}

.work-card.landscape .work-thumb { aspect-ratio: 3 / 2; }
.work-card.portrait  .work-thumb { aspect-ratio: 2 / 3; }

.work-card figcaption {
    margin-top: 14px;
}

.work-card h3 {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
}

.work-card figcaption p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

/* On phones, stack each photo full-width at its natural orientation */
@media (max-width: 600px) {
    .work-group,
    .work-card {
        flex: 1 1 100%;
    }
    .work-thumb {
        height: auto;
        width: 100%;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6vh 5vw;
    background: rgba(10, 2, 7, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-close svg {
    width: 28px;
    height: 28px;
}