@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* =========================================
   1. RESET & CORE SIGNAL
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body { 
    background-color: #030303; 
    color: #C0C0C0; 
    font-family: 'Space Mono', monospace; 
    overflow-x: hidden; 
    position: relative; 
    line-height: 1.6;
}

body::after { 
    content: ""; position: fixed; inset: 0; 
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.04"/%3E%3C/svg%3E'); 
    pointer-events: none; z-index: 9999; 
}

a { color: #999; text-decoration: none; transition: 0.3s ease; }
a:hover { color: #FFF; }

/* =========================================
   2. TYPOGRAPHY
========================================= */
h1:not(.seo-h1), h2, h3, h4, h5, h6, .declaration, .genre-declaration, .section-title, .track-num, .creed-text { 
    font-family: 'Oswald', sans-serif !important; 
    font-weight: 700 !important;
    text-transform: uppercase !important; 
    letter-spacing: 2px !important;
    color: #E0E0E0;
    line-height: 1.2;
    margin-top: 0;
}
.seo-h1 { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.project-definition { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 3px; margin-top: 1rem; max-width: 600px; line-height: 1.5; }
.legal-link { color: #666; font-family: 'Space Mono', monospace; font-size: 0.65rem; text-decoration: none; letter-spacing: 1px; margin-top: 15px; display: inline-block; transition: color 0.3s ease; }
.legal-link:hover { color: #fff; }

/* =========================================
   3. IL PROTOCOLLO DI ALLINEAMENTO (4vw)
========================================= */
:root {
    --rigor-pad: 4vw; 
}

/* =========================================
   4. NAVIGATION
========================================= */
nav { 
    position: relative; z-index: 100; width: 100%; 
    padding: 2.5rem var(--rigor-pad); 
    display: flex; flex-direction: column; gap: 1.5rem; 
    border-bottom: 1px solid #111; background: rgba(3,3,3,0.95); 
}
.sys-info { 
    font-size: 0.65rem; color: #777; text-transform: uppercase; letter-spacing: 1px; 
    border-left: 2px solid #444; padding-left: 10px; margin-left: -12px; 
}
.sys-info span { color: #BBB; font-weight: bold; }
nav ul { display: flex; list-style: none; gap: 1.5rem; flex-wrap: wrap; }
nav ul li a { color: #999; text-decoration: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
nav ul li a:hover, nav ul li a.active { color: #FFF; }

/* =========================================
   5. PHASE ZERO (INDEX HERO)
========================================= */
.phase-zero { position: relative; min-height: 100vh; display: flex; flex-direction: column; width: 100%; overflow: hidden; }

.phase-zero main:not(.manifesto-body):not(.codex-body) { 
    flex: 1; display: flex; flex-direction: column; justify-content: center; 
    padding: 2rem var(--rigor-pad); 
    margin-top: -100px;
    position: relative; z-index: 20; width: 100%;
}

.logo-container { width: 100%; max-width: 700px; margin-bottom: 2.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.text-logo { width: 100%; max-width: 550px; height: auto; margin: 0; padding: 0; opacity: 0.8; display: block; position: relative; z-index: 1; }
.main-subtitle { font-family: 'Oswald', sans-serif; font-size: clamp(0.85rem, 2vw, 1.15rem); color: #777; letter-spacing: 3px; text-transform: uppercase; margin-top: -24px; margin-left: 0; position: relative; z-index: 5; }

.genre-declaration { font-size: clamp(1.4rem, 8vw, 2.2rem); color: #8F8F8F; margin-bottom: 1rem; margin-top: 1rem; }
.semantic-core { font-size: 0.95rem; color: #999; line-height: 1.8; margin-bottom: 2rem; border: none; padding-left: 0; max-width: 750px; text-align: left; }
.semantic-core p { margin-bottom: 1rem; }
.final-st { color: #FFF; margin-top: 1.5rem; border-top: 1px solid #111; padding-top: 1rem; }

.cta-btn { 
    display: inline-flex; 
    padding: 1rem 1.5rem; 
    border: 1px solid #444; 
    color: #CCC !important; 
    background: rgba(10, 10, 10, 0.6); 
    text-decoration: none !important; 
    font-size: 0.8rem; 
    font-weight: 700; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    transition: 0.2s; 
    margin-top: 1rem; 
}
.cta-btn:hover { background: #AAA; color: #030303 !important; }

.hardware-bg { 
    display: block; position: absolute; 
    top: calc(15vh - 200px); 
    right: 0; width: 45vw; max-width: none; opacity: 0.15; z-index: 1; pointer-events: none; filter: grayscale(100%); 
}

.scroll-down { 
    display: block; position: absolute; 
    bottom: calc(10vh + 200px); 
    right: 22.5vw; transform: translateX(50%); 
    font-size: 0.85rem; font-family: 'Space Mono', monospace; color: #fff; text-decoration: none !important; 
    transition: color 0.3s ease; animation: pulse-arrow 2s infinite; letter-spacing: 4px; text-align: center; z-index: 30; 
}
@keyframes pulse-arrow { 0% { transform: translateX(50%) translateY(0); opacity: 1; } 50% { transform: translateX(50%) translateY(10px); opacity: 0.5; } 100% { transform: translateX(50%) translateY(0); opacity: 1; } }

/* =========================================
   6. CONTINUITY SECTION
========================================= */
.continuity-section { position: relative; padding: 6rem var(--rigor-pad) 2rem; width: 100%; overflow-x: hidden; }
.absolute-tech-right { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 2px; line-height: 1.4; z-index: 10; margin-bottom: 2rem; }
.continuity-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: flex-start; width: 100%; margin-top: 2rem; }
.band-photo-container { width: 100%; }
.band-photo { width: 100%; height: auto; display: block; filter: grayscale(100%) contrast(115%); }
.continuity-text-block { text-align: left; display: flex; flex-direction: column; justify-content: flex-start; }
.action-container { text-align: left; margin-top: 2rem; }

/* =========================================
   7. THE PRINT (AUDIO SECT)
========================================= */
.the-print-section { padding: 5rem var(--rigor-pad); border-top: 1px solid #111; background: #030303; width: 100%; }
.section-title { font-size: clamp(2rem, 10vw, 3rem); margin-bottom: 3rem; text-align: left; border-bottom: 1px solid #1a1a1a; padding-bottom: 1rem; display: inline-block; }

.media-rack { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; align-items: stretch; }
.rack-unit { background: #050505; border: 1px solid #1a1a1a; padding: 1.5rem; display: flex; flex-direction: column; position: relative; }
.unit-label { font-size: 0.7rem; color: #BBB; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1.5rem; border-bottom: 1px dashed #333; padding-bottom: 0.5rem; position: relative; z-index: 5; }

.iframe-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #0a0a0a; border: 1px solid #111; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; filter: grayscale(50%); border: 0; z-index: 2; }
.rack-unit > iframe { border: 0; width: 100%; min-height: 442px; flex-grow: 1; filter: grayscale(50%); position: relative; z-index: 2; }

.assets-station { display: grid; grid-template-columns: 1fr; gap: 1rem; width: 100%; }
.asset-link { border: 1px solid #222; padding: 1.5rem; text-align: center; text-decoration: none !important; color: #999 !important; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; transition: 0.2s; background: rgba(20, 20, 20, 0.4); }
.asset-link:hover { border-color: #777; color: #FFF !important; background: #111; }

/* =========================================
   8. THE CORE (ARCHITECTS)
========================================= */
.architects-section { padding: 5rem var(--rigor-pad); border-top: 1px solid #111; background: #030303; width: 100%; }
.architect-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; width: 100%; }
.architect-card { border: 1px solid #1a1a1a; background: #050505; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.master-visual { display: flex; flex-direction: column; width: 100%; }
.architect-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(100%); margin-bottom: 1.5rem; border: 1px solid #111; }
.architect-name { font-size: 1.6rem; margin-bottom: 0.5rem; color: #EEE; }
.architect-role { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.spec-list { list-style: none; font-size: 0.75rem; color: #777; line-height: 1.6; }
.spec-list span { color: #CCC; }
.architect-bio { font-size: 0.85rem; color: #AAA; line-height: 1.8; text-align: left; }
.architect-bio p { margin-bottom: 1.5rem; }

/* =========================================
   9. I/O E FOOTER
========================================= */
.io-section { padding: 5rem var(--rigor-pad); border-top: 1px solid #111; background: #030303; width: 100%; }
.io-grid { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
.io-link { color: #999 !important; text-decoration: none !important; font-size: 1rem; letter-spacing: 4px; font-weight: 700; text-transform: uppercase; }
.io-link:hover { color: #FFF !important; }

footer { padding: 4rem 1.5rem; border-top: 1px solid #111; text-align: center; color: #888; font-size: 0.8rem; letter-spacing: 8px; text-transform: uppercase; }

/* =========================================
   10. DESKTOP RESPONSIVENESS (900PX+)
========================================= */
@media (min-width: 900px) {
    nav, .phase-zero main, .continuity-section, .the-print-section, .architects-section, .io-section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: var(--rigor-pad) !important;
        padding-right: var(--rigor-pad) !important;
    }
    nav { flex-direction: row; justify-content: space-between; align-items: flex-start; padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .absolute-tech-right { position: absolute; top: 4rem; right: var(--rigor-pad); text-align: right; margin: 0; }
    .continuity-grid { grid-template-columns: 62% 33%; justify-content: space-between; gap: 5%; align-items: center; margin-top: 4rem; }
    .media-rack { grid-template-columns: 2fr 1fr; gap: 3rem; }
    .assets-station { grid-template-columns: repeat(3, 1fr); }
    .architect-card { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 4rem; align-items: start; padding: 3rem; }
    .io-grid { flex-direction: row; flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 899px) {
    .hardware-bg { top: calc(20vh - 100px); right: 0; width: 60vw; opacity: 0.10; }
    .scroll-down { right: 30vw; bottom: calc(5vh + 200px); transform: translateX(50%); }
}

/* =========================================
   11. MANIFESTO & CODEX ISOLATION
========================================= */
.phase-zero main.manifesto-body, .phase-zero main.codex-body {
    display: block !important;
    margin-top: 0 !important;
    padding: 2rem var(--rigor-pad) 8rem var(--rigor-pad) !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   12. MOBILE MENU ENGINE (FIX INNESTATO)
========================================= */
.menu-toggle { display: none; }
@media (max-width: 899px) {
    .menu-toggle { display: block; cursor: pointer; color: #FFF; font-size: 1.8rem; position: absolute; right: var(--rigor-pad); top: 2rem; z-index: 10001; }
    nav ul { display: none; flex-direction: column; width: 100%; background: rgba(5,5,5,0.98); padding: 2rem; position: absolute; top: 100%; left: 0; border-bottom: 1px solid #111; gap: 1.5rem; z-index: 10000; }
    nav ul.open { display: flex !important; }
}