:root {
  --ink: #08090a;
  --paper: #f7f7f5;
  --white: #ffffff;
  --mineral: #878a8e;
  --silver: #b7b9bc;
  --sage: #d7d8d9;
  --rose: #cdced0;
  --gold: #a9abae;
  --line: rgba(8, 9, 10, 0.17);
  --display: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { color: inherit; font: inherit; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 92px; padding: 0 4vw;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--white); border-bottom: 1px solid rgba(255,255,255,.25); transition: .4s ease;
}
.site-header.scrolled { height: 72px; color: var(--ink); background: rgba(247,247,245,.93); border-color: var(--line); backdrop-filter: blur(16px); }
.wordmark { width: 150px; filter: brightness(0) invert(1); transition: .4s ease; }
.site-header.scrolled .wordmark { filter: none; }
.desktop-nav { display: flex; align-items: center; gap: 2.3rem; }
.desktop-nav a, .language, .shop-link { font-size: .73rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: currentColor; transition: right .3s ease; }
.desktop-nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1.5rem; }
.language { padding: 0; border: 0; background: transparent; cursor: pointer; }
.shop-link { padding: .7rem 1rem; border: 1px solid currentColor; transition: .25s; }
.shop-link:hover { color: var(--ink); background: var(--white); }
.site-header.scrolled .shop-link:hover { color: var(--white); background: var(--ink); }
.menu-toggle { display: none; width: 34px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 6px 0; background: currentColor; }
.mobile-menu { display: none; }

.hero { position: relative; min-height: 100svh; color: var(--white); overflow: hidden; }
.hero-image, .hero-shade { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-image { animation: heroScale 14s ease-out both; }
.hero-shade { background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.31) 58%, rgba(0,0,0,.14) 100%), linear-gradient(0deg, rgba(0,0,0,.42), transparent 55%); }
.hero-kicker { position: absolute; right: 4vw; top: 128px; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker strong { font-size: .72rem; font-weight: 500; letter-spacing: .13em; }
.hero-content { position: absolute; left: 8vw; bottom: 13vh; max-width: 1120px; }
.eyebrow { margin: 0 0 1.6rem; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: #53565a; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(3.8rem, 7vw, 7.9rem); }
h1 em, h2 em { font-weight: 400; color: inherit; }
.hero-copy { max-width: 710px; margin: 2rem 0; font-size: clamp(1.05rem, 1.45vw, 1.3rem); font-weight: 300; }
.hero-copy-break { display: block; margin-top: .45rem; }
.text-link { display: inline-flex; min-width: 210px; justify-content: space-between; gap: 3rem; padding: .9rem 0; border-bottom: 1px solid currentColor; font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; }
.text-link span:last-child { transition: transform .25s ease; }
.text-link:hover span:last-child { transform: translate(5px, -3px); }
.button-light {
  min-width: 220px;
  margin-top: 2rem;
  padding: .9rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  color: var(--white);
  border: 1px solid var(--silver);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.button-light:hover { color: var(--ink); border-color: var(--white); background: var(--white); }
.button-light span:last-child { transition: transform .25s ease; }
.button-light:hover span:last-child { transform: translate(4px,-2px); }
.scroll-cue { position: absolute; right: 4vw; bottom: 0; display: flex; align-items: center; gap: 1rem; font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 85px; background: rgba(255,255,255,.55); }

.section-pad { padding: clamp(6rem, 11vw, 11rem) 8vw; }
.section-index { font-size: .69rem; letter-spacing: .15em; text-transform: uppercase; }
.section-lead { width: 100%; display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); }
.section-lead .eyebrow { margin: 0; text-align: right; }
.section-lead-rule { height: 1px; background: linear-gradient(90deg,rgba(135,138,142,.2),rgba(135,138,142,.68),rgba(135,138,142,.2)); }
.section-lead-light .section-index, .section-lead-light .eyebrow { color: rgba(255,255,255,.72); }
.section-lead-light .section-lead-rule { background: linear-gradient(90deg,rgba(183,185,188,.18),rgba(255,255,255,.48),rgba(183,185,188,.18)); }
.stone-surface { position: relative; isolation: isolate; }
.stone-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("./assets/dolomite-texture.webp") center top / 760px auto repeat;
  opacity: .045;
  mix-blend-mode: multiply;
}
.stone-surface > * { position: relative; z-index: 1; }
.manifesto { min-height: 95vh; position: relative; display: grid; grid-template-columns: 22% 1fr; row-gap: clamp(3.5rem, 6vw, 6rem); overflow: hidden; }
.manifesto-head { grid-column: 1 / -1; }
.manifesto-copy { grid-column: 1 / -1; max-width: none; }
.manifesto h2, .collection h2 { font-size: clamp(3.4rem, 6.8vw, 7.4rem); }
.manifesto-copy > p:last-child { max-width: 570px; margin: 2.5rem 0 0; font-size: clamp(1rem, 1.35vw, 1.25rem); font-weight: 300; }

.generations { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(3rem, 7vw, 8rem); row-gap: clamp(2.5rem, 5vw, 5rem); align-items: center; overflow: hidden; background: var(--white); }
.generations-head { grid-column: 1 / -1; }
.generations-image { position: relative; grid-column: 1; height: min(68vw, 780px); overflow: hidden; }
.generations-image img { height: 100%; object-fit: cover; object-position: 52% center; transition: transform 1s cubic-bezier(.2,.75,.2,1); }
.generations-image:hover img { transform: scale(1.025); }
.generations-copy { position: relative; z-index: 2; grid-column: 2; max-width: 680px; margin-left: clamp(-6rem, -5vw, -3rem); padding: clamp(2.75rem, 5vw, 5.5rem); background: var(--white); }
.generations h2 { font-size: clamp(3.2rem, 5.3vw, 6.2rem); }
.generations-copy > p { max-width: 520px; margin: 2rem 0 2.5rem; font-size: clamp(1rem, 1.25vw, 1.18rem); font-weight: 300; }
.generations-body > span { display: block; }
.generations-body > span + span { margin-top: .65rem; }

.territory { height: 160vh; color: var(--white); background: var(--ink); }
.territory-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.territory-sticky > img, .territory-overlay { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.territory-overlay { background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.12) 55%, rgba(0,0,0,.38)); }
.territory-title { position: absolute; left: 8vw; right: 6vw; top: 18vh; }
.territory-head { margin-bottom: 2.3rem; }
.territory h2 { font-size: clamp(4rem, 7.2vw, 8rem); }
.territory-facts { position: absolute; left: 8vw; right: 6vw; bottom: 7vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.3); }
.fact { min-height: 220px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; background: rgba(8,9,10,.74); backdrop-filter: blur(8px); }
.fact h3 { margin: 0 0 .35rem; font-family: var(--display); font-size: 1.55rem; font-weight: 400; }
.fact p { max-width: 300px; margin: 0; color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 300; }

.collection { background: var(--paper); }
.collection-heading { max-width: 1120px; }
.collection-label { margin-bottom: clamp(3rem, 6vw, 5rem); }
.collection-intro { max-width: 650px; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.collection-copy { max-width: 590px; margin: 0; font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 300; }
.collection-cta { margin-top: 2.25rem; padding: .9rem 1.15rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 3rem; border: 1px solid var(--ink); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; transition: color .25s ease, background .25s ease; }
.collection-cta:hover { color: var(--white); background: var(--ink); }
.wine-grid { margin-top: 7rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.wine-card { position: relative; min-width: 0; }
.wine-card:nth-child(2) { margin-top: 4rem; }
.wine-card:nth-child(3) { margin-top: 1.5rem; }
.wine-number { position: absolute; z-index: 2; top: 1.75rem; left: 1.75rem; font-size: .65rem; letter-spacing: .15em; }
.wine-image { position: relative; height: 620px; padding: 2.75rem 1.5rem 1.5rem; display: grid; place-items: center; overflow: hidden; background: #e5e5e3; }
.wine-image::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(8,9,10,.09); pointer-events: none; }
.wine-card:nth-child(2) .wine-image { background: #e7d9dc; }
.wine-card:nth-child(3) .wine-image { background: #d9e2e7; }
.wine-image img { width: auto; max-width: 86%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2,.75,.2,1); }
.wine-card:hover .wine-image img { transform: translateY(-8px) scale(1.02); }
.wine-info { padding: 1.6rem .2rem; border-bottom: 1px solid var(--line); }
.wine-info p { margin: 0; font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; }
.wine-info h3 { margin: .1rem 0 .5rem; font-family: var(--display); font-size: 2.7rem; font-weight: 400; line-height: 1; }
.wine-info > span { color: #5f6266; font-size: .83rem; letter-spacing: .06em; text-transform: uppercase; }
.wine-info a { float: right; margin-top: -1.45rem; font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; }

footer { padding: 9rem 8vw 2rem; color: var(--white); background: #050506; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 4rem; padding-bottom: 7rem; }
.footer-top h2 { font-size: clamp(3.2rem, 5.5vw, 6.2rem); }
.footer-mail { padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.5); font-size: .85rem; letter-spacing: .08em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.7rem; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.62); font-size: .72rem; letter-spacing: .06em; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-bottom a { transition: color .2s ease; }
.footer-bottom a:hover { color: var(--white); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes heroScale { from { transform: scale(1.06); } to { transform: scale(1); } }

@media (max-width: 900px) {
  .site-header { height: 72px; padding: 0 1.25rem; grid-template-columns: 1fr auto; }
  .wordmark { width: 130px; }
  .desktop-nav, .shop-link { display: none; }
  .header-actions { gap: 1.1rem; }
  .menu-toggle { display: block; }
  .mobile-menu { position: fixed; inset: 0; z-index: 45; padding: 22vh 8vw 8vh; display: flex; flex-direction: column; gap: 1rem; color: var(--white); background: var(--ink); transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { font-family: var(--display); font-size: clamp(2.8rem, 10vw, 4.5rem); line-height: 1.15; }
  .hero-kicker { top: 92px; right: 1.4rem; max-width: calc(100% - 2.8rem); gap: .15rem; font-size: .52rem; letter-spacing: .13em; }
  .hero-kicker strong { font-size: .57rem; letter-spacing: .1em; }
  .hero-content { left: 1.4rem; right: 1.4rem; bottom: 14vh; }
  h1 { font-size: clamp(3.1rem, 13vw, 5.5rem); }
  .hero-copy { max-width: 430px; }
  .scroll-cue { right: 1rem; }
  .section-pad { padding: 6.5rem 1.4rem; }
  .section-lead { grid-template-columns: auto 1fr; }
  .section-lead .eyebrow { grid-column: 1 / -1; text-align: left; }
  .manifesto { min-height: auto; grid-template-columns: 1fr; gap: 4rem; }
  .manifesto-head, .manifesto-copy { grid-column: 1; }
  .generations { grid-template-columns: 1fr; row-gap: 2rem; }
  .generations-head { grid-column: 1; }
  .generations-image { height: 120vw; max-height: 740px; }
  .generations-copy { grid-column: 1; margin: -4rem 1rem 0; padding: 2.5rem 1.6rem 2.75rem; }
  .territory { height: auto; }
  .territory-sticky { position: relative; height: auto; min-height: 100svh; padding: 7rem 1.4rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; }
  .territory-title, .territory-facts { position: relative; inset: auto; }
  .territory h2 { font-size: clamp(1.8rem, 9vw, 4rem); }
  .territory-facts { grid-template-columns: 1fr; margin-top: 8rem; }
  .fact { min-height: auto; }
  .collection-label { margin-bottom: 3rem; }
  .collection-intro { margin-top: 2rem; }
  .wine-grid { margin-top: 4rem; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem; padding-bottom: 1rem; }
  .wine-card, .wine-card:nth-child(2), .wine-card:nth-child(3) { flex: 0 0 84vw; margin-top: 0; scroll-snap-align: start; }
  .wine-image { height: 520px; padding-top: 2.5rem; }
  footer { padding: 7rem 1.4rem 2rem; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-top { padding-bottom: 5rem; }
  .footer-bottom div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
