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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Remove underlines from all links */
a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

/* Blog page body override */
.blog-page {
    background-color: #ffffff;
    color: #000000;
}

/* Basic responsive container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Turncloak hero */
.turncloak-hero {
    min-height: 70vh;
    padding: 80px 20px 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
}

.turncloak-icon {
    width: clamp(96px, 18vw, 160px);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(203, 151, 93, 0.25));
}

.turncloak-logo {
    width: clamp(260px, 70vw, 980px);
    height: auto;
}

.turncloak-cta a {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 4vw, 40px);
    font-style: italic;
    color: #CB975D;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.turncloak-cta a:hover {
    opacity: 0.8;
}

/* Header Bar */
.header-bar {
    background: #000000;
    color: #ffffff;
    padding: 15px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.header-bar p {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 50px;
    text-align: center;
    /* Starting position */
    transform: translateX(100%);
    /* Apply animation to this element */
    animation: scroll-left 15s linear infinite;
}

/* Move it (define the animation) */
@keyframes scroll-left {
    0% {
        transform: translateX(70%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Lazy Navigation */
.lazy-nav {
    position: fixed;
    top: -80px; /* Start above viewport */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.lazy-nav.visible {
    top: 0;
    opacity: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.nav-logo a {
    text-decoration: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon {
    height: 40px;
    width: auto;
    display: block;
}

.lazy-nav.visible .nav-logo a {
    opacity: 1;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Little Link - Unified link style */
.little-link {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.little-link:visited {
    color: #ffffff;
}

.little-link:hover {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Nav links - inherit little-link + lazy nav animations */
.nav-links a {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), all 0.3s ease;
    transition-delay: 0.1s;
}

.nav-links a:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-links a:nth-child(3) {
    transition-delay: 0.3s;
}

.lazy-nav.visible .nav-links a {
    opacity: 1;
    transform: translateY(0);
}

/* Opacity interaction for lazy nav - dim others on hover */
.lazy-nav.visible .nav-links:hover a {
    opacity: 0.5 !important;
    transition: opacity 0.3s ease;
}

.lazy-nav.visible .nav-links:hover a:hover {
    opacity: 1 !important;
}

/* Remove underline hover from lazy nav links */
.nav-links a:hover {
    background-image: none !important;
    border-bottom: none !important;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero-content {

    margin: 0;
    padding: 0;
}

.hero-title {
    width: 50%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
}

.hero-description {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 8vw, 106px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    text-align: left;
    width: 100vw;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;

}

/* Opal-specific blue styling */
/* Deprecated old opal-page overrides removed */

/* Project Hero (shared structure used across project pages) */
.project-hero-section,
.opal-hero-section {
    padding: 20px 0 40px 0;
}

.project-hero-content,
.opal-hero-content {
    width: 100vw;
    padding: 0 40px;
    box-sizing: border-box;
}

.project-hero-headline {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(36px, 6.8vw, 92px);
    font-weight: 300;
    line-height: 1.0;
    color: #ffffff;
    margin: 16px 0 0 0;
    text-align: left;
}

/* Split headline utilities */
.project-hero-headline .headline-white { color: #ffffff; }
.project-hero-headline .headline-color { color: #ffffff; }

/* Opal-specific color application for split headline */
.opal-hero-section .project-hero-headline { color: #ffffff; }
.opal-hero-section .project-hero-headline .headline-color { color: #0069FF; }

/* Turncloak-specific hero color: copper */
.turncloak-hero-section .project-hero-headline {
    color: #CB975D;
}

/* ThirdHome-specific hero color: navy */
.thirdhome-hero-section .project-hero-headline {
    color: #ffffff;
}

/* Page-specific CTA link colors (inherit structure/behavior) */
.turncloak-hero-section .project-link a {
    color: #ffffff;
}

.thirdhome-hero-section .project-link a {
    color: #ffffff;
}

.project-hero-cta {
    margin-top: 30px;
}

/* CTA intro line above link */
.project-hero-cta .cta-intro {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 3vw, 36px);
    font-style: italic;
    color: #ffffff;
    margin-bottom: 6px;
}

/* Generic project link style (typography/behavior only) */
.project-link a {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* Generic hero CTA hover: slight fade out */
.project-hero-section .project-link a:hover {
    color: #ffffff;
    opacity: 0.4;
}

/* Generic hero CTA sizing; pages can override color */
.project-hero-section .project-link a,
.opal-hero-section .project-link a {
    font-size: 48pt;
}

.opal-hero-section .project-link a {
    color: #0069FF;
}

.opal-hero-section .project-link a:hover {
    color: #ffffff;
    opacity: 0.4;
}

/* Next Project link */
.next-project {
    width: 100%;
    text-align: center;
    margin: 40px 0 0 0;
}

.next-project a {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(22px, 3vw, 40px);
    font-style: italic;
    color: #ffffff;
    transition: opacity 0.25s ease;
}

.next-project a:hover {
    opacity: 0.6;
}

/* Bottom Hero Section */
.bottom-hero {
    padding: 80px 0 0 0;
    text-align: center;
}

.bottom-hero-content {
    margin: 0;
    padding: 0;
}

.bottom-hero-description {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 8vw, 106px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    text-align: left;
    width: 100vw;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
}

/* Logo Section */
.logo-section {
    padding: 20px 0 20px 0;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}



.hero-logo {
    width: 150px;
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-logo.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Work Section */
.work {
    padding: 80px 0 0 0;
}

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0 0 60px 0;
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Project Items */
.project-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-item {
    display: flex;
    flex-direction: column;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}



.project-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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





.project-content {
    padding: 30px 30px 30px 0;
}

.project-info {
    flex: 1;
}

.project-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.project-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    transition: font-weight 0.3s ease;
}

.project-name {
    font-weight: 600 !important;
    font-size: 28px !important;
    color: #ffffff !important;
}

.project-description {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: #cccccc;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.project-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pill {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: #333333;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill:nth-child(1) { background: #f4e4c1; color: #a3611b; }
.pill:nth-child(2) { background: #ffc6dc; color: #e91e63; }
.pill:nth-child(3) { background: #f8cbff; color: #9610ae; }
.pill:nth-child(4) { background: #e8eaf6; color: #3f51b5; }
.pill:nth-child(5) { background: #c6e6fe; color: #1684df; }

.project-cta {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.project-cta-mobile {
    display: none;
}

.project-item:hover .project-cta {
    opacity: 1;
    transform: translateX(0);
}

.cta-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-top: 10px;
    text-decoration: none;
    display: block;
}

.cta-text:hover {
    color: #ffffff;
}

/* Reveal on scroll with cascade */
.reveal,
.reveal-pills { 
    opacity: 0; 
    transform: translateY(30px);
    transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1); 
}


.reveal.reveal-visible,
.reveal-pills.reveal-visible { 
    opacity: 1; 
    transform: translateY(0);
}

/* Stagger project elements for cascade effect */
.project-image.reveal {
    transition-delay: 0ms;
}

.project-content.reveal {
    transition-delay: 100ms;
}

.project-pills.reveal-pills {
    transition-delay: 200ms;
}

/* Stagger individual pills within each project */
.reveal-pills .pill { 
    opacity: 0; 
    transform: translateY(15px); 
}

.reveal-pills.reveal-visible .pill { 
    opacity: 1; 
    transform: translateY(0); 
}

.reveal-pills.reveal-visible .pill:nth-child(1) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 250ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 250ms; }
.reveal-pills.reveal-visible .pill:nth-child(2) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 320ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 320ms; }
.reveal-pills.reveal-visible .pill:nth-child(3) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 390ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 390ms; }
.reveal-pills.reveal-visible .pill:nth-child(4) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 460ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 460ms; }
.reveal-pills.reveal-visible .pill:nth-child(5) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 530ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 530ms; }

/* Footer */
.footer {
    background: #000000;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Footer links inherit little-link styles */

.footer-copyright {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

/* Blog Styles - Newspaper Masthead */
.blog-header {
    background: #f8f8f8;
    padding: 40px 0 20px;
}

.masthead-container {
    width: calc(100% - 40px);
    margin: 0 20px;
}

/* Top section with logo and corner text */
.masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.masthead-corner-left,
.masthead-corner-right {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #000;
    border: 2px solid #000;
    padding: 10px;
    background: #fff;
    min-width: 100px;
}

.masthead-logo {
    height: 130px;
    width: auto;
}

/* Bottom section with date info */
.masthead-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.masthead-vol,
.masthead-edition {
    flex: 1;
}

.masthead-date {
    flex: 2;
    text-align: center;
    font-weight: 700;
}

.masthead-edition {
    text-align: right;
}



/* Large tablet adjustments - start scaling down logo */
@media (max-width: 1024px) {
    .masthead-logo {
        height: 90px;
        margin: 0 20px;
    }
}

/* Medium tablet adjustments - scale down more */
@media (max-width: 900px) {
    .masthead-logo {
        height: 80px;
        margin: 0 15px;
    }
    
    .masthead-corner-left,
    .masthead-corner-right {
        font-size: 12px;
        padding: 8px;
        min-width: 80px;
    }
}

/* Small tablet - hide corners and center logo */
@media (max-width: 768px) {
    .masthead-corner-left,
    .masthead-corner-right {
        display: none;
    }
    
    .masthead-top {
        justify-content: center;
    }
    
    .masthead-logo {
        height: 85px;
        margin: 0 20px;
    }
    
    .masthead-bottom {
        font-size: 12px;
    }
    
    /* Add padding to typography inside blog posts */
    .post-title,
    .post-subhead {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Base header container styles for post.html */
.header-container {
    width: 100%;
    margin: 0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-wordmark {
    width: 300px;
    height: auto;
    display: block;
}

/* Responsive wordmark sizing */
@media (max-width: 768px) {
    .header-container {
        padding: 30px 20px;
        justify-content: center;
    }
    
    .header-wordmark {
        width: 250px;
    }
}

.blog-main {
    padding: 0;
    background: #ffffff;
    background-size: auto;
    animation: none;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.blog-container {
    max-width: none;
    margin: 0;
}

.blog-post {
    height: clamp(300px, 40vh, 500px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    border: 1px solid transparent;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Light dark overlay for white bg */
}

.post-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 400;
    color: #000000;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.post-subhead {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Single Blog Post Styles */
.blog-post-main {
    background: #ffffff;
    min-height: 100vh;
    padding: 0 0 60px 0;
}

.post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Post Title */
.post-container .post-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin: 40px 0;
    line-height: 1.1;
}

/* Post Captions */
.post-caption {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(16px, 2vw, 32px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    text-align: center;
    margin: 20px 0;
}

.top-caption {
    margin-bottom: 40px;
}

.bottom-caption {
    margin-top: 40px;
}

.image-caption {
    margin-top: 20px;
}

.callout-caption {
    margin-top: 20px;
}

/* Post Content */
.post-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-body {
    font-family: 'EB Garamond', serif;
    font-size: clamp(40px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    margin: 30px 0;
    text-align: left;
}

/* Post Image Container */
.post-image-container {
    width: 100%;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

/* Post Callout Container */
.post-callout-container {
    width: 100%;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.post-callout {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(60px, 8vw, 109px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    color: #000000;
    text-align: center;
    margin: 0;
}

/* Mobile Hamburger Navigation */
.mobile-nav {
    position: fixed;
    top: -80px; /* Start above viewport */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: block;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-nav.visible {
    top: 0;
    opacity: 1;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px 20px 20px;
    height: 80px;
    box-sizing: border-box;
}

.mobile-nav-logo a {
    text-decoration: none;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 50px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0px, 0px);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -15px;
    margin-top: -1.5px;
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(100%);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0px, 0px);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -15px;
    margin-top: -1.5px;
}

.mobile-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 40px 20px;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-link {
    font-size: 96px !important;
    font-weight: 600 !important;
    display: block;
    text-align: left;
    line-height: 1.1 !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    background-image: none !important;
    background: none !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    transform: none !important;
}

/* Opacity interaction for mobile menu */
.mobile-nav-links:hover .mobile-link {
    opacity: 0.5;
}

.mobile-nav-links:hover .mobile-link:hover {
    opacity: 1;
}

/* Touch interaction handled by JavaScript */

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Clean Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Hide lazy nav on mobile */
    .lazy-nav {
        display: none !important;
    }
    
    /* Show mobile nav on mobile */
    .mobile-nav {
        display: block !important;
    }
    
    /* Show hero logo on mobile */
    .logo-section {
        display: block;
        padding: 20px 0 10px 0;
    }
    

    
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero-description {
        padding: 10px 20px 0 20px;
    }
    .project-hero-content,
    .opal-hero-content {
        padding: 0 20px;
    }
    .opal-hero-section .project-link a,
    .project-hero-section .project-link a {
        font-size: clamp(28px, 10vw, 60px);
    }
    
    .work {
        padding: 30px 0 0 0;
    }
    
    .section-title {
        margin: 0 0 20px 0;
    }
    
    .work-grid {
        gap: 24px;
        padding: 0 20px;
    }
    
    /* Project Details Mobile */
    .project-details-section {
        padding: 40px 0;
    }
    
    .project-details-2col {
        grid-template-columns: 1fr !important;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .detail-icon {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .detail-block p {
        font-size: 16px;
    }
    
    /* Project Link Mobile */
    .project-link a {
        font-size: 24px;
    }
    
    /* Project Grid Mobile */
    .project-grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .project-grid-3col {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .project-grid-single {
        margin-bottom: 30px;
    }
    
    .project-content {
        padding: 12px 0;
    }
    
    .project-title-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
    }
    
    .project-title {
        font-size: 72px;
        line-height: 1.0;
        margin: 0 0 12px 0;
    }
    
    .project-name {
        font-size: 72px !important;
        line-height: 1.0;
        margin-bottom: 12px;
    }
    
    .project-description {
        font-size: 24px !important;
        margin: 0 0 12px 0;
        display: block;
    }
    
    /* Force description to break onto new line on mobile */
    .project-title .project-description {
        display: block !important;
        margin-top: 12px;
        width: 100%;
    }
    
    /* Ensure project title content flows properly on mobile */
    .project-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Remove top spacing on project pills for mobile */
    .project-pills {
        margin-top: 0;
    }
    
    .project-cta-desktop {
        display: none;
    }
    
    .project-cta-mobile {
        display: flex;
        align-self: flex-start;
        opacity: 1;
        transform: translateX(0);
        margin-top: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .post-container,
    .post-content {
        padding: 0 10px;
    }
    
    .post-image-container,
    .post-callout-container {
        padding: 0 20px;
    }
}

/* Mobile device detection styles */
body.mobile .project-cta-desktop {
    display: none;
}

body.mobile .project-cta-mobile {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

/* Very small browser widths */
@media (max-width: 480px) {
    .project-title {
        font-size: 72px !important;
        line-height: 1.0;
        margin: 0 0 12px 0;
    }
    
    .project-name {
        font-size: 72px !important;
        line-height: 1.0;
        margin-bottom: 12px;
    }
    
    .project-description {
        font-size: 24px !important;
        margin: 0 0 12px 0;
        display: block;
    }
    
    /* Force description to break onto new line on very small screens */
    .project-title .project-description {
        display: block !important;
        margin-top: 12px;
        width: 100%;
    }
    
    /* Ensure project title content flows properly on very small screens */
    .project-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Remove top spacing on project pills for very small screens */
    .project-pills {
        margin-top: 0;
    }
}

/* Project Detail Pages */
.project-detail {
    padding: 60px 0;
}

.project-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Project Details Section - 2 Column Layout */
.project-details-section {
    padding: 60px 0;
    background: #ffffff;
}

.project-details-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.detail-column {
    display: flex;
    flex-direction: column;
}

.detail-block {
    height: 100%;
}

.detail-icon {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.detail-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000000;
}

.detail-headline {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 20px 0 20px 0;
    line-height: 1.2;
}

.detail-block p {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
}

/* Detail-section project link (scoped to avoid hero conflicts) */
.project-details-section .project-link {
    margin-top: 20px !important;
}

.project-details-section .project-link a {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 36px;
    font-weight: 400;
    color: #2a70ea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-details-section .project-link a:hover {
    color: #1a5fd9;
}

/* Project Grid Section */
.project-grid-section {
    padding: 0;
    background: #ffffff;
}

.project-grid-single {
    margin-bottom: 40px;
}

.project-grid-single img {
    width: 100%;
    height: auto;
    border-radius: 0; /* remove rounding for this project */
    display: block;
}

/* Centered, non-bleed image blocks (e.g., ThirdHome keys and badge) */
.keys-centered {
    width: 100%;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.keys-centered img {
    width: min(900px, 100%);
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Keys pattern spacing */
.keys-pattern {
    margin-top: 120px;
    margin-bottom: 120px;
}

/* Badge scaled down */
.badge-centered img {
    width: min(450px, 50%);
}

.project-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.project-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.grid-item {
    overflow: hidden;
    border-radius: 12px;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.project-hero-image {
    margin: 0 0 40px 0;
    border-radius: 0;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Full-bleed behavior for ThirdHome page */
.thirdhome-fullbleed {
    padding: 0;
    background: #ffffff;
}

.thirdhome-fullbleed .project-detail-content {
    max-width: none;
    padding: 0;
}

.thirdhome-fullbleed .project-grid-single {
    margin: 0; /* remove space between images for true bleed */
}

.thirdhome-fullbleed .project-grid-single img {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
}

.project-meta {
    margin: 0 0 60px 0;
    text-align: center;
}

.project-description-detail {
    font-family: 'EB Garamond', serif;
    line-height: 1.6;
    color: #ffffff;
}

.project-description-detail h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.project-description-detail h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    margin: 40px 0 15px 0;
}

.project-description-detail p {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #cccccc;
}

/* Project Header with Back Link */
.project-header {
    position: relative;
    width: 100%;
}

/* Cascade reveal delays for project pages */
.project-header .back-link.reveal {
    transition-delay: 0ms;
}

.project-header .hero-description.reveal {
    transition-delay: 200ms !important;
}

.project-details-2col .detail-column:nth-child(1) .detail-block.reveal {
    transition-delay: 400ms;
}

.project-details-2col .detail-column:nth-child(2) .detail-block.reveal {
    transition-delay: 600ms;
}

.back-link {
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 0;
    left: 40px;
    opacity: 1;
    z-index: 10;
}

.back-link:hover {
    opacity: 0.5 !important;
    transition: opacity 0.3s ease;
}

/* Adjust hero description when back link is present */
.project-header .hero-description {
    padding-top: 40px;
    transition: font-weight 0.3s ease;
}

/* Bold project title on hover */
.project-header:hover .hero-description {
    font-weight: 500;
}

/* Logo Grid Styles */
.logo-grid-section {
    margin-top: 80px;
    width: 100vw;
    padding: 0;
    box-sizing: border-box;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.logo-item {
    aspect-ratio: 1;
    background: rgb(255, 255, 255);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    filter: grayscale(100%);
    cursor: pointer;
    transform: translateY(0);
}

.logo-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered loading animation for first row */
.logo-item:nth-child(1).loaded {
    transition-delay: 0.1s;
}

.logo-item:nth-child(2).loaded {
    transition-delay: 0.2s;
}

.logo-item:nth-child(3).loaded {
    transition-delay: 0.3s;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(0);
    background: rgb(255, 255, 255);
}

.logo-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.logo-item:hover .logo-image {
    filter: grayscale(0%);
}

.logo-placeholder {
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-placeholder {
    background: rgba(255, 255, 255, 0.3);
}

/* Tablet - 2 column grid */
@media (max-width: 1024px) and (min-width: 769px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    /* First row is first 2 items on tablet */
    .logo-item:nth-child(3).loaded {
        transition-delay: 0.1s;
    }
}

/* Mobile - 1 column grid */
@media (max-width: 768px) {
    .logo-grid-section {
        margin-top: 40px;
        width: 100%;
        padding: 0;
        position: relative;
        left: 0;
    }
    
    .logo-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .logo-item {
        max-width: none;
        margin: 0;
    }
    
    /* First row is just first item on mobile */
    .logo-item:nth-child(2).loaded,
    .logo-item:nth-child(3).loaded {
        transition-delay: 0.1s;
    }
}

/* New Footer Styles */
.new-footer {
    background: #000000;
    padding: 20px 0 40px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-container {
    width: 100%;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    box-sizing: border-box;
}

/* Footer column styles */
.footer-column {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Footer column titles */
.footer-column-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Unified footer link styles */
.footer-link {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #cccccc;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.footer-link:hover {
    color: #ffffff;
}

/* Footer hover interactions - fade other items when hovering over navigation */
.footer-nav-links:hover .footer-link {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-nav-links:hover .footer-link:hover {
    opacity: 1;
}

/* Footer hover interactions - fade other items when hovering over social links */
.footer-social-links:hover .footer-link {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-social-links:hover .footer-link:hover {
    opacity: 1;
}

/* Column 1: Navigation Links */
.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Footer vertical rules - simple approach */
.footer-container {
    position: relative;
}

.footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(25% + 20px);
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.footer-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% + 20px);
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* Third vertical rule using a pseudo-element on footer-social */
.footer-social::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* Column 2: Navigation */
.footer-nav {
    padding-left: 20px;
    padding-right: 20px;
}

/* Column 3: Social Links */
.footer-social {
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Column 4: Newsletter */
.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 20px;
    text-align: center;
}

/* Daily Spiral Wordmark */
.newsletter-wordmark {
    text-align: center;
    position: relative;
    top: 30px;
}

.newsletter-wordmark a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.newsletter-wordmark a:hover {
    opacity: 0.8;
}

.daily-spiral-wordmark {
    height: 30px;
    width: auto;
    filter: invert(1);
}

.newsletter-description {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #cccccc;
    margin: 0;
    line-height: 1.5;
    text-align: center;
    position: relative;
    top: 20px;
}

.newsletter-form {
    margin-top: 20px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-submit {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 30px;
    background: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-submit:hover {
    background: #357abd;
}

/* Large Tablet Responsive - 2x2 grid */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
        width: 100%;
    }
    
    .footer-link {
        font-size: 15px;
    }
    
    .newsletter-description {
        font-size: 13px;
    }
    
    /* Remove vertical rules for tablet */
    .footer-container::before,
    .footer-container::after,
    .footer-social::after {
        display: none;
    }
    
    .footer-nav,
    .footer-social,
    .newsletter-content {
        padding: 0;
    }
    
    .daily-spiral-wordmark {
        height: 25px;
    }
}

/* Mobile Responsive - Single column */
@media (max-width: 768px) {
    .new-footer {
        padding: 20px 0 40px 0;
        margin-top: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        width: 100%;
    }
    
    .footer-link {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .newsletter-description {
        font-size: 12px;
    }
    
    .newsletter-input,
    .newsletter-submit {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* Remove vertical rules for mobile */
    .footer-container::before,
    .footer-container::after,
    .footer-social::after {
        display: none;
    }
    
    .footer-nav,
    .footer-social,
    .newsletter-content {
        padding: 0;
    }
    
    .daily-spiral-wordmark {
        height: 22px;
    }
}








