/* J HIPI Estate Wines — site styles (pages are generated by src/build.php) */

:root {
  --gold: #c29c3e;
  --gold-hover: #977a30;
  --gold-wash: #f8f3e8;
  --grey: #d8d8d8;
  --mauve: #6d657c;
  --green: #87b650;
  --black: #000;
  --paper: #fff;

  --surface-void: #000;
  --surface-ink: #0f0e11;
  --surface-dusk: #312e38;
  --surface-mist: #f3f3f5;
  --surface-paper: #fff;

  --on-dark-primary: #fff;
  --on-dark-body: #ffffffc7;
  --on-dark-muted: #d8d8d894;
  --on-dark-faint: #d8d8d861;
  --on-dark-accent: var(--gold);
  --on-light-primary: #000;
  --on-light-body: #262626;
  --on-light-muted: var(--mauve);
  --on-light-accent: #886d2b;
  --on-light-category: #516d30;

  --rule-light: #0000001f;
  --rule-dark: #d8d8d829;
  --rule-accent: var(--gold);
  --rule-accent-faint: #c29c3e38;
  --badge-fill: var(--grey);

  --font-brand: "LatinPunctuation", "Noto Serif SC", "Songti SC", Georgia, serif;
  --section-py: 9rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.3, 1.18, 0.5, 1);
}

@font-face {
  font-family: LatinPunctuation;
  src: local(Georgia), local("Times New Roman"), local(Times), local("Liberation Serif"), local("DejaVu Serif");
  unicode-range: U+27, U+22, U+2018-201F, U+2032-2033, U+2039-203A;
  font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { scroll-behavior: smooth; overscroll-behavior: none; -webkit-text-size-adjust: 100%; line-height: 1.5; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-brand);
  background: var(--surface-paper);
  color: var(--on-light-body);
  font-synthesis: none;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ul { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- type helpers ---------- */
.sec-heading {
  font-family: var(--font-brand);
  text-align: center;
  text-wrap: balance;
  color: var(--on-light-primary);
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}
.sec-rule { background: var(--rule-light); width: 90px; height: 1px; margin: 0 auto 1.5rem; }
.sec-rule--accent { background: var(--rule-accent); }
.sec-rule--dark { background: var(--rule-dark); }
.sec-rule--spacious { margin-bottom: 2.5rem; }
.sec-desc {
  text-align: center;
  max-width: 66ch;
  color: var(--on-light-body);
  text-wrap: pretty;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.75;
}
.voice { letter-spacing: 0.02em; font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 300; line-height: 1.6; }
.voice-sm { letter-spacing: 0.02em; font-weight: 300; line-height: 1.7; }
:where(.voice, .voice-sm) { color: var(--on-light-muted); }
:where(.on-dark) :where(.voice, .voice-sm) { color: var(--on-dark-body); }
.eyebrow { letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.6875rem; font-weight: 600; line-height: 1.4; }
.cat { color: var(--on-light-category); }
.accent { color: var(--on-light-accent); }

.container-3xl { width: 100%; max-width: 48rem; padding: 0 2rem; margin: 0 auto; }
.container-5xl { width: 100%; max-width: 64rem; padding: 0 2rem; margin: 0 auto; }
.container-6xl { width: 100%; max-width: 72rem; padding: 0 2rem; margin: 0 auto; }

/* ---------- motion helpers ---------- */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-7px); } }
@keyframes intro { to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.9s ease var(--d, 0s) forwards; }
.intro { opacity: 0; transform: translateY(var(--y, 20px)); animation: intro var(--t, 0.9s) var(--ease) var(--d, 0s) forwards; }

/* Scroll reveal (site.js adds .in once the element is far enough in view) */
html.js .rv {
  opacity: 0;
  transform: translateY(var(--ry, 0)) scale(var(--rs, 1));
  transition: opacity var(--rd, 0.7s) var(--ease) var(--rdl, 0s), transform var(--rd, 0.7s) var(--ease) var(--rdl, 0s);
}
html.js .rv.in { opacity: 1; transform: none; }
html.js [data-stagger] .rv-item { opacity: 0; transform: translateY(42px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js [data-stagger].in .rv-item { opacity: 1; transform: none; }

/* Curved section top (path animated by site.js) and soft fades between sections */
.curve-top {
  position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none;
  bottom: calc(100% - 1.5px); height: 5.5vw; min-height: 56px; max-height: 96px;
}
.curve-top svg { position: absolute; bottom: 0; left: -20px; width: calc(100% + 40px); height: 100%; display: block; }
.dissolve {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; height: 24vh; min-height: 190px;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--to) 0%, transparent) 0%, color-mix(in srgb, var(--to) 1.8%, transparent) 8%,
    color-mix(in srgb, var(--to) 6.9%, transparent) 16%, color-mix(in srgb, var(--to) 15.6%, transparent) 25%,
    color-mix(in srgb, var(--to) 26.8%, transparent) 34%, color-mix(in srgb, var(--to) 38.1%, transparent) 42%,
    color-mix(in srgb, var(--to) 50%, transparent) 50%, color-mix(in srgb, var(--to) 61.9%, transparent) 58%,
    color-mix(in srgb, var(--to) 73.2%, transparent) 66%, color-mix(in srgb, var(--to) 84.4%, transparent) 75%,
    color-mix(in srgb, var(--to) 93.1%, transparent) 84%, color-mix(in srgb, var(--to) 98.2%, transparent) 92%,
    var(--to) 100%);
}

/* ---------- age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 0 1.5rem; background: var(--surface-void); isolation: isolate; transition: opacity 0.6s ease;
}
html:not(.js) .age-gate, html.aged .age-gate { display: none; }
html.js:not(.aged) body { overflow: hidden; }
.age-gate.is-leaving { opacity: 0; pointer-events: none; }
.age-gate-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: 0.22; filter: saturate(0.28) contrast(1.06) brightness(0.82); }
.age-gate-scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(49,46,56,.52) 45%, rgba(0,0,0,.78) 100%); }
.age-gate-tint { position: absolute; inset: 0; z-index: -1; background: rgba(194,156,62,.06); mix-blend-mode: overlay; }
.age-gate-box { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 24rem; width: 100%; opacity: 0; animation: rise 0.8s var(--ease) 0.2s forwards; }
.age-gate-logo { margin-bottom: 1.5rem; opacity: 0.9; transform: translateX(7px); }
.age-step { display: flex; flex-direction: column; align-items: center; width: 100%; transition: opacity 0.3s ease; }
.age-step.is-out { opacity: 0; }
.age-step.is-in { animation: intro 0.4s ease forwards; opacity: 0; }
.age-rule { width: 40px; height: 1px; background: var(--rule-dark); margin-bottom: 2rem; }
.age-title { color: var(--on-dark-primary); font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; margin-bottom: 0.75rem; }
.age-title--sm { font-size: clamp(1.2rem, 3.5vw, 1.6rem); line-height: 1.3; margin-bottom: 1rem; }
.age-text { font-size: 0.875rem; line-height: 1.625; color: var(--on-dark-muted); margin-bottom: 2.5rem; }
[data-step="denied"] .age-text { margin-bottom: 0; }
.age-note { letter-spacing: 0.02em; font-weight: 300; line-height: 1.7; margin-top: 1.5rem; color: var(--on-dark-faint); font-size: 0.75rem; }
.age-actions { display: flex; gap: 0.75rem; width: 100%; }
.age-actions button {
  flex: 1; padding: 0.875rem 0; font-family: var(--font-brand); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; border-radius: 4px; transition: all 0.25s;
}
.age-no { color: var(--on-dark-muted); border: 1px solid rgb(216 216 216 / 0.45); }
.age-no:hover { border-color: rgb(216 216 216 / 0.7); color: var(--on-dark-body); }
.age-yes { background: var(--gold) !important; color: var(--black); }
.age-yes:hover { background: var(--gold-hover) !important; }

/* ---------- desktop nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; display: none; border-bottom: 1px solid transparent; transition: all 0.4s; }
.nav.is-scrolled { background: rgba(0,0,0,.96); border-bottom-color: var(--rule-accent-faint); }
.nav-inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; height: 7rem; padding: 0 2rem; }
.nav-list { display: flex; align-items: center; gap: 1.5rem; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 6rem; padding: 0.5rem 1rem;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--on-dark-primary); border-bottom: 1px solid transparent; transition: color 0.2s;
}
.nav-item:hover { color: var(--gold); }
.nav-item.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-icon { height: 1.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.nav-icon img { height: 22px; width: auto; opacity: 0.8; transition: opacity 0.15s; }
.nav-icon img:hover, .nav-item.is-active .nav-icon img { opacity: 1; }
.nav-label { height: 1.25rem; display: flex; align-items: center; text-align: center; line-height: 1.25; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { width: 110px; height: 96px; object-fit: contain; transition: all 0.3s; }
.nav.is-scrolled .nav-logo img { width: 68px; height: 60px; }

/* ---------- mobile radial nav ---------- */
.rnav {
  position: fixed; top: 0.5rem; left: calc(50% - 125px); width: 250px; height: 250px; z-index: 900;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.rnav-items { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rnav-item {
  position: absolute; width: 46px; height: 46px; border-radius: 9999px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: rgba(0,0,0,.96); color: var(--on-dark-primary);
  box-shadow: 0 2px 14px rgba(0,0,0,.45); opacity: 0; transform: translate(0, 0) scale(0); pointer-events: none;
  transition: transform 0.45s var(--spring) var(--dl, 0s), opacity 0.3s ease var(--dl, 0s), filter 0.2s;
}
.rnav-item:hover { filter: brightness(1.1); }
.rnav-item img { height: 16px; width: auto; opacity: 0.9; }
.rnav-item span { font-size: 0.42rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.125rem; line-height: 1.2; }
.rnav.is-open .rnav-item { opacity: 1; transform: translate(var(--x), var(--y)) scale(1); pointer-events: auto; }
.rnav-toggle {
  position: relative; z-index: 10; width: 52px; height: 52px; border-radius: 9999px; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.96); color: var(--on-dark-primary); box-shadow: 0 4px 22px rgba(0,0,0,.55);
  pointer-events: auto; transition: transform 0.25s var(--spring), background 0.3s;
}
.rnav-toggle:hover { transform: scale(1.08); }
.rnav-toggle:active { transform: scale(0.95); }
.rnav.is-open .rnav-toggle { background: var(--surface-dusk); }
.rnav-ic { position: absolute; display: flex; transition: opacity 0.18s, filter 0.18s; }
.rnav-ic--close, .rnav.is-open .rnav-ic--open { opacity: 0; filter: blur(6px); }
.rnav.is-open .rnav-ic--close { opacity: 1; filter: blur(0); }

@media (min-width: 768px) {
  .nav { display: block; }
  .rnav { display: none; }
}

/* ---------- home: hero ---------- */
.hero { position: relative; height: 100vh; overflow: hidden; background: var(--surface-void); }
.hero-bg {
  position: absolute; inset: 0; background: url("../../images/body/slide.webp") center / cover;
  transform-origin: center; will-change: transform; transform: scale(1.15);
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.62) 100%); }
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 2rem; will-change: opacity; transition: opacity 0.15s;
}
.hero-eyebrow { font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.45em; text-transform: uppercase; margin-bottom: 1rem; color: var(--on-dark-primary); }
.hero-title { font-size: clamp(2.2rem, 5.5vw, 4.5rem); line-height: 1.25; color: var(--on-dark-primary); max-width: 780px; }
.hero-rule { width: 3.5rem; height: 1px; margin: 1.5rem 0; background: var(--on-dark-primary); }
.hero-text { font-size: clamp(0.95rem, 1.7vw, 1.15rem); color: var(--on-dark-body); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 0.375rem;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted);
  transform: translateX(-50%); animation: bob 2.2s ease-in-out infinite;
}

/* ---------- home: zooming collage ---------- */
.collage { position: relative; height: 200vh; background: var(--surface-void); }
.collage-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.collage-layer { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.collage-tile { position: relative; }
.collage-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c1 { width: 30vw; height: 26vh; }
.c2 { width: 40vw; height: 22vh; top: -35vh; }
.c3 { width: 20vw; height: 58vh; top: -16vh; left: -35vw; }
.c4 { width: 20vw; height: 30vh; top: -2vh; left: 35vw; }
.c5 { width: 40vw; height: 22vh; top: 29vh; left: 20vw; }
.c6 { width: 40vw; height: 22vh; top: 29vh; left: -25vw; }
.c7 { width: 20vw; height: 23vh; top: -34vh; left: 35vw; }
.collage-quote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 2rem; opacity: 0; transform: scale(0.85); }
.collage-quote h2 { text-align: center; font-size: clamp(1.4rem, 3.5vw, 2.6rem); color: var(--on-dark-body); max-width: 680px; text-shadow: 0 2px 24px rgba(0,0,0,.6); }

/* ---------- home: art & science ---------- */
.art {
  position: relative; display: flex; flex-direction: column; align-items: center; background: var(--surface-mist);
  padding-top: var(--section-py); padding-bottom: calc(var(--section-py) + 12vh);
}
.art-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.art-card { position: relative; overflow: hidden; border-radius: 0.25rem; cursor: pointer; }
.art-card-media { position: relative; height: 26rem; overflow: hidden; }
.art-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: all 0.5s; }
.art-card-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2), transparent);
}
.art-card-over::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.55), rgba(0,0,0,.15));
}
.art-card-title, .art-card-body { position: relative; }
.art-card-title { font-size: 1.125rem; line-height: 1.75rem; margin-bottom: 0.5rem; color: var(--on-dark-primary); }
.art-card-body { overflow: hidden; max-height: 0; transition: all 0.5s; font-size: 0.875rem; line-height: 1.625; color: var(--on-dark-body); }
.art-card:hover img, .art-card.is-open img { transform: scale(1.05); filter: brightness(0.75); }
.art-card:hover .art-card-over::before, .art-card.is-open .art-card-over::before { opacity: 1; }
.art-card:hover .art-card-body, .art-card.is-open .art-card-body { max-height: 200px; }

/* ---------- home: we are ---------- */
.we {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface-dusk); color: var(--on-dark-primary); padding-block: var(--section-py);
}
.we-inner { width: 100%; perspective: 900px; will-change: transform; }
.we .sec-heading { color: var(--on-dark-primary); }
.we-p { text-align: center; margin-bottom: 1.5rem; line-height: 1.625; color: var(--on-dark-body); }

/* ---------- home: discover ---------- */
.discover { position: relative; display: flex; flex-direction: column; align-items: center; background: var(--surface-paper); padding-block: var(--section-py); }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.region-card { display: block; }
.region-card-media { position: relative; height: 20rem; overflow: hidden; border-radius: 0.25rem; }
.region-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.region-card:hover img { transform: scale(1.05); }
.region-card-name { text-align: center; margin-top: 0.75rem; color: var(--on-light-category); }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--surface-dusk); border-top: 1px solid var(--rule-accent-faint); }
.footer-main { position: relative; width: 100%; max-width: 72rem; margin: 0 auto; padding: 5rem 2rem 3.5rem; color: var(--on-dark-primary); }
.footer-grid { display: grid; grid-template-columns: 1fr; row-gap: 3rem; column-gap: 2rem; }
.footer-logo { object-fit: contain; }
.footer-tag { margin-top: 1.5rem; max-width: 15rem; }
.footer-h { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 1.25rem; color: var(--on-dark-accent); }
.footer-address { font-size: 0.875rem; line-height: 2; color: var(--on-dark-body); }
.footer-address p + p { margin-top: 1rem; }
.muted { color: var(--on-dark-muted); }
.footer-mail { display: block; font-size: 0.875rem; line-height: 1.25rem; color: var(--on-dark-body); overflow-wrap: anywhere; transition: opacity 0.15s; }
.footer-mail:hover { opacity: 0.7; }
.footer-cta { margin-top: 1.5rem; }
.btn-green {
  display: inline-block; padding: 0.42rem 1.3rem; border-radius: 6px; background: var(--green); color: var(--on-dark-primary);
  font-family: var(--font-brand); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; transition: background 0.3s ease;
}
.btn-green:hover { background: var(--gold-hover); }
.footer-legal { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 2rem 2.5rem; color: var(--on-dark-faint); }
.footer-legal-inner { padding-top: 2rem; border-top: 1px solid var(--rule-dark); }
.footer-warning { font-size: 0.75rem; margin-bottom: 1.5rem; max-width: 48rem; color: var(--on-dark-faint); }
.footer-bottom { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.72rem; letter-spacing: 0.025em; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 1100; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; }
.modal-backdrop--dark { background: rgba(0,0,0,.8); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: fixed; z-index: 1200; left: 50%; top: 50%; width: calc(100% - 2rem); max-width: 48rem;
  opacity: 0; transform: translate(-50%, calc(-50% + 40px)) scale(0.97);
  transition: transform 0.5s var(--spring), opacity 0.3s ease;
}
.modal.is-open .modal-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal-panel--scroll { max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; }
.panel-wrap { position: relative; }
.corner { position: absolute; z-index: 10; color: var(--black); }
.corner--tl { top: -0.625rem; left: -0.625rem; }
.corner--tr { top: -0.625rem; right: -0.625rem; }
.corner--bl { bottom: -0.625rem; left: -0.625rem; }
.corner--br { bottom: -0.625rem; right: -0.625rem; }
.corner--soft { color: #fff; opacity: 0.4; }
.panel {
  border-radius: 0.25rem; overflow: hidden; display: grid; grid-template-columns: 1fr;
  background: var(--on-dark-primary); border: 1px solid rgba(0,0,0,.15); box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.panel-info { padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid rgba(0,0,0,.1); }
.panel-close-row { display: flex; justify-content: flex-end; margin-bottom: 1.25rem; }
.panel-close-row--tight { margin-bottom: 0.5rem; }
.close-btn { color: var(--on-light-muted); transition: opacity 0.15s; }
.close-btn:hover { opacity: 0.5; }
.panel-title { font-family: var(--font-brand); font-size: 1.5rem; line-height: 2rem; margin-bottom: 0.75rem; color: var(--on-light-primary); }
.panel-text { font-size: 0.875rem; line-height: 1.625; margin-bottom: 2rem; color: var(--on-light-muted); }
.contact-list { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
.contact-icon { border-radius: 0.25rem; padding: 0.625rem; flex-shrink: 0; background: rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.1); color: var(--black); }
.contact-icon--lg { padding: 0.75rem; color: var(--on-light-primary); }
.contact-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-light-primary); }
.contact-value { font-size: 0.75rem; line-height: 1rem; color: var(--on-light-muted); }
.contact-value a:hover { color: var(--on-light-primary); }
.panel-form { padding: 2rem; background: rgba(0,0,0,.03); }
.msg { height: 100%; }
.msg-kicker { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--on-light-muted); }
.form { display: flex; flex-direction: column; gap: 1rem; }
.field {
  width: 100%; padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.25rem; border-radius: 0.25rem; outline: none;
  background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.2); color: var(--on-light-body); transition: all 0.2s;
}
.field::placeholder { color: var(--on-light-muted); }
.field:focus { border-color: rgba(0,0,0,.45); background: rgba(0,0,0,.02); }
textarea.field { resize: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 0.8rem; color: #a3352b; }
.btn-send {
  width: 100%; padding: 0.75rem; border: 1px solid var(--black); border-radius: 6px; color: var(--black);
  font-family: var(--font-brand); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-send:hover { background: var(--black); color: #fff; }
.btn-send[disabled] { opacity: 0.6; cursor: progress; }
.msg-sent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem 0; }
.msg-sent-title { font-family: var(--font-brand); font-size: 1.125rem; color: var(--on-light-primary); }
.msg-sent-text { font-size: 0.875rem; color: var(--on-light-muted); max-width: 260px; }
.link-btn { margin-top: 0.5rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--on-light-muted); }

/* ---------- contact page ---------- */
.contact-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-dusk); }
.contact-page-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8rem 1rem; }
.contact-kicker { font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.25rem; color: var(--on-dark-faint); }
.contact-rule { width: 60px; height: 1px; background: var(--rule-dark); margin: 0 auto; }
.contact-title { margin: 1.5rem 0 3rem; text-align: center; font-size: clamp(2rem, 5vw, 3rem); color: var(--on-dark-primary); letter-spacing: 0.04em; }
.panel-wrap--page { width: 100%; max-width: 48rem; }
.panel--page { border-color: var(--rule-dark); box-shadow: 0 32px 80px rgba(0,0,0,.45); }
.panel-info--page, .panel-form--page { padding: 2.5rem 2rem; }
.panel-text--page { margin-bottom: 2.5rem; }
.panel-info--page .contact-list { gap: 0.75rem; }

/* ---------- wines ---------- */
.list-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18rem 1.5rem 5rem; background: linear-gradient(180deg, var(--surface-void) 0%, var(--surface-dusk) 100%);
}
.list-hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 1.25rem; color: var(--on-dark-muted); }
.list-hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.04em; color: var(--on-dark-primary); line-height: 1.5; }
.list-hero-rule { width: 90px; height: 1px; background: var(--rule-dark); margin: 1.5rem 0; }
.list-hero-text { max-width: 28rem; color: var(--on-dark-body); }
.wine-sec {
  position: relative; display: flex; flex-direction: column; align-items: center; background: var(--surface-paper);
  padding-top: var(--section-py); padding-bottom: calc(var(--section-py) + 12vh);
}
.wine-sec--dark { background: var(--surface-ink); padding-bottom: var(--section-py); }
.wine-sec-head { margin-bottom: 3rem; }
.wine-sec-eyebrow { margin-bottom: 0.5rem; color: var(--on-light-category); }
.wine-sec--dark .wine-sec-eyebrow { color: var(--on-dark-accent); }
.wine-sec-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--on-light-primary); line-height: 1.5; }
.wine-sec--dark .wine-sec-title { color: var(--on-dark-primary); }
.wine-sec-rule { margin-top: 1rem; width: 60px; height: 1px; background: var(--on-light-primary); }
.wine-sec--dark .wine-sec-rule { background: var(--rule-accent); }
.wine-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.wine-card {
  position: relative; text-align: left; display: flex; flex-direction: column; border-radius: 0.25rem; overflow: hidden;
  background: var(--surface-paper); border: 1px solid var(--rule-light); box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: all 0.3s; color: inherit;
}
.wine-card:hover { transform: translateY(-0.375rem); }
.wine-card-media { position: relative; height: 18rem; display: flex; align-items: center; justify-content: center; padding: 1.75rem 1.5rem 0.5rem; overflow: hidden; }
.wine-badge {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 10; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.25rem 0.625rem; background: var(--badge-fill); color: var(--on-light-body); border-radius: 2px;
}
.wine-card-img { position: relative; width: 100%; height: 100%; transition: transform 0.5s; }
.wine-card:hover .wine-card-img { transform: scale(1.05); }
.wine-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.wine-card.is-sold .wine-card-img img { opacity: 0.55; }
.wine-card-body { padding: 0.75rem 1.25rem 1.25rem; border-top: 1px solid var(--rule-light); }
.wine-card-brand { margin-bottom: 0.375rem; color: var(--on-light-muted); }
.wine-card-name { font-size: 1rem; line-height: 1.375; margin-bottom: 0.75rem; min-height: 2.6rem; color: var(--on-light-primary); }
.wine-card-row { display: flex; align-items: center; justify-content: space-between; }
.wine-card-vintage { font-size: 0.875rem; color: var(--on-light-muted); }
.wine-card-view { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s; color: var(--on-light-accent); }
.wine-card:hover .wine-card-view, .wine-card:focus-visible .wine-card-view { opacity: 1; }

.wine-modal-media {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 2.5rem; min-height: 20rem;
  background: var(--gold-wash); border-right: 1px solid rgba(0,0,0,.08);
}
.wine-modal-badge {
  position: absolute; top: 1rem; left: 1rem; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 9999px; background: var(--gold); color: #fff;
}
.wine-modal-img { position: relative; width: 100%; height: 22rem; }
.wine-modal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; } /* photos shot on white blend into the cream panel */
.wine-modal-info { border-right: 0; }
#wine-modal .panel { box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.wine-modal-brand { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 0.25rem; color: var(--on-light-accent); }
.wine-modal-name { font-size: 1.5rem; line-height: 1.375; margin-bottom: 0.25rem; color: var(--on-light-primary); }
.wine-modal-vintage { font-size: 0.875rem; margin-bottom: 1.25rem; color: var(--on-light-muted); }
.wine-modal-hr { height: 1px; width: 100%; margin-bottom: 1.25rem; background: rgba(0,0,0,.1); }
.wine-modal-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; row-gap: 0.75rem; margin-bottom: 1.5rem; }
.wine-modal-dl dt { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.125rem; color: var(--on-light-muted); }
.wine-modal-dl dd { font-size: 0.875rem; color: var(--on-light-body); }
.wine-modal-notes { margin-top: auto; }
.wine-modal-notes-h { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--on-light-accent); }
.wine-modal-desc { font-size: 0.875rem; line-height: 1.625; color: var(--on-light-muted); }

.wine-modal-more {
  display: inline-block; margin-top: 1.25rem; padding: 0.5rem 0; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-light-accent); transition: opacity 0.15s;
}
.wine-modal-more:hover { opacity: 0.7; }

/* wine page (wine/*.html): the quick-view panel as a page */
.wd {
  display: flex; flex-direction: column; align-items: center; padding: 11rem 1rem 5rem;
  background: linear-gradient(180deg, var(--surface-void) 0%, var(--surface-dusk) 100%);
}
.wd-crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 0.6rem; margin-bottom: 2rem;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--on-dark-muted); text-align: center;
}
.wd-crumbs a { padding: 0.75rem 0.15rem; transition: color 0.15s; }
.wd .wine-modal-badge { font-size: 0.75rem; }
.wd-crumbs a:hover { color: var(--on-dark-primary); }
.wd-crumbs [aria-current] { color: var(--on-dark-body); }
.wd-panel { width: 100%; max-width: 60rem; box-shadow: 0 32px 80px rgba(0,0,0,.45); }
.wd .wine-modal-media { min-height: 0; padding: 1.75rem; }
.wd-img { height: 18rem; }
.wd-info { padding: 2rem 1.5rem; }
.wd-name { font-size: clamp(1.5rem, 3vw, 2rem); }
.wd-info .wine-modal-dl dt { font-size: 0.75rem; }
.wd-info .wine-modal-notes { margin-top: 0; }
.wd-info .wine-modal-notes-h { font-size: 0.75rem; }
.wd-info .wine-modal-desc { font-size: 0.95rem; }
.wd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 2rem; }
.wd-actions .btn-green { padding: 0.75rem 1.4rem; }
.wd-actions .wine-modal-more { margin-top: 0; padding: 0.75rem 0; }
.wd-more { padding-bottom: var(--section-py); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; height: 100vh; overflow: hidden; background: var(--surface-void); }
.page-hero-media { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.25) 40%, rgba(0,0,0,.6)); }
.page-hero-content { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 1.5rem; }
.page-hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--on-dark-muted); }
.page-hero-title { font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: 0.02em; line-height: 1.05; color: var(--on-dark-primary); }
.page-hero-text { margin-top: 1.5rem; max-width: 32rem; color: var(--on-dark-body); }
.events-hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem; min-height: 58vh; background: linear-gradient(180deg, var(--surface-void), var(--surface-dusk));
}

/* ---------- split sections (vineyard, winemaker, events) ---------- */
.split { position: relative; display: flex; justify-content: center; padding: var(--section-py) 1.5rem; background: var(--surface-paper); scroll-margin-top: 7rem; }
.split--mist { background: var(--surface-mist); }
.split-grid { width: 100%; max-width: 72rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.split-media { position: relative; height: 58vh; overflow: hidden; border-radius: 0.25rem; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 55%); }
.split-eyebrow { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 0.75rem; }
.split-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 1rem; color: var(--on-light-primary); }
.split-tag { margin-bottom: 1.75rem; display: flex; align-items: center; gap: 0.75rem; }
.split-tag-rule { width: 36px; height: 1px; background: var(--rule-accent); }
.split-tag-text { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-light-muted); }
.split-p { font-size: 0.95rem; line-height: 1.95; margin-bottom: 1rem; color: var(--on-light-body); }
.split-p--muted { color: var(--on-light-muted); }
.maker-img { position: relative; width: 100%; overflow: hidden; border-radius: 0.25rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.maker-img img { width: 100%; height: auto; }
.event-media { position: relative; height: 42vh; overflow: hidden; border-radius: 0.25rem; cursor: zoom-in; }
.event-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.7s; }
.event-media:hover img { transform: scale(1.03); }
.event-hint {
  position: absolute; bottom: 0.75rem; right: 0.75rem; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 9999px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity 0.3s;
}
.event-media:hover .event-hint, .event-media:focus-visible .event-hint { opacity: 1; }
.map-sec { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--section-py) 1.5rem; background: var(--surface-paper); }
.map-head { text-align: center; margin-bottom: 3.5rem; max-width: 36rem; }
.map-head .eyebrow { margin-bottom: 0.75rem; }
.map-img { position: relative; width: 100%; max-width: 42rem; }
.map-img img { width: 100%; height: auto; }
.events-more { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--section-py) 1.5rem; background: var(--surface-mist); }
.events-more > div { max-width: 36rem; }
.events-more .eyebrow { margin-bottom: 1rem; }
.events-more-quote { color: var(--on-light-body); }
.events-more-rule { margin-top: 1.75rem; display: inline-block; width: 44px; height: 1px; background: var(--rule-accent); opacity: 0.5; }

/* ---------- lightbox ---------- */
.lightbox-stage {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transform: scale(0.96); transition: transform 0.45s var(--spring), opacity 0.3s ease;
}
.modal.is-open .lightbox-stage { opacity: 1; transform: none; }
.lightbox-stage img { width: auto; height: auto; max-width: 95vw; max-height: 92vh; object-fit: contain; border-radius: 0.25rem; }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1300; border-radius: 9999px; padding: 0.5rem; background: rgba(0,0,0,.4); color: #fff; transition: opacity 0.15s; }
.lightbox-close:hover { opacity: 0.6; }

/* ---------- breakpoints ---------- */
@media (max-width: 767px) {
  .field { font-size: 16px; }
}
@media (max-width: 900px) {
  .hero-bg { background-image: url("../../images/body/slide-900.webp"); }
}
@media (min-width: 640px) {
  .wine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-main { padding: 6rem 3rem 3.5rem; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-legal { padding: 0 3rem 2.5rem; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-hero { padding-top: 10rem; }
  .wd { padding: 10rem 2rem 6rem; }
  .wd .wine-modal-media { padding: 2.5rem; }
  .wd-img { height: 32rem; }
  .wd-info { padding: 2.75rem 2.5rem; }
  .split { padding-inline: 2.5rem; }
  .split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .split-media { height: 78vh; }
  .event-media { height: 60vh; }
  .md-order-1 { order: 1; }
  .md-order-2 { order: 2; }
  .lightbox-stage { padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .wine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .intro, .age-gate-box { animation: none; opacity: 1; transform: none; }
  .hero-scroll { animation: none; }
  html.js .rv, html.js [data-stagger] .rv-item { opacity: 1; transform: none; transition: none; }
}
