/* Kitsu Coffee — palette, type and motion extracted from Kitsu_Coffee_-Introduction.pdf */
:root {
  --olive-900: #2E3318;
  --olive-800: #353A1D;
  --olive-700: #454B2A;
  --cream:     #F5ECE0;
  --tan:       #C4A882;
  --caramel:   #D4A574;
  --fox:       #E0704A;

  --cream-72: rgb(245 236 224 / .72);
  --cream-48: rgb(245 236 224 / .48);
  --cream-16: rgb(245 236 224 / .16);
  --olive-72: rgb(46 51 24 / .72);
  --olive-16: rgb(46 51 24 / .16);

  --serif: "Fraunces", "Noto Serif KR", Georgia, serif;
  --sans: "DM Sans", "Noto Sans KR", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(96px, 13vw, 176px);
  --max: 1296px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--olive-800);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ko"] body { word-break: keep-all; }
/* Japanese: its own CJK fonts (kanji shapes differ from Korean) and strict line breaking. */
html[lang="ja"] { --serif: "Fraunces", "Noto Serif JP", Georgia, serif; --sans: "DM Sans", "Noto Sans JP", system-ui, sans-serif; }
html[lang="ja"] body { line-break: strict; }
html[lang="ja"] :is(.h2, h1) em { font-style: normal; } /* no italics in Japanese; the accent colour carries the emphasis */
html[lang="ja"] :is(.pd__list, .pd__note) b::after { content: "："; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 28px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
/* Fox mark instead of the rule (simplified mascot head; eyes, ears and nose are
   cut out with evenodd so the mask stays a single shape). On entering the screen
   it peeks up once: rises from a slight tilt and settles. Purpose: delight on a
   marketing page, seen occasionally; plays once, never loops. */
.eyebrow--fox::before {
  width: 22px; height: 22px; flex: none;
  background: var(--fox);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4.3 2.4 9.2 6.9h5.6l4.9-4.5.5 7.1 2.3 3.6-6.6 3.1L12 21.6l-3.9-5.4-6.6-3.1 2.3-3.6.5-7.1Zm1.5 2.9 2 1.9-1.8 1.6-.2-3.5Zm12.4 0-2 1.9 1.8 1.6.2-3.5ZM7.4 11.9c.7-.9 1.9-1.2 2.9-.7-.4 1-1.6 1.5-2.9.7Zm9.2 0c-.7-.9-1.9-1.2-2.9-.7.4 1 1.6 1.5 2.9.7ZM10.9 19h2.2L12 20.6 10.9 19Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4.3 2.4 9.2 6.9h5.6l4.9-4.5.5 7.1 2.3 3.6-6.6 3.1L12 21.6l-3.9-5.4-6.6-3.1 2.3-3.6.5-7.1Zm1.5 2.9 2 1.9-1.8 1.6-.2-3.5Zm12.4 0-2 1.9 1.8 1.6.2-3.5ZM7.4 11.9c.7-.9 1.9-1.2 2.9-.7-.4 1-1.6 1.5-2.9.7Zm9.2 0c-.7-.9-1.9-1.2-2.9-.7.4 1 1.6 1.5 2.9.7ZM10.9 19h2.2L12 20.6 10.9 19Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: 50% 90%;
}
.js .eyebrow--fox.is-in::before { animation: fox-peek .7s var(--ease-out) .25s backwards; }
@keyframes fox-peek {
  0%   { opacity: 0; transform: translateY(6px) rotate(-14deg) scale(.9); }
  55%  { opacity: 1; transform: translateY(-2px) rotate(5deg); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .eyebrow--fox.is-in::before { animation: none; }
}
html:is([lang="ko"], [lang="ja"]) .eyebrow { letter-spacing: .12em; }

.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--caramel); }
html:is([lang="ko"], [lang="ja"]) .h2 { letter-spacing: -.02em; line-height: 1.15; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 16px/1 var(--sans);
  padding: 18px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--cream); color: var(--olive-900); text-decoration: none;
  transition: transform .16s var(--ease-out), background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .2s var(--ease-out); }
.btn--dark { background: var(--olive-900); color: var(--cream); }
/* Secondary action over photos: outlined, sits beside the solid button. */
.btn--ghost { background: rgb(245 236 224 / .08); color: #F5ECE0; box-shadow: inset 0 0 0 1px rgb(245 236 224 / .7); transition: transform .16s var(--ease-out), background-color .2s ease; }
.link {
  font: 500 16px/1 var(--sans); color: inherit; text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid var(--tan);
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgb(46 51 24 / .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--cream-16);
}
/* Wordmark left, links right after it, language pushed right (after the
   paisacoffee.net header). */
.nav {
  display: flex; align-items: center; gap: clamp(28px, 3.6vw, 56px);
  padding: 20px var(--gutter);
  transition: padding .3s var(--ease-out);
}
.header.is-scrolled .nav { padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.3vw, 32px); line-height: 1;
  font-variant-caps: small-caps; letter-spacing: .015em; white-space: nowrap;
}
.nav__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 34px); }
.nav__links a {
  font-size: 13px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
  color: var(--cream-72); text-decoration: none; transition: color .2s ease;
}
html:is([lang="ko"], [lang="ja"]) .nav__links a { font-size: 14px; letter-spacing: .02em; }
.lang { display: inline-flex; border: 1px solid var(--cream-16); border-radius: 999px; padding: 3px; }
.lang :is(button, a) {
  text-decoration: none; display: inline-block;
  white-space: nowrap;
  font: 500 13px/1 var(--sans); color: var(--cream-72);
  background: none; border: 0; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang :is(button[aria-pressed="true"], a[aria-current="page"]) { background: var(--cream); color: var(--olive-900); }
.menu-btn {
  display: none;
  background: none; border: 1px solid var(--cream-16); color: var(--cream);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: 88px;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  transform: scale(1.06);
  animation: settle 2.4s var(--ease-out) both;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(46 51 24 / .92) 0%, rgb(53 58 29 / .70) 38%, rgb(53 58 29 / .10) 70%),
    linear-gradient(0deg, rgb(53 58 29 / 1) 0%, rgb(46 51 24 / 0) 45%);
}
.hero__body {
  align-self: center; padding: 16px var(--gutter) min(48px, 4svh);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(40px, 6vw, 96px);
}
.hero__intro { max-width: 640px; }
/* The logo artwork sits on its own cream ground; a disc keeps that ground intentional over the photo. */
.hero__logo {
  width: clamp(128px, min(17vw, 22svh), 240px); aspect-ratio: 1;
  margin: 0 0 min(32px, 3svh); border-radius: 50%; overflow: hidden;
  background: #F8F4EA;
  box-shadow: 0 0 0 6px rgb(245 236 224 / .14), 0 24px 60px rgb(20 22 10 / .45);
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.lede {
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--cream-72);
  max-width: 30em; margin: 0 0 40px;
}
.hero__reel { margin: 0; width: min(20vw, 28svh, 300px); }
.hero__reel-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: var(--olive-900);
  outline: 1px solid var(--cream-16); outline-offset: 6px;
  box-shadow: 0 30px 80px rgb(20 22 10 / .5);
}
.hero__reel-frame img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .6s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__reel figcaption { margin-top: 18px; font-size: 13px; color: var(--cream-72); text-align: center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: 0 var(--gutter) 40px;
}
.meta { display: flex; flex-wrap: wrap; gap: 28px 48px; font-size: 14px; color: var(--cream-72); }
.meta strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--cream); margin-bottom: 4px; }
.origin { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.origin__img {
  width: 180px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  outline: 1px solid var(--cream-16); outline-offset: 4px;
}
.origin__img img { width: 100%; height: 100%; object-fit: cover; }
.origin__cap { font-size: 13px; line-height: 1.5; color: var(--cream-72); max-width: 12em; }
.origin__cap b { color: var(--cream); font-weight: 500; }

/* ---------- 2. About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 112px); align-items: center;
}
.about__statement {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2vw, 29px); line-height: 1.38; letter-spacing: -.015em;
  margin: 40px 0 0;
  color: var(--cream-72); /* same paragraph colour as the rest of the page */
}
.about__sig { margin-top: 40px; display: flex; gap: 48px; font-size: 14px; color: var(--cream-72); }
.about__sig strong { display: block; color: var(--cream); font-weight: 500; font-size: 15px; }
.frames { position: relative; padding-bottom: 18%; }
.frame { border-radius: 6px; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frames__main { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; }
.frames__main img { object-position: 30% center; }
.frames__inset {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4;
  outline: 10px solid var(--olive-800);
}
.frames__cap {
  position: absolute; right: 0; bottom: 0; width: 44%;
  font-size: 13px; color: var(--cream-72); line-height: 1.5;
}

/* ---------- 3. Coffees (light: home preview + products page) ---------- */
.featured { background: var(--cream); color: var(--olive-900); }
.featured__all { margin-top: 64px; display: flex; justify-content: center; }
.lot__process {
  justify-self: start;
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--olive-16);
}
.lot__process[data-process="natural"] { color: #9A4A2C; border-color: rgb(224 112 74 / .4); }
.terms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 64px; font-size: 14px; color: var(--olive-72);
}
.terms h3 { font: 500 14px/1.4 var(--sans); color: var(--olive-900); margin: 0 0 8px; }
.terms p { margin: 0; }
.terms p + p { margin-top: 8px; }
.terms__methods { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.terms__methods li { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--olive-900); box-shadow: inset 0 0 0 1px var(--olive-16); }
.menu__ask {
  margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--olive-16);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.menu__ask p { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; margin: 0; max-width: 30em; letter-spacing: -.01em; }

/* ---------- Products page ---------- */
.header.header--solid .nav { padding-top: 12px; padding-bottom: 12px; }
.nav__links a[aria-current="page"] { color: var(--cream); }
.shop {
  background: var(--cream); color: var(--olive-900);
  padding: calc(68px + clamp(56px, 8vw, 112px)) 0 var(--section);
}
.shop .eyebrow, .featured .eyebrow { color: var(--olive-72); }
.shop .h2 em, .featured .h2 em { color: var(--fox); }
.shop__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; }
.shop__intro { max-width: 26em; color: var(--olive-72); margin: 0; }
.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(20px, 3vw, 40px);
}
.product { display: grid; gap: 14px; justify-items: start; text-decoration: none; color: inherit; }
.product__img { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--olive-16); }
.product__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform 1.2s var(--ease-out); }
.product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; margin-top: 6px; }
.product__name { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.product__price { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product__price small { font-family: var(--sans); font-size: 12px; color: var(--olive-72); margin-left: 6px; letter-spacing: 0; }
.product__price { text-align: right; }
.product__price .krw { display: block; margin: 2px 0 0; font-size: 13px; }
.shop__fx { margin: 48px 0 0; font-size: 13px; color: var(--olive-72); }
.shop__fx-rate { white-space: nowrap; margin-left: 6px; opacity: .8; }
.shop__fx a { color: inherit; }
.shop .terms { margin-top: 72px; }

/* Availability filter + status badges (catalogue built from coffees.json). */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 36px; }
.filters button {
  font: 500 14px/1 var(--sans); color: var(--olive-900); cursor: pointer;
  padding: 10px 16px; border-radius: 999px; border: 0; background: transparent;
  box-shadow: inset 0 0 0 1px var(--olive-16);
  transition: background-color .2s ease, color .2s ease;
}
.filters button[aria-pressed="true"] { background: var(--olive-900); color: #F5ECE0; box-shadow: none; }
.filters__n { opacity: .6; font-variant-numeric: tabular-nums; }
.products__empty, .products__error { margin: 8px 0 0; color: var(--olive-72); }
.products__error a { color: inherit; }
.products li[hidden] { display: none; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  font: 600 12px/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--in-stock { background: #E3F0E4; color: #22663A; }
.status--out-of-stock { background: #E7E5E0; color: #5E5E58; }
.status--coming-soon { background: #F5E6C4; color: #845A0C; }
.product__img { position: relative; }
.product__img .status { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgb(20 22 10 / .15); }
/* Out of stock: still browsable, visibly quieter. */
.products li[data-status="out-of-stock"] .product__img img { opacity: .55; filter: grayscale(.6); }
.products li[data-status="out-of-stock"] :is(.product__name, .product__price, .lot__process) { opacity: .6; }
.pd__crumb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd[data-status="out-of-stock"] .pd__img img { filter: grayscale(.5); opacity: .75; }

/* Coffee detail: one layout for all six, shown one at a time inside .pdv.
   The photo stays in view while the spec sheet scrolls past it. */
.pd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.pd[hidden] { display: none; }
.pd__img { position: sticky; top: calc(68px + 24px); aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--olive-16); }
.pd__img img { width: 100%; height: 100%; object-fit: cover; }
.pd__body { padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; }
.pd__name-sub { display: block; margin-top: 10px; font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--olive-72); }
.hero__title { font-size: 13px; line-height: 1.5; }
.about__where { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--cream-16); max-width: 34em; }
.about__where h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.about__where p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cream-72); }
/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.faq__list { border-top: 1px solid var(--cream-16); }
.faq__item { border-bottom: 1px solid var(--cream-16); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 400; font-size: 24px; line-height: 1; color: var(--fox); transition: transform .2s var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 24px; max-width: 40em; font-size: 16px; line-height: 1.7; color: var(--cream-72); }
.faq__item p a { color: var(--cream); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }
.pd__name { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
/* Spec-sheet layout (after paisacoffee.net product pages): muted price line under
   the title, one bulleted list with bold inline labels, then a dashed box with
   the fine print. */
.pd__crumb { margin: 0 0 14px; font-size: 13px; color: var(--olive-72); }
.pd__line { margin: 0 0 28px; font-size: 17px; color: var(--olive-72); }
.pd__line strong { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -.02em; color: var(--olive-900); font-variant-numeric: tabular-nums; }
/* Size as a compact tag under the price (after paisacoffee.net product pages). */
.pd__size { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -12px 0 30px; }
.pd__size-label { font-size: 13px; color: var(--olive-72); }
.pd__size-tag {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--olive-900); background: #FBF8F2;
  box-shadow: inset 0 0 0 1px rgb(46 51 24 / .3);
}
.pd__size-tag { cursor: default; }
/* Clickable size tags + sample button (they prefill the inquiry form). */
button.pd__size-tag { font: inherit; font-size: 14px; font-weight: 500; border: 0; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out); }
button.pd__size-tag:active, .pd__sample-btn:active { transform: scale(.97); }
.pd__sample-btn {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 14px/1.2 var(--sans); background: var(--olive-900); color: #F5ECE0;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  button.pd__size-tag:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--olive-900); }
  .pd__sample-btn:hover { background: var(--olive-700); }
}
button.pd__size-tag[aria-pressed="true"] { background: var(--olive-900); color: #F5ECE0; box-shadow: none; }
.pd__estimate { margin: -14px 0 28px; max-width: 560px; padding: 14px 16px; border-radius: 12px; background: #FBF8F2; box-shadow: inset 0 0 0 1px var(--olive-16); }
.pd__estimate[hidden] { display: none; }
.pd__estimate-total { margin: 0; font-size: 15px; color: var(--olive-72); }
.pd__estimate-total strong { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -.01em; color: var(--olive-900); font-variant-numeric: tabular-nums; margin: 0 4px; }
.pd__estimate-total small { font-size: 13px; white-space: nowrap; }
.pd__estimate-note { margin: 6px 0 12px; font-size: 13px; line-height: 1.55; color: var(--olive-72); }
.pd__estimate-go { padding: 0; border: 0; background: none; cursor: pointer; font: 500 14px/1.4 var(--sans); color: var(--olive-900); text-decoration: underline; text-underline-offset: 3px; }
.pd__size-note { flex-basis: 100%; font-size: 13px; color: var(--olive-72); }
/* Order terms as a warm card with a small cup icon. */
.pd__terms {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  margin-top: 28px; max-width: 560px; padding: 20px 22px;
  border-radius: 14px; background: #FBF1E6; box-shadow: inset 0 0 0 1px rgb(224 112 74 / .22);
}
.pd__terms-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(224 112 74 / .14); color: #B4532F; }
.pd__terms p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--olive-900); }
.pd__terms p:last-child { margin-bottom: 0; color: var(--olive-72); font-size: 14px; }
.pd__terms-h { font-family: var(--serif); font-weight: 500; font-size: 19px !important; letter-spacing: -.01em; margin-bottom: 6px !important; }
.pd__terms strong { font-weight: 600; }
.pd__list { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 14px; font-size: 17px; line-height: 1.45; }
.pd__list li::marker { color: var(--fox); }
.pd__list b, .pd__note b { font-weight: 600; }
.pd__list b::after, .pd__note b::after { content: ":"; }
.pd__pending span { color: var(--olive-72); font-style: italic; }
.pd__note { margin: 24px 0 0; font-size: 15px; }

/* ---------- Our Story (our-story.html) ----------
   Wide landscape, then founder / past / present / future rows alternating photo
   and text; "Future" sits on a dark band. */
.story { background: var(--paper, #FBF8F2); color: var(--olive-900); padding-top: calc(68px + clamp(48px, 6vw, 88px)); }
.story .eyebrow { color: var(--olive-72); }
.story .h2 em { color: var(--fox); }
.story__hero { max-width: var(--max); margin: clamp(32px, 4vw, 56px) auto 0; padding: 0 var(--gutter); }
.story__hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 60%; border-radius: 10px; }
.story__block { padding: clamp(72px, 9vw, 128px) 0; }
.story__block + .story__block:not(.story__block--dark) { padding-top: 0; }
.story__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.story__row--flip .story__photo { order: -1; }
.story__photo { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--olive-16); }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__text { max-width: 34em; }
.story__label { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-72); }
html:is([lang="ko"], [lang="ja"]) .story__label { letter-spacing: .08em; }
.story__h { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 5.6vw, 84px); line-height: 1; letter-spacing: -.03em; margin: 0 0 14px; }
.story__role { margin: 0; font-size: 19px; color: var(--olive-72); }
.story__from { margin: 6px 0 0; font-size: 15px; color: var(--olive-72); }
#story-founder-h { font-size: clamp(44px, 4.6vw, 68px); text-wrap: balance; }
.story__inset { margin: 40px 0 0 30px; display: flex; align-items: flex-end; gap: 18px; }
.story__inset img { width: min(180px, 42%); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; flex: none; }
.story__inset figcaption { font-size: 14px; line-height: 1.5; color: var(--olive-72); max-width: 16em; }
.story__thanks { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--olive-16); font-style: italic; }
html:is([lang="ko"], [lang="ja"]) .story__thanks { font-style: normal; }
.story__block--dark .story__inset { margin-left: 0; }
.story__block--dark .story__inset figcaption { color: var(--cream-72); }
.story__quote { margin: 0; padding-left: 28px; border-left: 2px solid var(--fox); }
.story__quote p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(20px, 1.75vw, 25px); line-height: 1.55; letter-spacing: -.01em; }
html:is([lang="ko"], [lang="ja"]) .story__quote p { font-style: normal; line-height: 1.75; }
.story__p { margin: 0; font-size: 18px; line-height: 1.75; color: var(--olive-72); }
.story__block--dark { background: var(--olive-900); color: var(--cream); }
.story__block--dark .story__label { color: var(--cream-72); }
.story__block--dark .story__p { color: var(--cream-72); }
.story__block--dark .btn { margin-top: 36px; }
.about__more { display: inline-block; margin-top: 36px; }
@media (max-width: 860px) {
  .story__row { grid-template-columns: 1fr; gap: 36px; }
  .story__photo { order: -1; max-height: 72svh; }
  .story__hero img { aspect-ratio: 4 / 3; }
}

/* ---------- Privacy policy (privacy-policy.html) ---------- */
.legal { background: var(--paper, #FBF8F2); color: var(--olive-900); padding: calc(68px + clamp(48px, 6vw, 88px)) 0 var(--section); }
.legal .eyebrow { color: var(--olive-72); }
.legal .h2 em { color: var(--fox); }
.legal__wrap { max-width: 760px; }
.legal__updated { margin: 20px 0 0; font-size: 14px; color: var(--olive-72); }
.legal__lede { margin: 28px 0 0; font-size: 19px; line-height: 1.65; }
.legal__sec { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--olive-16); }
.legal__sec h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.015em; margin: 0 0 14px; }
.legal__sec p, .legal__sec li { font-size: 17px; line-height: 1.7; color: var(--olive-72); }
.legal__sec p { margin: 0 0 12px; }
.legal__sec ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__sec li::marker { color: var(--fox); }
.legal__sec a { color: var(--olive-900); }
.legal__contact a { font-family: var(--serif); font-size: 22px; }
.footer a[aria-current="page"] { color: var(--cream); }
.footer a[href="privacy-policy.html"] { white-space: nowrap; }

/* ---------- 4. Export ---------- */
.export { background: var(--olive-900); }
.export__head { max-width: 760px; margin-bottom: 88px; }
.export__head p { color: var(--cream-72); margin: 28px 0 0; max-width: 34em; }
.route { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.route::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--cream-16);
}
.side { padding-right: clamp(32px, 5vw, 80px); }
.side + .side { padding-right: 0; padding-left: clamp(32px, 5vw, 80px); }
.side__label { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.side__code { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--caramel); letter-spacing: -.03em; }
.side__label h3 { margin: 0; font: 500 20px/1.3 var(--sans); }
.side__label h3 span { display: block; }
.side__label h3 span + span { font-size: 14px; color: var(--cream-48); font-weight: 400; margin-top: 2px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--cream-16);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px; color: var(--tan); padding-top: 3px; font-variant-numeric: tabular-nums;
}
.steps b { display: block; font-weight: 500; }
.steps span { display: block; font-size: 15px; color: var(--cream-72); margin-top: 4px; }
/* Country tabs */
.xtabs { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 56px; }
.xtabs__list { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--cream-16); }
.xtabs__list button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--sans); color: var(--cream-72); background: none;
  transition: background-color .2s ease, color .2s ease;
}
.xtabs__code { font-family: var(--serif); font-size: 13px; letter-spacing: .04em; color: var(--caramel); }
.xtabs__list button[aria-selected="true"] { background: var(--olive-900); color: #F5ECE0; }
.xtabs__list button[aria-selected="true"] .xtabs__code { color: #F0A882; }
.xtabs__more { margin: 0; font-size: 14px; color: var(--cream-48); font-style: italic; }
html:is([lang="ko"], [lang="ja"]) .xtabs__more { font-style: normal; }
.xpanel[hidden] { display: none; }
.xdest { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(64px, 10vw, 160px); align-items: start; }
.xdest .side { padding: 0; }
.xdest .steps li { grid-template-columns: 40px 1fr; }
.xdest__aside { padding-top: 8px; }
.xdest__warn { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.55; background: #FBF1E6; color: var(--olive-900); box-shadow: inset 0 0 0 1px rgb(224 112 74 / .25); }
.xdest__warn strong { display: block; margin-bottom: 4px; color: #B4532F; }
.xdest__confirm { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cream-72); }
.xdest .side__refs { padding-left: 0; }
@media (hover: hover) and (pointer: fine) { .xtabs__list button:not([aria-selected="true"]):hover { color: var(--cream); background: rgb(46 51 24 / .05); } }
@media (max-width: 860px) {
  .xdest { grid-template-columns: 1fr; gap: 28px; }
  .xtabs__list button { padding: 9px 12px; font-size: 14px; }
}
.side__refs { margin-top: 24px; padding-left: 56px; font-size: 13px; color: var(--cream-72); }
.side__refs p { margin: 0 0 6px; }
.side__refs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side__refs a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--cream-16); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.side__refs a span { color: var(--cream-72); }
@media (hover: hover) and (pointer: fine) { .side__refs a:hover { text-decoration-color: currentColor; } }
@media (max-width: 860px) { .side__refs { padding-left: 0; } }
.export__pay {
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--cream-16);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(64px, 10vw, 160px); align-items: start;
}
.export__pay .side__label { margin-bottom: 0; }
.export__pay-body p { margin: 0; color: var(--cream-72); font-size: 15px; line-height: 1.65; }
.export__pay .terms__methods li { color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream-16); }
@media (max-width: 860px) {
  .export__pay { grid-template-columns: 1fr; gap: 24px; }
}
.export__sum {
  margin-top: 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: 1px solid var(--cream-16); padding-top: 40px;
}
.export__sum strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; }
.export__sum span { color: var(--cream-72); font-size: 15px; }

/* ---------- 5. Trip ---------- */
.trip__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 96px; }
.trip__quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; margin: 0; color: var(--cream-72);
}
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 64px); align-items: start; }
.chapter:nth-child(even) { margin-top: 120px; }
.chapter__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chapter .frame, .chapter__video { aspect-ratio: 9 / 16; }
.chapter .frame img { transition: transform 1.2s var(--ease-out); }
.chapter__video { border-radius: 6px; overflow: hidden; background: var(--olive-900); }
.chapter__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* One photo or one video: same column width as a pair, text beside it. */
.chapter--solo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: end; }
.chapter--solo .chapter__meta { margin-top: 0; }
.chapter__meta { display: flex; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--tan); letter-spacing: .08em; text-transform: uppercase; }
.chapter h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -.015em; margin: 10px 0 8px; }
.chapter p { margin: 0; color: var(--cream-72); font-size: 15px; }
.trip__origin {
  margin-top: var(--section); position: relative; border-radius: 6px; overflow: hidden;
  aspect-ratio: 21 / 9; isolation: isolate;
}
.trip__origin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -1; }
.trip__origin::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(46 51 24 / .85), rgb(46 51 24 / .1) 65%);
}
.trip__origin div { position: absolute; left: clamp(24px, 5vw, 72px); bottom: clamp(24px, 5vw, 64px); max-width: 26em; }
.trip__origin h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.trip__origin p { margin: 0; color: var(--cream-72); }

/* ---------- 6. Contact ---------- */
.contact { background: var(--olive-900); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 128px); }
.contact__intro p { color: var(--cream-72); margin: 28px 0 48px; max-width: 26em; }
.channels { display: grid; gap: 28px; }
.channel { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.channel__label { font-size: 13px; color: var(--cream-48); display: block; }
.channel__value { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.chat-links { margin-top: 32px; }
.chat-links .channel__label { margin: 0 0 12px; }
.chat-links__row { display: flex; flex-wrap: wrap; gap: 10px; }
.chat-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--cream); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--cream-16); transition: background-color .2s ease;
}
.chat-link .fab__icon { width: 32px; height: 32px; }
.chat-link .fab__icon svg { width: 24px; height: 24px; }
.chat-link .fab__icon--kakao { width: 26px; height: 26px; margin: 3px; border-radius: 8px; }
.chat-link .fab__icon--kakao svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .chat-link:hover { background: rgb(46 51 24 / .06); } }
.qrs { display: flex; gap: 24px; margin-top: 40px; }
.qr { display: block; text-align: center; font-size: 13px; color: var(--cream-72); text-decoration: none; }
.qr img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 10px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; align-content: start; }
.field { display: grid; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--cream-72); }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid var(--cream-16);
  padding: 8px 0 12px; border-radius: 0;
  transition: border-color .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tan) 50%), linear-gradient(135deg, var(--tan) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--olive-900); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--caramel); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form__status { flex-basis: 100%; margin: 4px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; background: #E3F0E4; color: #22663A; }
.form__status.is-error { background: #F8E1DA; color: #9A3A1E; }
.form button[type=submit]:disabled, .form button[type=submit]:disabled:hover { background: #D9D5CC; color: #86837A; cursor: not-allowed; box-shadow: none; }
.form button[type=submit]:disabled svg { opacity: .5; transform: none; }
/* Privacy consent checkbox, right above the submit row */
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--olive-900); cursor: pointer; }
.consent label { font-size: 15px; color: var(--cream-72); cursor: pointer; }
.consent a { color: var(--cream); text-underline-offset: 3px; }
.form__note { font-size: 13px; color: var(--cream-48); margin: 0; max-width: 26em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--cream-16); background: var(--olive-900); padding: 40px 0; font-size: 14px; color: var(--cream-48); }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { text-decoration: none; color: var(--cream-72); }

/* ---------- Coffee detail, in-page view (products.html#slug) ----------
   Replaces the grid while open: back link, large sticky photo beside the spec
   sheet, then the contact channels full width at the end. */
.shop[hidden], .pdv[hidden] { display: none; }
.pdv {
  min-height: 100svh; background: var(--cream); color: var(--olive-900);
  padding: calc(68px + clamp(28px, 4vw, 48px)) 0 var(--section);
}
.pdv__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px);
  padding: 10px 18px 10px 14px; border-radius: 999px;
  font: 500 15px/1 var(--sans); color: var(--olive-900); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--olive-16);
  transition: background-color .2s ease;
}

.pdv__contact { margin-top: clamp(72px, 9vw, 120px); padding-top: 48px; border-top: 1px solid var(--olive-16); }
/* With the form: intro, sample button and channels on the left, form on the right. */
.pdv__contact:has(.pdv__form) { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pdv__contact:has(.pdv__form) .pdv__channels { grid-template-columns: repeat(2, 1fr); }
.pdv__sample { margin-top: 28px; }
.pdv__form .field input, .pdv__form .field select, .pdv__form .field textarea { border-bottom-color: rgb(46 51 24 / .28); }
.pdv__contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
.pdv__contact > p { margin: 0; color: var(--olive-72); }
.pdv__channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.pdv__channel {
  display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-radius: 12px;
  background: #FBF8F2; color: inherit; text-decoration: none;
  box-shadow: 0 0 0 1px var(--olive-16);
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.pdv__channel .fab__text small { overflow-wrap: break-word; } /* email breaks after the @ (<wbr>) */
.pdv__mail { width: 38px; height: 38px; border-radius: 50%; background: var(--olive-900); color: #F5ECE0; }
@media (hover: hover) and (pointer: fine) {
  .pdv__back:hover { background: rgb(46 51 24 / .06); }
  .pdv__channel:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--olive-16), 0 12px 28px rgb(46 51 24 / .1); }
}
@media (prefers-reduced-motion: reduce) {
  .pdv__channel:hover { transform: none; }
}
@media (max-width: 1080px) {
  .pdv__channels { grid-template-columns: repeat(2, 1fr); }
  .pdv__contact:has(.pdv__form) { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; }
  .pd__img { position: static; max-height: 70svh; }
  .pd__img img { object-position: center 60%; }
}
@media (max-width: 520px) {
  .pdv__channels, .pdv__contact:has(.pdv__form) .pdv__channels { grid-template-columns: 1fr; }
}

/* ---------- Floating contact ----------
   Motion budget: an entrance with a slight settle once per session; an attention
   ring that pulses 3 times, 8 s apart, and stops for good once the menu has been
   opened (an endless pulse on an always-visible element becomes noise); a hover
   lift gated to mouse, tap growth on touch; and a menu that scales out of the
   button with interruptible transitions. Transform/opacity only. */
.fab {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none; /* the closed menu keeps its box; only live parts take clicks */
  transition: opacity .25s ease, transform .25s var(--ease-out), visibility 0s;
}
.fab__btn {
  position: relative; pointer-events: auto;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--fox); color: #fff;
  box-shadow: 0 0 0 3px rgb(251 248 242 / .95), 0 8px 22px rgb(150 60 30 / .32);
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
/* Lifted shadow + soft halo on their own layer, so hover only fades opacity. */
.fab__btn::before, .fab__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
}
.fab__btn::before {
  box-shadow: 0 0 0 3px rgb(251 248 242 / .95), 0 18px 38px rgb(150 60 30 / .42), 0 0 0 9px rgb(224 112 74 / .16);
  opacity: 0; transition: opacity .2s ease;
}
.fab__btn[aria-expanded="true"] { background: #CF5F3A; }
.fab__btn[aria-expanded="true"]::before { opacity: 1; }
.fab__btn > svg { grid-area: 1 / 1; transition: opacity .18s ease, transform .22s var(--ease-out); }
.fab__ico-close { opacity: 0; transform: rotate(-45deg); }
/* Chat badge on the cup's top-right: says "contact", not just "coffee".
   Cream ring keeps the accent fill readable against the accent button. */
.fab__badge {
  position: absolute; top: -3px; right: -3px; z-index: 1;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fox); color: #fff;
  box-shadow: 0 0 0 2px #FBF8F2, 0 2px 6px rgb(150 60 30 / .3);
  transition: opacity .18s ease, transform .22s var(--ease-out);
}
.fab__btn[aria-expanded="true"] .fab__badge { opacity: 0; transform: scale(.6); }
/* Freshly poured: three wisps rise and fade, offset in time. Paused while the
   cup is swapped for the close icon. */
.fab__steam { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: fab-steam 2.8s ease-in-out infinite; }
.fab__steam:nth-of-type(2) { animation-delay: .95s; }
.fab__steam:nth-of-type(3) { animation-delay: 1.9s; }
.fab__btn[aria-expanded="true"] .fab__steam { animation-play-state: paused; }
@keyframes fab-steam {
  0%   { opacity: 0; transform: translateY(1.6px) scaleY(.85); }
  30%  { opacity: 1; }
  65%  { opacity: .85; }
  100% { opacity: 0; transform: translateY(-2.4px) scaleY(1.05); }
}
.fab__btn[aria-expanded="true"] .fab__ico-open { opacity: 0; transform: rotate(45deg); }
.fab__btn[aria-expanded="true"] .fab__ico-close { opacity: 1; transform: none; }

/* Entrance, first page of the session only (main.js adds .is-intro). `backwards`
   fill so hover/press transitions own the transform once it has played. */
.fab.is-intro .fab__btn { animation: fab-enter .6s var(--ease-out) .9s backwards; }
@keyframes fab-enter {
  0%  { opacity: 0; transform: translateY(18px) scale(.9); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.03); }
  100% { transform: none; }
}
/* Attention ring: one 1.6 s pulse at the start of each 8 s cycle, 3 cycles. */
.fab__btn::after { background: var(--fox); opacity: 0; }
.fab.is-calling .fab__btn::after { animation: fab-ring 8s var(--ease-out) 2.4s 3; }
@keyframes fab-ring {
  0%       { opacity: .45; transform: scale(1); }
  20%, 100% { opacity: 0; transform: scale(1.75); }
}

.fab__menu {
  width: min(300px, calc(100vw - 32px)); max-height: calc(100svh - 110px); overflow: auto;
  padding: 16px 10px 10px; border-radius: 14px;
  background: #FBF8F2; color: var(--olive-900);
  box-shadow: 0 0 0 1px var(--olive-16), 0 24px 60px rgb(20 22 10 / .28);
  transform-origin: calc(100% - 29px) 100%; /* grows out of the button */
  opacity: 0; transform: translateY(8px) scale(.96); visibility: hidden;
  transition: opacity .15s ease, transform .15s var(--ease-out), visibility 0s .15s;
}
.fab__menu.is-open {
  pointer-events: auto; opacity: 1; transform: none; visibility: visible;
  transition: opacity .2s ease, transform .22s var(--ease-out), visibility 0s;
}
.fab__menu > * { opacity: 0; transform: translateY(4px); transition: opacity .1s ease, transform .1s var(--ease-out); }
.fab__menu.is-open > * {
  opacity: 1; transform: none;
  transition: opacity .2s ease, transform .25s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms + 30ms);
}
.fab__menu > :nth-child(2) { --i: 1; }
.fab__menu > :nth-child(3) { --i: 2; }
.fab__menu > :nth-child(4) { --i: 3; }
.fab__title { margin: 0 8px 8px; font-size: 13px; color: var(--olive-72); }
.fab__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px;
  color: inherit; text-decoration: none;
}
.fab__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; }
.fab__icon--kakao { width: 32px; height: 32px; margin: 3px; border-radius: 9px; background: #FEE500; }
.fab__text { display: grid; line-height: 1.25; }
.fab__text b { font-weight: 600; font-size: 15px; }
.fab__text small { font-size: 13px; color: var(--olive-72); }

/* Mouse: lift and deepen on hover, dip slightly on press. */
@media (hover: hover) and (pointer: fine) {
  .fab__btn:hover { transform: scale(1.07); background: #D9643E; }
  .fab__btn:hover::before { opacity: 1; }
  .fab__btn:active { transform: scale(1.01); transition-duration: .1s; }
  a.fab__item { transition: background-color .15s ease; }
  a.fab__item:hover { background: rgb(46 51 24 / .06); }
}
/* Touch has no hover: the press itself grows the button and shows the lift
   (.is-pressed comes from pointer events in main.js). */
.fab__btn.is-pressed { transform: scale(1.06); transition-duration: .1s; }
.fab__btn.is-pressed::before { opacity: 1; }
/* Reduced motion: keep colour and fades, drop movement, entrance and ring. */
@media (prefers-reduced-motion: reduce) {
  .fab.is-intro .fab__btn, .fab.is-calling .fab__btn::after { animation: none; }
  .fab__steam { animation: none; opacity: 1; }
  .fab__btn[aria-expanded="true"] .fab__badge { transform: none; }
  .fab__btn:hover, .fab__btn:active, .fab__btn.is-pressed,
  .fab__menu, .fab__menu.is-open, .fab__menu > *, .fab__menu.is-open > * { transform: none; }
}

/* Out of the way while the contact form is on screen (it offers the same channels). */
.fab.is-away { opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .25s ease, transform .25s var(--ease-out), visibility 0s .25s; }
/* Keep the last line of the page clear of the button on phones. */
@media (max-width: 860px) {
  .footer { padding-bottom: 96px; }
}

/* ---------- Light theme (opt-in: <body class="theme-light">) ----------
   Dark sections become paper/cream. Inside them the "on dark" tokens are
   swapped for their olive equivalents, so the existing rules recolor themselves;
   only places that use --cream as a fill need explicit overrides. */
.theme-light { --paper: #FBF8F2; background: var(--paper); }
.theme-light :is(.about, .export, .trip, .contact, .pdv__contact, .faq),
.theme-light .header {
  --cream: var(--olive-900);
  --cream-72: var(--olive-72);
  --cream-48: rgb(46 51 24 / .5);
  --cream-16: var(--olive-16);
  --tan: #8C6B43;
  --caramel: var(--fox);
  color: var(--cream);
}
.theme-light .export, .theme-light .contact { background: var(--paper); }
.theme-light .trip { background: #F5ECE0; }
.theme-light .frames__inset { outline-color: var(--paper); }
.theme-light :is(.about, .export, .trip, .contact, .pdv__contact) .btn { background: var(--olive-900); color: #F5ECE0; }
/* Text over photos stays light. */
.theme-light .trip__origin { --cream: #F5ECE0; --cream-72: rgb(245 236 224 / .8); color: var(--cream); }
.theme-light .hero__media::after {
  background:
    linear-gradient(90deg, rgb(46 51 24 / .78) 0%, rgb(53 58 29 / .45) 40%, rgb(53 58 29 / 0) 70%),
    linear-gradient(0deg, rgb(35 38 20 / .65) 0%, rgb(35 38 20 / 0) 38%);
}
/* Light header from the first paint (it used to be transparent over the hero). */
.theme-light .header { background: var(--paper); backdrop-filter: none; box-shadow: 0 1px 0 var(--olive-16); }
.theme-light .header.is-open, .theme-light .header.is-open .nav__links { background: var(--paper); }
.theme-light .header .lang :is(button[aria-pressed="true"], a[aria-current="page"]) { color: #F5ECE0; }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease-out) forwards; }
.d1 { animation-delay: .15s } .d2 { animation-delay: .25s } .d3 { animation-delay: .38s }
.d4 { animation-delay: .5s }  .d5 { animation-delay: .7s }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.06); } }

.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--cream); }
  .btn:hover { background: #fff; }
  .btn--dark:hover { background: var(--olive-700); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { background: rgb(245 236 224 / .18); }
  .lang :is(button, a):not([aria-pressed="true"], [aria-current="page"]):hover { color: var(--cream); }
  .product:hover .product__img img { transform: scale(1.04); }
  .filters button:not([aria-pressed="true"]):hover { background: rgb(46 51 24 / .06); }
  .chapter:hover .frame img { transform: scale(1.04); }
  .channel:hover .channel__value { color: var(--caramel); }
  .theme-light :is(.about, .export, .trip, .contact, .pdv__contact) .btn:hover { background: var(--olive-700); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero__media img { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { /* 6 links need ~1200px; collapse before they wrap */
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav__right { gap: 12px; }
  .header.is-open { background: var(--olive-900); }
  .header.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--olive-900); padding: 8px var(--gutter) 24px;
    box-shadow: 0 1px 0 var(--cream-16);
  }
  .header.is-open .nav__links a { padding: 12px 0; font-size: 15px; color: var(--cream); }
}
@media (max-width: 860px) {
  .brand__name { font-size: 25px; }
  .hero__body { grid-template-columns: 1fr; }
  .hero__reel { display: none; }
  .hero__logo { width: clamp(128px, 38vw, 176px); margin-bottom: 24px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .origin__img { width: 132px; }
  .hero__media::after {
    background: linear-gradient(0deg, rgb(53 58 29 / 1) 10%, rgb(53 58 29 / .55) 60%, rgb(53 58 29 / .35) 100%);
  }
  .theme-light .hero__media::after {
    background: linear-gradient(0deg, rgb(46 51 24 / .9) 8%, rgb(53 58 29 / .5) 60%, rgb(53 58 29 / .3) 100%);
  }
  .about__grid, .contact__grid, .trip__head { grid-template-columns: 1fr; }
  .trip__head { gap: 32px; margin-bottom: 56px; }
  .terms, .export__sum { grid-template-columns: 1fr; gap: 28px; }
  .route { grid-template-columns: 1fr; gap: 64px; }
  .route::before { display: none; }
  .side, .side + .side { padding: 0; }
  .chapters { grid-template-columns: 1fr; gap: 56px; }
  .chapter:nth-child(n) { margin-top: 0; }
  .chapter--solo { gap: 12px 16px; }
  .chapter--solo p { font-size: 14px; }
  .trip__origin { aspect-ratio: 4 / 5; }
  .trip__origin::after { background: linear-gradient(0deg, rgb(46 51 24 / .9), rgb(46 51 24 / .1) 70%); }
  .form { grid-template-columns: 1fr; }
  .qrs { flex-wrap: wrap; }
  .shop__head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .featured .products { grid-template-columns: repeat(3, 1fr); }
  .product__row { flex-direction: column; gap: 4px; }
  .product__price { text-align: left; }
  .product__price { font-size: 19px; }
}
@media (max-width: 520px) {
  .products, .featured .products { grid-template-columns: 1fr; }
  .product__row { flex-direction: row; }
  .product__price { text-align: right; }
}

/* Three languages + menu button must fit beside the wordmark on small phones. */
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .nav__right { gap: 8px; }
  .brand__name { font-size: 20px; }
  .lang { padding: 2px; }
  .lang :is(button, a) { padding: 7px 8px; font-size: 12px; }
  .menu-btn { width: 36px; height: 36px; flex: none; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 18px; letter-spacing: 0; }
  .lang :is(button, a) { padding: 6px 6px; font-size: 11.5px; }
  .nav__right { gap: 6px; }
}
