/* Wine Residents Club: "quiet ledger".

   White paper, warm stone bands, logo black for text. Logo red has two jobs only:
   the route from the winery to China (route lines, Hangzhou on the map) and the first step
   (the fit-check button). Everything else is ink, stone and air. No dark sections, no gold.

   Type: Hanken Grotesk only (OFL, self-hosted), three weights:
     400  reading text and large statements
     500  headings at display size, labels, navigation, figures
     600  small headings, buttons and the base on the map
   Scale (px at a 16px root):
     13 micro · 14 label · 16 small · 18 body · 21 lede · 24/32 h3 · 36 statement · 48 h2 · 72 display

   Motion: quiet and once only. The hero settles on load; route lines draw and sections rise
   12px as they scroll into view. All of it is off for prefers-reduced-motion, and content is
   visible without JavaScript (site.js only hides what is still below the fold). */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --stone: #efebe7;          /* warm paper band: cork, label stock, cellar stone */
  --band: var(--stone);
  --ink: #111111;            /* the black in the WRC logo */
  --ink-2: #2e2a27;          /* lede and long text */
  --muted: #5e5852;          /* captions, labels: 7.0:1 on white, 5.9:1 on stone */
  --line: #ddd7d1;           /* hairlines */
  --line-strong: #b5ada5;
  --dot: #cfc8c0;            /* map dot field */
  --red: #e31e24;            /* the red in the WRC logo */
  --red-text: #c4151b;       /* same red, darkened for small text and hover */

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-display: clamp(2.5rem, 1.35rem + 4vw, 4.5rem);        /* 40 → 72 */
  --fs-h2: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);            /* 30 → 48 */
  --fs-h3: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);             /* 24 → 32 */
  --fs-statement: clamp(1.5rem, 1.1rem + 1.35vw, 2.25rem);   /* 24 → 36 */
  --fs-lede: clamp(1.1875rem, 1.05rem + 0.45vw, 1.3125rem);  /* 19 → 21 */
  --fs-body: 1.125rem;       /* 18 */
  --fs-small: 1rem;          /* 16 */
  --fs-label: 0.875rem;      /* 14 */
  --fs-micro: 0.8125rem;     /* 13 */

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(88px, 10vw, 152px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: 1.03; letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.024em; }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.015em; }
h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 1px; }
::selection { background: var(--ink); color: #fff; }

.shell { max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Shared pieces ---------------------------------------------------------------------------- */
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 32em; color: var(--ink-2); }
.label { font-size: var(--fs-label); line-height: 1.4; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--red); color: #fff; text-decoration: none; border: 0; border-radius: 2px; cursor: pointer;
  font: inherit; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.005em;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--red-text); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.link {
  color: var(--ink); font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s ease;
}
.link:hover { text-decoration-color: var(--red); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }
.cover { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); margin-top: 14px; }
.band { background: var(--band); padding-block: var(--section); }
.band-tight { padding-block: clamp(56px, 7vw, 96px); }
.hairlist { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.hairlist li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.stop {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink); font-weight: 500; font-size: 1rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.section-head { align-items: end; row-gap: 20px; }
.section-head h2 { grid-column: 1 / span 7; max-width: 14em; }
.section-head .intro { grid-column: 9 / span 4; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); }
.step-n { display: block; font-size: var(--fs-label); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Header ----------------------------------------------------------------------------------- */
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 20px; flex-wrap: wrap; }
.logo img { width: 216px; }
.nav { display: flex; align-items: center; gap: 8px 30px; flex-wrap: wrap; font-weight: 500; font-size: 0.9375rem; }
.nav a { text-decoration: none; padding-block: 6px; }
.nav a:not(.nav-cta):hover, .nav a[aria-current]:not(.nav-cta) { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.nav .nav-cta { border: 1px solid var(--ink); padding: 9px 16px; border-radius: 2px; transition: background-color 0.2s ease, color 0.2s ease; }
.nav .nav-cta:hover { background: var(--ink); color: #fff; }

/* Home: hero ------------------------------------------------------------------------------- */
.hero { padding-top: clamp(56px, 8vw, 120px); }
.hero-grid { row-gap: clamp(32px, 4vw, 56px); }
.display { grid-column: 1 / -1; max-width: 14.5em; }
.hero-side { grid-column: 7 / span 6; grid-row: 2; }
/* Three quiet figures fill the left of the hero: the proof, before the reader scrolls. */
.hero-facts { grid-column: 1 / span 5; grid-row: 2; align-self: end; display: flex; flex-wrap: wrap; gap: 24px clamp(28px, 3.5vw, 56px); padding-bottom: 6px; }
.hero-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-left: 16px; border-left: 1px solid var(--line); }
.hero-facts dd { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; font-weight: 500; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.hero-facts dt { margin-top: 10px; font-size: var(--fs-label); line-height: 1.3; color: var(--muted); }
.plate { margin-top: clamp(64px, 7vw, 112px); overflow: hidden; }
.plate-img { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: 50% 6%; } /* keep the WRC sign */

/* Partner wineries and the market fact ----------------------------------------------------- */
.credentials { padding-block: clamp(48px, 6vw, 80px); }
.credentials .grid { align-items: start; }
.credentials .grid::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 48px); }
.partners { grid-column: 1 / span 7; }
/* Winery names set in type, not logos: one voice, one size, no borrowed artwork to recolour. */
.wineries { list-style: none; display: flex; flex-wrap: wrap; gap: 20px 0; margin-top: 22px; }
.wineries li { padding-right: clamp(24px, 3.5vw, 48px); margin-right: clamp(24px, 3.5vw, 48px); border-right: 1px solid var(--line); }
.wineries li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.winery { display: block; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.region { display: block; margin-top: 6px; font-size: var(--fs-label); color: var(--muted); }
.partners-lg .wineries { margin-top: 28px; }
.partners-lg .winery { font-size: var(--fs-h3); }
.why-now { grid-column: 9 / span 4; border-left: 1px solid var(--line); padding-left: var(--col-gap); }
.why-figure { margin-top: 18px; font-size: 2rem; line-height: 1; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.why-text { margin-top: 12px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 26em; }
.source { margin-top: 10px; font-size: var(--fs-micro); color: var(--muted); }
.source a { text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.source a:hover { text-decoration-color: var(--red); }

/* The route: one red hairline from the cellar door to China, a stop for each step.
   Used for the three steps (home) and the five-stage timeline (services). */
.route { list-style: none; position: relative; display: grid; gap: 0 var(--col-gap); margin-top: 14px; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--red); transform-origin: left center; }
.route::after { content: ""; position: absolute; right: -1px; top: -6px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--red); background: var(--paper); }
.band .route::after { background: var(--band); }
.route > li { position: relative; padding-top: 36px; padding-right: 12px; }
.route > li::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.route h3 { margin-top: 10px; }
.route-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(56px, 7vw, 96px); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }

/* Home: three steps */
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li > p { margin-top: 12px; max-width: 21em; color: var(--ink-2); }
.steps .outcome { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--ink); font-size: var(--fs-small); line-height: 1.5; }
.outcome span { display: block; margin-bottom: 4px; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.how-foot { margin-top: 40px; }

/* Services: how it works */
.how-works { padding-block: clamp(24px, 3vw, 40px) var(--section); }
.timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 88px); }
.timeline h3 { font-size: 1.375rem; }
.timeline dl { margin-top: 18px; border-top: 1px solid var(--line); }
.timeline dl div { padding-block: 12px; border-bottom: 1px solid var(--line); }
.timeline dt { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.timeline dd { margin-top: 2px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }

/* Three ways to start: a merchant's price list, not SaaS cards. ---------------------------- */
.starts { margin-top: clamp(80px, 9vw, 128px); }
.band > .shell > .starts:first-child { margin-top: 0; }
.starts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.starts-head p { font-size: var(--fs-small); color: var(--muted); }
.starts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--col-gap); margin-top: 32px; }
.start { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; border-top: 1px solid var(--ink); padding-top: 22px; }
.start-total { margin-top: 20px; font-size: clamp(2.5rem, 1.9rem + 1.8vw, 3.5rem); line-height: 1; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.ledger { margin-top: 32px; border-top: 1px solid var(--line); align-self: start; }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.4; }
.ledger dd { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .carried { color: var(--muted); }
.ledger .carried dd { font-weight: 400; }
.start-note { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); max-width: 26em; }

/* Home: proof ------------------------------------------------------------------------------ */
.proof { padding-block: var(--section); }
.proof-grid { row-gap: clamp(64px, 8vw, 120px); align-items: start; }
.proof-copy { grid-column: 1 / span 6; }
.statement { font-size: var(--fs-statement); line-height: 1.26; letter-spacing: -0.016em; font-weight: 400; max-width: 19em; }
.proof-more { margin-top: 36px; }
.ph-a { grid-column: 1 / span 7; }
.ph-b { grid-column: 9 / span 4; margin-top: clamp(32px, 5vw, 80px); }
.ph-img { width: 100%; object-fit: cover; }
.ph-a .ph-img { aspect-ratio: 3 / 2; object-position: 50% 40%; }
.ph-b .ph-img { aspect-ratio: 4 / 5; object-position: 66% 50%; }

/* Where we are: city dots by true lat/long. No coastline or border is drawn, on purpose. */
.map { grid-column: 7 / span 6; }
.map-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.map-dot { fill: var(--dot); }
.map-tick { font-size: 11px; fill: var(--muted); letter-spacing: 0.04em; }
.map-tick-line { stroke: var(--line-strong); stroke-width: 1; }
.map-city circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; paint-order: stroke; }
.map-city text, .map-origin text { font-size: 13px; font-weight: 500; fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map-base circle { fill: var(--red); stroke: var(--paper); stroke-width: 2.5; paint-order: stroke; }
.map-base .map-ring { fill: none; stroke: var(--red); stroke-width: 1; opacity: 0.45; }
.map-base text { font-size: 14px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map-base .map-note { font-size: 12px; font-weight: 400; fill: var(--muted); }
.map-route { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-origin circle { fill: var(--paper); stroke: var(--red); stroke-width: 1.5; }
.map-origin text { fill: var(--muted); font-weight: 400; }
.map figcaption { margin-top: 20px; max-width: 34em; }

/* Home: Full Partnership. The one arch on the site: the shape of a cellar door. ----------- */
.partner-grid { align-items: center; row-gap: 48px; }
.arch { grid-column: 2 / span 4; }
.arch-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.partner-copy { grid-column: 7 / span 5; }
.partner-copy p { margin-top: 22px; max-width: 30em; color: var(--ink-2); }
.partner-copy p + p { margin-top: 28px; }

/* Closing: the first step (src/partials/fit-check.html) ------------------------------------ */
.ask { padding-block: var(--section); border-top: 1px solid var(--line); }
.band + .ask { border-top: 0; }
.ask-grid { row-gap: 48px; align-items: start; }
.ask-grid h2 { grid-column: 1 / span 8; max-width: 16em; }
.fit { grid-column: 1 / span 6; }
.fit-text { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 28em; }
.fit .actions { margin-top: 32px; }
.ask-lines { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 500; }
.ask-lines a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.ask-lines a:hover { text-decoration-color: var(--red); }
.good-fit { grid-column: 8 / span 5; }

/* Inner pages ------------------------------------------------------------------------------ */
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.page-head h1 { max-width: 13em; }
.page-head .lede { margin-top: 24px; }

/* Services: the three steps in detail. The rule sits on an inner box so it stops at the
   content edge instead of running into the side margins. */
.step-body { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 88px); }
.step-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.step-head p { grid-column: 2; color: var(--muted); font-size: var(--fs-small); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 7vw, 112px); margin-top: 40px; }
.service h3 { font-size: 1.375rem; }
.price { margin-top: 12px; font-size: 2.5rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.service ul { margin-top: 20px; list-style: none; border-top: 1px solid var(--ink); }
.service li { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.note { margin-top: 40px; padding: 18px 22px; background: var(--band); max-width: 46em; font-size: var(--fs-small); }

.partner:not(.band) { padding-block: clamp(64px, 8vw, 112px); }
.partner-inner { align-items: start; row-gap: 24px; }
.partner-inner > h2 { grid-column: 1 / span 5; }
.partner-inner > div { grid-column: 7 / span 6; }
.partner-inner p { color: var(--ink-2); max-width: 32em; }
.partner-inner p + p { margin-top: 22px; }

.questions { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.questions .grid { align-items: start; row-gap: 32px; }
.questions h2 { grid-column: 1 / span 4; }
.faq { grid-column: 6 / span 7; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 18px; font-weight: 500; font-size: 1.1875rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1em; text-align: center; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover::after { color: var(--red); }
.faq details p { padding-bottom: 22px; max-width: 38em; color: var(--ink-2); }

/* About */
.where { padding-bottom: var(--section); }
.where-grid { align-items: center; row-gap: 48px; }
.map-lg { grid-column: 1 / span 7; }
.where-copy { grid-column: 9 / span 4; }
.where-copy h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
.where-copy h2 + p { margin-top: 10px; color: var(--ink-2); }
.where-copy p + h2 { margin-top: 36px; }
.where-more { margin-top: 36px; }
.work { padding-block: var(--section); }
.work-grid { row-gap: 48px; align-items: start; }
.work-grid > h2 { grid-column: 1 / -1; }
.work-a { grid-column: 1 / span 8; }
.work-a .ph-img { aspect-ratio: 2 / 1; object-position: 50% 100%; } /* crops away the ceiling unit */
.work-b { grid-column: 10 / span 3; margin-top: clamp(48px, 8vw, 140px); }
.work-b .ph-img { aspect-ratio: 4 / 5; object-position: 52% 50%; }

/* Contact */
.contact { padding-bottom: var(--section); }
.contact-grid { row-gap: 56px; align-items: start; }
.contact-side { grid-column: 1 / span 5; }
.contact-side .label + p { margin-top: 14px; }
.big-link { display: inline-block; margin-bottom: 8px; font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.big-link:hover { text-decoration-color: var(--red); }
.next-label { margin-top: 48px; }
.next { margin-top: 16px; padding-left: 0; list-style: none; counter-reset: next; border-top: 1px solid var(--line); }
.next li { counter-increment: next; display: grid; grid-template-columns: 2em 1fr; padding-block: 14px; border-bottom: 1px solid var(--line); }
.next li::before { content: counter(next); color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.contact-side .good-fit { margin-top: 48px; }
.contact-panel { grid-column: 7 / span 6; background: var(--band); padding: clamp(24px, 3.5vw, 48px); }
.contact-form { display: grid; gap: 8px; }
.contact-form h2, .form-sent h2 { font-size: var(--fs-h3); letter-spacing: -0.015em; margin-bottom: 8px; }
.contact-form label { font-weight: 500; margin-top: 14px; font-size: var(--fs-small); }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; padding: 13px 14px; width: 100%; min-height: 52px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form [aria-invalid="true"] { border-color: var(--red-text); }
.contact-form fieldset { border: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contact-form legend { font-weight: 500; margin-bottom: 10px; font-size: var(--fs-small); }
.contact-form fieldset label { font-weight: 400; margin: 0; display: flex; align-items: center; gap: 8px; }
.contact-form input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.contact-form .btn { justify-self: start; margin-top: 22px; }
.form-hint { font-size: 0.9375rem; color: var(--muted); }
.form-hint a { color: inherit; text-underline-offset: 3px; }
.form-error { color: var(--red-text); font-weight: 500; margin-top: 14px; }
.form-error a { color: inherit; }
.form-error.is-note { color: var(--ink-2); font-weight: 400; }
/* Honeypot: off-screen for people, still filled in by naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* After a send without JavaScript, /api/contact redirects to #sent or #form-error. */
.form-sent, .form-error-page { display: none; }
.form-sent:target, .form-sent.is-shown, .form-error-page:target { display: block; }
.contact-panel:has(.form-sent:target) .contact-form { display: none; }
.form-sent p { color: var(--ink-2); }
.form-sent:focus { outline: none; }

.prose { padding-bottom: clamp(56px, 8vw, 104px); }
.prose p { max-width: 38em; }
.prose p + p { margin-top: 16px; }
.prose a { font-weight: 500; text-underline-offset: 4px; }

/* Footer ----------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: 64px 32px; font-size: 0.9375rem; }
.foot-inner { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 32px var(--col-gap); }
.foot-logo { width: 196px; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); }
.foot-nav, .foot-contact { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot a { text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.social { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; color: var(--muted); }
.foot-legal { margin-top: 56px; color: var(--muted); font-size: var(--fs-micro); }

/* Motion ----------------------------------------------------------------------------------- */
/* 1. Page load, home hero only. CSS-only and it always ends visible. */
@media (prefers-reduced-motion: no-preference) {
  .hero .display { animation: rise 0.9s var(--ease-out) both; }
  .hero .hero-side { animation: rise 0.9s var(--ease-out) 0.14s both; }
  .hero .hero-facts { animation: rise 0.9s var(--ease-out) 0.28s both; }
  .plate-img { animation: settle 1.6s var(--ease-out) 0.2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.035); } }

/* 2. Sections rise 12px as they arrive. Neighbours in a row follow 100ms apart. */
[data-reveal="fade"].is-waiting { opacity: 0; transform: translateY(12px); }
[data-reveal="fade"].is-in { transition: opacity 0.8s ease, transform 1s var(--ease-out); }
.starts-grid > :nth-child(2).is-in, .services > :nth-child(2).is-in, .ask-grid > :nth-child(3).is-in, .ph-b.is-in, .work-b.is-in { transition-delay: 0.12s; }
.starts-grid > :nth-child(3).is-in { transition-delay: 0.24s; }

/* 3. Route lines draw from the winery end; each stop lights as the line reaches it. */
.route.is-waiting::before { transform: scaleX(0); }
.route.is-waiting > li::before, .route.is-waiting::after { opacity: 0; transform: scale(0.3); }
.route.is-waiting > li > * { opacity: 0; transform: translateY(10px); }
.route.is-in::before { transition: transform 1.5s var(--ease-in-out); }
.route.is-in > li::before, .route.is-in::after { transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.route.is-in > li > * { transition: opacity 0.7s ease, transform 0.9s var(--ease-out); }
.steps.is-in > li:nth-child(1)::before, .steps.is-in > li:nth-child(1) > * { transition-delay: 0.05s; }
.steps.is-in > li:nth-child(2)::before, .steps.is-in > li:nth-child(2) > * { transition-delay: 0.55s; }
.steps.is-in > li:nth-child(3)::before, .steps.is-in > li:nth-child(3) > * { transition-delay: 1.05s; }
.steps.is-in::after { transition-delay: 1.45s; }
.timeline.is-in > li:nth-child(1)::before, .timeline.is-in > li:nth-child(1) > * { transition-delay: 0.05s; }
.timeline.is-in > li:nth-child(2)::before, .timeline.is-in > li:nth-child(2) > * { transition-delay: 0.33s; }
.timeline.is-in > li:nth-child(3)::before, .timeline.is-in > li:nth-child(3) > * { transition-delay: 0.61s; }
.timeline.is-in > li:nth-child(4)::before, .timeline.is-in > li:nth-child(4) > * { transition-delay: 0.89s; }
.timeline.is-in > li:nth-child(5)::before, .timeline.is-in > li:nth-child(5) > * { transition-delay: 1.17s; }
.timeline.is-in::after { transition-delay: 1.45s; }

/* 4. The map: the red route arrives from Adelaide, then Hangzhou, then the other cities. */
.map.is-waiting .map-route { stroke-dashoffset: 1; }
.map.is-waiting .map-city, .map.is-waiting .map-base, .map.is-waiting .map-origin, .map.is-waiting .map-field { opacity: 0; }
.map.is-in .map-field { transition: opacity 0.8s ease; }
.map.is-in .map-origin { transition: opacity 0.4s ease 0.1s; }
.map.is-in .map-route { transition: stroke-dashoffset 1.8s var(--ease-in-out) 0.3s; }
.map.is-in .map-base { transition: opacity 0.5s ease 1.9s; }
.map.is-in .map-city { transition: opacity 0.5s ease; }
.map.is-in .c1 { transition-delay: 2.05s; } .map.is-in .c2 { transition-delay: 2.12s; }
.map.is-in .c3 { transition-delay: 2.19s; } .map.is-in .c4 { transition-delay: 2.26s; }
.map.is-in .c5 { transition-delay: 2.33s; } .map.is-in .c6 { transition-delay: 2.4s; }
.map.is-in .c7 { transition-delay: 2.47s; }
.map.is-in .map-ring { animation: ring 1.6s var(--ease-out) 2s 1 both; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(0.4); opacity: 0; } 60% { opacity: 0.6; } to { transform: scale(1); opacity: 0.45; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.static *, .static *::before, .static *::after { animation: none !important; transition: none !important; }

/* Smaller screens -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-side { grid-column: 5 / span 8; }
  .hero-facts { grid-column: 1 / -1; grid-row: 3; }
  .why-now { grid-column: 8 / span 5; }
  .section-head h2, .section-head .intro { grid-column: 1 / span 8; }
  /* Five stages don't fit across: the timeline turns vertical, stage on the left, who-does-what on the right. */
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 28px; }
  .timeline::before { left: 3px; right: auto; top: 0; bottom: -36px; width: 1.5px; height: auto; transform-origin: center top; }
  .timeline.is-waiting::before { transform: scaleY(0); }
  .timeline::after { left: -1px; right: auto; top: auto; bottom: -44px; }
  .timeline > li { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--col-gap); align-items: start; }
  .timeline > li::before { left: -28px; top: 6px; }
  .timeline .step-n, .timeline h3 { grid-column: 1; }
  .timeline dl { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .contact-side { grid-column: 1 / span 5; }
  .contact-panel { grid-column: 6 / span 7; }
  .where-copy { grid-column: 8 / span 5; }
  .map-lg { grid-column: 1 / span 7; }
}
@media (max-width: 860px) {
  .grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .hero-side { margin-top: 4px; }
  .plate-img { aspect-ratio: 4 / 3; object-position: 38% 40%; }
  .plate figcaption { font-size: 0.875rem; }
  .why-now { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 36px; }
  .wineries { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .wineries li { margin: 0; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .region { margin-top: 0; }
  .partners-lg .winery { font-size: 1.375rem; }
  .route-ends span:last-child { display: none; }
  /* The route turns vertical: the line runs down the left, the stops sit on it. */
  .route { grid-template-columns: 1fr !important; gap: 40px; margin-top: 20px; padding-left: 28px; }
  .route::before { left: 3px; right: auto; top: 0; bottom: -40px; width: 1.5px; height: auto; transform-origin: center top; }
  .route.is-waiting::before { transform: scaleY(0); }
  .route::after { left: -1px; right: auto; top: auto; bottom: -48px; }
  .route > li { padding-top: 0; }
  .route > li::before { left: -28px; top: 6px; }
  .how-foot { margin-top: 72px; }
  .timeline > li { display: block; }
  .timeline dl { margin-top: 18px; }
  .starts-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .start { grid-row: auto; grid-template-rows: none; }
  .proof-grid { row-gap: 56px; }
  .ph-b, .work-b { margin-top: 0; }
  .work-a .ph-img { aspect-ratio: 3 / 2; }
  .map { margin-top: 8px; }
  /* At phone width the cluster is too tight to label: keep Hangzhou, the caption names the rest. */
  .map-city text { display: none; }
  .map-city circle { r: 6px; }
  .map-base text { font-size: 24px; }
  .map-base .map-note { font-size: 19px; transform: translateY(8px); }
  .map-base circle:not(.map-ring) { r: 8px; }
  .map-tick, .map-origin text { font-size: 19px; }
  .map-route { stroke-width: 2.5; }
  .arch { max-width: 360px; }
  .services, .foot-inner { grid-template-columns: 1fr; }
  .faq { margin-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .logo img { width: 176px; }
  .top-inner { padding-block: 16px; }
  .nav { gap: 4px 20px; font-size: 0.9375rem; }
  .nav .nav-cta { order: -1; flex-basis: 100%; text-align: center; margin-bottom: 4px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-facts { gap: 20px; }
  .hero-facts div { flex: 1 1 0; }
  .price { font-size: 2.2rem; }
  .ledger div { font-size: 0.9375rem; }
  .contact-panel { margin-inline: calc(var(--gutter) * -1); }
}
