/* Giacomelli.coffee – single product page for the T6 */

:root {
  --espresso-950: #110c09;
  --espresso-900: #1a120e;
  --espresso-800: #261a14;
  --espresso-700: #34241c;
  --roast-700: #4b3227;
  --roast-600: #6b4a39;
  --crema-500: #c8915a;
  --crema-400: #d9a873;
  --crema-300: #e8c7a0;
  --crema-100: #f6eadb;
  --milk-50: #fbf8f3;
  --milk-100: #f5efe6;
  --milk-200: #ece3d6;
  --ink: #1d1612;
  --ink-soft: #5d5048;
  --line: #e5dacb;
  --ice-50: #f2f7f9;
  --ice-100: #e2edf2;
  --ice-200: #cfe1e9;
  --ice-700: #24607a;
  --glow: #e0472b;
  --rosso: #c62a1d;
  --line-green: #06c755;

  --font-display: "Bodoni Moda", "Noto Serif Thai", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 30px;
  --shadow-1: 0 1px 2px rgb(29 22 18 / 0.05), 0 6px 20px rgb(29 22 18 / 0.06);
  --shadow-2: 0 2px 8px rgb(29 22 18 / 0.08), 0 24px 60px rgb(29 22 18 / 0.14);
  --container: 1200px;
  --gutter: clamp(16px, 4.5vw, 44px);
  --section-y: clamp(72px, 10vw, 132px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--milk-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(th) body,
body:lang(th) { line-height: 1.8; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--roast-700);
  box-shadow: 0 0 0 6px #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; max-width: none; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--roast-600);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--crema-400); }
:lang(th) .eyebrow { letter-spacing: 0.02em; font-size: 0.9rem; }

.section-title,
.hero__title,
.drink-panel__name,
.box-card__title,
.milk__temp,
.brand__name {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 26;
}
.section-title,
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}
.section-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
:lang(th) .section-title,
:lang(th) .hero__title { line-height: 1.32; letter-spacing: 0; font-weight: 600; }
:lang(th) .hero__title { font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); }
/* Bodoni's "1" reads as "I" next to Thai script, so Thai headings use Noto Serif Thai for every glyph. */
:lang(th) .section-title,
:lang(th) .hero__title,
:lang(th) .box-card__title { font-family: "Noto Serif Thai", Georgia, serif; font-variation-settings: normal; }
:lang(th) .section-title { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.9rem); }
.ph { display: inline-block; }

.section-lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--invert .section-title { color: #fff; }
.section-head--invert .section-lead { color: var(--crema-100); }
.section-head--invert .eyebrow { color: var(--crema-400); }

.fine-print { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.fine-print--center { text-align: center; }

.section { padding-block: var(--section-y); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--crema-500); color: var(--espresso-950); box-shadow: 0 10px 30px rgb(200 145 90 / 0.3); }
.btn--primary:hover { background: var(--crema-400); }
.btn--ghost { color: #fff; border-color: rgb(255 255 255 / 0.28); }
.btn--ghost:hover { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.06); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background-color 0.35s, box-shadow 0.35s, color 0.35s;
}
.site-header.is-solid {
  background: rgb(251 248 243 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: baseline; gap: 1px; text-decoration: none; margin-right: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.01em; }
.brand__tld { font-size: 0.82rem; font-weight: 500; color: var(--crema-500); letter-spacing: 0.02em; }

.site-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.site-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; opacity: 0.86;
  padding-block: 8px; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch > .icon { opacity: 0.7; }
.lang-switch ul { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.22); }
.site-header.is-solid .lang-switch ul { border-color: var(--line); }
.lang-switch a {
  display: block; text-decoration: none; font-size: 0.8rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; opacity: 0.75; letter-spacing: 0.04em;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="page"] { background: var(--crema-500); color: var(--espresso-950); opacity: 1; }
.site-header.is-solid .lang-switch a[aria-current="page"] { background: var(--espresso-900); color: #fff; }
.lang-switch__full { display: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__open, .nav-toggle__close { display: inline-flex; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: var(--milk-50); color: var(--ink);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .nav-open .site-header { background: var(--milk-50); color: var(--ink); }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 8px; }
  .lang-switch > .icon, .brand__tld { display: none; }
  .lang-switch a { padding: 5px 7px; }
}
@media (max-width: 340px) { .brand__name { font-size: 1.3rem; } }
.brand { min-width: 0; }
.nav-toggle, .lang-switch { flex-shrink: 0; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 78% 40%, #2b1712 0%, var(--espresso-950) 55%) var(--espresso-950);
  color: #fff;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero__glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -22vmax; top: 6%;
  background: radial-gradient(circle, rgb(224 71 43 / 0.32) 0%, rgb(224 71 43 / 0.08) 38%, transparent 66%);
  filter: blur(10px);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__title { font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5.4rem); margin-bottom: 26px; }
.hero__lead { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); color: var(--crema-100); max-width: 34em; opacity: 0.92; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__actions .icon { width: 1.1em; height: 1.1em; }

.hero__visual { display: grid; justify-items: center; gap: 22px; }
.hero__machine { position: relative; width: min(100%, 470px); }
.hero__machine::before {
  content: ""; position: absolute; inset: 8% 4% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 214 170 / 0.22), transparent);
}
.hero__caption { text-align: center; font-size: 0.8rem; color: rgb(255 255 255 / 0.5); margin-top: 6px; letter-spacing: 0.04em; }

.machine { display: block; width: 100%; height: auto; overflow: visible; }
.machine-photos { display: grid; }
.machine-photo { grid-area: 1 / 1; width: 100%; height: auto; opacity: 0; transition: opacity 0.6s var(--ease); }
.machine-photos[data-active="black"] [data-finish="black"],
.machine-photos[data-active="silver"] [data-finish="silver"],
.machine-photos[data-active="white"] [data-finish="white"] { opacity: 1; }
.finish-card__photo { width: min(100%, 300px); height: auto; }
.machine .m-finish { opacity: 0; transition: opacity 0.6s var(--ease); }
.machine[data-active="black"] [data-finish="black"],
.machine[data-active="silver"] [data-finish="silver"],
.machine[data-active="white"] [data-finish="white"] { opacity: 1; }
.machine .m-glow { animation: glow-pulse 3.6s ease-in-out 1; }
.machine .m-glow:nth-of-type(2n) { animation-delay: -1.8s; }
@keyframes glow-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

.finish-picker { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.finish-picker legend { width: 100%; text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crema-400); margin-bottom: 10px; font-weight: 600; }
:lang(th) .finish-picker legend { letter-spacing: 0.02em; font-size: 0.9rem; }
.finish-picker__option { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 9px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.18); cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.finish-picker__option:hover { border-color: rgb(255 255 255 / 0.45); }
.finish-picker__option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.finish-picker__option:has(input:checked) { border-color: var(--crema-400); background: rgb(200 145 90 / 0.14); }
.finish-picker__option:has(input:focus-visible) { outline: 3px solid var(--crema-400); outline-offset: 3px; }
.finish-picker__swatch {
  display: inline-block; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / 0.65), transparent 42%), var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25), 0 0 0 2px rgb(255 255 255 / 0.12);
}
.finish-picker__name { font-size: 0.95rem; font-weight: 500; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__machine { width: min(82%, 400px); }
}

/* ---------------------------------------------------------------- highlights */
.highlights { padding-block: clamp(56px, 7vw, 88px); background: var(--milk-50); border-bottom: 1px solid var(--line); }
.highlights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); }
.highlight { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; align-content: start; }
.highlight__icon {
  grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--crema-100); color: var(--roast-700);
}
.highlight__icon .icon { width: 26px; height: 26px; }
.highlight__title { font-size: 1.12rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.highlight__text { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 900px) { .highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .highlights__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- drinks explorer */
.drinks { background: linear-gradient(var(--milk-50), var(--milk-100)); padding-bottom: clamp(40px, 5vw, 64px); }
.drinks + .custom { padding-top: clamp(48px, 6vw, 80px); }
.explorer {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: radial-gradient(90% 80% at 75% 30%, #2a1712, var(--espresso-950) 70%);
  border-radius: var(--radius-l); color: #fff; overflow: hidden;
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}
.explorer__menu {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 6px;
  padding: clamp(18px, 3vw, 32px);
  border-right: 1px solid rgb(255 255 255 / 0.07);
}
.drink-tab {
  position: relative; display: grid; justify-items: center; gap: 6px;
  padding: 14px 6px 12px; border: 0; border-radius: 16px; background: transparent; cursor: pointer;
  color: rgb(255 255 255 / 0.82); transition: background-color 0.25s, color 0.25s;
}
.drink-tab:hover { background: rgb(255 255 255 / 0.05); color: #fff; }
.drink-tab .glass--small { width: 46px; height: 58px; color: rgb(255 255 255 / 0.85); position: relative; z-index: 1; }
.drink-tab__glow {
  position: absolute; left: 50%; top: 52px; width: 70px; height: 22px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 90 54 / 0.85), rgb(194 48 28 / 0.25) 60%, transparent);
  opacity: 0.28; transition: opacity 0.3s;
}
.drink-tab__name { font-size: 0.82rem; font-weight: 500; text-align: center; line-height: 1.25; }
.drink-tab[aria-selected="true"] { background: rgb(255 255 255 / 0.07); color: var(--crema-300); }
.drink-tab[aria-selected="true"] .drink-tab__glow { opacity: 1; }

.explorer__panels { position: relative; padding: clamp(22px, 3.4vw, 44px); }
.js .drink-panel[data-inactive] { display: none; }
.drink-panel { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 36px); align-items: center; }
.no-js .drink-panel + .drink-panel { margin-top: 32px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.drink-panel__visual { position: relative; display: grid; place-items: center; }
.drink-panel__visual::before {
  content: ""; position: absolute; inset: 18% 6% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 120 70 / 0.22), transparent);
}
.drink-panel__visual .glass { position: relative; width: 100%; max-width: 250px; color: rgb(255 255 255 / 0.9); }
.glass .steam { color: rgb(255 255 255 / 0.5); }
.glass .steam path { opacity: 0; }
.drink-panel__visual[data-temp="1"] .steam-2,
.drink-panel__visual[data-temp="2"] .steam-1, .drink-panel__visual[data-temp="2"] .steam-3,
.drink-panel__visual[data-temp="3"] .steam path { animation: steam 2.8s ease-in-out 1; }
.drink-panel__visual .steam-1 { animation-delay: -0.9s !important; }
.drink-panel__visual .steam-3 { animation-delay: -1.8s !important; }
.drink-panel__visual[data-cold] .steam path { animation: none !important; opacity: 0 !important; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(8px); }
  35% { opacity: 0.75; }
  100% { opacity: 0; transform: translateY(-16px); }
}

.drink-panel__name { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 500; line-height: 1.1; color: #fff; }
:lang(th) .drink-panel__name { font-family: var(--font-body); font-weight: 600; }
.drink-panel__local { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--crema-300); }
.drink-panel__desc { margin-top: 10px; color: var(--crema-100); opacity: 0.9; text-wrap: pretty; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 0.86rem; color: rgb(255 255 255 / 0.75); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.55); }

.drink-panel__settings { margin-top: 22px; display: grid; gap: 12px; }
.drink-panel__settings-title { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--crema-400); }
:lang(th) .drink-panel__settings-title { letter-spacing: 0.02em; font-size: 0.85rem; }
.drink-panel__nosettings { font-size: 0.92rem; color: rgb(255 255 255 / 0.7); }
.setting { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.setting__label { font-size: 0.9rem; color: rgb(255 255 255 / 0.85); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgb(255 255 255 / 0.07); }
.seg__btn {
  min-width: 36px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.85rem; font-weight: 600; color: rgb(255 255 255 / 0.7); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.no-js .seg__btn { cursor: default; }
.seg__btn:hover { color: #fff; }
.seg__btn[aria-checked="true"] { background: var(--crema-500); color: var(--espresso-950); }

.brew { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.brew[hidden] { display: none; }
.btn--brew { min-height: 44px; padding: 10px 20px; background: #fff; color: var(--espresso-950); font-size: 0.95rem; }
.btn--brew:hover { background: var(--crema-100); }

.brew__bar { flex: 1; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.brew__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--glow), var(--crema-400)); transform-origin: left; }

@media (max-width: 980px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer__menu {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px;
    overflow-x: auto; scroll-snap-type: x mandatory; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.07);
    scrollbar-width: thin;
  }
  .drink-tab { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .drink-panel { grid-template-columns: minmax(0, 1fr); }
  .drink-panel__visual .glass { max-width: 190px; }
  .setting { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------------------------------------------------------------- make it yours */
.custom { background: var(--milk-100); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat {
  position: relative; background: #fff; border-radius: var(--radius-m); padding: 28px 26px 26px;
  box-shadow: var(--shadow-1); border: 1px solid var(--line);
}
.stat__icon { position: absolute; right: 22px; top: 24px; color: var(--crema-500); }
.stat__icon .icon { width: 26px; height: 26px; }
.stat__value { font-family: var(--font-body); font-size: 3rem; line-height: 1; color: var(--roast-700); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.stat__op { font-weight: 400; font-size: 0.72em; margin-inline: 0.04em; vertical-align: 0.1em; color: var(--roast-600); }
.stat__title { margin-top: 8px; font-size: 1.05rem; font-weight: 600; }
.stat__text { margin-top: 6px; color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- milk fridge */
.milk { background: linear-gradient(160deg, var(--ice-50), var(--ice-100)); }
.milk .eyebrow { color: var(--ice-700); }
.milk__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--ice-700); margin-top: 3px; }

.milk__dial {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 40px);
  background: #fff; border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 70px rgb(36 96 122 / 0.16); border: 1px solid var(--ice-200);
}
.thermo { display: grid; justify-items: center; flex: none; }
.thermo__tube { position: relative; width: 22px; height: 190px; border-radius: 11px 11px 0 0; background: var(--ice-100); overflow: hidden; box-shadow: inset 0 0 0 1px var(--ice-200); }
.thermo__fill { position: absolute; left: 4px; right: 4px; bottom: 0; height: 40%; border-radius: 8px 8px 0 0; background: linear-gradient(#7fc3df, #2d86ad); transition: height 0.45s var(--ease); }
.thermo__bulb { width: 46px; height: 46px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8fd0ea, #2d86ad 70%); box-shadow: 0 0 0 6px var(--ice-100); }
.milk__readout { flex: 1; min-width: 0; }
.milk__readout-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ice-700); font-size: 0.95rem; }
.milk__temp { font-family: "Bodoni Moda", Georgia, serif; font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: 1; margin: 10px 0 18px; color: var(--ink); }
.milk__unit { font-size: 0.42em; margin-left: 6px; color: var(--ink-soft); vertical-align: 0.9em; }
.range { width: 100%; accent-color: var(--ice-700); height: 28px; cursor: pointer; }
.range__scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); }
@media (max-width: 860px) { .milk__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .thermo__tube { height: 150px; } }

/* ---------------------------------------------------------------- app */
.app { background: var(--milk-50); }
.app__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 100px); align-items: center; }
.app__phone { display: grid; place-items: center; }
.phone {
  position: relative; width: min(100%, 300px); aspect-ratio: 9 / 15.6; border-radius: 44px; padding: 12px;
  background: #121214; box-shadow: var(--shadow-2), inset 0 0 0 2px #2c2c30;
}
.phone__notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 90px; height: 24px; border-radius: 12px; background: #000; z-index: 2; }
.phone__screen {
  height: 100%; border-radius: 34px; background: #f6f7f9; color: #1d1d1f; overflow: hidden;
  padding: 58px 16px 18px; display: flex; flex-direction: column; gap: 14px; font-family: var(--font-body);
}
.phone__title { text-align: center; font-weight: 600; font-size: 0.98rem; }
.phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone__tile {
  display: grid; gap: 6px; align-content: end; min-height: 86px; padding: 12px; border-radius: 16px;
  font-size: 0.78rem; font-weight: 600;
}
.phone__tile .icon { width: 22px; height: 22px; }
.phone__tile--milk { background: linear-gradient(150deg, #d8ecf6, #a9cfe2); color: #12445a; }
.phone__tile--timer { background: linear-gradient(150deg, #2b2b30, #121214); color: #fff; }
.phone__list { background: #fff; border-radius: 16px; padding: 4px 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.phone__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 0.8rem; }
.phone__row + .phone__row { border-top: 1px solid #eef0f2; }
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; border-radius: 999px; background: #8a8f96; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform 0.25s var(--ease); }
.toggle[data-on] { background: var(--rosso); }
.toggle[data-on] span { transform: translateX(18px); }
.phone__make {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; border-radius: 16px;
  background: linear-gradient(120deg, #3b2418, #7a4a2c); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.feature-list { display: grid; gap: 14px; margin-top: -12px; }
.feature-list li { display: flex; align-items: center; gap: 14px; font-size: 1.04rem; }
.feature-list__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--crema-100); color: var(--roast-700); }
.note-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: var(--radius-s); background: var(--milk-100); border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
.note-card .icon { color: var(--roast-600); margin-top: 2px; }
@media (max-width: 860px) {
  .app__inner { grid-template-columns: minmax(0, 1fr); }
  .app__phone { order: 2; }
}

/* ---------------------------------------------------------------- care */
.care { background: var(--milk-100); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: #fff; border-radius: var(--radius-m); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--espresso-900); color: var(--crema-400); margin-bottom: 18px; }
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.card__text { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- finishes */
.finishes { background: radial-gradient(70% 60% at 50% 100%, #fff, var(--milk-50)); }
.finish-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 48px); align-items: end; }
.finish-card figure { display: grid; justify-items: center; gap: 18px; }
.finish-card .machine { width: min(100%, 300px); }
.finish-card__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
@media (max-width: 640px) {
  .finish-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .finish-card { scroll-snap-align: center; }
}

/* ---------------------------------------------------------------- specs */
.specs { background: #fff; border-top: 1px solid var(--line); }
.specs__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.spec-table { border-top: 1px solid var(--line); }
.spec-table__row { display: grid; grid-template-columns: minmax(130px, 0.42fr) 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font-weight: 600; font-size: 0.95rem; }
.spec-table dd { color: var(--ink-soft); font-size: 0.97rem; }
.box-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--milk-100); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.box-card__title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin-bottom: 18px; }
:lang(th) .box-card__title { font-weight: 600; }
.box-list { display: grid; gap: 12px; }
.box-list li { display: flex; align-items: center; gap: 12px; }
.box-list__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: #fff; color: var(--roast-700); border: 1px solid var(--line); }
.box-card__note { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .specs__inner { grid-template-columns: minmax(0, 1fr); }
  .box-card { position: static; }
}
@media (max-width: 520px) { .spec-table__row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------------------------------------------------------------- accessories */
.accessories { background: var(--milk-50); }
.acc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.acc-card { display: grid; gap: 6px; align-content: start; }
.acc-card__media { position: relative; aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--milk-100); border: 1px solid var(--line); margin-bottom: 10px; }
.acc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.acc-card__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--roast-600); font-size: 0.85rem; text-align: center; padding: 12px; }
.acc-card__placeholder .icon { width: 34px; height: 34px; opacity: 0.6; }
.acc-card--sample .acc-card__media { border-style: dashed; border-color: var(--crema-400); }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--crema-500); color: var(--espresso-950); }
.acc-card__name { font-size: 1.05rem; font-weight: 600; }
.acc-card__desc { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 900px) { .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- warranty + faq */
.support { background: var(--milk-100); }
.support__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.warranty { background: var(--espresso-900); color: var(--crema-100); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 44px); }
.warranty .eyebrow { color: var(--crema-400); }
.warranty .section-title { color: #fff; margin-bottom: 16px; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
.warranty .fine-print { color: rgb(246 234 219 / 0.7); }
.warranty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgb(200 145 90 / 0.16); color: var(--crema-400); margin-bottom: 22px; }
.warranty__icon .icon { width: 30px; height: 30px; }
.faq .section-title { margin-bottom: 22px; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--roast-600); transition: transform 0.3s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding: 0 2px 20px; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 860px) { .support__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- contact */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 50% 0%, #3a1d14, var(--espresso-950) 70%);
  color: #fff; padding-block: var(--section-y);
}
.contact__actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1000px; margin-inline: auto; }
.contact-btn {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px 20px; border-radius: var(--radius-m);
  text-decoration: none; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1);
  transition: background-color 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.contact-btn:hover { background: rgb(255 255 255 / 0.1); transform: translateY(-2px); border-color: rgb(255 255 255 / 0.22); }
.contact-btn .icon { width: 28px; height: 28px; color: var(--crema-400); }
.contact-btn span { display: grid; min-width: 0; }
.contact-btn strong { font-weight: 600; }
.contact-btn small { font-size: 0.85rem; color: rgb(255 255 255 / 0.65); overflow-wrap: anywhere; }
.contact-btn--line { background: var(--line-green); border-color: var(--line-green); color: var(--espresso-950); }
.contact-btn--line .icon, .contact-btn--line small { color: var(--espresso-950); }
.contact-btn--line:hover { background: #05b34c; border-color: #05b34c; }
.contact__sample { text-align: center; margin-top: 22px; font-size: 0.85rem; color: var(--crema-300); }
@media (max-width: 960px) { .contact__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .contact__actions { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--espresso-950); color: rgb(255 255 255 / 0.7); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgb(255 255 255 / 0.06); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.brand--footer { color: #fff; margin: 0 0 4px; }
.site-footer__tagline { font-size: 0.92rem; }
.site-footer__langs { display: flex; gap: 18px; }
.site-footer__langs a { text-decoration: none; font-size: 0.92rem; }
.site-footer__langs a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { font-size: 0.85rem; width: 100%; }

/* ---------------------------------------------------------------- mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgb(251 248 243 / 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .action-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .action-bar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--espresso-900); color: #fff; }
  .action-bar__btn--line { background: var(--line-green); color: var(--espresso-950); }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- language banner */
.lang-banner {
  position: fixed; z-index: 60; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  width: min(calc(100% - 2 * var(--gutter)), 560px);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px 14px 20px; border-radius: var(--radius-m);
  background: var(--espresso-900); color: #fff; box-shadow: var(--shadow-2);
}
.lang-banner[hidden] { display: none; }
.lang-banner p { flex: 1 1 100%; font-size: 0.95rem; }
.lang-banner a { margin-left: auto; }
.lang-banner a { padding: 8px 16px; border-radius: 999px; background: var(--crema-500); color: var(--espresso-950); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.lang-banner button { border: 0; background: transparent; color: rgb(255 255 255 / 0.7); cursor: pointer; padding: 8px; border-radius: 8px; font-size: 0.9rem; }
.lang-banner button:hover { color: #fff; }
@media (max-width: 760px) { .lang-banner { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 761px) {
  .lang-banner { left: auto; right: var(--gutter); translate: none; width: min(calc(100% - 2 * var(--gutter)), 440px); }
}

/* ---------------------------------------------------------------- additions */
.eyebrow { text-wrap: balance; }
@media (max-width: 980px) {
  .explorer__menu { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.btn--brew[aria-disabled="true"] { opacity: 0.7; cursor: progress; transform: none; }
.spec-item { display: inline-block; }
.finish-row:focus-visible { outline-offset: 6px; }
@media (max-width: 960px) {
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; background: transparent; }
  .no-js .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 10px; }
}
@media (forced-colors: active) {
  .seg__btn[aria-checked="true"], .drink-tab[aria-selected="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .toggle { border: 1px solid CanvasText; }
}
