/* ===================================
   Frankie & Johnnie | Premium Scroll Experience
   =================================== */

:root {
    /* Palette: black, burgundy and cream, with one rose accent */
    --wine: #5e0b16;
    --wine-deep: #2a0509;
    --wine-rose: #b5485a;
    --cream: #f3ece1;
    --ink-wine: #4a0a12;
    --color-bg: #000000;
    --color-text: var(--cream);
    --color-accent: var(--wine-rose);
    --color-line: rgba(243, 236, 225, 0.1);

    /* Type: Bodoni Moda for display, Outfit for everything else */
    --font-display: 'Bodoni Moda', serif;
    --font-sans: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    cursor: default;            /* plain arrow over text instead of the I-beam */
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.5s ease;
}

/* Lenis Recommended CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a,
button,
[role="button"] {
    cursor: pointer;
}

::selection {
    background: var(--wine);
    color: var(--cream);
}

/* Large Bodoni settings: at display sizes the browser picks the font's most
   extreme optical size, whose hairlines nearly vanish. Capping it at 32
   thickens only the thin strokes (the heavy ones stay put). Smaller serif
   text already sits below 32 on its own, so it is left automatic. */
.hero-text,
.ph-caps,
.ph-ital,
.process-title,
.step-name,
.passion-word,
.quality-word,
.story-heading {
    font-variation-settings: "opsz" 32;
}

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Header Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 4rem;
    pointer-events: none;
    /* Allows scrolling through the header */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    pointer-events: auto;
    /* Re-enables clicks for links */
}

.nav-center {
    display: flex;
    justify-content: center;
}

.nav-logo {
    height: 60px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
}

.nav-center a {
    position: relative;
    display: block;
}

.nav-center a:hover .nav-logo {
    transform: scale(1.08);
}

/* Dark version of the logo (white strokes turned black, red glass kept)
   sits on top and fades in over light sections */
.nav-logo-dark {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.nav-link {
    font-family: var(--font-sans);
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: opacity 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Default state (Exit side) */
.nav-left .nav-link::after {
    transform-origin: right;
}

.nav-right .nav-link::after {
    transform-origin: left;
}

/* Hover state (Enter side) */
.nav-left .nav-link:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.nav-right .nav-link:hover::after {
    transform-origin: right;
    transform: scaleX(1);
}

/* Over light sections (data-nav-theme="light") the header turns black */
.nav-link,
.nav-link::after,
.nav-logo {
    transition: color 0.4s ease, background-color 0.4s ease, filter 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.main-nav.on-light .nav-link {
    color: #111;
}

.main-nav.on-light .nav-link::after {
    background-color: #111;
}

.main-nav.on-light .nav-logo {
    opacity: 0;
}

.main-nav.on-light .nav-logo-dark {
    opacity: 1;
}

.nav-link:hover {
    opacity: 1;
    /* Keeping it bright during animation */
}

/* 1. Hero Section */
.hero {
    height: 100vh;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            transparent 40%,
            transparent 70%,
            rgba(0, 0, 0, 1) 100%);
}

.hero-content {
    text-align: center;
}

.hero-text {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7.5vw, 6.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero-text em {
    font-style: italic;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    /* Increased visibility */
}

.scroll-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    /* Slightly larger */
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    /* Bolder */
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* 2. Philosophy */
.philosophy {
    height: 100vh;
    z-index: 10;
    background: radial-gradient(ellipse 80% 70% at 50% 50%, #4b0c15 0%, var(--wine-deep) 60%, #160204 100%);
    color: var(--cream);
    --aw: min(28vw, 42vh);           /* arch width */
    --ah: calc(var(--aw) * 1.45);    /* arch height */
}

/* The video always covers the section; the arch is just a clip-path window,
   so opening it is a single compositor-friendly property, not a resize. */
.ph-media {
    --open: 0;
    --ix: calc((100% - var(--aw)) / 2 * (1 - var(--open)));
    --iy: calc((100% - var(--ah)) / 2 * (1 - var(--open)));
    --r: calc(var(--aw) / 2 * (1 - var(--open)));
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    clip-path: inset(var(--iy) var(--ix) var(--iy) var(--ix) round var(--r) var(--r) 0 0);
}

.ph-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
}

.ph-media-shade {
    position: absolute;
    inset: 0;
    background: rgba(25, 3, 6, 0.38);
    opacity: 0;
}

/* Hairline arch drawn just outside the window */
.ph-arch-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--aw) + 32px);
    height: calc(var(--ah) + 16px);
    transform: translate(-50%, calc(-50% - 8px));
    border: 1px solid rgba(243, 236, 225, 0.22);
    border-bottom: 0;
    border-radius: calc(var(--aw) / 2 + 16px) calc(var(--aw) / 2 + 16px) 0 0;
    z-index: 1;
    pointer-events: none;
}

.ph-phrase {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    text-align: center;
    color: var(--cream);
    text-shadow: 0 2px 30px rgba(20, 2, 5, 0.35);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}

.ph-caps,
.ph-ital {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 9.5vw, 11rem);
    line-height: 0.92;
    white-space: nowrap;
}

.ph-caps {
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.ph-ital {
    font-style: italic;
    margin-top: -0.06em;
}

/* Words stagger either side of the arch */
.ph-1 .ph-caps { margin-right: 16vw; }
.ph-1 .ph-ital { margin-left: 20vw; }
.ph-2 .ph-caps { margin-right: 20vw; }
.ph-2 .ph-ital { margin-left: 16vw; }
.ph-3 .ph-caps { margin-right: 12vw; }

.ph-3 .ph-ital {
    font-size: clamp(2.4rem, 6.5vw, 8rem);
    margin-left: 18vw;
    margin-top: 0.05em;
}

/* "built over" leads into SEASONS in the same italic voice as the line below */
.ph-small {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.8rem, 3.6vw, 4.2rem);
    line-height: 1;
    margin: 0 30vw 0.1em 0;
    color: var(--cream);
}

/* Small italic title with hairline rules, sitting just clear of the arch outline */
.philosophy-eyebrow {
    position: absolute;
    top: calc(50% - var(--ah) / 2 - 8px - 2.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(243, 236, 225, 0.75);
    white-space: nowrap;
}

.philosophy-eyebrow::before,
.philosophy-eyebrow::after {
    content: '';
    width: 36px;
    height: 1px;
    background: rgba(243, 236, 225, 0.35);
}

.ph-edge {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 75%, #000 100%);
    opacity: 0;
    pointer-events: none;
}


/* 3. Brands Showcase (Horizontal) */
.brands-horizontal {
    background-color: #000000;
}

.brands-sticky-cta {
    position: absolute;
    bottom: 5vh;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5vh;
}

.brands-progress-container {
    width: 200px;
    height: 1px;
    background: rgba(243, 236, 225, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-link-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brands-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-text);
}

.brands-cta-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-nav-btn:hover {
    background: rgba(243, 236, 225, 0.05);
    border-color: rgba(243, 236, 225, 0.2);
    transform: scale(1.05);
}

.cta-link {
    font-family: var(--font-sans);
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    font-weight: 500;
    padding: 1.15rem 2.2rem;
    border: 1px solid rgba(243, 236, 225, 0.3);
    transition: background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.cta-link:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.horizontal-scroll-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.brands-track {
    display: flex;
    padding: 0 36vw;
    gap: 15vw;
    align-items: center;
    height: 100%;
}

.brand-display-item {
    flex-shrink: 0;
    width: 28vw;
    height: 65vh;
    position: relative;
    /* Transformation handled by inner content to keep marker stable */
}

.brand-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(243, 236, 225, 0.06);
    transform: scale(0.85);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-category-marker {
    position: absolute;
    left: -8vw;
    top: 47%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.1;
    white-space: nowrap;
    pointer-events: none;
}

/* Larger chapter jump before Spirits */
.brand-display-item:nth-child(7) {
    margin-left: 20vw;
}

.brand-display-item.is-active .brand-card-inner {
    transform: scale(1.05);
}

/* the whole card opens the brand's page */
.brand-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.brand-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Soft pool of brand-tinted light behind the bottles */
    background:
        radial-gradient(ellipse 70% 45% at 50% 82%, rgba(var(--tint), 0.38) 0%, rgba(var(--tint), 0) 70%),
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(243, 236, 225, 0.06) 0%, rgba(243, 236, 225, 0) 70%),
        linear-gradient(to bottom, #161616 0%, #070707 100%);
}

/* Bottles stand on the lower part of the card, logo sits above them */
.brand-bottles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7%;
    height: 54%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.brand-bottle {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7));
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-bottle.bottle-main {
    z-index: 2;
}

.brand-bottle.bottle-left,
.brand-bottle.bottle-right {
    height: 84%;
    z-index: 1;
}

.brand-bottle.bottle-left {
    transform: translateX(-38%);
}

.brand-bottle.bottle-right {
    transform: translateX(38%);
}

.brand-display-item.is-active .bottle-left {
    transform: translateX(-62%);
}

.brand-display-item.is-active .bottle-right {
    transform: translateX(62%);
}

.brand-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.72) 50%, rgba(5, 5, 5, 0.92) 100%);
    z-index: 2;
    transition: opacity 0.8s ease;
}

.brand-overlay-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.brand-display-item.is-active .brand-overlay-dark {
    opacity: 0;
}

.brand-display-item.is-active .brand-overlay-light {
    opacity: 1;
}

.brand-logo-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 2.5rem 1rem;
}

.brand-logo-large {
    max-width: min(78%, 220px);
    max-height: 72%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Dark logos are knocked out to white so they read on black (cards, portfolio, brand pages) */
.logo-invert {
    filter: brightness(0) invert(1);
}

.brand-display-item.is-active .brand-logo-large {
    opacity: 1;
    transform: scale(1);
}

/* 4. Process — wheel */
.process {
    height: 100vh;
    background: #000;
    padding: 0 5vw;
}

.eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
    margin-bottom: 1rem;
}

.process-head {
    text-align: center;
    margin-bottom: 7vh;
}

.process-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    line-height: 1;
}

.process-title .caps {
    text-transform: uppercase;
}

.process-title em {
    font-style: italic;
}

.process-body {
    --aw: min(25vw, 38vh);             /* arch width */
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8vw;
    align-items: center;
}

.process-arch-wrap {
    position: relative;
    width: var(--aw);
    height: calc(var(--aw) * 1.38);
}

.process-arch {
    position: absolute;
    inset: 0;
    border-radius: calc(var(--aw) / 2) calc(var(--aw) / 2) 0 0;
    overflow: hidden;
    background: #120a0b;
}

/* hairline arch just outside the window, as in the philosophy section */
.process-arch-line {
    position: absolute;
    left: -16px;
    right: -16px;
    top: -16px;
    bottom: 0;
    border: 1px solid rgba(243, 236, 225, 0.2);
    border-bottom: 0;
    border-radius: calc(var(--aw) / 2 + 16px) calc(var(--aw) / 2 + 16px) 0 0;
    pointer-events: none;
}

.process-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s ease, transform 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.process-img.is-active {
    opacity: 1;
    transform: scale(1);
}

.process-steps {
    list-style: none;
    border-bottom: 1px solid var(--color-line);
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: baseline;
    padding: 1.6rem 0;
    border-top: 1px solid var(--color-line);
}

/* fills left to right through the current step: shows when the next one arrives */
.step-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--wine-rose);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1;
}

.step-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(243, 236, 225, 0.35);
    transition: color 0.6s ease;
}

.step-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1.05;
    color: rgba(243, 236, 225, 0.3);
    transition: color 0.6s ease;
}

/* the description opens under the current step only */
.step-desc {
    max-width: 38ch;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(243, 236, 225, 0.7);
    transition: max-height 0.7s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease, margin-top 0.7s ease;
}

.process-step.is-active .step-num {
    color: var(--wine-rose);
}

.process-step.is-active .step-name {
    color: var(--cream);
}

.process-step.is-active .step-desc {
    max-height: 6em;
    opacity: 1;
    margin-top: 0.7rem;
}

/* 5. Our Story — cream panel with the pouring bottle, burgundy band below */
.story {
    position: relative;
    margin-top: 35vh;            /* a breath of black between the process and the bottle */
}

.story-panel {
    position: relative;
    background: var(--cream);
    color: var(--ink-wine);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* A fixed-ratio stage: every layer is sized in container units so the
   words, the bottle and the see-through mask stay locked together. */
.passion-stage {
    --drop: 1;
    --bh: 53cqw;                 /* bottle height */
    --by-end: -19cqw;            /* bottle top once it has settled */
    --by: calc(var(--by-end) - (1 - var(--drop)) * 32cqw);
    --pw-size: 15.5cqw;          /* PASSION */
    --pw-top: 6.8cqw;
    --q-size: 15cqw;             /* Quality */
    --q-top: 16cqw;
    --q-left: 51%;

    position: relative;
    width: min(100%, 200vh);
    aspect-ratio: 2 / 1;
    container-type: size;
    isolation: isolate;
    overflow: hidden;
}

.passion-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.passion-word {
    position: absolute;
    top: var(--pw-top);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.04em;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--pw-size);
    line-height: 1;
    color: var(--wine);
    white-space: nowrap;
    z-index: 1;
}

/* Letters ride a gentle arc */
.pl {
    display: inline-block;
    transform: translateY(calc(var(--y) * 1cqw)) rotate(calc(var(--r) * 1deg));
}

.pl-in {
    display: inline-block;
}

.quality-word {
    position: absolute;
    top: var(--q-top);
    left: var(--q-left);
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--q-size);
    line-height: 1.2;
    color: var(--wine);
    white-space: nowrap;
    z-index: 2;
}

.quality-in {
    display: inline-block;
    padding: 0 0.15em;
}

.passion-bottle {
    position: absolute;
    top: var(--by);
    left: 50%;
    height: var(--bh);
    width: auto;
    transform: translateX(-50%);
    z-index: 3;
}

/* Wine pouring from the bottle into the band below */
.passion-stream {
    position: absolute;
    left: 50%;
    top: calc(var(--by) + var(--bh) - 0.8cqw);
    width: calc(var(--bh) * 0.48);
    height: calc(100cqh - var(--by) - var(--bh) + 0.8cqw);
    transform: translateX(-50%);
    fill: var(--wine);
    z-index: 2;
}

.story-intro {
    position: absolute;
    right: 6%;
    top: 64%;
    width: 270px;
    z-index: 6;
}

.story-intro p {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #6a3a40;
    margin-bottom: 1.5rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wine);
    text-decoration: none;
}

.text-link svg {
    width: 40px;
    height: 12px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.text-link:hover svg {
    transform: translateX(6px);
}

.story-wine {
    position: relative;
    margin-top: -2px;             /* tuck under the stream's base so no hairline seam shows */
    background: var(--cream);     /* the poured wine floods over this */
    color: var(--cream);
    padding: 2.25rem 6vw 4.5rem;
    text-align: center;
    overflow: hidden;
}

.story-wine-fill {
    position: absolute;
    inset: 0;
    background: var(--wine);
    clip-path: circle(0% at 50% 0%);
    z-index: 0;
}

.story-wine > *:not(.story-wine-fill) {
    position: relative;
    z-index: 1;
}

/* Small star where the pour lands */
.sparkle {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 1.5rem;
    fill: var(--cream);
}

.story-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.4rem, 4.4vw, 4.8rem);
    line-height: 1.02;
    margin-bottom: 3rem;
}

.story-heading em {
    font-style: italic;
}

.story-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 4.5vw;
    max-width: 1240px;
    margin: 0 auto;
}

.story-text {
    justify-self: end;
    max-width: 340px;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(243, 236, 225, 0.8);
}

.story-text p + p {
    margin-top: 1.25rem;
}

.story-aside {
    justify-self: start;
    max-width: 360px;
    text-align: left;
}

/* "Winetone" card: bottles are grey outside the card, in colour inside it */
.tone {
    --shift: 0;
    --card-top: 34%;
    --card-x: 7%;
    --pad: 14px;
    --label: 24%;
    position: relative;
    width: min(330px, 34vh, 78vw);
    aspect-ratio: 19 / 30;
}

.tone-layer {
    position: absolute;
    inset: 0;
}

.tone-bottle {
    position: absolute;
    bottom: calc(var(--label) + 2%);
    left: 50%;
    height: 70%;
    width: auto;
}

.tone-main {
    transform: translateX(-50%);
    z-index: 2;
}

.tone-left,
.tone-right {
    height: 58%;
}

.tone-left {
    transform: translateX(-118%);
}

.tone-right {
    transform: translateX(18%);
}

.tone-gray {
    filter: grayscale(1) brightness(1.2) contrast(0.8);
    opacity: 0.55;
}

.tone-card {
    position: absolute;
    top: var(--card-top);
    left: var(--card-x);
    right: var(--card-x);
    bottom: 0;
    background: var(--cream);
    box-shadow: 0 30px 60px rgba(20, 2, 5, 0.4);
    transform: translateY(calc(var(--shift) * 1px));
}

.tone-window {
    position: absolute;
    top: var(--pad);
    left: var(--pad);
    right: var(--pad);
    bottom: 36.4%;              /* the label strip: 24% of the tone box = 24/66 of the card */
    background: radial-gradient(ellipse 80% 70% at 50% 90%, #8e1d2e 0%, #4d0811 75%);
}

.tone-color {
    clip-path: inset(calc(var(--card-top) + var(--pad) + var(--shift) * 1px) calc(var(--card-x) + var(--pad)) calc(var(--label) - var(--shift) * 1px) calc(var(--card-x) + var(--pad)));
}

.tone-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 18px 16px;
    text-align: left;
}

.tone-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3a0a10;
}

.tone-sub {
    display: block;
    font-size: 0.82rem;
    font-weight: 300;
    color: #7a5a5e;
    margin: 0.15rem 0 0.8rem;
}

.text-link--dark {
    font-size: 0.65rem;
}

.text-link--dark svg {
    width: 30px;
}

.story-quote {
    margin: 0;
}

.story-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.35;
}

.story-quote cite {
    display: block;
    margin-top: 1.25rem;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.6);
}

/* Story call to action */
.story-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.15rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-cream {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--wine);
}

.btn-cream:hover {
    background: #fbf8f2;
    border-color: #fbf8f2;
}

.btn-ghost {
    color: var(--cream);
    border-color: rgba(243, 236, 225, 0.4);
}

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

/* 7. Footer */
.site-footer {
    position: relative;
    background: #000;
    border-top: 1px solid var(--color-line);
}

/* Thin accent rule centred on the dividing line */
.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 120px;
    height: 1px;
    transform: translateX(-50%);
    background: var(--color-accent);
}

.footer-inner {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 0.8fr 1.3fr;
    gap: 3rem;
    padding: 6rem 0 5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--cream);
    text-decoration: none;
    margin-bottom: 1.75rem;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    white-space: nowrap;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.4;
    color: rgba(243, 236, 225, 0.9);
    margin-bottom: 0.75rem;
}

.footer-sub {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(243, 236, 225, 0.5);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a,
.footer-col span {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(243, 236, 225, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact a[href^="mailto"] {
    word-break: break-word;
}

.footer-col .footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
    padding-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream);
    white-space: nowrap;
    border-bottom: 1px solid var(--color-accent);
}

.footer-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.footer-cta:hover svg {
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--color-line);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(243, 236, 225, 0.4);
}

.footer-dot {
    margin: 0 0.5rem;
}

.creative-link {
    color: rgba(243, 236, 225, 0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.creative-link:hover {
    color: var(--cream);
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    padding: 0;
    font: inherit;
    appearance: none;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(243, 236, 225, 0.2);
    color: var(--color-text);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text {
        font-size: 3.5rem;
    }

    .philosophy {
        --aw: min(58vw, 38vh);
    }

    .ph-caps,
    .ph-ital {
        font-size: 15vw;
    }

    .ph-1 .ph-caps,
    .ph-2 .ph-caps,
    .ph-3 .ph-caps { margin-right: 8vw; }

    .ph-1 .ph-ital,
    .ph-2 .ph-ital { margin-left: 10vw; }

    .ph-3 .ph-ital {
        font-size: 11vw;
        margin-left: 6vw;
    }

    .ph-small {
        font-size: 8vw;
        margin-right: 14vw;
    }

    /* Process: arch on top, the list beneath */
    .process-head {
        margin-bottom: 4vh;
    }

    .process-body {
        --aw: min(52vw, 26vh);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3.5vh;
    }

    .process-steps {
        width: 100%;
    }

    .process-step {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        padding: 0.9rem 0;
    }

    .step-name {
        font-size: 1.6rem;
    }

    .step-desc {
        font-size: 0.9rem;
    }

    .brand-category-marker {
        display: none;
    }

    .horizontal-scroll-wrapper {
        align-items: flex-start;
        padding-top: 15vh;
    }

    .brands-track {
        padding: 0 50vw;
        gap: 20vw;
    }

    .brand-display-item {
        width: 65vw;
        height: 55vh;
    }

    .brand-logo-container {
        padding: 1.5rem 1.5rem 0.5rem;
    }

    /* Story: taller stage so the composition fills a phone */
    .passion-stage {
        --bh: 90cqw;
        --by-end: -22cqw;
        --pw-size: 18cqw;
        --pw-top: 30cqw;
        --q-size: 19cqw;
        --q-top: 40cqw;
        width: 100%;
        aspect-ratio: 10 / 9;
    }

    .story-intro {
        display: none;
    }

    .story-heading {
        font-size: 11vw;
        margin-bottom: 2.5rem;
    }

    .story-body {
        grid-template-columns: 1fr;
        gap: 3rem;
        justify-items: center;
        margin-bottom: 4rem;
    }

    .story-text,
    .story-aside {
        justify-self: center;
        text-align: center;
        max-width: none;
    }

    .story-cta {
        justify-content: center;
    }

    .tone {
        width: min(300px, 72vw);
    }

    .story-cta .btn {
        flex: 1 1 100%;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        padding: 4rem 0 3rem;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        left: auto;
        right: 1.25rem;
        bottom: 1.25rem;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-arrow {
        animation: none;
    }
}
/* ===================================
   Portfolio page
   =================================== */

.nav-link.is-current::after {
    transform: scaleX(1);
}

/* Masthead: cream, with the range standing in front of the title */
.pf-hero {
    position: relative;
    min-height: 100vh;
    background: var(--cream);
    color: var(--wine);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 17vh;
}

.pf-hero-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pf-lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2rem, 4.4vw, 5rem);
    line-height: 1;
    margin-right: 38vw;
    margin-bottom: -0.2em;
}

.pf-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: min(17vw, 19rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-variation-settings: "opsz" 32;
}

.pf-lineup {
    position: absolute;
    left: 50%;
    bottom: 5vh;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.pf-lineup-bottle {
    height: min(46vh, 36vw);
    width: auto;
    margin: 0 -0.35vw;
    filter: drop-shadow(0 22px 22px rgba(60, 10, 18, 0.25));
}

.pf-lineup-bottle.is-squat {
    height: min(34vh, 27vw);
}

.pf-lineup-bottle.is-can {
    height: min(25vh, 20vw);
}

/* the middle bottle stands a touch taller */
.pf-lineup-bottle:nth-child(5) {
    height: min(52vh, 40vw);
}

/* Intro + filters */
.pf-bar {
    background: #000;
    padding: 9vh 6vw 0;
}

.pf-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4vw;
    align-items: end;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-line);
}

.pf-intro {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    line-height: 1.3;
    color: var(--cream);
    max-width: 30ch;
}

.pf-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.pf-chip {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.75);
    background: transparent;
    border: 1px solid rgba(243, 236, 225, 0.22);
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pf-chip span {
    margin-left: 0.4rem;
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 0;
    opacity: 0.7;
}

.pf-chip:hover {
    border-color: rgba(243, 236, 225, 0.5);
    color: var(--cream);
}

.pf-chip.is-active {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--wine);
}

.pf-index {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
}

.pf-index a {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(243, 236, 225, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pf-index a:hover {
    color: var(--cream);
}

/* Chapters */
.pf-chapter {
    background: #000;
    padding: 0 6vw;
}

.pf-chapter[hidden] {
    display: none;
}

.pf-chapter-head {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12vh 0 3rem;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.pf-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--wine-rose);
}

.pf-chapter-head h2 {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 6.5vw, 6.5rem);
    line-height: 1;
    font-variation-settings: "opsz" 32;
}

.pf-chapter-head .caps {
    text-transform: uppercase;
}

.pf-chapter-head em {
    font-style: italic;
    font-size: 0.45em;
    color: rgba(243, 236, 225, 0.6);
    margin-left: 0.4em;
}

.pf-count {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
    white-space: nowrap;
}

/* A house: logo and name on the left, its bottles on the right */
.pf-brand {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 5vw;
    padding: 4.5rem 0;
    border-top: 1px solid var(--color-line);
}

.pf-brand-aside {
    position: sticky;
    top: 16vh;
    align-self: start;
}

.pf-brand-logo {
    display: block;
    max-width: 190px;
    max-height: 110px;
    width: auto;
    height: auto;
    margin-bottom: 1.75rem;
}

.pf-brand-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.pf-brand-meta {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
}

.pf-brand-meta span {
    margin: 0 0.4em;
}

.pf-bottles {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 2.75rem 1.5rem;
}

.pf-bottle-stage {
    position: relative;
    height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 26px;
    border: 1px solid rgba(243, 236, 225, 0.06);
    border-radius: 6px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 75% 40% at 50% 92%, rgba(var(--tint), 0.32) 0%, rgba(var(--tint), 0) 70%),
        linear-gradient(to bottom, #131313 0%, #070707 100%);
    transition: border-color 0.5s ease;
}

.pf-bottle-img {
    height: 82%;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.7));
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.pf-bottle-img.is-squat {
    height: 64%;
}

.pf-bottle-img.is-can {
    height: 52%;
}

.pf-bottle:hover .pf-bottle-img {
    transform: translateY(-10px);
}

.pf-bottle:hover .pf-bottle-stage {
    border-color: rgba(var(--tint), 0.45);
}

.pf-bottle-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 1rem 0 0.35rem;
}

.pf-bottle-type {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
}

/* Closing call to action */
.pf-cta {
    background: var(--wine);
    color: var(--cream);
    text-align: center;
    padding: 14vh 6vw;
    margin-top: 10vh;
}

.pf-cta-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.05;
    font-variation-settings: "opsz" 32;
}

.pf-cta-title em {
    font-style: italic;
}

.pf-cta-title .caps {
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .pf-bar-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pf-filters {
        justify-content: flex-start;
    }

    .pf-brand {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3.5rem 0;
    }

    .pf-brand-aside {
        position: static;
    }

    .pf-chapter-head {
        flex-wrap: wrap;
        padding-top: 9vh;
    }

    .pf-count {
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* masthead sizes to its content on phones: title, then the line-up beneath */
    .pf-hero {
        min-height: 0;
        padding: 18vh 0 7vh;
    }

    .pf-lead {
        margin-right: 40vw;
    }

    .pf-lineup {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 1.5rem;
    }

    .pf-lineup-bottle {
        height: 50vw;
        margin: 0 -1vw;
    }

    .pf-lineup-bottle:nth-child(5) {
        height: 57vw;
    }

    .pf-lineup-bottle.is-squat {
        height: 37vw;
    }

    .pf-lineup-bottle.is-can {
        height: 27vw;
    }

    /* keep the line-up inside a phone's width */
    .pf-lineup-bottle:nth-child(1),
    .pf-lineup-bottle:nth-child(9) {
        display: none;
    }

    .pf-bottles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1rem;
    }

    .pf-bottle-stage {
        height: 260px;
    }

    .pf-cta .btn {
        flex: 1 1 100%;
    }
}

/* ===================================
   Distribution page
   =================================== */

.ds-title {
    font-size: min(11.5vw, 13rem);
}

.ds-lead {
    margin-right: 44vw;
}

.ds-intro {
    max-width: 520px;
    margin: 2.25rem auto 2rem;
    padding: 0 1.5rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: #6a3a40;
}

.ds-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    padding: 0 1.5rem;
}

/* buttons for light backgrounds */
.btn-wine {
    background: var(--wine);
    border-color: var(--wine);
    color: var(--cream);
}

.btn-wine:hover {
    background: #7a1424;
    border-color: #7a1424;
}

.btn-wine-ghost {
    color: var(--wine);
    border-color: rgba(94, 11, 22, 0.35);
}

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

/* The houses drifting past along the bottom of the masthead */
.ds-marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7vh;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.ds-marquee-track {
    display: flex;
    align-items: center;
    gap: 5.5rem;
    width: max-content;
    padding-right: 5.5rem;
    animation: ds-marquee 48s linear infinite;
}

.ds-marquee:hover .ds-marquee-track {
    animation-play-state: paused;
}

@keyframes ds-marquee {
    to {
        transform: translateX(-50%);
    }
}

.ds-logo {
    height: 58px;
    width: auto;
    max-width: 130px;           /* keeps wide wordmarks from outweighing the tall crests */
    object-fit: contain;
    opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
    .ds-marquee-track {
        animation: none;
    }
}

/* Sections on black */
.ds-section {
    background: #000;
    padding: 14vh 6vw 0;
}

.ds-head {
    text-align: center;
    margin-bottom: 4rem;
}

.ds-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.5vw, 5.5rem);
    line-height: 1;
    font-variation-settings: "opsz" 32;
}

.ds-heading .caps,
.ds-inquire-title .caps {
    text-transform: uppercase;
}

.ds-heading em,
.ds-inquire-title em {
    font-style: italic;
}

.ds-partners {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
}

.ds-partner {
    padding: 3rem 2.5rem 0;
    border-left: 1px solid var(--color-line);
}

.ds-partner:first-child {
    border-left: 0;
    padding-left: 0;
}

.ds-partner-num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--wine-rose);
    margin-bottom: 1rem;
}

.ds-partner h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.ds-partner p {
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(243, 236, 225, 0.7);
    max-width: 34ch;
}

.ds-stats {
    max-width: 1240px;
    width: calc(100% - 12vw);
    margin: 14vh auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.ds-stat {
    padding: 3rem 1rem;
    text-align: center;
    border-left: 1px solid var(--color-line);
}

.ds-stat:first-child {
    border-left: 0;
}

.ds-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    margin-bottom: 0.9rem;
    font-variation-settings: "opsz" 32;
}

.ds-stat-num em {
    font-style: italic;
    color: var(--wine-rose);
}

.ds-stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
}

/* Inquiry band */
.ds-inquire {
    background: var(--wine);
    color: var(--cream);
    padding: 12vh 6vw;
}

.ds-inquire-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 6vw;
    align-items: start;
}

.ds-inquire-title {
    font-family: var(--font-display);
    font-weight: 400;
    /* sized so CONVERSATION always fits its column, never running under the form */
    font-size: clamp(2.2rem, 4.1vw, 4.4rem);
    line-height: 1.02;
    margin-bottom: 1.75rem;
    font-variation-settings: "opsz" 32;
}

.ds-inquire-copy p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(243, 236, 225, 0.8);
    max-width: 34ch;
    margin-bottom: 2rem;
}

.ds-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ds-contact a,
.ds-contact span {
    font-size: 0.95rem;
    color: var(--cream);
}

.ds-contact a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(243, 236, 225, 0.4);
}

.ds-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
}

.ds-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ds-field--full {
    grid-column: 1 / -1;
}

.ds-field label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.65);
}

.ds-field input,
.ds-field select,
.ds-field textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--cream);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(243, 236, 225, 0.35);
    border-radius: 0;
    padding: 0.65rem 0;
    transition: border-color 0.3s ease;
}

.ds-field textarea {
    resize: vertical;
    min-height: 6rem;
}

.ds-field select {
    appearance: none;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3ece1' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px;
}

.ds-field select option {
    color: #111;
}

.ds-field input:focus,
.ds-field select:focus,
.ds-field textarea:focus {
    outline: none;
    border-bottom-color: var(--cream);
}

.ds-field.is-invalid label {
    color: #f0a8b2;
}

.ds-field.is-invalid input {
    border-bottom-color: #f0a8b2;
}

.ds-form-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.75rem;
}

/* honeypot: off-screen for people, still visible to form-filling bots */
.ds-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ds-form .btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.ds-form-note a {
    color: var(--cream);
}

.ds-form-note {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(243, 236, 225, 0.65);
}

@media (max-width: 900px) {
    .ds-partners {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ds-partner,
    .ds-partner:first-child {
        border-left: 0;
        padding: 2.5rem 0 0;
    }

    .ds-partner + .ds-partner {
        margin-top: 2.5rem;
        border-top: 1px solid var(--color-line);
    }

    .ds-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-stat:nth-child(3) {
        border-left: 0;
    }

    .ds-stat:nth-child(n + 3) {
        border-top: 1px solid var(--color-line);
    }

    .ds-inquire-inner,
    .ds-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ds-lead {
        margin-right: 38vw;
    }

    .ds-logo {
        height: 42px;
    }

    /* the masthead sizes to its content on phones, so the logos follow the buttons */
    .ds-marquee {
        position: relative;
        bottom: auto;
        width: 100%;
        margin-top: 3.5rem;
    }

    .ds-marquee-track {
        gap: 3.5rem;
        padding-right: 3.5rem;
    }

    .ds-hero-cta .btn,
    .ds-form-foot .btn {
        flex: 1 1 100%;
    }
}

/* ===================================
   Brand pages
   =================================== */

.bp-hero {
    padding-top: 15vh;
}

.bp-hero-logo {
    height: 64px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 2.25rem;
}

.bp-lead {
    margin-right: 30vw;
}

.bp-title {
    font-size: var(--bp-size, min(15vw, 17rem));
    white-space: nowrap;
}

/* the house's range, standing in front of its name */
.bp-lineup .pf-lineup-bottle {
    height: min(44vh, 34vw);
}

.bp-lineup .pf-lineup-bottle.is-can {
    height: min(34vh, 24vw);
}

.bp-lineup .pf-lineup-bottle.is-squat {
    height: min(34vh, 26vw);
}

/* Intro: the story on the left, the facts on the right */
.bp-intro {
    background: #000;
    padding: 12vh 6vw 4vh;
}

.bp-intro-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 7vw;
    align-items: start;
}

.bp-story p:first-child {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    line-height: 1.32;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.bp-story p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(243, 236, 225, 0.72);
    max-width: 60ch;
}

.bp-story p + p {
    margin-top: 1rem;
}

.bp-facts {
    border-top: 1px solid var(--color-line);
}

.bp-fact {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--color-line);
}

.bp-fact dt {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
    padding-top: 0.2rem;
}

.bp-fact dd {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--cream);
}

.bp-fact dd a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(243, 236, 225, 0.35);
}

/* Products: one editorial row each, bottle in an arch */
.bp-range {
    background: #000;
    padding: 6vh 6vw 4vh;
}

.bp-range-head {
    max-width: 1240px;
    margin: 0 auto;
    padding: 6vh 0 2rem;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.bp-range-head h2 {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.5vw, 5.5rem);
    line-height: 1;
    font-variation-settings: "opsz" 32;
}

.bp-range-head .caps {
    text-transform: uppercase;
}

.bp-range-head em {
    font-style: italic;
}

.bp-product {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7vw;
    align-items: center;
    padding: 8vh 0;
    border-top: 1px solid var(--color-line);
}

.bp-product:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.bp-product:nth-of-type(even) .bp-stage-wrap {
    order: 2;
}

.bp-stage-wrap {
    --sw: min(340px, 30vw);
    position: relative;
    width: var(--sw);
    height: calc(var(--sw) * 1.45);
    margin-top: 16px;
}

.bp-stage {
    position: absolute;
    inset: 0;
    border-radius: calc(var(--sw) / 2) calc(var(--sw) / 2) 0 0;
    overflow: hidden;
    background: #0d0b0a;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.bp-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 8, 7, 0) 72%, rgba(10, 8, 7, 0.35) 100%);
    pointer-events: none;
}

.bp-stage-line {
    position: absolute;
    left: -14px;
    right: -14px;
    top: -14px;
    bottom: 0;
    border: 1px solid rgba(243, 236, 225, 0.18);
    border-bottom: 0;
    border-radius: calc(var(--sw) / 2 + 14px) calc(var(--sw) / 2 + 14px) 0 0;
    pointer-events: none;
}

.bp-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 62%;
}

.bp-num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--wine-rose);
    margin-bottom: 0.9rem;
}

.bp-product-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 0.6rem;
    font-variation-settings: "opsz" 32;
}

.bp-product-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
    margin-bottom: 1.75rem;
}

.bp-desc {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    line-height: 1.55;
    color: var(--cream);
    max-width: 46ch;
    margin-bottom: 1.4rem;
    font-variation-settings: "opsz" 18;
}

.bp-notes {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(243, 236, 225, 0.75);
    max-width: 56ch;
    margin-bottom: 2rem;
}

.bp-specs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
}

.bp-spec {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--color-line);
}

.bp-spec dt {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.5);
}

.bp-spec dd {
    font-size: 0.92rem;
    font-weight: 300;
    text-align: right;
    color: var(--cream);
}

/* More houses */
.bp-more {
    background: #000;
    padding: 12vh 6vw 4vh;
}

.bp-more-inner {
    max-width: 1240px;
    margin: 0 auto;
    border-top: 1px solid var(--color-line);
    padding-top: 3rem;
}

.bp-more-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 3rem;
}

.bp-more-head h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.bp-more-head em {
    font-style: italic;
}

.bp-more-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--color-line);
    border: 1px solid var(--color-line);
}

.bp-more-grid a {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: #000;
    text-decoration: none;
    transition: background-color 0.4s ease;
}

.bp-more-grid img {
    max-height: 56px;
    max-width: 60%;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bp-more-grid span {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 236, 225, 0.45);
}

.bp-more-grid a:hover {
    background: #0d0d0d;
}

.bp-more-grid a:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Portfolio page: link from each house to its page */
.pf-brand-link {
    margin-top: 1.5rem;
    color: var(--cream);
}

@media (max-width: 900px) {
    .bp-intro-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .bp-product {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 3rem;
        padding: 6vh 0;
    }

    .bp-product:nth-of-type(even) {
        grid-template-columns: 1fr;
    }

    .bp-product:nth-of-type(even) .bp-stage-wrap {
        order: 0;
    }

    .bp-stage-wrap {
        --sw: min(260px, 62vw);
    }

    .bp-product-text {
        width: 100%;
    }

    .bp-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bp-hero {
        padding-top: 16vh;
    }

    .bp-hero-logo {
        height: 48px;
        margin-bottom: 1.5rem;
    }

    .bp-lead {
        margin-right: 30vw;
    }

    .bp-lineup .pf-lineup-bottle {
        height: 48vw;
    }

    .bp-lineup .pf-lineup-bottle.is-can {
        height: 28vw;
    }

    .bp-lineup .pf-lineup-bottle.is-squat {
        height: 38vw;
    }

    .bp-specs {
        grid-template-columns: 1fr;
    }

    .bp-range-head {
        flex-wrap: wrap;
    }
}

/* ---------- Page transition: a short fade through black ---------- */
html::after {
    content: "";
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.45s ease;
}

html.pt-in::after {
    opacity: 1;
    transition: none;
}

html.pt-out::after {
    opacity: 1;
    transition: opacity 0.32s ease;
}

/* ---------- Logo: vector glass over letters-only artwork ---------- */
.fj-mark {
    position: relative;
    display: block;
    line-height: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
}

.nav-center a:hover .nav-logo {
    transform: none;
}

.nav-center a:hover .fj-mark {
    transform: scale(1.08);
}

.fj-glass {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    color: var(--cream);
}

.main-nav.on-light .fj-glass {
    color: #111;
}

.fj-outline {
    opacity: 0;
}
