/* ============================================================
   GRANDI VOCI — Base Styles
   Reset, Typography, Global Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 10px;
}
body { scrollbar-width: thin; scrollbar-color: var(--gold-primary) var(--bg-void); }

/* ── Selection ── */
::selection {
    background: var(--gold-primary);
    color: var(--bg-void);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-white);
}

h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.85;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
}

img {
    max-width: 100%;
    display: block;
}

/* ── Layout ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    width: 100%;
}

section {
    padding: var(--sp-16) 0;
    position: relative;
}

/* ── Utility Classes ── */
.font-serif { font-family: var(--font-heading); }
.font-sans  { font-family: var(--font-body); }

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-glow {
    color: var(--gold-primary);
    text-shadow: 0 0 30px var(--gold-glow);
}

.section-label {
    display: inline-block;
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}

.section-divider {
    width: 80px;
    height: 2px;
    background: var(--gold-gradient-h);
    margin: var(--sp-4) 0;
}

.text-center { text-align: center; }
.text-center .section-divider { margin-left: auto; margin-right: auto; }

/* ── Cursor Glow ── */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease;
    mix-blend-mode: screen;
}

.cursor-glow.interactive {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
}

/* ── Noise Overlay ── */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 80%),
        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.65' 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: -1;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--t-glacial) var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
