/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Antic Didone";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/antic-didone-latin.woff2) format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --grape-950: #160d18;
  --grape-900: #1d1220;
  --grape-800: #2a1a2e;
  --grape-700: #3c2541;
  --grape-300: #b9a4bd;
  --grape-200: #d8cad9;
  --vine: #b8d84a;
  --vine-hi: #cfe86a;
  --vine-700: #47661a;
  --soil: #9c3f22;
  --soil-800: #6e2a14;
  --soil-200: #f1cdbd;
  --chalk: #eceee6;
  --chalk-2: #dfe2d6;
  --white: #fafbf7;
  --ink: #1d1220;
  --ink-2: #4a3b4c;
  --line-dark: rgb(29 18 32 / .16);
  --line-light: rgb(250 251 247 / .2);

  --font: "Archivo", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Antic Didone", "Didot", "Bodoni 72", "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 82rem;
  --sec: clamp(4.5rem, 10vw, 9rem);
  --radius: 4px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.9rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--grape-900);
  font-variant-numeric: tabular-nums lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--vine); color: var(--grape-900); }
:focus-visible { outline: 2px solid var(--vine); outline-offset: 3px; border-radius: 2px; }
.sec--chalk :focus-visible, .sec--white :focus-visible, .sec--vine :focus-visible { outline-color: var(--grape-900); }
html { scrollbar-color: var(--grape-700) var(--grape-950); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--vine); color: var(--grape-900); padding: .6rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
/* Titles and large figures: Antic Didone (one light weight, so it carries size instead of weight) */
.display, .h2, .gpanel__title, .ranked dt, .carbon__n, .reveal__price {
  font-family: var(--serif);
  font-weight: 400;
  font-stretch: normal;
  font-synthesis: none;
}
.display {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  text-wrap: balance;
  max-width: 16ch;
}
.h2 {
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
  max-width: 18ch;
}
.h2--wide { max-width: 22ch; }
h3 { font-size: 1.125rem; line-height: 1.25; font-weight: 650; font-stretch: 100%; letter-spacing: -.005em; }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.5; max-width: 38em; text-wrap: pretty; }
p { max-width: 65ch; text-wrap: pretty; }
.small { font-size: .9375rem; line-height: 1.55; }
.note { font-size: .875rem; color: var(--grape-300); margin-top: 1rem; }
.note--dark { color: var(--ink-2); margin-top: 2.5rem; }
.cite { font-size: .875rem; opacity: .85; margin-top: 1rem; }

:lang(zh) body, :lang(zh) .display, :lang(zh) .h2, :lang(zh) .lead { letter-spacing: 0; }
:lang(zh) .display, :lang(zh) .h2, :lang(zh) .gpanel__title { font-family: "Antic Didone", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif; font-weight: 500; }
:lang(zh) .display { line-height: 1.18; max-width: 13em; }
:lang(zh) .h2 { line-height: 1.25; max-width: 16em; }
:lang(zh) body { line-height: 1.75; }
:lang(zh) .lead { line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: inherit; font-weight: 640; font-size: 1rem; font-stretch: 105%; letter-spacing: .005em;
  color: var(--fg); background: var(--bg);
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform 120ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--vine { --bg: var(--vine); --fg: var(--grape-900); }
.btn--vine:hover { --bg: var(--vine-hi); }
.btn--ghost { --fg: var(--white); border-color: rgb(250 251 247 / .55); }
.btn--ghost:hover { border-color: var(--white); background: rgb(250 251 247 / .08); }
.btn--sm { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Header (translucent material) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter);
  padding-top: max(.7rem, env(safe-area-inset-top));
  color: var(--white);
  background: rgb(29 18 32 / .55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgb(250 251 247 / .08);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; }
.brand__mark { width: 1.75rem; height: 1.75rem; color: var(--vine); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; font-weight: 650; font-stretch: 108%; font-size: .9375rem; white-space: nowrap; }
.brand__sub { font-weight: 420; font-stretch: 100%; font-size: .8125rem; opacity: .78; }
.bar__right { display: flex; align-items: center; gap: .75rem; }
.lang { display: inline-flex; border: 1px solid rgb(250 251 247 / .28); border-radius: var(--radius); padding: 2px; }
.lang button {
  font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: var(--white); background: transparent; border: 0; border-radius: 2px;
  min-width: 2.6rem; min-height: 2.1rem; padding: 0 .55rem; cursor: pointer;
  white-space: nowrap;
}
.lang button[aria-pressed="true"] { background: var(--white); color: var(--grape-900); }
.lang button:not([aria-pressed="true"]):hover { background: rgb(250 251 247 / .12); }
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--grape-900); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(40rem, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
  padding-top: 6rem;
  overflow: hidden;
  background: var(--grape-900);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img { object-position: 50% 30%; transform-origin: 50% 35%; animation: drift 38s ease-in-out infinite alternate; }
.hero__video { opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero__video.is-on { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(29 18 32 / .55) 0%, rgb(29 18 32 / 0) 22%),
    linear-gradient(0deg, var(--grape-900) 0%, rgb(29 18 32 / .92) 22%, rgb(29 18 32 / .35) 52%, rgb(29 18 32 / 0) 70%);
}
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.2%, -.8%, 0); } }
.hero__body { padding-bottom: 2rem; }
.hero__pitch { margin-top: 1.25rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.4; font-weight: 500; max-width: 32em; color: var(--white); }
.hero__loc { margin-top: .4rem; font-size: .9375rem; color: rgb(250 251 247 / .75); }
.hero__almanac { padding-bottom: clamp(1.25rem, 3vw, 2rem); }

/* ---------- Almanac ---------- */
.almanac { position: relative; user-select: none; -webkit-user-select: none; }
.alm__months {
  display: grid;
  grid-template-columns: 31fr 28fr 31fr 30fr 31fr 30fr 31fr 31fr 30fr 31fr 30fr 31fr;
  border-top: 1px solid var(--line-light);
}
.alm__m {
  border-left: 1px solid var(--line-light);
  padding: .45rem 0 0 .4rem;
  font-size: clamp(.625rem, .5rem + .45vw, .8125rem);
  font-weight: 600; font-stretch: 70%; letter-spacing: .04em; text-transform: uppercase;
  color: rgb(250 251 247 / .7);
  white-space: nowrap; overflow: hidden;
}
.alm__m:last-child { border-right: 1px solid var(--line-light); }
:lang(zh) .alm__m { letter-spacing: 0; font-stretch: 100%; }
.alm__track { position: relative; height: 2.25rem; }
.almanac--planner .alm__track { height: 10rem; }
.almanac--planner { margin-left: 1.75rem; }
.alm__lane { position: absolute; left: 0; right: 0; height: 17%; }
.alm__lane--all { top: 0; height: 100%; }
.alm__lab {
  position: absolute; left: -1.75rem; top: 50%; transform: translateY(-50%);
  width: 1.25rem; text-align: center;
  font-size: .8125rem; font-weight: 700; font-stretch: 80%; color: var(--grape-300);
}
.alm__north {
  position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, rgb(250 251 247 / .22) 0 1px, transparent 1px 7px);
  border-inline: 1px dashed rgb(250 251 247 / .35);
}
.alm__band {
  position: absolute; top: 0; bottom: 0;
  background: var(--vine);
  border-radius: 2px;
  transform-origin: left center;
}
.almanac--hero .alm__band { top: 22%; bottom: 22%; min-width: 4px; transform-origin: center bottom; }
.alm__grow {
  position: absolute; top: 44%; bottom: 44%;
  background: rgb(184 216 74 / .4);
}
.alm__tick { position: absolute; top: 10%; bottom: 10%; width: 2px; margin-left: -1px; background: rgb(250 251 247 / .8); }
.almanac--planner .alm__band { min-width: 4px; }
.alm__today { position: absolute; top: -6px; bottom: 0; width: 2px; margin-left: -1px; background: var(--white); }
.alm__today::before { content: ""; position: absolute; top: 0; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.almanac__legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
  margin-top: .75rem; font-size: .8125rem; color: rgb(250 251 247 / .78);
}
.almanac__legend { column-gap: 1.25rem; }
.lg { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.key { display: inline-block; width: 1.25rem; height: .6rem; border-radius: 1px; }
.key--harvest { background: var(--vine); }
.key--grow { height: .3rem; background: rgb(184 216 74 / .5); }
.key--prune { width: 2px; height: .9rem; background: rgb(250 251 247 / .8); }
.key--north { background: repeating-linear-gradient(135deg, rgb(250 251 247 / .5) 0 1px, transparent 1px 5px); outline: 1px dashed rgb(250 251 247 / .45); }
.key--today { width: 2px; height: .9rem; background: var(--white); }

/* planner handles */
.alm__prune { position: absolute; top: -.6rem; bottom: -.6rem; width: 2.75rem; margin-left: -1.375rem; touch-action: none; cursor: grab; display: flex; justify-content: center; }
.alm__prune:active { cursor: grabbing; }
.alm__prune::before { content: ""; width: 2px; background: var(--white); }
.alm__knob {
  position: absolute; top: 50%; left: 50%; width: 1.75rem; height: 1.75rem; margin: -.875rem 0 0 -.875rem;
  border-radius: 50%; background: var(--white); color: var(--grape-900);
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / .35);
  transition: transform 120ms ease-out;
}
.alm__prune:active .alm__knob, .alm__prune.is-drag .alm__knob { transform: scale(1.12); }
.alm__prune:focus-visible { outline: none; }
.alm__prune:focus-visible .alm__knob { outline: 2px solid var(--vine); outline-offset: 3px; }
.alm__knob svg { width: 1rem; height: 1rem; }
.almanac--planner .alm__prune { top: -.4rem; bottom: -1.9rem; z-index: 3; }
.almanac--planner .alm__knob { top: auto; bottom: 0; margin-top: 0; }

.planner { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.planner__hint { font-size: .9375rem; color: var(--grape-200); margin-bottom: 1.25rem; }
.planner__out { margin-top: 2.75rem; display: grid; gap: .45rem; max-width: 40rem; }
.planner__out .planner__date { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; margin-bottom: .25rem; }
.planner__out .is-harvest span { color: var(--vine); font-weight: 650; }
.planner__out li { display: flex; gap: .75rem; align-items: baseline; font-size: 1rem; }
.planner__out b { font-weight: 700; font-stretch: 80%; letter-spacing: .03em; text-transform: uppercase; font-size: .8125rem; color: var(--vine); min-width: 4.5rem; }
.planner__out .is-clash { color: var(--soil-200); }
.planner__out .planner__total { margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--line-light); font-weight: 650; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); }
.sec--grape { background: var(--grape-900); color: var(--white); }
.sec--chalk { background: var(--chalk); color: var(--ink); }
.sec--white { background: var(--white); color: var(--ink); }
/* Vine-green field framed by out-of-focus grapes */
.sec--vine {
  --leaf: #b6cc62;
  padding: clamp(1rem, 3.5vw, 3rem);
  background: #5b6b2c url(../media/grapes-blur.webp) center / cover;
  color: var(--ink);
}
.vinebox {
  background: var(--leaf);
  border-radius: 6px;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  box-shadow: 0 0 0 1px rgb(29 18 32 / .08), 0 20px 50px -20px rgb(16 9 18 / .45);
}

/* Band: soil texture with a light label, leads down to the science section */
.band {
  position: relative; display: grid; place-items: center;
  min-height: clamp(9rem, 16vw, 12rem);
  padding: 2rem var(--gutter);
  background: #6a4a32 url(../media/soil-blur.webp) center / cover;
  color: var(--ink); text-decoration: none;
}
.band__label {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem;
  max-width: 58rem; padding: 1.1rem 1.5rem;
  background: rgb(250 251 247 / .94);
  border-radius: 6px;
  box-shadow: 0 14px 34px -14px rgb(16 9 18 / .55);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.band:hover .band__label { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgb(16 9 18 / .6); }
.band:active .band__label { transform: scale(.99); }
.band__text { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.2; text-align: center; text-wrap: balance; }
:lang(zh) .band__text { font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif; }
.band__go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: .9375rem; color: var(--vine-700); white-space: nowrap; }
.band__go svg { width: 1rem; height: 1rem; transition: transform 200ms var(--ease-out); }
.band:hover .band__go svg { transform: translateY(2px); }
.band:focus-visible { outline-offset: -6px; }
.sec--end { padding-bottom: calc(var(--sec) * .8); }
.sec--grape .lead { color: rgb(250 251 247 / .88); }

.split { display: grid; gap: 1.5rem 4rem; align-items: end; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; } }

/* Ranked figures: size follows importance */
.ranked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2rem clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.ranked--light { border-top-color: var(--line-light); }
.ranked .r { flex: 0 0 auto; min-width: 0; max-width: 100%; }
:lang(zh) .ranked dt { white-space: normal; letter-spacing: -.01em; }
.ranked dt { letter-spacing: -.015em; line-height: .95; white-space: nowrap; }
.ranked dd { margin: .5rem 0 0; font-size: .9375rem; line-height: 1.45; max-width: 22ch; }
.ranked .r--1 dt { font-size: clamp(3.5rem, 2rem + 6vw, 6rem); }
.ranked .r--2 dt { font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); }
.ranked .r--3 dt { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.ranked .r--4 dt { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.ranked--light dt { color: var(--white); }
.ranked--light .r--1 dt { color: var(--vine); }
.ranked--light dd { color: var(--grape-200); }
.sec--chalk .ranked .r--1 dt { color: var(--vine-700); }
.sec--chalk .ranked dd { color: var(--ink-2); }
:lang(zh) .ranked dd { max-width: 14em; }

/* Media frames (video sits over its poster image) */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grape-800); }
.media--43 { aspect-ratio: 4 / 3; }
.media--45 { aspect-ratio: 4 / 5; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video, .pano video { opacity: 0; transition: opacity 700ms var(--ease-out); }
.media video.is-on, .pano video.is-on { opacity: 1; }
figcaption { font-size: .8125rem; margin-top: .6rem; color: var(--ink-2); }
.sec--vine figcaption { color: rgb(29 18 32 / .75); }

/* Running */
.run { display: grid; gap: 2.5rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.run__text p + p { margin-top: 1rem; }
.run > .ranked { grid-column: 1 / -1; margin-top: 0; }
@media (min-width: 900px) {
  .run { grid-template-columns: .95fr 1.25fr; align-items: start; gap: 2.5rem 4rem; }
}

/* Two loops with a column of BRS Vitória clusters hanging between them */
.duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(2.25rem, 5vw, 4rem) 1fr;
  align-items: start;
  padding-block: 1.5rem 0;
}
.duo__fig--a { grid-column: 1; }
.duo__fig--b { grid-column: 3; }
.duo__vine {
  --overlap: clamp(1rem, 2.2vw, 1.75rem);
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 2;
  justify-self: center;
  width: calc(100% + 2 * var(--overlap)); max-width: none;
  height: auto;
  margin-top: -2.25rem;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgb(29 18 32 / .32)) drop-shadow(0 2px 3px rgb(29 18 32 / .25));
}

/* Hero: one Vitória cluster hanging over the vineyard, with a thin teaser line */
.hero__grape {
  position: absolute; z-index: 1;
  top: clamp(4.5rem, 9vh, 6.5rem); right: clamp(1rem, 6vw, 6rem);
  display: grid; justify-items: center; gap: 1.1rem;
  width: clamp(9rem, 22vw, 19rem);
  color: var(--white); text-decoration: none;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero__grape:active .hero__cluster { transform: scale(.97); transition-duration: 100ms; }
.hero__grape[aria-expanded="true"] .hero__tease { color: var(--vine-hi); }

/* White panel with the grape's qualities, materialising out of the cluster */
.gpanel {
  position: absolute; z-index: 6;
  top: clamp(4.75rem, 9vh, 6.5rem);
  right: calc(clamp(1rem, 6vw, 6rem) + clamp(9rem, 22vw, 19rem) + 1.5rem);
  width: min(31rem, calc(100% - 2 * var(--gutter)));
  max-height: calc(100svh - 7.5rem);
  overflow: auto; overscroll-behavior: contain;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--white); color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 30px 70px -20px rgb(16 9 18 / .6), 0 4px 14px rgb(16 9 18 / .2);
  transform-origin: 100% 0;
  opacity: 0; transform: translateX(12px) scale(.96); filter: blur(6px);
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out), filter 260ms var(--ease-out);
  scrollbar-color: var(--grape-300) transparent;
}
.gpanel.is-open { opacity: 1; transform: none; filter: none; }
.gpanel__close {
  position: absolute; top: .75rem; right: .75rem;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.gpanel__close:hover { background: var(--chalk); }
.gpanel__close svg { width: 1rem; height: 1rem; }
.gpanel__title { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); line-height: 1; letter-spacing: -.01em; padding-right: 2.5rem; outline: none; }
.gpanel__lead { margin-top: .6rem; font-size: .9375rem; color: var(--ink-2); font-style: italic; }
.gpanel__h {
  margin: 1.5rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--line-dark);
  font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--vine-700);
}
:lang(zh) .gpanel__h { letter-spacing: 0; }
.gpanel__list { display: grid; gap: .7rem; }
.gpanel__list li {
  position: relative; padding-left: 1.75rem;
  font-style: italic; font-size: .9375rem; line-height: 1.5;
}
.gpanel__list li::before {
  content: ""; position: absolute; left: 0; top: .2rem;
  width: .95rem; height: 1.19rem;
  background: url(../media/berry-40.webp) center / contain no-repeat;
  filter: drop-shadow(0 1px 1.5px rgb(16 9 18 / .35));
}
.gpanel__list b { font-weight: 650; font-style: italic; }
:lang(zh) .gpanel__list li, :lang(zh) .gpanel__lead { font-style: normal; }
.gpanel__src { margin-top: 1.25rem; font-size: .75rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) {
  .gpanel { transition: opacity 120ms linear; transform: none; filter: none; }
}
.hero__cluster {
  width: 100%; height: auto;
  max-height: 52svh; object-fit: contain;
  filter: drop-shadow(0 22px 28px rgb(16 9 18 / .55)) drop-shadow(0 4px 6px rgb(16 9 18 / .35));
  transform-origin: 50% 0;
  transition: transform 600ms var(--ease-out);
}
.hero__grape:hover .hero__cluster { transform: rotate(-1.5deg) scale(1.02); }
.hero__tease {
  font-weight: 300; font-style: italic; font-stretch: 100%;
  font-size: clamp(.9375rem, .8rem + .45vw, 1.1875rem);
  line-height: 1.35; letter-spacing: .01em;
  text-align: center; text-wrap: balance;
  text-shadow: 0 1px 12px rgb(16 9 18 / .7);
  max-width: 17em;
  transition: color 160ms ease-out;
}
.hero__grape:hover .hero__tease { color: var(--vine-hi); }
:lang(zh) .hero__tease { letter-spacing: 0; font-weight: 300; }
@media (prefers-reduced-motion: reduce) { .hero__cluster { transition: none; } .hero__grape:hover .hero__cluster { transform: none; } }

/* Certified */
.cert { display: grid; gap: 2.5rem 4rem; }
.cert__head .lead { margin-top: 1.5rem; }
@media (min-width: 900px) {
  .cert { grid-template-columns: 1fr 1fr; }
  .cert__fig { grid-row: span 2; }
}
.routes { counter-reset: none; display: grid; }
.routes li { position: relative; padding: 1.25rem 0 1.25rem 3rem; border-top: 1px solid var(--line-dark); }
.routes li:last-child { border-bottom: 1px solid var(--line-dark); }
.routes__line { position: absolute; left: 0; top: 1.85rem; width: 2rem; height: 0; border-top: 2px solid var(--vine-700); }
.routes__line::after { content: ""; position: absolute; right: -2px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--vine-700); }
.routes p { margin-top: .35rem; color: var(--ink-2); font-size: 1rem; }

/* Ecosystem */
.carbon { display: grid; gap: 1rem 3rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-block: 2rem; border-block: 1px solid rgb(29 18 32 / .22); }
.carbon__n { font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: .85; letter-spacing: -.03em; white-space: nowrap; }
.carbon__l { font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.3; font-weight: 600; margin-bottom: 1rem; max-width: 24ch; }
.carbon__t p:not(.carbon__l):not(.cite) { color: rgb(29 18 32 / .85); }
@media (min-width: 900px) { .carbon { grid-template-columns: auto 1fr; align-items: center; } }
.eco { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.eco__list { display: grid; gap: 1.5rem; }
.eco__list li { padding-top: 1rem; border-top: 1px solid rgb(29 18 32 / .22); }
.eco__list p { margin-top: .35rem; color: rgb(29 18 32 / .85); font-size: 1rem; }
@media (min-width: 900px) {
  .eco { grid-template-columns: 1.15fr 1fr .7fr; gap: 3rem; align-items: start; }
  .eco__fig--sensor { margin-top: 6rem; }
}

/* Grow */
.pano { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); aspect-ratio: 1024 / 430; max-height: 70vh; width: 100%; overflow: hidden; background: var(--chalk-2); }
.pano img, .pano video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ranked--grow { border-top: 0; }

/* Inquire */
.inq { display: grid; gap: 3rem 5rem; }
@media (min-width: 960px) { .inq { grid-template-columns: 1fr 1fr; align-items: start; } }
.inq__intro .lead { margin-top: 1.5rem; }
.steps { margin-top: 2rem; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: flex; gap: 1rem; align-items: baseline; padding: .85rem 0; border-top: 1px solid var(--line-light); }
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps li::before { content: counter(step); font-weight: 750; font-stretch: 80%; color: var(--vine); min-width: 1rem; }
.inq__intro .small { margin-top: 1.5rem; color: var(--grape-200); }
.direct { margin-top: 2rem; display: grid; gap: .35rem; }
.direct p { color: var(--grape-200); font-size: .9375rem; }
.direct a { font-weight: 600; text-decoration-color: rgb(184 216 74 / .6); width: fit-content; }
.direct a:hover { color: var(--vine); }

.inq__panel { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 24px 60px -24px rgb(0 0 0 / .55); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.field { grid-column: 1 / -1; display: grid; gap: .35rem; }
.field--half { grid-column: span 1; }
@media (max-width: 520px) { .field--half { grid-column: 1 / -1; } }
.field label { font-size: .875rem; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; min-height: 3rem; padding: .65rem .8rem;
  background: var(--white); border: 1px solid rgb(29 18 32 / .35); border-radius: var(--radius);
  caret-color: var(--vine-700);
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - .8rem) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(29 18 32 / .6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--vine-700); box-shadow: 0 0 0 3px rgb(71 102 26 / .25); }
.field [aria-invalid="true"] { border-color: var(--soil); }
.err { font-size: .8125rem; color: var(--soil-800); min-height: 0; }
.err:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .65rem; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--vine-700); }
.field--check label { font-weight: 400; font-size: .875rem; line-height: 1.45; }
.field--check .err { grid-column: 2; }
.form .btn { grid-column: 1 / -1; margin-top: .5rem; }
.form__status { grid-column: 1 / -1; font-size: .875rem; color: var(--soil-800); }
.form__status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.reveal { outline: none; }
.reveal__hi { font-size: 1.125rem; font-weight: 600; }
.reveal__label { margin-top: 1.75rem; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.reveal__price { font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); letter-spacing: -.015em; line-height: 1; margin-top: .35rem; color: var(--grape-900); }
.reveal__scope { margin-top: .75rem; color: var(--ink-2); font-size: .9375rem; }
.reveal__next { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.reveal:not([hidden]) { animation: rise 520ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Footer */
.foot { background: var(--grape-950); color: var(--grape-200); padding-block: 3rem 3.5rem; font-size: .875rem; }
.foot__grid { display: grid; gap: 1.25rem; }
.foot__broker { color: var(--white); font-size: .9375rem; }
.foot__fine { font-size: .8125rem; color: var(--grape-300); }
.foot summary { cursor: pointer; color: var(--white); font-weight: 600; width: fit-content; }
.foot details p { margin-top: .5rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; transform: none; }
  .reveal:not([hidden]) { animation: none; }
  .hero__video, .media video, .pano video { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .brand__sub { display: none; }
  .bar__cta { display: none; }
  .hero { padding-top: 5rem; }
  .hero__grape {
    top: 4.25rem; left: var(--gutter); right: .5rem; width: auto;
    grid-template-columns: 1fr auto; align-items: center; gap: .75rem;
  }
  .hero__cluster { grid-column: 2; grid-row: 1; width: auto; height: min(26svh, 13rem); max-height: none; }
  .hero__tease { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; font-size: .9375rem; max-width: 11em; }
  .gpanel {
    top: 4.5rem; left: var(--gutter); right: var(--gutter); width: auto;
    max-height: calc(100svh - 5.5rem);
    padding: 1.4rem 1.25rem 1.25rem;
    transform-origin: 85% 0;
  }
  .duo { grid-template-columns: 1fr 2.25rem 1fr; }
  .duo__vine { --overlap: .9rem; margin-top: -1.25rem; }
  .duo__fig--a figcaption { padding-right: 1rem; }
  .duo__fig--b figcaption { padding-left: 1rem; }
  .hero__body { padding-bottom: 1.5rem; }
  .actions .btn { flex: 1 1 auto; }
  .almanac__legend { font-size: .75rem; }
}
@media (max-width: 380px) {
  .brand__text { font-size: .875rem; }
  .lang button { min-width: 2.3rem; padding: 0 .4rem; }
}
