:root {
    --bg-color: #f3f3f3;
    --text-primary: #111111;
    --text-secondary: #777777;
    --border-color: #d1d1d1;
    --accent: #111111;
}



@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/FoundersGrotesk-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/FoundersGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/FoundersGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/FoundersGrotesk-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Hide scrollbar for Firefox and IE/Edge */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Prevent image dragging and selection globally */
img {
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none; /* Prevents right-click save, dragging, etc */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Founders Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 300;
}

main {
    padding: 0 clamp(40px, 5.7vw, 82.6875px) 0 clamp(50px, 6.9vw, 99.2344px);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 2.4vw, 35px) clamp(40px, 5.7vw, 82.6875px) clamp(20px, 2.4vw, 35px) clamp(50px, 6.9vw, 99.2344px);
    margin-bottom: 0;
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 400;
    letter-spacing: -0.05em;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active {
    position: fixed;
    right: 82.6875px;
    top: 35px;
}

.menu-toggle.active span {
    background-color: #ffffff;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--text-primary);
    box-shadow: -5px 0 30px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.slide-menu.active {
    right: 0;
}

.slide-menu a {
    font-size: clamp(24px, 2.36vw, 34px);
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.slide-menu a:hover {
    color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 3.6fr 6.4fr;
    gap: 99.2344px;
    margin-bottom: 120px;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 0;
}

.hero-portrait {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0;
}

.hero-text h1 {
    font-size: clamp(36px, 3.95vw, 57px);
    font-weight: 300;
    margin-top: 0;
    margin-bottom: clamp(24px, 2.7vw, 40px);
    letter-spacing: -0.02em;
    color: #111111;
}

.hero-text p {
    font-size: clamp(14px, 1.18vw, 17px);
    font-weight: 300;
    margin-bottom: clamp(16px, 1.6vw, 24px);
    color: #111111;
    text-align: justify;
    line-height: 1.6;
}

.metadata-table {
    display: grid;
    grid-template-columns: clamp(140px, 15vw, 220px) 1fr;
    gap: 0;
    margin-top: clamp(40px, 5.5vw, 80px);
}

.meta-col:first-child:empty {
    display: none;
}

.meta-title {
    display: block;
    color: #999999;
    font-size: clamp(14px, 1.18vw, 17px);
    font-weight: 300;
    margin-bottom: clamp(12px, 1.18vw, 17px);
}

.meta-col ul {
    list-style: none;
}

.meta-col li {
    font-size: clamp(14px, 1.18vw, 17px);
    font-weight: 300;
    margin-bottom: clamp(12px, 1.18vw, 17px);
    color: #111111;
}

.meta-sub {
    color: var(--text-secondary);
    font-size: clamp(14px, 1.18vw, 17px);
    font-weight: 300;
}

/* Projects List */
.projects-list {
    margin-bottom: 40px;
    border-top: 1px solid var(--border-color);
}

.project-row {
    display: grid;
    grid-template-columns: clamp(80px, 9.7vw, 140px) 1fr clamp(30px, 3.5vw, 50px);
    align-items: center;
    padding: clamp(8px, 0.83vw, 12px) 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}


.project-row:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.project-row:hover .project-code {
    color: var(--bg-color);
}

.project-row:hover .project-arrow-img {
    filter: invert(1);
}

.project-code {
    color: #999999;
    font-size: clamp(10px, 0.88vw, 12.75px);
    font-weight: 300;
    transition: color 0.3s ease;
    padding-left: clamp(20px, 2.7vw, 40px);
    line-height: 1;
    transform: translateY(2px);
}

.project-title {
    font-size: clamp(24px, 2.36vw, 34px);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1;
    transform: translateY(4px);
}

.project-arrow-img {
    width: 24px;
    height: auto;
    margin-left: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: invert(0); /* Default black arrow */
}

.project-row:hover .project-arrow-img {
    /* No inversion for grey background */
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 2.7vw, 40px) clamp(40px, 5.7vw, 82.6875px) clamp(20px, 2.7vw, 40px) clamp(50px, 6.9vw, 99.2344px);
    color: #aeaeae;
    font-size: clamp(12px, 1.04vw, 15px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-left p {
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    color: #aeaeae;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--text-primary);
}

/* Hover Image */
.hover-image-container {
    position: fixed;
    width: clamp(250px, 27.7vw, 400px);
    height: clamp(180px, 20.8vw, 300px);
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.hover-image-container.active {
    opacity: 1;
    visibility: visible;
}

.hover-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Work Page */
.work-hero {
    margin-bottom: 100px;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    gap: 0;
    margin-bottom: 60px;
    transform: translateZ(0);
}

.marquee-content {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    animation: scroll 75s linear infinite;
    min-width: max-content;
    will-change: transform;
}

.slice {
    width: clamp(245px, 24.3vw, 350px);
    height: clamp(245px, 24.3vw, 350px);
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.hero-intro h1 {
    font-size: clamp(36px, 3.95vw, 57px);
    font-weight: 400;
    margin-bottom: clamp(12px, 1.4vw, 20px);
    color: #111111;
}

.hero-intro p {
    font-size: clamp(16px, 1.66vw, 24px);
    line-height: 1.4;
    color: #111111;
    max-width: 80%;
}

/* Process Page */
.process-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 120px;
    min-height: 400px;
}

.diagram-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    border-radius: 0;
}

.process-accordion {
    border-top: 1px solid #d1d1d1;
}

.accordion-item {
    border-bottom: 1px solid #d1d1d1;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    font-size: 24px;
    font-family: 'Founders Grotesk', sans-serif;
    color: #111111;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
}

.accordion-content p {
    padding-bottom: 24px;
    color: #777777;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.process-gallery {
    margin-bottom: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    background-color: #d8d8d8;
    aspect-ratio: 4/3;
    filter: grayscale(100%);
}

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

/* Responsive */
/* Desktop Grid Adjustments to keep image large */
@media (max-width: 1250px) {
    .hero-section {
        grid-template-columns: 4.5fr 5.5fr;
        gap: 60px;
    }
}
@media (max-width: 1000px) {
    .hero-section {
        grid-template-columns: 5.5fr 4.5fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header { padding: 20px; }
    .menu-toggle.active { right: 20px; top: 20px; }
    main, footer { padding: 0 20px; }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-portrait {
        aspect-ratio: 1881/1235;
    }
    .image-placeholder {
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-text h1 { 
        font-size: 40px; 
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .hero-text p {
        font-size: 16px;
        text-align: left;
    }
    .slide-menu a {
        font-size: 28px;
    }
    
    /* Disable hover images on mobile */
    .hover-image-container {
        display: none !important;
    }
    
    /* Metadata stacking */
    .metadata-table { 
        grid-template-columns: 1fr 1fr; 
        gap: 20px; 
        margin-top: 50px; 
    }
    
    /* Project Row Adjustments */
    .project-row { 
        grid-template-columns: 40px 1fr 30px; 
        padding: 16px 0; 
    }
    .project-title { font-size: 24px; }
    .project-code { padding-left: 0; }
    
    /* Carousel Adjustments */
    .slice {
        width: 245px;
        height: 245px;
    }
    
    /* Contact Form Adjustments - Fit in Viewport */
    .contact-main { padding: 10px 0; min-height: auto; }
    .contact-card { padding: 20px 15px; margin-top: 10px; }
    .contact-card-header { margin-bottom: 25px; }
    .contact-form { gap: 15px; }
    .form-group { gap: 5px; }
    .contact-form input, .contact-form textarea, .contact-form select { padding: 2px 0 8px 0; font-size: 15px; }
    .submit-btn { padding: 12px 0; margin-top: 0; }
    
    /* Footer Adjustments */
    footer { padding: 15px 20px; font-size: 11px; flex-direction: column; gap: 15px; text-align: center; }
    .footer-right { gap: 15px; flex-wrap: wrap; justify-content: center; }
}

/* Contact Page Specific */
.contact-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.contact-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 550px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.contact-card-header h2 {
    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: 500;
    letter-spacing: 0.05em;
    font-family: 'Founders Grotesk', sans-serif;
}

.close-btn {
    font-size: 28px;
    color: #999999;
    text-decoration: none;
    line-height: 1;
    font-weight: 300;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.form-group label {
    font-size: clamp(10px, 0.76vw, 11px);
    color: #999999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    font-family: 'Founders Grotesk', sans-serif;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 5px 0 15px 0;
    font-size: clamp(14px, 1.18vw, 17px);
    font-family: 'Founders Grotesk', sans-serif;
    background: transparent;
    color: var(--text-primary);
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.contact-form input,
.contact-form textarea {
    cursor: text;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px;
    padding-right: 25px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #d1d1d1;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-bottom: 1px solid var(--text-primary);
}

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

.contact-form .bold-input {
    font-weight: 500;
}

.submit-btn {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: clamp(14px, 1.38vw, 20px) 0;
    margin-top: 10px;
    font-size: clamp(10px, 0.83vw, 12px);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Founders Grotesk', sans-serif;
}

.submit-btn:hover {
    background-color: #333333;
}
