/* Reset and base styles */
/* Global fallback font */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    width: 100%;
    min-height: 100%;
    background-color: var(--theme-color);
}

/* Custom font declarations */
@font-face {
    font-family: 'HaasGrotText';
    src: url('../fonts/HaasGrotText-75Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABCDiatypeMono';
    src: url('../fonts/ABCDiatypeMono-Regular.woff2') format('woff2'),
         url('../fonts/ABCDiatypeMono-Regular.woff') format('woff'),
         url('../fonts/ABCDiatypeMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OldschoolGrotesk';
    src: url('../fonts/OldschoolGroteskCondensed-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

html {
    width: 100%;
    height: 100%;
    -webkit-text-size-adjust: none; /* Prevent text size adjustment on iOS */
    text-size-adjust: none;
}

/* Remove viewport restrictions */
@viewport {
    width: device-width;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    background-color: #FFFFFF;
    -webkit-background-color: #FFFFFF;
    backdrop-filter: none;
    z-index: 1000;
    transition: position 0.3s ease;
}

/* When secret section is active, make header non-sticky */
.secret-section.active ~ .header,
.secret-gradient.active ~ .header {
    position: absolute;
}

.nav-container {
    width: 94%;
    margin: 0 3%;
    height: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    position: relative;
    background: #FFFFFF;
    background-color: #FFFFFF;
    -webkit-background-color: #FFFFFF;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    height: 30px;
    padding: 0;
    margin: 0;
}

.logo img {
    height: 30px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
    max-width: 344px;
}

.logo-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    height: 30px;
}

.logo-link img {
    height: 30px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
    max-width: 344px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    height: 30px;
    width: 100%;
    min-width: 0;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: normal;
    font-weight: 400;
    font-size: 0.7rem;
    position: relative;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
}

/* Remove hover effect */
.nav-links a::after {
    display: none;
}

/* Adjust main content to account for fixed header */
main {
    
    position: relative;
    z-index: 2;
}

/* Hero section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-color);
    padding-top: 90px;
    padding-top: calc(90px + env(safe-area-inset-top));
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    display: none;
}

/* Commented out h1 styles for future reference
.hero h1 {
    letter-spacing: .2rem;
    font-weight: 700;
    display: inline-block;
    margin: 0;
    margin-bottom: 0.2em;
    padding: 0.05em 0.3em;
    border: 0.09em solid black;
    border-radius: 1em;
    color: black;
    background-color: var(--theme-color);
    transition: all 0.3s;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(2.5em, 8vw, 10.5em);
    text-transform: uppercase;
    cursor: default;
    line-height: 1;
    text-align: center;
    user-select: none;
    position: relative;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    transform: translateY(-40px);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(3.5em, 12vw, 5em);
        padding: 0.05em 0.3em;
        letter-spacing: 0.2rem;
        width: fit-content;
        max-width: 90vw;
        margin: 0 auto;
        border-width: 0.09em;
        transform: translateY(-40px);
        white-space: normal;
        word-wrap: break-word;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero h1 {
        transform: translateY(-80px);
    }
}
*/

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--secondary-color);
    color: var(--white);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-image {
    position: relative;
    height: 100%;
}

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

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Intro section */
.intro {
    padding: 4rem 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.intro-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.intro-item:hover {
    transform: translateY(-10px);
}

.intro-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

.intro-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.intro-item-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.intro-item-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.intro-item-content .category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intro item meta */
.intro-item-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.intro-item-meta .location {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services section */
.services {
    padding: 8rem 2rem;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-card p {
    color: var(--gray);
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About section */
.about {
    padding: 8rem 2rem;
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contact section */
.contact {
    min-height: 95vh;
    min-height: 95dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
    box-sizing: border-box;
}

.contact .section-header h2 {
    color: black;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    display: flex;
    gap: 8rem;
    margin-bottom: 0rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.7;
}


.company-address {
    font-style: normal;
    line-height: 1.6;
    min-width: 300px;
}

.contact-details {
    line-height: 1.6;
    min-width: 300px;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-details a:hover {
    opacity: 0.7;
}

.info-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-item p {
    color: var(--gray);
    font-size: 1.1rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'ABCDiatypeMono', monospace;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1.2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.submit-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    min-height: 5vh;
    min-height: 5dvh;
    background-color: var(--theme-color);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: black;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom {
    text-align: center;
    width: 100%;
    padding: 1rem 0;
}

.footer-bottom p {
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.6rem;
}

/* Header scroll effects */
.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
}

/* Success message */
.success-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease forwards;
    z-index: 1000;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Remove all image transitions and opacity settings */
img {
    display: block;
}

/* Lazy loading styles */
.mosaic-item img {
    transition: filter 1.2s ease-out, opacity 1.2s ease-out;
}

.mosaic-item img.lazy-loading {
    filter: blur(5px);
    opacity: 1;
}

.mosaic-item img.lazy-loaded {
    filter: blur(0);
    opacity: 1;
}

.mosaic-item figcaption {
    position: relative;
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    background-color: #ffffff;
    padding: 0.8rem 0;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-height: 80px;
}

/* Mosaic Section */
.mosaic {
    padding: 2rem 0;
    background-color: #fff;
    width: 100%;
}

.mosaic-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1rem;
    margin: 0 3%;
    max-width: 94%;
    padding: 0;
    margin-bottom: 2rem;
}

.mosaic-container:last-child {
    margin-bottom: 0;
}

.mosaic-item {
    background: #ffffff;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mosaic-item figcaption {
    padding: 0.8rem 0;
    background-color: #ffffff;
    font-family: 'ABCDiatypeMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.caption-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
    min-width: 0; /* Prevent grid from growing */
}

.caption-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    min-width: 0; /* Prevent item from growing */
    width: 100%; /* Take full width of grid cell */
}

.caption-item .label,
.caption-item .value {
    font-size: 0.5rem;
    opacity: 0.7;
    color: black;
    font-weight: normal;
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    min-width: 0; /* Allow text to shrink */
    flex-shrink: 1; /* Allow text to shrink */
}

@media (max-width: 768px) {
    .caption-item .label,
    .caption-item .value {
        font-size: 0.4rem;
        white-space: nowrap;
        overflow: visible;
    }
}

/* Position items in the grid */
.caption-item.location {
    grid-column: 1;
    grid-row: 1;
}

.caption-item.client {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
}

.caption-item.artist {
    grid-column: 1;
    grid-row: 2;
}

.caption-item.year {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
}

/* Remove scrollytelling and quote-related styles */
.scrollytelling,
.quote-container,
.quote,
#quote1,
#quote2,
#quote3,
#quote4,
#quote5 {
    display: none;
}

.block-quote {
    font-family: 'HaasGrotText', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    margin: 4rem;
    padding: 0 2rem;
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    color: black;
}

/* Adjust margins for smaller screens */
@media (max-width: 768px) {
    .block-quote {
        margin: 4rem 0; /* Reduce margin on smaller screens */
        padding: 0 1rem; /* Reduce padding on smaller screens */
    }
}

/* Mural Grid Section */
.mural-grid {
    padding: 4rem 0;
    background-color: var(--theme-color);
    max-width: 1800px;
    margin: 0 auto;
}

.mural-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0 4rem;
    gap: 0.1rem;
}

.mural-text {
    letter-spacing: .2rem;
    font-weight: 700;
    display: inline-block;
    padding: 0.05em 0.3em;
    border: 0.09em solid black;
    border-radius: 1em;
    color: black;
    background-color: var(--theme-color);
    transition: all 0.3s;
    font-family: 'HaasGrotText', sans-serif;
    text-transform: uppercase;
    cursor: default;
    line-height: 1;
    user-select: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

/* Row widths and font sizes */
.row-1 .mural-text {
    width: 100%;
    font-size: clamp(6em, 12vw, 12em);
    margin: 0 auto;
    display: block;
    padding: 0 4rem;
}

.row-2 .mural-text {
    width: 49.5%;
    font-size: clamp(4em, 8vw, 8em);
}

.row-3 .mural-text {
    width: 32.7%;
    font-size: clamp(3em, 6vw, 6em);
}

.row-4 .mural-text {
    width: 24.3%;
    font-size: clamp(2.5em, 5vw, 5em);
}

.row-5 .mural-text {
    width: 19.2%;
    font-size: clamp(2em, 4vw, 4em);
}

.row-6 .mural-text {
    width: 15.7%;
    font-size: clamp(1.8em, 3.5vw, 3.5em);
}

.row-7 .mural-text {
    width: 13.4%;
    font-size: clamp(1.6em, 3vw, 3em);
}

.row-8 .mural-text {
    width: 11.4%;
    font-size: clamp(1.4em, 2.8vw, 2.8em);
}

.row-9 .mural-text {
    width: 10.1%;
    font-size: clamp(1.2em, 2.5vw, 2.5em);
}

.row-10 .mural-text {
    width: 9.1%;
    font-size: clamp(1.1em, 2.2vw, 2.2em);
}

/* Adjust padding for smaller screens */
@media (max-width: 768px) {
    .mural-row {
        padding: 0 2rem;
    }
    
    .row-1 .mural-text {
        padding: 0 2rem;
    }
}

/* Add hover effect to match hero */
.mural-text:hover {
    color: var(--theme-color);
    background-color: black;
}

/* Hide process section */
.process {
    display: none;
}

/* Process Section */
.process {
    padding: 4rem 0;
    background-color: #f5f5f5;
    text-transform: uppercase;
}

.process-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border: 2px dashed #333;
}

.process-column {
    flex: 1;
    border-radius: 8px;
    border: 2px solid #000;
    position: relative;
    padding: 4rem 2rem 2rem 2rem;
    min-height: fit-content;
}

.process-column h2,
.process-column h3 {
    position: absolute;
    top: 2rem;
    font-family: 'HaasGrotText', sans-serif;
    font-size: 2.5rem;
}

.process-column h2:first-child {
    left: 2rem;
}

.process-column h2:last-child {
    right: 2rem;
}

.process-column h3 {
    left: 2rem;
}

.process-column ol {
    position: relative;
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-width: 75ch;
    text-align: right;
    margin-left: auto;
}

.process-column ol li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.process-column ol li::before {
    content: "—";
    position: absolute;
    left: 0;
}

.process-column p {
    position: relative;
    max-width: 75ch;
    text-align: right;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-left: auto;
}

/* Debug colors for testing */
.row-1 .col-1 { background-color: #FF6B6B; }
.row-1 .col-2 { background-color: #4ECDC4; }
.row-2 .col-1 { background-color: #45B7D1; }
.row-2 .col-2 { background-color: #96CEB4; }
.row-3 .col-1 { background-color: #FFEEAD; }
.row-3 .col-2 { background-color: #D4A5A5; }
.row-4 .col-1 { background-color: #9B59B6; }
.row-4 .col-2 { background-color: #3498DB; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .process-row {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .process-column {
        width: 100%;
    }
}

.secret-link {
    text-decoration: none;
    color: inherit;
}
.footer-link {
    text-decoration: none;
    color: inherit;
}

.secret-gradient {
    position: relative;
    width: 100%;
    height: 150rem;
    background: linear-gradient(to bottom, white 0%, black 100%);
    pointer-events: none;
    display: none;
    margin: 0;
    padding: 0;
}

.secret-gradient.active {
    display: block;
}

.secret-section {
    display: none;
    position: relative;
    width: 100%;
    height: 100dvh; /* Use dynamic viewport height */
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
    transition: background-color 2s ease;
    z-index: 9998;
}

.secret-section.active {
    display: block;
}

.secret-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* Use dynamic viewport height */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    padding: 0;
    max-width: 100%;
    background: black;
    transition: background-color 2s ease;
}

.subway-gif {
    width: 100%;
    height: 100dvh;
    object-fit: contain;
    object-position: bottom;
    margin: 0;
    padding: 0;
    display: block;
    background-color: black;
}

.white-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease;
    z-index: 9999;
}

.white-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Navigation Arrows */
.nav-arrows {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    height: 120px; /* Fixed height to maintain space */
}

.nav-arrow {
    background: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: black;
    padding: 0.5rem;
    position: absolute; /* Position absolutely within nav-arrows */
    right: 0;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Make it circular */
}

.nav-arrow.up {
    top: 0;
}

.nav-arrow.down {
    bottom: 0;
}

@media (max-width: 768px) {
    .nav-arrows {
        right: 1rem;
        bottom: 1rem;
        height: 100px; /* Slightly smaller on mobile */
    }
    
    .nav-arrow {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 1024px) {
    .contact-info {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .company-address,
    .contact-details {
        min-width: auto;
        width: 100%;
        max-width: 500px;
    }
}

/* Manifesto section */
.manifesto {
    padding: 8rem 0rem;
    background-color: var(--theme-color);
    text-align: center;
    min-height: 105dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifesto-text {
    font-family: 'OldschoolGrotesk', sans-serif;
    font-weight: bold;
    font-size: clamp(0.9rem, 5vw, 3.5rem);
    line-height: 0.9;
    max-width: 1400px;
    min-width: 100%;
    margin: 0 auto;
    white-space: pre-line;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    font-feature-settings: "ss01" 1;
    padding: 0 2rem;
}

.line-break-mobile {
    display: block;
}

/* @media (max-width: 430px) {
    .manifesto-text {
        font-size: clamp(0.9rem, 2vw, 2rem);
        padding: 0 0.5rem;
    }
} */

.shaped-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shaped-text .line {
    display: block;
    text-align: center;
    white-space: nowrap;
    font-size: inherit;
}


/* Mosaic-4 specific layout */
.mosaic-container.mosaic-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: min-content;  /* Ensure rows only take up necessary space */
    gap: 1rem;
    margin: 0 3%;
    max-width: 94%;
    padding: 0;
    align-items: start;  /* Align items to the top */
}

.mosaic-4 .mosaic-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    height: auto;  /* Allow height to be determined by content */
}

.mosaic-4 .mosaic-item:nth-child(1) {
    grid-column: 2 / 6;
    grid-row: 1;
    align-self: end;  /* Align to top instead of end */
    margin: 0;
    padding: 0;
}

.mosaic-4 .mosaic-item:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding: 0;
}

.mosaic-4 .mosaic-item:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding: 0;
}



/* Mosaic-5 specific layout */
.mosaic-container.mosaic-5 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: min-content;  /* Ensure rows only take up necessary space */
    gap: 1rem;
    margin: 0 3%;
    max-width: 94%;
    padding: 0;
    align-items: start;  /* Align items to the top */
}

.mosaic-5 .mosaic-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    height: auto;  /* Allow height to be determined by content */
}

.mosaic-5 .mosaic-item:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1;
    align-self: end;  /* Align to top instead of end */
    margin: 0;
    padding: 0;
}

.mosaic-5 .mosaic-item:nth-child(2) {
    grid-column: 3 / 8;
    grid-row: 2 / 3;
    align-self: start;
    margin: 0;
    padding: 0;
    align-items: start;
    height: 100%;
}
.mosaic-5 .mosaic-item:nth-child(2) img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.mosaic-5 .mosaic-item:nth-child(2) figcaption{
    width: 100%;
}

.mosaic-5 .mosaic-item:nth-child(3) {
    grid-column: 1 / 6;
    grid-row: 4 / 5;
    align-self: start;
    margin: 0;
    padding: 0;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: black;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu span:first-child {
    top: 4px;
}

.hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span:last-child {
    bottom: 4px;
}

.hamburger-menu.active span:first-child {
    transform: translateY(10px) rotate(45deg);
}

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

.hamburger-menu.active span:last-child {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        grid-column: 1;
        grid-row: 1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #FFFFFF;
        background-color: #FFFFFF;
        -webkit-background-color: #FFFFFF;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Mosaic-1 specific layout */
.mosaic-container.mosaic-1 {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: min-content;
    gap: 1rem;
    margin: 0 3%;
    max-width: 94%;
    padding: 0;
    align-items: start;
}

.mosaic-1 .mosaic-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 3 / 6;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    height: auto;
    align-self: end;
}

.mosaic-1 .mosaic-item:nth-child(1) img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.mosaic-1 .mosaic-item:nth-child(2) {
    grid-column: 5 / 7;
    grid-row: 1 / 4;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    align-self: end;
}

.mosaic-1 .mosaic-item:nth-child(2) img {
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mosaic-1 .mosaic-item:nth-child(3) {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    position: relative;
    width: 100%;
    height: 100%;
    align-self: end;
}

.mosaic-1 .mosaic-item:nth-child(4) {
    grid-column: 4 / 8;
    grid-row: 4 / 7;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.mosaic-1 .mosaic-item:nth-child(4) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mosaic-2 specific layout */
.mosaic-container.mosaic-2 {
    grid-template-rows: 0.125fr repeat(4, 0.25fr) 0.25fr repeat(1, 0.25fr);
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
}

.mosaic-2 .mosaic-item:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 5;
    grid-row-start: 2;
    grid-row-end: 4;
    overflow: hidden;
}

.mosaic-2 .mosaic-item:nth-child(2) {
    grid-column-start: 6;
    grid-column-end: 8;
    grid-row-start: 1;
    grid-row-end: 3;
    overflow: hidden;
    align-self: start;
}

.mosaic-2 .mosaic-item:nth-child(2) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.mosaic-2 .mosaic-item:nth-child(3) {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 4;
    grid-row-end: 5;
    overflow: hidden;
    align-self: start;
}

.mosaic-2 .mosaic-item:nth-child(3) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mosaic-2 .mosaic-item:nth-child(4) {
    grid-column-start: 5;
    grid-column-end: 8;
    grid-row-start: 7;
    overflow: hidden;
    align-self: end;
}

.mosaic-2 .mosaic-item:nth-child(4) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mosaic-2 .mosaic-item:nth-child(4) figcaption {
    position: relative;
}

/* Ensure all mosaic-2 items have consistent image handling */
.mosaic-2 .mosaic-item {
    position: relative;
    
}

.mosaic-2 .mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mosaic-3 specific layout */
.mosaic-container.mosaic-3 {
    grid-template-rows: 0.125fr 0.25fr repeat(8, 0.25fr);
    grid-template-columns: repeat(7, 1fr);
    margin-top: 75px;
}

.mosaic-3 .mosaic-item:nth-child(1) {
    grid-row-start: 1;
    grid-row-end: 4;
    grid-column-start: 1;
    grid-column-end: 4;
    align-self: end;
}

.mosaic-3 .mosaic-item:nth-child(2) {
    grid-row-start: 2;
    grid-row-end: 7;
    grid-column-start: 5;
    grid-column-end: 8;
    align-self: start;
    width: 100%;
    height: 100%;
}

.mosaic-3 .mosaic-item:nth-child(2) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mosaic-3 .mosaic-item:nth-child(3) {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 5;
    grid-row-end: 9;
    width: 100%;
    height: 100%;
}

.mosaic-3 .mosaic-item:nth-child(3) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mosaic-3 .mosaic-item:nth-child(4) {
    grid-column-start: 4;
    grid-column-end: 8;
    grid-row-start: 7;
    grid-row-end: 9;
    align-self: start;
}

.mosaic-3 .mosaic-item:nth-child(4) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Clients section */
.clients {
    padding: 16rem 2rem;
    background-color: black;
    color: white;
    min-height: 95dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 300px);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: black;
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 300px;
    height: 200px;
}

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

.client-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.client-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100px;
    padding: 1rem;
}

@media (max-width: 1400px) {
    .clients-grid {
        grid-template-columns: repeat(2, 300px);
        gap: 2rem;
    }
    
    .client-item {
        width: 100%;
        height: 150px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .client-item {
        width: 100%;
        height: 120px;
    }
    
    .client-logo {
        max-height: 80px;
        padding: 0.5rem;
    }
}

.section-header h2 {
    color: white;
}

/* Hide elements with aria-hidden="true" */
h2[aria-hidden="true"] {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

@media (max-width: 768px) {
    .hide-on-mobile figcaption {
        visibility: hidden;
    }
}

/* Remove touch-action from images */
img, video, canvas {
    /* Remove touch-action property */
}

