/* Ullage | family wine estate
   Colours and fonts are tokens in :root. The signature is the LEVEL: photos fill like a glass (main.js 4),
   text fills with colour from the bottom of each line (data-fill, @property --lv). No fades, no lifting. */
@property --lv { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

:root {
  --dark: #22171a;
  --light: #f6eeec;
  --card: #ecdcd8;
  --ink: #2a1c1f;
  --muted-l: #7d6a6c;
  --accent: #c4675d;
  --f-head: "Prata", Georgia, serif;
  --w-head: 400;
  --ls-head: -.02em;
  --f-body: "Manrope", system-ui, sans-serif;
  --radius: 0;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --line: color-mix(in srgb, currentColor 18%, transparent);
  --glow: 0 0 1px rgba(0, 0, 0, .35), 0 0 18px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.3, .6, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--light); }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--light); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.label { font: 500 12px/1.5 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.h1, .h2, .h3, .hero-title, .statement, .quote, .stat-n, .year-name, .menu-t { font-family: var(--f-head); font-weight: var(--w-head); letter-spacing: var(--ls-head); }
.h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1; }
.h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.04; }
.h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; display: block; }
.muted { color: color-mix(in srgb, currentColor 72%, transparent); }
.is-dark { background: var(--dark); color: var(--light); }

/* ---------- text entrance: every line fills with ink from its own bottom edge ---------- */
.js [data-fill]:not(.done) {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to top, currentColor var(--lv), color-mix(in srgb, currentColor 16%, transparent) calc(var(--lv) + 9%));
  background-size: 100% 1lh; background-repeat: repeat-y;
  -webkit-background-clip: text; background-clip: text;
}
.js [data-fill].fill { animation: fill 1.15s var(--ease) var(--d, 0s) forwards; }
@keyframes fill { from { --lv: 0%; } to { --lv: 100%; } }
.js [data-fill].done { animation: none; }
/* scroll statement: each word fills as you read it (main.js 6) */
.statement { font-size: clamp(28px, 3.9vw, 58px); line-height: 1.16; max-width: 22ch; margin: 28px 0 0; }
.js [data-pour] .w { -webkit-text-fill-color: transparent; background-image: linear-gradient(to top, currentColor var(--lv), color-mix(in srgb, currentColor 16%, transparent) calc(var(--lv) + 9%));
  background-size: 100% 1lh; -webkit-background-clip: text; background-clip: text; }

/* ---------- the level: photos fill like a glass ---------- */
.ph { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 7%, var(--light)); }
.ph img, .hero-media img, .cta-media img, .year-photo img { width: 100%; height: 100%; object-fit: cover; }
.js [data-level] img { clip-path: inset(100% 0 0 0); }
.js [data-level].full img { clip-path: none; }
.level-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.level-line path { fill: none; stroke: var(--light); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.level-line .lip { stroke: var(--accent); stroke-width: 2.4; }

/* ---------- header ---------- */
.head { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 18px var(--pad); color: var(--ink);
  transition: transform .5s var(--ease), color .3s, background-color .3s; }
.head.solid { background: var(--light); }
.head.solid.on-dark { background: var(--dark); }
.menu-open .head { background: none; }
.head.on-dark { color: var(--light); }
.head.hide { transform: translateY(-110%); }
.menu-open .head { color: var(--light); transform: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 22px/1 var(--f-head); letter-spacing: var(--ls-head); }
.bottle .bottle-glass { fill: none; stroke: currentColor; stroke-width: 1.2; }
.bottle-wine { fill: var(--accent); transform-box: view-box; }
.bottle-full { fill: var(--accent); }
.head-coords { margin-left: auto; opacity: 1; color: inherit; }
.head-cta, .menu-btn { text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer; position: relative; }
.head-cta::after, .menu-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.head-cta:hover::after, .menu-btn:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { min-width: 52px; text-align: right; }

/* menu: an index 00-06, like the chapters of a wine list */
.menu { position: fixed; inset: 0; z-index: 30; background: var(--dark); color: var(--light); display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--pad) 32px; overflow: auto; }
.menu[hidden] { display: none; }
.menu-nav { display: grid; max-width: var(--max); width: 100%; margin: 0 auto; }
.menu-nav a { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 16px; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-t { display: block; font-size: clamp(32px, 5.2vw, 68px); line-height: 1.1; }
.menu-n { color: color-mix(in srgb, currentColor 60%, transparent); font-size: 15px; }
.menu-nav a:hover .menu-t, .menu-nav a[aria-current] .menu-t { color: var(--accent); -webkit-text-fill-color: currentColor; }
.menu-foot { max-width: var(--max); width: 100%; margin: 32px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.menu-foot a { text-decoration: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border: 1px solid currentColor; background: none; text-decoration: none; cursor: pointer;
  font: 500 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; position: relative; overflow: hidden; isolation: isolate; color: var(--ink); }
.btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--ink); clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); transition: clip-path .55s var(--ease); }
.btn:hover { color: var(--light); }
.btn:hover::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.btn > span { transition: color .3s; }
.btn-light, .is-dark .btn, .is-photo .btn { color: var(--light); }
.btn-light::before, .is-dark .btn::before, .is-photo .btn::before { background: var(--light); }
.btn-light:hover, .is-dark .btn:hover, .is-photo .btn:hover { color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 160px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 860px; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head-row > div { display: grid; gap: 18px; }
.sec-text { max-width: 54ch; font-size: 18px; }
.sec-more { margin-top: 48px; }

/* hero: the photo is a glass filled almost to the top; the band left above it is the ullage */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--light); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-in { position: relative; z-index: 3; padding-bottom: clamp(24px, 4vw, 48px); text-shadow: var(--glow); }
.hero-title { font-size: 100px; line-height: .86; margin: 0 0 18px; white-space: nowrap; }
.hero-title span { display: inline-block; margin-top: .16em; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hero-line { max-width: 44ch; font-size: 18px; }
.hero .btn { text-shadow: none; }

/* intro */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); }
.stat { padding-top: 20px; }
.stat-n { font-size: clamp(40px, 4.6vw, 68px); line-height: 1; }
.stat-n small { font-size: .4em; margin-left: 4px; }
.stat dd { margin-top: 8px; color: color-mix(in srgb, currentColor 72%, transparent); }

/* wines */
.wine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px); }
.wine-card a { display: grid; gap: 10px; text-decoration: none; }
.wine-ph { aspect-ratio: 4 / 5; margin-bottom: 8px; }
.wine-meta { display: flex; justify-content: space-between; gap: 12px; }
.wine-card[hidden] { display: none; }

/* the year: sticky, six phases pour in one after another */
.year { height: calc(var(--n, 6) * 80vh + 100vh); position: relative; }
.year-stick { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr 40px; gap: clamp(24px, 4vw, 64px); padding: 96px var(--pad) 48px;
  max-width: var(--max); margin: 0 auto; }
.year-media { position: relative; overflow: hidden; background: color-mix(in srgb, var(--light) 8%, var(--dark)); }
.year-photo { position: absolute; inset: 0; }
.year-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.year-list { position: relative; flex: 1; margin-top: 12px; }
.year-item { position: absolute; inset: 0; visibility: hidden; display: grid; align-content: start; gap: 12px; }
.year-item.is-on { visibility: visible; }
.year-name { font-size: clamp(40px, 5.2vw, 84px); line-height: 1; }
.year-x { max-width: 40ch; font-size: 18px; }
.year-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.year-nums dd { font-size: 15px; margin-top: 4px; }
.year-nums b { font: var(--w-head) clamp(28px, 2.8vw, 42px)/1 var(--f-head); }
.year-gauge { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: center; border: 1px solid var(--line); padding: 8px 0; font: 500 11px/1 var(--f-body); }
.year-gauge i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--g, 0) * 100%); background: var(--accent); }
.year-gauge span { position: relative; mix-blend-mode: difference; color: #fff; }

/* parcels: a section through the slope */
.slope { margin: 0 0 40px; }
.slope svg { width: 100%; height: auto; display: block; overflow: visible; }
.slope-lake { fill: color-mix(in srgb, var(--accent) 22%, var(--light)); }
.slope-wave { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.slope-area { fill: color-mix(in srgb, var(--ink) 5%, var(--light)); transition: fill .4s; }
.slope-step, .slope-forest { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.slope.drawn .slope-step, .slope.drawn .slope-forest { transition: stroke-dashoffset 1.6s var(--ease); stroke-dashoffset: 0; }
.slope.drawn .slope-p:nth-of-type(2) .slope-step { transition-delay: .25s; }
.slope.drawn .slope-p:nth-of-type(3) .slope-step { transition-delay: .5s; }
.slope.drawn .slope-p:nth-of-type(4) .slope-step { transition-delay: .75s; }
.slope.drawn .slope-p:nth-of-type(5) .slope-step { transition-delay: 1s; }
.slope.drawn .slope-forest { transition-delay: 1.3s; }
.slope text { font: 500 15px var(--f-body); letter-spacing: .1em; fill: currentColor; }
.slope-p.on .slope-area { fill: var(--accent); }
.slope-p.on text { fill: var(--accent); }
.slope-cap { display: flex; justify-content: space-between; margin-top: 10px; }
.parcel-row { display: grid; grid-template-columns: 2fr 1fr 1.3fr .8fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.parcel-head { padding: 10px 0; }
a.parcel-row { transition: background-color .3s; }
a.parcel-row:hover, a.parcel-row.on { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.parcel-name { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; font: var(--w-head) 24px/1.2 var(--f-head); }
.parcel-name small { grid-column: 2; color: color-mix(in srgb, currentColor 60%, transparent); letter-spacing: .08em; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-text { display: grid; gap: 22px; align-content: start; justify-items: start; }
.split-rev .split-media { order: 2; }
.ph.tall { aspect-ratio: 4 / 5; }
.split-media { position: sticky; top: 96px; }
.tastings { width: 100%; border-top: 1px solid var(--line); margin: 8px 0 12px; }
.tasting { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.tasting-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.day { width: 100%; border-top: 1px solid var(--line); margin: 8px 0 12px; }
.day li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* family */
.family-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.family-media .ph { aspect-ratio: 3 / 4; }
.family-quote { display: grid; gap: 28px; }
.quote { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.18; }
.quote::before { content: "\201C"; } .quote::after { content: "\201D"; }

/* events */
.ev-list { border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 140px 1fr auto; gap: clamp(16px, 3vw, 48px); padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ev[hidden] { display: none; }
.ev-date b { display: block; font: var(--w-head) 64px/1 var(--f-head); }
.ev-main { display: grid; gap: 8px; max-width: 60ch; }
.ev-meta { text-align: right; white-space: nowrap; }
.ev-media { width: 220px; }
.ev-media .ph { aspect-ratio: 4 / 3; }

/* posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.post-card a { display: grid; gap: 12px; text-decoration: none; }
.post-ph { aspect-ratio: 3 / 2; margin-bottom: 6px; }

/* cta */
.cta { position: relative; min-height: 90svh; display: flex; align-items: center; color: var(--light); overflow: hidden; }
.cta-media { position: absolute; inset: 0; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,0) 70%); pointer-events: none; z-index: 1; }
.cta-in { position: relative; z-index: 3; display: grid; gap: 24px; justify-items: start; text-shadow: var(--glow); padding-top: 120px; padding-bottom: 120px; }
.cta-in .h1 { max-width: 12ch; }
.cta-text { max-width: 46ch; font-size: 18px; }
.cta .btn { text-shadow: none; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(130px, 16vw, 210px) 0 clamp(48px, 6vw, 80px); }
.page-head .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.page-head h1 { grid-column: 1 / -1; font: 500 13px/1.5 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.page-head .h1 { max-width: 14ch; }
.page-head .sec-text { justify-self: end; }
.band { aspect-ratio: 21 / 9; width: 100%; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.filter .label { margin-right: 8px; }
.filter button { border: 1px solid var(--line); background: none; padding: 9px 16px; cursor: pointer; font: 500 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--light); border-color: var(--ink); }

/* wine page */
.wine-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.wine-hero-media { position: relative; }
.wine-hero-media .ph { position: absolute; inset: 0; }
.wine-hero-text { padding: clamp(120px, 14vw, 180px) var(--pad) clamp(40px, 5vw, 72px); display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.wine-hero-text .label a { text-decoration: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dd { font: var(--w-head) 21px/1.3 var(--f-head); margin-top: 4px; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 28px; }
.notes > div { display: grid; gap: 12px; align-content: start; }
.notes p:not(.label) { font: var(--w-head) clamp(22px, 2vw, 28px)/1.3 var(--f-head); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story .ph { aspect-ratio: 4 / 3; }
.story-text { display: grid; gap: 22px; justify-items: start; }
.story-text p:not(.label) { font-size: 19px; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; text-decoration: none; padding: 32px 0; border-top: 1px solid var(--line); }
.next .ph { aspect-ratio: 16 / 9; }
.next-text { display: grid; gap: 12px; }

/* estate */
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline b { font: var(--w-head) clamp(40px, 4.4vw, 64px)/1 var(--f-head); }
.timeline p { font-size: 19px; max-width: 52ch; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.person { display: grid; gap: 10px; align-content: start; }
.person .ph { aspect-ratio: 4 / 5; margin-bottom: 8px; }

/* visit */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.visit-grid > div { display: grid; gap: 14px; align-content: start; }
.visit-grid ul { border-top: 1px solid var(--line); }
.visit-grid li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-side { display: grid; gap: 32px; }
.contact-side > div { display: grid; gap: 8px; }
.contact-side a { text-decoration: none; }
.form { display: grid; gap: 28px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 12px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1px solid var(--line); padding: 10px 16px; cursor: pointer; transition: background-color .3s, color .3s; }
.chip input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); background: none; padding: 10px 0; font-size: 18px; outline: none; border-radius: 0; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea::placeholder { color: color-mix(in srgb, currentColor 45%, transparent); }
.field.bad input { border-bottom-color: var(--accent); }
.form-end { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.form-msg { color: var(--accent); }
.form-msg.ok { color: inherit; }

/* post */
.post-head { padding: clamp(130px, 16vw, 210px) 0 40px; }
.post-head .wrap { display: grid; gap: 22px; max-width: 980px; }
.post-head .label a { text-decoration: none; }
.post-body { max-width: 720px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--pad); display: grid; gap: 22px; font-size: 19px; }
.post-body .h3 { margin-top: 20px; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad); }
.nf .wrap { display: grid; gap: 24px; justify-items: center; }
.nf-bottle { width: 64px; height: auto; }
.nf-bottle path { fill: none; stroke: currentColor; stroke-width: .6; }

/* ---------- footer ---------- */
.foot { padding: clamp(72px, 9vw, 120px) 0 28px; }
@media (max-width: 809px) { .foot-bottom { padding-right: 60px; } }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr 1.3fr; gap: 32px; }
.foot-lead { display: grid; gap: 22px; justify-items: start; align-content: start; }
.foot-line { max-width: 36ch; }
.foot-col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-col .label { margin-bottom: 6px; color: color-mix(in srgb, currentColor 60%, transparent); }
.foot-col b { font-weight: 500; display: block; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); color: color-mix(in srgb, currentColor 65%, transparent); }
.foot-social { display: flex; gap: 20px; }
.foot-social a { text-decoration: none; }
.foot .bottle-full { fill: var(--accent); }

/* back to top: the same bottle, filled as far as you have read */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 48px; height: 48px; display: grid; place-items: center; background: var(--light); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); visibility: hidden; transform: scale(.6); transition: transform .4s var(--ease), visibility 0s .4s; }
.to-top.show { visibility: visible; transform: none; transition: transform .4s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-lead { grid-column: 1 / -1; }
  .year-stick { grid-template-columns: 1fr 1fr 32px; }
}
@media (max-width: 809px) {
  body { font-size: 16px; }
  .head-coords { display: none; }
  .head-cta { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .wine-grid, .posts, .people, .visit-grid { grid-template-columns: 1fr; }
  .split, .family-in, .story, .contact-grid, .wine-hero, .next, .page-head .wrap { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .split-media { position: static; }
  .page-head .sec-text { justify-self: start; }
  .year { height: calc(var(--n, 6) * 70vh + 100vh); }
  .year-stick { grid-template-columns: 1fr 22px; grid-template-rows: 38vh 1fr; gap: 16px 14px; padding: 76px var(--pad) 20px; }
  .year-media { grid-column: 1 / -1; }
  .year-text { gap: 10px; }
  .year-text > .h2 { display: none; }
  .year-name { font-size: 40px; }
  .year-x { font-size: 16px; }
  .year-nums b { font-size: 26px; }
  .parcel-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .parcel-row > span:nth-child(3), .parcel-row > span:nth-child(4) { display: none; }
  .parcel-head > span:nth-child(3), .parcel-head > span:nth-child(4) { display: none; }
  .ev { grid-template-columns: 1fr; gap: 10px; }
  .ev-date { display: flex; align-items: baseline; gap: 12px; }
  .ev-date b { font-size: 44px; display: inline; }
  .ev-meta { text-align: left; }
  .ev-media { width: 100%; }
  .wine-hero-media { min-height: 62svh; order: -1; }
  .wine-hero-text { padding-top: 32px; }
  .notes { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .band { aspect-ratio: 4 / 3; }
  .menu-nav a { grid-template-columns: 40px 1fr; }
  .menu-n { display: none; }
}
@media (max-width: 420px) {
  .foot-top { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
  .day li { grid-template-columns: 64px 1fr; }
  .hero-foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-fill]:not(.done), .js [data-pour] .w { -webkit-text-fill-color: currentColor; background: none; }
  .js [data-level] img { clip-path: none; }
  .slope-step, .slope-forest { stroke-dashoffset: 0; }
}
.sec-flush { padding-top: 0; }
.facts-wide { width: 100%; }
.ev-btn { margin-top: 10px; }
.ev-full { grid-template-columns: 140px 1fr 260px; }
.ev-full .ev-media { width: 100%; }
@media (max-width: 809px) { .ev-full { grid-template-columns: 1fr; } }
