/* ==========================================================================
   1. POLICES & CONFIGURATION DE BASE
   ========================================================================== */
:root {
    --bg-creme: #fcfbfa;       
    --text-dark: #111111;
    --text-muted: #777777;
    --color-pink: #f5b5b9;     
    
    --font-serif: 'Instrument Serif', Georgia, serif; 
    --font-sans: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
    
    --grid-gap: 8px;
}

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

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

html, body {
    background-color: #000000; 
    color: var(--text-dark);
    font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none; 
}

/* Sécurité pour forcer la police partout sans bug */
p, span, a, li, time, strong {
    font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
}

a, button, .image-container, object {
    cursor: none !important;
}

/* ==========================================================================
   2. CURSEUR PERSONNALISÉ
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0.025em;
    width: 8px;
    height: 8px;
    background-color: #ffffff; 
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    mix-blend-mode: difference; 
    transition: width 0.25s ease, height 0.25s ease;
}

.custom-cursor.cursor-hover {
    width: 32px; 
    height: 32px;
}

/* ==========================================================================
   3. HEADER & ANIMATION LOGO
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4% 1.5rem 4%;
    width: calc(100% - 0.05em);
    position: relative;
    z-index: 10;
    background-color: transparent;
}

.logo-link {
    display: inline-block;
    width: 65px;
    height: 65px;
}

.main-logo {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none; 
    animation: rotateLogo 25s linear infinite;
}

@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header affiche de la home : fixe et superposé aux projets */
.home-page .main-header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 18px 4vw;
    background-color: transparent;
    align-items: flex-start;
    pointer-events: none;
}

.home-page .logo-link,
.home-page .main-nav {
    pointer-events: auto;
}

.home-page .logo-link {
    width: clamp(64px, 5.5vw, 88px);
    height: clamp(64px, 5.5vw, 88px);
    flex: 0 0 auto;
}

.home-page .main-nav {
    margin-left: auto;
}

.home-page .main-nav ul {
    justify-content: flex-end;
    gap: clamp(1rem, 2.4vw, 3rem);
}

.home-page .main-nav a {
    padding: 0;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 5.4vw, 6.5rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.home-page .main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.16em;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .main-nav a:hover::after,
.home-page .main-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.home-page .main-nav a:hover,
.home-page .main-nav a.active {
    color: var(--text-dark);
    opacity: 1;
}

.main-nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.main-nav a {
    font-size: 1.05rem;
    font-weight: 500; /* Plus de présence pour le menu */
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active { 
    color: var(--text-dark); 
}

.main-nav a.active::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 1.5px; 
    background-color: var(--text-dark);
}

/* Le lien actif de la home utilise le même trait que les autres entrées. */
.home-page .main-nav a.active::after {
    bottom: 0.16em;
    height: 1px;
    transform: scaleX(0);
}

.home-page .main-nav a.active:hover::after,
.home-page .main-nav a.active:focus-visible::after {
    transform: scaleX(1);
}

/* La page projet reprend le header-affiche de la home. */
.project-page .main-header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 18px 4vw;
    background-color: var(--bg-creme);
    align-items: flex-start;
    pointer-events: none;
}

.project-page .logo-link,
.project-page .main-nav {
    pointer-events: auto;
}

.project-page .logo-link {
    width: clamp(64px, 5.5vw, 88px);
    height: clamp(64px, 5.5vw, 88px);
    flex: 0 0 auto;
}

.project-page .main-nav {
    margin-left: auto;
}

.project-page .main-nav ul {
    justify-content: flex-end;
    gap: clamp(1rem, 2.4vw, 3rem);
}

.project-page .main-nav a {
    padding: 0;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 5.4vw, 6.5rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.project-page .main-nav a::after {
    content: '';
    position: absolute;
    left: 0.025em;
    bottom: 0.16em;
    width: calc(100% - 0.05em);
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-page .main-nav a:hover::after,
.project-page .main-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.project-page .main-nav a.active::after {
    bottom: 0.16em;
    height: 1px;
    transform: scaleX(0);
}

.project-page .main-nav a.active:hover::after,
.project-page .main-nav a.active:focus-visible::after {
    transform: scaleX(1);
}

/* About reprend le même header-affiche et les mêmes interactions. */
.about-page .main-header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 18px 4vw;
    background-color: transparent;
    align-items: flex-start;
    pointer-events: none;
}

.about-page .logo-link,
.about-page .main-nav {
    pointer-events: auto;
}

.about-page .logo-link {
    width: clamp(64px, 5.5vw, 88px);
    height: clamp(64px, 5.5vw, 88px);
    flex: 0 0 auto;
}

.about-page .main-nav {
    margin-left: auto;
}

.about-page .main-nav ul {
    justify-content: flex-end;
    gap: clamp(1rem, 2.4vw, 3rem);
}

.about-page .main-nav a {
    padding: 0;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 5.4vw, 6.5rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.about-page .main-nav a::after {
    content: '';
    position: absolute;
    left: 0.025em;
    bottom: 0.16em;
    width: calc(100% - 0.05em);
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-page .main-nav a:hover::after,
.about-page .main-nav a:focus-visible::after,
.about-page .main-nav a.active:hover::after,
.about-page .main-nav a.active:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.about-page .main-nav a.active::after {
    bottom: 0.16em;
    height: 1px;
    transform: scaleX(0);
}

/* Contact reprend le header-affiche commun. */
.contact-page .main-header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 18px 4vw;
    background-color: transparent;
    align-items: flex-start;
    pointer-events: none;
}

.contact-page .logo-link,
.contact-page .main-nav {
    pointer-events: auto;
}

.contact-page .logo-link {
    width: clamp(64px, 5.5vw, 88px);
    height: clamp(64px, 5.5vw, 88px);
    flex: 0 0 auto;
}

.contact-page .main-nav {
    margin-left: auto;
}

.contact-page .main-nav ul {
    justify-content: flex-end;
    gap: clamp(1rem, 2.4vw, 3rem);
}

.contact-page .main-nav a {
    padding: 0;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 5.4vw, 6.5rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.contact-page .main-nav a::after {
    content: '';
    position: absolute;
    left: 0.025em;
    bottom: 0.16em;
    width: calc(100% - 0.05em);
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-page .main-nav a:hover::after,
.contact-page .main-nav a:focus-visible::after,
.contact-page .main-nav a.active:hover::after,
.contact-page .main-nav a.active:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-page .main-nav a.active::after {
    bottom: 0.16em;
    height: 1px;
    transform: scaleX(0);
}

.contact-button {
    position: relative;
    display: inline-block;
    background-color: #000000;
    text-decoration: none;
    padding: 0.8rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    z-index: 1;
}

.contact-button span {
    position: relative;
    z-index: 2;
    color: #ffffff;
    transition: color 0.3s ease;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-pink);
    transform: scaleY(0);
    transform-origin: top; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.contact-button:hover span { color: #000000; }
.contact-button:hover::before { transform: scaleY(1); transform-origin: bottom; }

/* ==========================================================================
   4. CONTENU CRÈME (Le rideau étanche)
   ========================================================================== */
.main-content {
    position: relative;
    z-index: 5;
    background-color: var(--bg-creme); 
    padding: 0 4%;
    overflow: hidden; 
    margin-bottom: 300px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); 
}

.intro-section {
    width: 100%;
    padding: 5rem 0 7rem 0;
    max-width: 1250px;
    margin: 0 auto;
}

.home-page .intro-section {
    max-width: 1050px;
    margin: 0;
    padding-top: clamp(10rem, 16vw, 15rem);
}

.manifesto-text {
    font-family: var(--font-serif), serif;
    font-size: 2.4rem; 
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

/* ==========================================================================
   5. GRILLE MASONRY ACCUEIL (index.html)
   ========================================================================== */
.project-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    margin-bottom: var(--grid-gap);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    width: calc(100% + 8vw);
    max-width: none;
    margin-left: -4vw;
    padding-bottom: 12rem; 
}

.project-column {
    min-width: 0;
}

.project-item { width: 100%; }

.image-container { 
    position: relative;
    width: 100%; 
    overflow: hidden; 
    margin-bottom: 8px;
}

.image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-container img {
    width: 100%; 
    height: auto; 
    display: block; 
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-item-link:hover .image-container::after,
.project-item-link:focus-visible .image-container::after {
    opacity: 1;
}

.project-item h3 { 
    font-family: var(--font-serif), serif; 
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 400; 
    margin: 0 8px 0.2rem;
}

.project-category { 
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-muted); 
    font-weight: 400;
    margin: 0 8px;
}

/* ==========================================================================
   6. TEXTES & HERO CONTEXTE (projet-detail.html)
   ========================================================================== */
.back-to-home {
    max-width: 1050px;
    margin: 0 auto;
    padding: 2rem 0 1rem 0;
}
.back-to-home a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}
.back-to-home a:hover { color: var(--text-dark); }

.project-hero {
    display: flex;
    gap: 4rem;
    padding: 3rem 0 6rem 0;
    align-items: flex-start;
    max-width: 1050px; 
    margin: 0 auto;
}

.project-hero-title { flex: 1; }
.project-hero-title h1 {
    font-family: var(--font-serif), serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.project-meta strong { 
    color: var(--text-dark); 
    font-weight: 600; /* Label d'informations plus marqué */
}

.project-hero-text {
    flex: 1.2;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #222222;
    font-weight: 400; /* Le bloc de description gagne en assise textuelle */
}

.project-page .main-content {
    padding: 0 4vw;
    margin-bottom: 430px;
}

.project-page .project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--grid-gap);
    max-width: 1440px;
    padding: clamp(10rem, 11vw, 11.5rem) 0 2rem;
}

.project-page .project-hero-copy {
    width: 100%;
}

.project-page .project-hero-copy h1 {
    max-width: none;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: clamp(1.65rem, 2vw, 2.15rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
}

.project-page .project-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
    margin-top: 0;
    font-size: 0.75rem;
}

.project-page .project-hero-text {
    justify-self: end;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    color: var(--text-dark);
    font-size: clamp(0.92rem, 1.1vw, 1.08rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.project-page .project-hero-text p + p {
    margin-top: 0.85em;
}

.project-page .project-hero-text a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

/* ==========================================================================
   7. GALERIE ÉDITORIALE SERRÉE (projet-detail.html)
   ========================================================================== */
.project-media-list {
    display: flex;
    flex-direction: column;
    gap: 7rem; 
    padding-bottom: 12rem;
    max-width: 1050px; 
    margin: 0 auto;   
}

.media-item {
    width: 100%;
    overflow: hidden;
}

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

.media-item.full-bleed { 
    width: 100%; 
}

.media-row.diptych {
    display: grid;
    grid-template-columns: 1.3fr 1fr; 
    gap: 3.5rem;
    align-items: flex-start;
}

.media-item.offset-down { 
    margin-top: 5rem; 
}

.media-item.focus-frame {
    width: 70%; 
    margin: 0 auto; 
}

.project-page .project-media-list {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    gap: var(--grid-gap);
    padding-bottom: 0;
}

.project-page .media-row.diptych {
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

.project-page .media-item.offset-down {
    margin-top: 0;
}

.project-page .media-item.focus-frame {
    width: 100%;
    margin: 0;
}

/* ==========================================================================
   8. PAGE ABOUT
   ========================================================================== */
.about-page .main-content {
    padding: 0 4vw;
    margin-bottom: 430px;
}

.about-hero {
    display: block;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(10rem, 11vw, 11.5rem) 0 8px;
}

.about-intro {
    padding: 0;
}

.about-intro h1 {
    max-width: 31ch;
    margin-bottom: clamp(3rem, 5vw, 5rem);
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 4.2vw, 5rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.about-secondary-copy {
    width: 100%;
    max-width: none;
    margin-left: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 2.6vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.about-visual {
    width: 100%;
    height: min(72vw, 860px);
    margin: 0;
    overflow: hidden;
}

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

.about-lower-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 8rem);
    margin-top: clamp(4rem, 7vw, 8rem);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: none;
    margin: 0;
    padding: 1.25rem 0 clamp(6rem, 10vw, 12rem);
    border-top: 1px solid var(--text-dark);
}

.about-detail-column {
    min-height: 0;
    padding: 0;
    background-color: transparent;
}

.about-detail-column h2 {
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-detail-column ul {
    list-style: none;
    font-size: 0.95rem;
    line-height: 1.55;
}

.about-detail-column a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

/* ==========================================================================
   9. PAGE CONTACT
   ========================================================================== */
.contact-page .main-content {
    padding: 0 4vw;
    margin-bottom: 430px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    gap: clamp(4rem, 9vw, 12rem);
    max-width: 1440px;
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(10rem, 11vw, 11.5rem) 0 clamp(6rem, 9vw, 10rem);
}

.contact-intro h1 {
    max-width: 9ch;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 7vw, 8rem);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.045em;
}

.contact-intro p {
    max-width: 31rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-intro a {
    color: inherit;
    font-size: 0.9rem;
    text-underline-offset: 0.2em;
}

.contact-direct-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 2.25rem 1.5rem;
    padding-top: 0.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-field label span {
    color: var(--text-muted);
    font-weight: 400;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #999999;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--text-dark);
    font: 400 1rem/1.4 var(--font-sans);
    transition: border-color 0.25s ease;
}

.form-field input {
    height: 42px;
}

.form-field textarea {
    min-height: 150px;
    padding: 0.5rem 0;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--text-dark);
}

.contact-submit {
    grid-column: 1 / -1;
    justify-self: start;
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 0 0 0.2rem;
    background: transparent;
    color: var(--text-dark);
    font: 600 clamp(1.5rem, 2.2vw, 2.4rem)/1 var(--font-sans);
}

/* ==========================================================================
   8. FOOTER FIXE ET PICTO INSTAGRAM
   ========================================================================== */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px; 
    z-index: 1;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.home-page .main-content {
    margin-bottom: 430px;
}

.home-page .main-footer {
    height: 430px;
    padding: 38px 4vw 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.project-page .main-footer {
    height: 430px;
    padding: 38px 4vw 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.about-page .main-footer {
    height: 430px;
    padding: 38px 4vw 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.contact-page .main-footer {
    height: 430px;
    padding: 38px 4vw 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.footer-manifesto {
    max-width: 1500px;
    color: #ffffff;
    font-family: var(--font-serif), serif;
    font-size: clamp(3.6rem, 7.6vw, 9rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.045em;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.footer-copy {
    font-size: 0.95rem;
    color: #555555;
    font-weight: 400;
}

.footer-links a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-links a span {
    font-size: 0.85rem;
    color: #777777;
    transition: color 0.3s ease;
}

.instagram-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}

.footer-links a:hover .instagram-icon {
    transform: scale(1.12);
    color: var(--color-pink); 
}

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

/* ==========================================================================
   9. RESPONSIVE COMPLET
   ========================================================================== */
@media (max-width: 1024px) {
    .manifesto-text { font-size: 2rem; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-media-list { gap: 5rem; }
    .media-row.diptych { gap: 2rem; }
    .media-item.offset-down { margin-top: 3rem; }
    .media-item.focus-frame { width: 85%; }
}

@media (max-width: 768px) {
    html, body { cursor: auto; }
    .custom-cursor { display: none; }
    .main-header { padding: 1.5rem 20px; }
    .main-nav { display: none; } 

    .home-page .main-header {
        padding: 14px 20px;
        align-items: center;
    }

    .home-page .logo-link {
        width: 52px;
        height: 52px;
    }

    .home-page .main-nav {
        display: block;
    }

    .home-page .main-nav ul {
        gap: 12px;
    }

    .home-page .main-nav a {
        font-size: clamp(1.15rem, 5.5vw, 1.7rem);
        letter-spacing: -0.05em;
    }

    .project-page .main-header {
        padding: 14px 20px;
        align-items: center;
    }

    .project-page .logo-link {
        width: 52px;
        height: 52px;
    }

    .project-page .main-nav {
        display: block;
        margin-left: auto;
    }

    .project-page .main-nav ul {
        gap: 12px;
    }

    .project-page .main-nav a {
        font-size: clamp(1.15rem, 5.5vw, 1.7rem);
        letter-spacing: -0.05em;
    }

    .about-page .main-header {
        padding: 14px 20px;
        align-items: center;
    }

    .about-page .logo-link {
        width: 52px;
        height: 52px;
    }

    .about-page .main-nav {
        display: block;
        margin-left: auto;
    }

    .about-page .main-nav ul {
        gap: 12px;
    }

    .about-page .main-nav a {
        font-size: clamp(1.15rem, 5.5vw, 1.7rem);
        letter-spacing: -0.05em;
    }

    .contact-page .main-header {
        padding: 14px 20px;
        align-items: center;
    }

    .contact-page .logo-link {
        width: 52px;
        height: 52px;
    }

    .contact-page .main-nav {
        display: block;
        margin-left: auto;
    }

    .contact-page .main-nav ul {
        gap: 12px;
    }

    .contact-page .main-nav a {
        font-size: clamp(1.15rem, 5.5vw, 1.7rem);
        letter-spacing: -0.05em;
    }
    
    .main-content {
        margin-bottom: 0;
        padding: 0 20px;
        overflow: visible;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        width: calc(100% + 40px);
        margin-left: -20px;
        padding-bottom: 4rem; 
    }

    .project-column:empty {
        display: none;
    }
    .manifesto-text { font-size: 1.6rem; }

    .home-page .intro-section {
        padding-top: 8rem;
    }
    
    .project-hero {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0 3rem 0;
    }
    .project-hero-title h1 { font-size: 2.5rem; }

    .project-page .main-content {
        padding: 0 20px;
        margin-bottom: 0;
    }

    .project-page .project-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 7.5rem 0 2rem;
    }

    .project-page .project-hero-copy {
        width: 100%;
    }

    .project-page .project-hero-text {
        font-size: 1rem;
    }

    .project-page .project-meta {
        flex-direction: column;
        gap: 0.15rem;
    }

    .project-page .project-media-list {
        width: calc(100% + 40px);
        margin-left: -20px;
        gap: 8px;
        padding-bottom: 0;
    }

    .project-page .media-row.diptych {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .about-page .main-content {
        padding: 0 20px;
        margin-bottom: 0;
    }

    .about-hero {
        padding: 7.5rem 0 8px;
    }

    .about-intro {
        padding: 0;
    }

    .about-intro h1 {
        font-size: clamp(2.4rem, 10.5vw, 4rem);
    }

    .about-secondary-copy {
        margin-left: 0;
        font-size: clamp(1.5rem, 7vw, 2.4rem);
    }

    .about-visual {
        width: 100%;
        height: 75vh;
        margin: 0;
    }

    .about-lower-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 4rem;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 5rem;
    }

    .about-detail-column {
        min-height: 0;
    }

    .contact-page .main-content {
        padding: 0 20px;
        margin-bottom: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        min-height: 0;
        padding: 7.5rem 0 5rem;
    }

    .contact-intro h1 {
        font-size: clamp(3.5rem, 16vw, 5.5rem);
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-field-wide,
    .contact-submit {
        grid-column: auto;
    }
    
    .project-media-list { gap: 3rem; padding-bottom: 5rem; }
    .media-row.diptych { grid-template-columns: 1fr; gap: 3rem; }
    .media-item.offset-down { margin-top: 0; }
    .media-item.focus-frame { width: 100%; }
    
    .main-footer {
        position: fixed;
        height: 75svh;
        padding: 40px 20px 32px;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
        text-align: left;
    }

    .home-page .main-footer {
        height: 75svh;
        min-height: 0;
        padding: 40px 20px 32px;
        align-items: stretch;
        justify-content: space-between;
        text-align: left;
    }

    .project-page .main-footer {
        height: 75svh;
        min-height: 0;
        padding: 40px 20px 32px;
        align-items: stretch;
        justify-content: space-between;
        text-align: left;
    }

    .about-page .main-footer {
        height: 75svh;
        min-height: 0;
        padding: 40px 20px 32px;
        align-items: stretch;
        justify-content: space-between;
        text-align: left;
    }

    .contact-page .main-footer {
        height: 75svh;
        min-height: 0;
        padding: 40px 20px 32px;
        align-items: stretch;
        justify-content: space-between;
        text-align: left;
    }

    .home-page .main-content {
        margin-bottom: 75svh;
    }

    .project-page .main-content,
    .about-page .main-content,
    .contact-page .main-content {
        margin-bottom: 75svh;
    }

    .footer-manifesto {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .footer-bottom {
        margin-top: 5rem;
    }
}
