@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDO Grotesk';
    src: url('fonts/BDOGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDO Grotesk';
    src: url('fonts/BDOGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDO Grotesk';
    src: url('fonts/BDOGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent: #111111;
    --spacing-xl: 120px;
    --spacing-lg: 80px;
    --spacing-md: 40px;
    --spacing-sm: 20px;
    --container-width: 94%;
    /* Much wider for a modern, immersive look */
    --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    /* Visible dot grid */
    background-image: radial-gradient(rgba(0, 0, 0, 0.22) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    background-color: #f0f0f0;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


h1,
h2,
h3,
.logo {
    font-family: 'BDO Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.7;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Language Toggle (Floating) */
.lang-switch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.lang-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
    .lang-switch {
        bottom: 20px;
        right: 20px;
    }
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--spacing-xl);
    position: relative;
    /* Added for absolute positioning of the button */
}

.hero .container {
    width: 100%;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    min-height: 1.2em;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-subline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 680px;
    font-weight: 400;
    text-align: left;
    margin-bottom: 40px;
    line-height: 1.5;
}

.featured-image,
.project-hero-image {
    flex: 1.2;
}

.featured-image img,
.project-hero-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

/* Float animation only for featured projects that opt-in (e.g. on index) */
.featured-project.slide-in .featured-image img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        translate: 0 0px;
        rotate: 0deg;
    }

    50% {
        translate: 0 -20px;
        rotate: 1deg;
        /* Stronger 'header-like' animation */
    }

    100% {
        translate: 0 0px;
        rotate: 0deg;
    }
}

.my-work-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111;
    color: #fff;
    padding: 16px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 1.2s 0.6s forwards;
    cursor: pointer;
    border: none;
    margin-top: 20px;
}

.my-work-btn:hover {
    transform: translateY(-3px);
    background: var(--accent);
    opacity: 1;
}

.work-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.my-work-btn:hover .work-arrow {
    transform: rotate(45deg);
    /* Point up-right on hover */
}

/* Projects */
.work {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* WIP Section */
.wip-section {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.wip-content {
    width: 100%;
}

.wip-title {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.dots span {
    display: inline-block;
    animation: dots-wave 1.5s infinite;
    font-size: 3rem;
    font-family: 'BDO Grotesk', sans-serif;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dots-wave {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Footer */

/* Footer */
.footer {
    padding: 120px 0 60px;
    background-color: #111111;
    color: #ffffff;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 40px;
    color: #ffffff;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #111111;
    padding: 20px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-bottom: 80px;
}

.footer-cta:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888888;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    /* Matches navbar gap */
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}


/* Featured Project Base Layout */
.featured-project {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-decoration: none;
    color: inherit;
}

.featured-project.reverse {
    flex-direction: row-reverse;
}

.featured-content {
    flex: 1;
}

.featured-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.featured-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 40px;
}

.view-project {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.view-project:hover {
    gap: 12px;
}

.featured-image,
.project-hero-image {
    flex: 1.2;
}

.featured-image img,
.project-hero-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.zoomable,
.zoomable-video {
    cursor: pointer;
}

.featured-project:hover .featured-image img {
    transform: scale(1.02);
}

@media (max-width: 900px) {

    .featured-project,
    .featured-project.reverse {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .featured-image,
    .project-hero-image {
        width: 100%;
    }
}

/* Featured Project Animations (Index-only or opted-in) */
.featured-project.slide-in .featured-content,
.featured-project.slide-in .featured-image {
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Initial states: text on left, image on right */
.featured-project.slide-in:not(.reverse) .featured-content {
    transform: translateX(-100px);
}

.featured-project.slide-in:not(.reverse) .featured-image {
    transform: translateX(100px);
}

/* Initial states: image on left, text on right (reverse) */
.featured-project.slide-in.reverse .featured-image {
    transform: translateX(-100px);
}

.featured-project.slide-in.reverse .featured-content {
    transform: translateX(100px);
}

/* Active states */
.featured-project.slide-in.active .featured-content,
.featured-project.slide-in.active .featured-image {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Button in Navbar */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    margin-left: 0;
    /* Remove old margin-left in favor of gap */
}



/* About Page Hero */
.about-hero {
    display: flex;
    align-items: center;
    padding-top: var(--spacing-xl);
    gap: var(--spacing-xl);
}

.about-hero .about-img,
.about-hero .about-content {
    flex: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 10rem;
}

.grid-col h3 {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 2rem;
}

.grid-list {
    list-style: none;
    padding: 0;
}

.grid-item {
    margin-bottom: 1.5rem;
}

.grid-item-title {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.grid-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
}

.grid-item-date {
    font-size: 0.85rem;
    color: #aaa;
    display: block;
    margin-top: 0.2rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text {
    overflow: hidden;
}

@keyframes textReveal {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

.reveal-text {
    animation: textReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-text-delay {
    opacity: 0;
    animation: textReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards, fadeIn 1.2s 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Typewriter */
#typewriter {
    position: relative;
}

#typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
    font-weight: 200;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Sticky Contact button styles removed as it was integrated into navbar */

/* Modal styles removed - navigating to separate contact page */

.modal.active .modal-content {
    transform: translateX(0);
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 8px;
}

.form-group label {
    font-size: 1rem;
    color: #666;
}

.form-group label .required-text {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-left: 4px;
}

.contact-form input,
.contact-form textarea {
    background: #fff;
    border: 0px solid #111;
    padding: 20px 24px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form input:hover,
.contact-form textarea:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #fafafa;
}

.contact-form textarea {
    resize: none;
    min-height: 160px;
}

.form-row {
    display: flex;
    gap: 30px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
}

/* Privacy Checkbox Support */
.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.form-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 2px;
    padding: 0 !important;
}

.form-privacy input[type="checkbox"]:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.form-privacy input[type="checkbox"]:checked::after {
    content: '✓';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

.form-privacy label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    text-align: left;
}

.form-privacy label a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: var(--transition);
}

.form-privacy label a:hover {
    opacity: 0.6;
}

.submit-btn {
    background: #111;
    border: none;
    color: #fff;
    font-family: 'BDO Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 20px 48px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Project Meta Info */
.project-meta {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem 2rem;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .project-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .project-meta .meta-value {
        margin-bottom: 1rem;
    }
}

.meta-label {
    font-weight: 500;
    color: var(--text-primary);
    color: black;
}

.meta-value {
    color: var(--text-secondary);
}

/* Project Detail Pages */
.project-detail-hero {
    padding-top: 150px;
    margin-bottom: var(--spacing-xl);
}

.project-detail-work {
    padding-top: 180px;
}

.featured-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.featured-desc {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.project-meta-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.project-grid.gallery-5-cols {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-hero-wrapper {
    height: 600px;
    overflow: hidden;
    margin-bottom: 2vw;
}

#lightbox-container {
    display: contents;
}

/* .image-credit-inline removed - now using standard alignment */

.detail-img-full {
    width: 100%;
    margin: var(--spacing-lg) 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.project-grid img {
    width: 100%;
}

.about-hero {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    padding-top: 80px;
}

.about-img {
    flex: 1;
    max-width: 42%;
}

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

.about-content {
    flex: 1;
}

.about-content h1 {
    margin-top: 1em;
    margin-bottom: 2rem;
}

.about-content .hero-subline {
    margin-bottom: 3rem;
}

.about-content {
    flex: 1;
}

/* Project Detail Extracted Styles */
.project-detail-hero h1 {
    margin-bottom: 1rem;
}

.project-category {
    margin-bottom: 3rem;
}

.project-info h3 {
    margin-bottom: 1.5rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Imprint Page Extracted Styles */
.imprint-section {
    padding-top: 10vw;
    padding-bottom: 10vw;
}

.imprint-title {
    margin-bottom: 4rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

@media (max-width: 480px) {
    .imprint-title {
        font-size: clamp(2rem, 12vw, 2.5rem);
    }
}

.imprint-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem 4rem;
    max-width: 1000px;
}

.imprint-grid h2 {
    grid-column: 1 / -1;
    font-size: 1.25rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
}

.imprint-grid h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.imprint-grid p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.imprint-grid p:last-child {
    margin-bottom: 0;
}

/* Contact Page Extracted Styles */
.contact-hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0 100px;
}

.contact-container {
    width: var(--container-width);
    max-width: 600px;
    padding: 0 var(--spacing-sm);
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 10px;
    text-align: center;
}

.contact-subline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 450px;
    text-align: center;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email-link {
    color: var(--text-primary);
}

/* Responsive System */

/* Tablet & Large Mobile */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 80px;
        --spacing-lg: 60px;
        --spacing-sm: 40px;
    }

    .about-hero {
        flex-direction: column;
        gap: 0;
        padding-top: 200px;
    }

    .about-content {
        order: 1;
    }

    .about-img {
        display: block;
        order: 2;
        max-width: 600px;
        margin: -190px auto 0;
        overflow: hidden;
    }

    .about-content h1 {
        margin-top: 0;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile Transition */
@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 var(--spacing-sm);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 50%;
        width: 100vw;
        padding: 1.5rem 0 1.5rem var(--spacing-sm);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        transform: translateX(-50%) translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
        z-index: 1050;
    }

    .nav-links.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.1rem;
        font-family: 'BDO Grotesk', sans-serif;
        color: var(--text-primary);
        margin-left: 0;
        width: 100%;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
    }

    h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .featured-project,
    .featured-project.reverse {
        flex-direction: column-reverse !important;
        align-items: flex-start;
        gap: 30px;
    }

    .featured-title {
        font-size: 2.2rem;
    }

    .featured-desc {
        font-size: 1.1rem;
        max-width: 100%;
    }

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

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

    .imprint-section {
        padding-top: 180px !important;
    }

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

    .imprint-grid h2 {
        margin-top: 1rem;
    }

    /* Footer */
    .footer-heading {
        font-size: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        /* Vertical gap when stacked */
        margin-top: 10px;
    }

    /* Project Detail Specifics */
    .darko-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .col-span-2,
    .col-span-3,
    .col-span-4,
    .col-span-6,
    .col-span-8,
    .col-span-12 {
        grid-column: span 12;
    }

    .darko-row {
        margin-bottom: 60px;
    }

    .darko-project-footer {
        padding: 80px 20px;
        margin-top: 100px;
    }

    .darko-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Smallest Devices */
@media (max-width: 480px) {
    :root {
        --spacing-xl: 60px;
        --spacing-lg: 40px;
        --spacing-sm: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-subline {
        font-size: 1.1rem;
    }

    .footer-cta {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .zoomable,
    .zoomable-video {
        cursor: default !important;
    }
}

/* ========================================================= */
/* DARKO-INSPIRED LAYOUT SYSTEM (12-Column Grid)            */
/* ========================================================= */

.darko-page-wrapper {
    width: 100%;
}

.darko-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 19px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.darko-row {
    margin-bottom: 12vw;
    /* Use viewport units for consistent scaling */
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-12 {
    grid-column: span 12;
}

.col-start-3 {
    grid-column-start: 3;
}

.col-start-4 {
    grid-column-start: 4;
}

.col-start-5 {
    grid-column-start: 5;
}

.col-start-7 {
    grid-column-start: 7;
}

.align-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.align-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.darko-hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.darko-hero-category {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.darko-hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
}

.darko-img {
    width: 100%;
    height: auto;
    display: block;
}

/* DARKO FOOTER */
.darko-project-footer {
    background-color: #111;
    color: #fff;
    padding: 120px 96px;
    margin-top: 200px;
}

.darko-footer-title {
    font-size: 3rem;
    margin-bottom: 60px;
    color: #fff;
}

.darko-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ds-project-card {
    text-decoration: none;
    color: #fff;
    display: block;
    transition: var(--transition);
}

.ds-project-card:hover {
    transform: translateY(-10px);
}

.ds-project-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 20px;
    background-color: #333;
}

.ds-project-card h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.ds-project-card p {
    color: #888;
    font-size: 0.9rem;
}


/* ========================================================= */
/* SHARED COMPONENTS (Lightbox, Credits, Logos)             */
/* ========================================================= */

.no-scroll {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-content.zoomed-in {
    cursor: grab;
}

.lightbox-content.grabbing {
    cursor: grabbing !important;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #111;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    transition: var(--transition);
}

.close-btn:hover {
    opacity: 0.6;
}

/* Image Container & Credits */
.image-container {
    position: relative;
    width: 100%;
    display: inline-block;
}

.image-credit {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    pointer-events: none;
    letter-spacing: 0.02em;
    line-height: 1.4;
    font-style: normal;
}

/* Partner Logos Row */
.project-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.project-logos img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .darko-grid {
        padding: 0 var(--spacing-sm);
        gap: 16px;
    }

    .darko-nav {
        padding: 24px 40px;
    }

    .col-span-4,
    .col-span-6,
    .col-start-7 {
        grid-column: span 12;
    }

    .darko-row {
        gap: 40px;
        margin-bottom: 80px;
    }

    .darko-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .darko-grid {
        padding: 0 var(--spacing-sm);
        display: flex;
        flex-direction: column;
    }

    .darko-project-footer {
        padding: 80px 20px;
    }

    .darko-nav {
        padding: 20px;
    }
}