/* =========================================================
   CHAIOMI — site styles (dark · minimal)
   ========================================================= */
:root {
  /* Chaiomi brand palette (Brand Guidelines p.18) */
  --brand-navy: #141e5a;
  --brand-navy-2: #304278;
  --brand-ink: #0f0f0e;
  --brand-paper: #eceff2;
  --brand-terracotta: #e78958;
  --brand-clay: #a46042;

  --bg: var(--brand-ink);
  --bg-2: #13141b;
  --bg-3: #1a1c27;
  --surface: rgba(255, 255, 255, .035);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .18);
  --text: var(--brand-paper);
  --muted: #8e94a6;
  --dim: #5a6074;
  --accent: var(--brand-terracotta);
  --accent-2: var(--brand-clay);

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- page transitions (View Transitions API, multi-page) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
::view-transition-group(site-nav) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html:not(.lenis) { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 13vw, 168px) 0; }
.muted { color: var(--muted); }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.display { font: 600 clamp(3rem, 8.4vw, 7.2rem)/.95 var(--f-display); letter-spacing: -.05em; }
.title { font: 600 clamp(2.1rem, 4.8vw, 3.7rem)/1.04 var(--f-display); letter-spacing: -.035em; }
.sub { color: var(--muted); font-size: 17px; max-width: 34em; }
.head { margin-bottom: clamp(44px, 6vw, 72px); }
.head .title { margin-top: 16px; }
.head .sub { margin-top: 16px; }
.lead { font: 500 clamp(1.6rem, 3.4vw, 2.7rem)/1.18 var(--f-display); letter-spacing: -.03em; max-width: 22em; }

/* split text (site.js wraps words) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .12em .16em; margin: -.04em -.12em -.16em; } /* room for tight tracking + descenders, layout unchanged */
.w > span { display: inline-block; }
html.motion [data-split] .w > span { transform: translateY(130%); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 0; font: 500 15px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; will-change: transform; }
.btn--light { background: var(--text); color: #000; }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
.btn--accent { background: var(--accent); color: #000; }
.btn--accent:hover { box-shadow: 0 0 0 6px rgba(231, 137, 88, .18); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn span[aria-hidden] { transition: transform .4s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

/* ================= NAV ================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; view-transition-name: site-nav; transition: background .4s, transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled { background: rgba(15, 15, 14, .9); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__logo { margin-right: auto; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { position: relative; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .3s; padding: 6px 0; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav__toggle { display: none; }
@media (max-width: 820px) {
  .nav__cta { display: none; }
  .nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
  .nav__toggle span { width: 22px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--gutter); background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__links a { font: 600 38px/1.3 var(--f-display); letter-spacing: -.03em; color: var(--text); }
  .nav__links a[aria-current="page"]::after { left: auto; right: 0; bottom: 50%; }
}

/* ================= 3D STAGES ================= */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
.stage.is-ready .stage__canvas { opacity: 1; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(15, 15, 14, .92), rgba(15, 15, 14, 0) 36%), linear-gradient(to right, rgba(15, 15, 14, .6), rgba(15, 15, 14, 0) 48%); }
.story .stage::after { background: linear-gradient(to top, rgba(15, 15, 14, .94), rgba(15, 15, 14, 0) 45%), linear-gradient(to right, rgba(15, 15, 14, .85), rgba(15, 15, 14, .35) 38%, rgba(15, 15, 14, 0) 60%); }
.stage__loader { position: absolute; left: 50%; bottom: 44px; z-index: 2; width: 120px; height: 1px; margin-left: -60px; background: var(--border); transition: opacity .6s; }
.stage__loader span { display: block; height: 100%; width: 40%; background: var(--accent); animation: load 1.2s var(--ease) infinite; }
.stage__loader img { position: absolute; left: 50%; bottom: 18px; width: 34px; height: 34px; margin-left: -17px; animation: breathe 2.4s ease-in-out infinite; }
.stage__loader { overflow: visible; clip-path: inset(-80px 0 0 0); }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
.stage.is-ready .stage__loader, .stage.is-failed .stage__loader { opacity: 0; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.stage__fallback { position: absolute; inset: 0; display: none; place-items: center; z-index: 0; }
.stage__fallback img { max-height: 80%; width: auto; opacity: .9; }
.stage.is-failed .stage__fallback { display: grid; }

/* live joint telemetry */
.hud { position: absolute; z-index: 2; right: var(--gutter); top: 96px; display: grid; gap: 4px; font: 400 11px/1.5 var(--f-mono); color: var(--dim); text-align: right; white-space: pre; pointer-events: none; }
.hud span { display: block; }
.hud b { font-weight: 500; color: var(--muted); margin-left: 6px; }
.hud span.is-hot, .hud span.is-hot b { color: var(--accent); }
.hud__state { color: var(--text); margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; }
.hud__state i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (max-width: 760px) { .hud { display: none; } }

/* ---------- HOME hero ---------- */
.hero__copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(56px, 11vh, 120px); }
.hero__copy .display { margin-top: 18px; max-width: 7em; }
.hero__copy .sub { margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 760px) {
  /* phone: kiosk in the top half, copy anchored to the bottom over a solid scrim */
  .hero__copy { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); }
  .hero__copy .eyebrow { font-size: 10px; }
  .hero__copy .display { margin-top: 10px; font-size: clamp(2.6rem, 12vw, 3.4rem); max-width: none; }
  .hero__copy .sub { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .hero .mood { margin-top: 16px; }
  .hero .mood__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .hero .mood__chips::-webkit-scrollbar { display: none; }
  .hero .mood__chips .chip { flex: none; }
  .hero .mood__out { font-size: 13px; }
  .hero .hero__actions { margin-top: 14px; gap: 10px; }
  .hero .hero__actions .btn { padding: 13px 18px; font-size: 14px; }
  .hero.stage::after { background: linear-gradient(to top, var(--bg) 0%, var(--bg) 46%, rgba(15, 15, 14, .7) 58%, rgba(15, 15, 14, 0) 70%); }
}

/* ---------- HOW IT WORKS story ---------- */
.story { position: relative; height: 1450vh; }
.story .stage { position: sticky; top: 0; }
.cap { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(56px, 10vh, 110px); max-width: min(500px, calc(100% - 2 * var(--gutter))); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
@media (min-width: 1280px) { .cap { left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.cap.is-on { opacity: 1; transform: none; }
.cap .title { margin-top: 14px; }
.cap .sub { margin-top: 14px; }
.story__bar { position: absolute; z-index: 2; left: var(--gutter); top: 50%; width: 1px; height: 140px; margin-top: -70px; background: var(--border); }
.story__bar i { display: block; height: 100%; background: var(--text); transform-origin: top; transform: scaleY(0); }
@media (min-width: 1280px) { .story__bar { left: calc((100vw - var(--max)) / 2 + var(--gutter) - 28px); } }
.story.is-failed { height: auto; }
.story.is-failed .stage { position: relative; height: auto; min-height: 0; padding: 120px 0 40px; }
.story.is-failed .cap { position: relative; inset: auto; opacity: 1; transform: none; margin: 0 auto 48px; padding: 0 var(--gutter); }
.story.is-failed .stage__fallback { position: relative; }

/* page header (non-3D pages) */
.page-head { padding: 160px 0 clamp(48px, 7vw, 88px); }
.page-head .display { margin-top: 18px; max-width: 11em; font-size: clamp(2.8rem, 7vw, 6rem); }
.page-head .sub { margin-top: 22px; }

/* ================= HOME sections ================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(56px, 8vw, 96px); background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.stat { background: var(--bg); padding: 28px 24px; }
.stat__n { display: block; font: 600 clamp(2rem, 3.6vw, 3rem)/1 var(--f-display); letter-spacing: -.04em; }
.stat__l { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 28px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--border); text-decoration: none; overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.path:hover { border-color: var(--border-2); transform: translateY(-4px); }
.path::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(231, 137, 88, .13), transparent 60%); }
.path:hover::before { opacity: 1; }
.path__n { font: 500 12px/1 var(--f-mono); color: var(--dim); }
.path h3 { margin-top: auto; font: 600 28px/1.1 var(--f-display); letter-spacing: -.03em; }
.path p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.path__go { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-2); transition: background .3s, color .3s, transform .5s var(--ease); }
.path:hover .path__go { background: var(--text); color: #000; transform: rotate(-45deg); }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } .path { min-height: 220px; } }

/* ================= MACHINE MAP (hotspots on the render) ================= */
.map { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.map__figure { position: relative; margin: 0; }
.map__figure img { width: 100%; height: auto; }
.spot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: transparent; }
.spot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(231, 137, 88, .25); transition: transform .3s var(--ease); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(231, 137, 88, .6); animation: ring 2.2s ease-out infinite; }
.spot:hover::before, .spot.is-on::before { transform: scale(1.35); }
.spot.is-on { z-index: 2; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.map__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.map__item { border-bottom: 1px solid var(--border); }
.map__item button { display: flex; width: 100%; align-items: baseline; gap: 16px; padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.map__item .n { font: 500 12px/1 var(--f-mono); color: var(--dim); transition: color .3s; }
.map__item h3 { font: 600 20px/1.2 var(--f-display); letter-spacing: -.02em; color: var(--muted); transition: color .3s; }
.map__item p { color: var(--muted); font-size: 15px; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .5s var(--ease); padding-left: 36px; }
.map__item.is-on h3 { color: var(--text); }
.map__item.is-on .n { color: var(--accent); }
.map__item.is-on p { max-height: 160px; padding-bottom: 18px; }
@media (max-width: 900px) { .map { grid-template-columns: 1fr; } }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 28px; min-height: 210px; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(231, 137, 88, .12), transparent 60%); }
.card:hover::before { opacity: 1; }
.card__n { font: 500 12px/1 var(--f-mono); color: var(--dim); margin-bottom: auto; }
.card h3 { font: 600 21px/1.2 var(--f-display); letter-spacing: -.02em; margin-top: 44px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ================= BREW ENGINE ================= */
.engine { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.field { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.field legend, .range__label { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 14px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.range__label output, .field legend output { color: var(--text); letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14px/1 var(--f-body); padding: 11px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--border-2); }
.chip.is-on { background: var(--text); color: #000; border-color: var(--text); }
.chip--link { background: transparent; border-style: dashed; color: var(--muted); }
.chip--link:hover { color: var(--text); }
.ctx { margin-top: 10px; font: 400 12px/1.5 var(--f-mono); color: var(--dim); min-height: 1.5em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--border-2); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--border-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--text); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--text); }

.result { position: sticky; top: 92px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 24px; padding: clamp(20px, 2.4vw, 28px); }
.result__top { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.result__head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 18px; }
.result__name { font: 600 clamp(26px, 2.6vw, 34px)/1.05 var(--f-display); letter-spacing: -.035em; }
.result__line { margin-top: 8px; color: var(--muted); font-size: 14px; }
.swatch { width: 64px; height: 64px; border-radius: 50%; background: var(--chai, #b27a45); box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .25), 0 0 0 6px var(--bg-3), 0 0 0 7px var(--border); transition: background .8s var(--ease); }
.result__body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; align-items: center; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .grid-line { fill: none; stroke: var(--border); }
.radar .axis { stroke: var(--border); }
.radar .lbl { font: 500 9.5px var(--f-mono); fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.radar .target { fill: none; stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .7; }
.radar .mix { fill: rgba(231, 137, 88, .22); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.legend { display: flex; gap: 14px; margin-top: 6px; font: 400 11px/1 var(--f-mono); color: var(--muted); justify-content: center; }
.legend i { display: inline-block; width: 14px; height: 0; border-top: 1.5px dashed var(--text); vertical-align: middle; margin-right: 6px; }
.legend i.m { border-top: 2px solid var(--accent); }
.doses { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13px; }
.doses li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.doses .bar { grid-column: 1 / -1; height: 3px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.doses .bar i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 3px; transition: width .8s var(--ease); }
.doses li.tea .bar i { background: var(--accent); }
.doses b { font: 500 12px/1.4 var(--f-mono); color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 22px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.metrics div { background: var(--bg-2); padding: 12px 10px; text-align: center; }
.metrics dt { font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.metrics dd { margin: 6px 0 0; font: 600 18px/1 var(--f-display); letter-spacing: -.02em; }
.metrics dd small { font: 400 11px var(--f-body); color: var(--muted); margin-left: 2px; }
.why { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.why li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.why li::before { content: "→"; color: var(--accent); }
.why strong { color: var(--text); font-weight: 500; }
.result.is-new .result__name, .result.is-new .why { animation: flick .5s var(--ease); }
@keyframes flick { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 960px) { .engine { grid-template-columns: 1fr; } .result { position: relative; top: 0; } }
@media (max-width: 520px) { .result__body { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(3, 1fr); } }

.model { margin-top: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model article { padding: 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-2); }
.model h3 { font: 600 18px/1.25 var(--f-display); letter-spacing: -.02em; margin-top: 14px; }
.model p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.note { margin-top: 28px; font-size: 12.5px; color: var(--dim); max-width: 60em; }
@media (max-width: 900px) { .model { grid-template-columns: 1fr; } }

/* ================= ABOUT ================= */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vm article { padding: clamp(24px, 3vw, 40px); border-radius: 22px; border: 1px solid var(--border); background: var(--bg-2); }
.vm p { margin-top: 18px; font: 500 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--f-display); letter-spacing: -.025em; }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { display: block; text-decoration: none; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: border-color .3s; }
.member:hover { border-color: var(--border-2); }
.member__img { aspect-ratio: 1 / 1; background: #d9d8d4; overflow: hidden; }
.member__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; mix-blend-mode: multiply; filter: grayscale(1); transition: filter .5s, transform .8s var(--ease); }
.member:hover .member__img img { filter: grayscale(0); transform: scale(1.03); }
.member__body { padding: 18px 20px 20px; display: flex; justify-content: space-between; gap: 12px; }
.member__name { font: 600 18px/1.2 var(--f-display); letter-spacing: -.02em; }
.member__role { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.member__in { color: var(--muted); transition: color .3s, transform .3s var(--ease); }
.member:hover .member__in { color: var(--text); transform: translate(2px, -2px); }
@media (max-width: 900px) { .team__grid { grid-template-columns: 1fr 1fr; } }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); }
.contact__mail { display: inline-block; margin-top: 28px; font: 500 20px/1 var(--f-display); color: var(--accent); text-decoration: none; }
.form { display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 16px/1.4 var(--f-body); color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; width: 100%; resize: vertical; transition: border-color .3s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--border-2); }
.form .is-invalid { border-color: #e5484d; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .contact__grid, .form__row { grid-template-columns: 1fr; } }

/* ================= APP CTA ================= */
.app { position: relative; text-align: center; overflow: hidden; margin: 0 var(--gutter); border-radius: 32px; background: radial-gradient(120% 100% at 50% 0%, var(--brand-navy-2) 0%, var(--brand-navy) 48%, #0c1240 100%); }
.app .sub { color: rgba(236, 239, 242, .72); }
.app::before { content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(231, 137, 88, .14), transparent 60%); pointer-events: none; }
.app__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.app__icon { border-radius: 22px; }
.app .title { margin-top: 28px; font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.045em; }
.app .sub { margin: 18px auto 0; }
.app__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 14px; background: var(--text); color: #000; text-decoration: none; text-align: left; font: 600 16px/1.1 var(--f-body); }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .6; }
.store svg { width: 24px; height: 24px; }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__brand { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.footer__icon { width: 30px; height: 30px; }
.footer__logo { height: 24px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .3s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 12px; color: var(--dim); }

/* ================= REVEALS ================= */
html.motion .reveal { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- story finale: the cup becomes the hero ---------- */
.pour { position: absolute; inset: 0; z-index: 3; pointer-events: none; visibility: hidden; }
.pour.is-on { visibility: visible; }
.pour__veil { position: absolute; inset: 0; opacity: 0; background: radial-gradient(70% 80% at 28% 55%, rgba(30, 44, 18, .55), rgba(15, 15, 14, .96) 70%), var(--bg); }
.pour__glass { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; }
.pour__glass > * { position: absolute; }
.pour__copy { position: absolute; top: 50%; left: 54%; width: min(460px, 38vw); opacity: 0; pointer-events: auto; will-change: transform, opacity; }
.pour__copy .title { margin-top: 14px; font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.pour__copy .sub { margin-top: 16px; }
.pour__copy .btn { margin-top: 0; }
.pour__specs { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; margin: 28px 0 32px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pour__specs dt { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pour__specs dd { margin: 8px 0 0; font: 600 20px/1 var(--f-display); letter-spacing: -.02em; }
.pour:not(.is-on) * { animation-play-state: paused !important; }
.pour__img { inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.pour__glow { inset: -30% -55%; z-index: 0; background: radial-gradient(closest-side, rgba(126, 178, 64, .42), rgba(126, 178, 64, 0)); }
.pour__shadow { left: 12%; right: 12%; bottom: -3%; height: 6%; z-index: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); filter: blur(10px); }
/* printed logo: sits on the green part of the cup and takes the drink's tone underneath */
.pour__logo { z-index: 2; left: 27%; width: 46%; height: auto; top: 63%; opacity: .92; mix-blend-mode: screen; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
/* white paper straw: a cylinder shaded side to side, cut end on top */
.pour__straw { z-index: 3; left: 59%; top: -21%; width: 6.4%; height: 34%; border-radius: 3px 3px 0 0; transform: rotate(11deg); transform-origin: 50% 100%;
  background: linear-gradient(90deg, #b9b9b5 0%, #ecece8 22%, #ffffff 42%, #f4f4f1 60%, #d6d6d2 82%, #a9a9a5 100%);
  -webkit-mask: linear-gradient(to bottom, #000 82%, transparent); mask: linear-gradient(to bottom, #000 82%, transparent); }
.pour__straw::before { content: ""; position: absolute; left: 6%; right: 6%; top: -3px; height: 7px; border-radius: 50%; background: radial-gradient(closest-side, #4a4a47 45%, #dcdcd8 60%, #f6f6f3 100%); }
.pour__straw--in { z-index: 2; top: 13%; height: 46%; opacity: .32; transform-origin: 50% 0; transform: rotate(11deg); mix-blend-mode: screen; border-radius: 0; -webkit-mask: linear-gradient(to bottom, #000, transparent); mask: linear-gradient(to bottom, #000, transparent); }
.pour__straw--in::before { display: none; }
.pour.is-on .pour__img, .pour.is-on .pour__logo, .pour.is-on .pour__straw:not(.pour__straw--in) { animation: pourFloat 5s ease-in-out infinite alternate; }
@keyframes pourFloat { from { translate: 0 -4px; } to { translate: 0 6px; } }
@media (max-width: 760px) {
  .pour__copy { top: auto; bottom: 28px; left: var(--gutter); right: var(--gutter); width: auto; }
  .pour__copy .sub { font-size: 15px; }
  .pour__specs { gap: 12px; margin: 18px 0 20px; padding: 12px 0; }
  .pour__specs dd { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pour * { animation: none !important; } }

/* ---------- home: OMI pillars + menu ---------- */
.stat__n--sm { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.drink { position: relative; padding: 28px 24px 26px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--border); transition: border-color .4s, transform .5s var(--ease); }
.drink:hover { border-color: var(--border-2); transform: translateY(-4px); }
.drink__cup { width: 64px; height: 80px; color: var(--text); transition: transform .6s var(--ease); }
.drink:hover .drink__cup { transform: rotate(-6deg) translateY(-4px); }
.drink h3 { margin-top: 22px; font: 600 24px/1.1 var(--f-display); letter-spacing: -.03em; }
.drink p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.menu__note { margin-top: 20px; font: 400 12px/1.5 var(--f-mono); color: var(--dim); letter-spacing: .04em; }
@media (max-width: 900px) { .menu { grid-template-columns: 1fr 1fr; } }

/* ---------- about: story, vision detail, values ---------- */
.story-prose { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: clamp(40px, 6vw, 72px); color: var(--muted); font-size: 17px; }
.story-prose strong { color: var(--text); font-weight: 500; }
.vm .vm__more { margin-top: 14px; font: 400 15px/1.6 var(--f-body); letter-spacing: 0; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; }
.value { background: var(--bg); padding: 28px; }
.value h3 { font: 600 22px/1.15 var(--f-display); letter-spacing: -.025em; }
.value p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .story-prose, .values { grid-template-columns: 1fr; } }

/* ---------- motion: caption words, reading highlight, marquee ---------- */
.cw { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .12em .16em; margin: -.04em -.12em -.16em; }
.cw > span { display: inline-block; transform: translateY(130%); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.cap.is-on .cw > span, .story.is-failed .cw > span { transform: none; }
.sw { transition: none; }
.marquee { padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--border); overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); }
.marquee__group span { font: 600 clamp(2rem, 5.2vw, 4.4rem)/1 var(--f-display); letter-spacing: -.04em; white-space: nowrap; }
.marquee__group span.o { color: transparent; -webkit-text-stroke: 1px rgba(236, 239, 242, .45); }
.marquee__group span.a { color: var(--accent); }
.marquee__group img { width: clamp(26px, 3vw, 40px); height: auto; opacity: .9; }
@media (prefers-reduced-motion: reduce) { .cw > span { transform: none; transition: none; } }
.accent-dot { color: var(--accent); }

/* ---------- hero: mood picker ---------- */
.chip--sm { padding: 9px 14px; font-size: 13px; }
.mood { margin-top: 26px; }
.mood__q { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mood__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mood__chips .chip { cursor: pointer; color: var(--text); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.mood__chips .chip:active { transform: scale(.96); }
.mood__chips .chip.is-on { background: var(--accent); border-color: var(--accent); color: #0f0f0e; }
.mood__out { margin-top: 12px; min-height: 1.5em; font-size: 14px; color: var(--muted); max-width: 34em; }
.mood__out strong { color: var(--text); font-weight: 600; }
.hero__copy .hero__actions { margin-top: 22px; }

/* menu cups: liquid rises as you scroll; the surface keeps a slow wave */
.cup__liquid { will-change: transform; }
.cup__wave { animation: cupWave 3.6s linear infinite; }
.cup__wave--top { animation-duration: 2.8s; animation-direction: reverse; }
@keyframes cupWave { to { transform: translateX(20px); } }
@media (prefers-reduced-motion: reduce) { .cup__wave { animation: none; } }
.cup__mark { opacity: .92; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .35)); } /* printed brand mark on the cup */
/* paper straws on the iced drinks */
.drink__cup { overflow: visible; }
.cup__straw, .cup__straw-in { stroke: #f4f4f1; stroke-width: 3.4; stroke-linecap: round; }
.cup__straw-in { opacity: .45; }
.cup__straw-end { fill: #8d8f96; }

/* ---------- brand intro (home, once per tab) ---------- */
.intro { display: none; }
html.intro-on .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 42%, var(--brand-navy-2), var(--brand-navy) 55%, #0b1036); transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
html.intro-on .intro.is-out { transform: translateY(-101%); }
html.intro-on body { overflow: hidden; }
.intro__mark { display: flex; flex-direction: column; align-items: center; }
.intro__icon { width: 64px; height: 64px; animation: introBloom 1.1s cubic-bezier(.22, 1, .36, 1) both; }
.intro__word { display: block; overflow: hidden; margin-top: 20px; padding: 0 .2em .1em; }
.intro__word img { display: block; width: clamp(150px, 22vw, 220px); height: auto; animation: introRise .9s .35s cubic-bezier(.22, 1, .36, 1) both; }
.intro__line { display: block; width: 100%; height: 2px; margin-top: 18px; background: var(--accent); transform-origin: left; animation: introLine 1s .55s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes introBloom { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes introRise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes introLine { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- steam over the hot cups (shows once they are full) ---------- */
.cup__steam path { fill: none; stroke: #eceff2; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 22 30; opacity: 0; transition: opacity .8s; animation: steam 2.6s linear infinite; }
.cup__steam path:nth-child(2) { animation-delay: -.9s; } .cup__steam path:nth-child(3) { animation-delay: -1.7s; }
.menu.is-full .cup__steam path { opacity: .5; }
@keyframes steam { from { stroke-dashoffset: 52; transform: translateY(4px); } to { stroke-dashoffset: 0; transform: translateY(-4px); } }

.path { transform-style: preserve-3d; will-change: transform; }
.path, .path:hover { transform: none; }
html.motion .path { transition: border-color .4s; }
@media (prefers-reduced-motion: reduce) { .cup__steam path { animation: none; } }
