/* Pit & Rig Coffee · coffee.pitandrig.com */

:root {
  --bg: #0f0e0d;
  --bg-2: #161412;
  --bg-3: #1d1a17;
  --line: rgba(244, 241, 233, 0.12);
  --line-2: rgba(244, 241, 233, 0.22);
  --paper: #f4f1e9;
  --paper-2: #e9e3d4;
  --dim: rgba(244, 241, 233, 0.68);
  --faint: rgba(244, 241, 233, 0.45);
  --kraft: #dcc9a5;
  --orange: #e8752a;
  --amber: #f7a51c;
  --ot: #e2621d;
  --red: #c9351c;
  --cream: #f1e3c8;
  --ink: #151311;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --semi: "Barlow Semi Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* set by the shift clock */
  --ray: 255 150 70;
  --ray-a: 0.32;
  --glow: 232 117 42;
  --glow-a: 0.4;
  --accent: var(--orange);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.9; margin: 0; }
.mono, .mono-label { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  color: var(--dim); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); flex: none; transition: background 0.6s, box-shadow 0.6s; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  background: var(--b); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 4px; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.25s var(--ease), background 0.25s, filter 0.25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; font-size: 16px; padding: 0 16px; }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); clip-path: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn-cream { --b: var(--cream); }
.btn-wide { width: 100%; }
.btn-link { background: none; border: 0; padding: 6px 0; color: var(--dim); font-family: var(--mono); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--paper); }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 150; display: none; place-items: center;
  background: var(--bg); transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.intro.gone { opacity: 0; visibility: hidden; }
.js .intro { display: grid; }
.intro[hidden], .js .intro[hidden] { display: none; }
.intro-card { font-family: var(--mono); width: min(320px, 84vw); }
.intro-title { font-size: 12px; letter-spacing: 0.2em; color: var(--faint); margin: 0 0 14px; }
.intro ul { list-style: none; margin: 0; padding: 0; }
.intro li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--dim); }
.intro li::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 3px; flex: none; transition: all 0.2s; }
.intro li.ok { color: var(--paper); }
.intro li.ok::before { background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23151311' stroke-width='2.4'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--orange); }
.intro-go { margin: 18px 0 0; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: 0.02em; color: var(--orange); opacity: 0; transform: translateY(6px); transition: all 0.3s var(--ease); }
.intro-go.on { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(15, 14, 13, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: 22px; fill: var(--orange); }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.02em; line-height: 1; }
.brand-word b { color: var(--orange); }
.brand-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink); background: var(--paper); padding: 3px 6px 2px; border-radius: 2px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--dim); letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--paper); }
@media (max-width: 860px) { .nav-links { display: none; } }
.btn-sm .short { display: none; }
@media (max-width: 480px) {
  .btn-sm .long { display: none; }
  .btn-sm .short { display: inline; }
  .nav { gap: 12px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
}
@media (max-width: 340px) { .brand-tag { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 92px 0 28px;
  isolation: isolate;
}
.rays { position: absolute; inset: 0; z-index: -2; pointer-events: none; filter: blur(26px); --ox: 70%; transition: filter 0.4s; }
.ray {
  position: absolute; top: -14%; height: 128%;
  width: var(--w, 12vw); left: var(--ox);
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgb(var(--ray) / calc(var(--ray-a) * 1.3)) 0%, rgb(var(--ray) / calc(var(--ray-a) * 0.45)) 40%, transparent 84%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  transform: translateX(-50%) rotate(var(--r0));
  animation: sway var(--d, 11s) ease-in-out infinite alternate;
}
.ray:nth-child(1) { --w: 12vw; --d: 12s; --r0: -26deg; --r1: -21deg; opacity: 0.6; }
.ray:nth-child(2) { --w: 14vw; --d: 9s; --r0: -12deg; --r1: -7deg; }
.ray:nth-child(3) { --w: 10vw; --d: 13s; --r0: -2deg; --r1: 3deg; }
.ray:nth-child(4) { --w: 15vw; --d: 10s; --r0: 9deg; --r1: 14deg; opacity: 0.85; }
.ray:nth-child(5) { --w: 18vw; --d: 15s; --r0: 22deg; --r1: 28deg; opacity: 0.5; }
@keyframes sway { from { transform: translateX(-50%) rotate(var(--r0)); } to { transform: translateX(-50%) rotate(var(--r1)); } }
.hero.flash .rays { filter: blur(20px) brightness(1.7); }
@media (max-width: 900px) { .rays { --ox: 50%; } }

.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute; left: 50%; bottom: -30vh; width: 140vw; height: 70vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--glow) / var(--glow-a)), transparent 100%);
  z-index: -2; pointer-events: none; transition: background 0.8s;
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(16px, 3vw, 48px); flex: 1; }
.hero-title { font-size: clamp(52px, min(6.9vw, 11.5vh), 116px); margin-bottom: 20px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: inline-block; transition: transform 0.9s var(--ease); }
.js:not(.ready) .hero-title .line > span { transform: translateY(105%); }
.hero-title .line:nth-child(2) > span { transition-delay: 0.07s; }
.hero-title .line:nth-child(3) > span { transition-delay: 0.14s; }
.hero-title .line:nth-child(4) > span { transition-delay: 0.21s; }
.hero-title em { font-style: normal; color: var(--accent); transition: color 0.6s; position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.07em; background: currentColor;
  transform-origin: left; transition: transform 0.7s 0.8s var(--ease);
}
.js:not(.ready) .hero-title em::after { transform: scaleX(0); }
.lede { max-width: 520px; color: var(--dim); font-size: clamp(16px, 1.3vw, 18px); margin: 0 0 22px; }
.lede-kick { display: block; color: var(--paper); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05; margin-bottom: 8px; }
.now-line {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 0 0 26px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  max-width: 560px; min-height: 64px;
}
.now-time { font-family: var(--mono); font-weight: 600; font-size: 22px; color: var(--accent); transition: color 0.6s; font-variant-numeric: tabular-nums; }
.now-text { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: 0.01em; line-height: 1.1; }
.now-text.swap { animation: swapIn 0.45s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-bag { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
.hero-bag::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 150%; height: 120%; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, #2c2825 0%, rgba(36, 32, 29, 0.75) 45%, transparent 100%);
  pointer-events: none;
}
.bag-stack {
  position: relative; height: min(66vh, 700px); aspect-ratio: 1122 / 1402; max-width: 100%;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform 0.4s var(--ease);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }
.bag {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 54% 58% at 50% 46%, #000 52%, rgba(0, 0, 0, 0.5) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 58% at 50% 46%, #000 52%, rgba(0, 0, 0, 0.5) 74%, transparent 100%);
  opacity: 0; transform: scale(1.06) translateY(14px); filter: blur(6px) brightness(0.7);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
}
.bag.is-on { opacity: 1; transform: none; filter: none; }
.bag-tag {
  margin: -6px 0 0; display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
.bag-tag-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.03em; color: var(--accent); transition: color 0.6s; }

/* shift bar */
.shiftbar { margin-top: 18px; position: relative; z-index: 2; }
.shiftbar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.mono-label { font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }
.drag-hint { animation: hint 2.4s ease-in-out infinite; display: inline-block; }
@keyframes hint { 50% { opacity: 0.45; } }
.now-btn { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); cursor: pointer; transition: all 0.2s; }
.now-btn:hover { color: var(--paper); border-color: var(--paper); }
.now-btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.track { position: relative; height: 58px; border-radius: 6px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: visible; touch-action: none; }
.band {
  position: absolute; top: 0; bottom: 22px; display: flex; align-items: center; padding: 0 10px; overflow: hidden;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; font-weight: 500;
  transition: filter 0.3s, opacity 0.3s;
}
.band i { font-style: normal; opacity: 0.6; margin-left: 6px; }
.band .short { display: none; }
.band-a { left: 0; width: 16.6667%; border-radius: 6px 0 0 0; }
.band-first { left: 16.6667%; width: 33.3333%; background: var(--kraft); color: var(--ink); }
.band-ot { left: 50%; width: 33.3333%; background: var(--ot); color: var(--ink); }
.band-b { left: 83.3333%; width: 16.6667%; border-radius: 0 6px 0 0; }
.band-night { background: #050505; color: var(--amber); box-shadow: inset 0 0 0 1px rgba(247, 165, 28, 0.35); }
.track[data-on="first"] .band:not(.band-first),
.track[data-on="ot"] .band:not(.band-ot),
.track[data-on="night"] .band:not(.band-night) { filter: saturate(0.4) brightness(0.55); }
.ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; }
.tick { position: absolute; top: 0; width: 1px; height: 5px; background: var(--line-2); }
.tick.major { height: 8px; background: var(--faint); }
.tick span { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; color: var(--faint); }
.handle {
  position: absolute; top: -8px; bottom: 16px; width: 3px; margin-left: -1.5px; left: 25%;
  background: var(--paper); border-radius: 2px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 22px rgb(var(--ray) / 0.9);
}
.handle::before { content: ""; position: absolute; left: 50%; top: 0; width: 15px; height: 15px; background: var(--paper); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgb(var(--ray) / 0.35); }
.handle-time {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--paper); color: var(--ink);
  padding: 3px 7px; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.track-input {
  position: absolute; inset: -14px 0 0 0; width: 100%; height: calc(100% + 14px); margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none;
}
.track-input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 70px; }
.track-input::-moz-range-thumb { width: 32px; height: 70px; border: 0; }
.track:has(.track-input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 4px; }

@media (max-width: 900px) {
  /* phone/tablet: headline, bag, clock, then the pitch */
  .hero { padding-top: 78px; justify-content: flex-start; }
  .hero-grid, .hero-copy { display: contents; }
  .hero-copy > *, .hero-bag { padding-left: var(--gutter); padding-right: var(--gutter); }
  .eyebrow { order: 1; }
  .hero-title { order: 2; font-size: clamp(46px, 12.6vw, 92px); margin-bottom: 4px; }
  .hero-bag { order: 3; }
  .now-line { order: 4; min-height: 0; margin: 0 var(--gutter); padding-left: 0; padding-right: 0; border-top: 0; justify-content: center; text-align: center; gap: 4px 10px; }
  .shiftbar { order: 5; margin-top: 8px; }
  .lede { order: 6; margin: 26px 0 18px; }
  .ctas { order: 7; }
  .bag-stack { height: auto; width: min(58vw, 330px); }
  .bag-tag { flex-wrap: wrap; justify-content: center; gap: 0 10px; margin-top: -10px; }
  .bag-tag-roast { white-space: nowrap; }
  .bag-tag-name { font-size: 22px; white-space: nowrap; }
}
@media (max-width: 900px) and (min-height: 900px) { .bag-stack { width: min(64vw, 400px); } }
@media (max-width: 640px) {
  .band > span:first-child { display: none; }
  .band .short { display: inline; }
  .band-first .short { display: none; }
  .band-first > span:first-child { display: inline; }
  .band-first i { display: none; }
  .band-a > span { display: inline !important; }
  .band-a { padding: 0 6px; }
  .tick span { font-size: 9px; }
  .ctas .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) { .band-a span { display: none !important; } }

/* ---------- caution tapes ---------- */
.tapes { position: relative; height: 150px; overflow: hidden; margin-top: -10px; }
.tape { position: absolute; left: -5%; width: 110%; padding: 12px 0; overflow: hidden; }
.tape-front {
  top: 44px; transform: rotate(-2.4deg); z-index: 2; color: var(--ink);
  background: var(--orange);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.tape-front::before, .tape-front::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 10px, transparent 10px 20px);
}
.tape-front::before { top: 0; } .tape-front::after { bottom: 0; }
.tape-back { top: 52px; transform: rotate(2deg); background: var(--paper-2); color: var(--ink); opacity: 0.9; }
.tape-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.tape-back .tape-track { animation-duration: 52s; animation-direction: reverse; }
.tape-track span { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.06em; white-space: pre; padding: 4px 0 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
section { position: relative; }
.sec-head { max-width: 900px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(44px, 6.6vw, 96px); }
.sec-sub { color: var(--dim); font-size: clamp(16px, 1.4vw, 19px); margin: 18px 0 0; max-width: 560px; }

.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- roasts ---------- */
.roasts { padding-top: clamp(70px, 9vw, 130px); padding-bottom: clamp(70px, 9vw, 130px); }
.roast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.roast-grid .roast:nth-child(2) { transition-delay: 0.1s; }
.roast-grid .roast:nth-child(3) { transition-delay: 0.2s; }
.roast { perspective: 1600px; display: flex; }
.roast > .roast-inner { flex: 1; }
.front { height: 100%; display: flex; flex-direction: column; }
.front .front-meta { flex: 1; }
.roast-inner {
  --flip: 0deg;
  position: relative; display: block; cursor: pointer; outline: none;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--flip) + var(--ry, 0deg)));
  transition: transform 0.8s var(--ease);
  border-radius: 10px;
}
.roast-inner.tilting { transition: transform 0.15s linear; }
.roast-inner[aria-pressed="true"] { --flip: 180deg; }
.roast-inner:focus-visible { box-shadow: 0 0 0 2px var(--amber); }
.face {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.face-img { aspect-ratio: 1122 / 1402; overflow: hidden; }
.face-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.roast:hover .face-img img { transform: scale(1.04); }
.front-meta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--line); }
.num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.fm-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fm-text b { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
.fm-text span { font-size: 13px; color: var(--dim); margin-top: 4px; }
.roast-first .fm-text b { color: var(--kraft); }
.roast-night .fm-text b { color: var(--amber); }
.roast-ot .fm-text b { color: var(--ot); }
.flip-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--dim); white-space: nowrap; transition: all 0.2s; }
.roast:hover .flip-hint { color: var(--paper); border-color: var(--paper); }

.back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  display: flex; flex-direction: column; padding: clamp(18px, 2vw, 26px);
  --bk: var(--kraft); --fg: var(--ink); --ac: var(--orange);
  background: var(--bk); color: var(--fg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.roast-night .back { --bk: #121110; --fg: var(--amber); --ac: var(--amber); box-shadow: inset 0 0 0 1px rgba(247, 165, 28, 0.25); }
.roast-ot .back { --bk: var(--ot); --fg: var(--ink); --ac: var(--ink); }
.back-head { display: flex; justify-content: space-between; font-family: var(--semi); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; padding-bottom: 8px; border-bottom: 3px solid var(--ac); }
.back-name { font-family: var(--semi); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 4.4vw, 62px); line-height: 0.86; margin: 16px 0 6px; letter-spacing: -0.01em; }
.roast-ot .back-name { font-family: var(--display); font-size: clamp(38px, 4vw, 56px); }
.back-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.spec { margin: 0; display: grid; gap: 0; flex: 1; align-content: start; }
.spec div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; padding-top: 2px; }
.spec dd { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 500; }
.back-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; padding-top: 10px; border-top: 3px solid var(--ac); margin-top: 8px; }
.back-stamp {
  position: absolute; right: 18px; top: 38%; transform: rotate(-12deg);
  font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: 0.04em; color: var(--cream);
  border: 4px solid var(--cream); border-radius: 8px; padding: 0 10px; opacity: 0.85; mix-blend-mode: screen;
}
@media (max-width: 900px) {
  .roast-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .roast-grid .roast { transition-delay: 0s !important; }
}

/* ---------- overtime ---------- */
.overtime { padding: clamp(70px, 9vw, 130px) 0; background: linear-gradient(180deg, var(--bg) 0%, #140f0b 50%, var(--bg) 100%); }
.ot-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.ticket {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 6px;
  padding: clamp(18px, 2.4vw, 28px); font-family: var(--mono); font-size: 13px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.2);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(21, 19, 17, 0.05) 27px 28px);
  overflow: hidden;
}
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.ticket.shake { animation: shake 0.42s; }
@keyframes shake { 15% { transform: translate(-6px, 2px) rotate(-0.6deg); } 30% { transform: translate(5px, -2px) rotate(0.5deg); } 45% { transform: translate(-4px, 1px); } 60% { transform: translate(3px, 0); } 75% { transform: translate(-2px, 0); } }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.t-brand { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.04em; }
.t-no { font-size: 12px; font-weight: 600; }
.ticket-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ticket-meta span { display: flex; flex-direction: column; }
.ticket-meta i { font-style: normal; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.ticket-meta b { font-weight: 600; font-size: 13px; }
.ticket-lines { width: 100%; border-collapse: collapse; }
.ticket-lines th { text-align: left; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; font-weight: 500; padding: 6px 0; border-bottom: 1px solid rgba(21, 19, 17, 0.25); }
.ticket-lines td { padding: 10px 6px 10px 0; border-bottom: 1px dashed rgba(21, 19, 17, 0.25); vertical-align: top; }
.ticket-lines th:nth-child(2), .ticket-lines td:nth-child(2) { white-space: nowrap; }
.ticket-lines th:last-child, .ticket-lines td:last-child { text-align: right; width: 100px; padding-right: 0; }
.st { font-weight: 600; }
.st-ok { color: #2f7d3a; }
.st.pending { color: #8a6d1d; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.st.no { color: var(--red); }
.st.yes { color: #2f7d3a; }
.row-coffee td:first-child { font-weight: 600; }
.ticket-sign { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.sig-line { flex: 1; height: 26px; border-bottom: 1.5px solid var(--ink); position: relative; }
.sig-line svg { position: absolute; left: 6px; bottom: 2px; height: 34px; width: auto; }
.sig-line path { fill: none; stroke: #1d3f8f; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: sign 0.9s 0.2s var(--ease) forwards; }
@keyframes sign { to { stroke-dashoffset: 0; } }

.stamp {
  position: absolute; pointer-events: none;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  border: 5px solid currentColor; border-radius: 10px; padding: 0 14px; line-height: 1.15;
  opacity: 0; transform: rotate(var(--rot, -12deg)) scale(2.6);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.stamp.in { animation: stamp 0.38s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(var(--rot, -12deg)) scale(2.6); }
  70% { opacity: 0.95; transform: rotate(var(--rot, -12deg)) scale(0.94); }
  100% { opacity: 0.92; transform: rotate(var(--rot, -12deg)) scale(1); }
}
.stamp-denied { color: var(--red); font-size: clamp(40px, 5vw, 64px); right: 7%; top: 42%; --rot: -14deg; }
.stamp-approved { color: #2f7d3a; font-size: clamp(34px, 4.2vw, 54px); right: 4%; bottom: 7%; --rot: 8deg; }

.ot-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.ot-status { font-size: 13px; color: var(--dim); margin: 0; flex-basis: 100%; min-height: 1.5em; }
.ot-status .typing::after { content: "▌"; animation: blink 0.8s steps(2) infinite; }

.ot-right { position: relative; }
.ot-bag { position: relative; aspect-ratio: 1122 / 1402; border-radius: 10px; overflow: hidden; max-width: 520px; margin: 0 auto; }
.ot-bag img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.45) contrast(1.1); transform: scale(1.04); transition: filter 1.1s var(--ease), transform 1.4s var(--ease); }
.overtime[data-state="approved"] .ot-bag img { filter: none; transform: none; }
.ot-bag::after { content: "PENDING APPROVAL"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; color: var(--paper); background: rgba(15, 14, 13, 0.7); padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 4px; white-space: nowrap; transition: opacity 0.4s; }
.overtime[data-state="approved"] .ot-bag::after { opacity: 0; }
.ot-burst { position: absolute; inset: 0; pointer-events: none; }
.ot-burst i { position: absolute; left: 50%; top: 55%; width: var(--s); height: var(--s); border-radius: 40%; background: var(--c); animation: burst 1.1s var(--ease) forwards; }
@keyframes burst { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)); opacity: 0; } }
.ot-payoff { margin-top: 22px; text-align: center; opacity: 0; transform: translateY(16px); transition: all 0.7s var(--ease); pointer-events: none; }
.overtime[data-state="approved"] .ot-payoff { opacity: 1; transform: none; pointer-events: auto; }
.ot-payoff .display { font-size: clamp(34px, 3.8vw, 52px); color: var(--ot); margin-bottom: 18px; }
.plug { color: var(--dim); font-size: 14px; margin: 18px auto 0; max-width: 420px; }
.plug a { color: var(--paper); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .ot-grid { grid-template-columns: 1fr; }
  .ot-bag { max-width: 380px; }
  .ticket-meta { grid-template-columns: 1fr 1fr; }
  .ticket-meta span:last-child { grid-column: span 2; }
}

/* ---------- interlude ---------- */
.interlude { position: relative; height: clamp(520px, 92vh, 980px); overflow: hidden; display: flex; align-items: flex-end; }
.interlude-img { position: absolute; inset: -10% 0; will-change: transform; }
.interlude-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 55%, rgba(15, 14, 13, 0.85) 82%, var(--bg) 100%); }
.interlude-copy { position: relative; z-index: 2; padding-bottom: clamp(30px, 6vw, 80px); }
.interlude-title { font-size: clamp(76px, 15vw, 230px); line-height: 0.82; text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6); }
@media (max-width: 640px) { .interlude-img img { object-position: 50% 45%; } .interlude { height: 78vh; } }

/* ---------- story ---------- */
.story { padding: clamp(30px, 5vw, 70px) 0 clamp(70px, 9vw, 120px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.stage {
  position: sticky; top: 12vh; height: 76vh; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 10%, #221d18 0%, var(--bg-2) 55%, #0b0a09 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.layer { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0.7s; }
.stage[data-ch="1"] .l1, .stage[data-ch="2"] .l2, .stage[data-ch="3"] .l3, .stage[data-ch="4"] .l4 { opacity: 1; visibility: visible; }

/* l1 stamps */
.stamps { position: absolute; inset: 0; }
.pstamp {
  position: absolute; display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; line-height: 1;
  border: 3px solid currentColor; padding: 8px 12px; border-radius: 6px; font-size: clamp(16px, 1.7vw, 24px);
  opacity: 0; transform: scale(1.8) rotate(var(--r)); transition: opacity 0.35s, transform 0.45s var(--spring);
}
.pstamp.round { border-radius: 50%; width: 7.2em; height: 7.2em; padding: 0; font-size: clamp(13px, 1.2vw, 16px); box-shadow: inset 0 0 0 4px var(--bg-2), inset 0 0 0 6px currentColor; }
.stage[data-ch="1"] .pstamp { opacity: 0.88; transform: scale(1) rotate(var(--r)); }
.s1 { --r: -10deg; left: 8%; top: 9%; color: var(--orange); transition-delay: 0.05s !important; }
.s2 { --r: 12deg; right: 8%; top: 8%; color: var(--kraft); transition-delay: 0.2s !important; }
.s3 { --r: 5deg; left: 12%; top: 34%; color: var(--amber); transition-delay: 0.35s !important; }
.s4 { --r: -16deg; right: 10%; top: 40%; color: var(--paper); transition-delay: 0.5s !important; }
.s5 { --r: -4deg; left: 7%; bottom: 25%; color: var(--kraft); transition-delay: 0.65s !important; }
.s6 { --r: 9deg; right: 9%; bottom: 23%; color: var(--ot); transition-delay: 0.8s !important; }
.odo { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); text-align: center; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 18px; min-width: 210px; }
.odo-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--faint); }
.odo-num { display: block; font-family: var(--mono); font-weight: 600; font-size: 30px; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.odo-num.done { font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; color: var(--orange); }

/* l2 badge */
.eotw { width: min(78%, 420px); height: auto; transform: rotate(-8deg) scale(0.9); transition: transform 1.2s var(--ease), filter 0.8s; }
.stage[data-ch="2"] .eotw { transform: rotate(0) scale(1); }
.eotw-outer { fill: #171411; stroke: var(--cream); stroke-width: 3; }
.eotw-inner { fill: none; stroke: var(--cream); stroke-width: 2; }
.eotw-ring { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: 3px; fill: var(--cream); }
.eotw-sun { fill: var(--orange); }
.eotw-ground { fill: #171411; }
.eotw-hills { fill: #171411; stroke: var(--cream); stroke-width: 2; }
.eotw-lines line { stroke: var(--cream); stroke-width: 2; opacity: 0.5; }
.eotw-mid { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 6px; fill: var(--cream); text-anchor: middle; }
.eotw-mid.big { font-size: 30px; font-weight: 800; letter-spacing: 3px; }

/* l3 dad timesheet */
.dad-sheet { width: min(82%, 380px); background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 13px; padding: 20px; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.ds-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 6px; }
.ds-head span:first-child { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; }
.ds-head span:last-child { font-size: 11px; opacity: 0.7; }
.dad-sheet ul { list-style: none; margin: 0; padding: 0; }
.dad-sheet li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(21, 19, 17, 0.3); }
.dad-sheet li b { color: #2f7d3a; }
.dad-sheet li.paused b { color: var(--red); font-size: 11px; letter-spacing: 0.1em; }
.ds-foot { display: flex; justify-content: space-between; padding-top: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ds-foot b { font-family: var(--display); font-size: 20px; text-transform: none; letter-spacing: 0.02em; color: #1d3f8f; transform: rotate(-4deg); }
.stamp-family { color: var(--orange); font-size: clamp(22px, 2.4vw, 32px); left: 50%; top: 14%; --rot: 10deg; margin-left: -6.5em; }
.stage[data-ch="3"] .stamp-family { animation: stamp 0.4s 0.35s cubic-bezier(0.5, 0, 0.75, 0) forwards; }

/* l4 jp */
.jp { margin: 0; position: absolute; inset: 0; }
.jp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.stage[data-ch="4"] .jp img { transform: scale(1); }
.jp figcaption { position: absolute; left: 16px; bottom: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; background: rgba(15, 14, 13, 0.75); padding: 8px 12px; border-radius: 4px; backdrop-filter: blur(6px); }
.jp figcaption b { color: var(--orange); }
.stamp-back { color: var(--orange); font-size: clamp(22px, 2.4vw, 34px); right: 16px; top: 18px; --rot: 8deg; background: rgba(15, 14, 13, 0.4); }
.stage[data-ch="4"] .stamp-back { animation: stamp 0.4s 0.6s cubic-bezier(0.5, 0, 0.75, 0) forwards; }

.stage-dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 10px; z-index: 3; }
.stage[data-ch="4"] .stage-dots { display: none; }
.stage-dots li { padding: 3px 6px; border-radius: 3px; color: var(--faint); border: 1px solid var(--line); }
.stage[data-ch="1"] .stage-dots li:nth-child(1), .stage[data-ch="2"] .stage-dots li:nth-child(2), .stage[data-ch="3"] .stage-dots li:nth-child(3) { color: var(--ink); background: var(--orange); border-color: var(--orange); }

.chapters { padding: 12vh 0 6vh; }
.chapter { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; opacity: 0.25; transition: opacity 0.6s var(--ease); }
.chapter.on { opacity: 1; }
.ch-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin: 0 0 16px; }
.chapter h3 { font-size: clamp(36px, 4.2vw, 62px); margin-bottom: 22px; }
.chapter p { color: var(--dim); font-size: clamp(17px, 1.35vw, 19px); margin: 0 0 16px; max-width: 540px; }
.chapter p b { font-weight: 600; }
.c-first { color: var(--kraft); } .c-night { color: var(--amber); } .c-ot { color: var(--ot); }
.chapter blockquote { margin: 14px 0 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.02; color: var(--paper); max-width: 520px; }
.chapter .sign { font-family: var(--mono); font-size: 14px; color: var(--paper); margin-top: 10px; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .stage { top: 72px; height: 42vh; z-index: 5; box-shadow: inset 0 0 0 1px var(--line), 0 24px 30px -10px var(--bg); }
  .chapters { padding-top: 4vh; }
  .chapter { min-height: 70vh; padding: 4vh 0; }
  .pstamp { font-size: 14px; padding: 6px 9px; }
  .pstamp.round { font-size: 11px; }
  .odo { min-width: 170px; padding: 6px 12px; }
  .odo-num { font-size: 22px; }
  .dad-sheet { padding: 14px; font-size: 12px; }
  .dad-sheet li { padding: 6px 0; }
  .ds-head span:first-child { font-size: 20px; }
  .stamp-family { top: 6%; }
}

/* ---------- calculator ---------- */
.calc { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.calc-in { display: flex; flex-direction: column; gap: 26px; margin: 0; padding: clamp(20px, 2.6vw, 32px); background: var(--bg); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.field-range label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.field-range output { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--paper); line-height: 1; font-variant-numeric: tabular-nums; }
input[type="range"]:not(.track-input) {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0;
  --p: 50%;
}
input[type="range"]:not(.track-input)::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--p), var(--bg-3) var(--p)); }
input[type="range"]:not(.track-input)::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--p), var(--bg-3) var(--p)); }
input[type="range"]:not(.track-input)::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 4px solid var(--orange); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
input[type="range"]:not(.track-input)::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--orange); }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 10px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 12px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-family: var(--display); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: 0.03em; transition: all 0.2s; }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.calc-note { font-size: 12px; color: var(--faint); margin: 0; }

.calc-out { padding: clamp(20px, 2.6vw, 32px); border-radius: 10px; background: radial-gradient(120% 90% at 100% 0%, rgba(232, 117, 42, 0.18), transparent 60%), var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.burn { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.burn-num { font-family: var(--display); font-weight: 900; font-size: clamp(80px, 10vw, 150px); line-height: 0.85; color: var(--orange); font-variant-numeric: tabular-nums; }
.burn-num b { font-weight: 900; }
.burn-num i { font-style: normal; font-size: 0.4em; margin-left: 4px; color: var(--paper); }
.burn-label { font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; color: var(--dim); }
.bags-line { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; margin: 10px 0 16px; }
.bags-line b { color: var(--paper); font-size: 40px; }
.bags-line .mono { font-size: 13px; color: var(--faint); text-transform: none; font-weight: 400; }
.bag-grid { display: flex; flex-wrap: wrap; gap: 5px; min-height: 40px; margin-bottom: 18px; }
.mini {
  width: 20px; height: 26px; border-radius: 3px 3px 2px 2px; position: relative; background: var(--c);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: pop 0.35s var(--spring) both; animation-delay: calc(var(--i) * 14ms);
}
.mini::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 3px; background: var(--k); opacity: 0.85; }
.mini.first { --c: var(--kraft); --k: var(--orange); }
.mini.night { --c: #050505; --k: var(--amber); box-shadow: inset 0 0 0 1px rgba(247, 165, 28, 0.4); }
.mini.ot { --c: var(--ot); --k: var(--ink); }
.mini-more { align-self: center; font-family: var(--mono); font-size: 13px; color: var(--dim); margin-left: 4px; }
@keyframes pop { from { transform: scale(0) translateY(8px); opacity: 0; } }
.split { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.split li { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 10px 12px; border-radius: 6px; background: var(--bg-2); }
.split li b { font-family: var(--display); font-weight: 800; font-size: 24px; min-width: 2.2ch; font-variant-numeric: tabular-nums; }
.split li .sw { width: 12px; height: 12px; border-radius: 2px; background: var(--c); flex: none; }
.split .first { --c: var(--kraft); } .split .night { --c: var(--amber); } .split .ot { --c: var(--ot); }
.split li.zero { opacity: 0.4; }
.mugs-line { color: var(--dim); margin: 0 0 20px; font-size: 15px; }
.calc-out .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------- list ---------- */
.list { padding: clamp(70px, 9vw, 130px) 0; overflow: hidden; }
.list-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.list .sec-head { margin-bottom: 0; position: relative; }
.list-img { width: min(100%, 400px); margin-top: 18px; -webkit-mask-image: radial-gradient(ellipse 54% 58% at 50% 46%, #000 45%, rgba(0, 0, 0, 0.45) 72%, transparent 100%); mask-image: radial-gradient(ellipse 54% 58% at 50% 46%, #000 45%, rgba(0, 0, 0, 0.45) 72%, transparent 100%); }
.list-card { background: var(--paper); color: var(--ink); border-radius: 10px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9); position: relative; }
.list-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 8px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(-45deg, var(--ink) 0 10px, var(--orange) 10px 20px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.field i { font-style: normal; opacity: 0.5; text-transform: none; }
.field input, .field select {
  height: 50px; border-radius: 6px; border: 1.5px solid rgba(21, 19, 17, 0.25); background: #fffdf7; padding: 0 14px;
  font: 16px var(--body); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; width: 100%; min-width: 0;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23151311' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 117, 42, 0.25); }
.field input.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(201, 53, 28, 0.18); }
.qty { border: 0; padding: 0; margin: 8px 0 16px; }
.qty legend { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; padding: 0; }
.qty-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(21, 19, 17, 0.25); }
.qty-swatch { width: 16px; height: 22px; border-radius: 3px; flex: none; }
.qty-row[data-key="first"] .qty-swatch { background: var(--kraft); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.qty-row[data-key="night"] .qty-swatch { background: #050505; box-shadow: inset 0 -6px 0 var(--amber); }
.qty-row[data-key="ot"] .qty-swatch { background: var(--ot); }
.qty-name { flex: 1; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; }
.qty-name i { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; opacity: 0.6; margin-left: 6px; }
.step { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(21, 19, 17, 0.3); background: #fffdf7; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); flex: none; transition: all 0.15s; }
.step:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qty-row output { font-family: var(--display); font-weight: 800; font-size: 26px; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.qty-row output.bump { animation: bump 0.3s var(--spring); }
@keyframes bump { 50% { transform: scale(1.4); color: var(--orange); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: var(--red); font-size: 14px; margin: 0 0 10px; min-height: 1.2em; font-weight: 500; }
.list-card .btn { clip-path: none; }
.list-card .btn-link { color: rgba(21, 19, 17, 0.7); }
.list-card .btn-link:hover { color: var(--ink); }
.fine { font-size: 12px; opacity: 0.6; margin: 12px 0 0; }
.done { text-align: left; }
.done-ticket { position: relative; padding: 4px 0 6px; overflow: hidden; }
.done-name { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); text-transform: uppercase; line-height: 0.95; margin: 6px 0 14px; }
.done-lines { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 14px; }
.done-lines li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(21, 19, 17, 0.25); }
.done .stamp-approved { right: 4%; top: 36%; bottom: auto; }
.done-note { margin: 18px 0 0; font-size: 15px; }
@media (max-width: 900px) {
  .list-grid { grid-template-columns: 1fr; }
  .list-img { display: none; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .qty-name { font-size: 19px; }
  .qty-name i { display: block; margin: 4px 0 0; }
}

/* ---------- footer ---------- */
.foot { padding: clamp(60px, 8vw, 110px) 0 32px; position: relative; overflow: hidden; }
.foot-big { font-size: clamp(60px, 12.4vw, 200px); line-height: 0.82; color: var(--paper); white-space: nowrap; letter-spacing: -0.01em; }
.foot-big::first-letter { color: var(--orange); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-clock { margin: 0; font-size: 14px; color: var(--dim); }
.foot-clock b { color: var(--orange); font-weight: 600; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-family: var(--mono); font-size: 13px; color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--paper); }
.foot-legal { margin: 22px 0 0; font-size: 12px; color: var(--faint); }
@media (max-width: 640px) { .foot-big { white-space: normal; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .ray { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
