/* After Coffee — styles */

/* ---------- fonts: css/fonts.css (generated by build-data.mjs, fonts embedded so the page also works from disk) ---------- */

/* ---------- tokens ---------- */
:root {
  --ocean: #0C1F25;
  --deep: #123039;
  --jade: #6E9A76;
  --gold: #E2AA4B;
  --cherry: #C4432F;
  --bone: #EDE4D3;
  --bone-2: rgba(237, 228, 211, .84);
  --bone-3: rgba(237, 228, 211, .64);
  --line: rgba(237, 228, 211, .13);
  --line-2: rgba(237, 228, 211, .22);
  --g: clamp(16px, 4.6vw, 68px);          /* frame gutter = position of the vertical hairlines */
  --pad: calc(var(--g) + clamp(0px, 3.4vw, 56px)); /* content inset from the edge */
  --hdr: 72px;
  --serif: "Prata", "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, 0, 1);
  color-scheme: dark;
}
@media (max-width: 899px) { :root { --hdr: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ocean); }
body {
  margin: 0; background: var(--ocean); color: var(--bone);
  font: 300 18px/1.6 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ocean); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.mono { font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.muted { color: var(--bone-3); }
.gold { color: var(--gold); }
.ph { color: var(--gold) !important; border-bottom: 1px dashed rgba(226, 170, 75, .5); font-family: var(--sans) !important; }
.fl { display: inline-flex; vertical-align: -2px; margin-right: 10px; flex: none; }
.flag { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(237, 228, 211, .2); display: block; }
.fl-lg .flag { width: 30px; height: 20px; }

/* ---------- paper grain + frame lines ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.hdr {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: calc(var(--hdr) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px;
  padding-inline: calc(var(--g) + 22px);
  background: linear-gradient(to bottom, rgba(12, 31, 37, .78), rgba(12, 31, 37, 0));
  transition: background .5s;
}
.hdr.solid { background: rgba(12, 31, 37, .97); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 400 15px/1 var(--serif); white-space: nowrap; }
.brand-mark { height: 28.2px; width: auto; display: block; transform: translateY(-0.6px); } /* cap top of VIRTUOSO to the baseline of export */
.brand-name { display: grid; justify-items: start; align-content: center; line-height: 1; text-align: left; }
.brand-name > span { display: block; letter-spacing: var(--ls); }
.bn-main { --ls: .3em; }
.bn-sub { --ls: .6em; margin-top: 6px; font-size: .62em; color: var(--bone-2); }
.wa { position: relative; }
.wa-menu { position: absolute; right: -14px; top: calc(100% + 14px); min-width: 230px; display: grid; padding: 6px 0; background: var(--deep); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); z-index: 60; }
.wa-menu a { padding: 13px 18px; font: 400 17px/1.2 var(--sans); color: var(--bone); white-space: nowrap; transition: color .25s, background .25s; }
.wa-menu a:hover { color: var(--gold); background: rgba(237, 228, 211, .04); }
.stages { display: flex; justify-content: center; gap: clamp(14px, 2vw, 34px); }
.stages button {
  position: relative; font: 400 15px/1 var(--sans); color: var(--bone-2); padding: 10px 0; white-space: nowrap;
  transition: color .3s;
}
.stages button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.stages button:hover { color: var(--bone); }
.stages button.active { color: var(--bone); }
.stages button.active::after { transform: scaleX(1); }
.hdr-r { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; align-items: center; gap: 6px; font: 400 15px/1 var(--sans); color: var(--bone-3); }
.lang button { padding: 6px 2px; color: var(--bone-3); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--bone); }
.hdr-tg { font: 400 15px/1 var(--sans); color: var(--bone-2); position: relative; padding: 6px 0; }
.hdr-tg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.0); transform-origin: right; transition: transform .45s var(--ease); }
.hdr-tg:hover::after { transform: scaleX(1); transform-origin: left; }


@media (max-width: 899px) {
  .hdr { grid-template-columns: 1fr auto; grid-template-rows: 56px 48px; gap: 0 12px; padding-inline: 16px; }
  .brand { font-size: 14px; letter-spacing: .26em; }
  .stages {
    grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 26px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px; mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .stages::-webkit-scrollbar { display: none; }
  .stages button { font-size: 15px; padding: 12px 0 14px; }
  .hdr-r { gap: 16px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; white-space: nowrap; transition: background .35s, color .35s, border-color .35s; }
.arr { font-style: normal; display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr, a:hover > .arr { transform: translateX(5px); }
.btn-line { padding: 17px 22px 17px 26px; border: 1px solid rgba(237, 228, 211, .55); font: 400 15px/1 var(--sans); color: var(--bone); }
.btn-line:hover { background: var(--bone); color: var(--ocean); border-color: var(--bone); }
.btn-gold { padding: 13px 20px; background: var(--gold); color: var(--ocean); font: 500 15px/1 var(--sans); }
.btn-gold:hover { background: var(--bone); }
.btn-gold[disabled] { opacity: .6; cursor: progress; }
.btn-text { font: 400 15px/1 var(--sans); color: var(--bone-2); padding: 12px 0; }
.btn-text:hover { color: var(--bone); }

/* ---------- story ---------- */
.story { position: relative; height: 1100vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ocean); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#globe { z-index: 2; }
.shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 31, 37, .86) 0%, rgba(12, 31, 37, .55) 30%, rgba(12, 31, 37, 0) 56%),
    linear-gradient(to top, rgba(12, 31, 37, .6) 0%, rgba(12, 31, 37, 0) 22%);
}
.beats { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.beat {
  position: absolute; left: var(--pad); top: 50%; width: min(46vw, 760px);
  transform: translate3d(0, calc(-50% + var(--dy, 0px)), 0); opacity: 0; will-change: opacity, transform;
}
.beat.on { pointer-events: auto; }
.beat-hero { width: min(52vw, 860px); }
.display { margin: 0; font: 400 clamp(36px, 4.7vw, 78px)/1.02 var(--serif); letter-spacing: -.012em; color: var(--bone); text-wrap: balance; }
.display.xl { font-size: clamp(44px, 6.7vw, 116px); line-height: .98; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em 0 .12em; margin: -.02em 0 -.12em; }
.wi { display: inline-block; will-change: transform; }
.eyebrow { margin: 0 0 28px; color: var(--bone-2); font-size: 18px; }
.lede { margin: 26px 0 0; max-width: 36ch; font: 300 clamp(17px, 1.35vw, 21px)/1.55 var(--sans); color: var(--bone-2); }
.hero-row { display: flex; align-items: center; gap: 30px; margin-top: 42px; flex-wrap: wrap; }
.hint { color: var(--bone-3); font-size: 16px; transition: opacity .6s; }
body.scrolled .hint { opacity: 0; }

/* hero entrance on first load */
.beat-hero .wi { animation: rise 1.25s var(--ease) backwards; animation-delay: calc(.25s + var(--i) * 75ms); }
.beat-hero .eyebrow, .beat-hero .lede, .beat-hero .hero-row { animation: fadeUp 1.1s var(--ease) backwards; }
.beat-hero .eyebrow { animation-delay: .1s; }
.beat-hero .lede { animation-delay: .75s; }
.beat-hero .hero-row { animation-delay: .9s; }
body:not(.ready) .beat-hero { opacity: 0 !important; }
@keyframes rise { from { transform: translate3d(0, 108%, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

/* meters */
.meter { margin-top: 30px; display: grid; gap: 8px; }
.meter-l { color: var(--bone-3); }
.meter-v { font: 400 clamp(56px, 6vw, 104px)/.9 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.meter-v small { font-size: .42em; margin-left: 6px; color: var(--bone-2); }

.screens { margin-top: 28px; display: flex; align-items: baseline; gap: 26px; }
.screens-l { color: var(--bone-3); font-size: 16px; }
.screens b { font: 400 clamp(34px, 3.4vw, 54px)/1 var(--serif); color: var(--bone); opacity: .22; transition: opacity .6s, color .6s; }
.screens b.lit { opacity: 1; color: var(--gold); }

.scale { margin-top: 34px; display: grid; grid-template-columns: repeat(3, auto); gap: 0; justify-content: start; }
.sc { padding-right: 36px; opacity: .25; transition: opacity .7s; }
.sc:last-child { padding-right: 0; }
.sc span { display: block; color: var(--bone-3); margin-bottom: 6px; font-size: 16px; }
.sc b { font: 400 clamp(22px, 2.1vw, 34px)/1.1 var(--serif); white-space: nowrap; }
.sc.lit { opacity: 1; }


/* routes ui (inside the last beat) */
.beat-routes { width: min(42vw, 640px); top: calc(var(--hdr) + clamp(20px, 6vh, 72px)); transform: translate3d(0, var(--dy, 0px), 0); }
.beat-routes .display { font-size: clamp(34px, 3.9vw, 64px); }
@media (min-width: 900px) and (max-height: 820px) {
  .beat-routes { top: calc(var(--hdr) + 22px); }
  .beat-routes .display { font-size: clamp(30px, 3.2vw, 48px); }
  .routes-ui { margin-top: 18px; }
  .route-list button { padding: 8px 0; font-size: 14px; }
  .route-info { margin-top: 14px; min-height: 60px; }
  .route-foot { margin-top: 14px; }
}
.routes-ui { margin-top: 30px; opacity: var(--ui, 0); transform: translate3d(0, calc((1 - var(--ui, 0)) * 18px), 0); pointer-events: none; }
.stage.ui-on .routes-ui { pointer-events: auto; }
.origin-toggle { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.origin-toggle button { color: var(--bone-3); padding: 6px 0; position: relative; font-size: 17px; display: inline-flex; align-items: center; }
.origin-toggle button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.origin-toggle button[aria-pressed="true"] { color: var(--bone); }
.origin-toggle button[aria-pressed="true"]::after { transform: scaleX(1); }
.route-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.route-list button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left;
  padding: 11px 0; border-top: 1px solid var(--line); font: 400 16px/1.25 var(--sans); color: var(--bone-2);
  transition: color .3s, padding .45s var(--ease);
}
.route-list button em { font-style: normal; font-size: 15px; color: var(--bone-3); }
.rl-name { display: inline-flex; align-items: center; }
.route-list button:hover { color: var(--bone); }
.route-list button.active { color: var(--gold); }
.route-list .all { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
.route-info { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: start; min-height: 74px; }
.route-info.is-all { grid-template-columns: 1fr; }
.route-info.is-all .ri-dist, .route-info.is-all .ri-stops { display: none; }
.ri-dist { display: flex; align-items: flex-end; gap: 12px; }
.ri-dist b { font: 400 clamp(30px, 2.8vw, 46px)/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ri-dist .mono { font-size: 15px; line-height: 1.4; color: var(--bone-2); }
.ri-stops { list-style: none; margin: 0; padding: 2px 0 0; color: var(--bone-3); font-size: 16px; line-height: 1.7; }
.ri-stops li { display: inline; }
.ri-stops i { font-style: normal; color: var(--bone-3); margin-right: 4px; }
.ri-stops li { transition: color .4s; }
.ri-stops li.lit { color: var(--bone); }
.ri-all { display: grid; grid-template-columns: 1.1fr 1.3fr .9fr; gap: 0 24px; }
.ri-all[hidden] { display: none; }
.ri-all-t { grid-column: 1 / -1; margin: 0 0 12px; font: 400 22px/1.2 var(--serif); }
.ri-all div { display: grid; align-content: start; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.ri-all .muted { font-size: 15px; }
.ri-all b { font: 400 16px/1.35 var(--sans); display: grid; gap: 6px; }
.ctry { display: inline-flex; align-items: center; white-space: nowrap; }
.route-foot { margin-top: 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.route-foot .mono { font-size: 15px; }

/* ---------- story on phones ---------- */
@media (max-width: 899px), (max-aspect-ratio: 19/20) {
  .story { height: 1000vh; }
  .shade { background: linear-gradient(to top, rgba(12, 31, 37, .97) 0%, rgba(12, 31, 37, .9) 26%, rgba(12, 31, 37, 0) 50%); }
  .beat, .beat-hero, .beat-routes { left: 16px; right: 16px; width: auto; top: auto; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translate3d(0, var(--dy, 0px), 0); }
  .display { font-size: clamp(30px, 8.6vw, 46px); }
  .display.xl { font-size: clamp(40px, 11.6vw, 60px); }
  .eyebrow { margin-bottom: 16px; font-size: 15px; }
  .lede { margin-top: 16px; font-size: 16px; }
  .hero-row { margin-top: 26px; }
  .hero-row .btn-line { width: 100%; justify-content: space-between; }
  .hint { display: none; }
  .meter { margin-top: 20px; }
  .meter-v { font-size: 56px; }
  .scale { grid-template-columns: repeat(3, 1fr); }
  .sc { padding-right: 12px; }
  .sc b { font-size: 17px; white-space: normal; }
  .beat-routes { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .beat-routes .display { font-size: clamp(26px, 7.4vw, 36px); }
  .routes-ui { margin-top: 14px; }
  .origin-toggle { margin-bottom: 8px; }
  .route-list { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .route-list::-webkit-scrollbar { display: none; }
  .route-list button { flex: none; border: 1px solid var(--line-2); padding: 10px 14px; font-size: 14px; }
  .route-list button em { display: none; }
  .route-list button.active { border-color: var(--gold); }
    .route-list .all { border-bottom: 1px solid var(--line-2); }
  .route-info { margin-top: 14px; min-height: 0; grid-template-columns: 1fr; gap: 8px; }
  .ri-dist b { font-size: 28px; }
  .ri-stops { font-size: 15px; }
  .ri-all-t { font-size: 19px; }
  .route-foot { margin-top: 14px; gap: 12px; }
  .route-foot .btn-gold { width: 100%; justify-content: space-between; }
}

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(110px, 16vh, 200px) var(--pad); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(48px, 8vh, 96px); }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sec-head.row .lede { margin: 0; }
.sec-label { margin: 0 0 22px; color: var(--bone-3); font-size: 17px; }
.sec-title { margin: 0; max-width: 17ch; font: 400 clamp(38px, 5.2vw, 88px)/1.02 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.sec-title.md { font-size: clamp(32px, 3.6vw, 60px); max-width: 20ch; }
.sec-title.xl { font-size: clamp(48px, 8.4vw, 150px); line-height: .96; max-width: 14ch; }

/* reveal (CSS-driven, for sections below the film) */
[data-reveal] .wi { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i) * 60ms); }
[data-reveal].in .wi { transform: none; }
[data-reveal]:not(.sec-head) { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
[data-reveal].in:not(.sec-head) { opacity: 1; transform: none; }
.sec-head[data-reveal] .sec-label, .sec-head[data-reveal] > .lede { opacity: 0; transition: opacity 1s var(--ease) .2s; }
.sec-head[data-reveal].in .sec-label, .sec-head[data-reveal].in > .lede { opacity: 1; }

/* origins */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.origin { padding: 40px clamp(20px, 4vw, 72px) 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; }
.origin + .origin { border-left: 1px solid var(--line); }
.origin-beans { position: relative; width: min(100%, 460px); aspect-ratio: 5 / 4; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; perspective: 900px; margin-top: 10px; }
.bean-slot { grid-area: 1 / 1; width: 82%; display: block; }
.bean-turn {
  position: relative; display: block; aspect-ratio: 1;
  transform: rotateY(calc(var(--turn, 0) * 9deg)) rotate(calc(var(--turn, 0) * 2deg));
  filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .55)) drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
  animation: beanFloat 7s ease-in-out infinite alternate;
}
.bv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.origin-beans.pair .bean-slot-0 { width: 74%; transform: translate(-20%, -4%); z-index: 1; }
.origin-beans.pair .bean-slot-1 { width: 60%; transform: translate(38%, 12%); }
.origin-beans.pair .bean-slot-1 .bean-turn { animation-delay: -3.5s; }
.origin-beans.is-3d .bean-slot { display: none; }
.bean-3d { grid-area: 1 / 1; width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .55)) drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
@keyframes beanFloat { from { translate: 0 -7px; } to { translate: 0 7px; } }
.bean-cap { margin: 22px auto 0; max-width: 34ch; color: var(--bone-3); font-size: 16px; line-height: 1.5; }
.origin-body { width: min(100%, 480px); }
.origin-kind { margin: 0; display: inline-flex; align-items: center; font-size: 18px; }
.origin-body h3 { margin: 12px 0 30px; font: 400 clamp(40px, 4.4vw, 72px)/1 var(--serif); }
.origin-body dl { margin: 0; display: grid; }
.origin-body dl div { display: grid; justify-items: center; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); text-align: center; }
.origin-body dt { color: var(--bone-3); }
.origin-body dd { margin: 0; font-size: 18px; }
.coord { margin: 24px 0 0; color: var(--bone-3); }

/* documents */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }
.docs-fig { margin: 0; position: sticky; top: calc(var(--hdr) + 48px); }
.docs-img { overflow: hidden; aspect-ratio: 4 / 5; clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease); }
.docs-fig.in .docs-img { clip-path: inset(0 0 0 0); }
.docs-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.18); transition: transform 2.4s var(--ease); }
.docs-fig.in .docs-img img { transform: scale(1.04); }
.docs-fig figcaption { margin-top: 16px; color: var(--bone-3); }
.doc-list { list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; --prog: 0; }
.doc-list::before, .doc-list::after {
  content: ""; position: absolute; left: 17px; top: 30px; bottom: 30px; width: 4px;
  background-image: radial-gradient(circle at 2px 2px, currentColor 1.3px, transparent 1.8px);
  background-size: 4px 10px; background-repeat: repeat-y;
}
.doc-list::before { color: rgba(237, 228, 211, .26); z-index: 0; }
.doc-list li .bean { z-index: 1; }
.doc-list::after { z-index: 0; color: var(--gold); clip-path: inset(0 0 calc((1 - var(--prog)) * 100%) 0); }
.doc-list li { position: relative; padding: 17px 0; }
.bean {
  position: absolute; left: -58px; top: 50%; width: 26px; height: 32px; display: grid; place-items: center;
  background: var(--ocean); transform: translateY(-50%) rotate(-24deg) scale(.86); transition: transform .7s var(--ease);
}
.bean svg { width: 20px; height: 25px; overflow: visible; }
.bean ellipse { fill: transparent; stroke: rgba(237, 228, 211, .45); stroke-width: 1.3; transition: fill .6s, stroke .6s; }
.bean path { fill: none; stroke: rgba(237, 228, 211, .45); stroke-width: 1.3; stroke-linecap: round; transition: stroke .6s; }
.doc-list li.checked .bean { transform: translateY(-50%) rotate(-24deg) scale(1); }
.doc-list li.checked .bean ellipse { fill: #93b58f; stroke: #93b58f; }
.doc-list li.checked .bean path { stroke: #2f4f37; }
.doc-t { font: 300 clamp(18px, 1.5vw, 23px)/1.35 var(--sans); color: var(--bone-2); transition: color .5s; }
.doc-t em { display: block; font-style: normal; margin-top: 4px; font-size: 16px; color: var(--bone-3); }
.doc-list li.checked .doc-t { color: var(--bone); }
.ph-note { margin: 22px 0 0; }

/* stock: sample tags on jute */
.stock-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.stock-head { margin-bottom: 0; }
.stock-head .lede { margin-top: 26px; }
.stock-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; opacity: 0; transition: opacity 1s var(--ease) .35s; }
.stock-head.in .stock-cta { opacity: 1; }
.stock-cta .btn-line { padding: 13px 20px; }
.stock-note { margin: 18px 0 0; color: var(--bone-2); font-size: 18px; }
.stock-note:empty { display: none; }
/* empty list: no tag, one centred block with the two actions up front */
.stock .stock-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.stock.is-empty .stock-stage { display: none; }
.stock .stock-head { max-width: 900px; }
.stock .sec-title { font-size: clamp(48px, 7.4vw, 128px); max-width: none; margin-inline: auto; }
.stock .lede { margin-inline: auto; font-size: clamp(19px, 1.6vw, 24px); }
.stock .stock-cta { justify-content: center; gap: 18px; margin-top: 48px; }
.stock .stock-cta .btn { padding: 22px 34px; font-size: 18px; gap: 18px; }
.stock .stock-cta .btn-gold { font-weight: 500; }
.stock-stage { position: relative; width: 100%; margin-top: clamp(56px, 8vh, 96px); }
.stock-jute { display: none; }
.stock-jute img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 85%; filter: brightness(.62) saturate(.9);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 38%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 38%, transparent 100%); }
.tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); text-align: left; }
.coffee { padding: 32px clamp(18px, 2.4vw, 40px) 36px; border-bottom: 1px solid var(--line); }
.coffee:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.coffee-origin { margin: 0; display: flex; align-items: center; color: var(--bone-2); font-size: 16px; }
.coffee h3 { margin: 14px 0 22px; font: 400 clamp(28px, 2.4vw, 38px)/1.1 var(--serif); }
.coffee dl { margin: 0; }
.coffee dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.coffee dt { color: var(--bone-3); font-size: 15px; white-space: nowrap; }
.coffee dd { margin: 0; text-align: right; font-size: 17px; }

/* how we work */
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.how-item { padding: 36px clamp(18px, 2.4vw, 40px) 0; }
.how-item + .how-item { border-left: 1px solid var(--line); }
.how-k { margin: 0; color: var(--bone-3); font-size: 17px; }
.how-big { display: block; margin: 14px 0 18px; font: 400 clamp(32px, 3vw, 52px)/1.05 var(--serif); color: var(--gold); white-space: nowrap; }
.how-d { margin: 0; color: var(--bone-2); font-size: 17px; max-width: 30ch; }

/* final */
.final { overflow: hidden; padding-bottom: clamp(90px, 12vh, 160px); }
.final-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.final-bg img { position: absolute; right: 0; top: 0; width: min(72vw, 1300px); height: 78%; object-fit: cover; object-position: 70% 50%; opacity: .5;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 30%, transparent 75%); }
.final .sec-head { position: relative; text-align: center; }
.final .sec-title.xl { margin-inline: auto; }
.steps { list-style: none; margin: 0 0 clamp(70px, 10vh, 120px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.steps li { padding: 46px clamp(20px, 3vw, 52px) 0; position: relative; text-align: center; }
.steps li + li { border-left: 1px solid var(--line); }
.step-n { display: block; font: 400 clamp(48px, 4.4vw, 72px)/1 var(--serif); color: var(--gold); }
.steps h3 { margin: 22px 0 14px; font: 400 clamp(24px, 2.2vw, 36px)/1.1 var(--serif); }
.steps p { margin: 0 auto; color: var(--bone-2); max-width: 30ch; }
.final-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.direct { display: grid; gap: 0; position: sticky; top: calc(var(--hdr) + 40px); }
.direct > .mono { margin: 0 0 18px; font-size: 18px; color: var(--bone-2); }
.direct-link { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-2); transition: color .3s; }
.direct > .direct-link:last-child { border-bottom: 1px solid var(--line-2); }
.direct-link .mono { color: var(--bone-2); font-size: 17px; }
.direct-link b { font: 400 clamp(18px, 1.55vw, 24px)/1.2 var(--serif); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.direct-link b.ph { font: 400 18px/1.3 var(--sans); }
.direct-link:hover { color: var(--gold); }

.wizard { background: var(--deep); border: 1px solid var(--line-2); padding: clamp(24px, 3vw, 48px); }
.wz-top { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; color: var(--bone-3); font-size: 17px; }
.wz-top b { color: var(--bone); font-weight: 400; }
.wz-top.done { visibility: hidden; }
.wz-steps { position: relative; min-height: 330px; }
.wz-step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.wz-step.on { display: block; animation: fadeUp .7s var(--ease); }
.wz-step legend { padding: 0; margin-bottom: 26px; font: 400 clamp(26px, 2.4vw, 38px)/1.1 var(--serif); }
.opts { display: grid; border-top: 1px solid var(--line); }
.opts-2 { grid-template-columns: 1fr 1fr; column-gap: 26px; }
.opt { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: color .3s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { font: 400 19px/1.3 var(--sans); color: var(--bone-2); display: inline-flex; align-items: center; }
.opt:hover b { color: var(--bone); }
.opt:has(input:checked) b { color: var(--gold); }
.opt:has(input:focus-visible) { outline: 1px solid var(--gold); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field .mono { color: var(--bone-3); }
.field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0 12px; color: var(--bone); font: 300 19px/1.3 var(--sans); border-radius: 0; transition: border-color .3s; }
.field input:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; margin-top: 26px; font-size: 16px; color: var(--bone-2); cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.consent i { width: 18px; height: 18px; border: 1px solid var(--line-2); margin-top: 2px; position: relative; transition: background .3s, border-color .3s; }
.consent input:checked + i { background: var(--gold); border-color: var(--gold); }
.consent input:checked + i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ocean); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.consent input:focus-visible + i { outline: 1px solid var(--gold); outline-offset: 3px; }
.consent a { color: var(--bone); border-bottom: 1px solid var(--line-2); }
.wz-err { min-height: 20px; margin: 18px 0 0; color: #e07a66; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.wz-done { animation: fadeUp .8s var(--ease); }
.wz-done h3 { margin: 0 0 16px; font: 400 clamp(32px, 3vw, 52px)/1.05 var(--serif); color: var(--gold); }
.wz-done p { color: var(--bone-2); max-width: 44ch; }
.wz-done .demo { color: var(--gold); border: 1px dashed rgba(226, 170, 75, .5); padding: 10px 12px; display: inline-block; }
.wz-done .btn { margin-top: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: clamp(60px, 10vh, 120px) var(--pad) 40px; overflow: hidden; }
.foot-mark img { width: min(300px, 62vw); height: auto; display: block; }
.foot-grid { margin-top: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: 30px; align-items: start; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-slogan { margin: 0; font: 400 24px/1.2 var(--serif); max-width: 18ch; }
.foot-legal { margin: 0; display: grid; gap: 8px; color: var(--bone-2); }
.foot-legal dd { margin: 0; }
.foot-links { display: grid; gap: 10px; }
.foot-links a { color: var(--bone-2); transition: color .3s; }
.foot-links a:hover { color: var(--gold); }

@media (max-width: 899px) {
  .sec { padding: 96px 16px; }
  .sec-title { font-size: clamp(34px, 9.6vw, 52px); }
  .sec-title.md { font-size: clamp(28px, 8vw, 40px); }
  .sec-title.xl { font-size: clamp(44px, 13vw, 72px); }
  .origin-grid { grid-template-columns: 1fr; }
  .origin, .origin + .origin { padding: 32px 0 48px; border-left: 0; }
  .origin + .origin { border-top: 1px solid var(--line); }
  .origin-beans { width: min(100%, 320px); margin-inline: auto; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-fig { position: relative; top: 0; }
  .docs-img { aspect-ratio: 16 / 10; }
  .doc-list li { padding: 14px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 34px 0 36px; border-left: 0; border-bottom: 1px solid var(--line); }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-stage { min-height: 520px; margin: 0 -16px; }
  .tags { padding: 100px 16px 48px; }
  .final-grid { grid-template-columns: 1fr; }
  .direct { position: relative; top: 0; }
  .wizard { margin: 0 -16px; border-left: 0; border-right: 0; padding: 28px 16px; }
  .opts-2 { grid-template-columns: 1fr; }
  .wz-steps { min-height: 0; }
  .final-bg img { width: 100%; height: 46%; opacity: .35; }
  .foot { padding: 64px 16px 32px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* reduced motion */
.reduced *, .reduced *::before, .reduced *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .2s !important; transition-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hint-dot::after { animation: none; } }

@media (max-width: 899px) {
  .stock .stock-cta { flex-direction: column; align-self: stretch; width: 100%; }
  .stock .stock-cta .btn { width: 100%; justify-content: space-between; padding: 20px 24px; }
  .stock .stock-head { width: 100%; }
}

/* short phones: give the routes globe more room */
@media (max-width: 899px) and (max-height: 760px) {
  .beat-routes .display { font-size: 25px; }
  .routes-ui { margin-top: 10px; }
  .origin-toggle { margin-bottom: 4px; }
  .route-info { margin-top: 10px; }
  .ri-dist b { font-size: 24px; }
  .route-foot { margin-top: 10px; }
  .route-foot .mono { display: none; }
}

@media (max-width: 1100px) {
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coffee:not(:nth-child(3n)) { border-right: 0; }
  .coffee:nth-child(odd) { border-right: 1px solid var(--line); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-item:nth-child(3) { border-left: 0; }
  .how-item { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .tags { grid-template-columns: 1fr; }
  .coffee, .coffee:nth-child(odd) { border-right: 0; padding-inline: 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-item, .how-item + .how-item { border-left: 0; padding-inline: 0; }
  .brand-mark { height: 25.2px; }
  .brand { gap: 9px; font-size: 13px; }
}

@media (min-width: 900px) and (max-width: 1320px) {
  .stages { gap: 16px; }
  .stages button { font-size: 14px; }
}

/* WhatsApp choosers */
.wa-menu { left: auto; }
.wa-menu a { display: flex; align-items: center; gap: 12px; }
.wa-center { display: inline-block; }
.wa-center .wa-menu { right: 50%; transform: translateX(50%); }
.lbl-short { display: none; }
@media (max-width: 1320px) { .hdr-cta .lbl-full { display: none; } .hdr-cta .lbl-short { display: inline; } }
@media (max-width: 899px) { .hdr-cta .wa-btn { padding: 9px 12px; font-size: 14px; } }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.direct-link .mono { display: inline-flex; align-items: center; gap: 10px; }

/* footer: one compact row */
.foot { padding: clamp(48px, 7vh, 72px) var(--pad) 36px; }
.foot .foot-grid { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 72px); align-items: center; }
.foot-logo { width: 120px; height: auto; display: block; }
.foot-copy { display: grid; gap: 10px; }
.foot-slogan { margin: 0; font: 400 clamp(22px, 1.9vw, 30px)/1.2 var(--serif); max-width: 20ch; }
.foot-rights { margin: 0; color: var(--bone-3); font-size: 15px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-list li { display: flex; align-items: center; gap: 12px; color: var(--bone-2); font-size: 16px; }
.foot-list .ico { color: var(--bone-3); }
.foot-list a { color: var(--bone-2); transition: color .3s; }
.foot-list a:hover { color: var(--gold); }
@media (max-width: 899px) {
  .foot .foot-grid { grid-template-columns: 1fr; gap: 26px; justify-items: start; }
  .foot-logo { width: 96px; }
}

/* WhatsApp logo on the gold WhatsApp buttons (dark, like the label) */
.wa-btn { gap: 14px; }
.wa-logo, .wa-mask {
  display: inline-block; flex: none; background: currentColor;
  -webkit-mask: url(../assets/brand/whatsapp.png) center / contain no-repeat; mask: url(../assets/brand/whatsapp.png) center / contain no-repeat;
}
.wa-logo { width: 20px; height: 20px; transition: transform .45s var(--ease); }
.wa-btn:hover .wa-logo, .wa-btn[aria-expanded="true"] .wa-logo { transform: scale(1.08); }
.stock .stock-cta .wa-logo { width: 24px; height: 24px; }
