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

:root {
    --purple: #7B2D8E;
    --green: #2E7D32;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #f5f5f5;
    --gray-text: #666666;
    --yellow: #efc311;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

.italic {
    font-style: italic;
}

.purple {
    color: var(--purple);
}

/* Cheeky "Be nice" animation */
.hero-title .italic.purple,
.cheeky-text {
    display: inline-block;
    animation: cheeky-wiggle 2.5s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes cheeky-wiggle {
    0% {
        transform: rotate(0deg) translateX(0);
    }
    6% {
        transform: rotate(-3deg) translateX(-2px);
    }
    12% {
        transform: rotate(2.5deg) translateX(2px);
    }
    18% {
        transform: rotate(-2deg) translateX(-1px);
    }
    24% {
        transform: rotate(1deg) translateX(1px);
    }
    30%, 100% {
        transform: rotate(0deg) translateX(0);
    }
}

.green {
    color: var(--green);
}

.num {
    color: var(--purple);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
}

/* Layout */
section {
    padding: 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 20px 5%;
    text-align: right;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: 20px;
}

.nav-link:first-child {
    margin-left: 0;
}

.nav-link:hover {
    color: var(--purple);
}

.nav-social {
    display: inline-block;
    margin-left: 20px;
    color: var(--black);
    vertical-align: middle;
    transition: color 0.2s ease;
}

.nav-social:hover {
    color: var(--purple);
}

.nav-social svg {
    display: block;
}

/* Project Page Navigation */
.project-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99;
}

.project-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.project-nav-link:hover {
    opacity: 0.7;
}

.project-nav-link svg {
    width: 16px;
    height: 16px;
}

/* Project Page Extra Padding */
.project-page {
    padding-top: 140px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 112px 10% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 40px;
}

.hero-logo {
    max-width: 275px;
    margin: 0 auto 40px;
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-tagline {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    padding-top: 60px;
    padding-bottom: 60px;
    border-top: 1px solid #eee;
}

.about-content {
    max-width: 600px;
}

.about-content p {
    margin-bottom: 1.2em;
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Ethos Section */
.ethos {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

.ethos-content {
    max-width: 600px;
}

.ethos-content p {
    margin-bottom: 1.2em;
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contents Section */
.contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 60px;
    border-top: 1px solid #eee;
}

.contents-title {
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.contents-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

@media (min-width: 1100px) {
    .contents-nav {
        flex-wrap: nowrap;
    }
}

.contents-nav a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.contents-nav a:hover,
.contents-nav a:active {
    color: var(--green);
}

.contents-nav .num {
    margin-right: 6px;
}

/* Case Study Sections */
.case-study {
    border-top: 1px solid #eee;
}

.case-study.sub-case {
    border-top: none;
    padding-top: 40px;
}

.case-study-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 48px;
}

.case-study-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

.case-study-intro h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.case-study-intro h4.intro-subtitle {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.case-study-intro p {
    color: var(--gray-text);
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    text-align: left;
}

/* Case Study Content */
.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Aligned content - matches the two-column header grid */
.case-study-content.aligned {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
}

.case-study-content.aligned:last-child {
    margin-bottom: 0;
}

/* Tighter spacing when text follows an image */
.case-study-content.aligned + .case-study-content.aligned .aligned-text:first-child {
    margin-top: 0;
}

.case-study-content.aligned .hero-image,
.case-study-content.aligned .aligned-text,
.case-study-content.aligned .aligned-subsection {
    grid-column: 2;
    max-width: 100%;
    margin: 0;
}

.aligned-text p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2em;
}

.aligned-text p:last-child {
    margin-bottom: 0;
}

.aligned-subsection .subsection-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.aligned-subsection .subsection-subtitle {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.aligned-subsection p + .subsection-subtitle {
    margin-top: 32px;
}

.aligned-subsection p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2em;
}

.aligned-subsection p:last-child {
    margin-bottom: 0;
}

.aligned-subsection .single-image + p {
    margin-top: 24px;
}

.aligned-subsection .single-image {
    margin: 24px 0;
    max-width: 800px;
}

.aligned-subsection .single-image:first-child {
    margin-top: 0;
}

.aligned-subsection .single-image img,
.aligned-subsection .single-image video {
    width: 100%;
    height: auto;
    display: block;
}

.book-showcase,
.hero-image {
    max-width: 800px;
    margin: 0 auto;
}

.book-showcase img,
.hero-image img,
.hero-image video {
    width: 100%;
    height: auto;
}

.hero-image video {
    display: block;
}

/* List styling */
.aligned-text ul {
    margin: 1.2em 0;
    padding-left: 1.5em;
}

.aligned-text ul:last-child {
    margin-bottom: 0;
}

.aligned-text li {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.4em;
}

.aligned-text li:last-child {
    margin-bottom: 0;
}

.aligned-text .keywords {
    line-height: 2;
}

.aligned-text .keywords em {
    color: var(--black);
}

.project-description {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.project-description p {
    margin-bottom: 1.2em;
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Subsections */
.subsection {
    padding-top: 40px;
}

.subsection-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.subsection-subtitle {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.subsection > p {
    max-width: 700px;
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 1.2em;
    line-height: 1.7;
}

/* Image Grids */
.art-direction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.art-direction-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.art-descriptions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.art-desc h4 {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.art-desc p {
    font-size: 0.85rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.concept-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.concept-image img {
    width: 100%;
    height: auto;
}

.concept-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.process-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sketches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.sketches-grid img {
    width: 100%;
    height: auto;
}

.logo-variations {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.logo-variations img {
    width: 100%;
    height: auto;
}

/* Typography Section */
.typography-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.typography-intro p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.type-specimens {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-swatches {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.type-sample {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.font-list {
    margin-top: 10px;
}

.font-list p {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

/* Mockups */
.mockup-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

.mockup-showcase img {
    width: 100%;
    height: auto;
}

.social-mockup {
    max-width: 500px;
    margin-top: 30px;
}

.social-mockup img {
    width: 100%;
    height: auto;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.newsletter-grid img {
    width: 100%;
    height: auto;
}

.blog-mockups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

.blog-mockups img {
    width: 100%;
    height: auto;
}

/* Moodboard Grid */
.moodboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.moodboard-grid img {
    width: 100%;
    height: auto;
}

/* Logo Showcase */
.logo-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.logo-showcase img {
    width: 100%;
    height: auto;
}

/* Menu Showcase */
.menu-showcase {
    margin-top: 30px;
}

.menu-showcase img {
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* Poster Grid */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.poster-grid img {
    width: 100%;
    height: auto;
}

.poster-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.poster-showcase img {
    width: 100%;
    height: auto;
}

.poster-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.poster-details img {
    width: 100%;
    height: auto;
}

/* Merch Grid */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.merch-grid img {
    width: 100%;
    height: auto;
}

/* Branding Book Grid */
.branding-book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.branding-book-grid img {
    width: 100%;
    height: auto;
}

/* Full Width Image */
.full-width-image {
    margin: 0 -10%;
    width: calc(100% + 20%);
}

.full-width-image img {
    width: 100%;
    height: auto;
}

/* Impact Image */
.impact-image {
    margin-top: 30px;
}

.impact-image img {
    width: 100%;
    height: auto;
}

/* Screenprint Grid */
.screenprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.screenprint-grid img {
    width: 100%;
    height: auto;
}

/* Street Photos */
.street-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.street-photos img {
    width: 100%;
    height: auto;
}

/* Process Image */
.process-image,
.research-image {
    margin-top: 30px;
}

.process-image img,
.research-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* Zine Photos */
.zine-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.zine-photos img {
    width: 100%;
    height: auto;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.research-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Process Images */
.process-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.process-images img {
    width: 100%;
    height: auto;
}

/* Spread Image */
.spread-image {
    margin-top: 30px;
}

.spread-image img {
    width: 100%;
    height: auto;
}

/* Single Image */
.single-image {
    margin: 24px 0;
    max-width: 800px;
}

.single-image:first-child {
    margin-top: 0;
}

.single-image img,
.single-image video {
    width: 100%;
    height: auto;
    display: block;
}

/* Two Column Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.two-col-grid img {
    width: 100%;
    height: auto;
}

/* Editorial Spreads */
.editorial-spreads {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.editorial-spreads img {
    width: 100%;
    height: auto;
}

/* Book Photos */
.book-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.book-photos img {
    width: 100%;
    height: auto;
}

/* Pitch Deck Grid */
.pitch-deck-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.pitch-deck-grid img {
    width: 100%;
    height: auto;
}

/* Film Grid */
.film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.film-grid img {
    width: 100%;
    height: auto;
}

/* About Page */
.about-page {
    padding: 160px 10% 100px;
    max-width: 900px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 60px;
}

.about-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.about-text {
    margin-bottom: 80px;
}

.about-text p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2em;
}

.contact-section {
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-email {
    display: inline-block;
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--black);
    padding-bottom: 2px;
    margin-bottom: 30px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
    color: var(--purple);
    border-color: var(--purple);
}

.social-links {
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    color: var(--black);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--purple);
}

/* Coming Soon */
.coming-soon-text {
    color: var(--gray-text);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 100px 10%;
    text-align: center;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--white);
    padding-bottom: 4px;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    section {
        padding: 60px 6%;
    }

    .about,
    .ethos,
    .case-study-header,
    .case-study-content.aligned {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-study-content.aligned .hero-image,
    .case-study-content.aligned .aligned-text,
    .case-study-content.aligned .aligned-subsection {
        grid-column: 1;
    }

    .case-study-content.aligned {
        margin-bottom: 36px;
    }

    .case-study-header {
        margin-bottom: 36px;
    }

    .contents-nav {
        gap: 10px 24px;
    }

    .art-direction-grid,
    .art-descriptions {
        grid-template-columns: 1fr;
    }

    .art-direction-grid img {
        height: auto;
    }

    .concept-content {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .typography-content {
        grid-template-columns: 1fr;
    }

    .newsletter-grid,
    .poster-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-variations {
        grid-template-columns: repeat(2, 1fr);
    }

    .moodboard-grid,
    .sketches-grid,
    .merch-grid,
    .branding-book-grid,
    .poster-showcase,
    .screenprint-grid,
    .research-grid,
    .book-photos,
    .pitch-deck-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-showcase,
    .street-photos,
    .zine-photos,
    .process-images,
    .poster-details {
        grid-template-columns: 1fr;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-width-image {
        margin: 0;
        width: 100%;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .process-grid,
    .sketches-grid,
    .newsletter-grid,
    .poster-grid,
    .moodboard-grid,
    .merch-grid,
    .branding-book-grid,
    .poster-showcase,
    .screenprint-grid,
    .research-grid,
    .editorial-spreads,
    .book-photos,
    .pitch-deck-grid,
    .film-grid {
        grid-template-columns: 1fr;
    }

    .logo-variations {
        grid-template-columns: 1fr;
    }

    .color-swatches {
        flex-direction: column;
    }
}
