:root {
    --bg: #f9f9f8; /* Museum / Paper White */
    --fg: #1a1a1a; /* Charcoal */
    --grey: #888888;
    --border: #e2e2e0;
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --gap: 12rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { 
    color: var(--fg); 
    font-family: var(--font-sans); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    padding: 0 4vw;
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: 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.8"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
    opacity: 0.04; pointer-events: none; z-index: 9999;
}

.container { max-width: 1200px; margin: 0 auto; }

/* Tipografía de Autoridad */
h1 { font-family: var(--font-serif); font-size: clamp(4rem, 10vw, 8rem); line-height: 0.9; font-weight: 400; letter-spacing: -0.04em; margin-bottom: 1rem; }
h2.main-title { font-size: 1.5rem; font-weight: 500; color: var(--grey); margin-bottom: 4rem; }
h2.serif-sub { font-family: var(--font-serif); font-size: 3rem; line-height: 1.1; margin-bottom: 2rem; }
h3 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1.5rem; }

.mono { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--grey); }

/* Layout Geral */
section { margin-bottom: var(--gap); }

.site-header { padding: 4rem 0; border-bottom: 1px solid var(--border); margin-bottom: 6rem; }
.header-inner { display: flex; justify-content: space-between; }

/* Hero */
#hero { margin-top: 4rem; }
.hero-credo { font-size: 2rem; max-width: 700px; line-height: 1.3; font-weight: 400; margin-top: 4rem; }

/* Grid 2 Columnas */
.grid-2 { display: grid; grid-template-columns: 200px 1fr; gap: 4rem; }
.lead-quote { font-family: var(--font-serif); font-size: 3.5rem; font-style: italic; line-height: 1.1; margin-bottom: 4rem; border-left: 2px solid var(--fg); padding-left: 3rem; margin-left: -3.2rem; }
.body-text p { font-size: 1.3rem; margin-bottom: 2rem; max-width: 700px; }

/* Loci Cards */
.loci-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--border); padding-top: 3rem; }
.loci-card { padding: 2rem; background: #fdfdfd; border: 1px solid var(--border); transition: border-color 0.3s; }
.loci-card:hover { border-color: var(--fg); }
.card-num { display: block; margin-bottom: 2rem; }

/* Portrait Integrated */
.portrait-integration { display: flex; align-items: flex-start; gap: 4rem; }
.portrait-box { width: 300px; flex-shrink: 0; background: #eee; border: 1px solid var(--border); }
.portrait-box img { width: 100%; height: auto; display: block; filter: grayscale(1); }
.portrait-text { max-width: 500px; }
.portrait-text p { font-size: 1.2rem; }

/* Ledger */
.ledger { border-top: 1px solid var(--border); }
.ledger-row { display: flex; padding: 3rem 0; border-bottom: 1px solid var(--border); gap: 4rem; }
.ledger-row h4 { font-size: 1.2rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ledger-row p { font-size: 1.4rem; color: var(--grey); }

/* Footprint */
.footprint-grid { border-top: 1px solid var(--fg); }
.f-item { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.f-item span:first-child { font-size: 1.6rem; font-weight: 500; }

/* Residue Box */
.residue-box { text-align: center; padding: 8rem 0; border: 1px solid var(--border); }
.residue-lead { font-size: 1.8rem; margin-bottom: 3rem; font-family: var(--font-serif); }
.btn-li { display: inline-block; padding: 1.5rem 4rem; border: 2px solid var(--fg); text-decoration: none; color: var(--fg); font-weight: 700; transition: 0.3s; }
.btn-li:hover { background: var(--fg); color: var(--bg); }
.sub-ref { margin-top: 2rem; opacity: 0.5; }

/* Footer */
.site-footer { padding: 6rem 0; border-top: 1px solid var(--border); }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; }
.email-link { font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--fg); border-bottom: 2px solid var(--fg); }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .grid-2, .loci-grid, .portrait-integration { grid-template-columns: 1fr; flex-direction: column; gap: 2rem; }
    .lead-quote { margin-left: 0; padding-left: 1.5rem; font-size: 2.5rem; }
    .portrait-box { width: 100%; }
}