/* =========================================================
   EMBER COFFEE ROASTERS — fictional brand, portfolio piece
   Design & development: Marek Ševela
   ========================================================= */

:root {
  --bg: #120C09;
  --bg2: #1E130D;
  --cream: #F3EBDD;
  --paper: #F6F0E6;
  --ink: #1A110C;
  --ember: #FF5A1F;
  --ember-2: #E8430F;
  --tan: #C89B6D;
  --line-d: rgba(243, 235, 221, .14);
  --line-l: rgba(26, 17, 12, .14);

  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(14px, 2.4vw, 36px);
  --radius: clamp(18px, 2vw, 30px);
  --header-h: 76px;

  --f-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.is-loading { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--ember); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}
.display em, .card__name em {
  font-family: var(--f-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: -.02em;
  font-size: 1.08em;
  color: var(--ember);
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* masked line reveals */
.rl .line, .hero__title .line {
  display: block;
  overflow: hidden;
  padding: .12em 0 .04em;
  margin: -.12em 0 -.04em;
}
.rl .line > span { display: inline-block; }

/* letter roll (text-shadow clone) */
.roll {
  display: inline-flex;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
  vertical-align: middle;
}
.roll .ch {
  display: inline-block;
  text-shadow: 0 1.2em 0 currentColor;
  transition: transform .6s var(--ease);
  transition-delay: calc(var(--i) * 16ms);
}
.roll .ch--sp { width: .28em; }
@media (hover: hover) {
  a:hover .roll .ch, button:hover .roll .ch { transform: translateY(-1.2em); }
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .4s, color .4s, border-color .4s;
}
.pill svg { width: 16px; height: 16px; }
.pill--ghost { border: 1px solid currentColor; }
.pill--solid { background: var(--cream); color: var(--ink); }
.pill--accent { background: var(--ember); color: var(--ink); height: 54px; padding: 0 26px; font-size: 15px; font-weight: 600; }

/* ---------- Curtain & loader ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  display: flex; pointer-events: none;
}
.curtain span { flex: 1; background: var(--bg2); margin-right: -2px; }
.curtain span:nth-child(even) { background: #24170F; }

.loader {
  position: fixed; inset: 0; z-index: 101;
  display: grid; place-items: center;
  color: var(--cream);
  pointer-events: none;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader__bean { width: 34px; color: var(--ember); --crease: var(--bg2); }
.loader__num {
  font-family: var(--f-display);
  font-size: clamp(96px, 20vw, 280px);
  line-height: .85;
  display: flex; align-items: flex-start;
  font-variant-numeric: tabular-nums;
}
.loader__num small { font-size: .3em; margin: .2em 0 0 .08em; color: var(--ember); }
.loader__label { font-family: var(--f-serif); font-style: italic; font-size: 22px; opacity: .8; }
.loader__bar { width: min(320px, 60vw); height: 2px; background: var(--line-d); }
.loader__bar i { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }

/* fail-safe: never trap the visitor behind the loader if scripts fail */
html:not(.js-ready) .loader, html:not(.js-ready) .curtain { animation: failsafe .6s 7s forwards; }
@keyframes failsafe { to { opacity: 0; visibility: hidden; } }
html:not(.js-ready).is-loading { animation: unlock 0s 7s forwards; }
@keyframes unlock { to { overflow: auto; } }
.reduced .loader, .reduced .curtain { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 102; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid #fff;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s;
}
.cursor.is-hover .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: #fff; }
.cursor.is-stir .cursor__ring { width: 120px; height: 120px; margin: -60px 0 0 -60px; border-style: dashed; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  color: var(--cream);
  transition: color .45s, transform .6s var(--ease);
}
.header[data-theme="light"] { color: var(--ink); }
.header.is-hidden { transform: translateY(-110%); }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 26px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.logo svg { width: 15px; color: var(--ember); --crease: var(--bg); }
.header__tag { font-size: 12px; line-height: 1.35; opacity: .7; margin-left: 28px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.header__right { display: flex; gap: 10px; align-items: center; margin-left: 24px; }
.header[data-theme="light"] .pill--solid { background: var(--ink); color: var(--paper); }
.cart__count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: var(--ember); color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.burger { display: grid; gap: 4px; width: 14px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

@media (max-width: 1080px) { .header__tag { display: none; } }
@media (max-width: 900px) {
  .nav { display: none; }
  .header__right { margin-left: auto; }
}
@media (max-width: 420px) {
  .cart .roll { display: none; }
  .cart { padding: 0 12px; }
}

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: 55; visibility: hidden; color: var(--cream); }
.menu__bg { position: absolute; inset: 0; display: flex; }
.menu__bg span { flex: 1; background: var(--bg2); margin-right: -2px; box-shadow: 0 0 0 1px var(--bg2); }
.menu__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 4vh) var(--pad) 28px;
}
.menu__links a {
  display: flex; align-items: flex-start; gap: 18px;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(52px, 9.5vw, 150px); line-height: .95;
}
.menu__links .mask { display: block; overflow: hidden; padding-top: .1em; margin-top: -.1em; transition: transform .6s var(--ease); }
.menu__links .mask > span { display: block; transition: color .4s; }
.menu__num { font-family: var(--f-body); font-size: 13px; margin-top: 1.3em; opacity: .5; }
@media (hover: hover) {
  .menu__links a:hover .mask > span { color: var(--ember); }
  .menu__links a:hover .mask { transform: translateX(.08em); }
}
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; opacity: .8; }

/* ---------- Hero ---------- */
.hero { padding: var(--header-h) var(--pad) 0; position: relative; }
.hero__card {
  position: relative;
  height: calc(100svh - var(--header-h) - var(--pad));
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 35%, #FF7A3D 0%, rgba(255, 122, 61, 0) 60%),
    radial-gradient(90% 80% at 15% 100%, #C93A0B 0%, rgba(201, 58, 11, 0) 70%),
    linear-gradient(160deg, #FF6A2A 0%, #F04E14 55%, #D63F0C 100%);
  color: var(--ink);
  transform-origin: 50% 0;
  isolation: isolate;
}
.hero__title {
  position: absolute; left: clamp(18px, 3vw, 44px); bottom: clamp(18px, 4vh, 48px);
  z-index: 1;
  font-size: clamp(64px, 13.2vw, 230px);
  color: var(--bg);
  pointer-events: none;
}
.hero__title .ch { display: inline-block; transform-origin: 0 100%; }
.hero__title .line--serif {
  font-family: var(--f-serif); font-style: italic; text-transform: none;
  color: var(--cream);
  font-size: 1.04em; letter-spacing: -.03em; line-height: .78;
  padding: .06em 0 .2em .1em; margin: -.06em 0 -.2em;
  margin-left: 1.6em;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100% !important; height: 100% !important;
  touch-action: pan-y;
}
.hero__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.corner { position: absolute; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.corner--tl { left: clamp(18px, 3vw, 44px); top: clamp(18px, 3vw, 36px); }
.corner--tr { right: clamp(18px, 3vw, 44px); top: clamp(18px, 3vw, 36px); text-align: right; font-variant-numeric: tabular-nums; }
.hero__hint {
  position: absolute; left: 50%; top: clamp(18px, 3vw, 36px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 99px; background: rgba(18, 12, 9, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg); position: relative; }
.hint-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--bg); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

.badge {
  position: absolute; right: clamp(18px, 3vw, 44px); bottom: clamp(18px, 4vh, 48px);
  width: clamp(104px, 10vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg); color: var(--cream);
  pointer-events: auto;
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge text { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
.badge__arrow { width: 26px; height: 26px; color: var(--ember); transform: rotate(90deg); transition: transform .6s var(--ease); }
@media (hover: hover) { .badge:hover .badge__arrow { transform: rotate(45deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__below {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
}
.hero__lead { max-width: 30ch; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -.01em; }

@media (max-width: 700px) {
  .hero__card { min-height: 560px; height: calc(100svh - var(--header-h) - 12px); }
  .hero__title { font-size: clamp(54px, 17vw, 96px); bottom: 132px; }
  .hero__title .line--serif { margin-left: .9em; }
  .badge { width: 96px; bottom: 18px; }
  .corner--tr { display: none; }
  .hero__hint { top: auto; bottom: 18px; left: 18px; transform: none; }
}

/* ---------- Bands ---------- */
.bands {
  position: relative;
  height: clamp(190px, 22vw, 320px);
  overflow: hidden;
  display: grid; place-items: center;
}
.band { position: absolute; left: -6%; width: 112%; padding: clamp(12px, 1.4vw, 20px) 0; white-space: nowrap; overflow: hidden; }
.band--a { background: var(--ember); color: var(--ink); transform: rotate(-4deg); z-index: 2; }
.band--b { background: var(--cream); color: var(--ink); transform: rotate(3deg); }
.band__track { display: flex; width: max-content; will-change: transform; }
.band__unit {
  display: inline-flex; align-items: center; gap: clamp(18px, 2vw, 32px);
  padding-right: clamp(18px, 2vw, 32px);
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 70px); line-height: 1;
}
.band__unit em { font-family: var(--f-serif); text-transform: none; font-size: 1.12em; letter-spacing: -.02em; }
.bi { width: .46em; flex-shrink: 0; color: var(--ink); --crease: var(--ember); }
.band--b .bi { color: var(--ember); --crease: var(--cream); }

/* ---------- Statement ---------- */
.statement { background: var(--cream); color: var(--ink); padding: clamp(110px, 15vw, 220px) var(--pad); position: relative; z-index: 1; }
.statement__inner { max-width: 1240px; margin: 0 auto; }
.statement .eyebrow { margin-bottom: 36px; }
.statement__text {
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: 1.06; letter-spacing: -.025em; font-weight: 500;
  text-indent: 14%;
}
.statement__text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ember-2); letter-spacing: -.01em; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(70px, 9vw, 130px);
  border-top: 1px solid var(--line-l); padding-top: 28px;
}
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat__num { font-family: var(--f-display); font-size: clamp(72px, 9vw, 150px); line-height: .86; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; opacity: .7; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .statement__text { text-indent: 0; }
}

/* ---------- Coffee (horizontal) ---------- */
.coffee-wrap { background: var(--cream); }
.coffee {
  position: relative;
  height: 100svh;
  background: var(--bg);
  color: var(--cream);
  overflow: hidden;
}
.coffee__track {
  display: flex; align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  height: 100%;
  width: max-content;
  padding: calc(var(--header-h) + 10px) var(--pad) 70px;
  will-change: transform;
}
.coffee__intro { width: clamp(290px, 36vw, 580px); flex-shrink: 0; padding-right: 3vw; }
.coffee__intro .eyebrow { margin-bottom: 26px; color: var(--tan); }
.coffee__intro h2 { font-size: clamp(56px, 6.6vw, 118px); }
.coffee__lead { margin-top: 26px; max-width: 34ch; font-size: 17px; opacity: .75; }

.card {
  --c: #F2B84B; --t: var(--ink);
  flex-shrink: 0;
  width: clamp(280px, 27vw, 400px);
  height: min(72svh, 680px);
  background: var(--c); color: var(--t);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.card__top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card__visual { flex: 1; min-height: 0; display: grid; place-items: center; padding: 14px 0; }
.bag {
  height: min(100%, 250px); aspect-ratio: 3 / 4;
  background: var(--bg);
  border-radius: 0 0 12px 12px;
  clip-path: polygon(0 3%, 5% 0, 10% 3%, 15% 0, 20% 3%, 25% 0, 30% 3%, 35% 0, 40% 3%, 45% 0, 50% 3%, 55% 0, 60% 3%, 65% 0, 70% 3%, 75% 0, 80% 3%, 85% 0, 90% 3%, 95% 0, 100% 3%, 100% 100%, 0 100%);
  position: relative;
  display: grid; place-items: center;
  box-shadow: inset -18px 0 30px rgba(255, 255, 255, .05), inset 18px 0 24px rgba(0, 0, 0, .35);
  will-change: transform;
}
.bag::before { content: ''; position: absolute; left: 0; right: 0; top: 9%; height: 2px; background: rgba(243, 235, 221, .14); }
.bag__label {
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center;
}
.bag__brand { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .04em; line-height: 1; }
.bag__name { font-family: var(--f-serif); font-style: italic; font-size: clamp(15px, 1.25vw, 19px); color: var(--c); line-height: 1.1; filter: saturate(1.2) brightness(.8); }
.bag__weight { font-size: 10px; letter-spacing: .14em; opacity: .6; }
.card__info { display: flex; flex-direction: column; gap: 10px; }
.card__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(40px, 3.4vw, 58px); line-height: .9; font-weight: 400; }
.card__notes { font-family: var(--f-serif); font-style: italic; font-size: 21px; line-height: 1.1; }
.roast { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; }
.roast__bar { flex: 1; height: 5px; border-radius: 9px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.roast__bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: currentColor; border-radius: inherit; }
.card__buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.price { font-family: var(--f-display); font-size: 24px; line-height: 1; }
.price small { font-family: var(--f-body); font-size: 12px; opacity: .7; }
.add {
  height: 42px; padding: 0 16px; border-radius: 99px;
  background: var(--t); color: var(--c);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: transform .4s var(--ease);
}
.add:active { transform: scale(.94); }
.add.is-added { background: var(--ink); color: var(--paper); }

.card--sub { background: transparent; color: var(--cream); border: 1px solid var(--line-d); --c: var(--ember); --t: var(--cream); }
.card--sub .add { background: var(--ember); color: var(--ink); }
.sub__bean { width: 38%; color: var(--ember); --crease: var(--bg); animation: wobble 6s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(18deg) translateY(-8px); } }

.coffee__progress {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 26px;
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.coffee__bar { flex: 1; height: 2px; background: var(--line-d); }
.coffee__bar i { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }
.coffee__progress svg { width: 18px; height: 18px; }

/* ---------- Roasting ---------- */
.roasting { --fg: var(--ink); --bean: #8C9A63; position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--fg); background: #DCE3C9; }
.roasting__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 20px clamp(24px, 4vw, 60px);
  padding: calc(var(--header-h) + 8px) var(--pad) 32px;
}
.roasting__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.readout { display: flex; gap: clamp(20px, 4vw, 56px); text-align: right; }
.readout div { display: flex; flex-direction: column; gap: 4px; }
.readout b { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.roasting__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.roasting__giant {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 2%;
  font-family: var(--f-display); font-size: clamp(150px, 25vw, 420px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--fg); opacity: .22;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.roasting__bean { position: relative; width: min(100%, 520px); height: 100%; max-height: 560px; display: grid; place-items: center; }
.roasting__svg { width: clamp(120px, 16vw, 230px); color: var(--bean); --crease: color-mix(in srgb, var(--bean) 55%, #000); transform: rotate(-20deg); }
.roasting__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s; }
.roasting.has-3d .roasting__svg { display: none; }
.roasting.has-3d .roasting__canvas { opacity: 1; }
.chaff { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.chaff i { position: absolute; width: 16px; height: 9px; margin: -4px 0 0 -8px; border-radius: 50%; background: var(--tan); transform: scale(0); }
.roasting__steps { display: grid; align-self: center; }
.step { grid-area: 1 / 1; max-width: 520px; }
.step__no { font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.step h3 { font-size: clamp(52px, 6.4vw, 108px); margin: 14px 0 18px; }
.step p { font-size: clamp(16px, 1.3vw, 19px); max-width: 38ch; opacity: .85; }
.roasting__bar { grid-column: 1 / -1; }
.roasting__track { height: 2px; background: color-mix(in srgb, var(--fg) 20%, transparent); }
.roasting__track i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.roasting__labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.roasting__labels li { opacity: .35; transition: opacity .3s; }
.roasting__labels li:first-child { opacity: 1; }
.roasting__labels li:nth-child(2) { text-align: center; }
.roasting__labels li:nth-child(3) { text-align: center; }
.roasting__labels li:last-child { text-align: right; }

@media (max-width: 800px) {
  .roasting__inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 14px; }
  .roasting__stage { min-height: 220px; }
  .roasting__bean { max-height: 300px; }
  .readout { gap: 18px; }
  .step h3 { font-size: clamp(44px, 12vw, 64px); margin: 8px 0 10px; }
  .step p { font-size: 15px; }
  .roasting__labels { font-size: 10px; letter-spacing: .06em; }
  .roasting__head .eyebrow { font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
  .readout b { font-size: 26px; }
}

/* ---------- Café ---------- */
.cafe { background: var(--cream); color: var(--ink); padding: clamp(110px, 14vw, 200px) var(--pad); position: relative; }
.cafe__head .eyebrow { margin-bottom: 26px; }
.cafe__head h2 { font-size: clamp(60px, 9.5vw, 170px); }
.cafe__grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(40px, 6vw, 110px); margin-top: clamp(60px, 8vw, 110px); }
.cafe__info > div { border-top: 1px solid var(--line-l); padding: 20px 0 26px; }
.cafe__info h4 { margin-bottom: 10px; opacity: .6; }
.cafe__info p { font-size: 18px; line-height: 1.4; }
.drinks { border-top: 1px solid var(--line-l); }
.drink {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 4px 24px; padding: 24px 14px;
  border-bottom: 1px solid var(--line-l);
  transition: color .45s;
}
.drink::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: top;
  transition: transform .55s var(--ease);
}
.drink__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(34px, 3.8vw, 62px); line-height: 1; transition: transform .55s var(--ease); }
.drink__desc { grid-column: 1; font-family: var(--f-serif); font-style: italic; font-size: 19px; opacity: .7; transition: transform .55s var(--ease); }
.drink__price { grid-row: 1 / 3; grid-column: 2; font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); }
@media (hover: hover) {
  .drink:hover { color: var(--paper); }
  .drink:hover::before { transform: scaleY(1); transform-origin: bottom; }
  .drink:hover .drink__name, .drink:hover .drink__desc { transform: translateX(14px); }
}
.drink-preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 210px; height: 210px; border-radius: 50%;
  background: var(--pc, var(--ember));
  pointer-events: none;
  display: grid; place-items: center; align-content: center; gap: 6px;
  visibility: hidden;
  transition: background .4s;
}
.drink-preview svg { width: 52%; }
.drink-preview__label { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--paper); }
.steam { animation: steam 2.4s ease-in-out infinite; opacity: 0; }
.steam:nth-child(2) { animation-delay: .5s; }
.steam:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
@media (max-width: 800px) { .cafe__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--cream); padding: clamp(110px, 12vw, 190px) var(--pad) 22px; overflow: hidden; position: relative; }
.footer__cta .eyebrow { margin-bottom: 26px; color: var(--tan); }
.footer__cta h2 { font-size: clamp(60px, 10vw, 180px); }
.btn-big {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 44px; height: 70px; padding: 0 32px;
  border-radius: 99px; background: var(--ember); color: var(--ink);
  font-size: 18px; font-weight: 600;
}
.btn-big svg { width: 20px; height: 20px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line-d); padding-top: 30px; }
.footer__cols h4 { margin-bottom: 10px; opacity: .55; }
.footer__cols p { font-size: 17px; line-height: 1.45; }
.footer__giant {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: 36vw; line-height: .76;
  display: flex; justify-content: center;
  margin: clamp(50px, 7vw, 100px) calc(var(--pad) * -1) 0;
  overflow: hidden;
  color: var(--ember);
  padding-top: .04em;
}
.footer__giant .ch { display: inline-block; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 13px; opacity: .75; }
.footer__bottom a u { text-underline-offset: 3px; }
@media (max-width: 700px) {
  .footer__cols { grid-template-columns: 1fr; }
  .btn-big { height: 60px; padding: 0 24px; font-size: 16px; }
}

/* fly-to-bag dot */
.fly { position: fixed; left: 0; top: 0; z-index: 70; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ember); pointer-events: none; box-shadow: 0 0 0 4px rgba(255, 90, 31, .25); }

/* ---------- Reduced motion fallbacks ---------- */
.reduced .coffee { height: auto; }
.reduced .coffee__track { width: auto; overflow-x: auto; padding-bottom: 90px; }
.reduced .roasting { height: auto; }
.reduced .roasting__steps { gap: 40px; }
.reduced .step { grid-area: auto; }
.reduced .roasting__bar, .reduced .coffee__progress { display: none; }
.reduced .badge__ring, .reduced .sub__bean, .reduced .steam, .reduced .hint-dot::after { animation: none; }
.reduced .steam { opacity: 1; }
