/* ==========================================================================
   ONLY SMILES STUDIOS — Arcata, CA
   Four "tones" (color presets) live on <html data-tone="…">. Everything else
   reads semantic tokens, so the whole site re-skins when you switch amps.
   ========================================================================== */

:root {
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-hand: "Gochi Hand", "Comic Sans MS", cursive;
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pop-ease: cubic-bezier(.34, 1.56, .64, 1);
  --out-ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 68px;
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V13l11-6 10 9 13-10 12 7 13-9 14 10 11-7 14 9 12-11 14 7 11-9 14 12 13-7 13 10 11-11 15 7 12-8 13 10 10-5v19z'/%3E%3C/svg%3E");
}

/* ---------- TONE: BIG MUFF (default) — cobalt / acid / bubblegum ---------- */
html, html[data-tone="muff"] {
  --bg: #1631CF; --bg-2: #1027AE; --text: #FFF3D6; --text-dim: #C9D0FF;
  --dark: #0E0B1F; --on-dark: #FFF3D6; --on-dark-dim: #B8B3D8;
  --paper: #FFF3D6; --on-paper: #0E0B1F; --on-paper-dim: #4A4466;
  --pop: #D9F53B; --on-pop: #0E0B1F;
  --gum: #FF5FA8; --on-gum: #0E0B1F;
  --alt: #8EA0FF; --on-alt: #0E0B1F;
  --line: #0E0B1F;
  --edge-base: #0E0B1F; --edge-dark: #D9F53B;
  --logo: #D9F53B; --logo-shade: #8EA0FF; --logo-shadow: #0E0B1F;
  --star: #FF5FA8; --star-ink: #0E0B1F;
  --burst: #2242DD;
  --stk-1: #FF5FA8; --stk-2: #D9F53B; --stk-3: #FFF3D6; --stk-4: #8EA0FF;
  --focus: #D9F53B;
  color-scheme: dark;
}
/* ---------- TONE: JC-120 — dreamy lilac chorus ---------- */
html[data-tone="jc120"] {
  --bg: #CDBFFF; --bg-2: #BCA9FF; --text: #1A1238; --text-dim: #43386F;
  --dark: #1A1238; --on-dark: #EFEAFF; --on-dark-dim: #B3A8DE;
  --paper: #F6F2FF; --on-paper: #1A1238; --on-paper-dim: #4D4478;
  --pop: #62EFC4; --on-pop: #1A1238;
  --gum: #FF86C8; --on-gum: #1A1238;
  --alt: #FFFFFF; --on-alt: #1A1238;
  --line: #1A1238;
  --edge-base: #1A1238; --edge-dark: #62EFC4;
  --logo: #1A1238; --logo-shade: #8F7CF0; --logo-shadow: #FFFFFF;
  --star: #62EFC4; --star-ink: #1A1238;
  --burst: #D8CCFF;
  --stk-1: #62EFC4; --stk-2: #FF86C8; --stk-3: #FFFFFF; --stk-4: #A999FF;
  --focus: #1A1238;
  color-scheme: light;
}
/* ---------- TONE: 6505 — high gain, blood and bone ---------- */
html[data-tone="6505"] {
  --bg: #0D0A0B; --bg-2: #181012; --text: #F2EADF; --text-dim: #ABA096;
  --dark: #000000; --on-dark: #F2EADF; --on-dark-dim: #9D928A;
  --paper: #F2EADF; --on-paper: #0D0A0B; --on-paper-dim: #5A4F4A;
  --pop: #FF2638; --on-pop: #0D0A0B;
  --gum: #F2EADF; --on-gum: #0D0A0B;
  --alt: #8E0E1B; --on-alt: #F2EADF;
  --line: #0D0A0B;
  --edge-base: #FF2638; --edge-dark: #FF2638;
  --logo: #FF2638; --logo-shade: #7C0B16; --logo-shadow: #000000;
  --star: #F2EADF; --star-ink: #0D0A0B;
  --burst: #1D1315;
  --stk-1: #F2EADF; --stk-2: #FF2638; --stk-3: #F2EADF; --stk-4: #FF2638;
  --focus: #FF2638;
  color-scheme: dark;
}
/* ---------- TONE: AC30 — vintage cream, racing green, maroon ---------- */
html[data-tone="ac30"] {
  --bg: #F3E6C4; --bg-2: #EAD9AE; --text: #1B1712; --text-dim: #5A4F3E;
  --dark: #12301F; --on-dark: #F7EDD3; --on-dark-dim: #BDB594;
  --paper: #FFF9EA; --on-paper: #1B1712; --on-paper-dim: #5C5140;
  --pop: #0B6B3A; --on-pop: #FFF6DE;
  --gum: #0046AD; --on-gum: #FFF6DE;
  --alt: #7A0010; --on-alt: #FFF6DE;
  --line: #1B1712;
  --edge-base: #1B1712; --edge-dark: #E6B422;
  --logo: #7A0010; --logo-shade: #D5B57C; --logo-shadow: #1B1712;
  --star: #E6B422; --star-ink: #1B1712;
  --burst: #EBDAB0;
  --stk-1: #E6B422; --stk-2: #FFF9EA; --stk-3: #9FD1AE; --stk-4: #F3A08F;
  --focus: #0046AD;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-display); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.5;
  font-variation-settings: "wdth" 100; overflow-x: hidden;
  transition: background-color .5s, color .5s;
}
body.gated { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gum); color: var(--on-gum); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: .01em; text-transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--pop); color: var(--on-pop); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* film grain over everything, like the mockup deck's scratched black */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- sections ---------- */
main, .foot { overflow-x: clip; }
.sec { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.sec--base  { background: var(--bg);    color: var(--text);     --dim: var(--text-dim);     --edge: var(--edge-base); }
.sec--base2 { background: var(--bg-2);  color: var(--text);     --dim: var(--text-dim);     --edge: var(--edge-base); }
.sec--dark  { background: var(--dark);  color: var(--on-dark);  --dim: var(--on-dark-dim);  --edge: var(--edge-dark); }
.sec--paper { background: var(--paper); color: var(--on-paper); --dim: var(--on-paper-dim); --edge: var(--on-paper); }
.sec--pop   { background: var(--pop);   color: var(--on-pop);   --dim: color-mix(in srgb, var(--on-pop) 78%, var(--pop)); --edge: var(--on-pop); }
.sec--gum   { background: var(--gum);   color: var(--on-gum);   --dim: color-mix(in srgb, var(--on-gum) 78%, var(--gum)); --edge: var(--on-gum); }
.sec, .band { transition: background-color .5s, color .5s; }
/* torn-paper top edge in the section's own color */
.tear::before {
  content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 28px; background: inherit; pointer-events: none;
  -webkit-mask: var(--tear) 0 0 / 240px 100% repeat-x; mask: var(--tear) 0 0 / 240px 100% repeat-x;
}

.kicker { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 18px; font: 700 .8rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.kicker::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 3px; }
.title {
  margin: 0; font-weight: 900; font-variation-settings: "wdth" 72; text-transform: uppercase;
  font-size: clamp(3rem, 1rem + 9.2vw, 9.5rem); line-height: .84; letter-spacing: -.015em; text-wrap: balance;
}
.title em { font-style: normal; color: var(--hl, var(--pop)); }
.sec--pop .title em, .sec--gum .title em, .sec--paper .title em { color: inherit; background: var(--hlbg, var(--pop)); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sec--paper { --hlbg: var(--pop); }
.sec--paper .title em { color: var(--on-pop); }
.lede { max-width: 60ch; margin: 26px 0 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; font-weight: 500; color: var(--dim); }
.lede strong { color: inherit; font-weight: 800; }
.sec-head { display: grid; gap: 0; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- buttons ---------- */
.btn {
  --bb: var(--pop); --bf: var(--on-pop);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.35em; border: 3px solid var(--edge, var(--line)); border-radius: 999px;
  background: var(--bb); color: var(--bf); text-decoration: none; white-space: nowrap;
  font-weight: 850; font-variation-settings: "wdth" 110; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em;
  box-shadow: 5px 5px 0 var(--edge, var(--line));
  transition: transform .18s var(--pop-ease), box-shadow .18s var(--pop-ease), background-color .3s;
}
.btn:hover { transform: translate(-2px, -3px) rotate(-1.5deg); box-shadow: 8px 9px 0 var(--edge, var(--line)); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--edge, var(--line)); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--ghost { --bb: transparent; --bf: currentColor; }
.btn--gum { --bb: var(--gum); --bf: var(--on-gum); }
.btn--ink { --bb: var(--edge); --bf: var(--bg-of-sec, var(--pop)); }
.sec--pop .btn { --bb: var(--on-pop); --bf: var(--pop); }
.sec--pop .btn--ghost { --bb: transparent; --bf: var(--on-pop); }
.sec--gum .btn { --bb: var(--on-gum); --bf: var(--gum); }
.sec--dark .btn--ghost { --bf: var(--on-dark); }

/* ---------- stickers (two-tone drawings) ---------- */
.stk { --sl: var(--line); --sf: var(--stk-1); --mx: 3px; --my: 4px; overflow: visible; }
.stk--2 { --sf: var(--stk-2); } .stk--3 { --sf: var(--stk-3); } .stk--4 { --sf: var(--stk-4); }
.stk--flat { --mx: 0px; --my: 0px; }

/* ==========================================================================
   GATE
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  background: var(--dark); color: var(--on-dark); --edge: var(--gum);
  transition: opacity .6s .35s, visibility 0s 1s;
}
.gate[hidden] { display: none; }
.gate__burst { position: absolute; width: max(150vmax, 1200px); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; opacity: .9; }
.gate__burst path { fill: color-mix(in srgb, var(--gum) 16%, var(--dark)); }
.gate__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: clamp(14px, 2.4vh, 22px); padding: 24px var(--gutter); }
.gate__brand { margin: 0; font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(.9rem, .8rem + .6vw, 1.2rem); letter-spacing: .3em; text-transform: uppercase; }
.gate__star { width: clamp(170px, 34vmin, 330px); height: auto; --sf: var(--star); --sl: var(--star-ink); cursor: pointer; animation: gateBob 1.1s ease-in-out infinite alternate; filter: drop-shadow(8px 10px 0 color-mix(in srgb, var(--pop) 90%, transparent)); }
@keyframes gateBob { from { transform: translateY(-8px) rotate(-7deg); } to { transform: translateY(8px) rotate(6deg); } }
.gate__plug { --bb: var(--pop); --bf: var(--on-pop); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); padding: .9em 1.5em; }
.gate__plug .jack { width: 1.6em; height: 1.6em; }
.gate__quiet { background: none; border: 0; padding: 6px 10px; font: 700 .85rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-dim); text-decoration: underline; text-underline-offset: 4px; }
.gate__quiet:hover { color: var(--on-dark); }
.gate__np { margin: 0; font-size: 1.35rem; color: var(--gum); rotate: -2deg; }
.gate__call { font: 700 .85rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-dim); text-decoration: none; border-bottom: 2px dotted currentColor; }
.gate__call:hover { color: var(--pop); }
.gate--out { opacity: 0; visibility: hidden; pointer-events: none; }
.gate--out .gate__star { animation: none; transition: transform .9s cubic-bezier(.7, 0, .84, 0); transform: scale(14) rotate(200deg); }
.gate--out .gate__inner > :not(.gate__star) { transition: opacity .25s; opacity: 0; }

/* ==========================================================================
   HEADER + PLAYER
   ========================================================================== */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); padding-inline: var(--gutter);
  color: var(--text); transition: background-color .3s, box-shadow .3s, transform .4s var(--out-ease);
}
.top.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: 0 3px 0 var(--edge-base); }
.top.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 38px; height: 38px; --sf: var(--star); --sl: var(--star-ink); transition: transform .5s var(--pop-ease); }
.brand:hover svg { transform: rotate(-20deg) scale(1.15); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 750; font-variation-settings: "wdth" 90; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover { background: var(--pop); color: var(--on-pop); }
.player { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .player { margin-left: 8px; }
.play {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; padding: 0;
  background: var(--gum); color: var(--on-gum); display: grid; place-items: center; transition: transform .2s var(--pop-ease);
}
.play:hover { transform: scale(1.08) rotate(-8deg); }
.play__ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); }
.play__ring circle { fill: none; stroke-width: 3; }
.play__ring .bg { stroke: color-mix(in srgb, currentColor 18%, transparent); stroke: color-mix(in srgb, var(--text) 22%, transparent); }
.play__ring .fg { stroke: var(--pop); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }
.play .i-pause, .is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: block; }
.play svg.i { width: 18px; height: 18px; }
.viz { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.viz i { width: 4px; height: 100%; border-radius: 2px; background: var(--pop); transform-origin: bottom; transform: scaleY(.15); }
.np { display: grid; line-height: 1.1; min-width: 0; }
.np b { font-weight: 850; font-variation-settings: "wdth" 85; font-size: .95rem; text-transform: uppercase; white-space: nowrap; }
.np span { font: 400 .68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.top .btn { padding: .7em 1.05em; font-size: .95rem; box-shadow: 3px 3px 0 var(--edge-base); border-color: var(--edge-base); }
.top .btn:hover { box-shadow: 5px 6px 0 var(--edge-base); }
@media (max-width: 1080px) { .nav { display: none; } .nav + .player { margin-left: auto; } }
@media (max-width: 720px) { .np { display: none; } .brand span { display: none; } }
@media (max-width: 380px) { .viz { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: clip; padding: calc(var(--header-h) + 20px) var(--gutter) 90px; background: var(--bg); color: var(--text); --edge: var(--edge-base); --dim: var(--text-dim); isolation: isolate; }
.hero__burst { position: absolute; z-index: -2; width: max(165vmax, 1400px); aspect-ratio: 1; left: 50%; top: 46%; translate: -50% -50%; pointer-events: none; }
.hero__burst path { fill: var(--burst); transition: fill .5s; }
.hero__inner { position: relative; display: grid; justify-items: center; text-align: center; width: 100%; max-width: 1100px; }
.hero__logo { margin: 0; width: min(94vw, 860px, 72svh); position: relative; }
.logo { width: 100%; height: auto; overflow: visible; }
.logo__type { --ls: var(--logo-shade); --lc: var(--logo); }
.logo__shadow { --ls: var(--logo-shadow); --lc: var(--logo-shadow); }
.logo__star use { --sf: var(--star); --sl: var(--star-ink); }
.logo__star .logo__starshadow { --sf: var(--logo-shadow); --sl: var(--logo-shadow); }
.logo__star { cursor: pointer; }
.hero__note { position: absolute; left: -17%; top: -8%; margin: 0; font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); color: var(--gum); rotate: -8deg; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; }
.hero__note svg { width: 64px; height: 64px; margin: 0 0 -50px -6px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
html[data-tone="6505"] .hero__note, html[data-tone="ac30"] .hero__note { color: var(--pop); }
.hero__kicker { margin: clamp(14px, 3vh, 30px) 0 0; font: 700 clamp(.72rem, .66rem + .3vw, .9rem)/1.4 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text); display: flex; flex-wrap: wrap; justify-content: center; gap: .35em 1em; }
.hero__kicker span + span::before { content: "✶"; margin-right: 1em; color: var(--pop); }
.hero__lede { margin: 14px auto 0; max-width: 44ch; font-size: clamp(1.05rem, .95rem + .55vw, 1.4rem); line-height: 1.4; font-weight: 500; color: var(--text-dim); text-wrap: balance; }
.hero__lede b { color: var(--text); font-weight: 800; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin-top: clamp(20px, 3.5vh, 34px); }
.hero > .stk { position: absolute; z-index: -1; width: var(--w); height: auto; left: var(--x); top: var(--y); touch-action: auto; user-select: none; -webkit-user-select: none; }
@media (pointer: fine) { .hero > .stk { cursor: grab; } .hero > .stk.is-dragging { cursor: grabbing; z-index: 5; } }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 4px; font: 700 .7rem var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; }
.scroll-cue svg { width: 34px; height: 34px; animation: cue 1.1s ease-in-out infinite alternate; --sf: var(--stk-2); }
@keyframes cue { to { transform: translateY(8px) rotate(14deg); } }
@media (max-width: 720px) {
  .hero__note { display: none; }
  .hero > .stk.d-only { display: none; }
  .hero { padding-bottom: 80px; }
}

/* ==========================================================================
   GENRE BANDS (marquees)
   ========================================================================== */
.bands { position: relative; z-index: 3; margin-block: -34px; padding-block: 18px; overflow: clip; pointer-events: none; }
.band { display: flex; width: 106%; overflow: hidden; padding: 12px 0; border-block: 3px solid var(--line); font-weight: 900; font-variation-settings: "wdth" 80; font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.band--a { background: var(--pop); color: var(--on-pop); rotate: -2.2deg; margin-left: -3%; }
.band--b { background: var(--gum); color: var(--on-gum); rotate: 1.6deg; margin-top: -6px; margin-left: -3%; }
.band__track { display: flex; flex: none; width: max-content; align-items: center; will-change: transform; }
.band__track > span { display: inline-flex; align-items: center; gap: .45em; padding-right: .45em; }
.band svg { width: 1.15em; height: 1.15em; --sl: currentColor; --sf: transparent; --mx: 0px; --my: 0px; }
html[data-tone="6505"] .band { border-color: #000; }

/* ==========================================================================
   REAMP
   ========================================================================== */
.reamp { overflow: clip; }
.reamp .title { max-width: 11ch; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(48px, 7vw, 90px); counter-reset: step; }
.cable { position: absolute; left: 0; right: 0; top: 36px; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.cable path { fill: none; stroke-linecap: round; }
.cable .c1 { stroke: color-mix(in srgb, var(--on-dark) 16%, transparent); stroke-width: 10; }
.cable .c2 { stroke: var(--pop); stroke-width: 4; stroke-dasharray: 2 26; }
.step { position: relative; padding: 26px 24px 28px; border: 3px solid var(--on-dark); border-radius: 26px; background: var(--dark); box-shadow: 7px 7px 0 var(--pop); }
.step:nth-child(3) { box-shadow: 7px 7px 0 var(--gum); }
.step:nth-child(4) { box-shadow: 7px 7px 0 var(--alt); }
.step__n { display: flex; align-items: center; justify-content: space-between; font: 700 .85rem var(--f-mono); letter-spacing: .14em; color: var(--on-dark-dim); }
.step__jack { width: 46px; height: 46px; border-radius: 50%; background: var(--pop); color: var(--on-pop); display: grid; place-items: center; box-shadow: inset 0 0 0 5px var(--dark), 0 0 0 3px var(--pop); }
.step:nth-child(3) .step__jack { background: var(--gum); box-shadow: inset 0 0 0 5px var(--dark), 0 0 0 3px var(--gum); color: var(--on-gum); }
.step:nth-child(4) .step__jack { background: var(--alt); box-shadow: inset 0 0 0 5px var(--dark), 0 0 0 3px var(--alt); color: var(--on-alt); }
.step__jack svg { width: 22px; height: 22px; }
.step h3 { margin: 18px 0 10px; font-weight: 900; font-variation-settings: "wdth" 75; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); line-height: .9; text-transform: uppercase; }
.step p { margin: 0; color: var(--on-dark-dim); font-weight: 450; }
.step p b { color: var(--on-dark); font-weight: 750; }
.step .stk { position: absolute; width: 96px; right: -18px; top: -44px; rotate: 10deg; }
.quote { position: relative; margin: clamp(70px, 9vw, 120px) auto 0; max-width: 980px; text-align: center; }
.quote p { margin: 0; font-weight: 900; font-variation-settings: "wdth" 90; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.2rem); line-height: .98; text-transform: uppercase; text-wrap: balance; }
.quote p em { font-style: normal; color: var(--pop); }
.quote .hand { display: inline-block; margin-top: 16px; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--gum); rotate: -3deg; }
.layers { margin: 28px auto 0; max-width: 58ch; text-align: center; color: var(--on-dark-dim); font-size: 1.1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .cable { display: none; }
  .step .stk { width: 80px; right: 8px; top: -34px; }
}

/* ==========================================================================
   GENRE KNOB
   ========================================================================== */
.dial { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.knob-wrap { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; user-select: none; -webkit-user-select: none; }
.knob-wrap::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--dark) 40%, transparent) 0 55%, transparent 56%); }
.knob__scale { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.knob__scale line { stroke: var(--text); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.knob__scale line.major { stroke-width: 5; opacity: 1; }
.knob__scale .arc { fill: none; stroke: var(--pop); stroke-width: 7; stroke-linecap: round; }
.knob {
  position: absolute; inset: 21%; border-radius: 50%; touch-action: none; cursor: grab; outline: none;
  --a: 0deg;
}
.knob:active { cursor: grabbing; }
.knob:focus-visible { box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px var(--focus); }
.knob__body { position: absolute; inset: 0; transform: rotate(var(--a)); transition: transform .35s var(--pop-ease); }
.knob.is-dragging .knob__body { transition: none; }
.knob__body svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(8px 10px 0 var(--edge)); }
.knob__grip { fill: var(--dark); }
.knob__face { fill: color-mix(in srgb, var(--dark) 82%, var(--text)); }
.knob__pointer { fill: var(--pop); }
.knob__cap { position: absolute; left: 50%; top: 50%; width: 48%; translate: -50% -52%; --sf: var(--star); --sl: var(--star-ink); pointer-events: none; }
.knob__nums { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.knob__nums li { position: absolute; left: 50%; top: 50%; }
.knob__nums button {
  position: absolute; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; border: 0; background: transparent; pointer-events: auto;
  font-weight: 900; font-variation-settings: "wdth" 100; font-size: 1.15rem; color: var(--text-dim);
  transform: rotate(var(--p)) translateY(calc(var(--r) * -1)) rotate(calc(var(--p) * -1));
  transition: background-color .2s, color .2s, transform .3s var(--pop-ease);
}
.knob__nums button:hover { color: var(--text); }
.knob__nums button[aria-pressed="true"] { background: var(--pop); color: var(--on-pop); }
.knob__label { position: absolute; left: 50%; bottom: 1%; translate: -50% 0; font: 700 .85rem var(--f-mono); letter-spacing: .3em; color: var(--text-dim); }
.knob__label b { color: var(--text); }
.readout { position: relative; min-height: 470px; padding: clamp(24px, 3vw, 38px); border: 3px solid var(--edge); border-radius: 28px; background: var(--dark); color: var(--on-dark); box-shadow: 10px 10px 0 var(--edge); }
html[data-tone="muff"] .readout, html[data-tone="jc120"] .readout, html[data-tone="ac30"] .readout { border-color: var(--line); box-shadow: 10px 10px 0 var(--pop); }
.readout__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 .85rem var(--f-mono); letter-spacing: .12em; color: var(--on-dark-dim); }
.readout__arrows { display: flex; gap: 8px; }
.readout__arrows button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--on-dark-dim); background: none; display: grid; place-items: center; color: var(--on-dark); transition: background-color .2s, color .2s; }
.readout__arrows button:hover { background: var(--pop); border-color: var(--pop); color: var(--on-pop); }
.readout__arrows svg { width: 18px; height: 18px; }
.readout__genre { margin: 16px 0 12px; font-weight: 900; font-variation-settings: "wdth" 70; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.8rem); line-height: .86; text-transform: uppercase; color: var(--pop); }
.readout__blurb { margin: 0; color: var(--on-dark-dim); max-width: 56ch; }
.readout__label { margin: 22px 0 10px; font: 700 .78rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-dim); }
.readout__note { margin: 20px 0 0; font-size: 1.5rem; color: var(--gum); rotate: -2deg; }
.readout .stk { position: absolute; width: 104px; right: -30px; top: -52px; rotate: 12deg; }
.readout.is-swap .readout__genre, .readout.is-swap .chips { animation: swap .45s var(--pop-ease); }
@keyframes swap { from { opacity: 0; transform: translateY(12px) skewX(-8deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px 7px; border-radius: 999px; background: color-mix(in srgb, var(--on-dark) 12%, transparent); font-weight: 650; font-variation-settings: "wdth" 90; font-size: .95rem; }
.chips li:nth-child(3n+1) { background: var(--pop); color: var(--on-pop); }
.spectrum { margin-top: clamp(40px, 6vw, 70px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 850; font-variation-settings: "wdth" 80; font-size: clamp(1rem, .8rem + .8vw, 1.5rem); text-transform: uppercase; color: var(--text-dim); }
.spectrum b { color: var(--text); }
.spectrum i { font-style: normal; color: var(--pop); }
@media (max-width: 900px) {
  .dial { grid-template-columns: 1fr; }
  .knob-wrap { width: min(100%, 360px); }
  .readout { min-height: 0; }
  .readout .stk { width: 80px; right: -6px; top: -44px; }
}

/* ==========================================================================
   GEAR
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; list-style: none; border-block: 3px solid var(--on-paper); }
.stats li { padding: 18px 12px 16px; text-align: center; border-right: 2px dashed color-mix(in srgb, var(--on-paper) 40%, transparent); }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-weight: 900; font-variation-settings: "wdth" 70; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); line-height: .9; }
.stats span { font: 700 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-paper-dim); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } .stats li:nth-child(3) { border-right: 0; } .stats li:nth-child(-n+3) { border-bottom: 2px dashed color-mix(in srgb, var(--on-paper) 40%, transparent); } }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 3px solid var(--on-paper); border-radius: 999px; background: transparent;
  font-weight: 850; font-variation-settings: "wdth" 90; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em;
  transition: background-color .2s, color .2s, transform .2s var(--pop-ease), box-shadow .2s;
}
.tab sup { font: 700 .7rem var(--f-mono); padding: 2px 6px; border-radius: 999px; background: var(--on-paper); color: var(--paper); vertical-align: 0; }
.tab:hover { transform: translateY(-2px) rotate(-1deg); }
.tab[aria-selected="true"] { background: var(--on-paper); color: var(--paper); box-shadow: 4px 4px 0 var(--pop); }
.tab[aria-selected="true"] sup { background: var(--pop); color: var(--on-pop); }
.panel__intro { max-width: 70ch; margin: 0 0 26px; color: var(--on-paper-dim); font-size: 1.1rem; }
.panel__intro b { color: var(--on-paper); }
html.js .panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panelIn .45s var(--out-ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
html:not(.js) .panel { margin-bottom: 48px; }

/* masking-tape labels */
.tape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 16px; margin: 0; padding: 0; list-style: none; }
.tape {
  --tape: color-mix(in srgb, var(--paper) 62%, var(--pop) 38%);
  position: relative; padding: 16px 20px 17px; background: var(--tape); color: var(--on-paper);
  clip-path: polygon(0 4%, 3% 0, 6% 6%, 9% 1%, 12% 5%, 88% 2%, 91% 6%, 94% 0, 97% 5%, 100% 2%, 99% 50%, 100% 97%, 96% 100%, 93% 95%, 90% 100%, 12% 97%, 9% 100%, 6% 95%, 3% 100%, 0 96%, 1% 50%);
  rotate: var(--rot, 0deg); transition: rotate .25s var(--pop-ease), transform .25s var(--pop-ease);
}
.tape:nth-child(4n+1) { --rot: -1.2deg; } .tape:nth-child(4n+2) { --rot: .9deg; } .tape:nth-child(4n+3) { --rot: -.4deg; } .tape:nth-child(4n) { --rot: 1.4deg; }
.tape:nth-child(5n+2) { --tape: color-mix(in srgb, var(--paper) 55%, var(--gum) 45%); }
.tape:nth-child(5n+4) { --tape: color-mix(in srgb, var(--paper) 55%, var(--alt) 45%); }
html[data-tone="6505"] .tape:nth-child(5n+4), html[data-tone="ac30"] .tape:nth-child(5n+4), html[data-tone="ac30"] .tape:nth-child(5n+2) { --tape: color-mix(in srgb, var(--paper) 80%, var(--alt) 20%); }
.tape:hover { rotate: 0deg; transform: scale(1.03); }
.tape b { display: block; font-weight: 850; font-variation-settings: "wdth" 88; font-size: 1.2rem; line-height: 1.12; text-transform: uppercase; }
.tape small { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.35; color: color-mix(in srgb, var(--on-paper) 80%, transparent); font-weight: 500; }
.tape .yr { font: 700 .72rem var(--f-mono); letter-spacing: .12em; display: inline-block; margin-bottom: 6px; padding: 2px 7px; border: 2px solid currentColor; border-radius: 999px; }
.pill { display: inline-block; margin: 8px 6px 0 0; padding: 3px 9px; border-radius: 999px; background: var(--on-paper); color: var(--paper); font: 700 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.pill--hot { background: var(--gum); color: var(--on-gum); }
html[data-tone="6505"] .pill--hot, html[data-tone="ac30"] .pill--hot { background: var(--alt); color: var(--on-alt); }

/* amps as little amp faces */
.amp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.amp { border: 3px solid var(--on-paper); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 6px 6px 0 var(--on-paper); transition: transform .25s var(--pop-ease), box-shadow .25s; }
.amp:hover { transform: translate(-3px, -3px) rotate(-.8deg); box-shadow: 10px 10px 0 var(--on-paper); }
.amp__face { position: relative; padding: 14px 16px 12px; background: var(--dark); color: var(--on-dark); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.amp__face b { font-weight: 900; font-variation-settings: "wdth" 80; font-size: 1.3rem; text-transform: uppercase; line-height: 1; }
.amp__knobs { display: flex; gap: 6px; flex: none; }
.amp__knobs i { width: 14px; height: 14px; border-radius: 50%; background: var(--pop); box-shadow: inset 0 0 0 3px var(--dark), 0 0 0 1.5px var(--pop); }
.amp__knobs i:nth-child(2) { background: var(--gum); box-shadow: inset 0 0 0 3px var(--dark), 0 0 0 1.5px var(--gum); }
.amp__grill { height: 60px; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--on-paper) 70%, var(--paper)) 0 2px, transparent 2px 7px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--on-paper) 55%, var(--paper)) 0 2px, var(--tapebg, color-mix(in srgb, var(--paper) 70%, var(--pop))) 2px 7px); border-bottom: 3px solid var(--on-paper); }
.amp:nth-child(3n+2) .amp__grill { --tapebg: color-mix(in srgb, var(--paper) 60%, var(--gum)); }
.amp:nth-child(3n) .amp__grill { --tapebg: color-mix(in srgb, var(--paper) 60%, var(--alt)); }
.amp__body { padding: 14px 16px 16px; }
.amp__body p { margin: 0; color: var(--on-paper-dim); font-size: .98rem; line-height: 1.4; }
.amp__body .yr { font: 700 .72rem var(--f-mono); letter-spacing: .12em; }

/* pedals as a pedalboard */
.board { padding: clamp(16px, 2.5vw, 28px); border: 3px solid var(--on-paper); border-radius: 22px; background: repeating-linear-gradient(0deg, var(--dark) 0 22px, color-mix(in srgb, var(--dark) 82%, var(--on-dark)) 22px 26px); box-shadow: 8px 8px 0 var(--on-paper); }
.pedals { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pedal {
  --pb: var(--pop); --pf: var(--on-pop);
  position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 8px; min-height: 176px; padding: 14px 10px 14px;
  border-radius: 12px 12px 16px 16px; background: var(--pb); color: var(--pf); text-align: center; box-shadow: 0 5px 0 color-mix(in srgb, var(--pb) 55%, #000), inset 0 -3px 0 color-mix(in srgb, var(--pb) 70%, #000);
  transition: transform .2s var(--pop-ease);
}
.pedal:nth-child(5n+2) { --pb: var(--gum); --pf: var(--on-gum); }
.pedal:nth-child(5n+3) { --pb: var(--alt); --pf: var(--on-alt); }
.pedal:nth-child(5n+4) { --pb: var(--paper); --pf: var(--on-paper); }
.pedal:nth-child(5n)   { --pb: var(--bg); --pf: var(--text); }
html[data-tone="6505"] .pedal:nth-child(5n) { --pb: #3a3334; }
.pedal:hover { transform: translateY(-4px) rotate(-2deg); }
.pedal__knobs { display: flex; gap: 10px; }
.pedal__knobs i { width: 20px; height: 20px; border-radius: 50%; background: var(--pf); position: relative; }
.pedal__knobs i::after { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 7px; margin-left: -1px; background: var(--pb); border-radius: 1px; transform-origin: 50% 8px; rotate: var(--kr, -40deg); }
.pedal__knobs i:nth-child(2) { --kr: 50deg; }
.pedal b { align-self: center; font-weight: 900; font-variation-settings: "wdth" 78; font-size: 1.02rem; line-height: 1.02; text-transform: uppercase; }
.pedal small { display: block; margin-top: 3px; font: 700 .62rem var(--f-mono); letter-spacing: .14em; opacity: .8; }
.pedal__foot { display: flex; align-items: center; gap: 12px; }
.pedal__led { width: 11px; height: 11px; border-radius: 50%; background: #ff2b4b; opacity: .25; box-shadow: 0 0 0 2px color-mix(in srgb, var(--pf) 40%, transparent); }
.pedal__led.on { opacity: 1; box-shadow: 0 0 10px 3px #ff2b4b, 0 0 0 2px color-mix(in srgb, var(--pf) 40%, transparent); }
.pedal__sw { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, #c9c9c9 30%, #6e6e6e 75%); box-shadow: 0 2px 0 rgba(0,0,0,.35); }

/* ==========================================================================
   RIG ROULETTE
   ========================================================================== */
.machine { position: relative; display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 3vw, 36px); align-items: stretch; padding: clamp(18px, 3vw, 34px); border: 4px solid var(--on-gum); border-radius: 30px; background: var(--dark); color: var(--on-dark); box-shadow: 12px 12px 0 var(--on-gum); }
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.reel { display: grid; gap: 8px; min-width: 0; }
.reel__label { font: 700 .72rem var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-dim); text-align: center; }
.reel__win {
  --ih: 64px; position: relative; height: calc(var(--ih) * 3); overflow: hidden; border-radius: 16px; border: 0; padding: 0;
  background: var(--paper); color: var(--on-paper); text-align: center;
  -webkit-mask: linear-gradient(transparent, #000 26%, #000 74%, transparent); mask: linear-gradient(transparent, #000 26%, #000 74%, transparent);
}
.reel__win::after { content: ""; position: absolute; left: 0; right: 0; top: var(--ih); height: var(--ih); border-block: 3px solid var(--on-paper); background: color-mix(in srgb, var(--pop) 30%, transparent); pointer-events: none; }
.reel__strip { margin: 0; padding: 0; list-style: none; will-change: transform; }
.reel__strip li { height: var(--ih); display: grid; place-items: center; padding: 0 10px; font-weight: 850; font-variation-settings: "wdth" 78; font-size: clamp(.92rem, .8rem + .45vw, 1.12rem); line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.stomp-col { display: grid; justify-items: center; align-content: center; gap: 12px; }
.stomp {
  position: relative; width: clamp(108px, 12vw, 140px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0;
  background: radial-gradient(circle at 36% 30%, #fff 0 9%, #dcdcdc 22%, #8b8b8b 62%, #555 80%);
  box-shadow: 0 10px 0 #2a2a2a, 0 0 0 10px var(--gum), 0 0 0 14px var(--on-gum);
  transition: transform .1s, box-shadow .1s;
}
.stomp span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-variation-settings: "wdth" 110; font-size: 1.1rem; letter-spacing: .06em; color: #1a1a1a; text-transform: uppercase; }
.stomp:active, .stomp.is-down { transform: translateY(8px); box-shadow: 0 2px 0 #2a2a2a, 0 0 0 10px var(--gum), 0 0 0 14px var(--on-gum); }
.stomp-col .led { width: 16px; height: 16px; border-radius: 50%; background: #ff2b4b; opacity: .3; transition: opacity .1s; }
.stomp-col .led.on { opacity: 1; box-shadow: 0 0 14px 4px #ff2b4b; }
.stomp-col small { font: 700 .7rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-dim); }
.verdict { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 22px; align-items: center; padding-top: 20px; border-top: 2px dashed color-mix(in srgb, var(--on-dark) 30%, transparent); min-height: 118px; }
.verdict__says { font: 700 .78rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-dim); }
.verdict__genre { margin: 0; font-weight: 900; font-variation-settings: "wdth" 72; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: .9; text-transform: uppercase; color: var(--pop); }
.verdict__note { margin: 4px 0 0; font-size: 1.4rem; color: var(--gum); }
html[data-tone="6505"] .verdict__note { color: var(--on-dark); }
.verdict.is-new .verdict__genre { animation: verdict .6s var(--pop-ease); }
@keyframes verdict { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.verdict .btn { --edge: var(--pop); }
.combos { margin-top: 26px; font-size: 1.05rem; color: var(--dim); }
@media (max-width: 860px) {
  .machine { grid-template-columns: 1fr; }
  .reels { grid-template-columns: repeat(2, 1fr); }
  .reel__win { --ih: 56px; }
  .stomp-col { grid-auto-flow: column; }
  .verdict { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WHY
   ========================================================================== */
.why .title { font-size: clamp(2.4rem, 1rem + 5.6vw, 6.4rem); max-width: 16ch; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 70px); }
.path { position: relative; padding: 26px 24px; border-radius: 24px; border: 3px solid var(--edge); background: var(--bg); }
.path h3 { margin: 0 0 10px; font-weight: 900; font-variation-settings: "wdth" 75; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: .9; text-transform: uppercase; }
.path:nth-child(1) h3 { color: var(--pop); } .path:nth-child(2) h3 { color: var(--gum); } .path:nth-child(3) h3 { color: var(--alt); }
html[data-tone="jc120"] .path h3, html[data-tone="ac30"] .path h3 { color: var(--text) !important; }
.path p { margin: 0; color: var(--dim); }
.path .stk { position: absolute; width: 70px; right: 14px; top: -34px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; gap: 34px; } }

/* ==========================================================================
   BOOK — intro + session-sheet form
   ========================================================================== */
.book { overflow: clip; }
.book__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.book .title { font-size: clamp(3.2rem, 1rem + 6.4vw, 7.4rem); }
.book__intro { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.book__or { margin: clamp(28px, 4vw, 44px) 0 6px; font: 700 .78rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.digits {
  display: inline-flex; flex-wrap: nowrap; max-width: 100%; text-decoration: none; white-space: nowrap;
  font-weight: 900; font-variation-settings: "wdth" 62; font-size: 48px; line-height: 1.05; letter-spacing: -.005em; padding-top: .12em;
}
.digits span { display: inline-block; transition: color .2s; }
.digits:hover span { text-shadow: 4px 4px 0 var(--gum); }
html[data-tone="6505"] .digits:hover span, html[data-tone="ac30"] .digits:hover span { text-shadow: 4px 4px 0 var(--alt); }
.digits:focus-visible { outline-offset: 8px; }
.book__copy { display: flex; width: max-content; margin-top: 18px; padding: .7em 1.1em; font-size: .95rem; }
.call__where { margin-top: 26px; font: 700 .78rem/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }

.sheet {
  --edge: var(--on-paper); --focus: var(--on-paper); --dim: var(--on-paper-dim);
  position: relative; display: grid; gap: 22px; margin: 0; padding: clamp(20px, 3vw, 36px);
  background: var(--paper); color: var(--on-paper); border: 3px solid var(--on-pop); border-radius: 26px; box-shadow: 12px 12px 0 var(--on-pop);
}
.sheet__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 4px double var(--on-paper); font: 700 .74rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.sheet__head span:first-child { font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 110; font-size: 1.05rem; letter-spacing: .06em; }
.sheet__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font: 700 .74rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-paper-dim); }
.field__label i { font-style: normal; color: var(--on-paper); }
.sheet input:not([type="checkbox"]):not([type="radio"]), .sheet textarea {
  width: 100%; margin: 0; padding: 8px 2px 9px; border: 0; border-bottom: 3px solid var(--on-paper); border-radius: 0;
  background: transparent; color: var(--on-paper); font: 600 1.1rem/1.4 var(--f-display); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s;
}
.sheet textarea {
  min-height: 102px; resize: vertical; padding: 3px 12px; border: 3px solid var(--on-paper); border-radius: 14px; line-height: 32px;
  background: repeating-linear-gradient(transparent 0 31px, color-mix(in srgb, var(--on-paper) 16%, transparent) 31px 32px) 0 3px local;
}
.sheet ::placeholder { color: color-mix(in srgb, var(--on-paper) 45%, transparent); font-weight: 500; }
.sheet input:focus, .sheet textarea:focus { outline: none; background-color: color-mix(in srgb, var(--pop) 16%, transparent); }
.sheet input:focus-visible, .sheet textarea:focus-visible { box-shadow: 0 3px 0 var(--on-paper); }
.field.is-bad input, .field.is-bad textarea, .field.is-bad .seg { border-color: #D6002F; }
.field.is-bad .field__label { color: #C4002B; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chip, .seg label { position: relative; cursor: pointer; }
.chip input, .seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 2.5px solid var(--on-paper); border-radius: 999px; font-weight: 750; font-variation-settings: "wdth" 90; font-size: .95rem; line-height: 1.1; transition: background-color .15s, color .15s, transform .2s var(--pop-ease); }
.chip:hover span { transform: rotate(-2deg); }
.chip input:checked + span { background: var(--on-paper); color: var(--paper); }
.chip input:checked + span::before { content: "★"; color: var(--pop); }
html[data-tone="ac30"] .chip input:checked + span::before { color: #E6B422; }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--on-paper); outline-offset: 3px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 3px solid var(--on-paper); border-radius: 999px; }
.seg span { display: block; padding: 11px 8px; border-radius: 999px; text-align: center; font-weight: 850; font-variation-settings: "wdth" 90; font-size: .95rem; text-transform: uppercase; transition: background-color .2s, color .2s; }
.seg label:hover span { background: color-mix(in srgb, var(--on-paper) 8%, transparent); }
.seg input:checked + span { background: var(--pop); color: var(--on-pop); }
.sheet__err { margin: 0; color: #C4002B; font-weight: 750; }
.sheet__err:empty { display: none; }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.sheet__foot small { max-width: 34ch; color: var(--on-paper-dim); font-size: .9rem; line-height: 1.35; }
.sheet .btn { --bb: var(--on-paper); --bf: var(--paper); box-shadow: 5px 5px 0 var(--gum); }
.sheet .btn:hover { box-shadow: 8px 9px 0 var(--gum); }
html[data-tone="6505"] .sheet .btn, html[data-tone="ac30"] .sheet .btn { box-shadow: 5px 5px 0 var(--pop); }
.sheet .btn--ghost { --bb: transparent; --bf: var(--on-dark); border-color: var(--on-dark); box-shadow: 4px 4px 0 var(--pop); }
.sheet__done { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 18px; background: var(--dark); color: var(--on-dark); animation: verdict .6s var(--pop-ease); }
.sheet__done[hidden] { display: none; }
.sheet__done .stk { width: 76px; --sf: var(--star); --sl: var(--star-ink); rotate: -10deg; }
.sheet__done p { margin: 0 0 10px; color: var(--on-dark-dim); }
.sheet__done .sheet__done-t { margin-bottom: 6px; color: var(--on-dark); font-weight: 900; font-variation-settings: "wdth" 85; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; }
@media (max-width: 900px) {
  .book__grid { grid-template-columns: minmax(0, 1fr); }
  .book__intro { position: static; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .seg span { font-size: .86rem; padding: 11px 4px; font-variation-settings: "wdth" 70; white-space: nowrap; }
  .sheet__head span:last-child { display: none; }
  .sheet__done { grid-template-columns: 1fr; }
}
.runner { position: relative; height: 150px; margin-top: 40px; pointer-events: none; }
.runner .stk { position: absolute; bottom: 0; left: 0; width: 130px; animation: run 9s linear infinite; }
.runner .stk svg, .runner .kid { width: 100%; height: auto; }
.runner .kid { animation: hop .32s ease-in-out infinite alternate; }
@keyframes run { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes hop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-16px) rotate(4deg); } }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 22px; translate: -50% 20px; opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--dark); color: var(--on-dark); border: 3px solid var(--pop); font-weight: 750; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; transition: opacity .25s, translate .35s var(--pop-ease); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { position: relative; padding: 70px 0 40px; background: var(--dark); color: var(--on-dark); --dim: var(--on-dark-dim); }
.foot__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 30px 48px; align-items: center; }
.oss { width: clamp(150px, 18vw, 220px); color: var(--on-dark); --sl: var(--on-dark); }
.foot__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.foot__list a { text-decoration: none; border-bottom: 2px solid transparent; }
.foot__list a:hover { border-color: var(--pop); color: var(--pop); }
.foot__meta { font: 400 .78rem/1.7 var(--f-mono); letter-spacing: .06em; color: var(--on-dark-dim); text-align: right; }
.foot__smiles { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 10px; }
.foot__smiles svg { width: 38px; height: 38px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; } .foot__meta { text-align: center; } .foot__smiles { justify-content: center; } }

/* ==========================================================================
   TONE PEDAL (color presets)
   ========================================================================== */
.tone {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; display: grid; gap: 8px; padding: 12px 12px 10px;
  border: 3px solid var(--line); border-radius: 16px; background: var(--gum); color: var(--on-gum); box-shadow: 5px 5px 0 var(--line);
  transition: transform .4s var(--out-ease), background-color .4s;
}
html[data-tone="6505"] .tone { border-color: var(--pop); box-shadow: 5px 5px 0 var(--pop); background: var(--paper); }
.tone__label { font: 700 .62rem var(--f-mono); letter-spacing: .18em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.tone__btns { display: flex; gap: 6px; }
.tone__btns button { display: grid; justify-items: center; gap: 5px; padding: 7px 8px 6px; min-width: 52px; border: 2px solid currentColor; border-radius: 9px; background: transparent; font: 700 .64rem var(--f-mono); letter-spacing: .06em; }
.tone__btns button i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .25; }
.tone__btns button[aria-pressed="true"] { background: var(--line); color: var(--gum); }
html[data-tone="6505"] .tone__btns button[aria-pressed="true"] { color: var(--paper); background: var(--pop); }
.tone__btns button[aria-pressed="true"] i { background: #ff2b4b; opacity: 1; box-shadow: 0 0 8px 2px #ff2b4b; }
.tone__cycle { display: none; }
@media (max-width: 720px) {
  .toast { bottom: 74px; }
  .tone { left: 12px; bottom: 12px; padding: 0; border-radius: 999px; }
  .tone__label, .tone__btns { display: none; }
  .tone__cycle { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; border: 0; background: none; color: inherit; font: 700 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
  .tone__cycle i { width: 10px; height: 10px; border-radius: 50%; background: #ff2b4b; box-shadow: 0 0 8px 2px #ff2b4b; }
}

/* ==========================================================================
   cursor buddy + click stars
   ========================================================================== */
.buddy { position: fixed; z-index: 97; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; opacity: 0; transition: opacity .3s; --sf: var(--stk-2); }
.buddy.on { opacity: 1; }
.spark { position: fixed; z-index: 98; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(46px) rotate(-1.5deg); transition: opacity .8s var(--out-ease), transform .9s var(--out-ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .slam { opacity: 0; transform: scale(1.25) rotate(-3deg); transition: opacity .35s, transform .7s var(--pop-ease); }
html.js .slam.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  html.js .reveal, html.js .slam { opacity: 1; transform: none; }
  .buddy { display: none; }
  .runner .stk { left: 50%; translate: -50% 0; animation: none; }
}

/* ---------- small fixes / progressive enhancement ---------- */
.shake { animation: shake .22s linear infinite; }
@keyframes shake { 0%, 100% { translate: 0 0; } 25% { translate: -3px 2px; } 50% { translate: 3px -2px; } 75% { translate: -2px -3px; } }
.reel__win { display: block; width: 100%; cursor: pointer; }
.cable path { vector-effect: non-scaling-stroke; }
html:not(.js) .gate { display: none; }
html:not(.js) body.gated { overflow: auto; }
html:not(.js) .tabs { display: none; }
