:root {
  --soot: oklch(0.17 0.012 40);
  --soot-2: oklch(0.145 0.01 40);
  --plate: oklch(0.235 0.014 40);
  --edge: oklch(0.32 0.016 40);
  --edge-2: oklch(0.4 0.018 45);
  --ash: oklch(0.93 0.014 75);
  --ash-2: oklch(0.72 0.02 60);
  --cherry: oklch(0.6 0.2 30);
  --cherry-deep: oklch(0.46 0.17 28);
  --orange: oklch(0.74 0.17 55);
  --lemon: oklch(0.88 0.14 92);
  --temper: oklch(0.66 0.12 270);
  --temper-deep: oklch(0.42 0.11 272);
  --straw: oklch(0.8 0.1 80);
  --neg: oklch(0.66 0.19 25);
  --pos: oklch(0.8 0.15 135);
  --display: 'Saira Stencil One', 'Archivo', sans-serif;
  --text: 'Archivo', system-ui, sans-serif;
  --mono: 'Chivo Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-h: 60px;
  --fw: clamp(330px, 34vw, 540px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ash); font-family: var(--text); font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(120% 60% at 70% 0%, oklch(0.22 0.03 35) 0%, transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 119px, oklch(0.2 0.012 40 / 0.6) 119px 120px),
    var(--soot);
  min-height: 100vh; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 3px; cursor: pointer; text-decoration: none; font-weight: 700; font-stretch: 112%;
  font-size: 15px; letter-spacing: 0.01em; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), filter 160ms;
  position: relative;
}
.btn:active { transform: translateY(2px); }
.btn[disabled] { cursor: progress; filter: saturate(0.4) brightness(0.8); }
.btn-heat {
  background: linear-gradient(180deg, oklch(0.7 0.19 42), var(--cherry) 55%, var(--cherry-deep));
  color: oklch(0.16 0.03 30); box-shadow: 0 3px 0 oklch(0.32 0.12 28), 0 0 32px oklch(0.6 0.2 30 / 0.35);
}
.btn-heat:hover { box-shadow: 0 3px 0 oklch(0.32 0.12 28), 0 0 44px oklch(0.7 0.2 40 / 0.55); }
.btn-temper {
  background: linear-gradient(180deg, oklch(0.36 0.07 272), oklch(0.28 0.06 272));
  color: oklch(0.92 0.04 272); box-shadow: inset 0 0 0 1px oklch(0.55 0.11 270), 0 3px 0 oklch(0.2 0.05 272);
}
.btn-temper:hover { box-shadow: inset 0 0 0 1px var(--temper), 0 3px 0 oklch(0.2 0.05 272), 0 0 24px oklch(0.66 0.12 270 / 0.3); }
.btn-iron { background: var(--edge); color: var(--ash); box-shadow: inset 0 1px 0 oklch(0.45 0.02 45), 0 2px 0 oklch(0.12 0.01 40); min-height: 38px; padding: 0 14px; }
.btn-iron:hover { background: var(--edge-2); }
.textlink { color: var(--straw); font-weight: 600; text-underline-offset: 4px; }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(14px, 3vw, 32px);
  background: linear-gradient(180deg, oklch(0.2 0.013 40 / 0.96), oklch(0.17 0.012 40 / 0.94));
  border-bottom: 1px solid var(--edge); backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 24px; letter-spacing: 0.06em; }
.routes { display: flex; gap: 4px; margin-left: 12px; }
.routes a { text-decoration: none; padding: 8px 12px; font-weight: 600; font-stretch: 105%; color: var(--ash-2); border-radius: 3px; }
.routes a:hover { color: var(--ash); background: oklch(0.25 0.014 40); }
.routes a[aria-current="page"] { color: var(--ash); box-shadow: inset 0 -2px 0 var(--cherry); }
.bar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 3px; cursor: pointer;
  background: var(--plate); border: 1px solid var(--edge); font-weight: 600;
}
.chip:hover { border-color: var(--edge-2); }
.chip-sym { font-family: var(--display); font-size: 16px; letter-spacing: 0.04em; color: var(--straw); }
.chip-price { font-size: 14px; }
.chip-chg { font-size: 13px; }
.up { color: var(--pos); } .down { color: var(--neg); }

/* ---------- views ---------- */
.view[hidden] { display: none !important; }

/* ---------- mouth (hero) ---------- */
.mouth { position: relative; min-height: min(calc(100svh - var(--bar-h)), 900px); height: 820px; max-height: calc(100svh - var(--bar-h) + 40px); overflow: hidden; border-bottom: 1px solid var(--edge); }
.stage { position: absolute; inset: 0; }
#furnace { position: absolute; inset: 0; width: 100%; height: 100%; }
#furnace:focus-visible { outline-offset: -4px; }
.mouth-hud {
  position: relative; z-index: 2; padding: clamp(36px, 7vh, 72px) clamp(18px, 4vw, 56px) 0; max-width: min(620px, calc(70% - var(--fw) / 2 - 20px));
  pointer-events: none;
}
.mouth-hud a, .mouth-hud button { pointer-events: auto; }
.kicker-line { font-family: var(--display); font-size: 22px; color: var(--orange); letter-spacing: 0.04em; }
.count {
  font-family: var(--display); font-size: clamp(88px, 11vw, 176px); line-height: 0.88; letter-spacing: 0.01em; margin: 10px 0 18px;
  color: var(--ash); text-shadow: 0 0 40px oklch(0.6 0.2 30 / 0.35);
}
.count small { font-size: 0.3em; color: var(--orange); letter-spacing: 0.04em; margin: 0 0.18em 0 0.04em; text-shadow: none; }
.count small:last-child { margin-right: 0; }
.rule { font-size: 19px; line-height: 1.45; max-width: 34ch; color: oklch(0.88 0.016 70); font-stretch: 104%; }
.rule b { color: var(--lemon); font-weight: 700; }
.hud-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.proof { font-size: 15px; color: var(--ash-2); max-width: 44ch; }
.proof b { color: var(--ash); font-weight: 700; }

.pyro { position: absolute; top: 30%; left: calc(70% + var(--fw) / 2 - 64px); width: 150px; margin: 0; z-index: 2; text-align: center; }
.pyro figcaption { background: oklch(0.2 0.013 40 / 0.9); border: 1px solid var(--edge); border-radius: 3px; padding: 6px 8px; }
.pyro svg { width: 100%; height: auto; filter: drop-shadow(0 6px 10px oklch(0.08 0.01 40 / 0.7)); }
.pyro-rim { fill: oklch(0.3 0.016 45); stroke: oklch(0.45 0.02 50); stroke-width: 2; }
.pyro-face { fill: oklch(0.9 0.02 80); }
.pyro-arc { fill: none; stroke-width: 12; }
.pyro-tick { stroke: oklch(0.25 0.02 40); stroke-width: 1.5; }
.pyro-num { font: 700 16px var(--text); fill: oklch(0.25 0.02 40); text-anchor: middle; }
.pyro-needle { fill: oklch(0.45 0.18 28); transition: transform 1.2s var(--ease); }
#needle { transition: transform 1.2s var(--ease); }
.pyro-hub { fill: oklch(0.25 0.02 40); }
.pyro figcaption { margin-top: 6px; font-size: 13px; color: var(--ash-2); line-height: 1.35; }
.pyro figcaption span:first-child { color: var(--ash); font-weight: 700; }
.pyro-heat { font-family: var(--display); font-size: 17px; color: var(--orange); letter-spacing: 0.04em; }
.heatscale { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); height: 10px; margin: 8px 2px 2px; border-radius: 1px; overflow: visible; }
.heatscale i:nth-child(1) { background: oklch(0.3 0.09 28); }
.heatscale i:nth-child(2) { background: oklch(0.42 0.15 28); }
.heatscale i:nth-child(3) { background: oklch(0.56 0.2 30); }
.heatscale i:nth-child(4) { background: oklch(0.7 0.18 50); }
.heatscale i:nth-child(5) { background: oklch(0.87 0.14 90); }
.heatscale i:nth-child(6) { background: oklch(0.97 0.03 95); }
.heatscale b { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1.5px; background: var(--ash); box-shadow: 0 0 0 1px oklch(0.15 0.01 40); transition: left 1.2s var(--ease); }
.heatscale-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ash-2); margin: 3px 2px 0; }
.samp { font-size: 12px; font-weight: 600; color: var(--ash-2); border: 1px dashed var(--edge-2); border-radius: 2px; padding: 1px 6px; }

.stratum-card {
  position: absolute; z-index: 2; bottom: 9%; right: calc(30% + var(--fw) / 2 + 28px); width: 290px;
  padding: 14px 16px; background: oklch(0.2 0.013 40 / 0.9); border: 1px solid var(--edge); border-radius: 3px;
  box-shadow: 0 10px 30px oklch(0.08 0.01 40 / 0.6);
}
.sc-title { font-family: var(--display); font-size: 20px; letter-spacing: 0.03em; color: var(--straw); }
.sc-body { font-size: 14px; color: var(--ash-2); margin-top: 4px; }
.sc-body b { color: var(--ash); font-size: 22px; font-weight: 800; font-stretch: 90%; display: block; line-height: 1.15; }
.sc-body a { color: var(--straw); font-weight: 600; }
.sc-nav { display: flex; gap: 6px; margin-top: 10px; }
.sc-nav button { min-width: 36px; height: 32px; background: var(--edge); border: 0; border-radius: 3px; cursor: pointer; }
.sc-nav button:hover { background: var(--edge-2); }
.sc-nav span { margin-left: auto; font-size: 13px; color: var(--ash-2); align-self: center; }

.bellows { position: absolute; z-index: 2; right: clamp(14px, 2vw, 32px); bottom: 22px; display: flex; gap: 8px; }
.bellows-btn, .pause-btn {
  height: 40px; padding: 0 14px; border-radius: 3px; border: 1px solid var(--edge-2); background: oklch(0.22 0.014 40 / 0.9);
  cursor: pointer; font-weight: 600; font-size: 14px; touch-action: none; user-select: none; -webkit-user-select: none;
}
.bellows-btn { background: linear-gradient(180deg, oklch(0.35 0.05 45), oklch(0.26 0.03 40)); }
.bellows-btn.on { background: linear-gradient(180deg, oklch(0.62 0.18 40), oklch(0.46 0.16 30)); color: oklch(0.15 0.03 30); transform: translateY(2px); }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 9vw, 112px) clamp(18px, 4vw, 56px); position: relative; }
.band-head { max-width: 640px; margin-bottom: 36px; }
.band-head.row { display: flex; align-items: baseline; justify-content: space-between; max-width: none; gap: 16px; }
.band h2, .page-head h1 { font-family: var(--display); font-size: clamp(40px, 5.4vw, 76px); line-height: 0.95; letter-spacing: 0.01em; }
.band-head p, .page-head p { margin-top: 14px; color: var(--ash-2); font-size: 17px; max-width: 58ch; }

.feeline {
  background:
    linear-gradient(180deg, oklch(0.21 0.014 40), oklch(0.19 0.012 40)),
    var(--plate);
  border-bottom: 1px solid var(--edge);
}
.feeline::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10px 10px, oklch(0.36 0.016 45) 1.6px, transparent 2.2px) 0 0 / 120px 120px; opacity: 0.6; pointer-events: none; }
.pipes { position: relative; }
.pipes svg { width: 100%; height: auto; overflow: visible; }
.pipes .p-v { display: none; }
.pipe-bg { fill: none; stroke: oklch(0.3 0.016 45); stroke-linecap: butt; }
.pipe-flow { fill: none; stroke-linecap: round; stroke-dasharray: 3 22; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -25; } }
.p-label { font: 700 20px var(--text); fill: var(--ash); font-stretch: 110%; }
.p-big { font: 400 46px var(--display); }
.p-small { font: 500 15px var(--text); fill: oklch(0.74 0.02 60); }
.p-box { fill: oklch(0.2 0.013 40); stroke: oklch(0.36 0.016 45); stroke-width: 1.5; }

.logband { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); border-bottom: 1px solid var(--edge); }
.heatlog { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--edge); }
.heatlog li {
  display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; padding: 16px 4px;
  border-bottom: 1px solid oklch(0.26 0.014 40);
}
.heatlog li.fresh { animation: stampIn 900ms var(--ease); }
@keyframes stampIn { 0% { background: oklch(0.6 0.2 30 / 0.35); transform: scale(1.02); } 100% { background: transparent; transform: none; } }
.hno { font-family: var(--display); font-size: 26px; line-height: 1; color: oklch(0.78 0.16 58); letter-spacing: 0.02em; }
.hno.tap { color: oklch(0.76 0.1 262); }
.hno.skip { color: oklch(0.5 0.02 50); }
.hmain b { font-size: 20px; font-weight: 800; font-stretch: 92%; }
.hmain span { display: block; font-size: 14px; color: var(--ash-2); }
.hside { text-align: right; font-size: 14px; color: var(--ash-2); }
.hside a { color: var(--straw); font-weight: 600; }
.empty { padding: 28px 4px; color: var(--ash-2); border-bottom: 1px solid oklch(0.26 0.014 40); }
.empty b { color: var(--ash); display: block; font-size: 18px; margin-bottom: 4px; }

.sparks { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: hidden; border-top: 2px solid var(--edge); }
.sparks li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 11px 2px; border-bottom: 1px solid oklch(0.24 0.013 40); font-size: 15px; }
.sparks li.fresh { animation: stampIn 900ms var(--ease); }
.sparks li { grid-template-columns: 22px 1fr auto; }
.sparks i { width: var(--s, 10px); height: var(--s, 10px); justify-self: center; border-radius: 1px; transform: rotate(45deg); background: var(--orange); box-shadow: 0 0 calc(var(--s, 10px) * 0.8) oklch(0.74 0.17 55 / 0.6); }
.sparks i.sell { box-shadow: none; }
.sparks i.sell { background: oklch(0.5 0.02 50); }
.sparks .w { color: var(--ash-2); font-size: 14px; }

.tapband {
  background:
    radial-gradient(70% 60% at 22% 60%, oklch(0.3 0.05 268 / 0.35), transparent 70%),
    linear-gradient(180deg, oklch(0.2 0.012 250), oklch(0.165 0.01 250));
  border-bottom: 1px solid var(--edge);
}
.tapband::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  height: 4px; background: linear-gradient(90deg, oklch(0.82 0.08 85), oklch(0.6 0.08 55) 45%, oklch(0.6 0.12 245));
}
.tapband h2 { color: oklch(0.92 0.03 250); }
.home-me { font-size: 16px; color: oklch(0.84 0.03 250); margin: -8px 0 20px; min-height: 24px; max-width: 62ch; }
.ls-sol b { font-family: var(--display); font-weight: 400; font-size: 30px; display: block; line-height: 1.1; }
.home-me b { color: var(--lemon); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-decoration: underline; }
.tap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ladle-wrap { position: relative; }
.ladle-wrap svg { width: 100%; max-width: 440px; height: auto; margin-top: -20px; }
.ladle-stats { position: relative; z-index: 1; }
.ls-lbl { font-weight: 700; color: oklch(0.82 0.03 250); font-size: 15px; }
.ls-when { font-family: var(--display); font-size: clamp(64px, 8vw, 120px); line-height: 0.95; color: oklch(0.93 0.03 250); margin: 6px 0 10px; }
.ls-sol { color: oklch(0.8 0.03 250); font-size: 16px; max-width: 40ch; }
.ls-sol b { color: oklch(0.9 0.08 250); }
.tap-count { font-size: 17px; color: oklch(0.82 0.04 272); margin-bottom: 18px; }
.tap-count b { color: oklch(0.95 0.03 272); font-family: var(--display); font-size: 30px; font-weight: 400; margin-right: 6px; }
.moulds { display: flex; align-items: flex-end; gap: 10px; min-height: 200px; margin-bottom: 26px; flex-wrap: wrap; }
.mould { flex: 1 1 60px; min-width: 60px; max-width: 150px; text-align: center; }
.mould-body {
  height: var(--h, 120px); position: relative; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  background: linear-gradient(90deg, oklch(0.2 0.008 40), oklch(0.29 0.012 40) 50%, oklch(0.19 0.008 40));
  box-shadow: inset 0 0 0 3px oklch(0.34 0.014 40);
}
.mould-fill { position: absolute; left: 6px; right: 6px; bottom: 4px; height: var(--f, 60%); clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  background: linear-gradient(180deg, color-mix(in oklch, var(--t) 70%, white), var(--t) 45%, color-mix(in oklch, var(--t) 70%, black)); }
.mould { --t: oklch(0.6 0.12 245); }
.mould-body .pct { position: absolute; left: 0; right: 0; top: 8px; font-family: var(--display); font-size: 18px; color: oklch(0.95 0.02 272); text-shadow: 0 1px 4px oklch(0.15 0.03 272); }
.mould p { font-size: 13px; color: oklch(0.82 0.04 272); margin-top: 6px; font-family: var(--mono); }
.mould.me .mould-body { box-shadow: inset 0 0 0 2px var(--lemon); }
.mould.ghost .mould-body { background: transparent; box-shadow: none; outline: 2px dashed oklch(0.45 0.05 272); outline-offset: -2px; clip-path: none; }

.notes { max-width: 1080px; }
.notes h2 { margin-bottom: 30px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.faq details { border-top: 1px solid var(--edge); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; font-stretch: 108%; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--orange); font-size: 24px; line-height: 1; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ash-2); max-width: 60ch; }

/* ---------- pages ---------- */
.page { padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 56px) 80px; max-width: 1240px; margin: 0 auto; }
.page-head { margin-bottom: 30px; }
.logtools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--plate); border: 1px solid var(--edge); border-radius: 3px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; min-height: 36px; border-radius: 2px; cursor: pointer; font-weight: 600; color: var(--ash-2); }
.seg button[aria-selected="true"] { background: var(--edge); color: var(--ash); box-shadow: inset 0 -2px 0 var(--cherry); }
.logsum { color: var(--ash-2); font-size: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 3px; background: oklch(0.19 0.012 40); }
.ltable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ltable th { position: sticky; top: 0; text-align: left; font-weight: 700; font-size: 13px; color: var(--ash-2); background: var(--plate); padding: 12px 14px; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.ltable td { padding: 13px 14px; border-bottom: 1px solid oklch(0.25 0.014 40); white-space: nowrap; }
.ltable .num { text-align: right; }
.ltable td a { color: var(--straw); font-weight: 600; }
.ltable tr.me td { background: oklch(0.88 0.14 92 / 0.08); }
.ltable .hno { font-size: 20px; }
.tap-top { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; margin-bottom: 40px; }
.tap-clock, .me-card { background: linear-gradient(180deg, oklch(0.24 0.03 272), oklch(0.2 0.02 272)); border: 1px solid oklch(0.34 0.05 272); border-radius: 3px; padding: 18px 20px; }
.tap-clock .lbl, .me-card .lbl { font-weight: 700; color: oklch(0.8 0.04 272); font-size: 14px; }
.tap-clock .big { font-family: var(--display); font-size: 44px; line-height: 1.05; margin-top: 6px; color: oklch(0.95 0.03 272); }
.tap-clock .sub { color: oklch(0.78 0.04 272); font-size: 14px; }
.me-card .verdict { font-family: var(--display); font-size: 30px; margin: 6px 0 4px; }
.me-card .verdict.yes { color: var(--lemon); }
.me-card .verdict.no { color: oklch(0.8 0.04 272); }
.me-card p { color: oklch(0.82 0.03 272); font-size: 15px; }
.me-card .btn { margin-top: 12px; }
.sub-h { font-family: var(--display); font-size: 34px; margin: 34px 0 14px; }

/* skeleton */
.skel { display: inline-block; height: 1em; border-radius: 2px; background: linear-gradient(90deg, oklch(0.26 0.014 40), oklch(0.32 0.016 40), oklch(0.26 0.014 40)); background-size: 200% 100%; animation: sk 1.4s linear infinite; vertical-align: middle; }
.skel.w12 { width: 12em; } .skel.w6 { width: 6em; } .skel.w20 { width: 20em; max-width: 100%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--edge); background: var(--soot-2); padding: 44px clamp(18px, 4vw, 56px) 60px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; align-items: start; }
.foot-brand { font-family: var(--display); font-size: 24px; display: flex; gap: 10px; align-items: center; letter-spacing: 0.05em; }
.foot-small { color: var(--ash-2); font-size: 14px; margin-top: 10px; max-width: 42ch; }
.foot nav { display: grid; gap: 8px; }
.foot nav a { color: var(--ash-2); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--ash); }
.foot-ca { font-size: 14px; color: var(--ash-2); }
.ca-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ca { font-family: var(--mono); font-size: 13px; color: var(--ash); word-break: break-all; }
.copy { border: 1px solid var(--edge-2); background: var(--plate); border-radius: 3px; padding: 4px 10px; min-height: 30px; cursor: pointer; font-size: 13px; font-weight: 600; }
.copy:hover { border-color: var(--straw); }
.split-mini { margin-top: 14px; display: grid; gap: 4px; font-size: 14px; }
.split-mini span b { color: var(--ash); }

/* ---------- tabs (phone) ---------- */
.tabs { display: none; }

/* ---------- sheet ---------- */
.sheet-scrim { position: fixed; inset: 0; background: oklch(0.1 0.01 40 / 0.6); z-index: 40; }
.sheet {
  position: fixed; z-index: 41; top: calc(var(--bar-h) + 8px); right: clamp(10px, 2vw, 24px); width: 360px; max-width: calc(100vw - 20px);
  background: linear-gradient(180deg, oklch(0.24 0.015 40), oklch(0.2 0.013 40)); border: 1px solid var(--edge-2); border-radius: 4px;
  box-shadow: 0 24px 60px oklch(0.06 0.01 40 / 0.8); animation: sheetIn 240ms var(--ease);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } }
.sheet-inner { padding: 18px; }
.sh-head { display: flex; align-items: center; gap: 12px; }
.sh-head img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; background: var(--edge); }
.sh-head h3 { font-family: var(--display); font-size: 26px; line-height: 1; }
.sh-head p { color: var(--ash-2); font-size: 14px; }
.sh-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 3px; background: var(--edge); cursor: pointer; font-size: 20px; line-height: 1; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0; }
.sh-grid div span { display: block; font-size: 13px; color: var(--ash-2); }
.sh-grid div b { font-size: 18px; font-weight: 800; font-stretch: 94%; }
.sh-spark { width: 100%; height: 64px; margin-bottom: 14px; }
.sh-note { font-size: 14px; color: var(--ash-2); margin: 12px 0; }
.sheet .btn { width: 100%; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); }
.toast { background: oklch(0.26 0.016 40); border: 1px solid var(--edge-2); border-radius: 3px; padding: 12px 16px; font-size: 15px; box-shadow: 0 12px 30px oklch(0.06 0.01 40 / 0.7); animation: sheetIn 240ms var(--ease); }
.toast.ok { border-color: var(--orange); }
.toast.err { border-color: var(--neg); }
.toast a { color: var(--straw); font-weight: 600; }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mouth-hud > * { animation: rise 700ms var(--ease) both; }
  .mouth-hud > *:nth-child(2) { animation-delay: 60ms; }
  .mouth-hud > *:nth-child(3) { animation-delay: 120ms; }
  .mouth-hud > *:nth-child(4) { animation-delay: 180ms; }
  .mouth-hud > *:nth-child(5) { animation-delay: 240ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- mid ---------- */
@media (max-width: 1100px) {
  .stratum-card { right: auto; left: clamp(18px, 4vw, 56px); bottom: 24px; width: min(290px, calc(70% - var(--fw) / 2 - 40px)); }
  .faq { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --bar-h: 56px; }
  .routes { display: none; }
  .brand-name { display: none; }
  .bar { gap: 10px; }
  .chip { padding: 0 10px; gap: 6px; }
  .chip-chg { display: none; }
  .mouth { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; }
  .mouth-hud { display: contents; }
  .mouth-hud > * { margin-left: 18px; margin-right: 18px; }
  .kicker-line { order: 1; margin-top: 22px; font-size: 19px; }
  .count { order: 2; font-size: clamp(76px, 23vw, 110px); margin-top: 4px; margin-bottom: 10px; }
  .rule { order: 3; font-size: 16px; max-width: none; }
  .hud-actions { order: 5; margin-top: 14px; margin-bottom: 4px; }
  .proof { order: 4; margin-top: 12px; font-size: 14px; }
  .stage { order: 6; margin-bottom: 20px; }
  .hud-actions .btn { flex: 1 1 140px; }
  .stage { position: relative; inset: auto; display: grid; grid-template-columns: 110px 1fr; grid-template-rows: 330px auto auto; gap: 12px; padding: 0 14px 18px; }
  #furnace { position: relative; grid-column: 1 / -1; grid-row: 1; width: calc(100% + 28px); margin-left: -14px; height: 330px; }
  .pyro { position: absolute; top: 40px; right: 12px; left: auto; width: 100px; }
  .pyro figcaption { font-size: 11px; padding: 5px 6px; }
  .pyro-heat { font-size: 14px; }
  .heatscale-lbl { font-size: 9px; }
  .stratum-card { position: relative; right: auto; left: auto; bottom: auto; width: auto; grid-column: 1 / -1; grid-row: 2; }
  .bellows { position: relative; right: auto; bottom: auto; grid-column: 1 / -1; grid-row: 3; }
  .bellows-btn { flex: 1; height: 46px; }
  .pause-btn { height: 46px; }
  .pipes .p-h { display: none; }
  .pipes .p-v { display: block; max-width: 420px; margin: 0 auto; }
  .logband { grid-template-columns: 1fr; }
  .heatlog li { grid-template-columns: 84px minmax(0, 1fr); }
  .hno { font-size: 21px; }
  .hside { grid-column: 2; text-align: left; }
  .tap-grid { grid-template-columns: 1fr; }
  .moulds { gap: 6px; min-height: 160px; }
  .mould { min-width: 0; flex-basis: 40px; }
  .mould p { font-size: 11px; }
  .mould-body .pct { font-size: 14px; }
  .tap-top { grid-template-columns: 1fr 1fr; }
  .me-card { grid-column: 1 / -1; }
  .tap-clock .big { font-size: 32px; }
  .ltable { font-size: 14px; }
  .ltable th, .ltable td { padding: 11px 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot { padding-bottom: 110px; }
  .tabs {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: oklch(0.19 0.013 40 / 0.97); border-top: 1px solid var(--edge); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabs a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--ash-2); padding: 6px 0; border-radius: 3px; }
  .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .tabs a[aria-current="page"] { color: var(--ash); background: oklch(0.26 0.016 40); }
  .tabs a[aria-current="page"] svg { stroke: var(--orange); }
  .toasts { bottom: 84px; }
  .sheet { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-width: none; border-radius: 6px 6px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  main { padding-bottom: 8px; }
}
