/* ==========================================================================
   Argenté de Champagne — token system
   Ink:        #211E1B  warm charcoal
   Bone:       #F3EFE7  warm cream background
   Silver:     #B9B6AD  the coat, muted borders
   Champagne:  #C9A56A  accent, gold
   Plum:       #3E322B  dark section background
   Ash:        #6E6A63  muted text
   Display:    'Fraunces'      — heritage serif
   Body:       'Inter'         — clean sans
   Utility:    'IBM Plex Mono' — specs, numbers, labels
   ========================================================================== */

:root {
    --ink: #211E1B;
    --bone: #F3EFE7;
    --bone-dim: #EAE4D6;
    --silver: #B9B6AD;
    --champagne: #C9A56A;
    --champagne-soft: rgba(201, 165, 106, 0.18);
    --plum: #3E322B;
    --plum-2: #2C231D;
    --ash: #6E6A63;
    --white: #FDFCF9;

    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --max-w: 1180px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}

a {
    color: inherit;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--champagne);
    margin: 0 0 0.9rem;
}

/* subtle film-grain overlay for texture, purely decorative */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Topbar / nav
   ========================================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem var(--gutter);
    background: rgba(243, 239, 231, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(33, 30, 27, 0.08);
}

.brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.brand span {
    color: var(--champagne);
    font-style: italic;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.2rem);
}

.nav a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 2px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--champagne);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(33, 30, 27, 0.15);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    margin: 0 8px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 88vh;
}

.hero-media {
    position: relative;
    overflow: hidden;
    background: var(--plum);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.03);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 5rem);
    background: var(--bone);
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.hero-lede {
    max-width: 34ch;
    margin: 1.5rem 0 0;
    color: var(--ash);
    font-size: 1.05rem;
}

.hero-facts {
    display: flex;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(33, 30, 27, 0.12);
    flex-wrap: wrap;
}

.hero-facts>div {
    display: flex;
    flex-direction: column;
}

.hero-facts .num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.7rem;
    color: var(--champagne);
}

.hero-facts .lbl {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--ash);
    max-width: 14ch;
    margin-top: 0.2rem;
}

/* ==========================================================================
   Shared section layout
   ========================================================================== */

.section {
    padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.08;
}

.section-head.light .eyebrow {
    color: var(--champagne);
}

.section-head.light h2 {
    color: var(--white);
}

.lead-text {
    font-size: 1.05rem;
    color: var(--ash);
    max-width: 62ch;
}

.lead-text.light {
    color: rgba(253, 252, 249, 0.72);
}

/* Origin */
.origin-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.origin-text p {
    margin: 0 0 1.1rem;
    color: var(--ink);
}

.origin-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Color journey (signature element)
   ========================================================================== */

.journey {
    max-width: none;
    background: var(--plum-2);
    background-image: radial-gradient(circle at 15% 20%, rgba(201, 165, 106, 0.08), transparent 45%);
    color: var(--white);
}

.journey .section-head,
.journey .timeline,
.journey .stage-panels {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(253, 252, 249, 0.14);
    border: 1px solid rgba(253, 252, 249, 0.14);
}

.stage {
    background: var(--plum-2);
    border: none;
    color: rgba(253, 252, 249, 0.55);
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: background 0.25s ease, color 0.25s ease;
}

.stage-mark {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.stage-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: inherit;
}

.stage:hover {
    background: rgba(253, 252, 249, 0.05);
}

.stage.active {
    background: var(--champagne-soft);
    color: var(--white);
}

.stage.active .stage-mark {
    color: var(--champagne);
}

.stage-panels {
    margin-top: 2rem;
    min-height: 5.5rem;
}

.stage-panel {
    display: none;
    animation: fadeUp 0.4s ease;
}

.stage-panel.active {
    display: block;
}

.stage-panel p {
    max-width: 68ch;
    color: rgba(253, 252, 249, 0.85);
    font-size: 1.05rem;
}

.stage-panel strong {
    color: var(--champagne);
    font-weight: 600;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Standard / specs
   ========================================================================== */

.standard-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.standard-media img {
    border: 1px solid rgba(33, 30, 27, 0.1);
}

.spec-list {
    margin: 0;
}

.spec-row {
    display: grid;
    grid-template-columns: 34% 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(33, 30, 27, 0.12);
}

.spec-row:first-child {
    border-top: 1px solid rgba(33, 30, 27, 0.12);
}

.spec-row dt {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--champagne);
    text-transform: uppercase;
}

.spec-row dd {
    margin: 0;
    color: var(--ink);
}

/* ==========================================================================
   Care cards
   ========================================================================== */

.care-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(33, 30, 27, 0.12);
    border: 1px solid rgba(33, 30, 27, 0.12);
}

.care-card {
    background: var(--bone);
    padding: 1.8rem;
}

.care-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.care-card p {
    margin: 0;
    color: var(--ash);
    font-size: 0.95rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

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

.gallery-grid figure {
    margin: 0;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(33, 30, 27, 0.1);
}

.gallery-grid figcaption {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ash);
    margin-top: 0.6rem;
    line-height: 1.4;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem var(--gutter) 2.2rem;
    max-width: var(--max-w);
    margin: 0 auto;
    color: var(--ash);
    font-size: 0.85rem;
    border-top: 1px solid rgba(33, 30, 27, 0.1);
}

.to-top {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(33, 30, 27, 0.2);
    background: var(--bone);
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.to-top:hover {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 3px;
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-media {
        aspect-ratio: 16 / 10;
    }

    .origin-grid,
    .standard-grid {
        grid-template-columns: 1fr;
    }

    .standard-media {
        order: -1;
    }

    .care-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bone);
        border-bottom: 1px solid rgba(33, 30, 27, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.open {
        max-height: 320px;
    }

    .nav a {
        padding: 1rem var(--gutter);
        border-top: 1px solid rgba(33, 30, 27, 0.06);
    }

    .hero-facts {
        gap: 1.4rem;
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

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

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

    .gallery-grid img {
        aspect-ratio: 16 / 10;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}