:root {
    --white: #ffffff;
    --primary: #E8E8E8;
    --primary-dark: #0E0E0E;
    --primary-dark-muted: #333333;
    --bg-soft: #F0f0f0;
    --soft-purple: #9900FF;
    --bright-yellow: #F6FF00;

    --font-main: 'Satoshi', sans-serif;

    --fs-sm: 0.75rem;   
    --fs-nav: 1.5rem; 
    --fs-lg: 2.5rem;   
    --fs-xl: 6rem;

    --fw-lg: 900;
    --fw-m: 600;
    --fw-s: 400;

    --lh-xl: 0.94;    
    --lh-lg: 1.375;   
    --lh-base: 2.08;

    --space-xs: 0.5rem;  
    --space-sm: 1rem;   
    --space-md: 2rem;   
    --space-lg: 4rem;   
    --space-xl: 8rem; 
    --space-huge: 16rem;

    --container-max: 1400px;    
    --gutter: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {

    font-family: var(--font-main);
    
    background-color: var(--primary);
    color: var(--primary-dark);
    
    font-size: var(--fs-base);    
    line-height: var(--lh-base);
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    min-height: 100vh;
    
    overflow-x: hidden;

}

.title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-lg);
    line-height: var(--lh-lg);
    text-transform: uppercase;
    text-align: center;
}

h1, h2, h3, .title {
    text-wrap: balance;
}

.fw-normal {
    font-weight: var(--fw-m);
}
#modern {
    font-weight: 300;
}
.italics {
    font-style: italic;
}
.title-accent-color {
    color: var(--soft-purple)
}
#title-muted-color {
    color: var(--primary-dark-muted)
}
/* --- Navbar Layout --- */
.navbar {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: var(--space-md) 0;
    position: relative;
    z-index: 2000;
}

/* --- Hamburger Icon --- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1500;
}

.bar {
    width: 25px;
    height: 1.25px;
    background-color: var(--primary-dark); 
    transition: transform 0.4s ease, opacity 0.3s ease;
}


.menu-overlay {
    position: fixed;
    top: 45vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    border-radius: .4rem;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(5rem);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin-bottom: var(--space-lg);
}

.nav-links a {
    display: inline-flex;  
    align-items: center;   /* Keeps text and potential icons on the same horizontal axis */
    height: 1.5em;         /* Set a consistent height for all link "boxes" */
    
    font-size: var(--fs-nav); 
    font-weight: var(--fw-s);
    color: var(--bg-soft);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;   /* Consistent gap for the underline */
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 100%;           /* Spans the full width of the 'box' */
    height: 1.5px;
    background-color: var(--primary);
    bottom: 0;             /* Aligns to the bottom of the 1.5em height box */
    left: 0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;   
    gap: 10px;             
    position: relative;
    text-decoration: none;  
    color: var(--primary-dark); 
}

.contact-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;           
    height: 1px;
    background-color: var(--primary-dark);
    transform-origin: left;
    transition: transform 0.3s ease;
}


/* --- Active State (When Opened) --- */
.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Animate bars into an X */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    background-color: var(--bg-soft);
}

.menu-toggle.is-active .bar:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
    background-color: var(--bg-soft);
}

.menu-toggle.is-active .bar:nth-child(3) {
    display: none
}

p {
    line-height: var(--lh-base);
    font-size: var(--fs-sm);
    margin: var(--space-md);
}

.background-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-lg);
    text-transform: uppercase;
    line-height: var(--lh-xl);
    color: var(--bg-soft);
}

/* CAROUSEL */

.project__carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 20px 7.5%; 
    scrollbar-width: none; 
}

.project__carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}


.project__exhibit {
    flex: 0 0 85%; 
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
    overflow: hidden;
    border-radius: 12px;
    
    transform: scale(0.9); 
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
}

/* 3. The Active Slide (Set by JS) */
.project__exhibit.active {
    transform: scale(1);
    opacity: 1;
}

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

/* 4. The Pager Dots */
.project__pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pager__dot {
    height: 8px;
    width: 8px;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid var(--primary-dark);
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* Active Pill State */
.pager__dot.active {
    width: 40px;
    background-color: transparent;
    border: 1px solid var(--primary-dark);
}

/* Project Span Tags */

.project__tags  {
    display: flex;      
    flex-wrap: wrap;     
    gap: 8px;            
    list-style: none;    
    padding: 0;
}
.project__tags .tag {
    border-radius: 100px; 
    background: var(--bg-soft);
    color: var(--primary-dark-muted);
    
    font-size: var(--fs-sm); 
    line-height: var(--lh-base); 
    
    padding: 4px 15px;      
    white-space: nowrap;
}

.principles-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}
.principles-list li {
    line-height: var(--lh-base);
    font-size: var(--fs-sm);
}

/* INDIVIDUAL ELEMENTS */

.body-text {
    text-align: center;
    margin-block: var(--space-lg) var(--space-xl);
}

.heading-grid {
    display: grid;
    position: relative;
    overflow: hidden;
}
.heading-grid span, .heading-grid h2 {
    grid-area: 1 / 1;
    text-align: center; 
}
.heading-grid span {
    font-size: clamp(6rem, 25vw, 15rem); /* Responsive giant size */
    font-weight: 900;
    white-space: wrap;  /* Prevents the big text from wrapping */
    color: var(--white);
    z-index: 1;
    pointer-events: none;
}

.heading-grid h2 {
    z-index: 2;
    width: 90vw;          /* Constraints the width so it wraps */
    max-width: 400px;     /* Prevents it from getting too wide on tablet */
    place-self: center;
    font-size: var(--fs-lg); 
    line-height: 1.1;     /* Tighter line height for better editorial feel */
    text-wrap: balance;   /* Ensures even lines on mobile */
    color: var(--primary-dark);
}

.contact .heading-grid span, .contact .heading-grid h2 {
    text-align: left;
}
.contact .heading-grid h2 {
    place-self: center start;
}

.the-approach {
    text-align: center;
}

.project__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}

.the-approach .heading-grid {
    position: relative;
    min-height: 30vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.the-approach .heading-grid h2, .the-approach .heading-grid span {
    position: absolute;
    text-align: center;
}

h3 {
    margin-inline: var(--space-md);
}