/* css/home-variants.css
   Styles for the five swappable homepage layouts + the variant switcher.
   Shares the site palette: text #333/#666, warm panel #f4eee3,
   accent blue rgba(32,53,127,.759). */

:root {
    --hv-warm: #f4eee3;
    --hv-accent: rgba(32, 53, 127, 0.759);
    --hv-ink: #333333;
    --hv-muted: #666666;
}

/* Only the active variant is shown. */
.home-variant { display: none; }
.home-variant.is-active { display: block; }

/* ----------------------------------------------------------------------
   Variant switcher — a 5-step slider so the client can browse the designs
   ---------------------------------------------------------------------- */
.variant-switcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20000;
    width: 210px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
    padding: 12px 16px 10px;
    font-family: 'Lato', 'Roboto', sans-serif;
}
.variant-switcher__caption {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a9a9a;
    margin-bottom: 10px;
    text-align: center;
}

.variant-slider {
    padding: 0 2px;
}
.variant-slider__input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #e4e0d8;
    outline: none;
    cursor: pointer;
    margin: 0;
}
/* progress-fill trick via a gradient set from JS is overkill; keep a soft track */
.variant-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hv-accent);
    border: 3px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.variant-slider__input::-webkit-slider-thumb:hover { transform: scale(1.12); }
.variant-slider__input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hv-accent);
    border: 3px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.variant-slider__input::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: #e4e0d8;
}
.variant-slider__input:focus-visible {
    outline: 2px solid var(--hv-accent);
    outline-offset: 6px;
    border-radius: 999px;
}

.variant-slider__scale {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 2px;
}
.variant-slider__scale span {
    font-size: 11px;
    color: #bdbdbd;
    width: 20px;
    text-align: center;
    transition: color 0.2s ease, font-weight 0.2s ease;
}
.variant-slider__scale span.is-active {
    color: var(--hv-accent);
    font-weight: 700;
}

@media (max-width: 600px) {
    .variant-switcher { width: 180px; right: 12px; bottom: 12px; }
}

/* ----------------------------------------------------------------------
   Shared furniture-feature building blocks
   ---------------------------------------------------------------------- */
.hv-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--hv-accent);
    margin: 0 0 0.75rem;
}
.hv-section-title {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    color: var(--hv-ink);
    margin: 0;
    letter-spacing: 0.01em;
}
.hv-lead {
    color: var(--hv-muted);
    font-weight: 300;
    max-width: 46ch;
    margin: 0.9rem 0 0;
}
.hv-cta {
    display: inline-block;
    margin-top: 1.4rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--hv-ink);
    border-radius: 2px;
    color: var(--hv-ink);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}
.hv-cta:hover { background: var(--hv-ink); color: #fff; }

.hv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Featured furniture cards (used by V2 + as bands) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 2rem;
}
.feature-card { text-decoration: none; color: inherit; display: block; }
.feature-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.3rem;
    background: var(--hv-warm);
}
.feature-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.feature-card:hover .feature-card__img img { transform: scale(1.04); }

/* Editorial caption: a large light numeral sits beside the title,
   separated by a hairline rule — no floating badge on the photo. */
.feature-card__caption {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e7e2d8;
}
.feature-card__num {
    font-size: 1.55rem;
    font-weight: 300;
    line-height: 1;
    color: var(--hv-accent);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}
.feature-card__text { display: flex; flex-direction: column; }
.feature-card__name {
    font-weight: 300;
    font-size: 1.02rem;
    color: var(--hv-ink);
}
.feature-card__meta {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #9a9a9a;
}
@media (max-width: 760px) {
    .feature-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* Two-item "Also from the Studio" rows (V3 + V4): let each item grow
   wider to fill the space, but cap the height so they don't get too tall. */
@media (min-width: 769px) {
    .home-gallery--pair {
        justify-content: center;
        gap: 2rem;
    }
    .home-gallery--pair article {
        flex-basis: calc(50% - 1rem);
        margin-bottom: 0;
    }
    .home-gallery--pair .img-container {
        aspect-ratio: 5 / 6;
    }
    .home-gallery--pair .img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ======================================================================
   V2 — FEATURED TRIO (client idea #1: scroll to see top-3 furniture)
   ====================================================================== */
.v2-hero {
    position: relative;
    min-height: clamp(340px, 58vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.v2-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 2%;
}
.v2-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
}
.v2-hero__inner { position: relative; z-index: 2; padding: 1.5rem; }
.v2-hero .hv-eyebrow { color: #f0e9db; }
.v2-hero .hv-section-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.v2-hero__scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
    animation: hvBounce 2s ease-in-out infinite;
}
@keyframes hvBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}
.v2-featured { padding: 3.4rem 0 1rem; }
.v2-featured__head { text-align: center; }
.v2-categories { padding: 2.6rem 0 1rem; }
.v2-categories__title {
    text-align: center;
    font-weight: 300;
    color: var(--hv-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0 0 0.6rem;
}
.v2-categories__arrow {
    display: block;
    margin: 0 auto 1.4rem;
    width: 13px;
    color: var(--hv-muted);
    opacity: 0.65;
    animation: v2-arrow-drift 2.6s ease-in-out infinite;
}
.v2-categories__arrow svg { display: block; }
@keyframes v2-arrow-drift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .v2-categories__arrow { animation: none; }
}

/* ======================================================================
   V3 — CINEMATIC INTRO (client idea #2: video plays on load)
   ====================================================================== */
.v3-intro {
    position: fixed;
    inset: 0;
    z-index: 15000;
    background: #14110d;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease;
}
.v3-intro.is-hiding { opacity: 0; }
.v3-intro.is-done { display: none; }
.v3-intro video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v3-intro__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12vh;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.6));
    pointer-events: none;
}
.v3-intro__title {
    font-weight: 300;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    letter-spacing: 0.02em;
    margin: 0;
    opacity: 0;
    animation: hvFadeUp 1.2s ease forwards 0.6s;
}
.v3-intro__sub {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #e9e1d2;
    margin: 0.8rem 0 0;
    opacity: 0;
    animation: hvFadeUp 1.2s ease forwards 1s;
}
@keyframes hvFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.v3-intro__skip {
    position: absolute;
    top: 20px;
    right: 22px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease;
}
.v3-intro__skip:hover { background: rgba(255,255,255,0.28); }
.v3-featured-band { padding: 3rem 0 1rem; }
.v3-featured-band__head { text-align: center; }

/* --- v3 header: three-page menu with Instagram at the right -------------- */

/* v3 supplies its own header, so hide the shared global one while active. */
body.variant-v3 > header,
body.variant-v3 > nav { display: none; }

/* Full-width white header bar. The bar itself spans the whole viewport while
   its content (brand + links) stays aligned to a centred 1200px column via
   auto side-padding. box-sizing keeps padding inside the width so it never
   overflows; body overflow-x:hidden (below) is the belt-and-braces guard for
   the homepage's viewport breakout. */
.v3-header {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 14000;              /* above content, below the intro (15000) so
                                    the header stays hidden during the intro */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
    width: 100%;
    /* Centre content to a 1200px column: 2rem gutter, growing to auto side
       space on wider screens. Based on 50vw (the viewport) rather than 100%,
       so it resolves identically whether the header's containing block is
       <body> (interior pages) or the 1200px <main> (homepage). */
    padding: 18px max(2rem, calc(50vw - 600px + 2rem));
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;            /* reset legacy `header { text-align:center }` */
}
/* On the homepage the header sits inside <main> (max-width:1200px; centred),
   so break it out to the full viewport. 100vw + this negative margin is the
   standard full-bleed trick; the body overflow-x guard below neutralises the
   scrollbar-width overshoot that would otherwise cause a sideways scroll. */
body.variant-v3 .v3-header,
main .v3-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
/* Guard: no element (incl. the 100vw breakout) may scroll the page sideways.
   overflow-x:clip (not hidden) avoids turning body into a scroll container,
   which would otherwise break position:sticky on the header. */
html, body { overflow-x: clip; }
/* Smoothly transition into the scrolled/glassy state on the interior pages. */
.v3-header { transition: padding 0.3s ease, background 0.3s ease,
                         box-shadow 0.3s ease, backdrop-filter 0.3s ease,
                         border-color 0.3s ease; }

/* Once scrolled (sticky-header.js adds `.scrolled` past ~64px), the interior
   header goes compact and glassy: a translucent, frosted, see-through bar that
   lets the gallery content show softly through it. Overrides the legacy
   `header.scrolled` padding change too. */
.v3-header.scrolled {
    padding-top: 11px;
    padding-bottom: 11px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: rgba(20, 17, 13, 0.06);
    box-shadow: 0 6px 26px rgba(20, 17, 13, 0.08);
}
/* Browsers without backdrop-filter: fall back to a more opaque bar so text
   stays legible instead of showing raw content through a 55% white. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .v3-header.scrolled { background: rgba(255, 255, 255, 0.94); }
}

.v3-header__brand {
    display: flex;
    align-items: baseline;
    line-height: 1.15;
    text-decoration: none;
    /* Match the original global header brand (header h1). */
    color: #666666;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 30px;
    letter-spacing: 1px;
    white-space: nowrap;
    flex: 0 0 auto;                 /* never shrink the brand */
}
.v3-header__brand .top-line { margin-right: 0.4em; }
.v3-header__brand .circle { color: rgba(32, 53, 127, 0.76); margin: 0 0.15em; }

/* At 800px and below: shrink the brand, drop the dot, and stack the two
   lines (matching the old responsive header). */
@media (max-width: 800px) {
    .v3-header__brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Fluid size so the long "GERONIMO WOODWORKS" line always fits within
           the space left beside the hamburger, down to small phones. */
        font-size: clamp(15px, 5.2vw, 22px);
        line-height: 1.2;
    }
    .v3-header__brand .top-line { margin-right: 0; }
    .v3-header__brand .circle { display: none; }

    /* Center the brand within the header; float the hamburger to the right
       so it doesn't push the brand off-center. */
    .v3-header { position: relative; justify-content: center; }
    /* Reserve room for the hamburger on both sides so the centered brand can
       never slide underneath it. The gutter = toggle width (44px) + its right
       offset + a little breathing space; applied symmetrically to keep the
       brand optically centered. */
    .v3-header__brand {
        flex: 0 1 auto;
        max-width: calc(100% - 2 * (44px + clamp(1rem, 4vw, 2.5rem) + 0.75rem));
    }
    .v3-header .v3-nav-toggle {
        position: absolute;
        top: 50%;
        right: clamp(1rem, 4vw, 2.5rem);
        transform: translateY(-50%);
    }
}

/* Desktop nav: links + Instagram pushed to the right of the brand. */
.v3-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;              /* push the whole group to the right */
}
.v3-nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.v3-nav__links a {
    position: relative;
    text-decoration: none;
    color: #2a2a2a;
    font-family: 'Raleway', 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 4px 0;
    transition: color 0.2s ease;
}
/* The index number + eyebrow + footer label are drawer-only chrome; hide
   them in the desktop inline nav. */
.v3-nav__index,
.v3-nav__eyebrow,
.v3-nav__footer span { display: none; }
/* Animated underline on hover / current page. */
.v3-nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.v3-nav__links a:hover,
.v3-nav__links a[aria-current="page"] { color: #14110d; }
.v3-nav__links a:hover::after,
.v3-nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* On desktop the footer is transparent — the IG icon sits inline in the row. */
.v3-nav__footer { display: inline-flex; align-items: center; }
.v3-nav__ig {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.v3-nav__ig:hover { opacity: 1; }
.v3-nav__ig img { width: 22px; height: 22px; display: block; }

/* Hamburger — hidden on desktop, shown once the links get tight. */
.v3-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;              /* sits at the far right on mobile */
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.v3-nav-toggle__bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 0 auto;
    background: #2a2a2a;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Close (X) button — only visible inside the mobile drawer. Built from two
   crossed hairlines rather than a font glyph, so it matches the hamburger. */
.v3-nav-close {
    display: none;
    position: absolute;
    top: 22px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.v3-nav-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background: #2a2a2a;
    transition: background 0.2s ease;
}
.v3-nav-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.v3-nav-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.v3-nav-close:hover span { background: #8a6a3a; }

/* Backdrop behind the open drawer (created by JS). */
.v3-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 16040;
}
.v3-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Lock body scroll while the drawer is open. */
body.v3-nav-lock { overflow: hidden; }

/* Collapse to the hamburger at this breakpoint. */
@media (max-width: 1200px) {
    .v3-nav-toggle { display: flex; }
    .v3-nav-close { display: block; }

    .v3-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(86vw, 360px);
        height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 5.5rem 2.25rem 2.25rem;
        background: #fbfaf7;            /* warm off-white, matches the site */
        box-shadow: -18px 0 48px rgba(20, 17, 13, 0.16);
        transform: translateX(100%);
        z-index: 16050;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* No transition by default: this way the drawer never animates when it
           first appears or when the window is resized into this breakpoint —
           it simply sits off-screen right. The slide is enabled by JS only
           after the first real open (see .v3-nav--animated below), so a
           resize can't make it look like it's "closing" on arrival. */
        transition: none;
        /* Hidden until JS marks the header ready, so it can't flash open (as
           an inline row) before CSS/JS have positioned it. */
        visibility: hidden;
    }
    .v3-header.is-ready .v3-nav { visibility: visible; }
    /* Enabled by JS on first open — the soft, weighted slide. */
    .v3-nav--animated { transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
    .v3-nav.is-open { transform: translateX(0); }

    /* Small kicker at the top of the drawer. */
    .v3-nav__eyebrow {
        display: block;
        margin: 0 0 1.75rem;
        font-family: 'Raleway', 'Lato', sans-serif;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.32em;
        text-transform: uppercase;
        color: #b0a894;
    }

    .v3-nav__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .v3-nav__links li { width: 100%; }

    /* Big, numbered, divided rows. */
    .v3-nav__links a {
        display: flex;
        align-items: baseline;
        gap: 0.85rem;
        padding: 1.05rem 0;
        border-bottom: 1px solid rgba(20, 17, 13, 0.08);
        font-size: 1.35rem;
        font-weight: 300;
        letter-spacing: 0.01em;
        text-transform: none;
        color: #1c1913;
        /* Each row starts slightly lowered + transparent, then settles in
           when the drawer opens (staggered below). */
        opacity: 0;
        transform: translateX(14px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
    }
    .v3-nav__links li:first-child a { border-top: 1px solid rgba(20, 17, 13, 0.08); }
    .v3-nav__links a::after { display: none; }   /* drop the desktop underline */

    .v3-nav__index {
        display: block;
        font-family: 'Raleway', 'Lato', sans-serif;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        color: #b8895a;
        transform: translateY(-0.35em);   /* superscript feel */
    }
    .v3-nav__label { display: block; }

    .v3-nav__links a:hover .v3-nav__label,
    .v3-nav__links a:active .v3-nav__label { color: #8a6a3a; }

    /* Staggered reveal once the drawer is open. */
    .v3-nav.is-open .v3-nav__links a { opacity: 1; transform: translateX(0); }
    .v3-nav.is-open .v3-nav__links li:nth-child(1) a { transition-delay: 0.10s; }
    .v3-nav.is-open .v3-nav__links li:nth-child(2) a { transition-delay: 0.17s; }
    .v3-nav.is-open .v3-nav__links li:nth-child(3) a { transition-delay: 0.24s; }

    /* Footer: pinned to the bottom of the drawer with the IG link + label. */
    .v3-nav__footer {
        display: flex;
        margin-top: auto;
        padding-top: 2rem;
    }
    .v3-nav__footer span {
        display: inline;
        font-family: 'Raleway', 'Lato', sans-serif;
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #6a6357;
    }
    .v3-nav__ig { gap: 0.7rem; opacity: 1; }
    .v3-nav__ig img { width: 20px; height: 20px; }
    .v3-nav__ig:hover span { color: #1c1913; }

    /* Hamburger → X when open. */
    .v3-nav-toggle.is-open .v3-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .v3-nav-toggle.is-open .v3-nav-toggle__bar:nth-child(2) { opacity: 0; }
    .v3-nav-toggle.is-open .v3-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Honor reduced-motion: no slide/stagger, just an instant, legible drawer. */
@media (max-width: 1200px) and (prefers-reduced-motion: reduce) {
    .v3-nav--animated { transition: none; }
    .v3-nav__links a { transition: color 0.2s ease; opacity: 1; transform: none; }
    .v3-nav.is-open .v3-nav__links a { transition-delay: 0s; }
}

/* Single category card (Cabinets removed from the v3 bottom pair). */
.home-gallery--single { justify-content: center; }
@media (min-width: 769px) {
    .home-gallery--single article { flex-basis: min(100%, 560px); margin-bottom: 0; }
    .home-gallery--single .img-container { aspect-ratio: 16 / 9; }
    .home-gallery--single .img-container img { width: 100%; height: 100%; object-fit: cover; }
}

/* ======================================================================
   V4 — SPLIT HERO (idea A: video/image + editorial rail)
   ====================================================================== */
.v4-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: clamp(420px, 72vh, 680px);
}
.v4-split__media { position: relative; overflow: hidden; background: #14110d; }
.v4-split__media video,
.v4-split__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v4-split__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: var(--hv-warm);
}
.v4-rail {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
}
.v4-rail a {
    flex: 1;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.3rem;
    background: #fff;
}
.v4-rail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.v4-rail a:hover img { transform: scale(1.06); }
.v4-below {
    padding: 2.6rem 0 1rem;
}
.v4-below__title {
    text-align: center;
    font-weight: 300;
    color: var(--hv-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0 0 1.4rem;
}
@media (max-width: 860px) {
    .v4-split { grid-template-columns: 1fr; }
    .v4-split__media { min-height: 300px; position: relative; }
}

/* ======================================================================
   V5 — IMMERSIVE MARQUEE (idea B: full-bleed auto-scroll + video texture)
   ====================================================================== */
.v5-stage {
    position: relative;
    padding: clamp(2.4rem, 6vh, 4.5rem) 0 clamp(1.5rem, 4vh, 3rem);
    overflow: hidden;
    background: #14110d;
    color: #fff;
}
.v5-stage__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: saturate(1.05);
}
.v5-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,17,13,0.55), rgba(20,17,13,0.82));
}
.v5-stage__head {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
.v5-stage__head .hv-eyebrow { color: #e9e1d2; }
.v5-stage__head .hv-section-title { color: #fff; }
.v5-stage__head .hv-lead { color: #d8d0c2; margin-left: auto; margin-right: auto; }

.v5-marquee {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.v5-marquee__track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: hvMarquee 42s linear infinite;
}
.v5-marquee:hover .v5-marquee__track { animation-play-state: paused; }
@keyframes hvMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.v5-marquee__item {
    flex: 0 0 auto;
    width: clamp(220px, 26vw, 340px);
    height: clamp(260px, 32vw, 400px);
    border-radius: 0.4rem;
    overflow: hidden;
    background: #211c16;
    text-decoration: none;
    position: relative;
    display: block;
}
.v5-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.v5-marquee__item:hover img { transform: scale(1.05); }
.v5-marquee__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem 1rem 0.9rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
}
.v5-stage__cta { position: relative; z-index: 2; text-align: center; margin-top: 2.2rem; }
.v5-stage__cta .hv-cta { border-color: #fff; color: #fff; }
.v5-stage__cta .hv-cta:hover { background: #fff; color: var(--hv-ink); }

/* slim category nav below the immersive furniture stage */
.v5-catnav {
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    flex-wrap: wrap;
    padding: 2.2rem 1rem 1rem;
}
.v5-catnav a {
    text-decoration: none;
    color: var(--hv-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.v5-catnav a:hover { color: var(--hv-ink); border-color: var(--hv-accent); }

@media (prefers-reduced-motion: reduce) {
    .v5-marquee__track { animation: none; }
    .v2-hero__scroll { animation: none; }
}
