/*
Theme Name: Ball Vineyards
Theme URI: https://ballvineyards.com
Author: Ball Vineyards
Author URI: https://ballvineyards.com
Description: Custom editorial theme for Ball Vineyards — a small-batch Finger Lakes winery in Interlaken, New York. Cinematic full-bleed photography, alternating dark/light section rhythm, and restrained editorial typography.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ball-vineyards
*/

:root{
  --bv-dark:#1A1F24;
  --bv-light:#EEF2EE;
  --bv-vine:#4A7C6F;
  --bv-slate:#7A9EAE;
  --bv-forest:#2D3B35;
  --bv-mist:#C8D8C0;
  --bv-vine-deep:#457367;         /* vine darkened 5% — 4.76:1 on mist for small labels */
  --bv-ink-soft:#3A4249;          /* body copy on white/mist — 9:1+ */
  --bv-light-soft:#D6DCD7;        /* body copy on dark — 11.9:1 */
  --bv-footer-fine:#A3ACA7;       /* legal/fine print on dark — 7.1:1 */
  --bv-header-h:88px;             /* fixed header height (logo + padding) */
  --bv-section-y:clamp(4rem,8vw,7rem);
  --bv-section-y-tight:clamp(2.5rem,5vw,4.5rem);
  --bv-body:var(--bv-ink-soft);
  --bv-display:'Instrument Serif',Georgia,'Times New Roman',serif; /* headings only */
  --bv-sans:'Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif; /* body, nav, buttons, forms */
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--bv-header-h)}
html:has(body.admin-bar){scroll-padding-top:calc(var(--bv-header-h) + 32px)}
body{margin:0;font-family:var(--bv-sans);color:var(--bv-dark);background:#fff;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;line-height:1.55}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font-family:inherit}
a{color:inherit}

h1,h2,h3,h4,.serif{font-family:var(--bv-display);font-weight:300;letter-spacing:0;line-height:1.1;margin:0}
p{margin:0 0 1em}
.tracked{letter-spacing:.22em;text-transform:uppercase;font-size:.72rem;font-weight:500}
/* Body copy: explicit colour per section, not opacity (WCAG AA). Eyebrows stay lighter. */
.section p,.split p,.prose p,.wine-row p{color:var(--bv-body)}
.eyebrow{font-family:var(--bv-sans);letter-spacing:.3em;text-transform:uppercase;font-size:.7rem;opacity:.7;margin-bottom:1.5rem;display:inline-block;font-weight:500}

/* === Logo wordmark: condensed sans, BALL over VINEYARDS === */
.logo-wordmark{display:inline-block;text-decoration:none;color:inherit;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:.92;text-transform:uppercase;font-stretch:condensed}
.logo-wordmark .ball{display:block;font-size:1.75rem;font-weight:800;letter-spacing:.06em}
.logo-wordmark .vineyards{display:block;font-size:.6rem;letter-spacing:.32em;font-weight:500;margin-top:3px;opacity:.9}

/* === Header / Nav === */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;transition:background .35s ease,color .35s ease,border-color .35s ease,box-shadow .35s ease;background:transparent;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.site-header-inner{display:flex;align-items:center;justify-content:space-between;padding:1.35rem 6vw;gap:2rem}
.site-header.is-scrolled{background:#fff;color:var(--bv-dark);border-color:rgba(0,0,0,.06);box-shadow:0 1px 0 rgba(0,0,0,.04)}
.primary-nav .nav-list{display:flex;gap:2.5rem;list-style:none;margin:0;padding:0}
.primary-nav a{color:inherit;text-decoration:none;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;font-weight:500;transition:opacity .2s}
.primary-nav a:hover{opacity:.6}
.header-cta{color:inherit;text-decoration:none;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;font-weight:500}
.header-cta:hover{opacity:.7}
/* Shop lives in the primary nav on desktop; the standalone link is for the mobile menu only */
@media(min-width:901px){.header-cta{display:none}}
.nav-toggle{display:none;background:transparent;border:0;color:inherit;cursor:pointer;padding:.5rem;font-size:1rem}
@media(max-width:900px){
  .primary-nav{display:none;position:fixed;top:72px;left:0;right:0;background:#fff;color:var(--bv-dark);padding:2rem 6vw;border-top:1px solid rgba(0,0,0,.06)}
  .primary-nav.is-open{display:block}
  .primary-nav .nav-list{flex-direction:column;gap:1.25rem}
  .nav-toggle{display:block}
}

/* WP admin bar sits over the fixed header when logged in */
body.admin-bar .site-header{top:32px}
@media(max-width:900px){body.admin-bar .primary-nav{top:104px}}
@media(max-width:782px){
  body.admin-bar .site-header{top:46px}
  body.admin-bar .primary-nav{top:118px}
  html:has(body.admin-bar){scroll-padding-top:calc(var(--bv-header-h) + 46px)}
}

/* === Hero === */
.hero{position:relative;width:100%;height:100vh;min-height:640px;overflow:hidden;background:#0d1114;color:#fff}
.hero.sub{height:70vh;min-height:480px}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.6s ease}
.hero-slide.is-active{opacity:1}
.hero-slide img{width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,.12) 40%,rgba(0,0,0,.6) 100%);pointer-events:none;z-index:1}
.hero-copy{position:absolute;inset:auto 0 0 0;padding:0 6vw clamp(6rem,12vh,10rem);z-index:2}
.hero-copy .tracked{display:block;margin-bottom:1.5rem;opacity:.85}
.hero-copy h1{font-size:clamp(2.5rem,6vw,5.75rem);max-width:22ch}
.hero-dots{position:absolute;right:6vw;bottom:4vh;display:flex;gap:10px;z-index:3}
.hero-dot{width:32px;height:2px;background:rgba(255,255,255,.35);cursor:pointer;border:0;padding:0;transition:background .3s}
.hero-dot.is-active{background:#fff}

/* === Sections === */
.section{padding:var(--bv-section-y) 6vw}
.section.tight{padding-top:var(--bv-section-y-tight);padding-bottom:var(--bv-section-y-tight)}
/* Dark/forest panels have no photo to match — size to content + padding */
.section.dark{background:var(--bv-dark);color:var(--bv-light);--bv-body:var(--bv-light-soft);padding-top:var(--bv-section-y-tight);padding-bottom:var(--bv-section-y-tight)}
.section.forest{background:var(--bv-forest);color:var(--bv-mist);--bv-body:var(--bv-mist);padding-top:var(--bv-section-y-tight);padding-bottom:var(--bv-section-y-tight)}
.section.light{background:#fff;color:var(--bv-dark)}
.section.mist{background:var(--bv-light);color:var(--bv-dark)}
.section h2{font-size:clamp(2rem,4.5vw,3.75rem);max-width:22ch}
.section-lead{max-width:68ch;margin:0 auto}
.section-center{text-align:center}
.section-center h2{margin-left:auto;margin-right:auto}
/* Centred eyebrow + heading, left-aligned body at a readable measure */
.section-center .lead-left p{text-align:left;max-width:62ch;margin-left:auto;margin-right:auto}

/* Split — the photo sets the row height; copy centres against it */
.split{display:grid;grid-template-columns:1fr;gap:0;align-items:center}
@media(min-width:900px){.split{grid-template-columns:1fr 1fr}}
.split .copy{padding:clamp(3rem,7vw,6rem);padding-top:max(var(--bv-header-h),clamp(3rem,7vw,6rem));display:flex;flex-direction:column;justify-content:center}
.split h2{font-size:clamp(2rem,3.5vw,3rem);max-width:18ch}
.split .media{align-self:stretch}
.split .media img{width:100%;height:100%;object-fit:cover;min-height:clamp(320px,55vh,640px);max-height:80vh}
.split.dark{background:var(--bv-dark);color:var(--bv-light);--bv-body:var(--bv-light-soft)}
.split.forest{background:var(--bv-forest);color:var(--bv-mist);--bv-body:var(--bv-mist)}
.split.mist{background:var(--bv-light);color:var(--bv-dark)}

/* Full-bleed */
.fullbleed{width:100%;display:block;line-height:0;margin:0;position:relative}
.fullbleed img{width:100%;height:75vh;max-height:75vh;object-fit:cover;display:block}
.fullbleed.short img{height:55vh}
.fullbleed .fullbleed-caption{position:absolute;inset:auto 0 0 0;padding:6rem 6vw clamp(2.5rem,6vh,4rem);line-height:1.2;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,.65) 6rem,rgba(0,0,0,.75) 100%)} /* fully dark by the time text starts (6rem padding) — keeps white text >= 4.5:1 over snow */
.fullbleed .fullbleed-caption .tracked{display:block;margin-bottom:1rem;opacity:.85}
.fullbleed .fullbleed-caption .serif{margin:0;font-size:clamp(1.75rem,3.5vw,3rem);max-width:24ch}

/* === Buttons === */
.btn{display:inline-block;padding:1rem 2.25rem;border:1px solid currentColor;letter-spacing:.24em;text-transform:uppercase;font-size:.72rem;font-weight:500;text-decoration:none;transition:background .3s,color .3s;cursor:pointer;background:transparent;color:inherit;font-family:inherit}
.btn:hover{background:currentColor}
.section.light .btn:hover,.section.mist .btn:hover{color:#fff}
.section.dark .btn:hover,.section.forest .btn:hover{color:var(--bv-dark)}
.btn.solid{background:var(--bv-vine);border-color:var(--bv-vine);color:#fff}
.btn.solid:hover{background:var(--bv-forest);border-color:var(--bv-forest);color:#fff}
.btn-row{margin-top:2.5rem;display:flex;flex-wrap:wrap;gap:1rem}
.btn-row.center{justify-content:center}

/* === Age gate === */
.age-gate{position:fixed;inset:0;background:rgba(10,14,17,.97);z-index:9999;display:flex;align-items:center;justify-content:center;padding:2rem;color:#fff;backdrop-filter:blur(8px)}
.age-gate[hidden]{display:none}
.age-gate .panel{max-width:460px;text-align:center}
.age-gate .logo-wordmark{margin:0 auto 2.5rem}
.age-gate h2{font-family:var(--bv-display);font-weight:300;font-size:2.25rem;margin:0 0 1rem}
.age-gate p{opacity:.7;margin:0 0 2.5rem;font-size:.9rem;line-height:1.7}
.age-gate .actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* === Footer === */
.site-footer{background:var(--bv-dark);color:var(--bv-light);padding:6rem 6vw 2rem;font-size:.9rem}
.site-footer a{color:var(--bv-mist);text-decoration:none;transition:color .2s}
.site-footer a:hover{color:#fff}
.site-footer .grid{display:grid;gap:3rem;grid-template-columns:1fr;margin-bottom:4rem}
@media(min-width:900px){.site-footer .grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1200px){.site-footer .grid{grid-template-columns:repeat(4,1fr)}}
.site-footer h4{font-family:var(--bv-sans);letter-spacing:.3em;text-transform:uppercase;font-size:.7rem;font-weight:500;margin:0 0 1.25rem;opacity:.5;color:var(--bv-light)}
.footer-legal{border-top:1px solid rgba(255,255,255,.08);padding:2rem 0;font-size:.75rem;line-height:1.7;color:var(--bv-footer-fine)}
.footer-legal p{margin:0 0 .6rem;max-width:90ch}
.footer-legal p:last-child{margin-bottom:0}
.footer-legal-badges{letter-spacing:.18em;text-transform:uppercase;font-weight:500}
.footer-warning strong{font-weight:600;letter-spacing:.04em}
.site-footer .fine{border-top:1px solid rgba(255,255,255,.044);padding-top:2rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;font-size:.72rem;color:color-mix(in srgb,var(--bv-light) 55%,transparent);letter-spacing:.08em}
.site-footer .fine-left{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.9rem}
.site-footer .footer-social{display:inline-flex;color:inherit;padding:4px;margin:-4px}
.site-footer .footer-social:hover,.site-footer .footer-social:focus-visible{color:var(--bv-light)}
.site-footer .footer-social:focus-visible{outline:1px solid currentColor;outline-offset:2px;border-radius:2px}
.site-footer .footer-social svg{display:block}
.footer-nav{list-style:none;padding:0;margin:0}
.footer-nav li{margin-bottom:.6rem}
.footer-intro{max-width:34ch;opacity:.75;line-height:1.7;margin:0}

/* === Events === */
.events-list{display:flex;flex-direction:column;border-top:1px solid rgba(0,0,0,.1);max-width:980px;margin:0 auto}
.events-list .event{display:grid;grid-template-columns:auto 1fr auto;gap:2.5rem;padding:2.5rem 0;border-bottom:1px solid rgba(0,0,0,.1);align-items:baseline}
@media(max-width:700px){.events-list .event{grid-template-columns:1fr;gap:.5rem}}
.events-list .event .event-date{font-family:var(--bv-display);font-size:1.6rem;font-weight:300;min-width:9ch}
.events-list .event h3{font-family:var(--bv-display);font-weight:300;font-size:1.65rem;margin:0 0 .35rem}
.events-list .event .event-meta{font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;opacity:.55;font-weight:500}
.events-list .event .event-excerpt{margin-top:.75rem;color:var(--bv-body);line-height:1.7;font-size:.95rem}
.events-list .event .event-cta{align-self:center;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;font-weight:500;text-decoration:none;white-space:nowrap;border-bottom:1px solid currentColor;padding-bottom:3px}

/* === Wines — compact rows, fixed-width bottle (source is 450×560) === */
.wine-list{max-width:1040px;margin:0 auto;border-bottom:1px solid rgba(0,0,0,.12)}
.wine-row{display:grid;grid-template-columns:1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center;padding:clamp(2.5rem,5vw,4rem) 0;border-top:1px solid rgba(0,0,0,.12)}
.wine-row.has-image{grid-template-columns:minmax(0,340px) minmax(0,1fr)}
.wine-row.has-image.is-flipped{grid-template-columns:minmax(0,1fr) minmax(0,340px)}
.wine-row.is-flipped .wine-media{order:2}
.wine-media img{width:100%;max-width:340px;height:auto;aspect-ratio:450/560;object-fit:cover}
.wine-copy{max-width:62ch}
.wine-copy .tracked{display:block}
.wine-copy h2{font-size:clamp(2rem,3.5vw,2.75rem);margin:.75rem 0 .5rem}
.wine-meta{color:var(--bv-ink-soft);letter-spacing:.08em;font-size:.9rem}
.wine-notes{margin-top:1.25rem;line-height:1.9}
.wine-notes p:last-child{margin-bottom:0}
.wine-copy h2 a{text-decoration:none}
.wine-copy h2 a:hover{color:var(--bv-vine)}
/* .wine-card — CPT-driven detail inside a row */
.wine-card .wine-meta{margin-top:1.25rem}
.wine-awards{list-style:none;padding:0;margin:1rem 0 0;font-size:.9rem;color:var(--bv-ink-soft)}
.wine-copy .wine-awards-label{margin-top:2rem}
.wine-awards-label + .wine-awards{margin-top:.6rem}
.wine-awards li{padding-left:1.25em;position:relative;margin-bottom:.35em}
.wine-awards li::before{content:"";position:absolute;left:0;top:.6em;width:.55em;height:1px;background:var(--bv-vine)}
.wine-card .btn-row{margin-top:1.75rem}
/* Single wine */
.wine-single{max-width:1040px;margin:0 auto;border-top:0;padding-top:0}
.wine-details{display:flex;flex-wrap:wrap;gap:1.25rem 2.5rem;margin:0 0 2rem;padding-bottom:1.5rem;border-bottom:1px solid rgba(0,0,0,.1)}
.wine-details dt{display:block;margin-bottom:.25rem}
.wine-details dd{margin:0;font-size:1.2rem}
@media(max-width:767px){
  .wine-row.has-image,.wine-row.has-image.is-flipped{grid-template-columns:1fr;gap:2rem}
  .wine-row.is-flipped .wine-media{order:0}
  .wine-media{justify-self:center;width:100%;max-width:340px}
}

/* === CF7 overrides === */
.wpcf7-form p{margin-bottom:2rem}
.wpcf7 label{display:block;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;opacity:.6;margin-bottom:.5rem;font-weight:500}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 input[type=url],.wpcf7 textarea,.wpcf7 select{width:100%;padding:.85rem 0;border:0;border-bottom:1px solid rgba(0,0,0,.2);background:transparent;font:inherit;color:inherit;outline:none;transition:border-color .2s;border-radius:0}
.wpcf7 textarea{min-height:140px;resize:vertical}
.wpcf7 input:focus,.wpcf7 textarea:focus,.wpcf7 select:focus{border-bottom-color:var(--bv-vine)}
.wpcf7 .wpcf7-submit{cursor:pointer;background:var(--bv-vine);color:#fff;border:0;padding:1.1rem 2.25rem;letter-spacing:.24em;text-transform:uppercase;font-size:.72rem;font-weight:500;margin-top:1rem;transition:background .25s}
.wpcf7 .wpcf7-submit:hover{background:var(--bv-forest)}
.wpcf7-response-output{border:0!important;border-left:2px solid var(--bv-vine)!important;padding:1rem 1.25rem!important;font-size:.9rem;margin-top:2rem!important}

/* === Blog === */
.post-list{display:grid;gap:4rem;max-width:820px;margin:0 auto}
.post-card{border-bottom:1px solid rgba(0,0,0,.08);padding-bottom:3rem}
.post-card:last-child{border-bottom:0}
.post-card h2{font-size:2rem;margin-bottom:1rem}
.post-card h2 a{text-decoration:none}
.post-card h2 a:hover{color:var(--bv-vine)}
.post-meta{letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;opacity:.6;margin-bottom:.75rem;font-weight:500}
.post-excerpt{line-height:1.8;color:var(--bv-body)}

.prose{max-width:68ch;margin:0 auto;font-size:1.05rem;line-height:1.9}
.prose p{margin-bottom:1.5em}
.prose h2{font-size:2.25rem;margin:2em 0 .6em}
.prose > :first-child{margin-top:0}
.prose > :last-child{margin-bottom:0}
.prose h3{font-size:1.5rem;margin:2em 0 .5em}
.prose img{margin:2em 0}
.prose blockquote{border-left:3px solid var(--bv-vine);padding-left:1.5rem;font-family:Georgia,serif;font-size:1.35rem;line-height:1.5;margin:2em 0;opacity:.9}

/* Editor output (the_content) — plain blocks come out in house style, no classes needed */
.entry-content h2{font-size:clamp(1.75rem,3vw,2.25rem);margin:2em 0 .6em}
.entry-content h3{font-size:1.5rem;margin:2em 0 .5em}
/* Headings share the body measure (the container) instead of .section h2's 22ch */
.entry-content h2,.entry-content h3{max-width:none;text-wrap:balance}
.entry-content p{margin:0 0 1.25rem;color:var(--bv-body)}
.entry-content ul,.entry-content ol{margin:0 0 1.25rem;color:var(--bv-body)}
.entry-content ol{padding-left:1.25em}
.entry-content ol li{padding-left:.25em}
.entry-content ol li::marker{color:var(--bv-vine)}
/* ul: vine dash flush with the paragraph edge, text indented past it */
.entry-content ul{list-style:none;padding-left:0}
.entry-content li{margin-bottom:.4rem}
.entry-content li:last-child{margin-bottom:0}
.entry-content ul > li{position:relative;padding-left:1.25em}
.entry-content ul > li::before{content:"";position:absolute;left:0;top:.95em;width:.6em;height:1px;background:var(--bv-vine)}
/* Section labels: big gap above, tight to the heading below, divider between sections */
.entry-content .eyebrow{display:block;opacity:1;color:var(--bv-vine);margin:5rem 0 .75rem}
.section.mist .entry-content .eyebrow{color:var(--bv-vine-deep)}
.entry-content .eyebrow ~ .eyebrow{margin-top:2.5rem;padding-top:2.5rem;border-top:1px solid color-mix(in srgb,currentColor 20%,transparent)}
.entry-content .eyebrow + h2,.entry-content .eyebrow + h3{margin-top:0}
.entry-content blockquote{border-left:3px solid var(--bv-vine);padding-left:1.5rem;font-family:var(--bv-display);font-size:1.5rem;line-height:1.45;margin:2em 0;color:var(--bv-dark)}
.entry-content blockquote p{color:inherit;margin-bottom:.5em}
.entry-content a{color:var(--bv-vine);text-underline-offset:.2em}
.entry-content a:hover{color:var(--bv-forest)}
.entry-content strong{font-weight:600}
.entry-content > :first-child,.entry-content > .eyebrow:first-child{margin-top:0}
.entry-content > :last-child{margin-bottom:0}

/* === VinoShipper floating cart ===
   The button lives in a shadow root and is position:fixed at top:calc(50vh - 28px).
   The host is made its containing block (transform), placed so that offset lands the
   button 24px from the bottom-right, and clipped to the 56px circle.
   .vs-cart prefix outranks VinoShipper's own `.vs-cart .vs-cart-button-stage{top:…;right:0}`. */
.vs-cart vs-cart-button.vs-cart-button-stage,vs-cart-button.vs-cart-button-stage{
  --vs-cart-button-background-color:var(--bv-vine);
  --vs-cart-button-color:#fff;
  --vs-cart-button-width:56px;
  --vs-cart-button-height:56px;
  --vs-cart-button-border-radius:50%;
  --vs-cart-button-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.1L20.5 8H6.1'/%3E%3C/svg%3E");
  position:fixed;top:calc(50vh - 52px);right:24px;width:56px;height:56px;
  transform:translateZ(0);
  clip-path:circle(28px at 28px 50vh);
}
@media(max-width:767px){
  .vs-cart vs-cart-button.vs-cart-button-stage,vs-cart-button.vs-cart-button-stage{top:calc(50vh - 44px);right:16px}
}

/* === Shop/Club widgets === */
.vs-wrap{max-width:1200px;margin:0 auto}
.vs-wrap .vs-product-list,.vs-wrap .vs-clubs{min-height:400px}

/* === Utilities === */
.lazy-fade{opacity:0;transform:translateY(24px);transition:opacity 1s ease,transform 1s ease}
.lazy-fade.is-visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .lazy-fade{opacity:1;transform:none;transition:none}
  .hero-slide{transition:none}
}

/* === Motion — only for visitors who haven't asked for reduced motion === */
@media(prefers-reduced-motion:no-preference){
  /* Home hero: slow Ken Burns on every slide */
  #bv-hero .hero-slide img{animation:bv-kenburns 18s ease-in-out infinite alternate}
  @keyframes bv-kenburns{from{transform:scale(1)}to{transform:scale(1.08)}}

  /* Sub-page heroes: image settles, eyebrow then title rise in */
  .hero.sub .hero-slide img{animation:bv-settle 2.2s cubic-bezier(.2,.7,.2,1) both}
  @keyframes bv-settle{from{transform:scale(1.08)}to{transform:scale(1)}}
  .hero.sub .hero-copy .tracked,.hero.sub .hero-copy h1{animation:bv-rise .9s cubic-bezier(.2,.7,.2,1) both}
  .hero.sub .hero-copy h1{animation-delay:.15s}
  @keyframes bv-rise{from{opacity:0;transform:translateY(28px)}}

  /* Full-bleed photos ease from 1.14 to 1 as they come into view (ball.js adds .is-visible) */
  .fullbleed{overflow:hidden}
  .fullbleed img{transform:scale(1.14);transition:transform 1.8s cubic-bezier(.2,.7,.2,1)}
  .fullbleed.is-visible img{transform:scale(1)}

  /* Wine rows: bottle fades up first, text a beat later (same observer, delayed transition) */
  .wine-row.lazy-fade{opacity:1;transform:none;transition:none}
  .wine-row.lazy-fade .wine-media,.wine-row.lazy-fade .wine-copy{opacity:0;transform:translateY(24px);transition:opacity 1s ease,transform 1s ease}
  .wine-row.lazy-fade.has-image .wine-copy{transition-delay:.2s}
  .wine-row.lazy-fade.is-visible .wine-media,.wine-row.lazy-fade.is-visible .wine-copy{opacity:1;transform:none}

  /* Bottles lift on hover */
  .wine-media img{transition:transform .5s ease,box-shadow .5s ease}
  .wine-media img:hover{transform:translateY(-6px);box-shadow:0 22px 32px -20px rgba(26,31,36,.45)}

  /* Nav: underline draws in from the left; the current page keeps it */
  .primary-nav a{position:relative}
  .primary-nav a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .35s ease}
  .primary-nav a:hover::after,.primary-nav a[aria-current="page"]::after,.primary-nav .current-menu-item > a::after,.primary-nav .current_page_item > a::after{transform:scaleX(1)}

  /* Buttons: ease every hover change */
  .btn{transition:background-color .3s ease,color .3s ease,border-color .3s ease}
}
.center{text-align:center}
.divider{height:1px;background:currentColor;opacity:.12;margin:4rem 0;max-width:60ch;margin-left:auto;margin-right:auto}

/* === Screen-reader only === */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
