/* ╔══════════════════════════════════════════════════════════╗
   ║  Vanessa Ruffini — Design System                        ║
   ║  Aesthetic: Luxury Editorial · Warm Intellectualism     ║
   ╚══════════════════════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,500&family=DM+Mono:wght@300;400;500&family=Libre+Baskerville:ital@1&display=swap');

/* ─────────────────── TOKENS ─────────────────── */
:root {
    --ivory:     #F5F0E8;
    --ivory-d:   #EDE5D4;
    --ink:       #1A1A18;
    --ink-soft:  #3D3B35;
    --forest:    #1F3D2F;
    --forest-l:  #2E5C45;
    --gold:      #B8943A;
    --gold-l:    #D4AE5A;
    --cream:     #FDFAF4;

    --ff-display: 'Fraunces', Georgia, serif;
    --ff-mono:    'DM Mono', 'Courier New', monospace;
    --ff-italic:  'Libre Baskerville', Georgia, serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --r-sm: 4px;
    --r-md: 12px;
    --r-lg: 24px;
    --r-blob: 62% 38% 46% 54% / 60% 44% 56% 40%;
}

/* ─────────────────── RESET ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--ff-mono);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease-out); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; }

/* ─────────────────── LAYOUT ─────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem); }
.section { padding: clamp(5rem, 12vw, 10rem) 0; }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--ivory { background: var(--ivory-d); }

/* ─────────────────── TYPOGRAPHY ─────────────────── */
.label {
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
    margin-bottom: 1.2rem;
}

.display-xl {
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.display-xl em {
    font-style: italic;
    color: var(--forest);
}

.display-lg {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}

.body-lg { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.8; color: var(--ink-soft); }
.body-lg--light { color: rgba(245, 240, 232, 0.75); }

/* ─────────────────── BUTTON ─────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: var(--ff-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1.5px solid currentColor;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    background: transparent;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
    z-index: 0;
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--ivory); }
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--forest { color: var(--forest); border-color: var(--forest); }
.btn--forest:hover { color: var(--ivory); }
.btn--ivory { color: var(--ivory); border-color: var(--ivory); }
.btn--ivory:hover { color: var(--ink); }

/* ─────────────────── REVEAL ANIMATIONS ─────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.35s; }
[data-reveal="delay-4"] { transition-delay: 0.5s; }

/* ─────────────────── NAVBAR ─────────────────── */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.5s var(--ease-out);
}
.nav::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ivory);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    z-index: -1;
    border-bottom: 1px solid transparent;
}
.nav.scrolled::after {
    opacity: 0.97;
    border-bottom-color: var(--ivory-d);
}
.nav.scrolled { padding: 0.75rem 0; }

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    transition: filter 0.3s;
    /* Since logo has transparent bg, it should work on ivory bg */
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}
.nav-links a {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a:hover { color: var(--ink); width: 100%; }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.35s var(--ease-out);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────── HERO ─────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

/* Decorative arch / circle bg */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: min(70vw, 700px);
    height: min(70vw, 700px);
    border-radius: 50%;
    border: 1px solid var(--ivory-d);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: end;
    padding: clamp(3rem, 8vh, 6rem) 0 0;
    position: relative;
    z-index: 1;
}

.hero-text { padding-bottom: clamp(2rem, 5vh, 4rem); }

.hero-eyebrow {
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(3.8rem, 9vw, 7.5rem);
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--forest-l);
    display: block;
}

.hero-sub {
    font-family: var(--ff-mono);
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: var(--ink-soft);
    max-width: 380px;
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.hero-image-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-img {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 60% 40% 50% 50% / 55% 45% 55% 45%;
    animation: morph 12s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes morph {
    0%,100% { border-radius: 60% 40% 50% 50% / 55% 45% 55% 45%; }
    33%      { border-radius: 40% 60% 40% 60% / 45% 55% 45% 55%; }
    66%      { border-radius: 55% 45% 60% 40% / 50% 50% 50% 50%; }
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 10%;
    width: 80%;
    height: 70%;
    background: var(--forest);
    border-radius: 50% 50% 40% 60% / 50% 50% 60% 40%;
    opacity: 0.12;
    z-index: 0;
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--ivory-d);
    font-family: var(--ff-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    z-index: 1;
    position: relative;
}
.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateX(-100%);
    animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }

/* ─────────────────── ABOUT ─────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
}
.about-number {
    font-family: var(--ff-display);
    font-size: clamp(8rem, 18vw, 15rem);
    font-weight: 300;
    color: var(--ivory-d);
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
}
.about-content { padding-left: 1rem; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--ivory-d);
    border: 1px solid var(--ivory-d);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-top: 2.5rem;
}
.about-meta-item {
    background: var(--ivory);
    padding: 1.25rem 1.5rem;
}
.about-meta-item strong {
    display: block;
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.about-meta-item span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* ─────────────────── SERVICES ─────────────────── */
.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 4rem;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ivory-d);
    border: 1px solid var(--ivory-d);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.service-card {
    background: var(--ivory);
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    transition: background 0.4s var(--ease-out);
    cursor: default;
}
.service-card:hover { background: var(--forest); color: var(--ivory); }
.service-card:hover .service-card__num,
.service-card:hover .service-card__body { color: rgba(245,240,232,0.7); }
.service-card:hover .service-card__title { color: var(--ivory); }
.service-card:hover .service-card__icon { color: var(--gold-l); }

.service-card__num {
    font-family: var(--ff-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 2rem;
    transition: color 0.4s;
}
.service-card__icon {
    color: var(--forest);
    margin-bottom: 1.5rem;
    transition: color 0.4s;
}
.service-card__title {
    font-family: var(--ff-display);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 400;
    margin-bottom: 1rem;
    transition: color 0.4s;
}
.service-card__body {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ivory-d);
    transition: color 0.4s, border-color 0.4s;
}
.service-card:hover .service-card__body { border-top-color: rgba(245,240,232,0.15); }

/* ─────────────────── SPEAKING / PARLANO DI ME ─────────────────── */
.speaking-intro {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}
.speaking-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--r-lg);
    filter: grayscale(15%);
    transition: filter 0.6s;
}
.speaking-img:hover { filter: grayscale(0%); }

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.press-card {
    background: var(--ivory);
    border: 1px solid var(--ivory-d);
    border-radius: var(--r-md);
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.press-card:hover {
    border-color: var(--forest);
    box-shadow: 0 8px 32px rgba(31, 61, 47, 0.1);
    transform: translateY(-4px);
}
.press-card__tag {
    font-family: var(--ff-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}
.press-card__title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
}
.press-card__desc {
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--ink-soft);
    flex: 1;
}
.press-card__link {
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forest);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    transition: gap 0.3s;
}
.press-card__link:hover { gap: 0.8rem; }

/* ─────────────────── QUOTE BAND ─────────────────── */
.quote-band {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-top: 1px solid rgba(245,240,232,0.12);
    border-bottom: 1px solid rgba(245,240,232,0.12);
}
.quote-text {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    font-style: italic;
    color: var(--ivory);
    max-width: 900px;
}
.quote-text strong { color: var(--gold-l); font-style: normal; font-weight: 300; }
.quote-source {
    margin-top: 2rem;
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
}

/* ─────────────────── CONTACT ─────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-field label {
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.6);
}
.form-field input, .form-field textarea {
    background: rgba(245,240,232,0.06);
    border: 1px solid rgba(245,240,232,0.15);
    border-radius: var(--r-sm);
    padding: 0.9rem 1rem;
    color: var(--ivory);
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    transition: border-color 0.3s;
    resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(245,240,232,0.1);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(245,240,232,0.25); }
.form-field textarea { min-height: 130px; }

/* ─────────────────── FOOTER ─────────────────── */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--ivory-d);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copy {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}
.footer-social {
    display: flex;
    gap: 1.5rem;
}
.footer-social a {
    color: var(--ink-soft);
    transition: color 0.3s;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    font-family: var(--ff-mono);
    text-transform: uppercase;
}
.footer-social a:hover { color: var(--forest); }

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-eyebrow { justify-content: center; }
    .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-image-wrap { order: -1; max-width: 320px; margin: 0 auto; }

    .about-grid { grid-template-columns: 1fr; }
    .about-number { font-size: clamp(5rem, 20vw, 10rem); text-align: center; }
    .about-meta { grid-template-columns: 1fr 1fr; }

    .services-header { grid-template-columns: 1fr; }
    .service-cards { grid-template-columns: 1fr; }

    .speaking-intro { grid-template-columns: 1fr; }
    .speaking-img { max-width: 400px; margin: 0 auto; }

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

    footer { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out);
        z-index: 999;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1rem; }
    .menu-toggle { display: flex; }
    .about-meta { grid-template-columns: 1fr; }
    .press-grid { grid-template-columns: 1fr; }
}
