/* ============================================================
   LEGADO MICHOACANO Y ASOCIADOS
   Design system — premium artisanal, dark & earthy, mezcal-forward
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Palette — warm dark, parchment, copper, agave sage */
    --bg-deep: #0d0c09;
    --bg-section: #14110c;
    --bg-card: #1a160f;
    --bg-elev: #221c14;

    --ink-cream: #ebe1c8;
    --ink-cream-muted: #b3a584;
    --ink-cream-dim: #7d735a;

    --accent-copper: #c0875a;
    --accent-copper-soft: #d4a47a;
    --accent-agave: #8a9572;
    --accent-gold: #b89154;

    --line-faint: rgba(235, 225, 200, 0.08);
    --line-soft:  rgba(235, 225, 200, 0.16);

    /* Brand accents (one per spirit) */
    --brand-laluna:    #c0875a;  /* copper */
    --brand-dovejo:    #b89154;  /* gold */
    --brand-puesto:    #8a9572;  /* botanical sage */
    --brand-gustoso:   #a86b3c;  /* aged rum amber */

    /* Type */
    --font-display: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
    --font-body:    'Inter', -apple-system, 'Helvetica Neue', sans-serif;

    /* Rhythm */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 10rem;

    --max-w:     1280px;
    --max-w-prose: 720px;
    --radius: 2px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-deep);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-cream);
    background: var(--bg-deep);
    overflow-x: hidden;
    position: relative;
}

/* Subtle grain texture overlay across the entire site */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.88  0 0 0 0 0.78  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink-cream);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h4 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }

p {
    max-width: 65ch;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-copper);
    margin-bottom: var(--space-md);
}

.lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.5;
    color: var(--ink-cream);
    max-width: 60ch;
}

.muted {
    color: var(--ink-cream-muted);
}

.dim {
    color: var(--ink-cream-dim);
}

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

.container-narrow {
    max-width: 920px;
}

section {
    position: relative;
    padding: var(--space-2xl) 0;
    z-index: 2;
}

section.tight {
    padding: var(--space-xl) 0;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-copper);
    margin: var(--space-md) 0;
    opacity: 0.7;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(13, 12, 9, 0.85), rgba(13, 12, 9, 0));
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
    background: rgba(13, 12, 9, 0.92);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-faint);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark img {
    height: 44px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .brand-mark img { height: 36px; }

.brand-mark-text {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-cream);
    line-height: 1;
}

.brand-mark-text span {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.32em;
    color: var(--ink-cream-dim);
    margin-top: 0.35rem;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    align-items: center;
}

.site-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-cream-muted);
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent-copper);
    transition: width 0.3s ease;
}

.site-nav a:hover {
    color: var(--ink-cream);
}

.site-nav a:hover::after {
    width: 100%;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
    background-color: #0a0907;
    background-image: url('../img/hero-palenque.jpg');
    background-size: cover;
    background-position: center 35%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 12, 9, 0.65) 0%, rgba(13, 12, 9, 0.55) 35%, rgba(13, 12, 9, 0.85) 100%);
    z-index: 0;
}

/* Subtle vignette + warm light wash */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 35%, rgba(13, 12, 9, 0.5) 100%),
        radial-gradient(ellipse at center top, rgba(192, 135, 90, 0.18), transparent 55%);
    z-index: 0;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--space-md);
}

.hero-logo {
    width: clamp(160px, 22vw, 240px);
    height: auto;
    margin: 0 auto var(--space-md);
    opacity: 0.95;
}

.hero-wordmark {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-cream);
    margin-bottom: var(--space-sm);
    line-height: 1.15;
}

.hero-wordmark .ampersand {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-copper);
    letter-spacing: normal;
}

.hero-rule {
    width: 80px;
    height: 1px;
    background: var(--accent-copper);
    margin: var(--space-md) auto;
    opacity: 0.7;
}

.hero-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    color: var(--ink-cream-muted);
    margin: 0 auto;
    max-width: 580px;
}

.hero-location {
    margin-top: var(--space-md);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-cream-dim);
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-cream-dim);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 2.8s ease-in-out infinite;
}

.scroll-cue::after {
    content: '';
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent-copper), transparent);
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- Intro statement ---------- */
.intro-statement {
    background: var(--bg-deep);
    text-align: center;
}

.intro-statement .lead {
    margin: 0 auto;
    color: var(--ink-cream);
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    line-height: 1.45;
    font-style: italic;
}

/* ---------- Brands grid ---------- */
.brands {
    background: var(--bg-section);
    border-top: 1px solid var(--line-faint);
    border-bottom: 1px solid var(--line-faint);
}

.brands-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    background: var(--line-faint);
    border: 1px solid var(--line-faint);
}

.brand-card {
    background: var(--bg-card);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    position: relative;
    transition: background 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
    justify-content: space-between;
}

.brand-card:hover {
    background: var(--bg-elev);
}

.brand-card .accent-line {
    width: 36px;
    height: 2px;
    margin: 0 auto var(--space-md);
    transition: width 0.35s ease;
}

.brand-card:hover .accent-line {
    width: 64px;
}

.brand-card .brand-category {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-cream-dim);
    margin-bottom: var(--space-sm);
}

.brand-card .brand-name {
    font-family: var(--font-display);
    font-size: 1.85rem;
    line-height: 1.1;
    color: var(--ink-cream);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.04em;
}

.brand-card .brand-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--ink-cream-muted);
    margin-bottom: var(--space-md);
    max-width: 28ch;
}

.brand-card .brand-link {
    margin-top: auto;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-cream-muted);
    border-top: 1px solid var(--line-faint);
    padding-top: var(--space-sm);
    width: 100%;
    transition: color 0.25s ease;
}

.brand-card:hover .brand-link { color: var(--accent-copper); }

/* Per-brand accent */
.brand-card[data-brand="laluna"] .accent-line  { background: var(--brand-laluna); }
.brand-card[data-brand="dovejo"] .accent-line  { background: var(--brand-dovejo); }
.brand-card[data-brand="puesto"] .accent-line  { background: var(--brand-puesto); }
.brand-card[data-brand="gustoso"] .accent-line { background: var(--brand-gustoso); }

/* ---------- Proceso artesanal (photo grid) ---------- */
.proceso {
    background: var(--bg-deep);
    border-top: 1px solid var(--line-faint);
    border-bottom: 1px solid var(--line-faint);
}

.proceso-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.proceso-header h2 { margin-bottom: var(--space-sm); }

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
}

@media (max-width: 880px) {
    .proceso-grid { grid-template-columns: 1fr; }
}

.proceso-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line-faint);
    transition: transform 0.5s ease, border-color 0.4s ease;
}

.proceso-card:hover { border-color: var(--accent-copper); }

.proceso-figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.proceso-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s ease, filter 0.6s ease;
    filter: brightness(0.92) saturate(0.95);
}

.proceso-card:hover .proceso-figure img {
    transform: scale(1.04);
    filter: brightness(1) saturate(1.05);
}

.proceso-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 12, 9, 0.88) 100%);
    pointer-events: none;
}

.proceso-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-md);
    z-index: 2;
}

.proceso-caption .stage-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--accent-copper);
    letter-spacing: 0.18em;
    margin-bottom: 0.35rem;
    display: block;
}

.proceso-caption h3 {
    font-size: 1.5rem;
    color: var(--ink-cream);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.proceso-caption p {
    font-size: 0.88rem;
    color: var(--ink-cream-muted);
    line-height: 1.55;
    max-width: 38ch;
}

/* ---------- Philosophy pull-quote ---------- */
.philosophy {
    text-align: center;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/lena-pila.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    filter: grayscale(0.4);
    z-index: 0;
}

.philosophy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(13, 12, 9, 0.4) 0%, rgba(13, 12, 9, 0.92) 80%);
    z-index: 0;
}

.philosophy .container { position: relative; z-index: 2; }

.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.75rem, 3.5vw, 2.85rem);
    line-height: 1.3;
    color: var(--ink-cream);
    max-width: 24ch;
    margin: 0 auto var(--space-md);
    position: relative;
}

.pull-quote::before,
.pull-quote::after {
    color: var(--accent-copper);
    opacity: 0.4;
}

.pull-quote::before { content: '«'; margin-right: 0.25em; }
.pull-quote::after  { content: '»'; margin-left: 0.25em; }

.pull-quote-attribution {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-cream-dim);
    margin-top: var(--space-md);
}

/* ---------- Two-column editorial ---------- */
.editorial {
    background: var(--bg-section);
    border-top: 1px solid var(--line-faint);
    border-bottom: 1px solid var(--line-faint);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.editorial-grid h2 { margin-bottom: var(--space-sm); }

.editorial-grid p + p { margin-top: 1.25em; }

.editorial-grid .col-text p { color: var(--ink-cream-muted); }

@media (max-width: 800px) {
    .editorial-grid { grid-template-columns: 1fr; }
}

/* Editorial variant that includes a photo column */
.editorial-grid.with-image {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
}

.editorial-grid.with-image .col-image {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    border: 1px solid var(--line-faint);
}

.editorial-grid.with-image .col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95) saturate(0.95);
    transition: transform 1.2s ease;
}

.editorial-grid.with-image .col-image:hover img { transform: scale(1.03); }

.editorial-grid.with-image .col-image .img-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-md);
    background: linear-gradient(180deg, transparent 0%, rgba(13, 12, 9, 0.85) 100%);
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink-cream-muted);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .editorial-grid.with-image { grid-template-columns: 1fr; }
    .editorial-grid.with-image .col-image { min-height: 360px; }
}

/* ---------- Craft gallery strip ---------- */
.craft-gallery {
    background: var(--bg-deep);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--line-faint);
}

.craft-gallery-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.craft-gallery-header .eyebrow { margin-bottom: var(--space-sm); }

.craft-gallery-header p {
    max-width: 52ch;
    margin: 0 auto;
    color: var(--ink-cream-muted);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--line-faint);
}

@media (max-width: 880px) {
    .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

.gallery-strip figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
}

.gallery-strip figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85) saturate(0.9);
    transition: transform 1.2s ease, filter 0.6s ease;
}

.gallery-strip figure:hover img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.05);
}

.gallery-strip figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 12, 9, 0.9) 100%);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-cream);
}

/* ---------- Services CTA strip ---------- */
.services-cta {
    background:
        linear-gradient(160deg, rgba(192, 135, 90, 0.08), transparent 60%),
        var(--bg-deep);
    text-align: center;
}

.services-cta h2 {
    margin-bottom: var(--space-sm);
}

.services-cta .lead {
    margin: var(--space-sm) auto var(--space-lg);
}

.services-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    text-align: left;
}

@media (max-width: 760px) {
    .services-summary { grid-template-columns: 1fr; }
}

.service-item {
    padding: var(--space-md);
    border: 1px solid var(--line-faint);
    background: rgba(20, 17, 12, 0.5);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.service-item:hover {
    border-color: var(--accent-copper);
    background: rgba(20, 17, 12, 0.9);
}

.service-item .service-rate {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-copper);
    margin-bottom: 0.35rem;
}

.service-item .service-name {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-cream);
    margin-bottom: var(--space-sm);
}

.service-item .service-desc {
    font-size: 0.92rem;
    color: var(--ink-cream-muted);
    line-height: 1.55;
}

/* ---------- Tres Gallos hook ---------- */
.tres-gallos {
    background: var(--bg-section);
    text-align: center;
    border-top: 1px solid var(--line-faint);
    border-bottom: 1px solid var(--line-faint);
}

.tres-gallos .eyebrow { color: var(--accent-agave); }

.tres-gallos h2 {
    max-width: 22ch;
    margin: 0 auto var(--space-md);
}

.tres-gallos p { margin: 0 auto var(--space-lg); color: var(--ink-cream-muted); }

/* ---------- Button ---------- */
.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-cream);
    border: 1px solid var(--accent-copper);
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    position: relative;
}

.btn:hover {
    background: var(--accent-copper);
    color: var(--bg-deep);
}

.btn.btn-ghost {
    border-color: var(--line-soft);
    color: var(--ink-cream-muted);
}

.btn.btn-ghost:hover {
    border-color: var(--ink-cream);
    background: var(--ink-cream);
    color: var(--bg-deep);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0a0906;
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid var(--line-faint);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--line-faint);
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img {
    height: 60px;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--ink-cream-muted);
    line-height: 1.6;
    max-width: 36ch;
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-copper);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    color: var(--ink-cream-muted);
    line-height: 1.5;
}

.footer-col a { color: var(--ink-cream-muted); }
.footer-col a:hover { color: var(--ink-cream); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    font-size: 0.78rem;
    color: var(--ink-cream-dim);
    letter-spacing: 0.06em;
    flex-wrap: wrap;
}

.footer-bottom a:hover { color: var(--ink-cream); }

/* ---------- Scroll-reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-cue { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 760px) {
    .site-nav ul { display: none; }
    .nav-toggle {
        display: block;
        width: 28px;
        height: 18px;
        position: relative;
    }
    .nav-toggle span {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--ink-cream);
    }
    .nav-toggle span:nth-child(1) { top: 2px; }
    .nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .nav-toggle span:nth-child(3) { bottom: 2px; }

    .site-nav.open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 12, 9, 0.97);
        padding: var(--space-md);
        gap: var(--space-md);
        border-bottom: 1px solid var(--line-faint);
        backdrop-filter: blur(10px);
    }
}
