/* Dragons Fooking Cars
   dials: variance 7 / motion 7 / density 6
   one accent (AMG yellow), one radius (6px), one theme (cream paper + cave dark) */

:root {
  --paper: #f3e7cf;
  --paper-2: #e9d8b6;
  --paper-3: #dcc79c;
  --ink: #2e1b14;
  --ink-2: #4a2c22;
  --ink-3: #7a5a4c;
  --rose: #c98a88;
  --rose-2: #e3b9b3;
  --gold: #f2c21b;
  --gold-2: #d9a70f;
  --gilt: #b8892e;
  --red: #b5321f;
  --cave: #1b100c;
  --r: 6px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  cursor: url("assets/cut/cursor.png") 24 12, auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, a, .rev { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
section { position: relative; padding: clamp(70px, 9vw, 130px) clamp(16px, 4vw, 40px); }

/* paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,194,27,.25); }
.h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 20px; font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
}
.lede { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 54ch; margin: 0 0 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 14px 22px; border-radius: var(--r); border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--gold); }
.btn--ghost { background: transparent; box-shadow: none; border-color: var(--ink-3); color: var(--ink-2); }
.btn--ghost:hover { box-shadow: none; background: rgba(46,27,20,.06); }

/* ---------- floating mount-up + scroll tach ---------- */
.fab {
  position: fixed; top: 18px; right: 18px; z-index: 20; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--gold); color: var(--ink); font-weight: 700; font-size: 14px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .3s;
}
.fab:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.fab.is-hidden { opacity: 0; pointer-events: none; }
.gauge {
  position: fixed; left: 16px; bottom: 16px; z-index: 20; width: 92px;
  background: rgba(243,231,207,.92); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 8px 4px; text-align: center; transition: opacity .3s;
}
.gauge.is-hidden { opacity: 0; pointer-events: none; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__arc { fill: none; stroke: var(--ink-2); stroke-width: 9; stroke-linecap: round; opacity: .3; }
.gauge__red { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; }
.gauge__needle { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; transform-origin: 100px 110px; transform: rotate(-90deg); }
.gauge__hub { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
.gauge small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: -2px; font-weight: 700; }
.gauge.is-redline { animation: shake .12s linear infinite; } .gauge.is-redline small { color: var(--red); }

/* torn paper edge at the top of a section */
.tear { position: absolute; left: 0; right: 0; top: -1px; height: 26px; pointer-events: none; z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 97.5% 70%, 95% 90%, 92.5% 20%, 90% 100%, 87.5% 30%, 85% 65%, 82.5% 55%, 80% 80%, 77.5% 0%, 75% 90%, 72.5% 60%, 70% 100%, 67.5% 10%, 65% 65%, 62.5% 40%, 60% 80%, 57.5% 70%, 55% 90%, 52.5% 20%, 50% 100%, 47.5% 30%, 45% 65%, 42.5% 55%, 40% 80%, 37.5% 0%, 35% 90%, 32.5% 60%, 30% 65%, 27.5% 10%, 25% 100%, 22.5% 40%, 20% 80%, 17.5% 70%, 15% 90%, 12.5% 20%, 10% 65%, 7.5% 55%, 5% 100%, 2.5% 30%, 0% 80%); }
.gallery .tear { background: var(--paper); }
.dict .tear { background: var(--ink-2); }
.story .tear { background: var(--paper); }
.garage .tear { background: var(--paper-2); }
.mount .tear { background: var(--ink-2); }

/* ---------- hero (three.js museum) ---------- */
.hero-track { height: 320svh; position: relative; }
.hero { position: sticky; top: 0; width: 100%; height: 100svh; min-height: 520px; overflow: hidden; background: var(--cave); color: var(--paper); }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__vidsrc { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.hero__fallback { display: none; position: absolute; inset: 0; background: url("assets/video/hoard_poster.jpg") center/cover; }
.hero.is-static .hero__fallback { display: block; } .hero.is-static .hero__gl { display: none; }
.hero__ui {
  position: absolute; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: clamp(28px, 6vh, 64px); z-index: 3;
  max-width: 720px; pointer-events: none;
}
.hero__ui > * { pointer-events: auto; }
.hero__eyebrow { color: var(--rose-2); }
.hero__title {
  margin: 0 0 8px; font-family: var(--display); line-height: .84; letter-spacing: -.035em;
  font-size: clamp(60px, 9.4vw, 150px); font-weight: 900; font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
  display: grid; text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title .ch { display: inline-block; font-style: inherit; will-change: transform; }
.hero__title .t2 { font-style: italic; font-weight: 500; color: var(--gold); padding-left: .18em; }
.hero__title .t3 { padding-left: .55em; }
.hero__tag { font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 400; margin: 10px 0 22px; color: var(--paper); }
.hero__tag em { font-style: italic; color: var(--gold); border-bottom: 3px solid var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero .btn { background: var(--paper); }
.hero .btn--primary { background: var(--gold); }
.hero .btn--ghost { background: transparent; color: var(--paper); border-color: var(--rose-2); }
.hero .btn--ghost:hover { background: rgba(243,231,207,.1); }
.hero__deep { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; pointer-events: none; opacity: 0; padding: 0 20px; }
.hero__deep-line { margin: 0; font-family: var(--display); font-size: clamp(22px, 3vw, 40px); color: var(--paper); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero__deep-line--big { font-size: clamp(44px, 8vw, 120px); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.hero__deep-line em { color: var(--gold); }
.hero__wash-out { position: absolute; inset: 0; z-index: 4; background: var(--paper); opacity: 0; pointer-events: none; }
.hero__scroll { position: absolute; bottom: 18px; right: clamp(16px,4vw,48px); z-index: 3; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--paper); opacity: .7; padding-top: 26px; }
.hero__scroll::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 18px; background: var(--paper); animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* CA bar */
.ca {
  display: inline-flex; align-items: stretch; max-width: 100%; border: 2px solid var(--ink); border-radius: var(--r);
  background: rgba(255,250,240,.92); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); overflow: hidden;
}
.ca__label { padding: 10px 12px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 12px; letter-spacing: .12em; display: flex; align-items: center; }
.ca__value { padding: 10px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; display: flex; align-items: center; }
.ca__copy { position: relative; border: 0; border-left: 2px solid var(--ink); background: var(--gold); padding: 10px 16px; font-weight: 700; font-size: 13px; min-width: 88px; }
.ca__copy-done { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink); color: var(--gold); transform: translateY(100%); transition: transform .25s var(--ease); }
.ca.is-copied .ca__copy-done { transform: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); position: relative; z-index: 1; }
.marquee__track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee__track span { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); padding: 14px 36px; white-space: nowrap; }
.marquee__track span::after { content: "\2726"; margin-left: 36px; color: var(--gold); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

.reveal { opacity: 0; }

/* ---------- receipt ---------- */
.receipt { overflow: hidden; }
.receipt__grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.receipt__manuscript { margin: 0; transform: rotate(-2.5deg); position: relative; }
.receipt__manuscript img { border: 12px solid var(--paper-2); outline: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--ink-2); }
.receipt__manuscript figcaption { font-size: 13px; color: var(--ink-3); margin-top: 18px; font-style: italic; text-align: center; }
.seal { position: absolute; right: -26px; bottom: 44px; width: 120px; opacity: 0; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.receipt__coin { position: absolute; width: 90px; opacity: .9; pointer-events: none; }
.receipt__coin--a { left: 4%; top: 10%; } .receipt__coin--b { right: 6%; top: 18%; width: 60px; } .receipt__coin--c { right: 14%; bottom: 8%; width: 74px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 26px 0; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.stat b { display: block; font-family: var(--display); font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); display: inline-flex; gap: 8px; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- gallery hall ---------- */
.gallery-track { position: relative; }
.gallery-track.is-pinned { height: 340vh; }
.gallery-track.is-pinned .gallery { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.gallery-track.is-pinned .hall { overflow: visible; scroll-snap-type: none; cursor: default; will-change: transform; }
.gallery { padding-left: 0; padding-right: 0; background: var(--ink-2); color: var(--paper);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 120px); }
.gallery .eyebrow { color: var(--rose-2); }
.gallery__head { padding: 0 clamp(16px, 4vw, 40px); width: min(var(--max), 100%); margin: 0 auto 36px; position: relative; z-index: 1; }
.gallery__hint { font-style: italic; color: var(--rose-2); margin: 0; }
.hall {
  display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px clamp(16px, 4vw, 40px) 60px;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent; cursor: grab; align-items: center;
}
.hall.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hall::-webkit-scrollbar { height: 8px; } .hall::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.frame { flex: 0 0 auto; width: min(78vw, 460px); scroll-snap-align: center; position: relative; }
.frame__mat {
  background: var(--paper); padding: 16px; border: 10px solid var(--gilt);
  box-shadow: inset 0 0 0 2px var(--ink), 0 24px 40px rgba(0,0,0,.35), inset 0 0 0 14px var(--paper), inset 0 0 0 16px var(--gilt);
  outline: 3px solid var(--gold-2); outline-offset: -20px; transition: transform .5s var(--ease);
}
.frame:hover .frame__mat { transform: translateY(-8px) rotate(-.6deg); }
.frame__mat img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.frame:nth-child(2n) .frame__mat img { aspect-ratio: 16/10; }
.frame__lamp { position: absolute; top: -26px; left: 50%; width: 60%; height: 40px; transform: translateX(-50%); background: radial-gradient(50% 100% at 50% 0%, rgba(242,194,27,.55), transparent 70%); pointer-events: none; }
.placard { margin: 14px auto 0; width: 80%; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); padding: 8px 12px; font-size: 12.5px; line-height: 1.35; box-shadow: 3px 3px 0 var(--ink); }
.placard b { font-family: var(--display); font-size: 15px; display: block; }
.torch { position: absolute; width: 70px; z-index: 1; pointer-events: none; transform-origin: 50% 90%; animation: flicker 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 0 22px rgba(255,150,50,.85)) drop-shadow(0 0 60px rgba(255,120,30,.45)); }
.torch--l { left: 2%; top: 18%; } .torch--r { right: 2%; top: 18%; animation-delay: .4s; }
@keyframes flicker { from { transform: scale(1) rotate(-1deg); } to { transform: scale(1.05) rotate(1.5deg); } }
.visitor { position: absolute; left: 3%; bottom: 8px; width: 110px; z-index: 2; pointer-events: none; animation: waddle .9s ease-in-out infinite alternate; }
@keyframes waddle { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }

/* ---------- dictionary ---------- */
.dict { background: var(--paper); }
.dict__inner { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.dict__head { position: relative; }
.dict__baby { width: 180px; margin-top: 20px; }
.dict__list { margin: 0; column-count: 2; column-gap: 40px; border-top: 2px solid var(--ink); padding-top: 8px; }
.entry { opacity: 0; break-inside: avoid; padding: 14px 0; border-bottom: 1px dashed var(--ink-3); cursor: default; }
.entry dt { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.entry dt small { font-family: var(--body); font-weight: 500; font-style: italic; color: var(--ink-3); font-size: 12px; }
.entry dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.entry dd em { display: block; margin-top: 6px; color: var(--ink-3); font-size: 13.5px; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.entry:hover dd em, .entry:focus-within dd em { max-height: 80px; }
.entry:hover dt { color: var(--red); }
.entry dt::before { content: attr(data-n); font-family: var(--body); font-size: 11px; color: var(--gilt); font-weight: 700; }
.peek { position: fixed; z-index: 30; width: 220px; pointer-events: none; opacity: 0; transform: rotate(-4deg); background: var(--paper); padding: 8px 8px 10px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink-2); }
.peek img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tow { position: fixed; left: -320px; bottom: 6px; width: 300px; z-index: 31; pointer-events: none; opacity: 0; }

/* ---------- story ---------- */
.story { background: var(--paper-2); position: relative; overflow: hidden; }
.story__head { width: min(var(--max), 100%); margin: 0 auto 40px; text-align: center; }
.story__head .eyebrow { justify-content: center; }
.chapters-wrap { position: relative; width: min(1000px, 100%); margin: 0 auto; }
.chapters { list-style: none; margin: 0; padding: 0; position: relative; }
.chapters__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--ink); transform: translateX(-50%) scaleY(0); transform-origin: top; }
.chapter { opacity: 0; display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; gap: 0 20px; margin-bottom: 40px; }
.chapter__num { grid-column: 2; justify-self: center; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; z-index: 1; }
.chapter__img { grid-row: 1; border: 6px solid var(--paper); outline: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink-2); transform: rotate(var(--tilt, -1.5deg)); }
.chapter__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.chapter__txt { grid-row: 1; }
.chapter:nth-child(odd) .chapter__img { grid-column: 1; } .chapter:nth-child(odd) .chapter__txt { grid-column: 3; }
.chapter:nth-child(even) .chapter__img { grid-column: 3; --tilt: 1.5deg; } .chapter:nth-child(even) .chapter__txt { grid-column: 1; text-align: right; }
.chapter__txt h3 { font-family: var(--display); font-size: 28px; margin: 0 0 6px; font-weight: 700; }
.chapter__txt p { margin: 0; color: var(--ink-2); font-size: 16px; }
.story__coin { position: absolute; width: 70px; pointer-events: none; opacity: .85; }
.story__loop { width: min(420px, 100%); margin: 40px auto 0; text-align: center; position: relative; }
.story__loop video { width: 100%; border: 8px solid var(--paper); outline: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink-2); transform: rotate(1deg); }
.story__loop p { font-family: var(--display); font-style: italic; font-size: 24px; margin: 22px 0 0; }

/* ---------- garage / board ---------- */
.garage { background: var(--ink-2); color: var(--paper); background-image: radial-gradient(rgba(0,0,0,.25) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden; }
.garage .eyebrow { color: var(--rose-2); } .garage .lede { color: var(--rose-2); }
.garage__head { width: min(var(--max), 100%); margin: 0 auto 30px; }
.string { position: absolute; left: -2%; right: -2%; top: 8px; height: 60px; pointer-events: none; }
.string path { fill: none; stroke: var(--ink); stroke-width: 3; }
.string circle { fill: var(--gold); animation: bulb 1.6s ease-in-out infinite alternate; }
.string circle:nth-child(even) { animation-delay: .8s; }
@keyframes bulb { from { opacity: .55; } to { opacity: 1; filter: drop-shadow(0 0 6px rgba(242,194,27,.9)); } }
.board { width: min(var(--max), 100%); margin: 0 auto; columns: 4; column-gap: 22px; }
.pin { opacity: 0; break-inside: avoid; margin: 0 0 22px; background: var(--paper); padding: 10px 10px 14px; position: relative; transform: rotate(var(--rot, -2deg)); transition: transform .35s var(--ease); box-shadow: 0 14px 24px rgba(0,0,0,.35); }
.pin:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.pin::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); transform: translateX(-50%); box-shadow: 2px 3px 0 rgba(0,0,0,.35); }
.pin img { width: 100%; }
.pin figcaption { color: var(--ink); font-size: 12.5px; margin-top: 8px; font-family: var(--display); font-style: italic; }
.pin figcaption b { font-style: normal; color: var(--ink-2); font-family: var(--body); font-size: 12px; }
.garage__cta { display: flex; width: fit-content; margin: 30px auto 0; }

/* ---------- mount ---------- */
.mount { overflow: hidden; }
.mount__inner { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.mount .chart { grid-column: 1 / -1; }
.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 26px 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 58px; border-top: 1px solid var(--ink-3); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.steps b { font-family: var(--display); font-size: 19px; }
.mount__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.testdrive { position: relative; padding-bottom: 130px; }
.stage__pair { position: relative; width: min(100%, 640px); margin: 0 auto; will-change: transform; }
.stage__img { width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(46,27,20,.35)); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-.4deg); } }
.stage__exhaust { position: absolute; left: 16%; top: 84%; width: 0; height: 0; }
.heart--free { position: fixed; z-index: 40; }
.heart { position: absolute; left: 0; top: 0; width: 46px; pointer-events: none; transform: translate(-50%,-50%); animation: puff 1.6s var(--ease) forwards; }
@keyframes puff {
  0%   { transform: translate(-50%,-50%) scale(.2) rotate(-10deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(calc(-50% - var(--dx, 60px)), calc(-50% - var(--dy, 220px))) scale(var(--s, 1.6)) rotate(var(--rot, 12deg)); opacity: 0; }
}
.stamp {
  position: absolute; left: 50%; top: 32%; transform: translate(-50%,-50%) rotate(-8deg) scale(.6);
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(30px, 4vw, 54px);
  color: var(--red); border: 4px solid var(--red); padding: 4px 18px; border-radius: var(--r);
  opacity: 0; pointer-events: none; mix-blend-mode: multiply; white-space: nowrap;
}
.stamp.is-on { animation: stamp .9s var(--ease) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(1.8); } 20% { opacity: 1; transform: translate(-50%,-50%) rotate(-8deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.tach { position: absolute; right: 0; bottom: 0; width: 210px; background: rgba(243,231,207,.9); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px 12px; backdrop-filter: blur(4px); }
.tach__svg { width: 100%; height: auto; overflow: visible; }
.tach__arc { fill: none; stroke: var(--ink-2); stroke-width: 10; stroke-linecap: round; opacity: .35; }
.tach__red { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; }
.tach__ticks line { stroke: var(--ink); stroke-width: 2; }
.tach__needle { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; transform-origin: 100px 110px; transform: rotate(-90deg); transition: transform .12s linear; }
.tach__hub { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
.tach__read { display: flex; align-items: baseline; gap: 6px; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 26px; margin: -6px 0 6px; font-variant-numeric: tabular-nums; }
.tach__read small { font-family: var(--body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rev { width: 100%; border: 2px solid var(--ink); border-radius: var(--r); background: var(--gold); padding: 10px; font-weight: 700; display: grid; gap: 2px; box-shadow: 3px 3px 0 var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .1s, box-shadow .1s; }
.rev[aria-pressed="true"] { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); background: var(--gold-2); }
.rev__hint { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.tach.is-redline { animation: shake .12s linear infinite; }
.tach.is-redline .tach__read { color: var(--red); }
@keyframes shake { 0%{transform:translate(0,0)} 25%{transform:translate(1px,-1px)} 50%{transform:translate(-1px,1px)} 75%{transform:translate(1px,1px)} 100%{transform:translate(-1px,-1px)} }
body.is-shaking #stage { animation: shake .09s linear infinite; }
.toy { position: fixed; z-index: 30; width: 90px; pointer-events: none; left: 0; top: 0; }
.engine { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.engine i { width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(181,50,31,.8); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; box-shadow: none; } }
.chart { border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.chart__tabs { display: flex; border-bottom: 2px solid var(--ink); }
.chart__tab { flex: 1; border: 0; background: transparent; padding: 12px; font-weight: 700; color: var(--ink-3); }
.chart__tab.is-active { background: var(--gold); color: var(--ink); }
.chart__pane { min-height: 420px; }
.chart__pane.is-hidden { display: none; }
.chart__pane iframe { width: 100%; height: 520px; border: 0; display: block; }
.chart__placeholder { min-height: 420px; display: grid; place-items: center; text-align: center; padding: 30px; }
.chart__placeholder img { width: 260px; animation: breathe 5s ease-in-out infinite; }
.chart__placeholder p { font-family: var(--display); font-style: italic; font-size: 20px; margin: 0; }
.chart__caption { padding: 14px 18px; font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--cave); color: var(--paper); text-align: center; padding: 70px 20px 120px; position: relative; overflow: hidden; }
.foot__head { width: 140px; margin: 0 auto 10px; position: relative; z-index: 1; }
.foot__thesis { font-family: var(--display); font-size: clamp(30px, 4vw, 52px); line-height: 1.05; margin: 0 0 26px; font-weight: 700; position: relative; z-index: 1; }
.foot__thesis em { color: var(--gold); }
.foot__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; position: relative; z-index: 1; }
.foot__links a { color: var(--paper); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }
.foot__fine { max-width: 62ch; margin: 0 auto; font-size: 12.5px; color: var(--rose-2); opacity: .8; position: relative; z-index: 1; }
.foot__hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.foot__hearts img { position: absolute; bottom: -80px; width: 70px; opacity: 0; animation: rise 7s linear infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .55; } 100% { transform: translateY(-120vh) translateX(40px) scale(1.4) rotate(14deg); opacity: 0; } }

/* mobile sticky bar */
.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .testdrive { padding-bottom: 0; }
  .tach { position: relative; right: auto; bottom: auto; width: 100%; max-width: 360px; margin: 14px auto 0; }
  .receipt__grid, .dict__inner, .mount__inner { grid-template-columns: 1fr; }
  .dict__list { column-count: 1; }
  .board { columns: 2; }
  .torch, .visitor, .peek, .tow, .gauge { display: none; }
  .seal { right: 0; width: 90px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; cursor: auto; }
  .hero__title { font-size: clamp(56px, 19vw, 90px); }
  .hero__title .t3 { padding-left: .3em; }
  .ca__value { max-width: 38vw; }
  .chapter { grid-template-columns: 40px 1fr; gap: 0 14px; margin-bottom: 30px; }
  .chapters__line { left: 20px; }
  .chapter__num { grid-column: 1; grid-row: 1; width: 40px; height: 40px; font-size: 14px; align-self: start; }
  .chapter__img, .chapter__txt { grid-column: 2 !important; }
  .chapter__img { grid-row: 1; } .chapter__txt { grid-row: 2; text-align: left !important; margin-top: 12px; }
  .frame { width: 82vw; }
  .mobile-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; gap: 10px; }
  .mobile-bar .btn { flex: 1; }
  .mobile-bar__ca { flex: 1; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); font-weight: 700; box-shadow: 4px 4px 0 var(--ink); }
  .foot { padding-bottom: 110px; }
  .fab { display: none; }
  .receipt__coin { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .chapter, .pin, .entry, .reveal, .seal { opacity: 1 !important; transform: none !important; }
  .chapters__line { transform: translateX(-50%) scaleY(1); }
  body { cursor: auto; }
  .marquee__track, .stage__img, .chart__placeholder img, .hero__scroll::before, .torch, .visitor, .string circle, .foot__hearts img, .engine i { animation: none !important; }
  .hero__ui > * { opacity: 1 !important; transform: none !important; }
  body.is-shaking #stage, .tach.is-redline, .gauge.is-redline { animation: none; }
}
